anarock-widgets 1.0.29 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(ae,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],k):(ae=typeof globalThis<"u"?globalThis:ae||self,k(ae.Widgets={},ae.React,ae.ReactDOM))})(this,(function(ae,k,cA){"use strict";function uA(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const A=uA(k);function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zo={exports:{}},la={};/**
1
+ (function(ae,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],k):(ae=typeof globalThis<"u"?globalThis:ae||self,k(ae.Widgets={},ae.React,ae.ReactDOM))})(this,(function(ae,k,uA){"use strict";function fA(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const A=fA(k);function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wo={exports:{}},ca={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var bm;function fA(){if(bm)return la;bm=1;var e=k,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,c){var u,f={},d=null,h=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(f[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)f[u]===void 0&&(f[u]=l[u]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return la.Fragment=r,la.jsx=o,la.jsxs=o,la}var ca={};/**
9
+ */var wm;function dA(){if(wm)return ca;wm=1;var e=k,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,c){var u,f={},d=null,h=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!a.hasOwnProperty(u)&&(f[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)f[u]===void 0&&(f[u]=l[u]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return ca.Fragment=r,ca.jsx=o,ca.jsxs=o,ca}var ua={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,39 +14,39 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var xm;function dA(){return xm||(xm=1,process.env.NODE_ENV!=="production"&&(function(){var e=k,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,p="@@iterator";function g(P){if(P===null||typeof P!="object")return null;var z=m&&P[m]||P[p];return typeof z=="function"?z:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(P){{for(var z=arguments.length,q=new Array(z>1?z-1:0),ie=1;ie<z;ie++)q[ie-1]=arguments[ie];x("error",P,q)}}function x(P,z,q){{var ie=v.ReactDebugCurrentFrame,Se=ie.getStackAddendum();Se!==""&&(z+="%s",q=q.concat([Se]));var Ne=q.map(function(fe){return String(fe)});Ne.unshift("Warning: "+z),Function.prototype.apply.call(console[P],console,Ne)}}var S=!1,w=!1,O=!1,E=!1,C=!1,M;M=Symbol.for("react.module.reference");function $(P){return!!(typeof P=="string"||typeof P=="function"||P===n||P===a||C||P===i||P===c||P===u||E||P===h||S||w||O||typeof P=="object"&&P!==null&&(P.$$typeof===d||P.$$typeof===f||P.$$typeof===o||P.$$typeof===s||P.$$typeof===l||P.$$typeof===M||P.getModuleId!==void 0))}function j(P,z,q){var ie=P.displayName;if(ie)return ie;var Se=z.displayName||z.name||"";return Se!==""?q+"("+Se+")":q}function _(P){return P.displayName||"Context"}function I(P){if(P==null)return null;if(typeof P.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof P=="function")return P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof P=="object")switch(P.$$typeof){case s:var z=P;return _(z)+".Consumer";case o:var q=P;return _(q._context)+".Provider";case l:return j(P,P.render,"ForwardRef");case f:var ie=P.displayName||null;return ie!==null?ie:I(P.type)||"Memo";case d:{var Se=P,Ne=Se._payload,fe=Se._init;try{return I(fe(Ne))}catch{return null}}}return null}var D=Object.assign,L=0,W,H,te,Q,F,U,V;function re(){}re.__reactDisabledLog=!0;function Z(){{if(L===0){W=console.log,H=console.info,te=console.warn,Q=console.error,F=console.group,U=console.groupCollapsed,V=console.groupEnd;var P={configurable:!0,enumerable:!0,value:re,writable:!0};Object.defineProperties(console,{info:P,log:P,warn:P,error:P,group:P,groupCollapsed:P,groupEnd:P})}L++}}function J(){{if(L--,L===0){var P={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},P,{value:W}),info:D({},P,{value:H}),warn:D({},P,{value:te}),error:D({},P,{value:Q}),group:D({},P,{value:F}),groupCollapsed:D({},P,{value:U}),groupEnd:D({},P,{value:V})})}L<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=v.ReactCurrentDispatcher,oe;function le(P,z,q){{if(oe===void 0)try{throw Error()}catch(Se){var ie=Se.stack.trim().match(/\n( *(at )?)/);oe=ie&&ie[1]||""}return`
17
+ */var _m;function hA(){return _m||(_m=1,process.env.NODE_ENV!=="production"&&(function(){var e=k,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,p="@@iterator";function g(P){if(P===null||typeof P!="object")return null;var z=m&&P[m]||P[p];return typeof z=="function"?z:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(P){{for(var z=arguments.length,q=new Array(z>1?z-1:0),ie=1;ie<z;ie++)q[ie-1]=arguments[ie];x("error",P,q)}}function x(P,z,q){{var ie=v.ReactDebugCurrentFrame,Se=ie.getStackAddendum();Se!==""&&(z+="%s",q=q.concat([Se]));var Ne=q.map(function(fe){return String(fe)});Ne.unshift("Warning: "+z),Function.prototype.apply.call(console[P],console,Ne)}}var S=!1,w=!1,O=!1,E=!1,C=!1,M;M=Symbol.for("react.module.reference");function $(P){return!!(typeof P=="string"||typeof P=="function"||P===n||P===a||C||P===i||P===c||P===u||E||P===h||S||w||O||typeof P=="object"&&P!==null&&(P.$$typeof===d||P.$$typeof===f||P.$$typeof===o||P.$$typeof===s||P.$$typeof===l||P.$$typeof===M||P.getModuleId!==void 0))}function j(P,z,q){var ie=P.displayName;if(ie)return ie;var Se=z.displayName||z.name||"";return Se!==""?q+"("+Se+")":q}function _(P){return P.displayName||"Context"}function I(P){if(P==null)return null;if(typeof P.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof P=="function")return P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof P=="object")switch(P.$$typeof){case s:var z=P;return _(z)+".Consumer";case o:var q=P;return _(q._context)+".Provider";case l:return j(P,P.render,"ForwardRef");case f:var ie=P.displayName||null;return ie!==null?ie:I(P.type)||"Memo";case d:{var Se=P,Ne=Se._payload,fe=Se._init;try{return I(fe(Ne))}catch{return null}}}return null}var D=Object.assign,L=0,W,H,te,Q,F,U,V;function re(){}re.__reactDisabledLog=!0;function Z(){{if(L===0){W=console.log,H=console.info,te=console.warn,Q=console.error,F=console.group,U=console.groupCollapsed,V=console.groupEnd;var P={configurable:!0,enumerable:!0,value:re,writable:!0};Object.defineProperties(console,{info:P,log:P,warn:P,error:P,group:P,groupCollapsed:P,groupEnd:P})}L++}}function J(){{if(L--,L===0){var P={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},P,{value:W}),info:D({},P,{value:H}),warn:D({},P,{value:te}),error:D({},P,{value:Q}),group:D({},P,{value:F}),groupCollapsed:D({},P,{value:U}),groupEnd:D({},P,{value:V})})}L<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=v.ReactCurrentDispatcher,oe;function le(P,z,q){{if(oe===void 0)try{throw Error()}catch(Se){var ie=Se.stack.trim().match(/\n( *(at )?)/);oe=ie&&ie[1]||""}return`
18
18
  `+oe+P}}var B=!1,K;{var ne=typeof WeakMap=="function"?WeakMap:Map;K=new ne}function T(P,z){if(!P||B)return"";{var q=K.get(P);if(q!==void 0)return q}var ie;B=!0;var Se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=ee.current,ee.current=null,Z();try{if(z){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(zt){ie=zt}Reflect.construct(P,[],fe)}else{try{fe.call()}catch(zt){ie=zt}P.call(fe.prototype)}}else{try{throw Error()}catch(zt){ie=zt}P()}}catch(zt){if(zt&&ie&&typeof zt.stack=="string"){for(var ce=zt.stack.split(`
19
19
  `),Mt=ie.stack.split(`
20
20
  `),rt=ce.length-1,ot=Mt.length-1;rt>=1&&ot>=0&&ce[rt]!==Mt[ot];)ot--;for(;rt>=1&&ot>=0;rt--,ot--)if(ce[rt]!==Mt[ot]){if(rt!==1||ot!==1)do if(rt--,ot--,ot<0||ce[rt]!==Mt[ot]){var hr=`
21
- `+ce[rt].replace(" at new "," at ");return P.displayName&&hr.includes("<anonymous>")&&(hr=hr.replace("<anonymous>",P.displayName)),typeof P=="function"&&K.set(P,hr),hr}while(rt>=1&&ot>=0);break}}}finally{B=!1,ee.current=Ne,J(),Error.prepareStackTrace=Se}var sa=P?P.displayName||P.name:"",bi=sa?le(sa):"";return typeof P=="function"&&K.set(P,bi),bi}function De(P,z,q){return T(P,!1)}function pe(P){var z=P.prototype;return!!(z&&z.isReactComponent)}function tt(P,z,q){if(P==null)return"";if(typeof P=="function")return T(P,pe(P));if(typeof P=="string")return le(P);switch(P){case c:return le("Suspense");case u:return le("SuspenseList")}if(typeof P=="object")switch(P.$$typeof){case l:return De(P.render);case f:return tt(P.type,z,q);case d:{var ie=P,Se=ie._payload,Ne=ie._init;try{return tt(Ne(Se),z,q)}catch{}}}return""}var dt=Object.prototype.hasOwnProperty,Nr={},Fo=v.ReactDebugCurrentFrame;function Ic(P){if(P){var z=P._owner,q=tt(P.type,P._source,z?z.type:null);Fo.setExtraStackFrame(q)}else Fo.setExtraStackFrame(null)}function QH(P,z,q,ie,Se){{var Ne=Function.call.bind(dt);for(var fe in P)if(Ne(P,fe)){var ce=void 0;try{if(typeof P[fe]!="function"){var Mt=Error((ie||"React class")+": "+q+" type `"+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof P[fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Mt.name="Invariant Violation",Mt}ce=P[fe](z,fe,ie,q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(rt){ce=rt}ce&&!(ce instanceof Error)&&(Ic(Se),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ie||"React class",q,fe,typeof ce),Ic(null)),ce instanceof Error&&!(ce.message in Nr)&&(Nr[ce.message]=!0,Ic(Se),b("Failed %s type: %s",q,ce.message),Ic(null))}}}var eU=Array.isArray;function pm(P){return eU(P)}function tU(P){{var z=typeof Symbol=="function"&&Symbol.toStringTag,q=z&&P[Symbol.toStringTag]||P.constructor.name||"Object";return q}}function rU(P){try{return ZO(P),!1}catch{return!0}}function ZO(P){return""+P}function JO(P){if(rU(P))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tU(P)),ZO(P)}var QO=v.ReactCurrentOwner,nU={key:!0,ref:!0,__self:!0,__source:!0},eA,tA;function iU(P){if(dt.call(P,"ref")){var z=Object.getOwnPropertyDescriptor(P,"ref").get;if(z&&z.isReactWarning)return!1}return P.ref!==void 0}function aU(P){if(dt.call(P,"key")){var z=Object.getOwnPropertyDescriptor(P,"key").get;if(z&&z.isReactWarning)return!1}return P.key!==void 0}function oU(P,z){typeof P.ref=="string"&&QO.current}function sU(P,z){{var q=function(){eA||(eA=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};q.isReactWarning=!0,Object.defineProperty(P,"key",{get:q,configurable:!0})}}function lU(P,z){{var q=function(){tA||(tA=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};q.isReactWarning=!0,Object.defineProperty(P,"ref",{get:q,configurable:!0})}}var cU=function(P,z,q,ie,Se,Ne,fe){var ce={$$typeof:t,type:P,key:z,ref:q,props:fe,_owner:Ne};return ce._store={},Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Se}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce};function uU(P,z,q,ie,Se){{var Ne,fe={},ce=null,Mt=null;q!==void 0&&(JO(q),ce=""+q),aU(z)&&(JO(z.key),ce=""+z.key),iU(z)&&(Mt=z.ref,oU(z,Se));for(Ne in z)dt.call(z,Ne)&&!nU.hasOwnProperty(Ne)&&(fe[Ne]=z[Ne]);if(P&&P.defaultProps){var rt=P.defaultProps;for(Ne in rt)fe[Ne]===void 0&&(fe[Ne]=rt[Ne])}if(ce||Mt){var ot=typeof P=="function"?P.displayName||P.name||"Unknown":P;ce&&sU(fe,ot),Mt&&lU(fe,ot)}return cU(P,ce,Mt,Se,ie,QO.current,fe)}}var mm=v.ReactCurrentOwner,rA=v.ReactDebugCurrentFrame;function oa(P){if(P){var z=P._owner,q=tt(P.type,P._source,z?z.type:null);rA.setExtraStackFrame(q)}else rA.setExtraStackFrame(null)}var gm;gm=!1;function vm(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function nA(){{if(mm.current){var P=I(mm.current.type);if(P)return`
21
+ `+ce[rt].replace(" at new "," at ");return P.displayName&&hr.includes("<anonymous>")&&(hr=hr.replace("<anonymous>",P.displayName)),typeof P=="function"&&K.set(P,hr),hr}while(rt>=1&&ot>=0);break}}}finally{B=!1,ee.current=Ne,J(),Error.prepareStackTrace=Se}var la=P?P.displayName||P.name:"",xi=la?le(la):"";return typeof P=="function"&&K.set(P,xi),xi}function De(P,z,q){return T(P,!1)}function pe(P){var z=P.prototype;return!!(z&&z.isReactComponent)}function tt(P,z,q){if(P==null)return"";if(typeof P=="function")return T(P,pe(P));if(typeof P=="string")return le(P);switch(P){case c:return le("Suspense");case u:return le("SuspenseList")}if(typeof P=="object")switch(P.$$typeof){case l:return De(P.render);case f:return tt(P.type,z,q);case d:{var ie=P,Se=ie._payload,Ne=ie._init;try{return tt(Ne(Se),z,q)}catch{}}}return""}var dt=Object.prototype.hasOwnProperty,Nr={},Bo=v.ReactDebugCurrentFrame;function $c(P){if(P){var z=P._owner,q=tt(P.type,P._source,z?z.type:null);Bo.setExtraStackFrame(q)}else Bo.setExtraStackFrame(null)}function tU(P,z,q,ie,Se){{var Ne=Function.call.bind(dt);for(var fe in P)if(Ne(P,fe)){var ce=void 0;try{if(typeof P[fe]!="function"){var Mt=Error((ie||"React class")+": "+q+" type `"+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof P[fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Mt.name="Invariant Violation",Mt}ce=P[fe](z,fe,ie,q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(rt){ce=rt}ce&&!(ce instanceof Error)&&($c(Se),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ie||"React class",q,fe,typeof ce),$c(null)),ce instanceof Error&&!(ce.message in Nr)&&(Nr[ce.message]=!0,$c(Se),b("Failed %s type: %s",q,ce.message),$c(null))}}}var rU=Array.isArray;function gm(P){return rU(P)}function nU(P){{var z=typeof Symbol=="function"&&Symbol.toStringTag,q=z&&P[Symbol.toStringTag]||P.constructor.name||"Object";return q}}function iU(P){try{return JO(P),!1}catch{return!0}}function JO(P){return""+P}function QO(P){if(iU(P))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nU(P)),JO(P)}var eA=v.ReactCurrentOwner,aU={key:!0,ref:!0,__self:!0,__source:!0},tA,rA;function oU(P){if(dt.call(P,"ref")){var z=Object.getOwnPropertyDescriptor(P,"ref").get;if(z&&z.isReactWarning)return!1}return P.ref!==void 0}function sU(P){if(dt.call(P,"key")){var z=Object.getOwnPropertyDescriptor(P,"key").get;if(z&&z.isReactWarning)return!1}return P.key!==void 0}function lU(P,z){typeof P.ref=="string"&&eA.current}function cU(P,z){{var q=function(){tA||(tA=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};q.isReactWarning=!0,Object.defineProperty(P,"key",{get:q,configurable:!0})}}function uU(P,z){{var q=function(){rA||(rA=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};q.isReactWarning=!0,Object.defineProperty(P,"ref",{get:q,configurable:!0})}}var fU=function(P,z,q,ie,Se,Ne,fe){var ce={$$typeof:t,type:P,key:z,ref:q,props:fe,_owner:Ne};return ce._store={},Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Se}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce};function dU(P,z,q,ie,Se){{var Ne,fe={},ce=null,Mt=null;q!==void 0&&(QO(q),ce=""+q),sU(z)&&(QO(z.key),ce=""+z.key),oU(z)&&(Mt=z.ref,lU(z,Se));for(Ne in z)dt.call(z,Ne)&&!aU.hasOwnProperty(Ne)&&(fe[Ne]=z[Ne]);if(P&&P.defaultProps){var rt=P.defaultProps;for(Ne in rt)fe[Ne]===void 0&&(fe[Ne]=rt[Ne])}if(ce||Mt){var ot=typeof P=="function"?P.displayName||P.name||"Unknown":P;ce&&cU(fe,ot),Mt&&uU(fe,ot)}return fU(P,ce,Mt,Se,ie,eA.current,fe)}}var vm=v.ReactCurrentOwner,nA=v.ReactDebugCurrentFrame;function sa(P){if(P){var z=P._owner,q=tt(P.type,P._source,z?z.type:null);nA.setExtraStackFrame(q)}else nA.setExtraStackFrame(null)}var ym;ym=!1;function bm(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function iA(){{if(vm.current){var P=I(vm.current.type);if(P)return`
22
22
 
23
- Check the render method of \``+P+"`."}return""}}function fU(P){return""}var iA={};function dU(P){{var z=nA();if(!z){var q=typeof P=="string"?P:P.displayName||P.name;q&&(z=`
23
+ Check the render method of \``+P+"`."}return""}}function hU(P){return""}var aA={};function pU(P){{var z=iA();if(!z){var q=typeof P=="string"?P:P.displayName||P.name;q&&(z=`
24
24
 
25
- Check the top-level render call using <`+q+">.")}return z}}function aA(P,z){{if(!P._store||P._store.validated||P.key!=null)return;P._store.validated=!0;var q=dU(z);if(iA[q])return;iA[q]=!0;var ie="";P&&P._owner&&P._owner!==mm.current&&(ie=" It was passed a child from "+I(P._owner.type)+"."),oa(P),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',q,ie),oa(null)}}function oA(P,z){{if(typeof P!="object")return;if(pm(P))for(var q=0;q<P.length;q++){var ie=P[q];vm(ie)&&aA(ie,z)}else if(vm(P))P._store&&(P._store.validated=!0);else if(P){var Se=g(P);if(typeof Se=="function"&&Se!==P.entries)for(var Ne=Se.call(P),fe;!(fe=Ne.next()).done;)vm(fe.value)&&aA(fe.value,z)}}}function hU(P){{var z=P.type;if(z==null||typeof z=="string")return;var q;if(typeof z=="function")q=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===l||z.$$typeof===f))q=z.propTypes;else return;if(q){var ie=I(z);QH(q,P.props,"prop",ie,P)}else if(z.PropTypes!==void 0&&!gm){gm=!0;var Se=I(z);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Se||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pU(P){{for(var z=Object.keys(P.props),q=0;q<z.length;q++){var ie=z[q];if(ie!=="children"&&ie!=="key"){oa(P),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),oa(null);break}}P.ref!==null&&(oa(P),b("Invalid attribute `ref` supplied to `React.Fragment`."),oa(null))}}var sA={};function lA(P,z,q,ie,Se,Ne){{var fe=$(P);if(!fe){var ce="";(P===void 0||typeof P=="object"&&P!==null&&Object.keys(P).length===0)&&(ce+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Mt=fU();Mt?ce+=Mt:ce+=nA();var rt;P===null?rt="null":pm(P)?rt="array":P!==void 0&&P.$$typeof===t?(rt="<"+(I(P.type)||"Unknown")+" />",ce=" Did you accidentally export a JSX literal instead of a component?"):rt=typeof P,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",rt,ce)}var ot=uU(P,z,q,Se,Ne);if(ot==null)return ot;if(fe){var hr=z.children;if(hr!==void 0)if(ie)if(pm(hr)){for(var sa=0;sa<hr.length;sa++)oA(hr[sa],P);Object.freeze&&Object.freeze(hr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else oA(hr,P)}if(dt.call(z,"key")){var bi=I(P),zt=Object.keys(z).filter(function(xU){return xU!=="key"}),ym=zt.length>0?"{key: someKey, "+zt.join(": ..., ")+": ...}":"{key: someKey}";if(!sA[bi+ym]){var bU=zt.length>0?"{"+zt.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+q+">.")}return z}}function oA(P,z){{if(!P._store||P._store.validated||P.key!=null)return;P._store.validated=!0;var q=pU(z);if(aA[q])return;aA[q]=!0;var ie="";P&&P._owner&&P._owner!==vm.current&&(ie=" It was passed a child from "+I(P._owner.type)+"."),sa(P),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',q,ie),sa(null)}}function sA(P,z){{if(typeof P!="object")return;if(gm(P))for(var q=0;q<P.length;q++){var ie=P[q];bm(ie)&&oA(ie,z)}else if(bm(P))P._store&&(P._store.validated=!0);else if(P){var Se=g(P);if(typeof Se=="function"&&Se!==P.entries)for(var Ne=Se.call(P),fe;!(fe=Ne.next()).done;)bm(fe.value)&&oA(fe.value,z)}}}function mU(P){{var z=P.type;if(z==null||typeof z=="string")return;var q;if(typeof z=="function")q=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===l||z.$$typeof===f))q=z.propTypes;else return;if(q){var ie=I(z);tU(q,P.props,"prop",ie,P)}else if(z.PropTypes!==void 0&&!ym){ym=!0;var Se=I(z);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Se||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gU(P){{for(var z=Object.keys(P.props),q=0;q<z.length;q++){var ie=z[q];if(ie!=="children"&&ie!=="key"){sa(P),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),sa(null);break}}P.ref!==null&&(sa(P),b("Invalid attribute `ref` supplied to `React.Fragment`."),sa(null))}}var lA={};function cA(P,z,q,ie,Se,Ne){{var fe=$(P);if(!fe){var ce="";(P===void 0||typeof P=="object"&&P!==null&&Object.keys(P).length===0)&&(ce+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Mt=hU();Mt?ce+=Mt:ce+=iA();var rt;P===null?rt="null":gm(P)?rt="array":P!==void 0&&P.$$typeof===t?(rt="<"+(I(P.type)||"Unknown")+" />",ce=" Did you accidentally export a JSX literal instead of a component?"):rt=typeof P,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",rt,ce)}var ot=dU(P,z,q,Se,Ne);if(ot==null)return ot;if(fe){var hr=z.children;if(hr!==void 0)if(ie)if(gm(hr)){for(var la=0;la<hr.length;la++)sA(hr[la],P);Object.freeze&&Object.freeze(hr)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else sA(hr,P)}if(dt.call(z,"key")){var xi=I(P),zt=Object.keys(z).filter(function(_U){return _U!=="key"}),xm=zt.length>0?"{key: someKey, "+zt.join(": ..., ")+": ...}":"{key: someKey}";if(!lA[xi+xm]){var wU=zt.length>0?"{"+zt.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ym,bi,bU,bi),sA[bi+ym]=!0}}return P===n?pU(ot):hU(ot),ot}}function mU(P,z,q){return lA(P,z,q,!0)}function gU(P,z,q){return lA(P,z,q,!1)}var vU=gU,yU=mU;ca.Fragment=n,ca.jsx=vU,ca.jsxs=yU})()),ca}var wm;function hA(){return wm||(wm=1,process.env.NODE_ENV==="production"?zo.exports=fA():zo.exports=dA()),zo.exports}var y=hA();const Ie=({title:e,icon:t,period:r,children:n,footer:i,className:a="",childrenClassName:o,titleWeight:s})=>{const l=s==="semi-bold"?600:500;return y.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,y.jsx("div",{style:{fontWeight:l,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),r&&y.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:r})]}),y.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${o}`,children:n}),i&&y.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:i})]})},_m=e=>e,pA=(()=>{let e=_m;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_m}}})();function sn(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function Nn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":sn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Wo={exports:{}},Vo={exports:{}},xe={};/** @license React v16.13.1
30
+ <%s key={someKey} {...props} />`,xm,xi,wU,xi),lA[xi+xm]=!0}}return P===n?gU(ot):mU(ot),ot}}function vU(P,z,q){return cA(P,z,q,!0)}function yU(P,z,q){return cA(P,z,q,!1)}var bU=yU,xU=vU;ua.Fragment=n,ua.jsx=bU,ua.jsxs=xU})()),ua}var Sm;function pA(){return Sm||(Sm=1,process.env.NODE_ENV==="production"?Wo.exports=dA():Wo.exports=hA()),Wo.exports}var y=pA();const Ie=({title:e,icon:t,period:r,children:n,footer:i,className:a="",childrenClassName:o,titleWeight:s})=>{const l=s==="semi-bold"?600:500;return y.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,y.jsx("div",{style:{fontWeight:l,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),r&&y.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:r})]}),y.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${o}`,children:n}),i&&y.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:i})]})},Om=e=>e,mA=(()=>{let e=Om;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Om}}})();function sn(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function Nn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":sn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Vo={exports:{}},Ho={exports:{}},xe={};/** @license React v16.13.1
31
31
  * react-is.production.min.js
32
32
  *
33
33
  * Copyright (c) Facebook, Inc. and its affiliates.
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var Sm;function mA(){if(Sm)return xe;Sm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case t:switch(w=w.type,w){case l:case c:case n:case a:case i:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case m:case h:case o:return w;default:return O}}case r:return O}}}function S(w){return x(w)===c}return xe.AsyncMode=l,xe.ConcurrentMode=c,xe.ContextConsumer=s,xe.ContextProvider=o,xe.Element=t,xe.ForwardRef=u,xe.Fragment=n,xe.Lazy=m,xe.Memo=h,xe.Portal=r,xe.Profiler=a,xe.StrictMode=i,xe.Suspense=f,xe.isAsyncMode=function(w){return S(w)||x(w)===l},xe.isConcurrentMode=S,xe.isContextConsumer=function(w){return x(w)===s},xe.isContextProvider=function(w){return x(w)===o},xe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},xe.isForwardRef=function(w){return x(w)===u},xe.isFragment=function(w){return x(w)===n},xe.isLazy=function(w){return x(w)===m},xe.isMemo=function(w){return x(w)===h},xe.isPortal=function(w){return x(w)===r},xe.isProfiler=function(w){return x(w)===a},xe.isStrictMode=function(w){return x(w)===i},xe.isSuspense=function(w){return x(w)===f},xe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===c||w===a||w===i||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===o||w.$$typeof===s||w.$$typeof===u||w.$$typeof===g||w.$$typeof===v||w.$$typeof===b||w.$$typeof===p)},xe.typeOf=x,xe}var we={};/** @license React v16.13.1
37
+ */var Am;function gA(){if(Am)return xe;Am=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case t:switch(w=w.type,w){case l:case c:case n:case a:case i:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case u:case m:case h:case o:return w;default:return O}}case r:return O}}}function S(w){return x(w)===c}return xe.AsyncMode=l,xe.ConcurrentMode=c,xe.ContextConsumer=s,xe.ContextProvider=o,xe.Element=t,xe.ForwardRef=u,xe.Fragment=n,xe.Lazy=m,xe.Memo=h,xe.Portal=r,xe.Profiler=a,xe.StrictMode=i,xe.Suspense=f,xe.isAsyncMode=function(w){return S(w)||x(w)===l},xe.isConcurrentMode=S,xe.isContextConsumer=function(w){return x(w)===s},xe.isContextProvider=function(w){return x(w)===o},xe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},xe.isForwardRef=function(w){return x(w)===u},xe.isFragment=function(w){return x(w)===n},xe.isLazy=function(w){return x(w)===m},xe.isMemo=function(w){return x(w)===h},xe.isPortal=function(w){return x(w)===r},xe.isProfiler=function(w){return x(w)===a},xe.isStrictMode=function(w){return x(w)===i},xe.isSuspense=function(w){return x(w)===f},xe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===c||w===a||w===i||w===f||w===d||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===o||w.$$typeof===s||w.$$typeof===u||w.$$typeof===g||w.$$typeof===v||w.$$typeof===b||w.$$typeof===p)},xe.typeOf=x,xe}var we={};/** @license React v16.13.1
38
38
  * react-is.development.js
39
39
  *
40
40
  * Copyright (c) Facebook, Inc. and its affiliates.
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var Om;function gA(){return Om||(Om=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(T){return typeof T=="string"||typeof T=="function"||T===n||T===c||T===a||T===i||T===f||T===d||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===o||T.$$typeof===s||T.$$typeof===u||T.$$typeof===g||T.$$typeof===v||T.$$typeof===b||T.$$typeof===p)}function S(T){if(typeof T=="object"&&T!==null){var De=T.$$typeof;switch(De){case t:var pe=T.type;switch(pe){case l:case c:case n:case a:case i:case f:return pe;default:var tt=pe&&pe.$$typeof;switch(tt){case s:case u:case m:case h:case o:return tt;default:return De}}case r:return De}}}var w=l,O=c,E=s,C=o,M=t,$=u,j=n,_=m,I=h,D=r,L=a,W=i,H=f,te=!1;function Q(T){return te||(te=!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.")),F(T)||S(T)===l}function F(T){return S(T)===c}function U(T){return S(T)===s}function V(T){return S(T)===o}function re(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function Z(T){return S(T)===u}function J(T){return S(T)===n}function ee(T){return S(T)===m}function oe(T){return S(T)===h}function le(T){return S(T)===r}function B(T){return S(T)===a}function K(T){return S(T)===i}function ne(T){return S(T)===f}we.AsyncMode=w,we.ConcurrentMode=O,we.ContextConsumer=E,we.ContextProvider=C,we.Element=M,we.ForwardRef=$,we.Fragment=j,we.Lazy=_,we.Memo=I,we.Portal=D,we.Profiler=L,we.StrictMode=W,we.Suspense=H,we.isAsyncMode=Q,we.isConcurrentMode=F,we.isContextConsumer=U,we.isContextProvider=V,we.isElement=re,we.isForwardRef=Z,we.isFragment=J,we.isLazy=ee,we.isMemo=oe,we.isPortal=le,we.isProfiler=B,we.isStrictMode=K,we.isSuspense=ne,we.isValidElementType=x,we.typeOf=S})()),we}var Am;function Em(){return Am||(Am=1,process.env.NODE_ENV==="production"?Vo.exports=mA():Vo.exports=gA()),Vo.exports}/*
44
+ */var Em;function vA(){return Em||(Em=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(T){return typeof T=="string"||typeof T=="function"||T===n||T===c||T===a||T===i||T===f||T===d||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===o||T.$$typeof===s||T.$$typeof===u||T.$$typeof===g||T.$$typeof===v||T.$$typeof===b||T.$$typeof===p)}function S(T){if(typeof T=="object"&&T!==null){var De=T.$$typeof;switch(De){case t:var pe=T.type;switch(pe){case l:case c:case n:case a:case i:case f:return pe;default:var tt=pe&&pe.$$typeof;switch(tt){case s:case u:case m:case h:case o:return tt;default:return De}}case r:return De}}}var w=l,O=c,E=s,C=o,M=t,$=u,j=n,_=m,I=h,D=r,L=a,W=i,H=f,te=!1;function Q(T){return te||(te=!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.")),F(T)||S(T)===l}function F(T){return S(T)===c}function U(T){return S(T)===s}function V(T){return S(T)===o}function re(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function Z(T){return S(T)===u}function J(T){return S(T)===n}function ee(T){return S(T)===m}function oe(T){return S(T)===h}function le(T){return S(T)===r}function B(T){return S(T)===a}function K(T){return S(T)===i}function ne(T){return S(T)===f}we.AsyncMode=w,we.ConcurrentMode=O,we.ContextConsumer=E,we.ContextProvider=C,we.Element=M,we.ForwardRef=$,we.Fragment=j,we.Lazy=_,we.Memo=I,we.Portal=D,we.Profiler=L,we.StrictMode=W,we.Suspense=H,we.isAsyncMode=Q,we.isConcurrentMode=F,we.isContextConsumer=U,we.isContextProvider=V,we.isElement=re,we.isForwardRef=Z,we.isFragment=J,we.isLazy=ee,we.isMemo=oe,we.isPortal=le,we.isProfiler=B,we.isStrictMode=K,we.isSuspense=ne,we.isValidElementType=x,we.typeOf=S})()),we}var Pm;function Cm(){return Pm||(Pm=1,process.env.NODE_ENV==="production"?Ho.exports=gA():Ho.exports=vA()),Ho.exports}/*
45
45
  object-assign
46
46
  (c) Sindre Sorhus
47
47
  @license MIT
48
- */var $c,Pm;function vA(){if(Pm)return $c;Pm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $c=i()?Object.assign:function(a,o){for(var s,l=n(a),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){c=e(s);for(var d=0;d<c.length;d++)r.call(s,c[d])&&(l[c[d]]=s[c[d]])}}return l},$c}var Rc,Cm;function Lc(){if(Cm)return Rc;Cm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Rc=e,Rc}var Fc,km;function Tm(){return km||(km=1,Fc=Function.call.bind(Object.prototype.hasOwnProperty)),Fc}var Bc,Mm;function yA(){if(Mm)return Bc;Mm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lc(),r={},n=Tm();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in a)if(n(a,u)){var f;try{if(typeof a[u]!="function"){var d=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[u](o,u,l,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Bc=i,Bc}var zc,jm;function bA(){if(jm)return zc;jm=1;var e=Em(),t=vA(),r=Lc(),n=Tm(),i=yA(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return zc=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(F){var U=F&&(c&&F[c]||F[u]);if(typeof U=="function")return U}var d="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:b(),arrayOf:x,element:S(),elementType:w(),instanceOf:O,node:$(),objectOf:C,oneOf:E,oneOfType:M,shape:_,exact:I};function m(F,U){return F===U?F!==0||1/F===1/U:F!==F&&U!==U}function p(F,U){this.message=F,this.data=U&&typeof U=="object"?U:{},this.stack=""}p.prototype=Error.prototype;function g(F){if(process.env.NODE_ENV!=="production")var U={},V=0;function re(J,ee,oe,le,B,K,ne){if(le=le||d,K=K||oe,ne!==r){if(l){var T=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 T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var De=le+":"+oe;!U[De]&&V<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+le+"`. 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[De]=!0,V++)}}return ee[oe]==null?J?ee[oe]===null?new p("The "+B+" `"+K+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new p("The "+B+" `"+K+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:F(ee,oe,le,B,K)}var Z=re.bind(null,!1);return Z.isRequired=re.bind(null,!0),Z}function v(F){function U(V,re,Z,J,ee,oe){var le=V[re],B=W(le);if(B!==F){var K=H(le);return new p("Invalid "+J+" `"+ee+"` of type "+("`"+K+"` supplied to `"+Z+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return g(U)}function b(){return g(o)}function x(F){function U(V,re,Z,J,ee){if(typeof F!="function")return new p("Property `"+ee+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var oe=V[re];if(!Array.isArray(oe)){var le=W(oe);return new p("Invalid "+J+" `"+ee+"` of type "+("`"+le+"` supplied to `"+Z+"`, expected an array."))}for(var B=0;B<oe.length;B++){var K=F(oe,B,Z,J,ee+"["+B+"]",r);if(K instanceof Error)return K}return null}return g(U)}function S(){function F(U,V,re,Z,J){var ee=U[V];if(!s(ee)){var oe=W(ee);return new p("Invalid "+Z+" `"+J+"` of type "+("`"+oe+"` supplied to `"+re+"`, expected a single ReactElement."))}return null}return g(F)}function w(){function F(U,V,re,Z,J){var ee=U[V];if(!e.isValidElementType(ee)){var oe=W(ee);return new p("Invalid "+Z+" `"+J+"` of type "+("`"+oe+"` supplied to `"+re+"`, expected a single ReactElement type."))}return null}return g(F)}function O(F){function U(V,re,Z,J,ee){if(!(V[re]instanceof F)){var oe=F.name||d,le=Q(V[re]);return new p("Invalid "+J+" `"+ee+"` of type "+("`"+le+"` supplied to `"+Z+"`, expected ")+("instance of `"+oe+"`."))}return null}return g(U)}function E(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function U(V,re,Z,J,ee){for(var oe=V[re],le=0;le<F.length;le++)if(m(oe,F[le]))return null;var B=JSON.stringify(F,function(ne,T){var De=H(T);return De==="symbol"?String(T):T});return new p("Invalid "+J+" `"+ee+"` of value `"+String(oe)+"` "+("supplied to `"+Z+"`, expected one of "+B+"."))}return g(U)}function C(F){function U(V,re,Z,J,ee){if(typeof F!="function")return new p("Property `"+ee+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var oe=V[re],le=W(oe);if(le!=="object")return new p("Invalid "+J+" `"+ee+"` of type "+("`"+le+"` supplied to `"+Z+"`, expected an object."));for(var B in oe)if(n(oe,B)){var K=F(oe,B,Z,J,ee+"."+B,r);if(K instanceof Error)return K}return null}return g(U)}function M(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var U=0;U<F.length;U++){var V=F[U];if(typeof V!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(V)+" at index "+U+"."),o}function re(Z,J,ee,oe,le){for(var B=[],K=0;K<F.length;K++){var ne=F[K],T=ne(Z,J,ee,oe,le,r);if(T==null)return null;T.data&&n(T.data,"expectedType")&&B.push(T.data.expectedType)}var De=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new p("Invalid "+oe+" `"+le+"` supplied to "+("`"+ee+"`"+De+"."))}return g(re)}function $(){function F(U,V,re,Z,J){return D(U[V])?null:new p("Invalid "+Z+" `"+J+"` supplied to "+("`"+re+"`, expected a ReactNode."))}return g(F)}function j(F,U,V,re,Z){return new p((F||"React class")+": "+U+" type `"+V+"."+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function _(F){function U(V,re,Z,J,ee){var oe=V[re],le=W(oe);if(le!=="object")return new p("Invalid "+J+" `"+ee+"` of type `"+le+"` "+("supplied to `"+Z+"`, expected `object`."));for(var B in F){var K=F[B];if(typeof K!="function")return j(Z,J,ee,B,H(K));var ne=K(oe,B,Z,J,ee+"."+B,r);if(ne)return ne}return null}return g(U)}function I(F){function U(V,re,Z,J,ee){var oe=V[re],le=W(oe);if(le!=="object")return new p("Invalid "+J+" `"+ee+"` of type `"+le+"` "+("supplied to `"+Z+"`, expected `object`."));var B=t({},V[re],F);for(var K in B){var ne=F[K];if(n(F,K)&&typeof ne!="function")return j(Z,J,ee,K,H(ne));if(!ne)return new p("Invalid "+J+" `"+ee+"` key `"+K+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(V[re],null," ")+`
49
- Valid keys: `+JSON.stringify(Object.keys(F),null," "));var T=ne(oe,K,Z,J,ee+"."+K,r);if(T)return T}return null}return g(U)}function D(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(D);if(F===null||s(F))return!0;var U=f(F);if(U){var V=U.call(F),re;if(U!==F.entries){for(;!(re=V.next()).done;)if(!D(re.value))return!1}else for(;!(re=V.next()).done;){var Z=re.value;if(Z&&!D(Z[1]))return!1}}else return!1;return!0;default:return!1}}function L(F,U){return F==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function W(F){var U=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":L(U,F)?"symbol":U}function H(F){if(typeof F>"u"||F===null)return""+F;var U=W(F);if(U==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return U}function te(F){var U=H(F);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function Q(F){return!F.constructor||!F.constructor.name?d:F.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},zc}var Wc,Dm;function xA(){if(Dm)return Wc;Dm=1;var e=Lc();function t(){}function r(){}return r.resetWarningCache=t,Wc=function(){function n(o,s,l,c,u,f){if(f!==e){var d=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 d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Wc}var Nm;function wA(){if(Nm)return Wo.exports;if(Nm=1,process.env.NODE_ENV!=="production"){var e=Em(),t=!0;Wo.exports=bA()(e.isElement,t)}else Wo.exports=xA()();return Wo.exports}var _A=wA();const me=Ir(_A);function Im(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Im(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function de(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Im(e))&&(n&&(n+=" "),n+=t);return n}function SA(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let o="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(o+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(o+=" "+r[c]))}n[i]=o}return n}var Ho={exports:{}},Ce={};/**
48
+ */var Rc,km;function yA(){if(km)return Rc;km=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rc=i()?Object.assign:function(a,o){for(var s,l=n(a),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){c=e(s);for(var d=0;d<c.length;d++)r.call(s,c[d])&&(l[c[d]]=s[c[d]])}}return l},Rc}var Lc,Tm;function Fc(){if(Tm)return Lc;Tm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lc=e,Lc}var Bc,Mm;function jm(){return Mm||(Mm=1,Bc=Function.call.bind(Object.prototype.hasOwnProperty)),Bc}var zc,Dm;function bA(){if(Dm)return zc;Dm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fc(),r={},n=jm();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in a)if(n(a,u)){var f;try{if(typeof a[u]!="function"){var d=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[u](o,u,l,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},zc=i,zc}var Wc,Nm;function xA(){if(Nm)return Wc;Nm=1;var e=Cm(),t=yA(),r=Fc(),n=jm(),i=bA(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Wc=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(F){var U=F&&(c&&F[c]||F[u]);if(typeof U=="function")return U}var d="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:b(),arrayOf:x,element:S(),elementType:w(),instanceOf:O,node:$(),objectOf:C,oneOf:E,oneOfType:M,shape:_,exact:I};function m(F,U){return F===U?F!==0||1/F===1/U:F!==F&&U!==U}function p(F,U){this.message=F,this.data=U&&typeof U=="object"?U:{},this.stack=""}p.prototype=Error.prototype;function g(F){if(process.env.NODE_ENV!=="production")var U={},V=0;function re(J,ee,oe,le,B,K,ne){if(le=le||d,K=K||oe,ne!==r){if(l){var T=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 T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var De=le+":"+oe;!U[De]&&V<3&&(a("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+le+"`. 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[De]=!0,V++)}}return ee[oe]==null?J?ee[oe]===null?new p("The "+B+" `"+K+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new p("The "+B+" `"+K+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:F(ee,oe,le,B,K)}var Z=re.bind(null,!1);return Z.isRequired=re.bind(null,!0),Z}function v(F){function U(V,re,Z,J,ee,oe){var le=V[re],B=W(le);if(B!==F){var K=H(le);return new p("Invalid "+J+" `"+ee+"` of type "+("`"+K+"` supplied to `"+Z+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return g(U)}function b(){return g(o)}function x(F){function U(V,re,Z,J,ee){if(typeof F!="function")return new p("Property `"+ee+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var oe=V[re];if(!Array.isArray(oe)){var le=W(oe);return new p("Invalid "+J+" `"+ee+"` of type "+("`"+le+"` supplied to `"+Z+"`, expected an array."))}for(var B=0;B<oe.length;B++){var K=F(oe,B,Z,J,ee+"["+B+"]",r);if(K instanceof Error)return K}return null}return g(U)}function S(){function F(U,V,re,Z,J){var ee=U[V];if(!s(ee)){var oe=W(ee);return new p("Invalid "+Z+" `"+J+"` of type "+("`"+oe+"` supplied to `"+re+"`, expected a single ReactElement."))}return null}return g(F)}function w(){function F(U,V,re,Z,J){var ee=U[V];if(!e.isValidElementType(ee)){var oe=W(ee);return new p("Invalid "+Z+" `"+J+"` of type "+("`"+oe+"` supplied to `"+re+"`, expected a single ReactElement type."))}return null}return g(F)}function O(F){function U(V,re,Z,J,ee){if(!(V[re]instanceof F)){var oe=F.name||d,le=Q(V[re]);return new p("Invalid "+J+" `"+ee+"` of type "+("`"+le+"` supplied to `"+Z+"`, expected ")+("instance of `"+oe+"`."))}return null}return g(U)}function E(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function U(V,re,Z,J,ee){for(var oe=V[re],le=0;le<F.length;le++)if(m(oe,F[le]))return null;var B=JSON.stringify(F,function(ne,T){var De=H(T);return De==="symbol"?String(T):T});return new p("Invalid "+J+" `"+ee+"` of value `"+String(oe)+"` "+("supplied to `"+Z+"`, expected one of "+B+"."))}return g(U)}function C(F){function U(V,re,Z,J,ee){if(typeof F!="function")return new p("Property `"+ee+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var oe=V[re],le=W(oe);if(le!=="object")return new p("Invalid "+J+" `"+ee+"` of type "+("`"+le+"` supplied to `"+Z+"`, expected an object."));for(var B in oe)if(n(oe,B)){var K=F(oe,B,Z,J,ee+"."+B,r);if(K instanceof Error)return K}return null}return g(U)}function M(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var U=0;U<F.length;U++){var V=F[U];if(typeof V!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(V)+" at index "+U+"."),o}function re(Z,J,ee,oe,le){for(var B=[],K=0;K<F.length;K++){var ne=F[K],T=ne(Z,J,ee,oe,le,r);if(T==null)return null;T.data&&n(T.data,"expectedType")&&B.push(T.data.expectedType)}var De=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new p("Invalid "+oe+" `"+le+"` supplied to "+("`"+ee+"`"+De+"."))}return g(re)}function $(){function F(U,V,re,Z,J){return D(U[V])?null:new p("Invalid "+Z+" `"+J+"` supplied to "+("`"+re+"`, expected a ReactNode."))}return g(F)}function j(F,U,V,re,Z){return new p((F||"React class")+": "+U+" type `"+V+"."+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function _(F){function U(V,re,Z,J,ee){var oe=V[re],le=W(oe);if(le!=="object")return new p("Invalid "+J+" `"+ee+"` of type `"+le+"` "+("supplied to `"+Z+"`, expected `object`."));for(var B in F){var K=F[B];if(typeof K!="function")return j(Z,J,ee,B,H(K));var ne=K(oe,B,Z,J,ee+"."+B,r);if(ne)return ne}return null}return g(U)}function I(F){function U(V,re,Z,J,ee){var oe=V[re],le=W(oe);if(le!=="object")return new p("Invalid "+J+" `"+ee+"` of type `"+le+"` "+("supplied to `"+Z+"`, expected `object`."));var B=t({},V[re],F);for(var K in B){var ne=F[K];if(n(F,K)&&typeof ne!="function")return j(Z,J,ee,K,H(ne));if(!ne)return new p("Invalid "+J+" `"+ee+"` key `"+K+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(V[re],null," ")+`
49
+ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var T=ne(oe,K,Z,J,ee+"."+K,r);if(T)return T}return null}return g(U)}function D(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(D);if(F===null||s(F))return!0;var U=f(F);if(U){var V=U.call(F),re;if(U!==F.entries){for(;!(re=V.next()).done;)if(!D(re.value))return!1}else for(;!(re=V.next()).done;){var Z=re.value;if(Z&&!D(Z[1]))return!1}}else return!1;return!0;default:return!1}}function L(F,U){return F==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function W(F){var U=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":L(U,F)?"symbol":U}function H(F){if(typeof F>"u"||F===null)return""+F;var U=W(F);if(U==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return U}function te(F){var U=H(F);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function Q(F){return!F.constructor||!F.constructor.name?d:F.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Wc}var Vc,Im;function wA(){if(Im)return Vc;Im=1;var e=Fc();function t(){}function r(){}return r.resetWarningCache=t,Vc=function(){function n(o,s,l,c,u,f){if(f!==e){var d=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 d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Vc}var $m;function _A(){if($m)return Vo.exports;if($m=1,process.env.NODE_ENV!=="production"){var e=Cm(),t=!0;Vo.exports=xA()(e.isElement,t)}else Vo.exports=wA()();return Vo.exports}var SA=_A();const me=Ir(SA);function Rm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Rm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function de(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Rm(e))&&(n&&(n+=" "),n+=t);return n}function OA(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let o="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(o+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(o+=" "+r[c]))}n[i]=o}return n}var Uo={exports:{}},Ce={};/**
50
50
  * @license React
51
51
  * react-is.production.js
52
52
  *
@@ -54,7 +54,7 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var T=ne(oe,K,Z,J,ee+"."
54
54
  *
55
55
  * This source code is licensed under the MIT license found in the
56
56
  * LICENSE file in the root directory of this source tree.
57
- */var $m;function OA(){if($m)return Ce;$m=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case l:case c:case d:return p;default:switch(p=p&&p.$$typeof,p){case o:case s:case f:case u:return p;case a:return p;default:return g}}case t:return g}}}return Ce.ContextConsumer=a,Ce.ContextProvider=o,Ce.Element=e,Ce.ForwardRef=s,Ce.Fragment=r,Ce.Lazy=f,Ce.Memo=u,Ce.Portal=t,Ce.Profiler=i,Ce.StrictMode=n,Ce.Suspense=l,Ce.SuspenseList=c,Ce.isContextConsumer=function(p){return m(p)===a},Ce.isContextProvider=function(p){return m(p)===o},Ce.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Ce.isForwardRef=function(p){return m(p)===s},Ce.isFragment=function(p){return m(p)===r},Ce.isLazy=function(p){return m(p)===f},Ce.isMemo=function(p){return m(p)===u},Ce.isPortal=function(p){return m(p)===t},Ce.isProfiler=function(p){return m(p)===i},Ce.isStrictMode=function(p){return m(p)===n},Ce.isSuspense=function(p){return m(p)===l},Ce.isSuspenseList=function(p){return m(p)===c},Ce.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===l||p===c||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===u||p.$$typeof===o||p.$$typeof===a||p.$$typeof===s||p.$$typeof===h||p.getModuleId!==void 0)},Ce.typeOf=m,Ce}var ke={};/**
57
+ */var Lm;function AA(){if(Lm)return Ce;Lm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case l:case c:case d:return p;default:switch(p=p&&p.$$typeof,p){case o:case s:case f:case u:return p;case a:return p;default:return g}}case t:return g}}}return Ce.ContextConsumer=a,Ce.ContextProvider=o,Ce.Element=e,Ce.ForwardRef=s,Ce.Fragment=r,Ce.Lazy=f,Ce.Memo=u,Ce.Portal=t,Ce.Profiler=i,Ce.StrictMode=n,Ce.Suspense=l,Ce.SuspenseList=c,Ce.isContextConsumer=function(p){return m(p)===a},Ce.isContextProvider=function(p){return m(p)===o},Ce.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Ce.isForwardRef=function(p){return m(p)===s},Ce.isFragment=function(p){return m(p)===r},Ce.isLazy=function(p){return m(p)===f},Ce.isMemo=function(p){return m(p)===u},Ce.isPortal=function(p){return m(p)===t},Ce.isProfiler=function(p){return m(p)===i},Ce.isStrictMode=function(p){return m(p)===n},Ce.isSuspense=function(p){return m(p)===l},Ce.isSuspenseList=function(p){return m(p)===c},Ce.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===l||p===c||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===u||p.$$typeof===o||p.$$typeof===a||p.$$typeof===s||p.$$typeof===h||p.getModuleId!==void 0)},Ce.typeOf=m,Ce}var ke={};/**
58
58
  * @license React
59
59
  * react-is.development.js
60
60
  *
@@ -62,20 +62,20 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var T=ne(oe,K,Z,J,ee+"."
62
62
  *
63
63
  * This source code is licensed under the MIT license found in the
64
64
  * LICENSE file in the root directory of this source tree.
65
- */var Rm;function AA(){return Rm||(Rm=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case t:switch(p=p.type,p){case n:case a:case i:case c:case u:case h:return p;default:switch(p=p&&p.$$typeof,p){case s:case l:case d:case f:return p;case o:return p;default:return g}}case r:return g}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");ke.ContextConsumer=o,ke.ContextProvider=s,ke.Element=t,ke.ForwardRef=l,ke.Fragment=n,ke.Lazy=d,ke.Memo=f,ke.Portal=r,ke.Profiler=a,ke.StrictMode=i,ke.Suspense=c,ke.SuspenseList=u,ke.isContextConsumer=function(p){return e(p)===o},ke.isContextProvider=function(p){return e(p)===s},ke.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ke.isForwardRef=function(p){return e(p)===l},ke.isFragment=function(p){return e(p)===n},ke.isLazy=function(p){return e(p)===d},ke.isMemo=function(p){return e(p)===f},ke.isPortal=function(p){return e(p)===r},ke.isProfiler=function(p){return e(p)===a},ke.isStrictMode=function(p){return e(p)===i},ke.isSuspense=function(p){return e(p)===c},ke.isSuspenseList=function(p){return e(p)===u},ke.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===a||p===i||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===s||p.$$typeof===o||p.$$typeof===l||p.$$typeof===m||p.getModuleId!==void 0)},ke.typeOf=e})()),ke}var Lm;function EA(){return Lm||(Lm=1,process.env.NODE_ENV==="production"?Ho.exports=OA():Ho.exports=AA()),Ho.exports}var ua=EA();function $r(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 Fm(e){if(A.isValidElement(e)||ua.isValidElementType(e)||!$r(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Fm(e[r])}),t}function Wt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return $r(e)&&$r(t)&&Object.keys(t).forEach(i=>{A.isValidElement(t[i])||ua.isValidElementType(t[i])?n[i]=t[i]:$r(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&$r(e[i])?n[i]=Wt(e[i],t[i],r):r.clone?n[i]=$r(t[i])?Fm(t[i]):t[i]:n[i]=t[i]}),n}function fa(e,t){return t?Wt(e,t,{clone:!1}):e}const ln=process.env.NODE_ENV!=="production"?me.oneOfType([me.number,me.string,me.object,me.array]):{};function Bm(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(i.match(a)?.[1]||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function PA(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function CA(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){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>\`.
66
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sn(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function kA(e){const t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function r(a,o){a.up=(...s)=>t(e.breakpoints.up(...s),o),a.down=(...s)=>t(e.breakpoints.down(...s),o),a.between=(...s)=>t(e.breakpoints.between(...s),o),a.only=(...s)=>t(e.breakpoints.only(...s),o),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),o);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},i=a=>(r(n,a),n);return r(i),{...e,containerQueries:i}}const Uo={xs:0,sm:600,md:900,lg:1200,xl:1536},zm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Uo[e]}px)`},TA={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Uo[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Rr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||zm;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||zm;return Object.keys(t).reduce((o,s)=>{if(PA(a.keys,s)){const l=CA(n.containerQueries?n:TA,s);l&&(o[l]=r(t[s],s))}else if(Object.keys(a.values||Uo).includes(s)){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function MA(e={}){return e.keys?.reduce((r,n)=>{const i=e.up(n);return r[i]={},r},{})||{}}function Wm(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Ko(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function qo(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Ko(e,r)||n,t&&(i=t(i,n,e)),i}function Xe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,c=Ko(l,n)||{};return Rr(o,s,f=>{let d=qo(c,i,f);return f===d&&typeof f=="string"&&(d=qo(c,i,`${t}${f==="default"?"":Nn(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:ln}:{},a.filterProps=[t],a}function jA(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const DA={m:"margin",p:"padding"},NA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},IA=jA(e=>{if(e.length>2)if(Vm[e])e=Vm[e];else return[e];const[t,r]=e.split(""),n=DA[t],i=NA[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Yo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Go=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],$A=[...Yo,...Go];function da(e,t,r,n){const i=Ko(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof i=="string"?i.startsWith("var(")&&a===0?0:i.startsWith("var(")&&a===1?i:`calc(${a} * ${i})`:i*a):Array.isArray(i)?a=>{if(typeof a=="string")return a;const o=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(o)?o>i.length-1&&console.error([`MUI: The value provided (${o}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${o} > ${i.length-1}, you need to add the missing values.`].join(`
65
+ */var Fm;function EA(){return Fm||(Fm=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case t:switch(p=p.type,p){case n:case a:case i:case c:case u:case h:return p;default:switch(p=p&&p.$$typeof,p){case s:case l:case d:case f:return p;case o:return p;default:return g}}case r:return g}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");ke.ContextConsumer=o,ke.ContextProvider=s,ke.Element=t,ke.ForwardRef=l,ke.Fragment=n,ke.Lazy=d,ke.Memo=f,ke.Portal=r,ke.Profiler=a,ke.StrictMode=i,ke.Suspense=c,ke.SuspenseList=u,ke.isContextConsumer=function(p){return e(p)===o},ke.isContextProvider=function(p){return e(p)===s},ke.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ke.isForwardRef=function(p){return e(p)===l},ke.isFragment=function(p){return e(p)===n},ke.isLazy=function(p){return e(p)===d},ke.isMemo=function(p){return e(p)===f},ke.isPortal=function(p){return e(p)===r},ke.isProfiler=function(p){return e(p)===a},ke.isStrictMode=function(p){return e(p)===i},ke.isSuspense=function(p){return e(p)===c},ke.isSuspenseList=function(p){return e(p)===u},ke.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===a||p===i||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===f||p.$$typeof===s||p.$$typeof===o||p.$$typeof===l||p.$$typeof===m||p.getModuleId!==void 0)},ke.typeOf=e})()),ke}var Bm;function PA(){return Bm||(Bm=1,process.env.NODE_ENV==="production"?Uo.exports=AA():Uo.exports=EA()),Uo.exports}var fa=PA();function $r(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 zm(e){if(A.isValidElement(e)||fa.isValidElementType(e)||!$r(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=zm(e[r])}),t}function Wt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return $r(e)&&$r(t)&&Object.keys(t).forEach(i=>{A.isValidElement(t[i])||fa.isValidElementType(t[i])?n[i]=t[i]:$r(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&$r(e[i])?n[i]=Wt(e[i],t[i],r):r.clone?n[i]=$r(t[i])?zm(t[i]):t[i]:n[i]=t[i]}),n}function da(e,t){return t?Wt(e,t,{clone:!1}):e}const ln=process.env.NODE_ENV!=="production"?me.oneOfType([me.number,me.string,me.object,me.array]):{};function Wm(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(i.match(a)?.[1]||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function CA(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function kA(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){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>\`.
66
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:sn(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function TA(e){const t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function r(a,o){a.up=(...s)=>t(e.breakpoints.up(...s),o),a.down=(...s)=>t(e.breakpoints.down(...s),o),a.between=(...s)=>t(e.breakpoints.between(...s),o),a.only=(...s)=>t(e.breakpoints.only(...s),o),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),o);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},i=a=>(r(n,a),n);return r(i),{...e,containerQueries:i}}const Ko={xs:0,sm:600,md:900,lg:1200,xl:1536},Vm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ko[e]}px)`},MA={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ko[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Rr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Vm;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||Vm;return Object.keys(t).reduce((o,s)=>{if(CA(a.keys,s)){const l=kA(n.containerQueries?n:MA,s);l&&(o[l]=r(t[s],s))}else if(Object.keys(a.values||Ko).includes(s)){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function jA(e={}){return e.keys?.reduce((r,n)=>{const i=e.up(n);return r[i]={},r},{})||{}}function Hm(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function qo(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Yo(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=qo(e,r)||n,t&&(i=t(i,n,e)),i}function Xe(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,c=qo(l,n)||{};return Rr(o,s,f=>{let d=Yo(c,i,f);return f===d&&typeof f=="string"&&(d=Yo(c,i,`${t}${f==="default"?"":Nn(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:ln}:{},a.filterProps=[t],a}function DA(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const NA={m:"margin",p:"padding"},IA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Um={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$A=DA(e=>{if(e.length>2)if(Um[e])e=Um[e];else return[e];const[t,r]=e.split(""),n=NA[t],i=IA[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Go=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],RA=[...Go,...Xo];function ha(e,t,r,n){const i=qo(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof i=="string"?i.startsWith("var(")&&a===0?0:i.startsWith("var(")&&a===1?i:`calc(${a} * ${i})`:i*a):Array.isArray(i)?a=>{if(typeof a=="string")return a;const o=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(o)?o>i.length-1&&console.error([`MUI: The value provided (${o}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${o} > ${i.length-1}, you need to add the missing values.`].join(`
67
67
  `)):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(`
68
68
  `)));const s=i[o];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
69
- `)),()=>{})}function Vc(e){return da(e,"spacing",8,"spacing")}function ha(e,t){return typeof t=="string"||t==null?t:e(t)}function RA(e,t){return r=>e.reduce((n,i)=>(n[i]=ha(t,r),n),{})}function LA(e,t,r,n){if(!t.includes(r))return null;const i=IA(r),a=RA(i,n),o=e[r];return Rr(e,o,a)}function Hm(e,t){const r=Vc(e.theme);return Object.keys(e).map(n=>LA(e,t,n,r)).reduce(fa,{})}function Ke(e){return Hm(e,Yo)}Ke.propTypes=process.env.NODE_ENV!=="production"?Yo.reduce((e,t)=>(e[t]=ln,e),{}):{},Ke.filterProps=Yo;function qe(e){return Hm(e,Go)}qe.propTypes=process.env.NODE_ENV!=="production"?Go.reduce((e,t)=>(e[t]=ln,e),{}):{},qe.filterProps=Go,process.env.NODE_ENV!=="production"&&$A.reduce((e,t)=>(e[t]=ln,e),{});function Xo(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?fa(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function tr(e){return typeof e!="number"?e:`${e}px solid`}function rr(e,t){return Xe({prop:e,themeKey:"borders",transform:t})}const FA=rr("border",tr),BA=rr("borderTop",tr),zA=rr("borderRight",tr),WA=rr("borderBottom",tr),VA=rr("borderLeft",tr),HA=rr("borderColor"),UA=rr("borderTopColor"),KA=rr("borderRightColor"),qA=rr("borderBottomColor"),YA=rr("borderLeftColor"),GA=rr("outline",tr),XA=rr("outlineColor"),Zo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=da(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ha(t,n)});return Rr(e,e.borderRadius,r)}return null};Zo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ln}:{},Zo.filterProps=["borderRadius"],Xo(FA,BA,zA,WA,VA,HA,UA,KA,qA,YA,Zo,GA,XA);const Jo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=da(e.theme,"spacing",8,"gap"),r=n=>({gap:ha(t,n)});return Rr(e,e.gap,r)}return null};Jo.propTypes=process.env.NODE_ENV!=="production"?{gap:ln}:{},Jo.filterProps=["gap"];const Qo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=da(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ha(t,n)});return Rr(e,e.columnGap,r)}return null};Qo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ln}:{},Qo.filterProps=["columnGap"];const es=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=da(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ha(t,n)});return Rr(e,e.rowGap,r)}return null};es.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ln}:{},es.filterProps=["rowGap"];const ZA=Xe({prop:"gridColumn"}),JA=Xe({prop:"gridRow"}),QA=Xe({prop:"gridAutoFlow"}),eE=Xe({prop:"gridAutoColumns"}),tE=Xe({prop:"gridAutoRows"}),rE=Xe({prop:"gridTemplateColumns"}),nE=Xe({prop:"gridTemplateRows"}),iE=Xe({prop:"gridTemplateAreas"}),aE=Xe({prop:"gridArea"});Xo(Jo,Qo,es,ZA,JA,QA,eE,tE,rE,nE,iE,aE);function xi(e,t){return t==="grey"?t:e}const oE=Xe({prop:"color",themeKey:"palette",transform:xi}),sE=Xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xi}),lE=Xe({prop:"backgroundColor",themeKey:"palette",transform:xi});Xo(oE,sE,lE);function Vt(e){return e<=1&&e!==0?`${e*100}%`:e}const cE=Xe({prop:"width",transform:Vt}),Hc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Uo[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Vt(r)}};return Rr(e,e.maxWidth,t)}return null};Hc.filterProps=["maxWidth"];const uE=Xe({prop:"minWidth",transform:Vt}),fE=Xe({prop:"height",transform:Vt}),dE=Xe({prop:"maxHeight",transform:Vt}),hE=Xe({prop:"minHeight",transform:Vt});Xe({prop:"size",cssProperty:"width",transform:Vt}),Xe({prop:"size",cssProperty:"height",transform:Vt});const pE=Xe({prop:"boxSizing"});Xo(cE,Hc,uE,fE,dE,hE,pE);const ts={border:{themeKey:"borders",transform:tr},borderTop:{themeKey:"borders",transform:tr},borderRight:{themeKey:"borders",transform:tr},borderBottom:{themeKey:"borders",transform:tr},borderLeft:{themeKey:"borders",transform:tr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zo},color:{themeKey:"palette",transform:xi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xi},backgroundColor:{themeKey:"palette",transform:xi},p:{style:qe},pt:{style:qe},pr:{style:qe},pb:{style:qe},pl:{style:qe},px:{style:qe},py:{style:qe},padding:{style:qe},paddingTop:{style:qe},paddingRight:{style:qe},paddingBottom:{style:qe},paddingLeft:{style:qe},paddingX:{style:qe},paddingY:{style:qe},paddingInline:{style:qe},paddingInlineStart:{style:qe},paddingInlineEnd:{style:qe},paddingBlock:{style:qe},paddingBlockStart:{style:qe},paddingBlockEnd:{style:qe},m:{style:Ke},mt:{style:Ke},mr:{style:Ke},mb:{style:Ke},ml:{style:Ke},mx:{style:Ke},my:{style:Ke},margin:{style:Ke},marginTop:{style:Ke},marginRight:{style:Ke},marginBottom:{style:Ke},marginLeft:{style:Ke},marginX:{style:Ke},marginY:{style:Ke},marginInline:{style:Ke},marginInlineStart:{style:Ke},marginInlineEnd:{style:Ke},marginBlock:{style:Ke},marginBlockStart:{style:Ke},marginBlockEnd:{style:Ke},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:Jo},rowGap:{style:es},columnGap:{style:Qo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vt},maxWidth:{style:Hc},minWidth:{transform:Vt},height:{transform:Vt},maxHeight:{transform:Vt},minHeight:{transform:Vt},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 mE(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function gE(e,t){return typeof e=="function"?e(t):e}function vE(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const d=Ko(i,c)||{};return f?f(o):Rr(o,n,m=>{let p=qo(d,u,m);return m===p&&typeof m=="string"&&(p=qo(d,u,`${r}${m==="default"?"":Nn(m)}`,m)),l===!1?p:{[l]:p}})}function t(r){const{sx:n,theme:i={},nested:a}=r||{};if(!n)return null;const o=i.unstable_sxConfig??ts;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=MA(i.breakpoints),f=Object.keys(u);let d=u;return Object.keys(c).forEach(h=>{const m=gE(c[h],i);if(m!=null)if(typeof m=="object")if(o[h])d=fa(d,e(h,m,i,o));else{const p=Rr({theme:i},m,g=>({[h]:g}));mE(p,m)?d[h]=t({sx:m,theme:i,nested:!0}):d=fa(d,p)}else d=fa(d,e(h,m,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Bm(i,Wm(f,d))}:Bm(i,Wm(f,d))}return Array.isArray(n)?n.map(s):s(n)}return t}const wi=vE();wi.filterProps=["sx"];function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uc.apply(null,arguments)}function yE(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 bE(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 xE=(function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bE(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=yE(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Ot="-ms-",rs="-moz-",ve="-webkit-",Um="comm",Kc="rule",qc="decl",wE="@import",Km="@keyframes",_E="@layer",SE=Math.abs,ns=String.fromCharCode,OE=Object.assign;function AE(e,t){return bt(e,0)^45?(((t<<2^bt(e,0))<<2^bt(e,1))<<2^bt(e,2))<<2^bt(e,3):0}function qm(e){return e.trim()}function EE(e,t){return(e=t.exec(e))?e[0]:e}function ye(e,t,r){return e.replace(t,r)}function Yc(e,t){return e.indexOf(t)}function bt(e,t){return e.charCodeAt(t)|0}function pa(e,t,r){return e.slice(t,r)}function xr(e){return e.length}function Gc(e){return e.length}function is(e,t){return t.push(e),e}function PE(e,t){return e.map(t).join("")}var as=1,_i=1,Ym=0,jt=0,nt=0,Si="";function os(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:as,column:_i,length:o,return:""}}function ma(e,t){return OE(os("",null,null,"",null,null,0),e,{length:-e.length},t)}function CE(){return nt}function kE(){return nt=jt>0?bt(Si,--jt):0,_i--,nt===10&&(_i=1,as--),nt}function Ht(){return nt=jt<Ym?bt(Si,jt++):0,_i++,nt===10&&(_i=1,as++),nt}function wr(){return bt(Si,jt)}function ss(){return jt}function ga(e,t){return pa(Si,e,t)}function va(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 Gm(e){return as=_i=1,Ym=xr(Si=e),jt=0,[]}function Xm(e){return Si="",e}function ls(e){return qm(ga(jt-1,Xc(e===91?e+2:e===40?e+1:e)))}function TE(e){for(;(nt=wr())&&nt<33;)Ht();return va(e)>2||va(nt)>3?"":" "}function ME(e,t){for(;--t&&Ht()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return ga(e,ss()+(t<6&&wr()==32&&Ht()==32))}function Xc(e){for(;Ht();)switch(nt){case e:return jt;case 34:case 39:e!==34&&e!==39&&Xc(nt);break;case 40:e===41&&Xc(e);break;case 92:Ht();break}return jt}function jE(e,t){for(;Ht()&&e+nt!==57;)if(e+nt===84&&wr()===47)break;return"/*"+ga(t,jt-1)+"*"+ns(e===47?e:Ht())}function DE(e){for(;!va(wr());)Ht();return ga(e,jt)}function NE(e){return Xm(cs("",null,null,null,[""],e=Gm(e),0,[0],e))}function cs(e,t,r,n,i,a,o,s,l){for(var c=0,u=0,f=o,d=0,h=0,m=0,p=1,g=1,v=1,b=0,x="",S=i,w=a,O=n,E=x;g;)switch(m=b,b=Ht()){case 40:if(m!=108&&bt(E,f-1)==58){Yc(E+=ye(ls(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=ls(b);break;case 9:case 10:case 13:case 32:E+=TE(m);break;case 92:E+=ME(ss()-1,7);continue;case 47:switch(wr()){case 42:case 47:is(IE(jE(Ht(),ss()),t,r),l);break;default:E+="/"}break;case 123*p:s[c++]=xr(E)*v;case 125*p:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:v==-1&&(E=ye(E,/\f/g,"")),h>0&&xr(E)-f&&is(h>32?Jm(E+";",n,r,f-1):Jm(ye(E," ","")+";",n,r,f-2),l);break;case 59:E+=";";default:if(is(O=Zm(E,t,r,c,u,i,s,x,S=[],w=[],f),a),b===123)if(u===0)cs(E,t,O,O,S,a,f,s,w);else switch(d===99&&bt(E,3)===110?100:d){case 100:case 108:case 109:case 115:cs(e,O,O,n&&is(Zm(e,O,O,0,0,i,s,x,i,S=[],f),w),i,w,f,s,n?S:w);break;default:cs(E,O,O,O,[""],w,0,s,w)}}c=u=h=0,p=v=1,x=E="",f=o;break;case 58:f=1+xr(E),h=m;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&kE()==125)continue}switch(E+=ns(b),b*p){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(xr(E)-1)*v,v=1;break;case 64:wr()===45&&(E+=ls(Ht())),d=wr(),u=f=xr(x=E+=DE(ss())),b++;break;case 45:m===45&&xr(E)==2&&(p=0)}}return a}function Zm(e,t,r,n,i,a,o,s,l,c,u){for(var f=i-1,d=i===0?a:[""],h=Gc(d),m=0,p=0,g=0;m<n;++m)for(var v=0,b=pa(e,f+1,f=SE(p=o[m])),x=e;v<h;++v)(x=qm(p>0?d[v]+" "+b:ye(b,/&\f/g,d[v])))&&(l[g++]=x);return os(e,t,r,i===0?Kc:s,l,c,u)}function IE(e,t,r){return os(e,t,r,Um,ns(CE()),pa(e,2,-2),0)}function Jm(e,t,r,n){return os(e,t,r,qc,pa(e,0,n),pa(e,n+1,-1),n)}function Oi(e,t){for(var r="",n=Gc(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function $E(e,t,r,n){switch(e.type){case _E:if(e.children.length)break;case wE:case qc:return e.return=e.return||e.value;case Um:return"";case Km:return e.return=e.value+"{"+Oi(e.children,n)+"}";case Kc:e.value=e.props.join(",")}return xr(r=Oi(e.children,n))?e.return=e.value+"{"+r+"}":""}function RE(e){var t=Gc(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function LE(e){return function(t){t.root||(t=t.return)&&e(t)}}function Qm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var FE=function(t,r,n){for(var i=0,a=0;i=a,a=wr(),i===38&&a===12&&(r[n]=1),!va(a);)Ht();return ga(t,jt)},BE=function(t,r){var n=-1,i=44;do switch(va(i)){case 0:i===38&&wr()===12&&(r[n]=1),t[n]+=FE(jt-1,r,n);break;case 2:t[n]+=ls(i);break;case 4:if(i===44){t[++n]=wr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ns(i)}while(i=Ht());return t},zE=function(t,r){return Xm(BE(Gm(t),r))},eg=new WeakMap,WE=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!eg.get(n))&&!i){eg.set(t,!0);for(var a=[],o=zE(r,a),s=n.props,l=0,c=0;l<o.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=a[l]?o[l].replace(/&\f/g,s[u]):s[u]+" "+o[l]}}},VE=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function tg(e,t){switch(AE(e,t)){case 5103:return ve+"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 ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+e+rs+e+Ot+e+e;case 6828:case 4268:return ve+e+Ot+e+e;case 6165:return ve+e+Ot+"flex-"+e+e;case 5187:return ve+e+ye(e,/(\w+).+(:[^]+)/,ve+"box-$1$2"+Ot+"flex-$1$2")+e;case 5443:return ve+e+Ot+"flex-item-"+ye(e,/flex-|-self/,"")+e;case 4675:return ve+e+Ot+"flex-line-pack"+ye(e,/align-content|flex-|-self/,"")+e;case 5548:return ve+e+Ot+ye(e,"shrink","negative")+e;case 5292:return ve+e+Ot+ye(e,"basis","preferred-size")+e;case 6060:return ve+"box-"+ye(e,"-grow","")+ve+e+Ot+ye(e,"grow","positive")+e;case 4554:return ve+ye(e,/([^-])(transform)/g,"$1"+ve+"$2")+e;case 6187:return ye(ye(ye(e,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),e,"")+e;case 5495:case 3959:return ye(e,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return ye(ye(e,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+Ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+e+e;case 4095:case 3583:case 4068:case 2532:return ye(e,/(.+)-inline(.+)/,ve+"$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(xr(e)-1-t>6)switch(bt(e,t+1)){case 109:if(bt(e,t+4)!==45)break;case 102:return ye(e,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+rs+(bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yc(e,"stretch")?tg(ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(bt(e,t+1)!==115)break;case 6444:switch(bt(e,xr(e)-3-(~Yc(e,"!important")&&10))){case 107:return ye(e,":",":"+ve)+e;case 101:return ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(bt(e,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+Ot+"$2box$3")+e}break;case 5936:switch(bt(e,t+11)){case 114:return ve+e+Ot+ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ve+e+Ot+ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ve+e+Ot+ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ve+e+Ot+e+e}return e}var HE=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case qc:t.return=tg(t.value,t.length);break;case Km:return Oi([ma(t,{value:ye(t.value,"@","@"+ve)})],i);case Kc:if(t.length)return PE(t.props,function(a){switch(EE(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oi([ma(t,{props:[ye(a,/:(read-\w+)/,":"+rs+"$1")]})],i);case"::placeholder":return Oi([ma(t,{props:[ye(a,/:(plac\w+)/,":"+ve+"input-$1")]}),ma(t,{props:[ye(a,/:(plac\w+)/,":"+rs+"$1")]}),ma(t,{props:[ye(a,/:(plac\w+)/,Ot+"input-$1")]})],i)}return""})}},UE=[HE],KE=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||UE,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)a[g[v]]=!0;s.push(p)});var l,c=[WE,VE];{var u,f=[$E,LE(function(p){u.insert(p)})],d=RE(c.concat(i,f)),h=function(g){return Oi(NE(g),d)};l=function(g,v,b,x){u=b,h(g?g+"{"+v.styles+"}":v.styles),x&&(m.inserted[v.name]=!0)}}var m={key:r,sheet:new xE({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return m.sheet.hydrate(s),m},qE=!0;function YE(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var rg=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||qE===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},GE=function(t,r,n){rg(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function XE(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 ZE={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},JE=/[A-Z]|^ms/g,QE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ng=function(t){return t.charCodeAt(1)===45},ig=function(t){return t!=null&&typeof t!="boolean"},Zc=Qm(function(e){return ng(e)?e:e.replace(JE,"-$&").toLowerCase()}),ag=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(QE,function(n,i,a){return _r={name:i,styles:a,next:_r},i})}return ZE[t]!==1&&!ng(t)&&typeof r=="number"&&r!==0?r+"px":r};function ya(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return _r={name:i.name,styles:i.styles,next:_r},i.name;var a=r;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)_r={name:o.name,styles:o.styles,next:_r},o=o.next;var s=a.styles+";";return s}return eP(e,t,r)}case"function":{if(e!==void 0){var l=_r,c=r(e);return _r=l,ya(e,t,c)}break}}var u=r;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function eP(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ya(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?n+=a+"{"+t[s]+"}":ig(s)&&(n+=Zc(a)+":"+ag(a,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)ig(o[l])&&(n+=Zc(a)+":"+ag(a,o[l])+";");else{var c=ya(e,t,o);switch(a){case"animation":case"animationName":{n+=Zc(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}return n}var og=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function sg(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";_r=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=ya(r,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=ya(r,t,e[s]),n){var l=a;i+=l[s]}og.lastIndex=0;for(var c="",u;(u=og.exec(i))!==null;)c+="-"+u[1];var f=XE(i)+c;return{name:f,styles:i,next:_r}}var tP=function(t){return t()},rP=A.useInsertionEffect?A.useInsertionEffect:!1,nP=rP||tP,lg=A.createContext(typeof HTMLElement<"u"?KE({key:"css"}):null);lg.Provider;var iP=function(t){return k.forwardRef(function(r,n){var i=k.useContext(lg);return t(r,i,n)})},aP=A.createContext({}),oP=/^((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)-.*))$/,sP=Qm(function(e){return oP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),lP=sP,cP=function(t){return t!=="theme"},cg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?lP:cP},ug=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},uP=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return rg(r,n,i),nP(function(){return GE(r,n,i)}),null},fP=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=ug(t,r,n),l=s||cg(i),c=!l("as");return function(){var u=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var d=u[0];f.push(d[0]);for(var h=u.length,m=1;m<h;m++)f.push(u[m],d[m])}var p=iP(function(g,v,b){var x=c&&g.as||i,S="",w=[],O=g;if(g.theme==null){O={};for(var E in g)O[E]=g[E];O.theme=A.useContext(aP)}typeof g.className=="string"?S=YE(v.registered,w,g.className):g.className!=null&&(S=g.className+" ");var C=sg(f.concat(w),v.registered,O);S+=v.key+"-"+C.name,o!==void 0&&(S+=" "+o);var M=c&&s===void 0?cg(x):l,$={};for(var j in g)c&&j==="as"||M(j)&&($[j]=g[j]);return $.className=S,b&&($.ref=b),A.createElement(A.Fragment,null,A.createElement(uP,{cache:v,serialized:C,isStringTag:typeof x=="string"}),A.createElement(x,$))});return p.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=i,p.__emotion_styles=f,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+o}}),p.withComponent=function(g,v){var b=e(g,Uc({},r,v,{shouldForwardProp:ug(p,v,!0)}));return b.apply(void 0,f)},p}},dP=["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"],Jc=fP.bind(null);dP.forEach(function(e){Jc[e]=Jc(e)});/**
69
+ `)),()=>{})}function Hc(e){return ha(e,"spacing",8,"spacing")}function pa(e,t){return typeof t=="string"||t==null?t:e(t)}function LA(e,t){return r=>e.reduce((n,i)=>(n[i]=pa(t,r),n),{})}function FA(e,t,r,n){if(!t.includes(r))return null;const i=$A(r),a=LA(i,n),o=e[r];return Rr(e,o,a)}function Km(e,t){const r=Hc(e.theme);return Object.keys(e).map(n=>FA(e,t,n,r)).reduce(da,{})}function Ke(e){return Km(e,Go)}Ke.propTypes=process.env.NODE_ENV!=="production"?Go.reduce((e,t)=>(e[t]=ln,e),{}):{},Ke.filterProps=Go;function qe(e){return Km(e,Xo)}qe.propTypes=process.env.NODE_ENV!=="production"?Xo.reduce((e,t)=>(e[t]=ln,e),{}):{},qe.filterProps=Xo,process.env.NODE_ENV!=="production"&&RA.reduce((e,t)=>(e[t]=ln,e),{});function Zo(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?da(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function tr(e){return typeof e!="number"?e:`${e}px solid`}function rr(e,t){return Xe({prop:e,themeKey:"borders",transform:t})}const BA=rr("border",tr),zA=rr("borderTop",tr),WA=rr("borderRight",tr),VA=rr("borderBottom",tr),HA=rr("borderLeft",tr),UA=rr("borderColor"),KA=rr("borderTopColor"),qA=rr("borderRightColor"),YA=rr("borderBottomColor"),GA=rr("borderLeftColor"),XA=rr("outline",tr),ZA=rr("outlineColor"),Jo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ha(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:pa(t,n)});return Rr(e,e.borderRadius,r)}return null};Jo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ln}:{},Jo.filterProps=["borderRadius"],Zo(BA,zA,WA,VA,HA,UA,KA,qA,YA,GA,Jo,XA,ZA);const Qo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ha(e.theme,"spacing",8,"gap"),r=n=>({gap:pa(t,n)});return Rr(e,e.gap,r)}return null};Qo.propTypes=process.env.NODE_ENV!=="production"?{gap:ln}:{},Qo.filterProps=["gap"];const es=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ha(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:pa(t,n)});return Rr(e,e.columnGap,r)}return null};es.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ln}:{},es.filterProps=["columnGap"];const ts=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ha(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:pa(t,n)});return Rr(e,e.rowGap,r)}return null};ts.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ln}:{},ts.filterProps=["rowGap"];const JA=Xe({prop:"gridColumn"}),QA=Xe({prop:"gridRow"}),eE=Xe({prop:"gridAutoFlow"}),tE=Xe({prop:"gridAutoColumns"}),rE=Xe({prop:"gridAutoRows"}),nE=Xe({prop:"gridTemplateColumns"}),iE=Xe({prop:"gridTemplateRows"}),aE=Xe({prop:"gridTemplateAreas"}),oE=Xe({prop:"gridArea"});Zo(Qo,es,ts,JA,QA,eE,tE,rE,nE,iE,aE,oE);function wi(e,t){return t==="grey"?t:e}const sE=Xe({prop:"color",themeKey:"palette",transform:wi}),lE=Xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wi}),cE=Xe({prop:"backgroundColor",themeKey:"palette",transform:wi});Zo(sE,lE,cE);function Vt(e){return e<=1&&e!==0?`${e*100}%`:e}const uE=Xe({prop:"width",transform:Vt}),Uc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Ko[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Vt(r)}};return Rr(e,e.maxWidth,t)}return null};Uc.filterProps=["maxWidth"];const fE=Xe({prop:"minWidth",transform:Vt}),dE=Xe({prop:"height",transform:Vt}),hE=Xe({prop:"maxHeight",transform:Vt}),pE=Xe({prop:"minHeight",transform:Vt});Xe({prop:"size",cssProperty:"width",transform:Vt}),Xe({prop:"size",cssProperty:"height",transform:Vt});const mE=Xe({prop:"boxSizing"});Zo(uE,Uc,fE,dE,hE,pE,mE);const rs={border:{themeKey:"borders",transform:tr},borderTop:{themeKey:"borders",transform:tr},borderRight:{themeKey:"borders",transform:tr},borderBottom:{themeKey:"borders",transform:tr},borderLeft:{themeKey:"borders",transform:tr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Jo},color:{themeKey:"palette",transform:wi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wi},backgroundColor:{themeKey:"palette",transform:wi},p:{style:qe},pt:{style:qe},pr:{style:qe},pb:{style:qe},pl:{style:qe},px:{style:qe},py:{style:qe},padding:{style:qe},paddingTop:{style:qe},paddingRight:{style:qe},paddingBottom:{style:qe},paddingLeft:{style:qe},paddingX:{style:qe},paddingY:{style:qe},paddingInline:{style:qe},paddingInlineStart:{style:qe},paddingInlineEnd:{style:qe},paddingBlock:{style:qe},paddingBlockStart:{style:qe},paddingBlockEnd:{style:qe},m:{style:Ke},mt:{style:Ke},mr:{style:Ke},mb:{style:Ke},ml:{style:Ke},mx:{style:Ke},my:{style:Ke},margin:{style:Ke},marginTop:{style:Ke},marginRight:{style:Ke},marginBottom:{style:Ke},marginLeft:{style:Ke},marginX:{style:Ke},marginY:{style:Ke},marginInline:{style:Ke},marginInlineStart:{style:Ke},marginInlineEnd:{style:Ke},marginBlock:{style:Ke},marginBlockStart:{style:Ke},marginBlockEnd:{style:Ke},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:Qo},rowGap:{style:ts},columnGap:{style:es},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vt},maxWidth:{style:Uc},minWidth:{transform:Vt},height:{transform:Vt},maxHeight:{transform:Vt},minHeight:{transform:Vt},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 gE(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function vE(e,t){return typeof e=="function"?e(t):e}function yE(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const d=qo(i,c)||{};return f?f(o):Rr(o,n,m=>{let p=Yo(d,u,m);return m===p&&typeof m=="string"&&(p=Yo(d,u,`${r}${m==="default"?"":Nn(m)}`,m)),l===!1?p:{[l]:p}})}function t(r){const{sx:n,theme:i={},nested:a}=r||{};if(!n)return null;const o=i.unstable_sxConfig??rs;function s(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=jA(i.breakpoints),f=Object.keys(u);let d=u;return Object.keys(c).forEach(h=>{const m=vE(c[h],i);if(m!=null)if(typeof m=="object")if(o[h])d=da(d,e(h,m,i,o));else{const p=Rr({theme:i},m,g=>({[h]:g}));gE(p,m)?d[h]=t({sx:m,theme:i,nested:!0}):d=da(d,p)}else d=da(d,e(h,m,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Wm(i,Hm(f,d))}:Wm(i,Hm(f,d))}return Array.isArray(n)?n.map(s):s(n)}return t}const _i=yE();_i.filterProps=["sx"];function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kc.apply(null,arguments)}function bE(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 xE(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 wE=(function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(xE(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=bE(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Ot="-ms-",ns="-moz-",ve="-webkit-",qm="comm",qc="rule",Yc="decl",_E="@import",Ym="@keyframes",SE="@layer",OE=Math.abs,is=String.fromCharCode,AE=Object.assign;function EE(e,t){return bt(e,0)^45?(((t<<2^bt(e,0))<<2^bt(e,1))<<2^bt(e,2))<<2^bt(e,3):0}function Gm(e){return e.trim()}function PE(e,t){return(e=t.exec(e))?e[0]:e}function ye(e,t,r){return e.replace(t,r)}function Gc(e,t){return e.indexOf(t)}function bt(e,t){return e.charCodeAt(t)|0}function ma(e,t,r){return e.slice(t,r)}function xr(e){return e.length}function Xc(e){return e.length}function as(e,t){return t.push(e),e}function CE(e,t){return e.map(t).join("")}var os=1,Si=1,Xm=0,jt=0,nt=0,Oi="";function ss(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:os,column:Si,length:o,return:""}}function ga(e,t){return AE(ss("",null,null,"",null,null,0),e,{length:-e.length},t)}function kE(){return nt}function TE(){return nt=jt>0?bt(Oi,--jt):0,Si--,nt===10&&(Si=1,os--),nt}function Ht(){return nt=jt<Xm?bt(Oi,jt++):0,Si++,nt===10&&(Si=1,os++),nt}function wr(){return bt(Oi,jt)}function ls(){return jt}function va(e,t){return ma(Oi,e,t)}function ya(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 Zm(e){return os=Si=1,Xm=xr(Oi=e),jt=0,[]}function Jm(e){return Oi="",e}function cs(e){return Gm(va(jt-1,Zc(e===91?e+2:e===40?e+1:e)))}function ME(e){for(;(nt=wr())&&nt<33;)Ht();return ya(e)>2||ya(nt)>3?"":" "}function jE(e,t){for(;--t&&Ht()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return va(e,ls()+(t<6&&wr()==32&&Ht()==32))}function Zc(e){for(;Ht();)switch(nt){case e:return jt;case 34:case 39:e!==34&&e!==39&&Zc(nt);break;case 40:e===41&&Zc(e);break;case 92:Ht();break}return jt}function DE(e,t){for(;Ht()&&e+nt!==57;)if(e+nt===84&&wr()===47)break;return"/*"+va(t,jt-1)+"*"+is(e===47?e:Ht())}function NE(e){for(;!ya(wr());)Ht();return va(e,jt)}function IE(e){return Jm(us("",null,null,null,[""],e=Zm(e),0,[0],e))}function us(e,t,r,n,i,a,o,s,l){for(var c=0,u=0,f=o,d=0,h=0,m=0,p=1,g=1,v=1,b=0,x="",S=i,w=a,O=n,E=x;g;)switch(m=b,b=Ht()){case 40:if(m!=108&&bt(E,f-1)==58){Gc(E+=ye(cs(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=cs(b);break;case 9:case 10:case 13:case 32:E+=ME(m);break;case 92:E+=jE(ls()-1,7);continue;case 47:switch(wr()){case 42:case 47:as($E(DE(Ht(),ls()),t,r),l);break;default:E+="/"}break;case 123*p:s[c++]=xr(E)*v;case 125*p:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:v==-1&&(E=ye(E,/\f/g,"")),h>0&&xr(E)-f&&as(h>32?eg(E+";",n,r,f-1):eg(ye(E," ","")+";",n,r,f-2),l);break;case 59:E+=";";default:if(as(O=Qm(E,t,r,c,u,i,s,x,S=[],w=[],f),a),b===123)if(u===0)us(E,t,O,O,S,a,f,s,w);else switch(d===99&&bt(E,3)===110?100:d){case 100:case 108:case 109:case 115:us(e,O,O,n&&as(Qm(e,O,O,0,0,i,s,x,i,S=[],f),w),i,w,f,s,n?S:w);break;default:us(E,O,O,O,[""],w,0,s,w)}}c=u=h=0,p=v=1,x=E="",f=o;break;case 58:f=1+xr(E),h=m;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&TE()==125)continue}switch(E+=is(b),b*p){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(xr(E)-1)*v,v=1;break;case 64:wr()===45&&(E+=cs(Ht())),d=wr(),u=f=xr(x=E+=NE(ls())),b++;break;case 45:m===45&&xr(E)==2&&(p=0)}}return a}function Qm(e,t,r,n,i,a,o,s,l,c,u){for(var f=i-1,d=i===0?a:[""],h=Xc(d),m=0,p=0,g=0;m<n;++m)for(var v=0,b=ma(e,f+1,f=OE(p=o[m])),x=e;v<h;++v)(x=Gm(p>0?d[v]+" "+b:ye(b,/&\f/g,d[v])))&&(l[g++]=x);return ss(e,t,r,i===0?qc:s,l,c,u)}function $E(e,t,r){return ss(e,t,r,qm,is(kE()),ma(e,2,-2),0)}function eg(e,t,r,n){return ss(e,t,r,Yc,ma(e,0,n),ma(e,n+1,-1),n)}function Ai(e,t){for(var r="",n=Xc(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function RE(e,t,r,n){switch(e.type){case SE:if(e.children.length)break;case _E:case Yc:return e.return=e.return||e.value;case qm:return"";case Ym:return e.return=e.value+"{"+Ai(e.children,n)+"}";case qc:e.value=e.props.join(",")}return xr(r=Ai(e.children,n))?e.return=e.value+"{"+r+"}":""}function LE(e){var t=Xc(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function FE(e){return function(t){t.root||(t=t.return)&&e(t)}}function tg(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var BE=function(t,r,n){for(var i=0,a=0;i=a,a=wr(),i===38&&a===12&&(r[n]=1),!ya(a);)Ht();return va(t,jt)},zE=function(t,r){var n=-1,i=44;do switch(ya(i)){case 0:i===38&&wr()===12&&(r[n]=1),t[n]+=BE(jt-1,r,n);break;case 2:t[n]+=cs(i);break;case 4:if(i===44){t[++n]=wr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=is(i)}while(i=Ht());return t},WE=function(t,r){return Jm(zE(Zm(t),r))},rg=new WeakMap,VE=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!rg.get(n))&&!i){rg.set(t,!0);for(var a=[],o=WE(r,a),s=n.props,l=0,c=0;l<o.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=a[l]?o[l].replace(/&\f/g,s[u]):s[u]+" "+o[l]}}},HE=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function ng(e,t){switch(EE(e,t)){case 5103:return ve+"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 ve+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+e+ns+e+Ot+e+e;case 6828:case 4268:return ve+e+Ot+e+e;case 6165:return ve+e+Ot+"flex-"+e+e;case 5187:return ve+e+ye(e,/(\w+).+(:[^]+)/,ve+"box-$1$2"+Ot+"flex-$1$2")+e;case 5443:return ve+e+Ot+"flex-item-"+ye(e,/flex-|-self/,"")+e;case 4675:return ve+e+Ot+"flex-line-pack"+ye(e,/align-content|flex-|-self/,"")+e;case 5548:return ve+e+Ot+ye(e,"shrink","negative")+e;case 5292:return ve+e+Ot+ye(e,"basis","preferred-size")+e;case 6060:return ve+"box-"+ye(e,"-grow","")+ve+e+Ot+ye(e,"grow","positive")+e;case 4554:return ve+ye(e,/([^-])(transform)/g,"$1"+ve+"$2")+e;case 6187:return ye(ye(ye(e,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),e,"")+e;case 5495:case 3959:return ye(e,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return ye(ye(e,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+Ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+e+e;case 4095:case 3583:case 4068:case 2532:return ye(e,/(.+)-inline(.+)/,ve+"$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(xr(e)-1-t>6)switch(bt(e,t+1)){case 109:if(bt(e,t+4)!==45)break;case 102:return ye(e,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+ns+(bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gc(e,"stretch")?ng(ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(bt(e,t+1)!==115)break;case 6444:switch(bt(e,xr(e)-3-(~Gc(e,"!important")&&10))){case 107:return ye(e,":",":"+ve)+e;case 101:return ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(bt(e,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+Ot+"$2box$3")+e}break;case 5936:switch(bt(e,t+11)){case 114:return ve+e+Ot+ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ve+e+Ot+ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ve+e+Ot+ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ve+e+Ot+e+e}return e}var UE=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Yc:t.return=ng(t.value,t.length);break;case Ym:return Ai([ga(t,{value:ye(t.value,"@","@"+ve)})],i);case qc:if(t.length)return CE(t.props,function(a){switch(PE(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ai([ga(t,{props:[ye(a,/:(read-\w+)/,":"+ns+"$1")]})],i);case"::placeholder":return Ai([ga(t,{props:[ye(a,/:(plac\w+)/,":"+ve+"input-$1")]}),ga(t,{props:[ye(a,/:(plac\w+)/,":"+ns+"$1")]}),ga(t,{props:[ye(a,/:(plac\w+)/,Ot+"input-$1")]})],i)}return""})}},KE=[UE],qE=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||KE,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)a[g[v]]=!0;s.push(p)});var l,c=[VE,HE];{var u,f=[RE,FE(function(p){u.insert(p)})],d=LE(c.concat(i,f)),h=function(g){return Ai(IE(g),d)};l=function(g,v,b,x){u=b,h(g?g+"{"+v.styles+"}":v.styles),x&&(m.inserted[v.name]=!0)}}var m={key:r,sheet:new wE({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return m.sheet.hydrate(s),m},YE=!0;function GE(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var ig=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||YE===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},XE=function(t,r,n){ig(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function ZE(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 JE={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},QE=/[A-Z]|^ms/g,eP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ag=function(t){return t.charCodeAt(1)===45},og=function(t){return t!=null&&typeof t!="boolean"},Jc=tg(function(e){return ag(e)?e:e.replace(QE,"-$&").toLowerCase()}),sg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(eP,function(n,i,a){return _r={name:i,styles:a,next:_r},i})}return JE[t]!==1&&!ag(t)&&typeof r=="number"&&r!==0?r+"px":r};function ba(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return _r={name:i.name,styles:i.styles,next:_r},i.name;var a=r;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)_r={name:o.name,styles:o.styles,next:_r},o=o.next;var s=a.styles+";";return s}return tP(e,t,r)}case"function":{if(e!==void 0){var l=_r,c=r(e);return _r=l,ba(e,t,c)}break}}var u=r;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function tP(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ba(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?n+=a+"{"+t[s]+"}":og(s)&&(n+=Jc(a)+":"+sg(a,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)og(o[l])&&(n+=Jc(a)+":"+sg(a,o[l])+";");else{var c=ba(e,t,o);switch(a){case"animation":case"animationName":{n+=Jc(a)+":"+c+";";break}default:n+=a+"{"+c+"}"}}}return n}var lg=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function cg(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";_r=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=ba(r,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=ba(r,t,e[s]),n){var l=a;i+=l[s]}lg.lastIndex=0;for(var c="",u;(u=lg.exec(i))!==null;)c+="-"+u[1];var f=ZE(i)+c;return{name:f,styles:i,next:_r}}var rP=function(t){return t()},nP=A.useInsertionEffect?A.useInsertionEffect:!1,iP=nP||rP,ug=A.createContext(typeof HTMLElement<"u"?qE({key:"css"}):null);ug.Provider;var aP=function(t){return k.forwardRef(function(r,n){var i=k.useContext(ug);return t(r,i,n)})},oP=A.createContext({}),sP=/^((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)-.*))$/,lP=tg(function(e){return sP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),cP=lP,uP=function(t){return t!=="theme"},fg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?cP:uP},dg=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},fP=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return ig(r,n,i),iP(function(){return XE(r,n,i)}),null},dP=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=dg(t,r,n),l=s||fg(i),c=!l("as");return function(){var u=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var d=u[0];f.push(d[0]);for(var h=u.length,m=1;m<h;m++)f.push(u[m],d[m])}var p=aP(function(g,v,b){var x=c&&g.as||i,S="",w=[],O=g;if(g.theme==null){O={};for(var E in g)O[E]=g[E];O.theme=A.useContext(oP)}typeof g.className=="string"?S=GE(v.registered,w,g.className):g.className!=null&&(S=g.className+" ");var C=cg(f.concat(w),v.registered,O);S+=v.key+"-"+C.name,o!==void 0&&(S+=" "+o);var M=c&&s===void 0?fg(x):l,$={};for(var j in g)c&&j==="as"||M(j)&&($[j]=g[j]);return $.className=S,b&&($.ref=b),A.createElement(A.Fragment,null,A.createElement(fP,{cache:v,serialized:C,isStringTag:typeof x=="string"}),A.createElement(x,$))});return p.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=i,p.__emotion_styles=f,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+o}}),p.withComponent=function(g,v){var b=e(g,Kc({},r,v,{shouldForwardProp:dg(p,v,!0)}));return b.apply(void 0,f)},p}},hP=["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"],Qc=dP.bind(null);hP.forEach(function(e){Qc[e]=Qc(e)});/**
70
70
  * @mui/styled-engine v7.3.2
71
71
  *
72
72
  * @license MIT
73
73
  * This source code is licensed under the MIT license found in the
74
74
  * LICENSE file in the root directory of this source tree.
75
- */function hP(e,t){const r=Jc(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
76
- `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}function pP(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const fg=[];function In(e){return fg[0]=e,sg(fg)}const mP=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function gP(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=mP(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function c(d,h){const m=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(m!==-1&&typeof t[o[m]]=="number"?t[o[m]]:h)-n/100}${r})`}function u(d){return o.indexOf(d)+1<o.length?c(d,o[o.indexOf(d)+1]):s(d)}function f(d){const h=o.indexOf(d);return h===0?s(o[1]):h===o.length-1?l(o[h]):c(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:o,values:a,up:s,down:l,between:c,only:u,not:f,unit:r,...i}}const vP={borderRadius:4};function dg(e=8,t=Vc({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function yP(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function hg(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...o}=e,s=gP(r),l=dg(i);let c=Wt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...vP,...a}},o);return c=kA(c),c.applyStyles=yP,c=t.reduce((u,f)=>Wt(u,f),c),c.unstable_sxConfig={...ts,...o?.unstable_sxConfig},c.unstable_sx=function(f){return wi({sx:f,theme:this})},c}const bP={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 Qc(e,t,r="Mui"){const n=bP[t];return n?`${r}-${n}`:`${pA.generate(e)}-${t}`}function xP(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Qc(e,i,r)}),n}function pg(e,t=""){return e.displayName||e.name||t}function mg(e,t,r){const n=pg(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function wP(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ua.ForwardRef:return mg(e,e.render,"ForwardRef");case ua.Memo:return mg(e,e.type,"memo");default:return}}}function gg(e){const{variants:t,...r}=e,n={variants:t,style:In(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=In(i.style))}),n}const _P=hg();function eu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function $n(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function SP(e){return e?(t,r)=>r[e]:null}function OP(e,t,r){e.theme=CP(e.theme)?r:e.theme[t]||e.theme}function us(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>us(e,i,r));if(Array.isArray(n?.variants)){let i;if(n.isProcessed)i=r?$n(n.style,r):n.style;else{const{variants:a,...o}=n;i=r?$n(In(o),r):o}return vg(e,n.variants,[i],r)}return n?.isProcessed?r?$n(In(n.style),r):n.style:r?$n(In(n),r):n}function vg(e,t,r=[],n=void 0){let i;e:for(let a=0;a<t.length;a+=1){const o=t[a];if(typeof o.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(const s in o.props)if(e[s]!==o.props[s]&&e.ownerState?.[s]!==o.props[s])continue e;typeof o.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?$n(In(o.style(i)),n):o.style(i))):r.push(n?$n(In(o.style),n):o.style)}return r}function AP(e={}){const{themeId:t,defaultTheme:r=_P,rootShouldForwardProp:n=eu,slotShouldForwardProp:i=eu}=e;function a(s){OP(s,t,r)}return(s,l={})=>{pP(s,O=>O.filter(E=>E!==wi));const{name:c,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:h=SP(yg(u)),...m}=l,p=c&&c.startsWith("Mui")||u?"components":"custom",g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=d||!1;let b=eu;u==="Root"||u==="root"?b=n:u?b=i:kP(s)&&(b=void 0);const x=hP(s,{shouldForwardProp:b,label:PP(c,u),...m}),S=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(C){return us(C,O,C.theme.modularCssLayers?p:void 0)};if($r(O)){const E=gg(O);return function(M){return E.variants?us(M,E,M.theme.modularCssLayers?p:void 0):M.theme.modularCssLayers?$n(E.style,p):E.style}}return O},w=(...O)=>{const E=[],C=O.map(S),M=[];if(E.push(a),c&&h&&M.push(function(I){const L=I.theme.components?.[c]?.styleOverrides;if(!L)return null;const W={};for(const H in L)W[H]=us(I,L[H],I.theme.modularCssLayers?"theme":void 0);return h(I,W)}),c&&!g&&M.push(function(I){const L=I.theme?.components?.[c]?.variants;return L?vg(I,L,[],I.theme.modularCssLayers?"theme":void 0):null}),v||M.push(wi),Array.isArray(C[0])){const _=C.shift(),I=new Array(E.length).fill(""),D=new Array(M.length).fill("");let L;L=[...I,..._,...D],L.raw=[...I,..._.raw,...D],E.unshift(L)}const $=[...E,...C,...M],j=x(...$);return s.muiName&&(j.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=EP(c,u,s)),j};return x.withConfig&&(w.withConfig=x.withConfig),w}}function EP(e,t,r){return e?`${e}${Nn(t||"")}`:`Styled(${wP(r)})`}function PP(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${yg(t||"Root")}`),r}function CP(e){for(const t in e)return!1;return!0}function kP(e){return typeof e=="string"&&e.charCodeAt(0)>96}function yg(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function tu(e,t,r=!1){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=i;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const o=e[a],s=t[a];if(!s)n[a]=o||{};else if(!o)n[a]=s;else{n[a]={...s};for(const l in o)if(Object.prototype.hasOwnProperty.call(o,l)){const c=l;n[a][c]=tu(o[c],s[c],r)}}}else a==="className"&&r&&t.className?n.className=de(e?.className,t?.className):a==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[a]===void 0&&(n[a]=e[a])}return n}function TP(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function ru(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),TP(e,t,r)}function MP(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),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.`),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function cn(e){if(e.type)return e;if(e.charAt(0)==="#")return cn(MP(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
75
+ */function pP(e,t){const r=Qc(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
76
+ `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}function mP(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const hg=[];function In(e){return hg[0]=e,cg(hg)}const gP=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function vP(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=gP(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function c(d,h){const m=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(m!==-1&&typeof t[o[m]]=="number"?t[o[m]]:h)-n/100}${r})`}function u(d){return o.indexOf(d)+1<o.length?c(d,o[o.indexOf(d)+1]):s(d)}function f(d){const h=o.indexOf(d);return h===0?s(o[1]):h===o.length-1?l(o[h]):c(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:o,values:a,up:s,down:l,between:c,only:u,not:f,unit:r,...i}}const yP={borderRadius:4};function pg(e=8,t=Hc({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function bP(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function mg(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...o}=e,s=vP(r),l=pg(i);let c=Wt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...yP,...a}},o);return c=TA(c),c.applyStyles=bP,c=t.reduce((u,f)=>Wt(u,f),c),c.unstable_sxConfig={...rs,...o?.unstable_sxConfig},c.unstable_sx=function(f){return _i({sx:f,theme:this})},c}const xP={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 eu(e,t,r="Mui"){const n=xP[t];return n?`${r}-${n}`:`${mA.generate(e)}-${t}`}function wP(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=eu(e,i,r)}),n}function gg(e,t=""){return e.displayName||e.name||t}function vg(e,t,r){const n=gg(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function _P(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return gg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case fa.ForwardRef:return vg(e,e.render,"ForwardRef");case fa.Memo:return vg(e,e.type,"memo");default:return}}}function yg(e){const{variants:t,...r}=e,n={variants:t,style:In(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=In(i.style))}),n}const SP=mg();function tu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function $n(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function OP(e){return e?(t,r)=>r[e]:null}function AP(e,t,r){e.theme=kP(e.theme)?r:e.theme[t]||e.theme}function fs(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>fs(e,i,r));if(Array.isArray(n?.variants)){let i;if(n.isProcessed)i=r?$n(n.style,r):n.style;else{const{variants:a,...o}=n;i=r?$n(In(o),r):o}return bg(e,n.variants,[i],r)}return n?.isProcessed?r?$n(In(n.style),r):n.style:r?$n(In(n),r):n}function bg(e,t,r=[],n=void 0){let i;e:for(let a=0;a<t.length;a+=1){const o=t[a];if(typeof o.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(const s in o.props)if(e[s]!==o.props[s]&&e.ownerState?.[s]!==o.props[s])continue e;typeof o.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?$n(In(o.style(i)),n):o.style(i))):r.push(n?$n(In(o.style),n):o.style)}return r}function EP(e={}){const{themeId:t,defaultTheme:r=SP,rootShouldForwardProp:n=tu,slotShouldForwardProp:i=tu}=e;function a(s){AP(s,t,r)}return(s,l={})=>{mP(s,O=>O.filter(E=>E!==_i));const{name:c,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:h=OP(xg(u)),...m}=l,p=c&&c.startsWith("Mui")||u?"components":"custom",g=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=d||!1;let b=tu;u==="Root"||u==="root"?b=n:u?b=i:TP(s)&&(b=void 0);const x=pP(s,{shouldForwardProp:b,label:CP(c,u),...m}),S=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(C){return fs(C,O,C.theme.modularCssLayers?p:void 0)};if($r(O)){const E=yg(O);return function(M){return E.variants?fs(M,E,M.theme.modularCssLayers?p:void 0):M.theme.modularCssLayers?$n(E.style,p):E.style}}return O},w=(...O)=>{const E=[],C=O.map(S),M=[];if(E.push(a),c&&h&&M.push(function(I){const L=I.theme.components?.[c]?.styleOverrides;if(!L)return null;const W={};for(const H in L)W[H]=fs(I,L[H],I.theme.modularCssLayers?"theme":void 0);return h(I,W)}),c&&!g&&M.push(function(I){const L=I.theme?.components?.[c]?.variants;return L?bg(I,L,[],I.theme.modularCssLayers?"theme":void 0):null}),v||M.push(_i),Array.isArray(C[0])){const _=C.shift(),I=new Array(E.length).fill(""),D=new Array(M.length).fill("");let L;L=[...I,..._,...D],L.raw=[...I,..._.raw,...D],E.unshift(L)}const $=[...E,...C,...M],j=x(...$);return s.muiName&&(j.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=PP(c,u,s)),j};return x.withConfig&&(w.withConfig=x.withConfig),w}}function PP(e,t,r){return e?`${e}${Nn(t||"")}`:`Styled(${_P(r)})`}function CP(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${xg(t||"Root")}`),r}function kP(e){for(const t in e)return!1;return!0}function TP(e){return typeof e=="string"&&e.charCodeAt(0)>96}function xg(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ru(e,t,r=!1){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=i;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const o=e[a],s=t[a];if(!s)n[a]=o||{};else if(!o)n[a]=s;else{n[a]={...s};for(const l in o)if(Object.prototype.hasOwnProperty.call(o,l)){const c=l;n[a][c]=ru(o[c],s[c],r)}}}else a==="className"&&r&&t.className?n.className=de(e?.className,t?.className):a==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[a]===void 0&&(n[a]=e[a])}return n}function MP(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function nu(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),MP(e,t,r)}function jP(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),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.`),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function cn(e){if(e.type)return e;if(e.charAt(0)==="#")return cn(jP(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
77
77
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:sn(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
78
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:sn(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const jP=e=>{const t=cn(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ba=(e,t)=>{try{return jP(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function fs(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function bg(e){e=cn(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(c,u=(c+r/30)%12)=>i-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),fs({type:s,values:l})}function nu(e){e=cn(e);let t=e.type==="hsl"||e.type==="hsla"?cn(bg(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function xg(e,t){const r=nu(e),n=nu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function wg(e,t){return e=cn(e),t=ru(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,fs(e)}function Rn(e,t,r){try{return wg(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ds(e,t){if(e=cn(e),t=ru(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return fs(e)}function Oe(e,t,r){try{return ds(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function hs(e,t){if(e=cn(e),t=ru(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return fs(e)}function Ae(e,t,r){try{return hs(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function DP(e,t=.15){return nu(e)>.5?ds(e,t):hs(e,t)}function ps(e,t,r){try{return DP(e,t)}catch{return e}}const NP=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(me.node,me.object);function IP(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?tu(i.defaultProps,n,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?tu(i,n,t.components.mergeClassNameAndStyle):n}function $P({props:e,name:t}){const r=A.useContext(NP);return IP({props:e,name:t,theme:{components:r}})}const _g={theme:void 0};function RP(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(_g.theme=i.theme,a=gg(e(_g)),t=a,r=i.theme),a}}function LP(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.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}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const Sg=(e,t,r,n=[])=>{let i=e;t.forEach((a,o)=>{o===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},FP=(e,t,r)=>{function n(i,a=[],o=[]){Object.entries(i).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...o,s]:o):t([...a,s],l,o))})}n(e)},BP=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function iu(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},o={};return FP(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,f=BP(s,l);Object.assign(i,{[u]:f}),Sg(a,s,`var(${u})`,c),Sg(o,s,`var(${u}, ${f})`,c)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function zP(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:f,varsWithDefaults:d}=iu(c,t);let h=d;const m={},{[l]:p,...g}=o;if(Object.entries(g||{}).forEach(([S,w])=>{const{vars:O,css:E,varsWithDefaults:C}=iu(w,t);h=Wt(h,C),m[S]={css:E,vars:O}}),p){const{css:S,vars:w,varsWithDefaults:O}=iu(p,t);h=Wt(h,O),m[l]={css:S,vars:w}}function v(S,w){let O=i;if(i==="class"&&(O=".%s"),i==="data"&&(O="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(O=`[${i}="%s"]`),S){if(O==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${o[S]?.palette?.mode||S})`]:{":root":w}};if(O)return e.defaultColorScheme===S?`:root, ${O.replace("%s",String(S))}`:O.replace("%s",String(S))}return":root"}return{vars:h,generateThemeVars:()=>{let S={...u};return Object.entries(m).forEach(([,{vars:w}])=>{S=Wt(S,w)}),S},generateStyleSheets:()=>{const S=[],w=e.defaultColorScheme||"light";function O(M,$){Object.keys($).length&&S.push(typeof M=="string"?{[M]:{...$}}:M)}O(r(void 0,{...f}),f);const{[w]:E,...C}=m;if(E){const{css:M}=E,$=o[w]?.palette?.mode,j=!n&&$?{colorScheme:$,...M}:{...M};O(r(w,{...j}),j)}return Object.entries(C).forEach(([M,{css:$}])=>{const j=o[M]?.palette?.mode,_=!n&&j?{colorScheme:j,...$}:{...$};O(r(M,{..._}),_)}),a&&S.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)"}}),S}}}function WP(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const xa={black:"#000",white:"#fff"},VP={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"},Ai={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ei={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},wa={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Pi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ci={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ki={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Og(){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:xa.white,default:xa.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 Ag=Og();function Eg(){return{text:{primary:xa.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:xa.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 au=Eg();function Pg(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=hs(e.main,i):t==="dark"&&(e.dark=ds(e.main,a)))}function Cg(e,t,r,n,i){const a=i.light||i,o=i.dark||i*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function HP(e="light"){return e==="dark"?{main:Pi[200],light:Pi[50],dark:Pi[400]}:{main:Pi[700],light:Pi[400],dark:Pi[800]}}function UP(e="light"){return e==="dark"?{main:Ai[200],light:Ai[50],dark:Ai[400]}:{main:Ai[500],light:Ai[300],dark:Ai[700]}}function KP(e="light"){return e==="dark"?{main:Ei[500],light:Ei[300],dark:Ei[700]}:{main:Ei[700],light:Ei[400],dark:Ei[800]}}function qP(e="light"){return e==="dark"?{main:Ci[400],light:Ci[300],dark:Ci[700]}:{main:Ci[700],light:Ci[500],dark:Ci[900]}}function YP(e="light"){return e==="dark"?{main:ki[400],light:ki[300],dark:ki[700]}:{main:ki[800],light:ki[500],dark:ki[900]}}function GP(e="light"){return e==="dark"?{main:wa[400],light:wa[300],dark:wa[700]}:{main:"#ed6c02",light:wa[500],dark:wa[900]}}function XP(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ou(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:i,...a}=e,o=e.primary||HP(t),s=e.secondary||UP(t),l=e.error||KP(t),c=e.info||qP(t),u=e.success||YP(t),f=e.warning||GP(t);function d(g){if(i)return XP(g);const v=xg(g,au.text.primary)>=r?au.text.primary:Ag.text.primary;if(process.env.NODE_ENV!=="production"){const b=xg(g,v);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${v} on ${g}`,"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(`
78
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:sn(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const DP=e=>{const t=cn(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},xa=(e,t)=>{try{return DP(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ds(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function wg(e){e=cn(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(c,u=(c+r/30)%12)=>i-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ds({type:s,values:l})}function iu(e){e=cn(e);let t=e.type==="hsl"||e.type==="hsla"?cn(wg(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _g(e,t){const r=iu(e),n=iu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Sg(e,t){return e=cn(e),t=nu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ds(e)}function Rn(e,t,r){try{return Sg(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function hs(e,t){if(e=cn(e),t=nu(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ds(e)}function Oe(e,t,r){try{return hs(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ps(e,t){if(e=cn(e),t=nu(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ds(e)}function Ae(e,t,r){try{return ps(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function NP(e,t=.15){return iu(e)>.5?hs(e,t):ps(e,t)}function ms(e,t,r){try{return NP(e,t)}catch{return e}}const IP=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(me.node,me.object);function $P(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?ru(i.defaultProps,n,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?ru(i,n,t.components.mergeClassNameAndStyle):n}function RP({props:e,name:t}){const r=A.useContext(IP);return $P({props:e,name:t,theme:{components:r}})}const Og={theme:void 0};function LP(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(Og.theme=i.theme,a=yg(e(Og)),t=a,r=i.theme),a}}function FP(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.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}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const Ag=(e,t,r,n=[])=>{let i=e;t.forEach((a,o)=>{o===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},BP=(e,t,r)=>{function n(i,a=[],o=[]){Object.entries(i).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...o,s]:o):t([...a,s],l,o))})}n(e)},zP=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function au(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},o={};return BP(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,f=zP(s,l);Object.assign(i,{[u]:f}),Ag(a,s,`var(${u})`,c),Ag(o,s,`var(${u}, ${f})`,c)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function WP(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:f,varsWithDefaults:d}=au(c,t);let h=d;const m={},{[l]:p,...g}=o;if(Object.entries(g||{}).forEach(([S,w])=>{const{vars:O,css:E,varsWithDefaults:C}=au(w,t);h=Wt(h,C),m[S]={css:E,vars:O}}),p){const{css:S,vars:w,varsWithDefaults:O}=au(p,t);h=Wt(h,O),m[l]={css:S,vars:w}}function v(S,w){let O=i;if(i==="class"&&(O=".%s"),i==="data"&&(O="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(O=`[${i}="%s"]`),S){if(O==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${o[S]?.palette?.mode||S})`]:{":root":w}};if(O)return e.defaultColorScheme===S?`:root, ${O.replace("%s",String(S))}`:O.replace("%s",String(S))}return":root"}return{vars:h,generateThemeVars:()=>{let S={...u};return Object.entries(m).forEach(([,{vars:w}])=>{S=Wt(S,w)}),S},generateStyleSheets:()=>{const S=[],w=e.defaultColorScheme||"light";function O(M,$){Object.keys($).length&&S.push(typeof M=="string"?{[M]:{...$}}:M)}O(r(void 0,{...f}),f);const{[w]:E,...C}=m;if(E){const{css:M}=E,$=o[w]?.palette?.mode,j=!n&&$?{colorScheme:$,...M}:{...M};O(r(w,{...j}),j)}return Object.entries(C).forEach(([M,{css:$}])=>{const j=o[M]?.palette?.mode,_=!n&&j?{colorScheme:j,...$}:{...$};O(r(M,{..._}),_)}),a&&S.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)"}}),S}}}function VP(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const wa={black:"#000",white:"#fff"},HP={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"},Ei={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Pi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},_a={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ci={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ki={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ti={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Eg(){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:wa.white,default:wa.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 Pg=Eg();function Cg(){return{text:{primary:wa.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:wa.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 ou=Cg();function kg(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ps(e.main,i):t==="dark"&&(e.dark=hs(e.main,a)))}function Tg(e,t,r,n,i){const a=i.light||i,o=i.dark||i*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function UP(e="light"){return e==="dark"?{main:Ci[200],light:Ci[50],dark:Ci[400]}:{main:Ci[700],light:Ci[400],dark:Ci[800]}}function KP(e="light"){return e==="dark"?{main:Ei[200],light:Ei[50],dark:Ei[400]}:{main:Ei[500],light:Ei[300],dark:Ei[700]}}function qP(e="light"){return e==="dark"?{main:Pi[500],light:Pi[300],dark:Pi[700]}:{main:Pi[700],light:Pi[400],dark:Pi[800]}}function YP(e="light"){return e==="dark"?{main:ki[400],light:ki[300],dark:ki[700]}:{main:ki[700],light:ki[500],dark:ki[900]}}function GP(e="light"){return e==="dark"?{main:Ti[400],light:Ti[300],dark:Ti[700]}:{main:Ti[800],light:Ti[500],dark:Ti[900]}}function XP(e="light"){return e==="dark"?{main:_a[400],light:_a[300],dark:_a[700]}:{main:"#ed6c02",light:_a[500],dark:_a[900]}}function ZP(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function su(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:i,...a}=e,o=e.primary||UP(t),s=e.secondary||KP(t),l=e.error||qP(t),c=e.info||YP(t),u=e.success||GP(t),f=e.warning||XP(t);function d(g){if(i)return ZP(g);const v=_g(g,ou.text.primary)>=r?ou.text.primary:Pg.text.primary;if(process.env.NODE_ENV!=="production"){const b=_g(g,v);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${v} on ${g}`,"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(`
79
79
  `))}return v}const h=({color:g,name:v,mainShade:b=500,lightShade:x=300,darkShade:S=700})=>{if(g={...g},!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
80
80
  The color object needs to have a \`main\` property or a \`${b}\` property.`:sn(11,v?` (${v})`:"",b));if(typeof g.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
81
81
  \`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
@@ -90,18 +90,18 @@ const theme1 = createTheme({ palette: {
90
90
 
91
91
  const theme2 = createTheme({ palette: {
92
92
  primary: { main: green[500] },
93
- } });`:sn(12,v?` (${v})`:"",JSON.stringify(g.main)));return i?(Cg(i,g,"light",x,n),Cg(i,g,"dark",S,n)):(Pg(g,"light",x,n),Pg(g,"dark",S,n)),g.contrastText||(g.contrastText=d(g.main)),g};let m;return t==="light"?m=Og():t==="dark"&&(m=Eg()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Wt({common:{...xa},mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:VP,contrastThreshold:r,getContrastText:d,augmentColor:h,tonalOffset:n,...m},a)}function ZP(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function JP(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function QP(e){return Math.round(e*1e5)/1e5}const kg={textTransform:"uppercase"},Tg='"Roboto", "Helvetica", "Arial", sans-serif';function eC(e,t){const{fontFamily:r=Tg,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const d=n/14,h=u||(g=>`${g/l*d}rem`),m=(g,v,b,x,S)=>({fontFamily:r,fontWeight:g,fontSize:h(v),lineHeight:b,...r===Tg?{letterSpacing:`${QP(x/v)}em`}:{},...S,...c}),p={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,kg),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,kg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wt({htmlFontSize:l,pxToRem:h,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,...p},f,{clone:!1})}const tC=.2,rC=.14,nC=.12;function Be(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${tC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${rC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${nC})`].join(",")}const iC=["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)],aC={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)"},oC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mg(e){return`${Math.round(e)}ms`}function sC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function lC(e){const t={...aC,...e.easing},r={...oC,...e.duration};return{getAutoHeightDuration:sC,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=a;if(process.env.NODE_ENV!=="production"){const u=d=>typeof d=="string",f=d=>!Number.isNaN(parseFloat(d));!u(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(o)&&!u(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(`
94
- `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:Mg(o)} ${s} ${typeof l=="string"?l:Mg(l)}`).join(",")},...e,easing:t,duration:r}}const cC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function uC(e){return $r(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function jg(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[o,s]=i[a];!uC(s)||o.startsWith("unstable_")?delete n[o]:$r(s)&&(n[o]={...s},r(n[o]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
93
+ } });`:sn(12,v?` (${v})`:"",JSON.stringify(g.main)));return i?(Tg(i,g,"light",x,n),Tg(i,g,"dark",S,n)):(kg(g,"light",x,n),kg(g,"dark",S,n)),g.contrastText||(g.contrastText=d(g.main)),g};let m;return t==="light"?m=Eg():t==="dark"&&(m=Cg()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Wt({common:{...wa},mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:HP,contrastThreshold:r,getContrastText:d,augmentColor:h,tonalOffset:n,...m},a)}function JP(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function QP(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function eC(e){return Math.round(e*1e5)/1e5}const Mg={textTransform:"uppercase"},jg='"Roboto", "Helvetica", "Arial", sans-serif';function tC(e,t){const{fontFamily:r=jg,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const d=n/14,h=u||(g=>`${g/l*d}rem`),m=(g,v,b,x,S)=>({fontFamily:r,fontWeight:g,fontSize:h(v),lineHeight:b,...r===jg?{letterSpacing:`${eC(x/v)}em`}:{},...S,...c}),p={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,Mg),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Mg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wt({htmlFontSize:l,pxToRem:h,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,...p},f,{clone:!1})}const rC=.2,nC=.14,iC=.12;function Be(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${nC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${iC})`].join(",")}const aC=["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)],oC={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)"},sC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Dg(e){return`${Math.round(e)}ms`}function lC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function cC(e){const t={...oC,...e.easing},r={...sC,...e.duration};return{getAutoHeightDuration:lC,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=a;if(process.env.NODE_ENV!=="production"){const u=d=>typeof d=="string",f=d=>!Number.isNaN(parseFloat(d));!u(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(o)&&!u(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(`
94
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:Dg(o)} ${s} ${typeof l=="string"?l:Dg(l)}`).join(",")},...e,easing:t,duration:r}}const uC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fC(e){return $r(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ng(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[o,s]=i[a];!fC(s)||o.startsWith("unstable_")?delete n[o]:$r(s)&&(n[o]={...s},r(n[o]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
95
95
 
96
96
  const theme = ${JSON.stringify(t,null,2)};
97
97
 
98
98
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
99
99
  theme.transitions = createTransitions(theme.transitions || {});
100
100
 
101
- export default theme;`}function Dg(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const fC=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function dC(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:wg(t,fC(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${Dg(r)})`:hs(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${Dg(r)})`:ds(t,r)}})}function su(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:l,colorSpace:c,...u}=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.":sn(20));const f=ou({...a,colorSpace:c}),d=hg(e);let h=Wt(d,{mixins:JP(d.breakpoints,n),palette:f,shadows:iC.slice(),typography:eC(f,s),transitions:lC(o),zIndex:{...cC}});if(h=Wt(h,u),h=t.reduce((m,p)=>Wt(m,p),h),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(g,v)=>{let b;for(b in g){const x=g[b];if(m.includes(b)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const S=Qc("",b);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(g,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
102
- `))}g[b]={}}}};Object.keys(h.components).forEach(g=>{const v=h.components[g].styleOverrides;v&&g.startsWith("Mui")&&p(v,g)})}return h.unstable_sxConfig={...ts,...u?.unstable_sxConfig},h.unstable_sx=function(p){return wi({sx:p,theme:this})},h.toRuntimeSource=jg,dC(h),h}function hC(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 pC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=hC(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Ng(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ig(e){return e==="dark"?pC:[]}function mC(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:i,...a}=e,o=ou({...t,colorSpace:i});return{palette:o,opacity:{...Ng(o.mode),...r},overlays:n||Ig(o.mode),...a}}function gC(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 vC=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],yC=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return vC(e.cssVarPrefix).forEach(s=>{o[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:a?{[a.replace("%s",t)]:o,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...o}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function bC(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function R(e,t,r){!e[t]&&r&&(e[t]=r)}function _a(e){return typeof e!="string"||!e.startsWith("hsl")?e:bg(e)}function Lr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ba(_a(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().
103
- 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 xC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Sr=e=>{try{return e()}catch{}},wC=(e="mui")=>LP(e);function lu(e,t,r,n,i){if(!r)return;r=r===!0?{}:r;const a=i==="dark"?"dark":"light";if(!n){t[i]=mC({...r,palette:{mode:a,...r?.palette},colorSpace:e});return}const{palette:o,...s}=su({...n,palette:{mode:a,...r?.palette},colorSpace:e});return t[i]={...r,palette:o,opacity:{...Ng(a),...r?.opacity},overlays:r?.overlays||Ig(a)},s}function _C(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",nativeColor:o=!1,shouldSkipGeneratingVar:s=gC,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,f=Object.keys(r)[0],d=n||(r.light&&f!=="light"?"light":f),h=wC(a),{[d]:m,light:p,dark:g,...v}=r,b={...v};let x=m;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:sn(21,d));let S;o&&(S="oklch");const w=lu(S,b,x,u,d);p&&!b.light&&lu(S,b,p,void 0,"light"),g&&!b.dark&&lu(S,b,g,void 0,"dark");let O={defaultColorScheme:d,...w,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:b,font:{...ZP(w.typography),...w.font},spacing:xC(u.spacing)};Object.keys(O.colorSchemes).forEach(j=>{const _=O.colorSchemes[j].palette,I=L=>{const W=L.split("-"),H=W[1],te=W[2];return h(L,_[H][te])};_.mode==="light"&&(R(_.common,"background","#fff"),R(_.common,"onBackground","#000")),_.mode==="dark"&&(R(_.common,"background","#000"),R(_.common,"onBackground","#fff"));function D(L,W,H){if(S){let te;return L===Rn&&(te=`transparent ${((1-H)*100).toFixed(0)}%`),L===Oe&&(te=`#000 ${(H*100).toFixed(0)}%`),L===Ae&&(te=`#fff ${(H*100).toFixed(0)}%`),`color-mix(in ${S}, ${W}, ${te})`}return L(W,H)}if(bC(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){R(_.Alert,"errorColor",D(Oe,_.error.light,.6)),R(_.Alert,"infoColor",D(Oe,_.info.light,.6)),R(_.Alert,"successColor",D(Oe,_.success.light,.6)),R(_.Alert,"warningColor",D(Oe,_.warning.light,.6)),R(_.Alert,"errorFilledBg",I("palette-error-main")),R(_.Alert,"infoFilledBg",I("palette-info-main")),R(_.Alert,"successFilledBg",I("palette-success-main")),R(_.Alert,"warningFilledBg",I("palette-warning-main")),R(_.Alert,"errorFilledColor",Sr(()=>_.getContrastText(_.error.main))),R(_.Alert,"infoFilledColor",Sr(()=>_.getContrastText(_.info.main))),R(_.Alert,"successFilledColor",Sr(()=>_.getContrastText(_.success.main))),R(_.Alert,"warningFilledColor",Sr(()=>_.getContrastText(_.warning.main))),R(_.Alert,"errorStandardBg",D(Ae,_.error.light,.9)),R(_.Alert,"infoStandardBg",D(Ae,_.info.light,.9)),R(_.Alert,"successStandardBg",D(Ae,_.success.light,.9)),R(_.Alert,"warningStandardBg",D(Ae,_.warning.light,.9)),R(_.Alert,"errorIconColor",I("palette-error-main")),R(_.Alert,"infoIconColor",I("palette-info-main")),R(_.Alert,"successIconColor",I("palette-success-main")),R(_.Alert,"warningIconColor",I("palette-warning-main")),R(_.AppBar,"defaultBg",I("palette-grey-100")),R(_.Avatar,"defaultBg",I("palette-grey-400")),R(_.Button,"inheritContainedBg",I("palette-grey-300")),R(_.Button,"inheritContainedHoverBg",I("palette-grey-A100")),R(_.Chip,"defaultBorder",I("palette-grey-400")),R(_.Chip,"defaultAvatarColor",I("palette-grey-700")),R(_.Chip,"defaultIconColor",I("palette-grey-700")),R(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),R(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),R(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),R(_.LinearProgress,"primaryBg",D(Ae,_.primary.main,.62)),R(_.LinearProgress,"secondaryBg",D(Ae,_.secondary.main,.62)),R(_.LinearProgress,"errorBg",D(Ae,_.error.main,.62)),R(_.LinearProgress,"infoBg",D(Ae,_.info.main,.62)),R(_.LinearProgress,"successBg",D(Ae,_.success.main,.62)),R(_.LinearProgress,"warningBg",D(Ae,_.warning.main,.62)),R(_.Skeleton,"bg",S?D(Rn,_.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),R(_.Slider,"primaryTrack",D(Ae,_.primary.main,.62)),R(_.Slider,"secondaryTrack",D(Ae,_.secondary.main,.62)),R(_.Slider,"errorTrack",D(Ae,_.error.main,.62)),R(_.Slider,"infoTrack",D(Ae,_.info.main,.62)),R(_.Slider,"successTrack",D(Ae,_.success.main,.62)),R(_.Slider,"warningTrack",D(Ae,_.warning.main,.62));const L=S?D(Oe,_.background.default,.6825):ps(_.background.default,.8);R(_.SnackbarContent,"bg",L),R(_.SnackbarContent,"color",Sr(()=>S?au.text.primary:_.getContrastText(L))),R(_.SpeedDialAction,"fabHoverBg",ps(_.background.paper,.15)),R(_.StepConnector,"border",I("palette-grey-400")),R(_.StepContent,"border",I("palette-grey-400")),R(_.Switch,"defaultColor",I("palette-common-white")),R(_.Switch,"defaultDisabledColor",I("palette-grey-100")),R(_.Switch,"primaryDisabledColor",D(Ae,_.primary.main,.62)),R(_.Switch,"secondaryDisabledColor",D(Ae,_.secondary.main,.62)),R(_.Switch,"errorDisabledColor",D(Ae,_.error.main,.62)),R(_.Switch,"infoDisabledColor",D(Ae,_.info.main,.62)),R(_.Switch,"successDisabledColor",D(Ae,_.success.main,.62)),R(_.Switch,"warningDisabledColor",D(Ae,_.warning.main,.62)),R(_.TableCell,"border",D(Ae,D(Rn,_.divider,1),.88)),R(_.Tooltip,"bg",D(Rn,_.grey[700],.92))}if(_.mode==="dark"){R(_.Alert,"errorColor",D(Ae,_.error.light,.6)),R(_.Alert,"infoColor",D(Ae,_.info.light,.6)),R(_.Alert,"successColor",D(Ae,_.success.light,.6)),R(_.Alert,"warningColor",D(Ae,_.warning.light,.6)),R(_.Alert,"errorFilledBg",I("palette-error-dark")),R(_.Alert,"infoFilledBg",I("palette-info-dark")),R(_.Alert,"successFilledBg",I("palette-success-dark")),R(_.Alert,"warningFilledBg",I("palette-warning-dark")),R(_.Alert,"errorFilledColor",Sr(()=>_.getContrastText(_.error.dark))),R(_.Alert,"infoFilledColor",Sr(()=>_.getContrastText(_.info.dark))),R(_.Alert,"successFilledColor",Sr(()=>_.getContrastText(_.success.dark))),R(_.Alert,"warningFilledColor",Sr(()=>_.getContrastText(_.warning.dark))),R(_.Alert,"errorStandardBg",D(Oe,_.error.light,.9)),R(_.Alert,"infoStandardBg",D(Oe,_.info.light,.9)),R(_.Alert,"successStandardBg",D(Oe,_.success.light,.9)),R(_.Alert,"warningStandardBg",D(Oe,_.warning.light,.9)),R(_.Alert,"errorIconColor",I("palette-error-main")),R(_.Alert,"infoIconColor",I("palette-info-main")),R(_.Alert,"successIconColor",I("palette-success-main")),R(_.Alert,"warningIconColor",I("palette-warning-main")),R(_.AppBar,"defaultBg",I("palette-grey-900")),R(_.AppBar,"darkBg",I("palette-background-paper")),R(_.AppBar,"darkColor",I("palette-text-primary")),R(_.Avatar,"defaultBg",I("palette-grey-600")),R(_.Button,"inheritContainedBg",I("palette-grey-800")),R(_.Button,"inheritContainedHoverBg",I("palette-grey-700")),R(_.Chip,"defaultBorder",I("palette-grey-700")),R(_.Chip,"defaultAvatarColor",I("palette-grey-300")),R(_.Chip,"defaultIconColor",I("palette-grey-300")),R(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),R(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),R(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),R(_.LinearProgress,"primaryBg",D(Oe,_.primary.main,.5)),R(_.LinearProgress,"secondaryBg",D(Oe,_.secondary.main,.5)),R(_.LinearProgress,"errorBg",D(Oe,_.error.main,.5)),R(_.LinearProgress,"infoBg",D(Oe,_.info.main,.5)),R(_.LinearProgress,"successBg",D(Oe,_.success.main,.5)),R(_.LinearProgress,"warningBg",D(Oe,_.warning.main,.5)),R(_.Skeleton,"bg",S?D(Rn,_.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),R(_.Slider,"primaryTrack",D(Oe,_.primary.main,.5)),R(_.Slider,"secondaryTrack",D(Oe,_.secondary.main,.5)),R(_.Slider,"errorTrack",D(Oe,_.error.main,.5)),R(_.Slider,"infoTrack",D(Oe,_.info.main,.5)),R(_.Slider,"successTrack",D(Oe,_.success.main,.5)),R(_.Slider,"warningTrack",D(Oe,_.warning.main,.5));const L=S?D(Ae,_.background.default,.985):ps(_.background.default,.98);R(_.SnackbarContent,"bg",L),R(_.SnackbarContent,"color",Sr(()=>S?Ag.text.primary:_.getContrastText(L))),R(_.SpeedDialAction,"fabHoverBg",ps(_.background.paper,.15)),R(_.StepConnector,"border",I("palette-grey-600")),R(_.StepContent,"border",I("palette-grey-600")),R(_.Switch,"defaultColor",I("palette-grey-300")),R(_.Switch,"defaultDisabledColor",I("palette-grey-600")),R(_.Switch,"primaryDisabledColor",D(Oe,_.primary.main,.55)),R(_.Switch,"secondaryDisabledColor",D(Oe,_.secondary.main,.55)),R(_.Switch,"errorDisabledColor",D(Oe,_.error.main,.55)),R(_.Switch,"infoDisabledColor",D(Oe,_.info.main,.55)),R(_.Switch,"successDisabledColor",D(Oe,_.success.main,.55)),R(_.Switch,"warningDisabledColor",D(Oe,_.warning.main,.55)),R(_.TableCell,"border",D(Oe,D(Rn,_.divider,1),.68)),R(_.Tooltip,"bg",D(Rn,_.grey[700],.92))}Lr(_.background,"default"),Lr(_.background,"paper"),Lr(_.common,"background"),Lr(_.common,"onBackground"),Lr(_,"divider"),Object.keys(_).forEach(L=>{const W=_[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&R(_[L],"mainChannel",ba(_a(W.main))),W.light&&R(_[L],"lightChannel",ba(_a(W.light))),W.dark&&R(_[L],"darkChannel",ba(_a(W.dark))),W.contrastText&&R(_[L],"contrastTextChannel",ba(_a(W.contrastText))),L==="text"&&(Lr(_[L],"primary"),Lr(_[L],"secondary")),L==="action"&&(W.active&&Lr(_[L],"active"),W.selected&&Lr(_[L],"selected")))})}),O=t.reduce((j,_)=>Wt(j,_),O);const E={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:yC(O),enableContrastVars:o},{vars:C,generateThemeVars:M,generateStyleSheets:$}=zP(O,E);return O.vars=C,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([j,_])=>{O[j]=_}),O.generateThemeVars=M,O.generateStyleSheets=$,O.generateSpacing=function(){return dg(u.spacing,Vc(this))},O.getColorSchemeSelector=WP(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...ts,...u?.unstable_sxConfig},O.unstable_sx=function(_){return wi({sx:_,theme:this})},O.toRuntimeSource=jg,O}function $g(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:ou({...r===!0?{}:r.palette,mode:t})})}function SC(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...o}=e,s=a||"light",l=i?.[s],c={...i,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return su(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const f=su({...e,palette:u},...t);return f.defaultColorScheme=s,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},$g(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},$g(f,"light",c.light)),f}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),_C({...o,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const OC=SC(),AC="$$material";function EC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const PC=AP({themeId:AC,defaultTheme:OC,rootShouldForwardProp:e=>EC(e)&&e!=="classes"}),CC=RP;process.env.NODE_ENV!=="production"&&(me.node,me.object.isRequired);function kC(e){return $P(e)}function TC(e){return Qc("MuiSvgIcon",e)}xP("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const MC=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Nn(t)}`,`fontSize${Nn(r)}`]};return SA(i,TC,n)},jC=PC("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Nn(r.color)}`],t[`fontSize${Nn(r.fontSize)}`]]}})(CC(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),ms=A.forwardRef(function(t,r){const n=kC({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24",...h}=n,m=A.isValidElement(i)&&i.type==="svg",p={...n,color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:m},g={};u||(g.viewBox=d);const v=MC(p);return y.jsxs(jC,{as:s,className:de(v.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r,...g,...h,...m&&i.props,ownerState:p,children:[m?i.props.children:i,f?y.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(ms.propTypes={children:me.node,classes:me.object,className:me.string,color:me.oneOfType([me.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),me.string]),component:me.elementType,fontSize:me.oneOfType([me.oneOf(["inherit","large","medium","small"]),me.string]),htmlColor:me.string,inheritViewBox:me.bool,shapeRendering:me.string,sx:me.oneOfType([me.arrayOf(me.oneOfType([me.func,me.object,me.bool])),me.func,me.object]),titleAccess:me.string,viewBox:me.string}),ms.muiName="SvgIcon";function gs(e,t){function r(n,i){return y.jsx(ms,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=ms.muiName,A.memo(A.forwardRef(r))}const DC=gs(y.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),Sa=gs(y.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),NC=gs(y.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),ht=gs(y.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNewOutlined");var Rg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Lg=k.createContext&&k.createContext(Rg),IC=["attr","size","title"];function $C(e,t){if(e==null)return{};var r=RC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vs.apply(this,arguments)}function Fg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fg(Object(r),!0).forEach(function(n){LC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LC(e,t,r){return t=FC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FC(e){var t=BC(e,"string");return typeof t=="symbol"?t:t+""}function BC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bg(e){return e&&e.map((t,r)=>k.createElement(t.tag,ys({key:r},t.attr),Bg(t.child)))}function Te(e){return t=>k.createElement(zC,vs({attr:ys({},e.attr)},t),Bg(e.child))}function zC(e){var t=r=>{var{attr:n,size:i,title:a}=e,o=$C(e,IC),s=i||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),k.createElement("svg",vs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:l,style:ys(ys({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&k.createElement("title",null,a),e.children)};return Lg!==void 0?k.createElement(Lg.Consumer,null,r=>t(r)):t(Rg)}function WC(e){return Te({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 160c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-82.7L342.6 374.6c-12.5 12.5-32.8 12.5-45.3 0L192 269.3 54.6 406.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0L320 306.7 466.7 160 384 160z"},child:[]}]})(e)}function VC(e){return Te({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"},child:[]}]})(e)}function HC(e){return Te({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"},child:[]}]})(e)}function UC(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"},child:[]}]})(e)}function KC(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"},child:[]}]})(e)}function qC({title:e,description:t}){return y.jsxs("div",{className:"flex items-center justify-between px-6 my-6",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[24px] text-[#121212] font-semibold",children:e}),y.jsx("div",{className:"text-gray-500 text-[14px]",children:t})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-[12px]",children:[y.jsxs("div",{className:"w-full sm:w-auto flex items-center justify-center gap-[8px] bg-white shadow-sm px-2 md:px-6 py-1 rounded-sm text-[#64748B] text-sm hover:bg-slate-50",children:[y.jsx(DC,{fontSize:"12"}),y.jsx("div",{className:" whitespace-nowrap",children:"Last 7 Days"}),y.jsx(UC,{fontSize:"12"})]}),y.jsxs("div",{className:"w-full flex items-center justify-center gap-[8px] bg-white text-[#884EA7] px-2 md:px-6 py-1 rounded-sm shadow-sm hover:bg-purple-50",children:[y.jsx("div",{className:"font-medium whitespace-nowrap",children:"Export Report"}),y.jsx(NC,{fontSize:"12"})]})]})]})}function zg(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function YC(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"},child:[]}]})(e)}function cu(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M9 22v-4h6v4"},child:[]},{tag:"path",attr:{d:"M8 6h.01"},child:[]},{tag:"path",attr:{d:"M16 6h.01"},child:[]},{tag:"path",attr:{d:"M12 6h.01"},child:[]},{tag:"path",attr:{d:"M12 10h.01"},child:[]},{tag:"path",attr:{d:"M12 14h.01"},child:[]},{tag:"path",attr:{d:"M16 10h.01"},child:[]},{tag:"path",attr:{d:"M16 14h.01"},child:[]},{tag:"path",attr:{d:"M8 10h.01"},child:[]},{tag:"path",attr:{d:"M8 14h.01"},child:[]}]})(e)}function GC(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"},child:[]},{tag:"circle",attr:{cx:"7",cy:"17",r:"2"},child:[]},{tag:"path",attr:{d:"M9 17h6"},child:[]},{tag:"circle",attr:{cx:"17",cy:"17",r:"2"},child:[]}]})(e)}function Wg(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 4h3a2 2 0 0 1 2 2v14"},child:[]},{tag:"path",attr:{d:"M2 20h3"},child:[]},{tag:"path",attr:{d:"M13 20h9"},child:[]},{tag:"path",attr:{d:"M10 12v.01"},child:[]},{tag:"path",attr:{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z"},child:[]}]})(e)}function XC(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 5h6"},child:[]},{tag:"path",attr:{d:"M19 2v6"},child:[]},{tag:"path",attr:{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"},child:[]},{tag:"path",attr:{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"},child:[]},{tag:"circle",attr:{cx:"9",cy:"9",r:"2"},child:[]}]})(e)}function Vg(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(e)}function Hg(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"},child:[]},{tag:"path",attr:{d:"M14 8H8"},child:[]},{tag:"path",attr:{d:"M16 12H8"},child:[]},{tag:"path",attr:{d:"M13 16H8"},child:[]}]})(e)}function Ug(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"},child:[]},{tag:"path",attr:{d:"m9 12 2 2 4-4"},child:[]}]})(e)}function Kg(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]}]})(e)}function ZC(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},child:[]}]})(e)}function qg(e){return Te({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"},child:[]}]})(e)}function Yg(e){return Te({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z"},child:[]}]})(e)}function Gg(e){return Te({attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 2 7 L 2 24 L 30 24 L 30 7 L 2 7 z M 6 9 L 26 9 C 26 10.105 26.895 11 28 11 L 28 20 C 26.895 20 26 20.895 26 22 L 6 22 C 6 20.895 5.105 20 4 20 L 4 11 C 5.105 11 6 10.105 6 9 z M 16 11 C 13.789 11 12 13.016 12 15.5 C 12 17.984 13.789 20 16 20 C 18.211 20 20 17.984 20 15.5 C 20 13.016 18.211 11 16 11 z M 16 13 C 17.102 13 18 14.121 18 15.5 C 18 16.879 17.102 18 16 18 C 14.898 18 14 16.879 14 15.5 C 14 14.121 14.898 13 16 13 z M 8.5 14 C 7.672 14 7 14.672 7 15.5 C 7 16.328 7.672 17 8.5 17 C 9.328 17 10 16.328 10 15.5 C 10 14.672 9.328 14 8.5 14 z M 23.5 14 C 22.672 14 22 14.672 22 15.5 C 22 16.328 22.672 17 23.5 17 C 24.328 17 25 16.328 25 15.5 C 25 14.672 24.328 14 23.5 14 z"},child:[]}]})(e)}const JC=[{name:"Overview",icon:qg},{name:"Community",icon:cu},{name:"Financials",icon:Gg},{name:"Facilities",icon:Wg},{name:"Gate & Security",icon:Kg},{name:"Helpdesk",icon:YC},{name:"Engagement",icon:Vg}];function QC(){const[e,t]=k.useState("Overview");return y.jsx("div",{className:"flex gap-[8px] p-3",children:JC.map(r=>{const n=r.icon,i=e===r.name;return y.jsxs("button",{onClick:()=>t(r.name),className:`flex items-center gap-[8px] rounded px-4 py-3 text-[14px] leading-[16px] font-medium transition
104
- ${i?"bg-[#FBF5FF] text-[#884EA7]":"bg-white text-[#64748B] hover:bg-gray-50"}`,children:[y.jsx(n,{className:"h-[15px] w-[15px] font-bold"}),r.name]},r.name)})})}const Xg=({color:e})=>y.jsx("span",{style:{display:"inline-block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e,marginRight:"6px"}}),Oa=({active:e,payload:t})=>!e||!t||!t.length?null:y.jsx("div",{className:"bg-[#121212] text-white !text-[12px] p-3 rounded-lg shadow-lg",children:t.map((r,n)=>(console.log(r,"test"),y.jsxs("div",{className:"capitalize flex gap-[4px] items-center leading-relaxed",children:[r.color&&y.jsx(Xg,{color:r.color}),r.payload.color&&y.jsx(Xg,{color:r.payload.color}),y.jsx("div",{className:"min-w-[84px] text-[#D1D3D4]",children:r.name}),y.jsx("div",{className:"font-semibold",children:r.value})]},n)))}),Zg=({value:e})=>{const t=typeof e=="string"?parseFloat(e.replace("%","")):e??0,r=t>=0;return y.jsxs("div",{className:`w-fit p-1 rounded text-[10px] leading-[14px] font-medium flex items-center gap-1 ${r?"bg-[#F7FEFA] text-[#1FA05B]":"bg-[#FFF2F2] text-[#AB0000]"}`,children:[r?y.jsx(HC,{}):y.jsx(VC,{}),Math.abs(t).toFixed(1),"%"]})},Ti=({title:e,icon:t,period:r,children:n,footer:i,className:a="",childrenClassName:o,titleWeight:s})=>{const l=s==="semi-bold"?600:500;return y.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,y.jsx("div",{style:{fontWeight:l,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),r&&y.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:r})]}),y.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${o}`,children:n}),i&&y.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:i})]})};var uu={},fu={},Jg;function ek(){return Jg||(Jg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(fu)),fu}var du={},Qg;function ev(){return Qg||(Qg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(du)),du}var hu={},tv;function rv(){return tv||(tv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(hu)),hu}var pu={},nv;function mu(){return nv||(nv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){const n=[],i=r.length;if(i===0)return n;let a=0,o="",s="",l=!1;for(r.charCodeAt(0)===46&&(n.push(""),a++);a<i;){const c=r[a];s?c==="\\"&&a+1<i?(a++,o+=r[a]):c===s?s="":o+=c:l?c==='"'||c==="'"?s=c:c==="]"?(l=!1,n.push(o),o=""):o+=c:c==="["?(l=!0,o&&(n.push(o),o="")):c==="."?o&&(n.push(o),o=""):o+=c,a++}return o&&n.push(o),n}e.toPath=t})(pu)),pu}var iv;function gu(){return iv||(iv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ek(),r=ev(),n=rv(),i=mu();function a(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?r.isDeepKey(l)?a(s,i.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return o(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function o(s,l,c){if(l.length===0)return c;let u=s;for(let f=0;f<l.length;f++){if(u==null||t.isUnsafeProperty(l[f]))return c;u=u[l[f]]}return u===void 0?c:u}e.get=a})(uu)),uu}var vu,av;function tk(){return av||(av=1,vu=gu().get),vu}var rk=tk();const Ln=Ir(rk);var pt=e=>e===0?0:e>0?1:-1,Ut=e=>typeof e=="number"&&e!=+e,Fn=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,X=e=>(typeof e=="number"||e instanceof Number)&&!Ut(e),Or=e=>X(e)||typeof e=="string",nk=0,Aa=e=>{var t=++nk;return"".concat(e||"").concat(t)},At=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!X(t)&&typeof t!="string")return n;var a;if(Fn(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Ut(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},ov=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[e[n]])r[e[n]]=!0;else return!0;return!1};function Ye(e,t,r){return X(e)&&X(t)?e+r*(t-e):t}function sv(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Ln(n,t))===r)}var ze=e=>e===null||typeof e>"u",Ea=e=>ze(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),ik=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function yu(e){if(typeof e!="string")return!1;var t=ik;return t.includes(e)}var ak=["viewBox","children"],lv=["points","pathLength"],bu={svg:ak,polygon:lv,polyline:lv},xu=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(k.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{yu(i)&&(n[i]=(a=>r[i](r,a)))}),n},ok=(e,t,r)=>n=>(e(t,r,n),null),bs=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];yu(i)&&typeof a=="function"&&(n||(n={}),n[i]=ok(a,t,r))}),n},sk=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","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","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","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","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function cv(e){if(typeof e!="string")return!1;var t=sk;return t.includes(e)}function Ar(e){var t=Object.entries(e).filter(r=>{var[n]=r;return cv(n)});return Object.fromEntries(t)}var uv=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",fv=null,wu=null,dv=e=>{if(e===fv&&Array.isArray(wu))return wu;var t=[];return k.Children.forEach(e,r=>{ze(r)||(ua.isFragment(r)?t=t.concat(dv(r.props.children)):t.push(r))}),wu=t,fv=e,t};function _u(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>uv(i)):n=[uv(t)],dv(e).forEach(i=>{var a=Ln(i,"type.displayName")||Ln(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}var hv=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,lk=(e,t,r,n)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var a=(i=n&&bu?.[n])!==null&&i!==void 0?i:[],o=t.startsWith("data-"),s=typeof e!="function"&&(!!n&&a.includes(t)||cv(t)),l=!!r&&yu(t);return o||s||l},Ue=(e,t,r)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(k.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var i={};return Object.keys(n).forEach(a=>{var o;lk((o=n)===null||o===void 0?void 0:o[a],a,t,r)&&(i[a]=n[a])}),i},ck=["children","width","height","viewBox","className","style","title","desc"];function Su(){return Su=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Su.apply(null,arguments)}function uk(e,t){if(e==null)return{};var r,n,i=fk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function fk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var pv=k.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:s,title:l,desc:c}=e,u=uk(e,ck),f=a||{width:n,height:i,x:0,y:0},d=de("recharts-surface",o);return A.createElement("svg",Su({},Ue(u,!0,"svg"),{className:d,width:n,height:i,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),A.createElement("title",null,l),A.createElement("desc",null,c),r)}),dk=["children","className"];function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ou.apply(null,arguments)}function hk(e,t){if(e==null)return{};var r,n,i=pk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function pk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var xt=A.forwardRef((e,t)=>{var{children:r,className:n}=e,i=hk(e,dk),a=de("recharts-layer",n);return A.createElement("g",Ou({className:a},Ue(i,!0),{ref:t}),r)}),mk=k.createContext(null);function $e(e){return function(){return e}}const mv=Math.cos,xs=Math.sin,pr=Math.sqrt,ws=Math.PI,_s=2*ws,Au=Math.PI,Eu=2*Au,Bn=1e-6,gk=Eu-Bn;function gv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function vk(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return gv;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class yk{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?gv:vk(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Bn)if(!(Math.abs(f*l-c*u)>Bn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,m=i-s,p=l*l+c*c,g=h*h+m*m,v=Math.sqrt(p),b=Math.sqrt(d),x=a*Math.tan((Au-Math.acos((p+d-g)/(2*v*b)))/2),S=x/b,w=x/v;Math.abs(S-1)>Bn&&this._append`L${t+S*u},${r+S*f}`,this._append`A${a},${a},0,0,${+(f*h>u*m)},${this._x1=t+w*l},${this._y1=r+w*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),c=t+s,u=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Bn||Math.abs(this._y1-u)>Bn)&&this._append`L${c},${u}`,n&&(d<0&&(d=d%Eu+Eu),d>gk?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:d>Bn&&this._append`A${n},${n},0,${+(d>=Au)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Pu(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new yk(t)}function Cu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function vv(e){this._context=e}vv.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 Ss(e){return new vv(e)}function yv(e){return e[0]}function bv(e){return e[1]}function xv(e,t){var r=$e(!0),n=null,i=Ss,a=null,o=Pu(s);e=typeof e=="function"?e:e===void 0?yv:$e(e),t=typeof t=="function"?t:t===void 0?bv:$e(t);function s(l){var c,u=(l=Cu(l)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=u;++c)!(c<u&&r(f=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,l),+t(f,c,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:$e(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:$e(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:$e(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Os(e,t,r){var n=null,i=$e(!0),a=null,o=Ss,s=null,l=Pu(c);e=typeof e=="function"?e:e===void 0?yv:$e(+e),t=typeof t=="function"?t:$e(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?bv:$e(+r);function c(f){var d,h,m,p=(f=Cu(f)).length,g,v=!1,b,x=new Array(p),S=new Array(p);for(a==null&&(s=o(b=l())),d=0;d<=p;++d){if(!(d<p&&i(g=f[d],d,f))===v)if(v=!v)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=h;--m)s.point(x[m],S[m]);s.lineEnd(),s.areaEnd()}v&&(x[d]=+e(g,d,f),S[d]=+t(g,d,f),s.point(n?+n(g,d,f):x[d],r?+r(g,d,f):S[d]))}if(b)return s=null,b+""||null}function u(){return xv().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:$e(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:$e(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:$e(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:$e(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:$e(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:$e(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:$e(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}class wv{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function bk(e){return new wv(e,!0)}function xk(e){return new wv(e,!1)}const ku={draw(e,t){const r=pr(t/ws);e.moveTo(r,0),e.arc(0,0,r,0,_s)}},wk={draw(e,t){const r=pr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},_v=pr(1/3),_k=_v*2,Sk={draw(e,t){const r=pr(t/_k),n=r*_v;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Ok={draw(e,t){const r=pr(t),n=-r/2;e.rect(n,n,r,r)}},Ak=.8908130915292852,Sv=xs(ws/10)/xs(7*ws/10),Ek=xs(_s/10)*Sv,Pk=-mv(_s/10)*Sv,Ck={draw(e,t){const r=pr(t*Ak),n=Ek*r,i=Pk*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=_s*a/5,s=mv(o),l=xs(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Tu=pr(3),kk={draw(e,t){const r=-pr(t/(Tu*3));e.moveTo(0,r*2),e.lineTo(-Tu*r,-r),e.lineTo(Tu*r,-r),e.closePath()}},nr=-.5,ir=pr(3)/2,Mu=1/pr(12),Tk=(Mu/2+1)*3,Mk={draw(e,t){const r=pr(t/Tk),n=r/2,i=r*Mu,a=n,o=r*Mu+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(nr*n-ir*i,ir*n+nr*i),e.lineTo(nr*a-ir*o,ir*a+nr*o),e.lineTo(nr*s-ir*l,ir*s+nr*l),e.lineTo(nr*n+ir*i,nr*i-ir*n),e.lineTo(nr*a+ir*o,nr*o-ir*a),e.lineTo(nr*s+ir*l,nr*l-ir*s),e.closePath()}};function jk(e,t){let r=null,n=Pu(i);e=typeof e=="function"?e:$e(e||ku),t=typeof t=="function"?t:$e(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:$e(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:$e(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function As(){}function Es(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Ov(e){this._context=e}Ov.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Es(this,this._x1,this._y1);case 2:this._context.lineTo(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Es(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dk(e){return new Ov(e)}function Av(e){this._context=e}Av.prototype={areaStart:As,areaEnd:As,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Es(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nk(e){return new Av(e)}function Ev(e){this._context=e}Ev.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Es(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ik(e){return new Ev(e)}function Pv(e){this._context=e}Pv.prototype={areaStart:As,areaEnd:As,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function $k(e){return new Pv(e)}function Cv(e){return e<0?-1:1}function kv(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Cv(a)+Cv(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Tv(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ju(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Ps(e){this._context=e}Ps.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:ju(this,this._t0,Tv(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 r=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,ju(this,Tv(this,r=kv(this,e,t)),r);break;default:ju(this,this._t0,r=kv(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Mv(e){this._context=new jv(e)}(Mv.prototype=Object.create(Ps.prototype)).point=function(e,t){Ps.prototype.point.call(this,t,e)};function jv(e){this._context=e}jv.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Rk(e){return new Ps(e)}function Lk(e){return new Mv(e)}function Dv(e){this._context=e}Dv.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Nv(e),i=Nv(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===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 Nv(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Fk(e){return new Dv(e)}function Cs(e,t){this._context=e,this._t=t}Cs.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Bk(e){return new Cs(e,.5)}function zk(e){return new Cs(e,0)}function Wk(e){return new Cs(e,1)}function Mi(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Du(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Vk(e,t){return e[t]}function Hk(e){const t=[];return t.key=e,t}function Uk(){var e=$e([]),t=Du,r=Mi,n=Vk;function i(a){var o=Array.from(e.apply(this,arguments),Hk),s,l=o.length,c=-1,u;for(const f of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+n(f,o[s].key,c,a)]).data=f;for(s=0,u=Cu(t(o));s<l;++s)o[u[s]].index=s;return r(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:$e(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:$e(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Du:typeof a=="function"?a:$e(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Mi,i):r},i}function Kk(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Mi(e,t)}}function qk(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Mi(e,t)}}function Yk(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],f=u[n][1]||0,d=u[n-1][1]||0,h=(f-d)/2,m=0;m<s;++m){var p=e[t[m]],g=p[n][1]||0,v=p[n-1][1]||0;h+=g-v}l+=f,c+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,Mi(e,t)}}var Gk=["type","size","sizeType"];function Nu(){return Nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nu.apply(null,arguments)}function Iv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $v(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iv(Object(r),!0).forEach(function(n){Xk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xk(e,t,r){return(t=Zk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zk(e){var t=Jk(e,"string");return typeof t=="symbol"?t:t+""}function Jk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qk(e,t){if(e==null)return{};var r,n,i=eT(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function eT(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Rv={symbolCircle:ku,symbolCross:wk,symbolDiamond:Sk,symbolSquare:Ok,symbolStar:Ck,symbolTriangle:kk,symbolWye:Mk},tT=Math.PI/180,rT=e=>{var t="symbol".concat(Ea(e));return Rv[t]||ku},nT=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*tT;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},iT=(e,t)=>{Rv["symbol".concat(Ea(e))]=t},Lv=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=Qk(e,Gk),a=$v($v({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var s=()=>{var d=rT(o),h=jk().type(d).size(nT(r,n,o));return h()},{className:l,cx:c,cy:u}=a,f=Ue(a,!0);return c===+c&&u===+u&&r===+r?A.createElement("path",Nu({},f,{className:de("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};Lv.registerSymbol=iT;var Iu={},$u={},Fv;function aT(){return Fv||(Fv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const o=r[a],s=n(o);i.has(s)||i.set(s,o)}return Array.from(i.values())}e.uniqBy=t})($u)),$u}var Ru={},Bv;function zv(){return Bv||(Bv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Ru)),Ru}var Lu={},Fu={},Bu={},Wv;function oT(){return Wv||(Wv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Bu)),Bu}var Vv;function zu(){return Vv||(Vv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oT();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Fu)),Fu}var Wu={},Hv;function sT(){return Hv||(Hv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(Wu)),Wu}var Uv;function lT(){return Uv||(Uv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zu(),r=sT();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(Lu)),Lu}var Vu={},Hu={},Kv;function cT(){return Kv||(Kv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gu();function r(n){return function(i){return t.get(i,n)}}e.property=r})(Hu)),Hu}var Uu={},Ku={},qu={},Yu={},qv;function Yv(){return qv||(qv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Yu)),Yu}var Gu={},Gv;function Xv(){return Gv||(Gv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(Gu)),Gu}var Xu={},Zv;function Jv(){return Zv||(Zv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t})(Xu)),Xu}var Qv;function uT(){return Qv||(Qv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zu(),r=Yv(),n=Xv(),i=Jv();function a(f,d,h){return typeof h!="function"?t.isMatch(f,d):o(f,d,function m(p,g,v,b,x,S){const w=h(p,g,v,b,x,S);return w!==void 0?!!w:o(p,g,m,S)},new Map)}function o(f,d,h,m){if(d===f)return!0;switch(typeof d){case"object":return s(f,d,h,m);case"function":return Object.keys(d).length>0?o(f,{...d},h,m):i.eq(f,d);default:return r.isObject(f)?typeof d=="string"?d==="":!0:i.eq(f,d)}}function s(f,d,h,m){if(d==null)return!0;if(Array.isArray(d))return c(f,d,h,m);if(d instanceof Map)return l(f,d,h,m);if(d instanceof Set)return u(f,d,h,m);const p=Object.keys(d);if(f==null)return p.length===0;if(p.length===0)return!0;if(m&&m.has(d))return m.get(d)===f;m&&m.set(d,f);try{for(let g=0;g<p.length;g++){const v=p[g];if(!n.isPrimitive(f)&&!(v in f)||d[v]===void 0&&f[v]!==void 0||d[v]===null&&f[v]!==null||!h(f[v],d[v],v,f,d,m))return!1}return!0}finally{m&&m.delete(d)}}function l(f,d,h,m){if(d.size===0)return!0;if(!(f instanceof Map))return!1;for(const[p,g]of d.entries()){const v=f.get(p);if(h(v,g,p,f,d,m)===!1)return!1}return!0}function c(f,d,h,m){if(d.length===0)return!0;if(!Array.isArray(f))return!1;const p=new Set;for(let g=0;g<d.length;g++){const v=d[g];let b=!1;for(let x=0;x<f.length;x++){if(p.has(x))continue;const S=f[x];let w=!1;if(h(S,v,g,f,d,m)&&(w=!0),w){p.add(x),b=!0;break}}if(!b)return!1}return!0}function u(f,d,h,m){return d.size===0?!0:f instanceof Set?c([...f],[...d],h,m):!1}e.isMatchWith=a,e.isSetMatch=u})(qu)),qu}var ey;function Zu(){return ey||(ey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uT();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r})(Ku)),Ku}var Ju={},Qu={},ef={},ty;function fT(){return ty||(ty=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(ef)),ef}var tf={},ry;function ny(){return ry||(ry=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(tf)),tf}var rf={},iy;function ay(){return iy||(iy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",o="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",f="[object Function]",d="[object ArrayBuffer]",h="[object Object]",m="[object Error]",p="[object DataView]",g="[object Uint8Array]",v="[object Uint8ClampedArray]",b="[object Uint16Array]",x="[object Uint32Array]",S="[object BigUint64Array]",w="[object Int8Array]",O="[object Int16Array]",E="[object Int32Array]",C="[object BigInt64Array]",M="[object Float32Array]",$="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=d,e.arrayTag=u,e.bigInt64ArrayTag=C,e.bigUint64ArrayTag=S,e.booleanTag=i,e.dataViewTag=p,e.dateTag=s,e.errorTag=m,e.float32ArrayTag=M,e.float64ArrayTag=$,e.functionTag=f,e.int16ArrayTag=O,e.int32ArrayTag=E,e.int8ArrayTag=w,e.mapTag=l,e.numberTag=n,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=b,e.uint32ArrayTag=x,e.uint8ArrayTag=g,e.uint8ClampedArrayTag=v})(rf)),rf}var nf={},oy;function dT(){return oy||(oy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(nf)),nf}var sy;function ly(){return sy||(sy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fT(),r=ny(),n=ay(),i=Xv(),a=dT();function o(u,f){return s(u,void 0,u,new Map,f)}function s(u,f,d,h=new Map,m=void 0){const p=m?.(u,f,d,h);if(p!==void 0)return p;if(i.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const g=new Array(u.length);h.set(u,g);for(let v=0;v<u.length;v++)g[v]=s(u[v],v,d,h,m);return Object.hasOwn(u,"index")&&(g.index=u.index),Object.hasOwn(u,"input")&&(g.input=u.input),g}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const g=new RegExp(u.source,u.flags);return g.lastIndex=u.lastIndex,g}if(u instanceof Map){const g=new Map;h.set(u,g);for(const[v,b]of u)g.set(v,s(b,v,d,h,m));return g}if(u instanceof Set){const g=new Set;h.set(u,g);for(const v of u)g.add(s(v,void 0,d,h,m));return g}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(a.isTypedArray(u)){const g=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,g);for(let v=0;v<u.length;v++)g[v]=s(u[v],v,d,h,m);return g}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const g=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,g),l(g,u,d,h,m),g}if(typeof File<"u"&&u instanceof File){const g=new File([u],u.name,{type:u.type});return h.set(u,g),l(g,u,d,h,m),g}if(u instanceof Blob){const g=new Blob([u],{type:u.type});return h.set(u,g),l(g,u,d,h,m),g}if(u instanceof Error){const g=new u.constructor;return h.set(u,g),g.message=u.message,g.name=u.name,g.stack=u.stack,g.cause=u.cause,l(g,u,d,h,m),g}if(typeof u=="object"&&c(u)){const g=Object.create(Object.getPrototypeOf(u));return h.set(u,g),l(g,u,d,h,m),g}return u}function l(u,f,d=u,h,m){const p=[...Object.keys(f),...t.getSymbols(f)];for(let g=0;g<p.length;g++){const v=p[g],b=Object.getOwnPropertyDescriptor(u,v);(b==null||b.writable)&&(u[v]=s(f[v],v,d,h,m))}}function c(u){switch(r.getTag(u)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=o,e.cloneDeepWithImpl=s,e.copyProperties=l})(Qu)),Qu}var cy;function hT(){return cy||(cy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ly();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(Ju)),Ju}var uy;function pT(){return uy||(uy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zu(),r=hT();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n})(Uu)),Uu}var af={},of={},sf={},fy;function mT(){return fy||(fy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ly(),r=ay();function n(i,a){return t.cloneDeepWith(i,(o,s,l,c)=>{const u=a?.(o,s,l,c);if(u!==void 0)return u;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case r.numberTag:case r.stringTag:case r.booleanTag:{const f=new i.constructor(i?.valueOf());return t.copyProperties(f,i),f}case r.argumentsTag:{const f={};return t.copyProperties(f,i),f.length=i.length,f[Symbol.iterator]=i[Symbol.iterator],f}default:return}})}e.cloneDeepWith=n})(sf)),sf}var dy;function gT(){return dy||(dy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mT();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(of)),of}var lf={},cf={},hy;function py(){return hy||(hy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(cf)),cf}var uf={},my;function vT(){return my||(my=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ny();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(uf)),uf}var gy;function yT(){return gy||(gy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ev(),r=py(),n=vT(),i=mu();function a(o,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&o?.[s]==null?l=i.toPath(s):l=[s],l.length===0)return!1;let c=o;for(let u=0;u<l.length;u++){const f=l[u];if((c==null||!Object.hasOwn(c,f))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(f)&&f<c.length))return!1;c=c[f]}return!0}e.has=a})(lf)),lf}var vy;function bT(){return vy||(vy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zu(),r=rv(),n=gT(),i=gu(),a=yT();function o(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=r.toKey(s);break}}return l=n.cloneDeep(l),function(c){const u=i.get(c,s);return u===void 0?a.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=o})(af)),af}var yy;function xT(){return yy||(yy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zv(),r=cT(),n=pT(),i=bT();function a(o){if(o==null)return t.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?i.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}e.iteratee=a})(Vu)),Vu}var by;function wT(){return by||(by=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=aT(),r=zv(),n=lT(),i=xT();function a(o,s=r.identity){return n.isArrayLikeObject(o)?t.uniqBy(Array.from(o),i.iteratee(s)):[]}e.uniqBy=a})(Iu)),Iu}var ff,xy;function _T(){return xy||(xy=1,ff=wT().uniqBy),ff}var ST=_T();const wy=Ir(ST);function OT(e,t,r){return t===!0?wy(e,r):typeof t=="function"?wy(e,t):e}var ks={exports:{}},df={},Ts={exports:{}},hf={};/**
101
+ export default theme;`}function Ig(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const dC=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function hC(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Sg(t,dC(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${Ig(r)})`:ps(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${Ig(r)})`:hs(t,r)}})}function lu(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:l,colorSpace:c,...u}=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.":sn(20));const f=su({...a,colorSpace:c}),d=mg(e);let h=Wt(d,{mixins:QP(d.breakpoints,n),palette:f,shadows:aC.slice(),typography:tC(f,s),transitions:cC(o),zIndex:{...uC}});if(h=Wt(h,u),h=t.reduce((m,p)=>Wt(m,p),h),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(g,v)=>{let b;for(b in g){const x=g[b];if(m.includes(b)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const S=eu("",b);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(g,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
102
+ `))}g[b]={}}}};Object.keys(h.components).forEach(g=>{const v=h.components[g].styleOverrides;v&&g.startsWith("Mui")&&p(v,g)})}return h.unstable_sxConfig={...rs,...u?.unstable_sxConfig},h.unstable_sx=function(p){return _i({sx:p,theme:this})},h.toRuntimeSource=Ng,hC(h),h}function pC(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 mC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=pC(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function $g(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Rg(e){return e==="dark"?mC:[]}function gC(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:i,...a}=e,o=su({...t,colorSpace:i});return{palette:o,opacity:{...$g(o.mode),...r},overlays:n||Rg(o.mode),...a}}function vC(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 yC=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],bC=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return yC(e.cssVarPrefix).forEach(s=>{o[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:a?{[a.replace("%s",t)]:o,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...o}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function xC(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function R(e,t,r){!e[t]&&r&&(e[t]=r)}function Sa(e){return typeof e!="string"||!e.startsWith("hsl")?e:wg(e)}function Lr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=xa(Sa(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().
103
+ 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 wC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Sr=e=>{try{return e()}catch{}},_C=(e="mui")=>FP(e);function cu(e,t,r,n,i){if(!r)return;r=r===!0?{}:r;const a=i==="dark"?"dark":"light";if(!n){t[i]=gC({...r,palette:{mode:a,...r?.palette},colorSpace:e});return}const{palette:o,...s}=lu({...n,palette:{mode:a,...r?.palette},colorSpace:e});return t[i]={...r,palette:o,opacity:{...$g(a),...r?.opacity},overlays:r?.overlays||Rg(a)},s}function SC(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",nativeColor:o=!1,shouldSkipGeneratingVar:s=vC,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,f=Object.keys(r)[0],d=n||(r.light&&f!=="light"?"light":f),h=_C(a),{[d]:m,light:p,dark:g,...v}=r,b={...v};let x=m;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:sn(21,d));let S;o&&(S="oklch");const w=cu(S,b,x,u,d);p&&!b.light&&cu(S,b,p,void 0,"light"),g&&!b.dark&&cu(S,b,g,void 0,"dark");let O={defaultColorScheme:d,...w,cssVarPrefix:a,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:b,font:{...JP(w.typography),...w.font},spacing:wC(u.spacing)};Object.keys(O.colorSchemes).forEach(j=>{const _=O.colorSchemes[j].palette,I=L=>{const W=L.split("-"),H=W[1],te=W[2];return h(L,_[H][te])};_.mode==="light"&&(R(_.common,"background","#fff"),R(_.common,"onBackground","#000")),_.mode==="dark"&&(R(_.common,"background","#000"),R(_.common,"onBackground","#fff"));function D(L,W,H){if(S){let te;return L===Rn&&(te=`transparent ${((1-H)*100).toFixed(0)}%`),L===Oe&&(te=`#000 ${(H*100).toFixed(0)}%`),L===Ae&&(te=`#fff ${(H*100).toFixed(0)}%`),`color-mix(in ${S}, ${W}, ${te})`}return L(W,H)}if(xC(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){R(_.Alert,"errorColor",D(Oe,_.error.light,.6)),R(_.Alert,"infoColor",D(Oe,_.info.light,.6)),R(_.Alert,"successColor",D(Oe,_.success.light,.6)),R(_.Alert,"warningColor",D(Oe,_.warning.light,.6)),R(_.Alert,"errorFilledBg",I("palette-error-main")),R(_.Alert,"infoFilledBg",I("palette-info-main")),R(_.Alert,"successFilledBg",I("palette-success-main")),R(_.Alert,"warningFilledBg",I("palette-warning-main")),R(_.Alert,"errorFilledColor",Sr(()=>_.getContrastText(_.error.main))),R(_.Alert,"infoFilledColor",Sr(()=>_.getContrastText(_.info.main))),R(_.Alert,"successFilledColor",Sr(()=>_.getContrastText(_.success.main))),R(_.Alert,"warningFilledColor",Sr(()=>_.getContrastText(_.warning.main))),R(_.Alert,"errorStandardBg",D(Ae,_.error.light,.9)),R(_.Alert,"infoStandardBg",D(Ae,_.info.light,.9)),R(_.Alert,"successStandardBg",D(Ae,_.success.light,.9)),R(_.Alert,"warningStandardBg",D(Ae,_.warning.light,.9)),R(_.Alert,"errorIconColor",I("palette-error-main")),R(_.Alert,"infoIconColor",I("palette-info-main")),R(_.Alert,"successIconColor",I("palette-success-main")),R(_.Alert,"warningIconColor",I("palette-warning-main")),R(_.AppBar,"defaultBg",I("palette-grey-100")),R(_.Avatar,"defaultBg",I("palette-grey-400")),R(_.Button,"inheritContainedBg",I("palette-grey-300")),R(_.Button,"inheritContainedHoverBg",I("palette-grey-A100")),R(_.Chip,"defaultBorder",I("palette-grey-400")),R(_.Chip,"defaultAvatarColor",I("palette-grey-700")),R(_.Chip,"defaultIconColor",I("palette-grey-700")),R(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),R(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),R(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),R(_.LinearProgress,"primaryBg",D(Ae,_.primary.main,.62)),R(_.LinearProgress,"secondaryBg",D(Ae,_.secondary.main,.62)),R(_.LinearProgress,"errorBg",D(Ae,_.error.main,.62)),R(_.LinearProgress,"infoBg",D(Ae,_.info.main,.62)),R(_.LinearProgress,"successBg",D(Ae,_.success.main,.62)),R(_.LinearProgress,"warningBg",D(Ae,_.warning.main,.62)),R(_.Skeleton,"bg",S?D(Rn,_.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),R(_.Slider,"primaryTrack",D(Ae,_.primary.main,.62)),R(_.Slider,"secondaryTrack",D(Ae,_.secondary.main,.62)),R(_.Slider,"errorTrack",D(Ae,_.error.main,.62)),R(_.Slider,"infoTrack",D(Ae,_.info.main,.62)),R(_.Slider,"successTrack",D(Ae,_.success.main,.62)),R(_.Slider,"warningTrack",D(Ae,_.warning.main,.62));const L=S?D(Oe,_.background.default,.6825):ms(_.background.default,.8);R(_.SnackbarContent,"bg",L),R(_.SnackbarContent,"color",Sr(()=>S?ou.text.primary:_.getContrastText(L))),R(_.SpeedDialAction,"fabHoverBg",ms(_.background.paper,.15)),R(_.StepConnector,"border",I("palette-grey-400")),R(_.StepContent,"border",I("palette-grey-400")),R(_.Switch,"defaultColor",I("palette-common-white")),R(_.Switch,"defaultDisabledColor",I("palette-grey-100")),R(_.Switch,"primaryDisabledColor",D(Ae,_.primary.main,.62)),R(_.Switch,"secondaryDisabledColor",D(Ae,_.secondary.main,.62)),R(_.Switch,"errorDisabledColor",D(Ae,_.error.main,.62)),R(_.Switch,"infoDisabledColor",D(Ae,_.info.main,.62)),R(_.Switch,"successDisabledColor",D(Ae,_.success.main,.62)),R(_.Switch,"warningDisabledColor",D(Ae,_.warning.main,.62)),R(_.TableCell,"border",D(Ae,D(Rn,_.divider,1),.88)),R(_.Tooltip,"bg",D(Rn,_.grey[700],.92))}if(_.mode==="dark"){R(_.Alert,"errorColor",D(Ae,_.error.light,.6)),R(_.Alert,"infoColor",D(Ae,_.info.light,.6)),R(_.Alert,"successColor",D(Ae,_.success.light,.6)),R(_.Alert,"warningColor",D(Ae,_.warning.light,.6)),R(_.Alert,"errorFilledBg",I("palette-error-dark")),R(_.Alert,"infoFilledBg",I("palette-info-dark")),R(_.Alert,"successFilledBg",I("palette-success-dark")),R(_.Alert,"warningFilledBg",I("palette-warning-dark")),R(_.Alert,"errorFilledColor",Sr(()=>_.getContrastText(_.error.dark))),R(_.Alert,"infoFilledColor",Sr(()=>_.getContrastText(_.info.dark))),R(_.Alert,"successFilledColor",Sr(()=>_.getContrastText(_.success.dark))),R(_.Alert,"warningFilledColor",Sr(()=>_.getContrastText(_.warning.dark))),R(_.Alert,"errorStandardBg",D(Oe,_.error.light,.9)),R(_.Alert,"infoStandardBg",D(Oe,_.info.light,.9)),R(_.Alert,"successStandardBg",D(Oe,_.success.light,.9)),R(_.Alert,"warningStandardBg",D(Oe,_.warning.light,.9)),R(_.Alert,"errorIconColor",I("palette-error-main")),R(_.Alert,"infoIconColor",I("palette-info-main")),R(_.Alert,"successIconColor",I("palette-success-main")),R(_.Alert,"warningIconColor",I("palette-warning-main")),R(_.AppBar,"defaultBg",I("palette-grey-900")),R(_.AppBar,"darkBg",I("palette-background-paper")),R(_.AppBar,"darkColor",I("palette-text-primary")),R(_.Avatar,"defaultBg",I("palette-grey-600")),R(_.Button,"inheritContainedBg",I("palette-grey-800")),R(_.Button,"inheritContainedHoverBg",I("palette-grey-700")),R(_.Chip,"defaultBorder",I("palette-grey-700")),R(_.Chip,"defaultAvatarColor",I("palette-grey-300")),R(_.Chip,"defaultIconColor",I("palette-grey-300")),R(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),R(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),R(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),R(_.LinearProgress,"primaryBg",D(Oe,_.primary.main,.5)),R(_.LinearProgress,"secondaryBg",D(Oe,_.secondary.main,.5)),R(_.LinearProgress,"errorBg",D(Oe,_.error.main,.5)),R(_.LinearProgress,"infoBg",D(Oe,_.info.main,.5)),R(_.LinearProgress,"successBg",D(Oe,_.success.main,.5)),R(_.LinearProgress,"warningBg",D(Oe,_.warning.main,.5)),R(_.Skeleton,"bg",S?D(Rn,_.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),R(_.Slider,"primaryTrack",D(Oe,_.primary.main,.5)),R(_.Slider,"secondaryTrack",D(Oe,_.secondary.main,.5)),R(_.Slider,"errorTrack",D(Oe,_.error.main,.5)),R(_.Slider,"infoTrack",D(Oe,_.info.main,.5)),R(_.Slider,"successTrack",D(Oe,_.success.main,.5)),R(_.Slider,"warningTrack",D(Oe,_.warning.main,.5));const L=S?D(Ae,_.background.default,.985):ms(_.background.default,.98);R(_.SnackbarContent,"bg",L),R(_.SnackbarContent,"color",Sr(()=>S?Pg.text.primary:_.getContrastText(L))),R(_.SpeedDialAction,"fabHoverBg",ms(_.background.paper,.15)),R(_.StepConnector,"border",I("palette-grey-600")),R(_.StepContent,"border",I("palette-grey-600")),R(_.Switch,"defaultColor",I("palette-grey-300")),R(_.Switch,"defaultDisabledColor",I("palette-grey-600")),R(_.Switch,"primaryDisabledColor",D(Oe,_.primary.main,.55)),R(_.Switch,"secondaryDisabledColor",D(Oe,_.secondary.main,.55)),R(_.Switch,"errorDisabledColor",D(Oe,_.error.main,.55)),R(_.Switch,"infoDisabledColor",D(Oe,_.info.main,.55)),R(_.Switch,"successDisabledColor",D(Oe,_.success.main,.55)),R(_.Switch,"warningDisabledColor",D(Oe,_.warning.main,.55)),R(_.TableCell,"border",D(Oe,D(Rn,_.divider,1),.68)),R(_.Tooltip,"bg",D(Rn,_.grey[700],.92))}Lr(_.background,"default"),Lr(_.background,"paper"),Lr(_.common,"background"),Lr(_.common,"onBackground"),Lr(_,"divider"),Object.keys(_).forEach(L=>{const W=_[L];L!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&R(_[L],"mainChannel",xa(Sa(W.main))),W.light&&R(_[L],"lightChannel",xa(Sa(W.light))),W.dark&&R(_[L],"darkChannel",xa(Sa(W.dark))),W.contrastText&&R(_[L],"contrastTextChannel",xa(Sa(W.contrastText))),L==="text"&&(Lr(_[L],"primary"),Lr(_[L],"secondary")),L==="action"&&(W.active&&Lr(_[L],"active"),W.selected&&Lr(_[L],"selected")))})}),O=t.reduce((j,_)=>Wt(j,_),O);const E={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:bC(O),enableContrastVars:o},{vars:C,generateThemeVars:M,generateStyleSheets:$}=WP(O,E);return O.vars=C,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([j,_])=>{O[j]=_}),O.generateThemeVars=M,O.generateStyleSheets=$,O.generateSpacing=function(){return pg(u.spacing,Hc(this))},O.getColorSchemeSelector=VP(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...rs,...u?.unstable_sxConfig},O.unstable_sx=function(_){return _i({sx:_,theme:this})},O.toRuntimeSource=Ng,O}function Lg(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:su({...r===!0?{}:r.palette,mode:t})})}function OC(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...o}=e,s=a||"light",l=i?.[s],c={...i,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return lu(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const f=lu({...e,palette:u},...t);return f.defaultColorScheme=s,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},Lg(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},Lg(f,"light",c.light)),f}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),SC({...o,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const AC=OC(),EC="$$material";function PC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const CC=EP({themeId:EC,defaultTheme:AC,rootShouldForwardProp:e=>PC(e)&&e!=="classes"}),kC=LP;process.env.NODE_ENV!=="production"&&(me.node,me.object.isRequired);function TC(e){return RP(e)}function MC(e){return eu("MuiSvgIcon",e)}wP("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jC=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Nn(t)}`,`fontSize${Nn(r)}`]};return OA(i,MC,n)},DC=CC("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Nn(r.color)}`],t[`fontSize${Nn(r.fontSize)}`]]}})(kC(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),gs=A.forwardRef(function(t,r){const n=TC({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24",...h}=n,m=A.isValidElement(i)&&i.type==="svg",p={...n,color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:m},g={};u||(g.viewBox=d);const v=jC(p);return y.jsxs(DC,{as:s,className:de(v.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r,...g,...h,...m&&i.props,ownerState:p,children:[m?i.props.children:i,f?y.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(gs.propTypes={children:me.node,classes:me.object,className:me.string,color:me.oneOfType([me.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),me.string]),component:me.elementType,fontSize:me.oneOfType([me.oneOf(["inherit","large","medium","small"]),me.string]),htmlColor:me.string,inheritViewBox:me.bool,shapeRendering:me.string,sx:me.oneOfType([me.arrayOf(me.oneOfType([me.func,me.object,me.bool])),me.func,me.object]),titleAccess:me.string,viewBox:me.string}),gs.muiName="SvgIcon";function vs(e,t){function r(n,i){return y.jsx(gs,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=gs.muiName,A.memo(A.forwardRef(r))}const NC=vs(y.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),Oa=vs(y.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),IC=vs(y.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),ht=vs(y.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNewOutlined");var Fg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Bg=k.createContext&&k.createContext(Fg),$C=["attr","size","title"];function RC(e,t){if(e==null)return{};var r=LC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ys.apply(this,arguments)}function zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zg(Object(r),!0).forEach(function(n){FC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FC(e,t,r){return t=BC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BC(e){var t=zC(e,"string");return typeof t=="symbol"?t:t+""}function zC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wg(e){return e&&e.map((t,r)=>k.createElement(t.tag,bs({key:r},t.attr),Wg(t.child)))}function Te(e){return t=>k.createElement(WC,ys({attr:bs({},e.attr)},t),Wg(e.child))}function WC(e){var t=r=>{var{attr:n,size:i,title:a}=e,o=RC(e,$C),s=i||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),k.createElement("svg",ys({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:l,style:bs(bs({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&k.createElement("title",null,a),e.children)};return Bg!==void 0?k.createElement(Bg.Consumer,null,r=>t(r)):t(Fg)}function VC(e){return Te({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 160c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-82.7L342.6 374.6c-12.5 12.5-32.8 12.5-45.3 0L192 269.3 54.6 406.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160c12.5-12.5 32.8-12.5 45.3 0L320 306.7 466.7 160 384 160z"},child:[]}]})(e)}function HC(e){return Te({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"},child:[]}]})(e)}function UC(e){return Te({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"},child:[]}]})(e)}function KC(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"},child:[]}]})(e)}function qC(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"},child:[]}]})(e)}function YC({title:e,description:t}){return y.jsxs("div",{className:"flex items-center justify-between px-6 my-6",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[24px] text-[#121212] font-semibold",children:e}),y.jsx("div",{className:"text-gray-500 text-[14px]",children:t})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-[12px]",children:[y.jsxs("div",{className:"w-full sm:w-auto flex items-center justify-center gap-[8px] bg-white shadow-sm px-2 md:px-6 py-1 rounded-sm text-[#64748B] text-sm hover:bg-slate-50",children:[y.jsx(NC,{fontSize:"12"}),y.jsx("div",{className:" whitespace-nowrap",children:"Last 7 Days"}),y.jsx(KC,{fontSize:"12"})]}),y.jsxs("div",{className:"w-full flex items-center justify-center gap-[8px] bg-white text-[#884EA7] px-2 md:px-6 py-1 rounded-sm shadow-sm hover:bg-purple-50",children:[y.jsx("div",{className:"font-medium whitespace-nowrap",children:"Export Report"}),y.jsx(IC,{fontSize:"12"})]})]})]})}function Vg(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function GC(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"},child:[]}]})(e)}function uu(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M9 22v-4h6v4"},child:[]},{tag:"path",attr:{d:"M8 6h.01"},child:[]},{tag:"path",attr:{d:"M16 6h.01"},child:[]},{tag:"path",attr:{d:"M12 6h.01"},child:[]},{tag:"path",attr:{d:"M12 10h.01"},child:[]},{tag:"path",attr:{d:"M12 14h.01"},child:[]},{tag:"path",attr:{d:"M16 10h.01"},child:[]},{tag:"path",attr:{d:"M16 14h.01"},child:[]},{tag:"path",attr:{d:"M8 10h.01"},child:[]},{tag:"path",attr:{d:"M8 14h.01"},child:[]}]})(e)}function XC(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"},child:[]},{tag:"circle",attr:{cx:"7",cy:"17",r:"2"},child:[]},{tag:"path",attr:{d:"M9 17h6"},child:[]},{tag:"circle",attr:{cx:"17",cy:"17",r:"2"},child:[]}]})(e)}function Hg(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13 4h3a2 2 0 0 1 2 2v14"},child:[]},{tag:"path",attr:{d:"M2 20h3"},child:[]},{tag:"path",attr:{d:"M13 20h9"},child:[]},{tag:"path",attr:{d:"M10 12v.01"},child:[]},{tag:"path",attr:{d:"M13 4.562v16.157a1 1 0 0 1-1.242.97L5 20V5.562a2 2 0 0 1 1.515-1.94l4-1A2 2 0 0 1 13 4.561Z"},child:[]}]})(e)}function ZC(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 5h6"},child:[]},{tag:"path",attr:{d:"M19 2v6"},child:[]},{tag:"path",attr:{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"},child:[]},{tag:"path",attr:{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"},child:[]},{tag:"circle",attr:{cx:"9",cy:"9",r:"2"},child:[]}]})(e)}function Ug(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(e)}function Kg(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"},child:[]},{tag:"path",attr:{d:"M14 8H8"},child:[]},{tag:"path",attr:{d:"M16 12H8"},child:[]},{tag:"path",attr:{d:"M13 16H8"},child:[]}]})(e)}function qg(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"},child:[]},{tag:"path",attr:{d:"m9 12 2 2 4-4"},child:[]}]})(e)}function fu(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]},{tag:"path",attr:{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"},child:[]}]})(e)}function JC(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},child:[]}]})(e)}function Yg(e){return Te({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.03 2.59a1.501 1.501 0 0 1 1.94 0l7.5 6.363a1.5 1.5 0 0 1 .53 1.144V19.5a1.5 1.5 0 0 1-1.5 1.5h-5.75a.75.75 0 0 1-.75-.75V14h-2v6.25a.75.75 0 0 1-.75.75H4.5A1.5 1.5 0 0 1 3 19.5v-9.403c0-.44.194-.859.53-1.144ZM12 3.734l-7.5 6.363V19.5h5v-6.25a.75.75 0 0 1 .75-.75h3.5a.75.75 0 0 1 .75.75v6.25h5v-9.403Z"},child:[]}]})(e)}function Gg(e){return Te({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z"},child:[]}]})(e)}function Xg(e){return Te({attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 2 7 L 2 24 L 30 24 L 30 7 L 2 7 z M 6 9 L 26 9 C 26 10.105 26.895 11 28 11 L 28 20 C 26.895 20 26 20.895 26 22 L 6 22 C 6 20.895 5.105 20 4 20 L 4 11 C 5.105 11 6 10.105 6 9 z M 16 11 C 13.789 11 12 13.016 12 15.5 C 12 17.984 13.789 20 16 20 C 18.211 20 20 17.984 20 15.5 C 20 13.016 18.211 11 16 11 z M 16 13 C 17.102 13 18 14.121 18 15.5 C 18 16.879 17.102 18 16 18 C 14.898 18 14 16.879 14 15.5 C 14 14.121 14.898 13 16 13 z M 8.5 14 C 7.672 14 7 14.672 7 15.5 C 7 16.328 7.672 17 8.5 17 C 9.328 17 10 16.328 10 15.5 C 10 14.672 9.328 14 8.5 14 z M 23.5 14 C 22.672 14 22 14.672 22 15.5 C 22 16.328 22.672 17 23.5 17 C 24.328 17 25 16.328 25 15.5 C 25 14.672 24.328 14 23.5 14 z"},child:[]}]})(e)}const QC=[{name:"Overview",icon:Yg},{name:"Community",icon:uu},{name:"Financials",icon:Xg},{name:"Facilities",icon:Hg},{name:"Gate & Security",icon:fu},{name:"Helpdesk",icon:GC},{name:"Engagement",icon:Ug}];function ek(){const[e,t]=k.useState("Overview");return y.jsx("div",{className:"flex gap-[8px] p-3",children:QC.map(r=>{const n=r.icon,i=e===r.name;return y.jsxs("button",{onClick:()=>t(r.name),className:`flex items-center gap-[8px] rounded px-4 py-3 text-[14px] leading-[16px] font-medium transition
104
+ ${i?"bg-[#FBF5FF] text-[#884EA7]":"bg-white text-[#64748B] hover:bg-gray-50"}`,children:[y.jsx(n,{className:"h-[15px] w-[15px] font-bold"}),r.name]},r.name)})})}const Zg=({color:e})=>y.jsx("span",{style:{display:"inline-block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e,marginRight:"6px"}}),Aa=({active:e,payload:t})=>!e||!t||!t.length?null:y.jsx("div",{className:"bg-[#121212] text-white !text-[12px] p-3 rounded-lg shadow-lg",children:t.map((r,n)=>(console.log(r,"test"),y.jsxs("div",{className:"capitalize flex gap-[4px] items-center leading-relaxed",children:[r.color&&y.jsx(Zg,{color:r.color}),r.payload.color&&y.jsx(Zg,{color:r.payload.color}),y.jsx("div",{className:"min-w-[84px] text-[#D1D3D4]",children:r.name}),y.jsx("div",{className:"font-semibold",children:r.value})]},n)))}),Jg=({value:e})=>{const t=typeof e=="string"?parseFloat(e.replace("%","")):e??0,r=t>=0;return y.jsxs("div",{className:`w-fit p-1 rounded text-[10px] leading-[14px] font-medium flex items-center gap-1 ${r?"bg-[#F7FEFA] text-[#1FA05B]":"bg-[#FFF2F2] text-[#AB0000]"}`,children:[r?y.jsx(UC,{}):y.jsx(HC,{}),Math.abs(t).toFixed(1),"%"]})},Ln=({title:e,icon:t,period:r,children:n,footer:i,className:a="",childrenClassName:o,titleWeight:s})=>{const l=s==="semi-bold"?600:500;return y.jsxs("div",{className:`relative bg-white !border-[0.5px] !border-[#EBEBEB] !rounded-[12px] !shadow-[0_0_12px_0_#EAF2FF] p-[16px] flex flex-col gap-[24px] ${a}`,children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-[12px]",children:[t,y.jsx("div",{style:{fontWeight:l,fontSize:"16px",lineHeight:"20px"},className:"!my-0 !text-[16px] !leading-[20px] !text-[#121212]",children:e})]}),r&&y.jsx("div",{className:"!text-[12px] !leading-[16px] !text-[#64748B]",children:r})]}),y.jsx("div",{className:`flex-1 min-h-0 space-y-[24px] ${o}`,children:n}),i&&y.jsx("div",{className:"mt-3 pt-3 border-t border-gray-100 !text-[12px] text-[#64748B]",children:i})]})};var du={},hu={},Qg;function tk(){return Qg||(Qg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(hu)),hu}var pu={},ev;function tv(){return ev||(ev=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(pu)),pu}var mu={},rv;function nv(){return rv||(rv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(mu)),mu}var gu={},iv;function vu(){return iv||(iv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){const n=[],i=r.length;if(i===0)return n;let a=0,o="",s="",l=!1;for(r.charCodeAt(0)===46&&(n.push(""),a++);a<i;){const c=r[a];s?c==="\\"&&a+1<i?(a++,o+=r[a]):c===s?s="":o+=c:l?c==='"'||c==="'"?s=c:c==="]"?(l=!1,n.push(o),o=""):o+=c:c==="["?(l=!0,o&&(n.push(o),o="")):c==="."?o&&(n.push(o),o=""):o+=c,a++}return o&&n.push(o),n}e.toPath=t})(gu)),gu}var av;function yu(){return av||(av=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tk(),r=tv(),n=nv(),i=vu();function a(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?r.isDeepKey(l)?a(s,i.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return o(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function o(s,l,c){if(l.length===0)return c;let u=s;for(let f=0;f<l.length;f++){if(u==null||t.isUnsafeProperty(l[f]))return c;u=u[l[f]]}return u===void 0?c:u}e.get=a})(du)),du}var bu,ov;function rk(){return ov||(ov=1,bu=yu().get),bu}var nk=rk();const Fn=Ir(nk);var pt=e=>e===0?0:e>0?1:-1,Ut=e=>typeof e=="number"&&e!=+e,Bn=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,X=e=>(typeof e=="number"||e instanceof Number)&&!Ut(e),Or=e=>X(e)||typeof e=="string",ik=0,Ea=e=>{var t=++ik;return"".concat(e||"").concat(t)},At=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!X(t)&&typeof t!="string")return n;var a;if(Bn(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Ut(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},sv=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[e[n]])r[e[n]]=!0;else return!0;return!1};function Ye(e,t,r){return X(e)&&X(t)?e+r*(t-e):t}function lv(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Fn(n,t))===r)}var ze=e=>e===null||typeof e>"u",Pa=e=>ze(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),ak=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function xu(e){if(typeof e!="string")return!1;var t=ak;return t.includes(e)}var ok=["viewBox","children"],cv=["points","pathLength"],wu={svg:ok,polygon:cv,polyline:cv},_u=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(k.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{xu(i)&&(n[i]=(a=>r[i](r,a)))}),n},sk=(e,t,r)=>n=>(e(t,r,n),null),xs=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];xu(i)&&typeof a=="function"&&(n||(n={}),n[i]=sk(a,t,r))}),n},lk=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","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","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","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","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function uv(e){if(typeof e!="string")return!1;var t=lk;return t.includes(e)}function Ar(e){var t=Object.entries(e).filter(r=>{var[n]=r;return uv(n)});return Object.fromEntries(t)}var fv=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",dv=null,Su=null,hv=e=>{if(e===dv&&Array.isArray(Su))return Su;var t=[];return k.Children.forEach(e,r=>{ze(r)||(fa.isFragment(r)?t=t.concat(hv(r.props.children)):t.push(r))}),Su=t,dv=e,t};function Ou(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>fv(i)):n=[fv(t)],hv(e).forEach(i=>{var a=Fn(i,"type.displayName")||Fn(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}var pv=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,ck=(e,t,r,n)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var a=(i=n&&wu?.[n])!==null&&i!==void 0?i:[],o=t.startsWith("data-"),s=typeof e!="function"&&(!!n&&a.includes(t)||uv(t)),l=!!r&&xu(t);return o||s||l},Ue=(e,t,r)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(k.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var i={};return Object.keys(n).forEach(a=>{var o;ck((o=n)===null||o===void 0?void 0:o[a],a,t,r)&&(i[a]=n[a])}),i},uk=["children","width","height","viewBox","className","style","title","desc"];function Au(){return Au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Au.apply(null,arguments)}function fk(e,t){if(e==null)return{};var r,n,i=dk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function dk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var mv=k.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:s,title:l,desc:c}=e,u=fk(e,uk),f=a||{width:n,height:i,x:0,y:0},d=de("recharts-surface",o);return A.createElement("svg",Au({},Ue(u,!0,"svg"),{className:d,width:n,height:i,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),A.createElement("title",null,l),A.createElement("desc",null,c),r)}),hk=["children","className"];function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eu.apply(null,arguments)}function pk(e,t){if(e==null)return{};var r,n,i=mk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function mk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var xt=A.forwardRef((e,t)=>{var{children:r,className:n}=e,i=pk(e,hk),a=de("recharts-layer",n);return A.createElement("g",Eu({className:a},Ue(i,!0),{ref:t}),r)}),gk=k.createContext(null);function $e(e){return function(){return e}}const gv=Math.cos,ws=Math.sin,pr=Math.sqrt,_s=Math.PI,Ss=2*_s,Pu=Math.PI,Cu=2*Pu,zn=1e-6,vk=Cu-zn;function vv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function yk(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vv;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class bk{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?vv:yk(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>zn)if(!(Math.abs(f*l-c*u)>zn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,m=i-s,p=l*l+c*c,g=h*h+m*m,v=Math.sqrt(p),b=Math.sqrt(d),x=a*Math.tan((Pu-Math.acos((p+d-g)/(2*v*b)))/2),S=x/b,w=x/v;Math.abs(S-1)>zn&&this._append`L${t+S*u},${r+S*f}`,this._append`A${a},${a},0,0,${+(f*h>u*m)},${this._x1=t+w*l},${this._y1=r+w*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),c=t+s,u=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>zn||Math.abs(this._y1-u)>zn)&&this._append`L${c},${u}`,n&&(d<0&&(d=d%Cu+Cu),d>vk?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:d>zn&&this._append`A${n},${n},0,${+(d>=Pu)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function ku(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new bk(t)}function Tu(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function yv(e){this._context=e}yv.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 Os(e){return new yv(e)}function bv(e){return e[0]}function xv(e){return e[1]}function wv(e,t){var r=$e(!0),n=null,i=Os,a=null,o=ku(s);e=typeof e=="function"?e:e===void 0?bv:$e(e),t=typeof t=="function"?t:t===void 0?xv:$e(t);function s(l){var c,u=(l=Tu(l)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=u;++c)!(c<u&&r(f=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,l),+t(f,c,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:$e(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:$e(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:$e(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function As(e,t,r){var n=null,i=$e(!0),a=null,o=Os,s=null,l=ku(c);e=typeof e=="function"?e:e===void 0?bv:$e(+e),t=typeof t=="function"?t:$e(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?xv:$e(+r);function c(f){var d,h,m,p=(f=Tu(f)).length,g,v=!1,b,x=new Array(p),S=new Array(p);for(a==null&&(s=o(b=l())),d=0;d<=p;++d){if(!(d<p&&i(g=f[d],d,f))===v)if(v=!v)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=h;--m)s.point(x[m],S[m]);s.lineEnd(),s.areaEnd()}v&&(x[d]=+e(g,d,f),S[d]=+t(g,d,f),s.point(n?+n(g,d,f):x[d],r?+r(g,d,f):S[d]))}if(b)return s=null,b+""||null}function u(){return wv().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:$e(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:$e(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:$e(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:$e(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:$e(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:$e(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:$e(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}class _v{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function xk(e){return new _v(e,!0)}function wk(e){return new _v(e,!1)}const Mu={draw(e,t){const r=pr(t/_s);e.moveTo(r,0),e.arc(0,0,r,0,Ss)}},_k={draw(e,t){const r=pr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Sv=pr(1/3),Sk=Sv*2,Ok={draw(e,t){const r=pr(t/Sk),n=r*Sv;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Ak={draw(e,t){const r=pr(t),n=-r/2;e.rect(n,n,r,r)}},Ek=.8908130915292852,Ov=ws(_s/10)/ws(7*_s/10),Pk=ws(Ss/10)*Ov,Ck=-gv(Ss/10)*Ov,kk={draw(e,t){const r=pr(t*Ek),n=Pk*r,i=Ck*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ss*a/5,s=gv(o),l=ws(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},ju=pr(3),Tk={draw(e,t){const r=-pr(t/(ju*3));e.moveTo(0,r*2),e.lineTo(-ju*r,-r),e.lineTo(ju*r,-r),e.closePath()}},nr=-.5,ir=pr(3)/2,Du=1/pr(12),Mk=(Du/2+1)*3,jk={draw(e,t){const r=pr(t/Mk),n=r/2,i=r*Du,a=n,o=r*Du+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(nr*n-ir*i,ir*n+nr*i),e.lineTo(nr*a-ir*o,ir*a+nr*o),e.lineTo(nr*s-ir*l,ir*s+nr*l),e.lineTo(nr*n+ir*i,nr*i-ir*n),e.lineTo(nr*a+ir*o,nr*o-ir*a),e.lineTo(nr*s+ir*l,nr*l-ir*s),e.closePath()}};function Dk(e,t){let r=null,n=ku(i);e=typeof e=="function"?e:$e(e||Mu),t=typeof t=="function"?t:$e(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:$e(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:$e(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Es(){}function Ps(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Av(e){this._context=e}Av.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ps(this,this._x1,this._y1);case 2:this._context.lineTo(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ps(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nk(e){return new Av(e)}function Ev(e){this._context=e}Ev.prototype={areaStart:Es,areaEnd:Es,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ps(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ik(e){return new Ev(e)}function Pv(e){this._context=e}Pv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ps(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $k(e){return new Pv(e)}function Cv(e){this._context=e}Cv.prototype={areaStart:Es,areaEnd:Es,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Rk(e){return new Cv(e)}function kv(e){return e<0?-1:1}function Tv(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(kv(a)+kv(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Mv(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Nu(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Cs(e){this._context=e}Cs.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:Nu(this,this._t0,Mv(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 r=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,Nu(this,Mv(this,r=Tv(this,e,t)),r);break;default:Nu(this,this._t0,r=Tv(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function jv(e){this._context=new Dv(e)}(jv.prototype=Object.create(Cs.prototype)).point=function(e,t){Cs.prototype.point.call(this,t,e)};function Dv(e){this._context=e}Dv.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Lk(e){return new Cs(e)}function Fk(e){return new jv(e)}function Nv(e){this._context=e}Nv.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Iv(e),i=Iv(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===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 Iv(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Bk(e){return new Nv(e)}function ks(e,t){this._context=e,this._t=t}ks.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function zk(e){return new ks(e,.5)}function Wk(e){return new ks(e,0)}function Vk(e){return new ks(e,1)}function Mi(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Iu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Hk(e,t){return e[t]}function Uk(e){const t=[];return t.key=e,t}function Kk(){var e=$e([]),t=Iu,r=Mi,n=Hk;function i(a){var o=Array.from(e.apply(this,arguments),Uk),s,l=o.length,c=-1,u;for(const f of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+n(f,o[s].key,c,a)]).data=f;for(s=0,u=Tu(t(o));s<l;++s)o[u[s]].index=s;return r(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:$e(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:$e(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Iu:typeof a=="function"?a:$e(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Mi,i):r},i}function qk(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Mi(e,t)}}function Yk(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Mi(e,t)}}function Gk(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],f=u[n][1]||0,d=u[n-1][1]||0,h=(f-d)/2,m=0;m<s;++m){var p=e[t[m]],g=p[n][1]||0,v=p[n-1][1]||0;h+=g-v}l+=f,c+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,Mi(e,t)}}var Xk=["type","size","sizeType"];function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$u.apply(null,arguments)}function $v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$v(Object(r),!0).forEach(function(n){Zk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zk(e,t,r){return(t=Jk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jk(e){var t=Qk(e,"string");return typeof t=="symbol"?t:t+""}function Qk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eT(e,t){if(e==null)return{};var r,n,i=tT(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function tT(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Lv={symbolCircle:Mu,symbolCross:_k,symbolDiamond:Ok,symbolSquare:Ak,symbolStar:kk,symbolTriangle:Tk,symbolWye:jk},rT=Math.PI/180,nT=e=>{var t="symbol".concat(Pa(e));return Lv[t]||Mu},iT=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*rT;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},aT=(e,t)=>{Lv["symbol".concat(Pa(e))]=t},Fv=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=eT(e,Xk),a=Rv(Rv({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var s=()=>{var d=nT(o),h=Dk().type(d).size(iT(r,n,o));return h()},{className:l,cx:c,cy:u}=a,f=Ue(a,!0);return c===+c&&u===+u&&r===+r?A.createElement("path",$u({},f,{className:de("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};Fv.registerSymbol=aT;var Ru={},Lu={},Bv;function oT(){return Bv||(Bv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const o=r[a],s=n(o);i.has(s)||i.set(s,o)}return Array.from(i.values())}e.uniqBy=t})(Lu)),Lu}var Fu={},zv;function Wv(){return zv||(zv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Fu)),Fu}var Bu={},zu={},Wu={},Vv;function sT(){return Vv||(Vv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Wu)),Wu}var Hv;function Vu(){return Hv||(Hv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sT();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(zu)),zu}var Hu={},Uv;function lT(){return Uv||(Uv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(Hu)),Hu}var Kv;function cT(){return Kv||(Kv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vu(),r=lT();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(Bu)),Bu}var Uu={},Ku={},qv;function uT(){return qv||(qv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yu();function r(n){return function(i){return t.get(i,n)}}e.property=r})(Ku)),Ku}var qu={},Yu={},Gu={},Xu={},Yv;function Gv(){return Yv||(Yv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(Xu)),Xu}var Zu={},Xv;function Zv(){return Xv||(Xv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(Zu)),Zu}var Ju={},Jv;function Qv(){return Jv||(Jv=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t})(Ju)),Ju}var ey;function fT(){return ey||(ey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qu(),r=Gv(),n=Zv(),i=Qv();function a(f,d,h){return typeof h!="function"?t.isMatch(f,d):o(f,d,function m(p,g,v,b,x,S){const w=h(p,g,v,b,x,S);return w!==void 0?!!w:o(p,g,m,S)},new Map)}function o(f,d,h,m){if(d===f)return!0;switch(typeof d){case"object":return s(f,d,h,m);case"function":return Object.keys(d).length>0?o(f,{...d},h,m):i.eq(f,d);default:return r.isObject(f)?typeof d=="string"?d==="":!0:i.eq(f,d)}}function s(f,d,h,m){if(d==null)return!0;if(Array.isArray(d))return c(f,d,h,m);if(d instanceof Map)return l(f,d,h,m);if(d instanceof Set)return u(f,d,h,m);const p=Object.keys(d);if(f==null)return p.length===0;if(p.length===0)return!0;if(m&&m.has(d))return m.get(d)===f;m&&m.set(d,f);try{for(let g=0;g<p.length;g++){const v=p[g];if(!n.isPrimitive(f)&&!(v in f)||d[v]===void 0&&f[v]!==void 0||d[v]===null&&f[v]!==null||!h(f[v],d[v],v,f,d,m))return!1}return!0}finally{m&&m.delete(d)}}function l(f,d,h,m){if(d.size===0)return!0;if(!(f instanceof Map))return!1;for(const[p,g]of d.entries()){const v=f.get(p);if(h(v,g,p,f,d,m)===!1)return!1}return!0}function c(f,d,h,m){if(d.length===0)return!0;if(!Array.isArray(f))return!1;const p=new Set;for(let g=0;g<d.length;g++){const v=d[g];let b=!1;for(let x=0;x<f.length;x++){if(p.has(x))continue;const S=f[x];let w=!1;if(h(S,v,g,f,d,m)&&(w=!0),w){p.add(x),b=!0;break}}if(!b)return!1}return!0}function u(f,d,h,m){return d.size===0?!0:f instanceof Set?c([...f],[...d],h,m):!1}e.isMatchWith=a,e.isSetMatch=u})(Gu)),Gu}var ty;function Qu(){return ty||(ty=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fT();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r})(Yu)),Yu}var ef={},tf={},rf={},ry;function dT(){return ry||(ry=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(rf)),rf}var nf={},ny;function iy(){return ny||(ny=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(nf)),nf}var af={},ay;function oy(){return ay||(ay=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",o="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",f="[object Function]",d="[object ArrayBuffer]",h="[object Object]",m="[object Error]",p="[object DataView]",g="[object Uint8Array]",v="[object Uint8ClampedArray]",b="[object Uint16Array]",x="[object Uint32Array]",S="[object BigUint64Array]",w="[object Int8Array]",O="[object Int16Array]",E="[object Int32Array]",C="[object BigInt64Array]",M="[object Float32Array]",$="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=d,e.arrayTag=u,e.bigInt64ArrayTag=C,e.bigUint64ArrayTag=S,e.booleanTag=i,e.dataViewTag=p,e.dateTag=s,e.errorTag=m,e.float32ArrayTag=M,e.float64ArrayTag=$,e.functionTag=f,e.int16ArrayTag=O,e.int32ArrayTag=E,e.int8ArrayTag=w,e.mapTag=l,e.numberTag=n,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=b,e.uint32ArrayTag=x,e.uint8ArrayTag=g,e.uint8ClampedArrayTag=v})(af)),af}var of={},sy;function hT(){return sy||(sy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(of)),of}var ly;function cy(){return ly||(ly=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dT(),r=iy(),n=oy(),i=Zv(),a=hT();function o(u,f){return s(u,void 0,u,new Map,f)}function s(u,f,d,h=new Map,m=void 0){const p=m?.(u,f,d,h);if(p!==void 0)return p;if(i.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const g=new Array(u.length);h.set(u,g);for(let v=0;v<u.length;v++)g[v]=s(u[v],v,d,h,m);return Object.hasOwn(u,"index")&&(g.index=u.index),Object.hasOwn(u,"input")&&(g.input=u.input),g}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const g=new RegExp(u.source,u.flags);return g.lastIndex=u.lastIndex,g}if(u instanceof Map){const g=new Map;h.set(u,g);for(const[v,b]of u)g.set(v,s(b,v,d,h,m));return g}if(u instanceof Set){const g=new Set;h.set(u,g);for(const v of u)g.add(s(v,void 0,d,h,m));return g}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(a.isTypedArray(u)){const g=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,g);for(let v=0;v<u.length;v++)g[v]=s(u[v],v,d,h,m);return g}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const g=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,g),l(g,u,d,h,m),g}if(typeof File<"u"&&u instanceof File){const g=new File([u],u.name,{type:u.type});return h.set(u,g),l(g,u,d,h,m),g}if(u instanceof Blob){const g=new Blob([u],{type:u.type});return h.set(u,g),l(g,u,d,h,m),g}if(u instanceof Error){const g=new u.constructor;return h.set(u,g),g.message=u.message,g.name=u.name,g.stack=u.stack,g.cause=u.cause,l(g,u,d,h,m),g}if(typeof u=="object"&&c(u)){const g=Object.create(Object.getPrototypeOf(u));return h.set(u,g),l(g,u,d,h,m),g}return u}function l(u,f,d=u,h,m){const p=[...Object.keys(f),...t.getSymbols(f)];for(let g=0;g<p.length;g++){const v=p[g],b=Object.getOwnPropertyDescriptor(u,v);(b==null||b.writable)&&(u[v]=s(f[v],v,d,h,m))}}function c(u){switch(r.getTag(u)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=o,e.cloneDeepWithImpl=s,e.copyProperties=l})(tf)),tf}var uy;function pT(){return uy||(uy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cy();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(ef)),ef}var fy;function mT(){return fy||(fy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qu(),r=pT();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n})(qu)),qu}var sf={},lf={},cf={},dy;function gT(){return dy||(dy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cy(),r=oy();function n(i,a){return t.cloneDeepWith(i,(o,s,l,c)=>{const u=a?.(o,s,l,c);if(u!==void 0)return u;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case r.numberTag:case r.stringTag:case r.booleanTag:{const f=new i.constructor(i?.valueOf());return t.copyProperties(f,i),f}case r.argumentsTag:{const f={};return t.copyProperties(f,i),f.length=i.length,f[Symbol.iterator]=i[Symbol.iterator],f}default:return}})}e.cloneDeepWith=n})(cf)),cf}var hy;function vT(){return hy||(hy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gT();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(lf)),lf}var uf={},ff={},py;function my(){return py||(py=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(ff)),ff}var df={},gy;function yT(){return gy||(gy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iy();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(df)),df}var vy;function bT(){return vy||(vy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tv(),r=my(),n=yT(),i=vu();function a(o,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&o?.[s]==null?l=i.toPath(s):l=[s],l.length===0)return!1;let c=o;for(let u=0;u<l.length;u++){const f=l[u];if((c==null||!Object.hasOwn(c,f))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(f)&&f<c.length))return!1;c=c[f]}return!0}e.has=a})(uf)),uf}var yy;function xT(){return yy||(yy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qu(),r=nv(),n=vT(),i=yu(),a=bT();function o(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=r.toKey(s);break}}return l=n.cloneDeep(l),function(c){const u=i.get(c,s);return u===void 0?a.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=o})(sf)),sf}var by;function wT(){return by||(by=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wv(),r=uT(),n=mT(),i=xT();function a(o){if(o==null)return t.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?i.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}e.iteratee=a})(Uu)),Uu}var xy;function _T(){return xy||(xy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oT(),r=Wv(),n=cT(),i=wT();function a(o,s=r.identity){return n.isArrayLikeObject(o)?t.uniqBy(Array.from(o),i.iteratee(s)):[]}e.uniqBy=a})(Ru)),Ru}var hf,wy;function ST(){return wy||(wy=1,hf=_T().uniqBy),hf}var OT=ST();const _y=Ir(OT);function AT(e,t,r){return t===!0?_y(e,r):typeof t=="function"?_y(e,t):e}var Ts={exports:{}},pf={},Ms={exports:{}},mf={};/**
105
105
  * @license React
106
106
  * use-sync-external-store-shim.production.js
107
107
  *
@@ -109,7 +109,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
109
109
  *
110
110
  * This source code is licensed under the MIT license found in the
111
111
  * LICENSE file in the root directory of this source tree.
112
- */var _y;function AT(){if(_y)return hf;_y=1;var e=k;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(f,d){var h=d(),m=n({inst:{value:h,getSnapshot:d}}),p=m[0].inst,g=m[1];return a(function(){p.value=h,p.getSnapshot=d,l(p)&&g({inst:p})},[f,h,d]),i(function(){return l(p)&&g({inst:p}),f(function(){l(p)&&g({inst:p})})},[f]),o(h),h}function l(f){var d=f.getSnapshot;f=f.value;try{var h=d();return!r(f,h)}catch{return!0}}function c(f,d){return d()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return hf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,hf}var pf={};/**
112
+ */var Sy;function ET(){if(Sy)return mf;Sy=1;var e=k;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(f,d){var h=d(),m=n({inst:{value:h,getSnapshot:d}}),p=m[0].inst,g=m[1];return a(function(){p.value=h,p.getSnapshot=d,l(p)&&g({inst:p})},[f,h,d]),i(function(){return l(p)&&g({inst:p}),f(function(){l(p)&&g({inst:p})})},[f]),o(h),h}function l(f){var d=f.getSnapshot;f=f.value;try{var h=d();return!r(f,h)}catch{return!0}}function c(f,d){return d()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return mf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,mf}var gf={};/**
113
113
  * @license React
114
114
  * use-sync-external-store-shim.development.js
115
115
  *
@@ -117,7 +117,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
117
117
  *
118
118
  * This source code is licensed under the MIT license found in the
119
119
  * LICENSE file in the root directory of this source tree.
120
- */var Sy;function ET(){return Sy||(Sy=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=m();if(!f){var g=m();a(p,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}g=o({inst:{value:p,getSnapshot:m}});var v=g[0].inst,b=g[1];return l(function(){v.value=p,v.getSnapshot=m,r(v)&&b({inst:v})},[h,p,m]),s(function(){return r(v)&&b({inst:v}),h(function(){r(v)&&b({inst:v})})},[h]),c(p),p}function r(h){var m=h.getSnapshot;h=h.value;try{var p=m();return!a(h,p)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=k,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,l=i.useLayoutEffect,c=i.useDebugValue,u=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;pf.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),pf}var Oy;function Ay(){return Oy||(Oy=1,process.env.NODE_ENV==="production"?Ts.exports=AT():Ts.exports=ET()),Ts.exports}/**
120
+ */var Oy;function PT(){return Oy||(Oy=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}function t(h,m){u||i.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=m();if(!f){var g=m();a(p,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}g=o({inst:{value:p,getSnapshot:m}});var v=g[0].inst,b=g[1];return l(function(){v.value=p,v.getSnapshot=m,r(v)&&b({inst:v})},[h,p,m]),s(function(){return r(v)&&b({inst:v}),h(function(){r(v)&&b({inst:v})})},[h]),c(p),p}function r(h){var m=h.getSnapshot;h=h.value;try{var p=m();return!a(h,p)}catch{return!0}}function n(h,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=k,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,l=i.useLayoutEffect,c=i.useDebugValue,u=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;gf.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),gf}var Ay;function Ey(){return Ay||(Ay=1,process.env.NODE_ENV==="production"?Ms.exports=ET():Ms.exports=PT()),Ms.exports}/**
121
121
  * @license React
122
122
  * use-sync-external-store-shim/with-selector.production.js
123
123
  *
@@ -125,7 +125,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
125
125
  *
126
126
  * This source code is licensed under the MIT license found in the
127
127
  * LICENSE file in the root directory of this source tree.
128
- */var Ey;function PT(){if(Ey)return df;Ey=1;var e=k,t=Ay();function r(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,s=e.useMemo,l=e.useDebugValue;return df.useSyncExternalStoreWithSelector=function(c,u,f,d,h){var m=a(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=s(function(){function v(O){if(!b){if(b=!0,x=O,O=d(O),h!==void 0&&p.hasValue){var E=p.value;if(h(E,O))return S=E}return S=O}if(E=S,n(x,O))return E;var C=d(O);return h!==void 0&&h(E,C)?(x=O,E):(x=O,S=C)}var b=!1,x,S,w=f===void 0?null:f;return[function(){return v(u())},w===null?void 0:function(){return v(w())}]},[u,f,d,h]);var g=i(c,m[0],m[1]);return o(function(){p.hasValue=!0,p.value=g},[g]),l(g),g},df}var mf={};/**
128
+ */var Py;function CT(){if(Py)return pf;Py=1;var e=k,t=Ey();function r(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,s=e.useMemo,l=e.useDebugValue;return pf.useSyncExternalStoreWithSelector=function(c,u,f,d,h){var m=a(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=s(function(){function v(O){if(!b){if(b=!0,x=O,O=d(O),h!==void 0&&p.hasValue){var E=p.value;if(h(E,O))return S=E}return S=O}if(E=S,n(x,O))return E;var C=d(O);return h!==void 0&&h(E,C)?(x=O,E):(x=O,S=C)}var b=!1,x,S,w=f===void 0?null:f;return[function(){return v(u())},w===null?void 0:function(){return v(w())}]},[u,f,d,h]);var g=i(c,m[0],m[1]);return o(function(){p.hasValue=!0,p.value=g},[g]),l(g),g},pf}var vf={};/**
129
129
  * @license React
130
130
  * use-sync-external-store-shim/with-selector.development.js
131
131
  *
@@ -133,21 +133,21 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
133
133
  *
134
134
  * This source code is licensed under the MIT license found in the
135
135
  * LICENSE file in the root directory of this source tree.
136
- */var Py;function CT(){return Py||(Py=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,r=Ay(),n=typeof Object.is=="function"?Object.is:e,i=r.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,l=t.useDebugValue;mf.useSyncExternalStoreWithSelector=function(c,u,f,d,h){var m=a(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=s(function(){function v(O){if(!b){if(b=!0,x=O,O=d(O),h!==void 0&&p.hasValue){var E=p.value;if(h(E,O))return S=E}return S=O}if(E=S,n(x,O))return E;var C=d(O);return h!==void 0&&h(E,C)?(x=O,E):(x=O,S=C)}var b=!1,x,S,w=f===void 0?null:f;return[function(){return v(u())},w===null?void 0:function(){return v(w())}]},[u,f,d,h]);var g=i(c,m[0],m[1]);return o(function(){p.hasValue=!0,p.value=g},[g]),l(g),g},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),mf}var Cy;function kT(){return Cy||(Cy=1,process.env.NODE_ENV==="production"?ks.exports=PT():ks.exports=CT()),ks.exports}var TT=kT(),gf=k.createContext(null),MT=e=>e,Ze=()=>{var e=k.useContext(gf);return e?e.store.dispatch:MT},Ms=()=>{},jT=()=>Ms,DT=(e,t)=>e===t;function G(e){var t=k.useContext(gf);return TT.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:jT,t?t.store.getState:Ms,t?t.store.getState:Ms,t?e:Ms,DT)}var NT=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const i={};e(i)===i&&(n=!0)}catch{}if(n){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
136
+ */var Cy;function kT(){return Cy||(Cy=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,r=Ey(),n=typeof Object.is=="function"?Object.is:e,i=r.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,l=t.useDebugValue;vf.useSyncExternalStoreWithSelector=function(c,u,f,d,h){var m=a(null);if(m.current===null){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=s(function(){function v(O){if(!b){if(b=!0,x=O,O=d(O),h!==void 0&&p.hasValue){var E=p.value;if(h(E,O))return S=E}return S=O}if(E=S,n(x,O))return E;var C=d(O);return h!==void 0&&h(E,C)?(x=O,E):(x=O,S=C)}var b=!1,x,S,w=f===void 0?null:f;return[function(){return v(u())},w===null?void 0:function(){return v(w())}]},[u,f,d,h]);var g=i(c,m[0],m[1]);return o(function(){p.hasValue=!0,p.value=g},[g]),l(g),g},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),vf}var ky;function TT(){return ky||(ky=1,process.env.NODE_ENV==="production"?Ts.exports=CT():Ts.exports=kT()),Ts.exports}var MT=TT(),yf=k.createContext(null),jT=e=>e,Ze=()=>{var e=k.useContext(yf);return e?e.store.dispatch:jT},js=()=>{},DT=()=>js,NT=(e,t)=>e===t;function G(e){var t=k.useContext(yf);return MT.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:DT,t?t.store.getState:js,t?t.store.getState:js,t?e:js,NT)}var IT=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const i={};e(i)===i&&(n=!0)}catch{}if(n){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
137
137
  \`createSelector([state => state.todos], todos => todos)\`
138
138
  This could lead to inefficient memoization and unnecessary re-renders.
139
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},IT=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,s=n(()=>({}),...i);if(!(s.apply(null,a)===s.apply(null,o))){let c;try{throw new Error}catch(u){({stack:c}=u)}console.warn(`An input selector returned a different result when passed same arguments.
139
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},$T=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,s=n(()=>({}),...i);if(!(s.apply(null,a)===s.apply(null,o))){let c;try{throw new Error}catch(u){({stack:c}=u)}console.warn(`An input selector returned a different result when passed same arguments.
140
140
  This means your output selector will likely run more frequently than intended.
141
141
  Avoid returning a new reference inside your input selector, e.g.
142
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:a,secondInputs:o,stack:c})}},$T={inputStabilityCheck:"once",identityFunctionCheck:"once"};function RT(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function LT(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function FT(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var ky=e=>Array.isArray(e)?e:[e];function BT(e){const t=Array.isArray(e[0])?e[0]:e;return FT(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ty(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var zT=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...$T,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:NT},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:IT}}},WT=class{constructor(e){this.value=e}deref(){return this.value}},VT=typeof WeakRef<"u"?WeakRef:WT,HT=0,My=1;function js(){return{s:HT,v:void 0,o:null,p:null}}function jy(e,t={}){let r=js();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let s=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let m=s.o;m===null&&(s.o=m=new WeakMap);const p=m.get(h);p===void 0?(s=js(),m.set(h,s)):s=p}else{let m=s.p;m===null&&(s.p=m=new Map);const p=m.get(h);p===void 0?(s=js(),m.set(h,s)):s=p}}const c=s;let u;if(s.s===My)u=s.v;else if(u=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,u)&&(u=f,a!==0&&a--),i=typeof u=="object"&&u!==null||typeof u=="function"?new VT(u):u}return c.s=My,c.v=u,u}return o.clearCache=()=>{r=js(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function UT(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),RT(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:h=jy,argsMemoizeOptions:m=[],devModeChecks:p={}}=u,g=ky(d),v=ky(m),b=BT(i),x=f(function(){return a++,c.apply(null,arguments)},...g);let S=!0;const w=h(function(){o++;const E=Ty(b,arguments);if(s=x.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:C,inputStabilityCheck:M}=zT(S,p);if(C.shouldRun&&C.run(c,E,s),M.shouldRun){const $=Ty(b,arguments);M.run({inputSelectorResults:E,inputSelectorResultsCopy:$},{memoize:f,memoizeOptions:g},arguments)}S&&(S=!1)}return s},...v);return Object.assign(w,{resultFunc:c,memoizedResultFunc:x,dependencies:b,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var N=UT(jy),KT=Object.assign((e,t=N)=>{LT(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,s,l)=>(o[r[l]]=s,o),{}))},{withTypes:()=>KT}),vf={},yf={},bf={},Dy;function qT(){return Dy||(Dy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),s=t(i);if(o===s&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?s-o:o-s}return 0};e.compareValues=r})(bf)),bf}var xf={},wf={},Ny;function Iy(){return Ny||(Ny=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(wf)),wf}var $y;function YT(){return $y||($y=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Iy(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(xf)),xf}var Ry;function GT(){return Ry||(Ry=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qT(),r=YT(),n=mu();function i(a,o,s,l){if(a==null)return[];s=l?void 0:s,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(h=>String(h));const c=(h,m)=>{let p=h;for(let g=0;g<m.length&&p!=null;++g)p=p[m[g]];return p},u=(h,m)=>m==null||h==null?m:typeof h=="object"&&"key"in h?Object.hasOwn(m,h.key)?m[h.key]:c(m,h.path):typeof h=="function"?h(m):Array.isArray(h)?c(m,h):typeof m=="object"?m[h]:m,f=o.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return a.map(h=>({original:h,criteria:f.map(m=>u(m,h))})).slice().sort((h,m)=>{for(let p=0;p<f.length;p++){const g=t.compareValues(h.criteria[p],m.criteria[p],s[p]);if(g!==0)return g}return 0}).map(h=>h.original)}e.orderBy=i})(yf)),yf}var _f={},Ly;function XT(){return Ly||(Ly=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<a?o(u,l+1):i.push(u)}};return o(r,0),i}e.flatten=t})(_f)),_f}var Sf={},Fy;function By(){return Fy||(Fy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=py(),r=zu(),n=Yv(),i=Jv();function a(o,s,l){return n.isObject(l)&&(typeof s=="number"&&r.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?i.eq(l[s],o):!1}e.isIterateeCall=a})(Sf)),Sf}var zy;function ZT(){return zy||(zy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GT(),r=XT(),n=By();function i(a,...o){const s=o.length;return s>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:s>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})(vf)),vf}var Of,Wy;function JT(){return Wy||(Wy=1,Of=ZT().sortBy),Of}var QT=JT();const Ds=Ir(QT);var Vy=e=>e.legend.settings,eM=e=>e.legend.size,tM=e=>e.legend.payload;N([tM,Vy],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Ds(n,r):n});var Ns=1;function rM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=k.useState({height:0,left:0,top:0,width:0}),n=k.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>Ns||Math.abs(o.left-t.left)>Ns||Math.abs(o.top-t.top)>Ns||Math.abs(o.width-t.width)>Ns)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function wt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var nM=typeof Symbol=="function"&&Symbol.observable||"@@observable",Hy=nM,Af=()=>Math.random().toString(36).substring(7).split("").join("."),iM={INIT:`@@redux/INIT${Af()}`,REPLACE:`@@redux/REPLACE${Af()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Af()}`},zn=iM;function Pa(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function aM(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(lM(e))return"date";if(sM(e))return"error";const r=oM(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function oM(e){return typeof e.constructor=="function"?e.constructor.name:null}function sM(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function lM(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function un(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=aM(e)),t}function Uy(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?wt(2):`Expected the root reducer to be a function. Instead, received: '${un(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?wt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?wt(1):`Expected the enhancer to be a function. Instead, received: '${un(r)}'`);return r(Uy)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,l=!1;function c(){o===a&&(o=new Map,a.forEach((g,v)=>{o.set(v,g)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?wt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?wt(4):`Expected the listener to be a function. Instead, received: '${un(g)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?wt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let v=!0;c();const b=s++;return o.set(b,g),function(){if(v){if(l)throw new Error(process.env.NODE_ENV==="production"?wt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,c(),o.delete(b),a=null}}}function d(g){if(!Pa(g))throw new Error(process.env.NODE_ENV==="production"?wt(7):`Actions must be plain objects. Instead, the actual type was: '${un(g)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof g.type>"u")throw new Error(process.env.NODE_ENV==="production"?wt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?wt(17):`Action "type" property must be a string. Instead, the actual type was: '${un(g.type)}'. Value was: '${g.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?wt(9):"Reducers may not dispatch actions.");try{l=!0,i=n(i,g)}finally{l=!1}return(a=o).forEach(b=>{b()}),g}function h(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?wt(10):`Expected the nextReducer to be a function. Instead, received: '${un(g)}`);n=g,d({type:zn.REPLACE})}function m(){const g=f;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?wt(11):`Expected the observer to be an object. Instead, received: '${un(v)}'`);function b(){const S=v;S.next&&S.next(u())}return b(),{unsubscribe:g(b)}},[Hy](){return this}}}return d({type:zn.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:h,[Hy]:m}}function Ky(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function cM(e,t,r,n){const i=Object.keys(t),a=r&&r.type===zn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Pa(e))return`The ${a} has unexpected type of "${un(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(o.forEach(s=>{n[s]=!0}),!(r&&r.type===zn.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function uM(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:zn.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?wt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:zn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?wt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${zn.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function qy(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const s=t[o];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Ky(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{uM(r)}catch(o){a=o}return function(s={},l){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=cM(s,r,l,i);f&&Ky(f)}let c=!1;const u={};for(let f=0;f<n.length;f++){const d=n[f],h=r[d],m=s[d],p=h(m,l);if(typeof p>"u"){const g=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?wt(14):`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${d}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[d]=p,c=c||p!==m}return c=c||n.length!==Object.keys(s).length,c?u:s}}function Is(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function fM(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?wt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(l,...c)=>a(l,...c)},s=e.map(l=>l(o));return a=Is(...s)(i.dispatch),{...i,dispatch:a}}}function Ef(e){return Pa(e)&&"type"in e&&typeof e.type=="string"}var Yy=Symbol.for("immer-nothing"),Gy=Symbol.for("immer-draftable"),Kt=Symbol.for("immer-state"),dM=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Dt(e,...t){if(process.env.NODE_ENV!=="production"){const r=dM[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ji=Object.getPrototypeOf;function Wn(e){return!!e&&!!e[Kt]}function Fr(e){return e?Xy(e)||Array.isArray(e)||!!e[Gy]||!!e.constructor?.[Gy]||Ca(e)||Ls(e):!1}var hM=Object.prototype.constructor.toString();function Xy(e){if(!e||typeof e!="object")return!1;const t=ji(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===hM}function $s(e,t){Rs(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Rs(e){const t=e[Kt];return t?t.type_:Array.isArray(e)?1:Ca(e)?2:Ls(e)?3:0}function Pf(e,t){return Rs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zy(e,t,r){const n=Rs(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function pM(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ca(e){return e instanceof Map}function Ls(e){return e instanceof Set}function Vn(e){return e.copy_||e.base_}function Cf(e,t){if(Ca(e))return new Map(e);if(Ls(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Xy(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Kt];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(ji(e),n)}else{const n=ji(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function kf(e,t=!1){return Bs(e)||Wn(e)||!Fr(e)||(Rs(e)>1&&Object.defineProperties(e,{set:{value:Fs},add:{value:Fs},clear:{value:Fs},delete:{value:Fs}}),Object.freeze(e),t&&Object.values(e).forEach(r=>kf(r,!0))),e}function Fs(){Dt(2)}function Bs(e){return Object.isFrozen(e)}var mM={};function Hn(e){const t=mM[e];return t||Dt(0,e),t}var ka;function Jy(){return ka}function gM(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Qy(e,t){t&&(Hn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Tf(e){Mf(e),e.drafts_.forEach(vM),e.drafts_=null}function Mf(e){e===ka&&(ka=e.parent_)}function e0(e){return ka=gM(ka,e)}function vM(e){const t=e[Kt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function t0(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Kt].modified_&&(Tf(t),Dt(4)),Fr(e)&&(e=zs(t,e),t.parent_||Ws(t,e)),t.patches_&&Hn("Patches").generateReplacementPatches_(r[Kt].base_,e,t.patches_,t.inversePatches_)):e=zs(t,r,[]),Tf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Yy?e:void 0}function zs(e,t,r){if(Bs(t))return t;const n=t[Kt];if(!n)return $s(t,(i,a)=>r0(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Ws(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),$s(a,(s,l)=>r0(e,n,i,s,l,r,o)),Ws(e,i,!1),r&&e.patches_&&Hn("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function r0(e,t,r,n,i,a,o){if(process.env.NODE_ENV!=="production"&&i===r&&Dt(5),Wn(i)){const s=a&&t&&t.type_!==3&&!Pf(t.assigned_,n)?a.concat(n):void 0,l=zs(e,i,s);if(Zy(r,n,l),Wn(l))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Fr(i)&&!Bs(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;zs(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Ca(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Ws(e,i)}}function Ws(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&kf(t,r)}function yM(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Jy(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=jf;r&&(i=[n],a=Ta);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var jf={get(e,t){if(t===Kt)return e;const r=Vn(e);if(!Pf(r,t))return bM(e,r,t);const n=r[t];return e.finalized_||!Fr(n)?n:n===Df(e.base_,t)?(If(e),e.copy_[t]=$f(n,e)):n},has(e,t){return t in Vn(e)},ownKeys(e){return Reflect.ownKeys(Vn(e))},set(e,t,r){const n=n0(Vn(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Df(Vn(e),t),a=i?.[Kt];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(pM(r,i)&&(r!==void 0||Pf(e.base_,t)))return!0;If(e),Nf(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Df(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,If(e),Nf(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Vn(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Dt(11)},getPrototypeOf(e){return ji(e.base_)},setPrototypeOf(){Dt(12)}},Ta={};$s(jf,(e,t)=>{Ta[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ta.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Dt(13),Ta.set.call(this,e,t,void 0)},Ta.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Dt(14),jf.set.call(this,e[0],t,r,e[0])};function Df(e,t){const r=e[Kt];return(r?Vn(r):e)[t]}function bM(e,t,r){const n=n0(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function n0(e,t){if(!(t in e))return;let r=ji(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ji(r)}}function Nf(e){e.modified_||(e.modified_=!0,e.parent_&&Nf(e.parent_))}function If(e){e.copy_||(e.copy_=Cf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var xM=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...c){return o.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&&Dt(6),n!==void 0&&typeof n!="function"&&Dt(7);let i;if(Fr(t)){const a=e0(this),o=$f(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?Tf(a):Mf(a)}return Qy(a,n),t0(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Yy&&(i=void 0),this.autoFreeze_&&kf(i,!0),n){const a=[],o=[];Hn("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Dt(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let n,i;return[this.produce(t,r,(o,s)=>{n=o,i=s}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Fr(e)||Dt(8),Wn(e)&&(e=Br(e));const t=e0(this),r=$f(e,void 0);return r[Kt].isManual_=!0,Mf(t),r}finishDraft(e,t){const r=e&&e[Kt];(!r||!r.isManual_)&&Dt(9);const{scope_:n}=r;return Qy(n,t),t0(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Hn("Patches").applyPatches_;return Wn(e)?n(e,t):this.produce(e,i=>n(i,t))}};function $f(e,t){const r=Ca(e)?Hn("MapSet").proxyMap_(e,t):Ls(e)?Hn("MapSet").proxySet_(e,t):yM(e,t);return(t?t.scope_:Jy()).drafts_.push(r),r}function Br(e){return Wn(e)||Dt(10,e),i0(e)}function i0(e){if(!Fr(e)||Bs(e))return e;const t=e[Kt];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Cf(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Cf(e,!0);return $s(r,(n,i)=>{Zy(r,n,i0(i))}),t&&(t.finalized_=!1),r}var wM=new xM,a0=wM.produce;function SU(e){return e}function o0(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var _M=o0(),SM=o0,OM=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Is:Is.apply(null,arguments)},AM=e=>e&&typeof e.match=="function";function ar(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?be(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Ef(n)&&n.type===e,r}function EM(e){return typeof e=="function"&&"type"in e&&AM(e)}function PM(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
143
- Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function CM(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=EM}=e;return()=>r=>n=>(t(n)&&console.warn(PM(n.type)),r(n))}function s0(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const a=Date.now();r+=a-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
142
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:a,secondInputs:o,stack:c})}},RT={inputStabilityCheck:"once",identityFunctionCheck:"once"};function LT(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function FT(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function BT(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Ty=e=>Array.isArray(e)?e:[e];function zT(e){const t=Array.isArray(e[0])?e[0]:e;return BT(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function My(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var WT=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...RT,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:IT},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:$T}}},VT=class{constructor(e){this.value=e}deref(){return this.value}},HT=typeof WeakRef<"u"?WeakRef:VT,UT=0,jy=1;function Ds(){return{s:UT,v:void 0,o:null,p:null}}function Dy(e,t={}){let r=Ds();const{resultEqualityCheck:n}=t;let i,a=0;function o(){let s=r;const{length:l}=arguments;for(let f=0,d=l;f<d;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let m=s.o;m===null&&(s.o=m=new WeakMap);const p=m.get(h);p===void 0?(s=Ds(),m.set(h,s)):s=p}else{let m=s.p;m===null&&(s.p=m=new Map);const p=m.get(h);p===void 0?(s=Ds(),m.set(h,s)):s=p}}const c=s;let u;if(s.s===jy)u=s.v;else if(u=e.apply(null,arguments),a++,n){const f=i?.deref?.()??i;f!=null&&n(f,u)&&(u=f,a!==0&&a--),i=typeof u=="object"&&u!==null||typeof u=="function"?new HT(u):u}return c.s=jy,c.v=u,u}return o.clearCache=()=>{r=Ds(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function KT(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),LT(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:h=Dy,argsMemoizeOptions:m=[],devModeChecks:p={}}=u,g=Ty(d),v=Ty(m),b=zT(i),x=f(function(){return a++,c.apply(null,arguments)},...g);let S=!0;const w=h(function(){o++;const E=My(b,arguments);if(s=x.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:C,inputStabilityCheck:M}=WT(S,p);if(C.shouldRun&&C.run(c,E,s),M.shouldRun){const $=My(b,arguments);M.run({inputSelectorResults:E,inputSelectorResultsCopy:$},{memoize:f,memoizeOptions:g},arguments)}S&&(S=!1)}return s},...v);return Object.assign(w,{resultFunc:c,memoizedResultFunc:x,dependencies:b,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var N=KT(Dy),qT=Object.assign((e,t=N)=>{FT(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,s,l)=>(o[r[l]]=s,o),{}))},{withTypes:()=>qT}),bf={},xf={},wf={},Ny;function YT(){return Ny||(Ny=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),s=t(i);if(o===s&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?s-o:o-s}return 0};e.compareValues=r})(wf)),wf}var _f={},Sf={},Iy;function $y(){return Iy||(Iy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Sf)),Sf}var Ry;function GT(){return Ry||(Ry=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$y(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(_f)),_f}var Ly;function XT(){return Ly||(Ly=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=YT(),r=GT(),n=vu();function i(a,o,s,l){if(a==null)return[];s=l?void 0:s,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(h=>String(h));const c=(h,m)=>{let p=h;for(let g=0;g<m.length&&p!=null;++g)p=p[m[g]];return p},u=(h,m)=>m==null||h==null?m:typeof h=="object"&&"key"in h?Object.hasOwn(m,h.key)?m[h.key]:c(m,h.path):typeof h=="function"?h(m):Array.isArray(h)?c(m,h):typeof m=="object"?m[h]:m,f=o.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return a.map(h=>({original:h,criteria:f.map(m=>u(m,h))})).slice().sort((h,m)=>{for(let p=0;p<f.length;p++){const g=t.compareValues(h.criteria[p],m.criteria[p],s[p]);if(g!==0)return g}return 0}).map(h=>h.original)}e.orderBy=i})(xf)),xf}var Of={},Fy;function ZT(){return Fy||(Fy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<a?o(u,l+1):i.push(u)}};return o(r,0),i}e.flatten=t})(Of)),Of}var Af={},By;function zy(){return By||(By=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=my(),r=Vu(),n=Gv(),i=Qv();function a(o,s,l){return n.isObject(l)&&(typeof s=="number"&&r.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?i.eq(l[s],o):!1}e.isIterateeCall=a})(Af)),Af}var Wy;function JT(){return Wy||(Wy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XT(),r=ZT(),n=zy();function i(a,...o){const s=o.length;return s>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:s>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})(bf)),bf}var Ef,Vy;function QT(){return Vy||(Vy=1,Ef=JT().sortBy),Ef}var eM=QT();const Ns=Ir(eM);var Hy=e=>e.legend.settings,tM=e=>e.legend.size,rM=e=>e.legend.payload;N([rM,Hy],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Ns(n,r):n});var Is=1;function nM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=k.useState({height:0,left:0,top:0,width:0}),n=k.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>Is||Math.abs(o.left-t.left)>Is||Math.abs(o.top-t.top)>Is||Math.abs(o.width-t.width)>Is)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function wt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var iM=typeof Symbol=="function"&&Symbol.observable||"@@observable",Uy=iM,Pf=()=>Math.random().toString(36).substring(7).split("").join("."),aM={INIT:`@@redux/INIT${Pf()}`,REPLACE:`@@redux/REPLACE${Pf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Pf()}`},Wn=aM;function Ca(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function oM(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(cM(e))return"date";if(lM(e))return"error";const r=sM(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function sM(e){return typeof e.constructor=="function"?e.constructor.name:null}function lM(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function cM(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function un(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=oM(e)),t}function Ky(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?wt(2):`Expected the root reducer to be a function. Instead, received: '${un(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?wt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?wt(1):`Expected the enhancer to be a function. Instead, received: '${un(r)}'`);return r(Ky)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,l=!1;function c(){o===a&&(o=new Map,a.forEach((g,v)=>{o.set(v,g)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?wt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?wt(4):`Expected the listener to be a function. Instead, received: '${un(g)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?wt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let v=!0;c();const b=s++;return o.set(b,g),function(){if(v){if(l)throw new Error(process.env.NODE_ENV==="production"?wt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,c(),o.delete(b),a=null}}}function d(g){if(!Ca(g))throw new Error(process.env.NODE_ENV==="production"?wt(7):`Actions must be plain objects. Instead, the actual type was: '${un(g)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof g.type>"u")throw new Error(process.env.NODE_ENV==="production"?wt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?wt(17):`Action "type" property must be a string. Instead, the actual type was: '${un(g.type)}'. Value was: '${g.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?wt(9):"Reducers may not dispatch actions.");try{l=!0,i=n(i,g)}finally{l=!1}return(a=o).forEach(b=>{b()}),g}function h(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?wt(10):`Expected the nextReducer to be a function. Instead, received: '${un(g)}`);n=g,d({type:Wn.REPLACE})}function m(){const g=f;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?wt(11):`Expected the observer to be an object. Instead, received: '${un(v)}'`);function b(){const S=v;S.next&&S.next(u())}return b(),{unsubscribe:g(b)}},[Uy](){return this}}}return d({type:Wn.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:h,[Uy]:m}}function qy(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function uM(e,t,r,n){const i=Object.keys(t),a=r&&r.type===Wn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Ca(e))return`The ${a} has unexpected type of "${un(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(o.forEach(s=>{n[s]=!0}),!(r&&r.type===Wn.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function fM(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Wn.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?wt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Wn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?wt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Wn.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Yy(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const s=t[o];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&qy(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{fM(r)}catch(o){a=o}return function(s={},l){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=uM(s,r,l,i);f&&qy(f)}let c=!1;const u={};for(let f=0;f<n.length;f++){const d=n[f],h=r[d],m=s[d],p=h(m,l);if(typeof p>"u"){const g=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?wt(14):`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${d}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[d]=p,c=c||p!==m}return c=c||n.length!==Object.keys(s).length,c?u:s}}function $s(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function dM(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?wt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(l,...c)=>a(l,...c)},s=e.map(l=>l(o));return a=$s(...s)(i.dispatch),{...i,dispatch:a}}}function Cf(e){return Ca(e)&&"type"in e&&typeof e.type=="string"}var Gy=Symbol.for("immer-nothing"),Xy=Symbol.for("immer-draftable"),Kt=Symbol.for("immer-state"),hM=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Dt(e,...t){if(process.env.NODE_ENV!=="production"){const r=hM[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ji=Object.getPrototypeOf;function Vn(e){return!!e&&!!e[Kt]}function Fr(e){return e?Zy(e)||Array.isArray(e)||!!e[Xy]||!!e.constructor?.[Xy]||ka(e)||Fs(e):!1}var pM=Object.prototype.constructor.toString();function Zy(e){if(!e||typeof e!="object")return!1;const t=ji(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===pM}function Rs(e,t){Ls(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Ls(e){const t=e[Kt];return t?t.type_:Array.isArray(e)?1:ka(e)?2:Fs(e)?3:0}function kf(e,t){return Ls(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jy(e,t,r){const n=Ls(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function mM(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ka(e){return e instanceof Map}function Fs(e){return e instanceof Set}function Hn(e){return e.copy_||e.base_}function Tf(e,t){if(ka(e))return new Map(e);if(Fs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Zy(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Kt];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(ji(e),n)}else{const n=ji(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function Mf(e,t=!1){return zs(e)||Vn(e)||!Fr(e)||(Ls(e)>1&&Object.defineProperties(e,{set:{value:Bs},add:{value:Bs},clear:{value:Bs},delete:{value:Bs}}),Object.freeze(e),t&&Object.values(e).forEach(r=>Mf(r,!0))),e}function Bs(){Dt(2)}function zs(e){return Object.isFrozen(e)}var gM={};function Un(e){const t=gM[e];return t||Dt(0,e),t}var Ta;function Qy(){return Ta}function vM(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function e0(e,t){t&&(Un("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jf(e){Df(e),e.drafts_.forEach(yM),e.drafts_=null}function Df(e){e===Ta&&(Ta=e.parent_)}function t0(e){return Ta=vM(Ta,e)}function yM(e){const t=e[Kt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function r0(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Kt].modified_&&(jf(t),Dt(4)),Fr(e)&&(e=Ws(t,e),t.parent_||Vs(t,e)),t.patches_&&Un("Patches").generateReplacementPatches_(r[Kt].base_,e,t.patches_,t.inversePatches_)):e=Ws(t,r,[]),jf(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gy?e:void 0}function Ws(e,t,r){if(zs(t))return t;const n=t[Kt];if(!n)return Rs(t,(i,a)=>n0(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Vs(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),Rs(a,(s,l)=>n0(e,n,i,s,l,r,o)),Vs(e,i,!1),r&&e.patches_&&Un("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function n0(e,t,r,n,i,a,o){if(process.env.NODE_ENV!=="production"&&i===r&&Dt(5),Vn(i)){const s=a&&t&&t.type_!==3&&!kf(t.assigned_,n)?a.concat(n):void 0,l=Ws(e,i,s);if(Jy(r,n,l),Vn(l))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Fr(i)&&!zs(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ws(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(ka(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Vs(e,i)}}function Vs(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Mf(t,r)}function bM(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Qy(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Nf;r&&(i=[n],a=Ma);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var Nf={get(e,t){if(t===Kt)return e;const r=Hn(e);if(!kf(r,t))return xM(e,r,t);const n=r[t];return e.finalized_||!Fr(n)?n:n===If(e.base_,t)?(Rf(e),e.copy_[t]=Lf(n,e)):n},has(e,t){return t in Hn(e)},ownKeys(e){return Reflect.ownKeys(Hn(e))},set(e,t,r){const n=i0(Hn(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=If(Hn(e),t),a=i?.[Kt];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(mM(r,i)&&(r!==void 0||kf(e.base_,t)))return!0;Rf(e),$f(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return If(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Rf(e),$f(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Hn(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Dt(11)},getPrototypeOf(e){return ji(e.base_)},setPrototypeOf(){Dt(12)}},Ma={};Rs(Nf,(e,t)=>{Ma[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ma.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Dt(13),Ma.set.call(this,e,t,void 0)},Ma.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Dt(14),Nf.set.call(this,e[0],t,r,e[0])};function If(e,t){const r=e[Kt];return(r?Hn(r):e)[t]}function xM(e,t,r){const n=i0(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function i0(e,t){if(!(t in e))return;let r=ji(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ji(r)}}function $f(e){e.modified_||(e.modified_=!0,e.parent_&&$f(e.parent_))}function Rf(e){e.copy_||(e.copy_=Tf(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wM=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...c){return o.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&&Dt(6),n!==void 0&&typeof n!="function"&&Dt(7);let i;if(Fr(t)){const a=t0(this),o=Lf(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?jf(a):Df(a)}return e0(a,n),r0(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Gy&&(i=void 0),this.autoFreeze_&&Mf(i,!0),n){const a=[],o=[];Un("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else Dt(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let n,i;return[this.produce(t,r,(o,s)=>{n=o,i=s}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Fr(e)||Dt(8),Vn(e)&&(e=Br(e));const t=t0(this),r=Lf(e,void 0);return r[Kt].isManual_=!0,Df(t),r}finishDraft(e,t){const r=e&&e[Kt];(!r||!r.isManual_)&&Dt(9);const{scope_:n}=r;return e0(n,t),r0(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Un("Patches").applyPatches_;return Vn(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Lf(e,t){const r=ka(e)?Un("MapSet").proxyMap_(e,t):Fs(e)?Un("MapSet").proxySet_(e,t):bM(e,t);return(t?t.scope_:Qy()).drafts_.push(r),r}function Br(e){return Vn(e)||Dt(10,e),a0(e)}function a0(e){if(!Fr(e)||zs(e))return e;const t=e[Kt];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Tf(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Tf(e,!0);return Rs(r,(n,i)=>{Jy(r,n,a0(i))}),t&&(t.finalized_=!1),r}var _M=new wM,o0=_M.produce;function AU(e){return e}function s0(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var SM=s0(),OM=s0,AM=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$s:$s.apply(null,arguments)},EM=e=>e&&typeof e.match=="function";function ar(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?be(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Cf(n)&&n.type===e,r}function PM(e){return typeof e=="function"&&"type"in e&&EM(e)}function CM(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
143
+ Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function kM(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=PM}=e;return()=>r=>n=>(t(n)&&console.warn(CM(n.type)),r(n))}function l0(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const a=Date.now();r+=a-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
144
144
  If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
145
- It is disabled in production builds, so you don't need to worry about that.`)}}}var l0=class Bo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Bo.prototype)}static get[Symbol.species](){return Bo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Bo(...t[0].concat(this)):new Bo(...t.concat(this))}};function c0(e){return Fr(e)?a0(e,()=>{}):e}function Vs(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function kM(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function TM(e,t,r){const n=u0(e,t,r);return{detectMutations(){return f0(e,t,n,r)}}}function u0(e,t=[],r,n="",i=new Set){const a={value:r};if(!e(r)&&!i.has(r)){i.add(r),a.children={};for(const o in r){const s=n?n+"."+o:o;t.length&&t.indexOf(s)!==-1||(a.children[o]=u0(e,t,r[o],s))}}return a}function f0(e,t=[],r,n,i=!1,a=""){const o=r?r.value:void 0,s=o===n;if(i&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};const l={};for(let u in r.children)l[u]=!0;for(let u in n)l[u]=!0;const c=t.length>0;for(let u in l){const f=a?a+"."+u:u;if(c&&t.some(m=>m instanceof RegExp?m.test(f):f===m))continue;const d=f0(e,t,r.children[u],n[u],s,f);if(d.wasMutated)return d}return{wasMutated:!1}}function MM(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(s,l,c,u){return JSON.stringify(s,r(l,u),c)},r=function(s,l){let c=[],u=[];return l||(l=function(f,d){return c[0]===d?"[Circular ~]":"[Circular ~."+u.slice(0,c.indexOf(d)).join(".")+"]"}),function(f,d){if(c.length>0){var h=c.indexOf(this);~h?c.splice(h+1):c.push(this),~h?u.splice(h,1/0,f):u.push(f),~c.indexOf(d)&&(d=l.call(this,f,d))}else c.push(d);return s==null?d:s.call(this,f,d)}},{isImmutable:n=kM,ignoredPaths:i,warnAfter:a=32}=e;const o=TM.bind(null,n,i);return({getState:s})=>{let l=s(),c=o(l),u;return f=>d=>{const h=s0(a,"ImmutableStateInvariantMiddleware");h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=o(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?be(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const m=f(d);return h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=o(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?be(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(d)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),h.warnIfExceeded(),m}}}}function d0(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Pa(e)}function Rf(e,t="",r=d0,n,i=[],a){let o;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a?.has(e))return!1;const s=n!=null?n(e):Object.entries(e),l=i.length>0;for(const[c,u]of s){const f=t?t+"."+c:c;if(!(l&&i.some(h=>h instanceof RegExp?h.test(f):f===h))){if(!r(u))return{keyPath:f,value:u};if(typeof u=="object"&&(o=Rf(u,f,r,n,i,a),o))return o}}return a&&h0(e)&&a.add(e),!1}function h0(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!h0(t))return!1;return!0}function jM(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=d0,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:o=32,ignoreState:s=!1,ignoreActions:l=!1,disableCache:c=!1}=e,u=!c&&WeakSet?new WeakSet:void 0;return f=>d=>h=>{if(!Ef(h))return d(h);const m=d(h),p=s0(o,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(h.type)!==-1)&&p.measureTime(()=>{const g=Rf(h,"",t,r,i,u);if(g){const{keyPath:v,value:b}=g;console.error(`A non-serializable value was detected in an action, in the path: \`${v}\`. Value:`,b,`
145
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var c0=class zo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,zo.prototype)}static get[Symbol.species](){return zo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new zo(...t[0].concat(this)):new zo(...t.concat(this))}};function u0(e){return Fr(e)?o0(e,()=>{}):e}function Hs(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function TM(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function MM(e,t,r){const n=f0(e,t,r);return{detectMutations(){return d0(e,t,n,r)}}}function f0(e,t=[],r,n="",i=new Set){const a={value:r};if(!e(r)&&!i.has(r)){i.add(r),a.children={};for(const o in r){const s=n?n+"."+o:o;t.length&&t.indexOf(s)!==-1||(a.children[o]=f0(e,t,r[o],s))}}return a}function d0(e,t=[],r,n,i=!1,a=""){const o=r?r.value:void 0,s=o===n;if(i&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};const l={};for(let u in r.children)l[u]=!0;for(let u in n)l[u]=!0;const c=t.length>0;for(let u in l){const f=a?a+"."+u:u;if(c&&t.some(m=>m instanceof RegExp?m.test(f):f===m))continue;const d=d0(e,t,r.children[u],n[u],s,f);if(d.wasMutated)return d}return{wasMutated:!1}}function jM(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(s,l,c,u){return JSON.stringify(s,r(l,u),c)},r=function(s,l){let c=[],u=[];return l||(l=function(f,d){return c[0]===d?"[Circular ~]":"[Circular ~."+u.slice(0,c.indexOf(d)).join(".")+"]"}),function(f,d){if(c.length>0){var h=c.indexOf(this);~h?c.splice(h+1):c.push(this),~h?u.splice(h,1/0,f):u.push(f),~c.indexOf(d)&&(d=l.call(this,f,d))}else c.push(d);return s==null?d:s.call(this,f,d)}},{isImmutable:n=TM,ignoredPaths:i,warnAfter:a=32}=e;const o=MM.bind(null,n,i);return({getState:s})=>{let l=s(),c=o(l),u;return f=>d=>{const h=l0(a,"ImmutableStateInvariantMiddleware");h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=o(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?be(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const m=f(d);return h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=o(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?be(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(d)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),h.warnIfExceeded(),m}}}}function h0(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Ca(e)}function Ff(e,t="",r=h0,n,i=[],a){let o;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a?.has(e))return!1;const s=n!=null?n(e):Object.entries(e),l=i.length>0;for(const[c,u]of s){const f=t?t+"."+c:c;if(!(l&&i.some(h=>h instanceof RegExp?h.test(f):f===h))){if(!r(u))return{keyPath:f,value:u};if(typeof u=="object"&&(o=Ff(u,f,r,n,i,a),o))return o}}return a&&p0(e)&&a.add(e),!1}function p0(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!p0(t))return!1;return!0}function DM(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=h0,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:o=32,ignoreState:s=!1,ignoreActions:l=!1,disableCache:c=!1}=e,u=!c&&WeakSet?new WeakSet:void 0;return f=>d=>h=>{if(!Cf(h))return d(h);const m=d(h),p=l0(o,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(h.type)!==-1)&&p.measureTime(()=>{const g=Ff(h,"",t,r,i,u);if(g){const{keyPath:v,value:b}=g;console.error(`A non-serializable value was detected in an action, in the path: \`${v}\`. Value:`,b,`
146
146
  Take a look at the logic that dispatched this action: `,h,`
147
147
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
148
- (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),s||(p.measureTime(()=>{const g=f.getState(),v=Rf(g,"",t,r,a,u);if(v){const{keyPath:b,value:x}=v;console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`,x,`
148
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),s||(p.measureTime(()=>{const g=f.getState(),v=Ff(g,"",t,r,a,u);if(v){const{keyPath:b,value:x}=v;console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`,x,`
149
149
  Take a look at the reducer(s) handling this action type: ${h.type}.
150
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),p.warnIfExceeded()),m}}}function Hs(e){return typeof e=="boolean"}var DM=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new l0;if(r&&(Hs(r)?o.push(_M):o.push(SM(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};Hs(n)||(s=n),o.unshift(MM(s))}if(i){let s={};Hs(i)||(s=i),o.push(jM(s))}if(a){let s={};Hs(a)||(s=a),o.unshift(CM(s))}}return o},NM="RTK_autoBatch",p0=e=>t=>{setTimeout(t,e)},IM=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:p0(10):e.type==="callback"?e.queueNotification:p0(e.timeout),c=()=>{o=!1,a&&(a=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const f=()=>i&&u(),d=n.subscribe(f);return s.add(u),()=>{d(),s.delete(u)}},dispatch(u){try{return i=!u?.meta?.[NM],a=!i,a&&(o||(o=!0,l(c))),n.dispatch(u)}finally{i=!0}}})},$M=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new l0(e);return n&&i.push(IM(typeof n=="object"?n:void 0)),i};function RM(e){const t=DM(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Pa(r))l=qy(r);else throw new Error(process.env.NODE_ENV==="production"?be(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?be(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?be(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(p=>typeof p!="function"))throw new Error(process.env.NODE_ENV==="production"?be(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let p=new Set;c.forEach(g=>{if(p.has(g))throw new Error(process.env.NODE_ENV==="production"?be(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");p.add(g)})}let u=Is;i&&(u=OM({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=fM(...c),d=$M(f);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?be(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?be(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(p=>typeof p!="function"))throw new Error(process.env.NODE_ENV==="production"?be(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!h.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const m=u(...h);return Uy(l,o,m)}function m0(e){const t={},r=[];let n;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?be(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?be(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof a=="string"?a:a.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?be(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?be(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=o,i},addAsyncThunk(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?be(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?be(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?be(31):"`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function LM(e){return typeof e=="function"}function FM(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?be(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=m0(t),a;if(LM(e))a=()=>c0(e());else{const s=c0(e);a=()=>s}function o(s=a(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,f)=>{if(f)if(Wn(u)){const h=f(u,l);return h===void 0?u:h}else{if(Fr(u))return a0(u,d=>f(d,l));{const d=f(u,l);if(d===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return u},s)}return o.getInitialState=a,o}var BM="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",zM=(e=21)=>{let t="",r=e;for(;r--;)t+=BM[Math.random()*64|0];return t},WM=Symbol.for("rtk-slice-createasyncthunk");function VM(e,t){return`${e}/${t}`}function HM({creators:e}={}){const t=e?.asyncThunk?.[WM];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(process.env.NODE_ENV==="production"?be(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=(typeof n.reducers=="function"?n.reducers(KM()):n.reducers)||{},s=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,S){const w=typeof x=="string"?x:x.type;if(!w)throw new Error(process.env.NODE_ENV==="production"?be(12):"`context.addCase` cannot be called with an empty action type");if(w in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?be(13):"`context.addCase` cannot be called with two reducers for the same action type: "+w);return l.sliceCaseReducersByType[w]=S,c},addMatcher(x,S){return l.sliceMatchers.push({matcher:x,reducer:S}),c},exposeAction(x,S){return l.actionCreators[x]=S,c},exposeCaseReducer(x,S){return l.sliceCaseReducersByName[x]=S,c}};s.forEach(x=>{const S=o[x],w={reducerName:x,type:VM(i,x),createNotation:typeof n.reducers=="function"};YM(S)?XM(w,S,c,t):qM(w,S,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?be(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[x={},S=[],w=void 0]=typeof n.extraReducers=="function"?m0(n.extraReducers):[n.extraReducers],O={...x,...l.sliceCaseReducersByType};return FM(n.initialState,E=>{for(let C in O)E.addCase(C,O[C]);for(let C of l.sliceMatchers)E.addMatcher(C.matcher,C.reducer);for(let C of S)E.addMatcher(C.matcher,C.reducer);w&&E.addDefaultCase(w)})}const f=x=>x,d=new Map,h=new WeakMap;let m;function p(x,S){return m||(m=u()),m(x,S)}function g(){return m||(m=u()),m.getInitialState()}function v(x,S=!1){function w(E){let C=E[x];if(typeof C>"u"){if(S)C=Vs(h,w,g);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?be(15):"selectSlice returned undefined for an uninjected slice reducer")}return C}function O(E=f){const C=Vs(d,S,()=>new WeakMap);return Vs(C,E,()=>{const M={};for(const[$,j]of Object.entries(n.selectors??{}))M[$]=UM(j,E,()=>Vs(h,E,g),S);return M})}return{reducerPath:x,getSelectors:O,get selectors(){return O(w)},selectSlice:w}}const b={name:i,reducer:p,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:g,...v(a),injectInto(x,{reducerPath:S,...w}={}){const O=S??a;return x.inject({reducerPath:O,reducer:p},w),{...b,...v(O,!0)}}};return b}}function UM(e,t,r,n){function i(a,...o){let s=t(a);if(typeof s>"u"){if(n)s=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?be(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...o)}return i.unwrapped=e,i}var qt=HM();function KM(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function qM({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!GM(n))throw new Error(process.env.NODE_ENV==="production"?be(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?ar(e,o):ar(e))}function YM(e){return e._reducerDefinitionType==="asyncThunk"}function GM(e){return e._reducerDefinitionType==="reducerWithPrepare"}function XM({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?be(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:s,rejected:l,settled:c,options:u}=r,f=i(e,a,u);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||Us,pending:s||Us,rejected:l||Us,settled:c||Us})}function Us(){}var ZM="task",g0="listener",v0="completed",Lf="cancelled",JM=`task-${Lf}`,QM=`task-${v0}`,Ff=`${g0}-${Lf}`,ej=`${g0}-${v0}`,Ks=class{constructor(e){this.code=e,this.message=`${ZM} ${Lf} (reason: ${e})`}name="TaskAbortError";message},Bf=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?be(32):`${t} is not a function`)},qs=()=>{},y0=(e,t=qs)=>(e.catch(t),e),b0=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Un=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Kn=e=>{if(e.aborted){const{reason:t}=e;throw new Ks(t)}};function x0(e,t){let r=qs;return new Promise((n,i)=>{const a=()=>i(new Ks(e.reason));if(e.aborted){a();return}r=b0(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=qs})}var tj=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Ks?"cancelled":"rejected",error:r}}finally{t?.()}},Ys=e=>t=>y0(x0(e,t).then(r=>(Kn(e),r))),w0=e=>{const t=Ys(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Di}=Object,_0={},Ma="listenerMiddleware",rj=(e,t)=>{const r=n=>b0(e,()=>Un(n,e.reason));return(n,i)=>{Bf(n,"taskExecutor");const a=new AbortController;r(a);const o=tj(async()=>{Kn(e),Kn(a.signal);const s=await n({pause:Ys(a.signal),delay:w0(a.signal),signal:a.signal});return Kn(a.signal),s},()=>Un(a,QM));return i?.autoJoin&&t.push(o.catch(qs)),{result:Ys(e)(o),cancel(){Un(a,JM)}}}},nj=(e,t)=>{const r=async(n,i)=>{Kn(t);let a=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{u(),c()}})];i!=null&&s.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await x0(t,Promise.race(s));return Kn(t),l}finally{a()}};return(n,i)=>y0(r(n,i))},S0=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=ar(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(process.env.NODE_ENV==="production"?be(21):"Creating or removing a listener requires one of the known fields for matching an action");return Bf(a,"options.listener"),{predicate:i,type:t,effect:a}},O0=Di(e=>{const{type:t,predicate:r,effect:n}=S0(e);return{id:zM(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?be(22):"Unsubscribe not initialized")}}},{withTypes:()=>O0}),A0=(e,t)=>{const{type:r,effect:n,predicate:i}=S0(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},zf=e=>{e.pending.forEach(t=>{Un(t,Ff)})},ij=e=>()=>{e.forEach(zf),e.clear()},E0=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},P0=Di(ar(`${Ma}/add`),{withTypes:()=>P0}),aj=ar(`${Ma}/removeAll`),C0=Di(ar(`${Ma}/remove`),{withTypes:()=>C0}),oj=(...e)=>{console.error(`${Ma}/error`,...e)},ja=(e={})=>{const t=new Map,{extra:r,onError:n=oj}=e;Bf(n,"onError");const i=u=>(u.unsubscribe=()=>t.delete(u.id),t.set(u.id,u),f=>{u.unsubscribe(),f?.cancelActive&&zf(u)}),a=u=>{const f=A0(t,u)??O0(u);return i(f)};Di(a,{withTypes:()=>a});const o=u=>{const f=A0(t,u);return f&&(f.unsubscribe(),u.cancelActive&&zf(f)),!!f};Di(o,{withTypes:()=>o});const s=async(u,f,d,h)=>{const m=new AbortController,p=nj(a,m.signal),g=[];try{u.pending.add(m),await Promise.resolve(u.effect(f,Di({},d,{getOriginalState:h,condition:(v,b)=>p(v,b).then(Boolean),take:p,delay:w0(m.signal),pause:Ys(m.signal),extra:r,signal:m.signal,fork:rj(m.signal,g),unsubscribe:u.unsubscribe,subscribe:()=>{t.set(u.id,u)},cancelActiveListeners:()=>{u.pending.forEach((v,b,x)=>{v!==m&&(Un(v,Ff),x.delete(v))})},cancel:()=>{Un(m,Ff),u.pending.delete(m)},throwIfCancelled:()=>{Kn(m.signal)}})))}catch(v){v instanceof Ks||E0(n,v,{raisedBy:"effect"})}finally{await Promise.all(g),Un(m,ej),u.pending.delete(m)}},l=ij(t);return{middleware:u=>f=>d=>{if(!Ef(d))return f(d);if(P0.match(d))return a(d.payload);if(aj.match(d)){l();return}if(C0.match(d))return o(d.payload);let h=u.getState();const m=()=>{if(h===_0)throw new Error(process.env.NODE_ENV==="production"?be(23):`${Ma}: getOriginalState can only be called synchronously`);return h};let p;try{if(p=f(d),t.size>0){const g=u.getState(),v=Array.from(t.values());for(const b of v){let x=!1;try{x=b.predicate(d,g,h)}catch(S){x=!1,E0(n,S,{raisedBy:"predicate"})}x&&s(b,d,u,m)}}}finally{h=_0}return p},startListening:a,stopListening:o,clearListeners:l}};function be(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var sj={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},k0=qt({name:"chartLayout",initialState:sj,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:lj,setLayout:cj,setChartSize:uj,setScale:fj}=k0.actions,dj=k0.reducer;function T0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T0(Object(r),!0).forEach(function(n){hj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hj(e,t,r){return(t=pj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pj(e){var t=mj(e,"string");return typeof t=="symbol"?t:t+""}function mj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gs=Math.PI/180,gj=e=>e*180/Math.PI,it=(e,t,r,n)=>({x:e+Math.cos(-Gs*n)*r,y:t+Math.sin(-Gs*n)*r}),j0=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},vj=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},yj=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=vj({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(r-i)/o,l=Math.acos(s);return n>a&&(l=2*Math.PI-l),{radius:o,angle:gj(l),angleInRadian:l}},bj=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},xj=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},wj=(e,t)=>{var{x:r,y:n}=e,{radius:i,angle:a}=yj({x:r,y:n},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:l,endAngle:c}=bj(t),u=a,f;if(l<=c){for(;u>c;)u-=360;for(;u<l;)u+=360;f=u>=l&&u<=c}else{for(;u>l;)u-=360;for(;u<c;)u+=360;f=u>=c&&u<=l}return f?M0(M0({},t),{},{radius:i,angle:xj(u,t)}):null};function D0(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function N0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(r),!0).forEach(function(n){_j(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _j(e,t,r){return(t=Sj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sj(e){var t=Oj(e,"string");return typeof t=="symbol"?t:t+""}function Oj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Re(e,t,r){return ze(e)||ze(t)?r:Or(t)?Ln(e,t,r):typeof t=="function"?t(e):r}var Aj=(e,t,r,n,i)=>{var a,o=-1,s=(a=t?.length)!==null&&a!==void 0?a:0;if(s<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<s;l++){var c=l>0?r[l-1].coordinate:r[s-1].coordinate,u=r[l].coordinate,f=l>=s-1?r[0].coordinate:r[l+1].coordinate,d=void 0;if(pt(u-c)!==pt(f-u)){var h=[];if(pt(f-u)===pt(i[1]-i[0])){d=f;var m=u+i[1]-i[0];h[0]=Math.min(m,(m+c)/2),h[1]=Math.max(m,(m+c)/2)}else{d=c;var p=f+i[1]-i[0];h[0]=Math.min(u,(p+u)/2),h[1]=Math.max(u,(p+u)/2)}var g=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>g[0]&&e<=g[1]||e>=h[0]&&e<=h[1]){({index:o}=r[l]);break}}else{var v=Math.min(c,f),b=Math.max(c,f);if(e>(v+u)/2&&e<=(b+u)/2){({index:o}=r[l]);break}}}else if(t){for(var x=0;x<s;x++)if(x===0&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x>0&&x<s-1&&e>(t[x].coordinate+t[x-1].coordinate)/2&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x===s-1&&e>(t[x].coordinate+t[x-1].coordinate)/2){({index:o}=t[x]);break}}return o},Ej=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:s}=t;if((s==="vertical"||s==="horizontal"&&o==="middle")&&a!=="center"&&X(e[a]))return or(or({},e),{},{[a]:e[a]+(n||0)});if((s==="horizontal"||s==="vertical"&&a==="center")&&o!=="middle"&&X(e[o]))return or(or({},e),{},{[o]:e[o]+(i||0)})}return e},fn=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",I0=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var i,a,o=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===r&&(a=!0),s.coordinate));return i||o.push(t),a||o.push(r),o},$0=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:f,niceTicks:d,axisType:h}=e;if(!o)return null;var m=s==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,p=i==="category"&&o.bandwidth?o.bandwidth()/m:0;if(p=h==="angleAxis"&&a&&a.length>=2?pt(a[0]-a[1])*2*p:p,f||d){var g=(f||d||[]).map((v,b)=>{var x=n?n.indexOf(v):v;return{coordinate:o(x)+p,value:v,offset:p,index:b}});return g.filter(v=>!Ut(v.coordinate))}return l&&c?c.map((v,b)=>({coordinate:o(v)+p,value:v,index:b,offset:p})):o.ticks&&u!=null?o.ticks(u).map((v,b)=>({coordinate:o(v)+p,value:v,offset:p,index:b})):o.domain().map((v,b)=>({coordinate:o(v)+p,value:n?n[v]:v,index:b,offset:p}))},R0=1e-4,Pj=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-R0,a=Math.max(n[0],n[1])+R0,o=e(t[0]),s=e(t[r-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[r-1]])}},Cj=(e,t)=>{if(!t||t.length!==2||!X(t[0])||!X(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!X(e[0])||e[0]<r)&&(i[0]=r),(!X(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},kj=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=Ut(e[o][r][1])?e[o][r][0]:e[o][r][1];s>=0?(e[o][r][0]=i,e[o][r][1]=i+s,i=e[o][r][1]):(e[o][r][0]=a,e[o][r][1]=a+s,a=e[o][r][1])}},Tj=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0;a<t;++a){var o=Ut(e[a][r][1])?e[a][r][0]:e[a][r][1];o>=0?(e[a][r][0]=i,e[a][r][1]=i+o,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},Mj={sign:kj,expand:Kk,none:Mi,silhouette:qk,wiggle:Yk,positive:Tj},jj=(e,t,r)=>{var n=Mj[r],i=Uk().keys(t).value((a,o)=>+Re(a,o,0)).order(Du).offset(n);return i(e)};function Dj(e){return e==null?void 0:String(e)}function L0(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ze(i[t.dataKey])){var s=sv(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Re(i,ze(o)?t.dataKey:o);return ze(l)?null:t.scale(l)}var F0=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var s=Re(a,t.dataKey,t.scale.domain()[o]);return ze(s)?null:t.scale(s)-i/2+n},Nj=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},Ij=e=>{var t=e.flat(2).filter(X);return[Math.min(...t),Math.max(...t)]},$j=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Rj=(e,t,r)=>{if(e!=null)return $j(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:o}=a,s=o.reduce((l,c)=>{var u=D0(c,t,r),f=Ij(u);return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},B0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,z0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Da=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Ds(t,u=>u.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var l=i[o],c=i[o-1];a=Math.min((l.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function W0(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return or(or({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Ni(e,t){if(e)return String(e);if(typeof t=="string")return t}function Lj(e,t,r,n,i){if(r==="horizontal"||r==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return n?wj({x:e,y:t},n):null}var Fj=(e,t,r,n)=>{var i=t.find(c=>c&&c.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.y};if(e==="vertical")return{x:n.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:o}=n;return or(or(or({},n),it(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:l}=n;return or(or(or({},n),it(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{x:0,y:0}},Bj=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,zr=e=>e.layout.width,Wr=e=>e.layout.height,zj=e=>e.layout.scale,V0=e=>e.layout.margin,Xs=N(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Zs=N(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),H0="data-recharts-item-index",U0="data-recharts-item-data-key",Na=60;function K0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Js(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K0(Object(r),!0).forEach(function(n){Wj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wj(e,t,r){return(t=Vj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vj(e){var t=Hj(e,"string");return typeof t=="symbol"?t:t+""}function Hj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uj=e=>e.brush.height;function Kj(e){var t=Zs(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Na;return r+i}return r},0)}function qj(e){var t=Zs(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Na;return r+i}return r},0)}function Yj(e){var t=Xs(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function Gj(e){var t=Xs(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var st=N([zr,Wr,V0,Uj,Kj,qj,Yj,Gj,Vy,eM],(e,t,r,n,i,a,o,s,l,c)=>{var u={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+s},d=Js(Js({},f),u),h=d.bottom;d.bottom+=n,d=Ej(d,l,c);var m=e-d.left-d.right,p=t-d.top-d.bottom;return Js(Js({brushBottom:h},d),{},{width:Math.max(m,0),height:Math.max(p,0)})}),Xj=N(st,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Wf=N(zr,Wr,(e,t)=>({x:0,y:0,width:e,height:t})),Zj=k.createContext(null),Nt=()=>k.useContext(Zj)!=null,Qs=e=>e.brush,el=N([Qs,st,V0],(e,t,r)=>({height:e.height,x:X(e.x)?e.x:t.left,y:X(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:X(e.width)?e.width:t.width})),Vf=()=>{var e,t=Nt(),r=G(Xj),n=G(el),i=(e=G(Qs))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},Jj={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},q0=()=>{var e;return(e=G(st))!==null&&e!==void 0?e:Jj},Y0=()=>G(zr),G0=()=>G(Wr),ue=e=>e.layout.layoutType,tl=()=>G(ue),Qj={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},X0=qt({name:"legend",initialState:Qj,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var r=Br(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)}}}),{setLegendSize:OU,setLegendSettings:AU,addLegendPayload:Z0,removeLegendPayload:J0}=X0.actions,eD=X0.reducer;function Hf(){return Hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hf.apply(null,arguments)}function Q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Uf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q0(Object(r),!0).forEach(function(n){tD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tD(e,t,r){return(t=rD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rD(e){var t=nD(e,"string");return typeof t=="symbol"?t:t+""}function nD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iD(e){return Array.isArray(e)&&Or(e[0])&&Or(e[1])?e.join(" ~ "):e}var aD=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:o,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:f,accessibilityLayer:d=!1}=e,h=()=>{if(a&&a.length){var w={padding:0,margin:0},O=(s?Ds(a,s):a).map((E,C)=>{if(E.type==="none")return null;var M=E.formatter||o||iD,{value:$,name:j}=E,_=$,I=j;if(M){var D=M($,j,E,C,a);if(Array.isArray(D))[_,I]=D;else if(D!=null)_=D;else return null}var L=Uf({display:"block",paddingTop:4,paddingBottom:4,color:E.color||"#000"},n);return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:L},Or(I)?A.createElement("span",{className:"recharts-tooltip-item-name"},I):null,Or(I)?A.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,A.createElement("span",{className:"recharts-tooltip-item-value"},_),A.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:w},O)}return null},m=Uf({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),p=Uf({margin:0},i),g=!ze(u),v=g?u:"",b=de("recharts-default-tooltip",l),x=de("recharts-tooltip-label",c);g&&f&&a!==void 0&&a!==null&&(v=f(u,a));var S=d?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",Hf({className:b,style:m},S),A.createElement("p",{className:x,style:p},A.isValidElement(v)?v:"".concat(v)),h())},Ia="recharts-tooltip-wrapper",oD={visibility:"hidden"};function sD(e){var{coordinate:t,translateX:r,translateY:n}=e;return de(Ia,{["".concat(Ia,"-right")]:X(r)&&t&&X(t.x)&&r>=t.x,["".concat(Ia,"-left")]:X(r)&&t&&X(t.x)&&r<t.x,["".concat(Ia,"-bottom")]:X(n)&&t&&X(t.y)&&n>=t.y,["".concat(Ia,"-top")]:X(n)&&t&&X(t.y)&&n<t.y})}function eb(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:o,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(a&&X(a[n]))return a[n];var u=r[n]-s-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?u:f;var d=l[n];if(d==null)return 0;if(o[n]){var h=u,m=d;return h<m?Math.max(f,d):Math.max(u,d)}if(c==null)return 0;var p=f+s,g=d+c;return p>g?Math.max(u,d):Math.max(f,d)}function lD(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function cD(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:o,useTranslate3d:s,viewBox:l}=e,c,u,f;return o.height>0&&o.width>0&&r?(u=eb({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=eb({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=lD({translateX:u,translateY:f,useTranslate3d:s})):c=oD,{cssProperties:c,cssClasses:sD({translateX:u,translateY:f,coordinate:r})}}function tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tb(Object(r),!0).forEach(function(n){Kf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kf(e,t,r){return(t=uD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uD(e){var t=fD(e,"string");return typeof t=="symbol"?t:t+""}function fD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class dD extends k.PureComponent{constructor(){super(...arguments),Kf(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Kf(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:o,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:f,useTranslate3d:d,viewBox:h,wrapperStyle:m,lastBoundingBox:p,innerRef:g,hasPortalFromProps:v}=this.props,{cssClasses:b,cssProperties:x}=cD({allowEscapeViewBox:r,coordinate:o,offsetTopLeft:c,position:u,reverseDirection:f,tooltipBox:{height:p.height,width:p.width},useTranslate3d:d,viewBox:h}),S=v?{}:rl(rl({transition:l&&t?"transform ".concat(n,"ms ").concat(i):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),w=rl(rl({},S),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},m);return A.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:b,style:w,ref:g},a)}}var hD=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),dn={devToolsEnabled:!1,isSsr:hD()},rb=()=>G(e=>e.rootProps.accessibilityLayer);function Yt(e){return Number.isFinite(e)}function Ii(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(null,arguments)}function nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ib(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(r),!0).forEach(function(n){pD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pD(e,t,r){return(t=mD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mD(e){var t=gD(e,"string");return typeof t=="symbol"?t:t+""}function gD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ab={curveBasisClosed:Nk,curveBasisOpen:Ik,curveBasis:Dk,curveBumpX:bk,curveBumpY:xk,curveLinearClosed:$k,curveLinear:Ss,curveMonotoneX:Rk,curveMonotoneY:Lk,curveNatural:Fk,curveStep:Bk,curveStepAfter:Wk,curveStepBefore:zk},nl=e=>Yt(e.x)&&Yt(e.y),$a=e=>e.x,Ra=e=>e.y,vD=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Ea(e));return(r==="curveMonotone"||r==="curveBump")&&t?ab["".concat(r).concat(t==="vertical"?"Y":"X")]:ab[r]||Ss},yD=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,o=vD(t,i),s=a?r.filter(nl):r,l;if(Array.isArray(n)){var c=a?n.filter(f=>nl(f)):n,u=s.map((f,d)=>ib(ib({},f),{},{base:c[d]}));return i==="vertical"?l=Os().y(Ra).x1($a).x0(f=>f.base.x):l=Os().x($a).y1(Ra).y0(f=>f.base.y),l.defined(nl).curve(o),l(u)}return i==="vertical"&&X(n)?l=Os().y(Ra).x1($a).x0(n):X(n)?l=Os().x($a).y1(Ra).y0(n):l=xv().x($a).y(Ra),l.defined(nl).curve(o),l(s)},Yf=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?yD(e):n;return A.createElement("path",qf({},Ar(e),xu(e),{className:de("recharts-curve",t),d:a===null?void 0:a,ref:i}))},bD=["x","y","top","left","width","height","className"];function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gf.apply(null,arguments)}function ob(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ob(Object(r),!0).forEach(function(n){wD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ob(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wD(e,t,r){return(t=_D(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _D(e){var t=SD(e,"string");return typeof t=="symbol"?t:t+""}function SD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OD(e,t){if(e==null)return{};var r,n,i=AD(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function AD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ED=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),PD=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:s}=e,l=OD(e,bD),c=xD({x:t,y:r,top:n,left:i,width:a,height:o},l);return!X(t)||!X(r)||!X(a)||!X(o)||!X(n)||!X(i)?null:A.createElement("path",Gf({},Ue(c,!0),{className:de("recharts-cross",s),d:ED(t,r,a,o,n,i)}))};function CD(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(r),!0).forEach(function(n){TD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TD(e,t,r){return(t=MD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MD(e){var t=jD(e,"string");return typeof t=="symbol"?t:t+""}function jD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _t(e,t){var r=kD({},e),n=t,i=Object.keys(t),a=i.reduce((o,s)=>(o[s]===void 0&&n[s]!==void 0&&(o[s]=n[s]),o),r);return a}function DD(){}function lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lb(Object(r),!0).forEach(function(n){ND(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ND(e,t,r){return(t=ID(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ID(e){var t=$D(e,"string");return typeof t=="symbol"?t:t+""}function $D(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RD=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),ub=(e,t,r)=>e.map(n=>"".concat(RD(n)," ").concat(t,"ms ").concat(r)).join(","),LD=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),La=(e,t)=>Object.keys(t).reduce((r,n)=>cb(cb({},r),{},{[n]:e(n,t[n])}),{});function fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fb(Object(r),!0).forEach(function(n){FD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FD(e,t,r){return(t=BD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BD(e){var t=zD(e,"string");return typeof t=="symbol"?t:t+""}function zD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var il=(e,t,r)=>e+(t-e)*r,Xf=e=>{var{from:t,to:r}=e;return t!==r},db=(e,t,r)=>{var n=La((i,a)=>{if(Xf(a)){var[o,s]=e(a.from,a.to,a.velocity);return St(St({},a),{},{from:o,velocity:s})}return a},t);return r<1?La((i,a)=>Xf(a)?St(St({},a),{},{velocity:il(a.velocity,n[i].velocity,r),from:il(a.from,n[i].from,r)}):a,t):db(e,n,r-1)};function WD(e,t,r,n,i,a){var o,s=n.reduce((d,h)=>St(St({},d),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>La((d,h)=>h.from,s),c=()=>!Object.values(s).filter(Xf).length,u=null,f=d=>{o||(o=d);var h=d-o,m=h/r.dt;s=db(r,s,m),i(St(St(St({},e),t),l())),o=d,c()||(u=a.setTimeout(f))};return()=>(u=a.setTimeout(f),()=>{u()})}function VD(e,t,r,n,i,a,o){var s=null,l=i.reduce((f,d)=>St(St({},f),{},{[d]:[e[d],t[d]]}),{}),c,u=f=>{c||(c=f);var d=(f-c)/n,h=La((p,g)=>il(...g,r(d)),l);if(a(St(St(St({},e),t),h)),d<1)s=o.setTimeout(u);else{var m=La((p,g)=>il(...g,r(1)),l);a(St(St(St({},e),t),m))}};return()=>(s=o.setTimeout(u),()=>{s()})}const HD=(e,t,r,n,i,a)=>{var o=LD(e,t);return r.isStepper===!0?WD(e,t,r,o,i,a):VD(e,t,r,n,o,i,a)};var al=1e-4,hb=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],pb=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),mb=(e,t)=>r=>{var n=hb(e,t);return pb(n,r)},UD=(e,t)=>r=>{var n=hb(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return pb(i,r)},gb=function(){for(var t,r,n,i,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(o.length===1)switch(o[0]){case"linear":[t,n,r,i]=[0,0,1,1];break;case"ease":[t,n,r,i]=[.25,.1,.25,1];break;case"ease-in":[t,n,r,i]=[.42,0,1,1];break;case"ease-out":[t,n,r,i]=[.42,0,.58,1];break;case"ease-in-out":[t,n,r,i]=[0,0,.58,1];break;default:{var l=o[0].split("(");l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4&&([t,n,r,i]=l[1].split(")")[0].split(",").map(m=>parseFloat(m)))}}else o.length===4&&([t,n,r,i]=o);var c=mb(t,r),u=mb(n,i),f=UD(t,r),d=m=>m>1?1:m<0?0:m,h=m=>{for(var p=m>1?1:m,g=p,v=0;v<8;++v){var b=c(g)-p,x=f(g);if(Math.abs(b-p)<al||x<al)return u(g);g=d(g-b/x)}return u(g)};return h.isStepper=!1,h},KD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,s,l)=>{var c=-(o-s)*r,u=l*n,f=l+(c-u)*i/1e3,d=l*i/1e3+o;return Math.abs(d-s)<al&&Math.abs(f)<al?[s,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},qD=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return gb(e);case"spring":return KD();default:if(e.split("(")[0]==="cubic-bezier")return gb(e)}return typeof e=="function"?e:null};function YD(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,[l,...c]=s;if(typeof l=="number"){i=e.setTimeout(a.bind(null,c),l);return}a(l),i=e.setTimeout(a.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class GD{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}function XD(){return YD(new GD)}var ZD=k.createContext(XD);function JD(e,t){var r=k.useContext(ZD);return k.useMemo(()=>t??r(e),[e,t,r])}var QD={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},vb={t:0},Zf={t:1};function Fa(e){var t=_t(e,QD),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=JD(t.animationId,t.animationManager),[f,d]=k.useState(r?vb:Zf),h=k.useRef(null);return k.useEffect(()=>{r||d(Zf)},[r]),k.useEffect(()=>{if(!r||!n)return DD;var m=HD(vb,Zf,qD(a),i,d,u.getTimeoutController()),p=()=>{h.current=m()};return u.start([l,o,p,i,s]),()=>{u.stop(),h.current&&h.current(),s()}},[r,n,i,a,o,l,s,u]),c(f.t)}function Ba(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=k.useRef(Aa(t)),n=k.useRef(e);return n.current!==e&&(r.current=Aa(t),n.current=e),r.current}function yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(r),!0).forEach(function(n){eN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eN(e,t,r){return(t=tN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tN(e){var t=rN(e,"string");return typeof t=="symbol"?t:t+""}function rN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ol.apply(null,arguments)}var xb=(e,t,r,n,i)=>{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),o=n>=0?1:-1,s=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0,c;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],f=0,d=4;f<d;f++)u[f]=i[f]>a?a:i[f];c="M".concat(e,",").concat(t+o*u[0]),u[0]>0&&(c+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+s*u[0],",").concat(t)),c+="L ".concat(e+r-s*u[1],",").concat(t),u[1]>0&&(c+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,`,
150
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),p.warnIfExceeded()),m}}}function Us(e){return typeof e=="boolean"}var NM=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new c0;if(r&&(Us(r)?o.push(SM):o.push(OM(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};Us(n)||(s=n),o.unshift(jM(s))}if(i){let s={};Us(i)||(s=i),o.push(DM(s))}if(a){let s={};Us(a)||(s=a),o.unshift(kM(s))}}return o},IM="RTK_autoBatch",m0=e=>t=>{setTimeout(t,e)},$M=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:m0(10):e.type==="callback"?e.queueNotification:m0(e.timeout),c=()=>{o=!1,a&&(a=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const f=()=>i&&u(),d=n.subscribe(f);return s.add(u),()=>{d(),s.delete(u)}},dispatch(u){try{return i=!u?.meta?.[IM],a=!i,a&&(o||(o=!0,l(c))),n.dispatch(u)}finally{i=!0}}})},RM=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new c0(e);return n&&i.push($M(typeof n=="object"?n:void 0)),i};function LM(e){const t=NM(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Ca(r))l=Yy(r);else throw new Error(process.env.NODE_ENV==="production"?be(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?be(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?be(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(p=>typeof p!="function"))throw new Error(process.env.NODE_ENV==="production"?be(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let p=new Set;c.forEach(g=>{if(p.has(g))throw new Error(process.env.NODE_ENV==="production"?be(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");p.add(g)})}let u=$s;i&&(u=AM({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=dM(...c),d=RM(f);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?be(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?be(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(p=>typeof p!="function"))throw new Error(process.env.NODE_ENV==="production"?be(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!h.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const m=u(...h);return Ky(l,o,m)}function g0(e){const t={},r=[];let n;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?be(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?be(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof a=="string"?a:a.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?be(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?be(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=o,i},addAsyncThunk(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?be(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?be(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?be(31):"`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function FM(e){return typeof e=="function"}function BM(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?be(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=g0(t),a;if(FM(e))a=()=>u0(e());else{const s=u0(e);a=()=>s}function o(s=a(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,f)=>{if(f)if(Vn(u)){const h=f(u,l);return h===void 0?u:h}else{if(Fr(u))return o0(u,d=>f(d,l));{const d=f(u,l);if(d===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return u},s)}return o.getInitialState=a,o}var zM="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",WM=(e=21)=>{let t="",r=e;for(;r--;)t+=zM[Math.random()*64|0];return t},VM=Symbol.for("rtk-slice-createasyncthunk");function HM(e,t){return`${e}/${t}`}function UM({creators:e}={}){const t=e?.asyncThunk?.[VM];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(process.env.NODE_ENV==="production"?be(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=(typeof n.reducers=="function"?n.reducers(qM()):n.reducers)||{},s=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,S){const w=typeof x=="string"?x:x.type;if(!w)throw new Error(process.env.NODE_ENV==="production"?be(12):"`context.addCase` cannot be called with an empty action type");if(w in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?be(13):"`context.addCase` cannot be called with two reducers for the same action type: "+w);return l.sliceCaseReducersByType[w]=S,c},addMatcher(x,S){return l.sliceMatchers.push({matcher:x,reducer:S}),c},exposeAction(x,S){return l.actionCreators[x]=S,c},exposeCaseReducer(x,S){return l.sliceCaseReducersByName[x]=S,c}};s.forEach(x=>{const S=o[x],w={reducerName:x,type:HM(i,x),createNotation:typeof n.reducers=="function"};GM(S)?ZM(w,S,c,t):YM(w,S,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?be(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[x={},S=[],w=void 0]=typeof n.extraReducers=="function"?g0(n.extraReducers):[n.extraReducers],O={...x,...l.sliceCaseReducersByType};return BM(n.initialState,E=>{for(let C in O)E.addCase(C,O[C]);for(let C of l.sliceMatchers)E.addMatcher(C.matcher,C.reducer);for(let C of S)E.addMatcher(C.matcher,C.reducer);w&&E.addDefaultCase(w)})}const f=x=>x,d=new Map,h=new WeakMap;let m;function p(x,S){return m||(m=u()),m(x,S)}function g(){return m||(m=u()),m.getInitialState()}function v(x,S=!1){function w(E){let C=E[x];if(typeof C>"u"){if(S)C=Hs(h,w,g);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?be(15):"selectSlice returned undefined for an uninjected slice reducer")}return C}function O(E=f){const C=Hs(d,S,()=>new WeakMap);return Hs(C,E,()=>{const M={};for(const[$,j]of Object.entries(n.selectors??{}))M[$]=KM(j,E,()=>Hs(h,E,g),S);return M})}return{reducerPath:x,getSelectors:O,get selectors(){return O(w)},selectSlice:w}}const b={name:i,reducer:p,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:g,...v(a),injectInto(x,{reducerPath:S,...w}={}){const O=S??a;return x.inject({reducerPath:O,reducer:p},w),{...b,...v(O,!0)}}};return b}}function KM(e,t,r,n){function i(a,...o){let s=t(a);if(typeof s>"u"){if(n)s=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?be(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...o)}return i.unwrapped=e,i}var qt=UM();function qM(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function YM({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!XM(n))throw new Error(process.env.NODE_ENV==="production"?be(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?ar(e,o):ar(e))}function GM(e){return e._reducerDefinitionType==="asyncThunk"}function XM(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ZM({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?be(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:s,rejected:l,settled:c,options:u}=r,f=i(e,a,u);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||Ks,pending:s||Ks,rejected:l||Ks,settled:c||Ks})}function Ks(){}var JM="task",v0="listener",y0="completed",Bf="cancelled",QM=`task-${Bf}`,ej=`task-${y0}`,zf=`${v0}-${Bf}`,tj=`${v0}-${y0}`,qs=class{constructor(e){this.code=e,this.message=`${JM} ${Bf} (reason: ${e})`}name="TaskAbortError";message},Wf=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?be(32):`${t} is not a function`)},Ys=()=>{},b0=(e,t=Ys)=>(e.catch(t),e),x0=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Kn=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},qn=e=>{if(e.aborted){const{reason:t}=e;throw new qs(t)}};function w0(e,t){let r=Ys;return new Promise((n,i)=>{const a=()=>i(new qs(e.reason));if(e.aborted){a();return}r=x0(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Ys})}var rj=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof qs?"cancelled":"rejected",error:r}}finally{t?.()}},Gs=e=>t=>b0(w0(e,t).then(r=>(qn(e),r))),_0=e=>{const t=Gs(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Di}=Object,S0={},ja="listenerMiddleware",nj=(e,t)=>{const r=n=>x0(e,()=>Kn(n,e.reason));return(n,i)=>{Wf(n,"taskExecutor");const a=new AbortController;r(a);const o=rj(async()=>{qn(e),qn(a.signal);const s=await n({pause:Gs(a.signal),delay:_0(a.signal),signal:a.signal});return qn(a.signal),s},()=>Kn(a,ej));return i?.autoJoin&&t.push(o.catch(Ys)),{result:Gs(e)(o),cancel(){Kn(a,QM)}}}},ij=(e,t)=>{const r=async(n,i)=>{qn(t);let a=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),l([f,d.getState(),d.getOriginalState()])}});a=()=>{u(),c()}})];i!=null&&s.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await w0(t,Promise.race(s));return qn(t),l}finally{a()}};return(n,i)=>b0(r(n,i))},O0=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=ar(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(process.env.NODE_ENV==="production"?be(21):"Creating or removing a listener requires one of the known fields for matching an action");return Wf(a,"options.listener"),{predicate:i,type:t,effect:a}},A0=Di(e=>{const{type:t,predicate:r,effect:n}=O0(e);return{id:WM(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?be(22):"Unsubscribe not initialized")}}},{withTypes:()=>A0}),E0=(e,t)=>{const{type:r,effect:n,predicate:i}=O0(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},Vf=e=>{e.pending.forEach(t=>{Kn(t,zf)})},aj=e=>()=>{e.forEach(Vf),e.clear()},P0=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},C0=Di(ar(`${ja}/add`),{withTypes:()=>C0}),oj=ar(`${ja}/removeAll`),k0=Di(ar(`${ja}/remove`),{withTypes:()=>k0}),sj=(...e)=>{console.error(`${ja}/error`,...e)},Da=(e={})=>{const t=new Map,{extra:r,onError:n=sj}=e;Wf(n,"onError");const i=u=>(u.unsubscribe=()=>t.delete(u.id),t.set(u.id,u),f=>{u.unsubscribe(),f?.cancelActive&&Vf(u)}),a=u=>{const f=E0(t,u)??A0(u);return i(f)};Di(a,{withTypes:()=>a});const o=u=>{const f=E0(t,u);return f&&(f.unsubscribe(),u.cancelActive&&Vf(f)),!!f};Di(o,{withTypes:()=>o});const s=async(u,f,d,h)=>{const m=new AbortController,p=ij(a,m.signal),g=[];try{u.pending.add(m),await Promise.resolve(u.effect(f,Di({},d,{getOriginalState:h,condition:(v,b)=>p(v,b).then(Boolean),take:p,delay:_0(m.signal),pause:Gs(m.signal),extra:r,signal:m.signal,fork:nj(m.signal,g),unsubscribe:u.unsubscribe,subscribe:()=>{t.set(u.id,u)},cancelActiveListeners:()=>{u.pending.forEach((v,b,x)=>{v!==m&&(Kn(v,zf),x.delete(v))})},cancel:()=>{Kn(m,zf),u.pending.delete(m)},throwIfCancelled:()=>{qn(m.signal)}})))}catch(v){v instanceof qs||P0(n,v,{raisedBy:"effect"})}finally{await Promise.all(g),Kn(m,tj),u.pending.delete(m)}},l=aj(t);return{middleware:u=>f=>d=>{if(!Cf(d))return f(d);if(C0.match(d))return a(d.payload);if(oj.match(d)){l();return}if(k0.match(d))return o(d.payload);let h=u.getState();const m=()=>{if(h===S0)throw new Error(process.env.NODE_ENV==="production"?be(23):`${ja}: getOriginalState can only be called synchronously`);return h};let p;try{if(p=f(d),t.size>0){const g=u.getState(),v=Array.from(t.values());for(const b of v){let x=!1;try{x=b.predicate(d,g,h)}catch(S){x=!1,P0(n,S,{raisedBy:"predicate"})}x&&s(b,d,u,m)}}}finally{h=S0}return p},startListening:a,stopListening:o,clearListeners:l}};function be(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var lj={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},T0=qt({name:"chartLayout",initialState:lj,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:cj,setLayout:uj,setChartSize:fj,setScale:dj}=T0.actions,hj=T0.reducer;function M0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M0(Object(r),!0).forEach(function(n){pj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pj(e,t,r){return(t=mj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mj(e){var t=gj(e,"string");return typeof t=="symbol"?t:t+""}function gj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xs=Math.PI/180,vj=e=>e*180/Math.PI,it=(e,t,r,n)=>({x:e+Math.cos(-Xs*n)*r,y:t+Math.sin(-Xs*n)*r}),D0=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},yj=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},bj=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=yj({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(r-i)/o,l=Math.acos(s);return n>a&&(l=2*Math.PI-l),{radius:o,angle:vj(l),angleInRadian:l}},xj=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},wj=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},_j=(e,t)=>{var{x:r,y:n}=e,{radius:i,angle:a}=bj({x:r,y:n},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:l,endAngle:c}=xj(t),u=a,f;if(l<=c){for(;u>c;)u-=360;for(;u<l;)u+=360;f=u>=l&&u<=c}else{for(;u>l;)u-=360;for(;u<c;)u+=360;f=u>=c&&u<=l}return f?j0(j0({},t),{},{radius:i,angle:wj(u,t)}):null};function N0(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function I0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I0(Object(r),!0).forEach(function(n){Sj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sj(e,t,r){return(t=Oj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oj(e){var t=Aj(e,"string");return typeof t=="symbol"?t:t+""}function Aj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Re(e,t,r){return ze(e)||ze(t)?r:Or(t)?Fn(e,t,r):typeof t=="function"?t(e):r}var Ej=(e,t,r,n,i)=>{var a,o=-1,s=(a=t?.length)!==null&&a!==void 0?a:0;if(s<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<s;l++){var c=l>0?r[l-1].coordinate:r[s-1].coordinate,u=r[l].coordinate,f=l>=s-1?r[0].coordinate:r[l+1].coordinate,d=void 0;if(pt(u-c)!==pt(f-u)){var h=[];if(pt(f-u)===pt(i[1]-i[0])){d=f;var m=u+i[1]-i[0];h[0]=Math.min(m,(m+c)/2),h[1]=Math.max(m,(m+c)/2)}else{d=c;var p=f+i[1]-i[0];h[0]=Math.min(u,(p+u)/2),h[1]=Math.max(u,(p+u)/2)}var g=[Math.min(u,(d+u)/2),Math.max(u,(d+u)/2)];if(e>g[0]&&e<=g[1]||e>=h[0]&&e<=h[1]){({index:o}=r[l]);break}}else{var v=Math.min(c,f),b=Math.max(c,f);if(e>(v+u)/2&&e<=(b+u)/2){({index:o}=r[l]);break}}}else if(t){for(var x=0;x<s;x++)if(x===0&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x>0&&x<s-1&&e>(t[x].coordinate+t[x-1].coordinate)/2&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x===s-1&&e>(t[x].coordinate+t[x-1].coordinate)/2){({index:o}=t[x]);break}}return o},Pj=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:s}=t;if((s==="vertical"||s==="horizontal"&&o==="middle")&&a!=="center"&&X(e[a]))return or(or({},e),{},{[a]:e[a]+(n||0)});if((s==="horizontal"||s==="vertical"&&a==="center")&&o!=="middle"&&X(e[o]))return or(or({},e),{},{[o]:e[o]+(i||0)})}return e},fn=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",$0=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var i,a,o=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===r&&(a=!0),s.coordinate));return i||o.push(t),a||o.push(r),o},R0=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:f,niceTicks:d,axisType:h}=e;if(!o)return null;var m=s==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,p=i==="category"&&o.bandwidth?o.bandwidth()/m:0;if(p=h==="angleAxis"&&a&&a.length>=2?pt(a[0]-a[1])*2*p:p,f||d){var g=(f||d||[]).map((v,b)=>{var x=n?n.indexOf(v):v;return{coordinate:o(x)+p,value:v,offset:p,index:b}});return g.filter(v=>!Ut(v.coordinate))}return l&&c?c.map((v,b)=>({coordinate:o(v)+p,value:v,index:b,offset:p})):o.ticks&&u!=null?o.ticks(u).map((v,b)=>({coordinate:o(v)+p,value:v,offset:p,index:b})):o.domain().map((v,b)=>({coordinate:o(v)+p,value:n?n[v]:v,index:b,offset:p}))},L0=1e-4,Cj=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-L0,a=Math.max(n[0],n[1])+L0,o=e(t[0]),s=e(t[r-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[r-1]])}},kj=(e,t)=>{if(!t||t.length!==2||!X(t[0])||!X(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!X(e[0])||e[0]<r)&&(i[0]=r),(!X(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},Tj=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=Ut(e[o][r][1])?e[o][r][0]:e[o][r][1];s>=0?(e[o][r][0]=i,e[o][r][1]=i+s,i=e[o][r][1]):(e[o][r][0]=a,e[o][r][1]=a+s,a=e[o][r][1])}},Mj=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0;a<t;++a){var o=Ut(e[a][r][1])?e[a][r][0]:e[a][r][1];o>=0?(e[a][r][0]=i,e[a][r][1]=i+o,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},jj={sign:Tj,expand:qk,none:Mi,silhouette:Yk,wiggle:Gk,positive:Mj},Dj=(e,t,r)=>{var n=jj[r],i=Kk().keys(t).value((a,o)=>+Re(a,o,0)).order(Iu).offset(n);return i(e)};function Nj(e){return e==null?void 0:String(e)}function F0(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ze(i[t.dataKey])){var s=lv(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Re(i,ze(o)?t.dataKey:o);return ze(l)?null:t.scale(l)}var B0=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var s=Re(a,t.dataKey,t.scale.domain()[o]);return ze(s)?null:t.scale(s)-i/2+n},Ij=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},$j=e=>{var t=e.flat(2).filter(X);return[Math.min(...t),Math.max(...t)]},Rj=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Lj=(e,t,r)=>{if(e!=null)return Rj(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:o}=a,s=o.reduce((l,c)=>{var u=N0(c,t,r),f=$j(u);return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},z0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,W0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Na=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Ns(t,u=>u.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var l=i[o],c=i[o-1];a=Math.min((l.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function V0(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return or(or({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Ni(e,t){if(e)return String(e);if(typeof t=="string")return t}function Fj(e,t,r,n,i){if(r==="horizontal"||r==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return n?_j({x:e,y:t},n):null}var Bj=(e,t,r,n)=>{var i=t.find(c=>c&&c.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.y};if(e==="vertical")return{x:n.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:o}=n;return or(or(or({},n),it(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:l}=n;return or(or(or({},n),it(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{x:0,y:0}},zj=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,zr=e=>e.layout.width,Wr=e=>e.layout.height,Wj=e=>e.layout.scale,H0=e=>e.layout.margin,Zs=N(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Js=N(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),U0="data-recharts-item-index",K0="data-recharts-item-data-key",Ia=60;function q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q0(Object(r),!0).forEach(function(n){Vj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vj(e,t,r){return(t=Hj(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hj(e){var t=Uj(e,"string");return typeof t=="symbol"?t:t+""}function Uj(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kj=e=>e.brush.height;function qj(e){var t=Js(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Ia;return r+i}return r},0)}function Yj(e){var t=Js(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Ia;return r+i}return r},0)}function Gj(e){var t=Zs(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function Xj(e){var t=Zs(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var st=N([zr,Wr,H0,Kj,qj,Yj,Gj,Xj,Hy,tM],(e,t,r,n,i,a,o,s,l,c)=>{var u={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+s},d=Qs(Qs({},f),u),h=d.bottom;d.bottom+=n,d=Pj(d,l,c);var m=e-d.left-d.right,p=t-d.top-d.bottom;return Qs(Qs({brushBottom:h},d),{},{width:Math.max(m,0),height:Math.max(p,0)})}),Zj=N(st,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Hf=N(zr,Wr,(e,t)=>({x:0,y:0,width:e,height:t})),Jj=k.createContext(null),Nt=()=>k.useContext(Jj)!=null,el=e=>e.brush,tl=N([el,st,H0],(e,t,r)=>({height:e.height,x:X(e.x)?e.x:t.left,y:X(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:X(e.width)?e.width:t.width})),Uf=()=>{var e,t=Nt(),r=G(Zj),n=G(tl),i=(e=G(el))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},Qj={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Y0=()=>{var e;return(e=G(st))!==null&&e!==void 0?e:Qj},G0=()=>G(zr),X0=()=>G(Wr),ue=e=>e.layout.layoutType,rl=()=>G(ue),eD={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Z0=qt({name:"legend",initialState:eD,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var r=Br(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)}}}),{setLegendSize:EU,setLegendSettings:PU,addLegendPayload:J0,removeLegendPayload:Q0}=Z0.actions,tD=Z0.reducer;function Kf(){return Kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kf.apply(null,arguments)}function eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eb(Object(r),!0).forEach(function(n){rD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rD(e,t,r){return(t=nD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nD(e){var t=iD(e,"string");return typeof t=="symbol"?t:t+""}function iD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aD(e){return Array.isArray(e)&&Or(e[0])&&Or(e[1])?e.join(" ~ "):e}var oD=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:o,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:f,accessibilityLayer:d=!1}=e,h=()=>{if(a&&a.length){var w={padding:0,margin:0},O=(s?Ns(a,s):a).map((E,C)=>{if(E.type==="none")return null;var M=E.formatter||o||aD,{value:$,name:j}=E,_=$,I=j;if(M){var D=M($,j,E,C,a);if(Array.isArray(D))[_,I]=D;else if(D!=null)_=D;else return null}var L=qf({display:"block",paddingTop:4,paddingBottom:4,color:E.color||"#000"},n);return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:L},Or(I)?A.createElement("span",{className:"recharts-tooltip-item-name"},I):null,Or(I)?A.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,A.createElement("span",{className:"recharts-tooltip-item-value"},_),A.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:w},O)}return null},m=qf({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),p=qf({margin:0},i),g=!ze(u),v=g?u:"",b=de("recharts-default-tooltip",l),x=de("recharts-tooltip-label",c);g&&f&&a!==void 0&&a!==null&&(v=f(u,a));var S=d?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",Kf({className:b,style:m},S),A.createElement("p",{className:x,style:p},A.isValidElement(v)?v:"".concat(v)),h())},$a="recharts-tooltip-wrapper",sD={visibility:"hidden"};function lD(e){var{coordinate:t,translateX:r,translateY:n}=e;return de($a,{["".concat($a,"-right")]:X(r)&&t&&X(t.x)&&r>=t.x,["".concat($a,"-left")]:X(r)&&t&&X(t.x)&&r<t.x,["".concat($a,"-bottom")]:X(n)&&t&&X(t.y)&&n>=t.y,["".concat($a,"-top")]:X(n)&&t&&X(t.y)&&n<t.y})}function tb(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:o,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(a&&X(a[n]))return a[n];var u=r[n]-s-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?u:f;var d=l[n];if(d==null)return 0;if(o[n]){var h=u,m=d;return h<m?Math.max(f,d):Math.max(u,d)}if(c==null)return 0;var p=f+s,g=d+c;return p>g?Math.max(u,d):Math.max(f,d)}function cD(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function uD(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:o,useTranslate3d:s,viewBox:l}=e,c,u,f;return o.height>0&&o.width>0&&r?(u=tb({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=tb({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=cD({translateX:u,translateY:f,useTranslate3d:s})):c=sD,{cssProperties:c,cssClasses:lD({translateX:u,translateY:f,coordinate:r})}}function rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rb(Object(r),!0).forEach(function(n){Yf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yf(e,t,r){return(t=fD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fD(e){var t=dD(e,"string");return typeof t=="symbol"?t:t+""}function dD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class hD extends k.PureComponent{constructor(){super(...arguments),Yf(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Yf(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:o,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:f,useTranslate3d:d,viewBox:h,wrapperStyle:m,lastBoundingBox:p,innerRef:g,hasPortalFromProps:v}=this.props,{cssClasses:b,cssProperties:x}=uD({allowEscapeViewBox:r,coordinate:o,offsetTopLeft:c,position:u,reverseDirection:f,tooltipBox:{height:p.height,width:p.width},useTranslate3d:d,viewBox:h}),S=v?{}:nl(nl({transition:l&&t?"transform ".concat(n,"ms ").concat(i):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),w=nl(nl({},S),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},m);return A.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:b,style:w,ref:g},a)}}var pD=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),dn={devToolsEnabled:!1,isSsr:pD()},nb=()=>G(e=>e.rootProps.accessibilityLayer);function Yt(e){return Number.isFinite(e)}function Ii(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gf.apply(null,arguments)}function ib(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ab(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ib(Object(r),!0).forEach(function(n){mD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mD(e,t,r){return(t=gD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gD(e){var t=vD(e,"string");return typeof t=="symbol"?t:t+""}function vD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ob={curveBasisClosed:Ik,curveBasisOpen:$k,curveBasis:Nk,curveBumpX:xk,curveBumpY:wk,curveLinearClosed:Rk,curveLinear:Os,curveMonotoneX:Lk,curveMonotoneY:Fk,curveNatural:Bk,curveStep:zk,curveStepAfter:Vk,curveStepBefore:Wk},il=e=>Yt(e.x)&&Yt(e.y),Ra=e=>e.x,La=e=>e.y,yD=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Pa(e));return(r==="curveMonotone"||r==="curveBump")&&t?ob["".concat(r).concat(t==="vertical"?"Y":"X")]:ob[r]||Os},bD=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,o=yD(t,i),s=a?r.filter(il):r,l;if(Array.isArray(n)){var c=a?n.filter(f=>il(f)):n,u=s.map((f,d)=>ab(ab({},f),{},{base:c[d]}));return i==="vertical"?l=As().y(La).x1(Ra).x0(f=>f.base.x):l=As().x(Ra).y1(La).y0(f=>f.base.y),l.defined(il).curve(o),l(u)}return i==="vertical"&&X(n)?l=As().y(La).x1(Ra).x0(n):X(n)?l=As().x(Ra).y1(La).y0(n):l=wv().x(Ra).y(La),l.defined(il).curve(o),l(s)},Xf=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?bD(e):n;return A.createElement("path",Gf({},Ar(e),_u(e),{className:de("recharts-curve",t),d:a===null?void 0:a,ref:i}))},xD=["x","y","top","left","width","height","className"];function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zf.apply(null,arguments)}function sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(r),!0).forEach(function(n){_D(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _D(e,t,r){return(t=SD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SD(e){var t=OD(e,"string");return typeof t=="symbol"?t:t+""}function OD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AD(e,t){if(e==null)return{};var r,n,i=ED(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ED(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var PD=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),CD=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:s}=e,l=AD(e,xD),c=wD({x:t,y:r,top:n,left:i,width:a,height:o},l);return!X(t)||!X(r)||!X(a)||!X(o)||!X(n)||!X(i)?null:A.createElement("path",Zf({},Ue(c,!0),{className:de("recharts-cross",s),d:PD(t,r,a,o,n,i)}))};function kD(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lb(Object(r),!0).forEach(function(n){MD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MD(e,t,r){return(t=jD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jD(e){var t=DD(e,"string");return typeof t=="symbol"?t:t+""}function DD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _t(e,t){var r=TD({},e),n=t,i=Object.keys(t),a=i.reduce((o,s)=>(o[s]===void 0&&n[s]!==void 0&&(o[s]=n[s]),o),r);return a}function ND(){}function cb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ub(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cb(Object(r),!0).forEach(function(n){ID(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ID(e,t,r){return(t=$D(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $D(e){var t=RD(e,"string");return typeof t=="symbol"?t:t+""}function RD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LD=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),fb=(e,t,r)=>e.map(n=>"".concat(LD(n)," ").concat(t,"ms ").concat(r)).join(","),FD=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Fa=(e,t)=>Object.keys(t).reduce((r,n)=>ub(ub({},r),{},{[n]:e(n,t[n])}),{});function db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?db(Object(r),!0).forEach(function(n){BD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BD(e,t,r){return(t=zD(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zD(e){var t=WD(e,"string");return typeof t=="symbol"?t:t+""}function WD(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var al=(e,t,r)=>e+(t-e)*r,Jf=e=>{var{from:t,to:r}=e;return t!==r},hb=(e,t,r)=>{var n=Fa((i,a)=>{if(Jf(a)){var[o,s]=e(a.from,a.to,a.velocity);return St(St({},a),{},{from:o,velocity:s})}return a},t);return r<1?Fa((i,a)=>Jf(a)?St(St({},a),{},{velocity:al(a.velocity,n[i].velocity,r),from:al(a.from,n[i].from,r)}):a,t):hb(e,n,r-1)};function VD(e,t,r,n,i,a){var o,s=n.reduce((d,h)=>St(St({},d),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>Fa((d,h)=>h.from,s),c=()=>!Object.values(s).filter(Jf).length,u=null,f=d=>{o||(o=d);var h=d-o,m=h/r.dt;s=hb(r,s,m),i(St(St(St({},e),t),l())),o=d,c()||(u=a.setTimeout(f))};return()=>(u=a.setTimeout(f),()=>{u()})}function HD(e,t,r,n,i,a,o){var s=null,l=i.reduce((f,d)=>St(St({},f),{},{[d]:[e[d],t[d]]}),{}),c,u=f=>{c||(c=f);var d=(f-c)/n,h=Fa((p,g)=>al(...g,r(d)),l);if(a(St(St(St({},e),t),h)),d<1)s=o.setTimeout(u);else{var m=Fa((p,g)=>al(...g,r(1)),l);a(St(St(St({},e),t),m))}};return()=>(s=o.setTimeout(u),()=>{s()})}const UD=(e,t,r,n,i,a)=>{var o=FD(e,t);return r.isStepper===!0?VD(e,t,r,o,i,a):HD(e,t,r,n,o,i,a)};var ol=1e-4,pb=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],mb=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),gb=(e,t)=>r=>{var n=pb(e,t);return mb(n,r)},KD=(e,t)=>r=>{var n=pb(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return mb(i,r)},vb=function(){for(var t,r,n,i,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(o.length===1)switch(o[0]){case"linear":[t,n,r,i]=[0,0,1,1];break;case"ease":[t,n,r,i]=[.25,.1,.25,1];break;case"ease-in":[t,n,r,i]=[.42,0,1,1];break;case"ease-out":[t,n,r,i]=[.42,0,.58,1];break;case"ease-in-out":[t,n,r,i]=[0,0,.58,1];break;default:{var l=o[0].split("(");l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4&&([t,n,r,i]=l[1].split(")")[0].split(",").map(m=>parseFloat(m)))}}else o.length===4&&([t,n,r,i]=o);var c=gb(t,r),u=gb(n,i),f=KD(t,r),d=m=>m>1?1:m<0?0:m,h=m=>{for(var p=m>1?1:m,g=p,v=0;v<8;++v){var b=c(g)-p,x=f(g);if(Math.abs(b-p)<ol||x<ol)return u(g);g=d(g-b/x)}return u(g)};return h.isStepper=!1,h},qD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,s,l)=>{var c=-(o-s)*r,u=l*n,f=l+(c-u)*i/1e3,d=l*i/1e3+o;return Math.abs(d-s)<ol&&Math.abs(f)<ol?[s,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},YD=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return vb(e);case"spring":return qD();default:if(e.split("(")[0]==="cubic-bezier")return vb(e)}return typeof e=="function"?e:null};function GD(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,[l,...c]=s;if(typeof l=="number"){i=e.setTimeout(a.bind(null,c),l);return}a(l),i=e.setTimeout(a.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class XD{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}function ZD(){return GD(new XD)}var JD=k.createContext(ZD);function QD(e,t){var r=k.useContext(JD);return k.useMemo(()=>t??r(e),[e,t,r])}var eN={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},yb={t:0},Qf={t:1};function Ba(e){var t=_t(e,eN),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=QD(t.animationId,t.animationManager),[f,d]=k.useState(r?yb:Qf),h=k.useRef(null);return k.useEffect(()=>{r||d(Qf)},[r]),k.useEffect(()=>{if(!r||!n)return ND;var m=UD(yb,Qf,YD(a),i,d,u.getTimeoutController()),p=()=>{h.current=m()};return u.start([l,o,p,i,s]),()=>{u.stop(),h.current&&h.current(),s()}},[r,n,i,a,o,l,s,u]),c(f.t)}function za(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=k.useRef(Ea(t)),n=k.useRef(e);return n.current!==e&&(r.current=Ea(t),n.current=e),r.current}function bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(r),!0).forEach(function(n){tN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tN(e,t,r){return(t=rN(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rN(e){var t=nN(e,"string");return typeof t=="symbol"?t:t+""}function nN(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sl.apply(null,arguments)}var wb=(e,t,r,n,i)=>{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),o=n>=0?1:-1,s=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0,c;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],f=0,d=4;f<d;f++)u[f]=i[f]>a?a:i[f];c="M".concat(e,",").concat(t+o*u[0]),u[0]>0&&(c+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+s*u[0],",").concat(t)),c+="L ".concat(e+r-s*u[1],",").concat(t),u[1]>0&&(c+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,`,
151
151
  `).concat(e+r,",").concat(t+o*u[1])),c+="L ".concat(e+r,",").concat(t+n-o*u[2]),u[2]>0&&(c+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,`,
152
152
  `).concat(e+r-s*u[2],",").concat(t+n)),c+="L ".concat(e+s*u[3],",").concat(t+n),u[3]>0&&(c+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,`,
153
153
  `).concat(e,",").concat(t+n-o*u[3])),c+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);c="M ".concat(e,",").concat(t+o*h,`
@@ -157,30 +157,30 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
157
157
  L `).concat(e+r,",").concat(t+n-o*h,`
158
158
  A `).concat(h,",").concat(h,",0,0,").concat(l,",").concat(e+r-s*h,",").concat(t+n,`
159
159
  L `).concat(e+s*h,",").concat(t+n,`
160
- A `).concat(h,",").concat(h,",0,0,").concat(l,",").concat(e,",").concat(t+n-o*h," Z")}else c="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return c},nN={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},wb=e=>{var t=_t(e,nN),r=k.useRef(null),[n,i]=k.useState(-1);k.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var D=r.current.getTotalLength();D&&i(D)}catch{}},[]);var{x:a,y:o,width:s,height:l,radius:c,className:u}=t,{animationEasing:f,animationDuration:d,animationBegin:h,isAnimationActive:m,isUpdateAnimationActive:p}=t,g=k.useRef(s),v=k.useRef(l),b=k.useRef(a),x=k.useRef(o),S=k.useMemo(()=>({x:a,y:o,width:s,height:l,radius:c}),[a,o,s,l,c]),w=Ba(S,"rectangle-");if(a!==+a||o!==+o||s!==+s||l!==+l||s===0||l===0)return null;var O=de("recharts-rectangle",u);if(!p)return A.createElement("path",ol({},Ue(t,!0),{className:O,d:xb(a,o,s,l,c)}));var E=g.current,C=v.current,M=b.current,$=x.current,j="0px ".concat(n===-1?1:n,"px"),_="".concat(n,"px 0px"),I=ub(["strokeDasharray"],d,typeof f=="string"?f:void 0);return A.createElement(Fa,{animationId:w,key:w,canBegin:n>0,duration:d,easing:f,isActive:p,begin:h},D=>{var L=Ye(E,s,D),W=Ye(C,l,D),H=Ye(M,a,D),te=Ye($,o,D);r.current&&(g.current=L,v.current=W,b.current=H,x.current=te);var Q;return m?D>0?Q={transition:I,strokeDasharray:_}:Q={strokeDasharray:j}:Q={strokeDasharray:_},A.createElement("path",ol({},Ue(t,!0),{className:O,d:xb(H,te,L,W,c),ref:r,style:bb(bb({},Q),t.style)}))})};function _b(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=it(t,r,n,i),s=it(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Jf(){return Jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jf.apply(null,arguments)}var iN=(e,t)=>{var r=pt(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},sl=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:l}=e,c=s*(o?1:-1)+n,u=Math.asin(s/c)/Gs,f=l?i:i+a*u,d=it(t,r,c,f),h=it(t,r,n,f),m=l?i-a*u:i,p=it(t,r,c*Math.cos(u*Gs),m);return{center:d,circleTangency:h,lineTangency:p,theta:u}},Sb=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,s=iN(a,o),l=a+s,c=it(t,r,i,a),u=it(t,r,i,l),f="M ".concat(c.x,",").concat(c.y,`
160
+ A `).concat(h,",").concat(h,",0,0,").concat(l,",").concat(e,",").concat(t+n-o*h," Z")}else c="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return c},iN={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},_b=e=>{var t=_t(e,iN),r=k.useRef(null),[n,i]=k.useState(-1);k.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var D=r.current.getTotalLength();D&&i(D)}catch{}},[]);var{x:a,y:o,width:s,height:l,radius:c,className:u}=t,{animationEasing:f,animationDuration:d,animationBegin:h,isAnimationActive:m,isUpdateAnimationActive:p}=t,g=k.useRef(s),v=k.useRef(l),b=k.useRef(a),x=k.useRef(o),S=k.useMemo(()=>({x:a,y:o,width:s,height:l,radius:c}),[a,o,s,l,c]),w=za(S,"rectangle-");if(a!==+a||o!==+o||s!==+s||l!==+l||s===0||l===0)return null;var O=de("recharts-rectangle",u);if(!p)return A.createElement("path",sl({},Ue(t,!0),{className:O,d:wb(a,o,s,l,c)}));var E=g.current,C=v.current,M=b.current,$=x.current,j="0px ".concat(n===-1?1:n,"px"),_="".concat(n,"px 0px"),I=fb(["strokeDasharray"],d,typeof f=="string"?f:void 0);return A.createElement(Ba,{animationId:w,key:w,canBegin:n>0,duration:d,easing:f,isActive:p,begin:h},D=>{var L=Ye(E,s,D),W=Ye(C,l,D),H=Ye(M,a,D),te=Ye($,o,D);r.current&&(g.current=L,v.current=W,b.current=H,x.current=te);var Q;return m?D>0?Q={transition:I,strokeDasharray:_}:Q={strokeDasharray:j}:Q={strokeDasharray:_},A.createElement("path",sl({},Ue(t,!0),{className:O,d:wb(H,te,L,W,c),ref:r,style:xb(xb({},Q),t.style)}))})};function Sb(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=it(t,r,n,i),s=it(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ed.apply(null,arguments)}var aN=(e,t)=>{var r=pt(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},ll=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:l}=e,c=s*(o?1:-1)+n,u=Math.asin(s/c)/Xs,f=l?i:i+a*u,d=it(t,r,c,f),h=it(t,r,n,f),m=l?i-a*u:i,p=it(t,r,c*Math.cos(u*Xs),m);return{center:d,circleTangency:h,lineTangency:p,theta:u}},Ob=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,s=aN(a,o),l=a+s,c=it(t,r,i,a),u=it(t,r,i,l),f="M ".concat(c.x,",").concat(c.y,`
161
161
  A `).concat(i,",").concat(i,`,0,
162
162
  `).concat(+(Math.abs(s)>180),",").concat(+(a>l),`,
163
163
  `).concat(u.x,",").concat(u.y,`
164
164
  `);if(n>0){var d=it(t,r,n,a),h=it(t,r,n,l);f+="L ".concat(h.x,",").concat(h.y,`
165
165
  A `).concat(n,",").concat(n,`,0,
166
166
  `).concat(+(Math.abs(s)>180),",").concat(+(a<=l),`,
167
- `).concat(d.x,",").concat(d.y," Z")}else f+="L ".concat(t,",").concat(r," Z");return f},aN=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=pt(c-l),{circleTangency:f,lineTangency:d,theta:h}=sl({cx:t,cy:r,radius:i,angle:l,sign:u,cornerRadius:a,cornerIsExternal:s}),{circleTangency:m,lineTangency:p,theta:g}=sl({cx:t,cy:r,radius:i,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:s}),v=s?Math.abs(l-c):Math.abs(l-c)-h-g;if(v<0)return o?"M ".concat(d.x,",").concat(d.y,`
167
+ `).concat(d.x,",").concat(d.y," Z")}else f+="L ".concat(t,",").concat(r," Z");return f},oN=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=pt(c-l),{circleTangency:f,lineTangency:d,theta:h}=ll({cx:t,cy:r,radius:i,angle:l,sign:u,cornerRadius:a,cornerIsExternal:s}),{circleTangency:m,lineTangency:p,theta:g}=ll({cx:t,cy:r,radius:i,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:s}),v=s?Math.abs(l-c):Math.abs(l-c)-h-g;if(v<0)return o?"M ".concat(d.x,",").concat(d.y,`
168
168
  a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
169
169
  a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
170
- `):Sb({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:c});var b="M ".concat(d.x,",").concat(d.y,`
170
+ `):Ob({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:c});var b="M ".concat(d.x,",").concat(d.y,`
171
171
  A`).concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(f.x,",").concat(f.y,`
172
172
  A`).concat(i,",").concat(i,",0,").concat(+(v>180),",").concat(+(u<0),",").concat(m.x,",").concat(m.y,`
173
173
  A`).concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,`
174
- `);if(n>0){var{circleTangency:x,lineTangency:S,theta:w}=sl({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),{circleTangency:O,lineTangency:E,theta:C}=sl({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),M=s?Math.abs(l-c):Math.abs(l-c)-w-C;if(M<0&&a===0)return"".concat(b,"L").concat(t,",").concat(r,"Z");b+="L".concat(E.x,",").concat(E.y,`
174
+ `);if(n>0){var{circleTangency:x,lineTangency:S,theta:w}=ll({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),{circleTangency:O,lineTangency:E,theta:C}=ll({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),M=s?Math.abs(l-c):Math.abs(l-c)-w-C;if(M<0&&a===0)return"".concat(b,"L").concat(t,",").concat(r,"Z");b+="L".concat(E.x,",").concat(E.y,`
175
175
  A`).concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(O.x,",").concat(O.y,`
176
176
  A`).concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(u>0),",").concat(x.x,",").concat(x.y,`
177
- A`).concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"Z")}else b+="L".concat(t,",").concat(r,"Z");return b},oN={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Ob=e=>{var t=_t(e,oN),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:f}=t;if(a<i||c===u)return null;var d=de("recharts-sector",f),h=a-i,m=At(o,h,0,!0),p;return m>0&&Math.abs(c-u)<360?p=aN({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):p=Sb({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:u}),A.createElement("path",Jf({},Ue(t,!0),{className:d,d:p}))};function sN(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:s,cy:l,innerRadius:c,outerRadius:u,angle:f}=t,d=it(s,l,c,f),h=it(s,l,u,f);n=d.x,i=d.y,a=h.x,o=h.y}else return _b(t);return[{x:n,y:i},{x:a,y:o}]}var Qf={},ed={},td={},Ab;function lN(){return Ab||(Ab=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Iy();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(td)),td}var Eb;function cN(){return Eb||(Eb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lN();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(ed)),ed}var Pb;function uN(){return Pb||(Pb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=By(),r=cN();function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const s=Math.max(Math.ceil((a-i)/(o||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=i,i+=o;return l}e.range=n})(Qf)),Qf}var rd,Cb;function fN(){return Cb||(Cb=1,rd=uN().range),rd}var dN=fN();const kb=Ir(dN);function hn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hN(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nd(e){let t,r,n;e.length!==2?(t=hn,r=(s,l)=>hn(e(s),l),n=(s,l)=>e(s)-l):(t=e===hn||e===hN?e:pN,r=e,n=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<0?c=f+1:u=f}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(s,l,c=0,u=s.length){const f=i(s,l,c,u-1);return f>c&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function pN(){return 0}function Tb(e){return e===null?NaN:+e}function*mN(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const za=nd(hn).right;nd(Tb).center;class Mb extends Map{constructor(t,r=yN){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(jb(this,t))}has(t){return super.has(jb(this,t))}set(t,r){return super.set(gN(this,t),r)}delete(t){return super.delete(vN(this,t))}}function jb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function gN({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function vN({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function yN(e){return e!==null&&typeof e=="object"?e.valueOf():e}function bN(e=hn){if(e===hn)return Db;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Db(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const xN=Math.sqrt(50),wN=Math.sqrt(10),_N=Math.sqrt(2);function ll(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=xN?10:a>=wN?5:a>=_N?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?ll(e,t,r*2):[s,l,c]}function id(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?ll(t,e,r):ll(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function ad(e,t,r){return t=+t,e=+e,r=+r,ll(e,t,r)[2]}function od(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?ad(t,e,r):ad(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Nb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Ib(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function $b(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Db:bN(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/l+d)),m=Math.min(n,Math.floor(t+(l-c)*f/l+d));$b(e,t,h,m,i)}const a=e[t];let o=r,s=n;for(Wa(e,r,t),i(e[n],a)>0&&Wa(e,r,n);o<s;){for(Wa(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Wa(e,r,s):(++s,Wa(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Wa(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function SN(e,t,r){if(e=Float64Array.from(mN(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Ib(e);if(t>=1)return Nb(e);var n,i=(n-1)*t,a=Math.floor(i),o=Nb($b(e,a).subarray(0,a+1)),s=Ib(e.subarray(a+1));return o+(s-o)*(i-a)}}function ON(e,t,r=Tb){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function AN(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function sr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Vr(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 sd=Symbol("implicit");function ld(){var e=new Mb,t=[],r=[],n=sd;function i(a){let o=e.get(a);if(o===void 0){if(n!==sd)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Mb;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ld(t,r).unknown(n)},sr.apply(i,arguments),i}function cd(){var e=ld().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function f(){var d=t().length,h=i<n,m=h?i:n,p=h?n:i;a=(p-m)/Math.max(1,d-l+c*2),s&&(a=Math.floor(a)),m+=(p-m-a*(d-l))*u,o=a*(1-l),s&&(m=Math.round(m),o=Math.round(o));var g=AN(d).map(function(v){return m+a*v});return r(h?g.reverse():g)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),f()):u},e.copy=function(){return cd(t(),[n,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},sr.apply(f(),arguments)}function Rb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Rb(t())},e}function EN(){return Rb(cd.apply(null,arguments).paddingInner(1))}function ud(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Lb(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Va(){}var Ha=.7,cl=1/Ha,$i="\\s*([+-]?\\d+)\\s*",Ua="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",PN=/^#([0-9a-f]{3,8})$/,CN=new RegExp(`^rgb\\(${$i},${$i},${$i}\\)$`),kN=new RegExp(`^rgb\\(${Er},${Er},${Er}\\)$`),TN=new RegExp(`^rgba\\(${$i},${$i},${$i},${Ua}\\)$`),MN=new RegExp(`^rgba\\(${Er},${Er},${Er},${Ua}\\)$`),jN=new RegExp(`^hsl\\(${Ua},${Er},${Er}\\)$`),DN=new RegExp(`^hsla\\(${Ua},${Er},${Er},${Ua}\\)$`),Fb={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};ud(Va,Ka,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bb,formatHex:Bb,formatHex8:NN,formatHsl:IN,formatRgb:zb,toString:zb});function Bb(){return this.rgb().formatHex()}function NN(){return this.rgb().formatHex8()}function IN(){return Kb(this).formatHsl()}function zb(){return this.rgb().formatRgb()}function Ka(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=PN.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Wb(t):r===3?new It(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ul(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ul(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=CN.exec(e))?new It(t[1],t[2],t[3],1):(t=kN.exec(e))?new It(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=TN.exec(e))?ul(t[1],t[2],t[3],t[4]):(t=MN.exec(e))?ul(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jN.exec(e))?Ub(t[1],t[2]/100,t[3]/100,1):(t=DN.exec(e))?Ub(t[1],t[2]/100,t[3]/100,t[4]):Fb.hasOwnProperty(e)?Wb(Fb[e]):e==="transparent"?new It(NaN,NaN,NaN,0):null}function Wb(e){return new It(e>>16&255,e>>8&255,e&255,1)}function ul(e,t,r,n){return n<=0&&(e=t=r=NaN),new It(e,t,r,n)}function $N(e){return e instanceof Va||(e=Ka(e)),e?(e=e.rgb(),new It(e.r,e.g,e.b,e.opacity)):new It}function fd(e,t,r,n){return arguments.length===1?$N(e):new It(e,t,r,n??1)}function It(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ud(It,fd,Lb(Va,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new It(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ha:Math.pow(Ha,e),new It(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new It(qn(this.r),qn(this.g),qn(this.b),fl(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:Vb,formatHex:Vb,formatHex8:RN,formatRgb:Hb,toString:Hb}));function Vb(){return`#${Yn(this.r)}${Yn(this.g)}${Yn(this.b)}`}function RN(){return`#${Yn(this.r)}${Yn(this.g)}${Yn(this.b)}${Yn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Hb(){const e=fl(this.opacity);return`${e===1?"rgb(":"rgba("}${qn(this.r)}, ${qn(this.g)}, ${qn(this.b)}${e===1?")":`, ${e})`}`}function fl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yn(e){return e=qn(e),(e<16?"0":"")+e.toString(16)}function Ub(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new mr(e,t,r,n)}function Kb(e){if(e instanceof mr)return new mr(e.h,e.s,e.l,e.opacity);if(e instanceof Va||(e=Ka(e)),!e)return new mr;if(e instanceof mr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new mr(o,s,l,e.opacity)}function LN(e,t,r,n){return arguments.length===1?Kb(e):new mr(e,t,r,n??1)}function mr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ud(mr,LN,Lb(Va,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ha:Math.pow(Ha,e),new mr(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new It(dd(e>=240?e-240:e+120,i,n),dd(e,i,n),dd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new mr(qb(this.h),dl(this.s),dl(this.l),fl(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=fl(this.opacity);return`${e===1?"hsl(":"hsla("}${qb(this.h)}, ${dl(this.s)*100}%, ${dl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function qb(e){return e=(e||0)%360,e<0?e+360:e}function dl(e){return Math.max(0,Math.min(1,e||0))}function dd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const hd=e=>()=>e;function FN(e,t){return function(r){return e+r*t}}function BN(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function zN(e){return(e=+e)==1?Yb:function(t,r){return r-t?BN(t,r,e):hd(isNaN(t)?r:t)}}function Yb(e,t){var r=t-e;return r?FN(e,r):hd(isNaN(e)?t:e)}const Gb=(function e(t){var r=zN(t);function n(i,a){var o=r((i=fd(i)).r,(a=fd(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),c=Yb(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return n.gamma=e,n})(1);function WN(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function VN(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function HN(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Ri(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function UN(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function hl(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function KN(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Ri(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var pd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,md=new RegExp(pd.source,"g");function qN(e){return function(){return e}}function YN(e){return function(t){return e(t)+""}}function GN(e,t){var r=pd.lastIndex=md.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=pd.exec(e))&&(i=md.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:hl(n,i)})),r=md.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?YN(l[0].x):qN(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)s[(f=l[u]).i]=f.x(c);return s.join("")})}function Ri(e,t){var r=typeof t,n;return t==null||r==="boolean"?hd(t):(r==="number"?hl:r==="string"?(n=Ka(t))?(t=n,Gb):GN:t instanceof Ka?Gb:t instanceof Date?UN:VN(t)?WN:Array.isArray(t)?HN:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?KN:hl)(e,t)}function gd(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function XN(e,t){t===void 0&&(t=e,e=Ri);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function ZN(e){return function(){return e}}function pl(e){return+e}var Xb=[0,1];function kt(e){return e}function vd(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:ZN(isNaN(t)?NaN:.5)}function JN(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function QN(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=vd(i,n),a=r(o,a)):(n=vd(n,i),a=r(a,o)),function(s){return a(n(s))}}function e5(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=vd(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=za(e,s,1,n)-1;return a[l](i[l](s))}}function qa(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ml(){var e=Xb,t=Xb,r=Ri,n,i,a,o=kt,s,l,c;function u(){var d=Math.min(e.length,t.length);return o!==kt&&(o=JN(e[0],e[d-1])),s=d>2?e5:QN,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((c||(c=s(t,e.map(n),hl)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,pl),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=gd,u()},f.clamp=function(d){return arguments.length?(o=d?!0:kt,u()):o!==kt},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,u()}}function yd(){return ml()(kt,kt)}function t5(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gl(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Li(e){return e=gl(Math.abs(e)),e?e[1]:NaN}function r5(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function n5(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var i5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ya(e){if(!(t=i5.exec(e)))throw new Error("invalid format: "+e);var t;return new bd({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]})}Ya.prototype=bd.prototype;function bd(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+""}bd.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 a5(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Zb;function o5(e,t){var r=gl(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Zb=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+gl(e,Math.max(0,t+a-1))[0]}function Jb(e,t){var r=gl(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Qb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:t5,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)=>Jb(e*100,t),r:Jb,s:o5,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ex(e){return e}var tx=Array.prototype.map,rx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function s5(e){var t=e.grouping===void 0||e.thousands===void 0?ex:r5(tx.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?ex:n5(tx.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=Ya(f);var d=f.fill,h=f.align,m=f.sign,p=f.symbol,g=f.zero,v=f.width,b=f.comma,x=f.precision,S=f.trim,w=f.type;w==="n"?(b=!0,w="g"):Qb[w]||(x===void 0&&(x=12),S=!0,w="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var O=p==="$"?r:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",E=p==="$"?n:/[%p]/.test(w)?o:"",C=Qb[w],M=/[defgprs%]/.test(w);x=x===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function $(j){var _=O,I=E,D,L,W;if(w==="c")I=C(j)+I,j="";else{j=+j;var H=j<0||1/j<0;if(j=isNaN(j)?l:C(Math.abs(j),x),S&&(j=a5(j)),H&&+j==0&&m!=="+"&&(H=!1),_=(H?m==="("?m:s:m==="-"||m==="("?"":m)+_,I=(w==="s"?rx[8+Zb/3]:"")+I+(H&&m==="("?")":""),M){for(D=-1,L=j.length;++D<L;)if(W=j.charCodeAt(D),48>W||W>57){I=(W===46?i+j.slice(D+1):j.slice(D))+I,j=j.slice(0,D);break}}}b&&!g&&(j=t(j,1/0));var te=_.length+j.length+I.length,Q=te<v?new Array(v-te+1).join(d):"";switch(b&&g&&(j=t(Q+j,Q.length?v-I.length:1/0),Q=""),h){case"<":j=_+j+I+Q;break;case"=":j=_+Q+j+I;break;case"^":j=Q.slice(0,te=Q.length>>1)+_+j+I+Q.slice(te);break;default:j=Q+_+j+I;break}return a(j)}return $.toString=function(){return f+""},$}function u(f,d){var h=c((f=Ya(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Li(d)/3)))*3,p=Math.pow(10,-m),g=rx[8+m/3];return function(v){return h(p*v)+g}}return{format:c,formatPrefix:u}}var vl,xd,nx;l5({thousands:",",grouping:[3],currency:["$",""]});function l5(e){return vl=s5(e),xd=vl.format,nx=vl.formatPrefix,vl}function c5(e){return Math.max(0,-Li(Math.abs(e)))}function u5(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Li(t)/3)))*3-Li(Math.abs(e)))}function f5(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Li(t)-Li(e))+1}function ix(e,t,r,n){var i=od(e,t,r),a;switch(n=Ya(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=u5(i,o))&&(n.precision=a),nx(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=f5(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=c5(i))&&(n.precision=a-(n.type==="%")*2);break}}return xd(n)}function pn(e){var t=e.domain;return e.ticks=function(r){var n=t();return id(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ix(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=ad(o,s,r),c===l)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function ax(){var e=yd();return e.copy=function(){return qa(e,ax())},sr.apply(e,arguments),pn(e)}function ox(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,pl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return ox(e).unknown(t)},e=arguments.length?Array.from(e,pl):[0,1],pn(r)}function sx(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function lx(e){return Math.log(e)}function cx(e){return Math.exp(e)}function d5(e){return-Math.log(-e)}function h5(e){return-Math.exp(-e)}function p5(e){return isFinite(e)?+("1e"+e):e<0?0:e}function m5(e){return e===10?p5:e===Math.E?Math.exp:t=>Math.pow(e,t)}function g5(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 ux(e){return(t,r)=>-e(-t,r)}function wd(e){const t=e(lx,cx),r=t.domain;let n=10,i,a;function o(){return i=g5(n),a=m5(n),r()[0]<0?(i=ux(i),a=ux(a),e(d5,h5)):e(lx,cx),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let d=i(c),h=i(u),m,p;const g=s==null?10:+s;let v=[];if(!(n%1)&&h-d<g){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(m=1;m<n;++m)if(p=d<0?m/a(-d):m*a(d),!(p<c)){if(p>u)break;v.push(p)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(p=d>0?m/a(-d):m*a(d),!(p<c)){if(p>u)break;v.push(p)}v.length*2<g&&(v=id(c,u,g))}else v=id(d,h,Math.min(h-d,g)).map(a);return f?v.reverse():v},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ya(l)).precision==null&&(l.trim=!0),l=xd(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/a(Math.round(i(u)));return f*n<n-.5&&(f*=n),f<=c?l(u):""}},t.nice=()=>r(sx(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function fx(){const e=wd(ml()).domain([1,10]);return e.copy=()=>qa(e,fx()).base(e.base()),sr.apply(e,arguments),e}function dx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _d(e){var t=1,r=e(dx(t),hx(t));return r.constant=function(n){return arguments.length?e(dx(t=+n),hx(t)):t},pn(r)}function px(){var e=_d(ml());return e.copy=function(){return qa(e,px()).constant(e.constant())},sr.apply(e,arguments)}function mx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function v5(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function y5(e){return e<0?-e*e:e*e}function Sd(e){var t=e(kt,kt),r=1;function n(){return r===1?e(kt,kt):r===.5?e(v5,y5):e(mx(r),mx(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},pn(t)}function Od(){var e=Sd(ml());return e.copy=function(){return qa(e,Od()).exponent(e.exponent())},sr.apply(e,arguments),e}function b5(){return Od.apply(null,arguments).exponent(.5)}function gx(e){return Math.sign(e)*e*e}function x5(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function vx(){var e=yd(),t=[0,1],r=!1,n;function i(a){var o=x5(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(gx(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,pl)).map(gx)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return vx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},sr.apply(i,arguments),pn(i)}function yx(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=ON(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[za(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(hn),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return yx().domain(e).range(t).unknown(n)},sr.apply(a,arguments)}function bx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[za(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return bx().domain([e,t]).range(i).unknown(a)},sr.apply(pn(o),arguments)}function xx(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[za(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return xx().domain(e).range(t).unknown(r)},sr.apply(i,arguments)}const Ad=new Date,Ed=new Date;function lt(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>lt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Ad.setTime(+a),Ed.setTime(+o),e(Ad),e(Ed),Math.floor(r(Ad,Ed))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const yl=lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);yl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):yl),yl.range;const Hr=1e3,lr=Hr*60,Ur=lr*60,Kr=Ur*24,Pd=Kr*7,wx=Kr*30,Cd=Kr*365,Gn=lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Hr)},(e,t)=>(t-e)/Hr,e=>e.getUTCSeconds());Gn.range;const kd=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hr)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getMinutes());kd.range;const Td=lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCMinutes());Td.range;const Md=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hr-e.getMinutes()*lr)},(e,t)=>{e.setTime(+e+t*Ur)},(e,t)=>(t-e)/Ur,e=>e.getHours());Md.range;const jd=lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ur)},(e,t)=>(t-e)/Ur,e=>e.getUTCHours());jd.range;const Ga=lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lr)/Kr,e=>e.getDate()-1);Ga.range;const bl=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Kr,e=>e.getUTCDate()-1);bl.range;const _x=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Kr,e=>Math.floor(e/Kr));_x.range;function Xn(e){return lt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*lr)/Pd)}const xl=Xn(0),wl=Xn(1),w5=Xn(2),_5=Xn(3),Fi=Xn(4),S5=Xn(5),O5=Xn(6);xl.range,wl.range,w5.range,_5.range,Fi.range,S5.range,O5.range;function Zn(e){return lt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Pd)}const _l=Zn(0),Sl=Zn(1),A5=Zn(2),E5=Zn(3),Bi=Zn(4),P5=Zn(5),C5=Zn(6);_l.range,Sl.range,A5.range,E5.range,Bi.range,P5.range,C5.range;const Dd=lt(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());Dd.range;const Nd=lt(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());Nd.range;const qr=lt(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());qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}),qr.range;const Yr=lt(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());Yr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}),Yr.range;function Sx(e,t,r,n,i,a){const o=[[Gn,1,Hr],[Gn,5,5*Hr],[Gn,15,15*Hr],[Gn,30,30*Hr],[a,1,lr],[a,5,5*lr],[a,15,15*lr],[a,30,30*lr],[i,1,Ur],[i,3,3*Ur],[i,6,6*Ur],[i,12,12*Ur],[n,1,Kr],[n,2,2*Kr],[r,1,Pd],[t,1,wx],[t,3,3*wx],[e,1,Cd]];function s(c,u,f){const d=u<c;d&&([c,u]=[u,c]);const h=f&&typeof f.range=="function"?f:l(c,u,f),m=h?h.range(c,+u+1):[];return d?m.reverse():m}function l(c,u,f){const d=Math.abs(u-c)/f,h=nd(([,,g])=>g).right(o,d);if(h===o.length)return e.every(od(c/Cd,u/Cd,f));if(h===0)return yl.every(Math.max(od(c,u,f),1));const[m,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(p)}return[s,l]}const[k5,T5]=Sx(Yr,Nd,_l,_x,jd,Td),[M5,j5]=Sx(qr,Dd,xl,Ga,Md,kd);function Id(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 $d(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 Xa(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function D5(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Za(i),u=Ja(i),f=Za(a),d=Ja(a),h=Za(o),m=Ja(o),p=Za(s),g=Ja(s),v=Za(l),b=Ja(l),x={a:H,A:te,b:Q,B:F,c:null,d:kx,e:kx,f:rI,g:dI,G:pI,H:Q5,I:eI,j:tI,L:Tx,m:nI,M:iI,p:U,q:V,Q:$x,s:Rx,S:aI,u:oI,U:sI,V:lI,w:cI,W:uI,x:null,X:null,y:fI,Y:hI,Z:mI,"%":Ix},S={a:re,A:Z,b:J,B:ee,c:null,d:jx,e:jx,f:bI,g:kI,G:MI,H:gI,I:vI,j:yI,L:Dx,m:xI,M:wI,p:oe,q:le,Q:$x,s:Rx,S:_I,u:SI,U:OI,V:AI,w:EI,W:PI,x:null,X:null,y:CI,Y:TI,Z:jI,"%":Ix},w={a:$,A:j,b:_,B:I,c:D,d:Px,e:Px,f:G5,g:Ex,G:Ax,H:Cx,I:Cx,j:U5,L:Y5,m:H5,M:K5,p:M,q:V5,Q:Z5,s:J5,S:q5,u:L5,U:F5,V:B5,w:R5,W:z5,x:L,X:W,y:Ex,Y:Ax,Z:W5,"%":X5};x.x=O(r,x),x.X=O(n,x),x.c=O(t,x),S.x=O(r,S),S.X=O(n,S),S.c=O(t,S);function O(B,K){return function(ne){var T=[],De=-1,pe=0,tt=B.length,dt,Nr,Fo;for(ne instanceof Date||(ne=new Date(+ne));++De<tt;)B.charCodeAt(De)===37&&(T.push(B.slice(pe,De)),(Nr=Ox[dt=B.charAt(++De)])!=null?dt=B.charAt(++De):Nr=dt==="e"?" ":"0",(Fo=K[dt])&&(dt=Fo(ne,Nr)),T.push(dt),pe=De+1);return T.push(B.slice(pe,De)),T.join("")}}function E(B,K){return function(ne){var T=Xa(1900,void 0,1),De=C(T,B,ne+="",0),pe,tt;if(De!=ne.length)return null;if("Q"in T)return new Date(T.Q);if("s"in T)return new Date(T.s*1e3+("L"in T?T.L:0));if(K&&!("Z"in T)&&(T.Z=0),"p"in T&&(T.H=T.H%12+T.p*12),T.m===void 0&&(T.m="q"in T?T.q:0),"V"in T){if(T.V<1||T.V>53)return null;"w"in T||(T.w=1),"Z"in T?(pe=$d(Xa(T.y,0,1)),tt=pe.getUTCDay(),pe=tt>4||tt===0?Sl.ceil(pe):Sl(pe),pe=bl.offset(pe,(T.V-1)*7),T.y=pe.getUTCFullYear(),T.m=pe.getUTCMonth(),T.d=pe.getUTCDate()+(T.w+6)%7):(pe=Id(Xa(T.y,0,1)),tt=pe.getDay(),pe=tt>4||tt===0?wl.ceil(pe):wl(pe),pe=Ga.offset(pe,(T.V-1)*7),T.y=pe.getFullYear(),T.m=pe.getMonth(),T.d=pe.getDate()+(T.w+6)%7)}else("W"in T||"U"in T)&&("w"in T||(T.w="u"in T?T.u%7:"W"in T?1:0),tt="Z"in T?$d(Xa(T.y,0,1)).getUTCDay():Id(Xa(T.y,0,1)).getDay(),T.m=0,T.d="W"in T?(T.w+6)%7+T.W*7-(tt+5)%7:T.w+T.U*7-(tt+6)%7);return"Z"in T?(T.H+=T.Z/100|0,T.M+=T.Z%100,$d(T)):Id(T)}}function C(B,K,ne,T){for(var De=0,pe=K.length,tt=ne.length,dt,Nr;De<pe;){if(T>=tt)return-1;if(dt=K.charCodeAt(De++),dt===37){if(dt=K.charAt(De++),Nr=w[dt in Ox?K.charAt(De++):dt],!Nr||(T=Nr(B,ne,T))<0)return-1}else if(dt!=ne.charCodeAt(T++))return-1}return T}function M(B,K,ne){var T=c.exec(K.slice(ne));return T?(B.p=u.get(T[0].toLowerCase()),ne+T[0].length):-1}function $(B,K,ne){var T=h.exec(K.slice(ne));return T?(B.w=m.get(T[0].toLowerCase()),ne+T[0].length):-1}function j(B,K,ne){var T=f.exec(K.slice(ne));return T?(B.w=d.get(T[0].toLowerCase()),ne+T[0].length):-1}function _(B,K,ne){var T=v.exec(K.slice(ne));return T?(B.m=b.get(T[0].toLowerCase()),ne+T[0].length):-1}function I(B,K,ne){var T=p.exec(K.slice(ne));return T?(B.m=g.get(T[0].toLowerCase()),ne+T[0].length):-1}function D(B,K,ne){return C(B,t,K,ne)}function L(B,K,ne){return C(B,r,K,ne)}function W(B,K,ne){return C(B,n,K,ne)}function H(B){return o[B.getDay()]}function te(B){return a[B.getDay()]}function Q(B){return l[B.getMonth()]}function F(B){return s[B.getMonth()]}function U(B){return i[+(B.getHours()>=12)]}function V(B){return 1+~~(B.getMonth()/3)}function re(B){return o[B.getUTCDay()]}function Z(B){return a[B.getUTCDay()]}function J(B){return l[B.getUTCMonth()]}function ee(B){return s[B.getUTCMonth()]}function oe(B){return i[+(B.getUTCHours()>=12)]}function le(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var K=O(B+="",x);return K.toString=function(){return B},K},parse:function(B){var K=E(B+="",!1);return K.toString=function(){return B},K},utcFormat:function(B){var K=O(B+="",S);return K.toString=function(){return B},K},utcParse:function(B){var K=E(B+="",!0);return K.toString=function(){return B},K}}}var Ox={"-":"",_:" ",0:"0"},mt=/^\s*\d+/,N5=/^%/,I5=/[\\^$*+?|[\]().{}]/g;function ge(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function $5(e){return e.replace(I5,"\\$&")}function Za(e){return new RegExp("^(?:"+e.map($5).join("|")+")","i")}function Ja(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function R5(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function L5(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function F5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function B5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function z5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ax(e,t,r){var n=mt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Ex(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function W5(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function V5(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function H5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Px(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function U5(e,t,r){var n=mt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Cx(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function K5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function q5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Y5(e,t,r){var n=mt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function G5(e,t,r){var n=mt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function X5(e,t,r){var n=N5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Z5(e,t,r){var n=mt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function J5(e,t,r){var n=mt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function kx(e,t){return ge(e.getDate(),t,2)}function Q5(e,t){return ge(e.getHours(),t,2)}function eI(e,t){return ge(e.getHours()%12||12,t,2)}function tI(e,t){return ge(1+Ga.count(qr(e),e),t,3)}function Tx(e,t){return ge(e.getMilliseconds(),t,3)}function rI(e,t){return Tx(e,t)+"000"}function nI(e,t){return ge(e.getMonth()+1,t,2)}function iI(e,t){return ge(e.getMinutes(),t,2)}function aI(e,t){return ge(e.getSeconds(),t,2)}function oI(e){var t=e.getDay();return t===0?7:t}function sI(e,t){return ge(xl.count(qr(e)-1,e),t,2)}function Mx(e){var t=e.getDay();return t>=4||t===0?Fi(e):Fi.ceil(e)}function lI(e,t){return e=Mx(e),ge(Fi.count(qr(e),e)+(qr(e).getDay()===4),t,2)}function cI(e){return e.getDay()}function uI(e,t){return ge(wl.count(qr(e)-1,e),t,2)}function fI(e,t){return ge(e.getFullYear()%100,t,2)}function dI(e,t){return e=Mx(e),ge(e.getFullYear()%100,t,2)}function hI(e,t){return ge(e.getFullYear()%1e4,t,4)}function pI(e,t){var r=e.getDay();return e=r>=4||r===0?Fi(e):Fi.ceil(e),ge(e.getFullYear()%1e4,t,4)}function mI(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ge(t/60|0,"0",2)+ge(t%60,"0",2)}function jx(e,t){return ge(e.getUTCDate(),t,2)}function gI(e,t){return ge(e.getUTCHours(),t,2)}function vI(e,t){return ge(e.getUTCHours()%12||12,t,2)}function yI(e,t){return ge(1+bl.count(Yr(e),e),t,3)}function Dx(e,t){return ge(e.getUTCMilliseconds(),t,3)}function bI(e,t){return Dx(e,t)+"000"}function xI(e,t){return ge(e.getUTCMonth()+1,t,2)}function wI(e,t){return ge(e.getUTCMinutes(),t,2)}function _I(e,t){return ge(e.getUTCSeconds(),t,2)}function SI(e){var t=e.getUTCDay();return t===0?7:t}function OI(e,t){return ge(_l.count(Yr(e)-1,e),t,2)}function Nx(e){var t=e.getUTCDay();return t>=4||t===0?Bi(e):Bi.ceil(e)}function AI(e,t){return e=Nx(e),ge(Bi.count(Yr(e),e)+(Yr(e).getUTCDay()===4),t,2)}function EI(e){return e.getUTCDay()}function PI(e,t){return ge(Sl.count(Yr(e)-1,e),t,2)}function CI(e,t){return ge(e.getUTCFullYear()%100,t,2)}function kI(e,t){return e=Nx(e),ge(e.getUTCFullYear()%100,t,2)}function TI(e,t){return ge(e.getUTCFullYear()%1e4,t,4)}function MI(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Bi(e):Bi.ceil(e),ge(e.getUTCFullYear()%1e4,t,4)}function jI(){return"+0000"}function Ix(){return"%"}function $x(e){return+e}function Rx(e){return Math.floor(+e/1e3)}var zi,Lx,Fx;DI({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 DI(e){return zi=D5(e),Lx=zi.format,zi.parse,Fx=zi.utcFormat,zi.utcParse,zi}function NI(e){return new Date(e)}function II(e){return e instanceof Date?+e:+new Date(+e)}function Rd(e,t,r,n,i,a,o,s,l,c){var u=yd(),f=u.invert,d=u.domain,h=c(".%L"),m=c(":%S"),p=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),b=c("%b %d"),x=c("%B"),S=c("%Y");function w(O){return(l(O)<O?h:s(O)<O?m:o(O)<O?p:a(O)<O?g:n(O)<O?i(O)<O?v:b:r(O)<O?x:S)(O)}return u.invert=function(O){return new Date(f(O))},u.domain=function(O){return arguments.length?d(Array.from(O,II)):d().map(NI)},u.ticks=function(O){var E=d();return e(E[0],E[E.length-1],O??10)},u.tickFormat=function(O,E){return E==null?w:c(E)},u.nice=function(O){var E=d();return(!O||typeof O.range!="function")&&(O=t(E[0],E[E.length-1],O??10)),O?d(sx(E,O)):u},u.copy=function(){return qa(u,Rd(e,t,r,n,i,a,o,s,l,c))},u}function $I(){return sr.apply(Rd(M5,j5,qr,Dd,xl,Ga,Md,kd,Gn,Lx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function RI(){return sr.apply(Rd(k5,T5,Yr,Nd,_l,bl,jd,Td,Gn,Fx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ol(){var e=0,t=1,r,n,i,a,o=kt,s=!1,l;function c(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),c):[o(0),o(1)]}}return c.range=u(Ri),c.rangeRound=u(gd),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function mn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Bx(){var e=pn(Ol()(kt));return e.copy=function(){return mn(e,Bx())},Vr.apply(e,arguments)}function zx(){var e=wd(Ol()).domain([1,10]);return e.copy=function(){return mn(e,zx()).base(e.base())},Vr.apply(e,arguments)}function Wx(){var e=_d(Ol());return e.copy=function(){return mn(e,Wx()).constant(e.constant())},Vr.apply(e,arguments)}function Ld(){var e=Sd(Ol());return e.copy=function(){return mn(e,Ld()).exponent(e.exponent())},Vr.apply(e,arguments)}function LI(){return Ld.apply(null,arguments).exponent(.5)}function Vx(){var e=[],t=kt;function r(n){if(n!=null&&!isNaN(n=+n))return t((za(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(hn),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>SN(e,a/n))},r.copy=function(){return Vx(t).domain(e)},Vr.apply(r,arguments)}function Al(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,c=kt,u,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+u(p))-a)*(n*p<n*a?s:l),c(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=u(e=+e),a=u(t=+t),o=u(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(c=p,h):c};function m(p){return function(g){var v,b,x;return arguments.length?([v,b,x]=g,c=XN(p,[v,b,x]),h):[c(0),c(.5),c(1)]}}return h.range=m(Ri),h.rangeRound=m(gd),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return u=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Hx(){var e=pn(Al()(kt));return e.copy=function(){return mn(e,Hx())},Vr.apply(e,arguments)}function Ux(){var e=wd(Al()).domain([.1,1,10]);return e.copy=function(){return mn(e,Ux()).base(e.base())},Vr.apply(e,arguments)}function Kx(){var e=_d(Al());return e.copy=function(){return mn(e,Kx()).constant(e.constant())},Vr.apply(e,arguments)}function Fd(){var e=Sd(Al());return e.copy=function(){return mn(e,Fd()).exponent(e.exponent())},Vr.apply(e,arguments)}function FI(){return Fd.apply(null,arguments).exponent(.5)}const Qa=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cd,scaleDiverging:Hx,scaleDivergingLog:Ux,scaleDivergingPow:Fd,scaleDivergingSqrt:FI,scaleDivergingSymlog:Kx,scaleIdentity:ox,scaleImplicit:sd,scaleLinear:ax,scaleLog:fx,scaleOrdinal:ld,scalePoint:EN,scalePow:Od,scaleQuantile:yx,scaleQuantize:bx,scaleRadial:vx,scaleSequential:Bx,scaleSequentialLog:zx,scaleSequentialPow:Ld,scaleSequentialQuantile:Vx,scaleSequentialSqrt:LI,scaleSequentialSymlog:Wx,scaleSqrt:b5,scaleSymlog:px,scaleThreshold:xx,scaleTime:$I,scaleUtc:RI,tickFormat:ix},Symbol.toStringTag,{value:"Module"}));var gn=e=>e.chartData,Bd=N([gn],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),El=(e,t,r,n)=>n?Bd(e):gn(e);function Wi(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(Yt(t)&&Yt(r))return!0}return!1}function qx(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function BI(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(Yt(r))i=r;else if(typeof r=="function")return;if(Yt(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Wi(o))return o}}function zI(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Wi(n))return qx(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i==="auto")t!=null&&(o=Math.min(...t));else if(X(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&B0.test(i)){var l=B0.exec(i);if(l==null||t==null)o=void 0;else{var c=+l[1];o=t[0]-c}}else o=t?.[0];if(a==="auto")t!=null&&(s=Math.max(...t));else if(X(a))s=a;else if(typeof a=="function")try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a=="string"&&z0.test(a)){var u=z0.exec(a);if(u==null||t==null)s=void 0;else{var f=+u[1];s=t[1]+f}}else s=t?.[1];var d=[o,s];if(Wi(d))return t==null?d:qx(d,t,r)}}}var Vi=1e9,WI={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Vd,We=!0,cr="[DecimalError] ",Jn=cr+"Invalid argument: ",zd=cr+"Exponent out of range: ",Hi=Math.floor,Qn=Math.pow,VI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Gt,gt=1e7,Le=7,Yx=9007199254740991,Pl=Hi(Yx/Le),Y={};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Y.comparedTo=Y.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1},Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Le;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r},Y.dividedBy=Y.div=function(e){return Gr(this,new this.constructor(e))},Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return Me(Gr(t,new r(e),0,1),r.precision)},Y.equals=Y.eq=function(e){return!this.cmp(e)},Y.exponent=function(){return at(this)},Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0},Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0},Y.isInteger=Y.isint=function(){return this.e>this.d.length-2},Y.isNegative=Y.isneg=function(){return this.s<0},Y.isPositive=Y.ispos=function(){return this.s>0},Y.isZero=function(){return this.s===0},Y.lessThan=Y.lt=function(e){return this.cmp(e)<0},Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1},Y.logarithm=Y.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Gt))throw Error(cr+"NaN");if(r.s<1)throw Error(cr+(r.s?"NaN":"-Infinity"));return r.eq(Gt)?new n(0):(We=!1,t=Gr(eo(r,a),eo(e,a),a),We=!0,Me(t,i))},Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Jx(t,e):Gx(t,(e.s=-e.s,e))},Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(cr+"NaN");return r.s?(We=!1,t=Gr(r,e,0,1).times(e),We=!0,r.minus(t)):Me(new n(r),i)},Y.naturalExponential=Y.exp=function(){return Xx(this)},Y.naturalLogarithm=Y.ln=function(){return eo(this)},Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Gx(t,e):Jx(t,(e.s=-e.s,e))},Y.precision=Y.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Jn+e);if(t=at(i)+1,n=i.d.length-1,r=n*Le+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},Y.squareRoot=Y.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(cr+"NaN")}for(e=at(s),We=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Cr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Hi((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Gr(s,a,o+2)).times(.5),Cr(a.d).slice(0,o)===(t=Cr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Me(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return We=!0,Me(n,r)},Y.times=Y.mul=function(e){var t,r,n,i,a,o,s,l,c,u=this,f=u.constructor,d=u.d,h=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,l=d.length,c=h.length,l<c&&(a=d,d=h,h=a,o=l,l=c,c=o),a=[],o=l+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%gt|0,t=s/gt|0;a[i]=(a[i]+t)%gt|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,We?Me(e,f.precision):e},Y.toDecimalPlaces=Y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Pr(e,0,Vi),t===void 0?t=n.rounding:Pr(t,0,8),Me(r,e+at(r)+1,t))},Y.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ei(n,!0):(Pr(e,0,Vi),t===void 0?t=i.rounding:Pr(t,0,8),n=Me(new i(n),e+1,t),r=ei(n,!0,e+1)),r},Y.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ei(i):(Pr(e,0,Vi),t===void 0?t=a.rounding:Pr(t,0,8),n=Me(new a(i),e+at(i)+1,t),r=ei(n.abs(),!1,e+at(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return Me(new t(e),at(e)+1,t.rounding)},Y.toNumber=function(){return+this},Y.toPower=Y.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Gt);if(s=new l(s),!s.s){if(e.s<1)throw Error(cr+"Infinity");return s}if(s.eq(Gt))return s;if(n=l.precision,e.eq(Gt))return Me(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=u<0?-u:u)<=Yx){for(i=new l(Gt),t=Math.ceil(n/Le+4),We=!1;r%2&&(i=i.times(s),Qx(i.d,t)),r=Hi(r/2),r!==0;)s=s.times(s),Qx(s.d,t);return We=!0,e.s<0?new l(Gt).div(i):Me(i,n)}}else if(a<0)throw Error(cr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,We=!1,i=e.times(eo(s,n+c)),We=!0,i=Xx(i),i.s=a,i},Y.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=at(i),n=ei(i,r<=a.toExpNeg||r>=a.toExpPos)):(Pr(e,1,Vi),t===void 0?t=a.rounding:Pr(t,0,8),i=Me(new a(i),e,t),r=at(i),n=ei(i,e<=r||r<=a.toExpNeg,e)),n},Y.toSignificantDigits=Y.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Pr(e,1,Vi),t===void 0?t=n.rounding:Pr(t,0,8)),Me(new n(r),e,t)},Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=at(e),r=e.constructor;return ei(e,t<=r.toExpNeg||t>=r.toExpPos)};function Gx(e,t){var r,n,i,a,o,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),We?Me(t,f):t;if(l=e.d,c=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=c.length):(n=c,i=o,s=l.length),o=Math.ceil(f/Le),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=c.length,s-a<0&&(a=s,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/gt|0,l[a]%=gt;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,We?Me(t,f):t}function Pr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Jn+e)}function Cr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Le-n.length,r&&(a+=vn(r)),a+=n;o=e[t],n=o+"",r=Le-n.length,r&&(a+=vn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Gr=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%gt|0,o=a/gt|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*gt+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,c,u,f,d,h,m,p,g,v,b,x,S,w,O,E,C,M=n.constructor,$=n.s==i.s?1:-1,j=n.d,_=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(cr+"Division by zero");for(l=n.e-i.e,E=_.length,w=j.length,h=new M($),m=h.d=[],c=0;_[c]==(j[c]||0);)++c;if(_[c]>(j[c]||0)&&--l,a==null?b=a=M.precision:o?b=a+(at(n)-at(i))+1:b=a,b<0)return new M(0);if(b=b/Le+2|0,c=0,E==1)for(u=0,_=_[0],b++;(c<w||u)&&b--;c++)x=u*gt+(j[c]||0),m[c]=x/_|0,u=x%_|0;else{for(u=gt/(_[0]+1)|0,u>1&&(_=e(_,u),j=e(j,u),E=_.length,w=j.length),S=E,p=j.slice(0,E),g=p.length;g<E;)p[g++]=0;C=_.slice(),C.unshift(0),O=_[0],_[1]>=gt/2&&++O;do u=0,s=t(_,p,E,g),s<0?(v=p[0],E!=g&&(v=v*gt+(p[1]||0)),u=v/O|0,u>1?(u>=gt&&(u=gt-1),f=e(_,u),d=f.length,g=p.length,s=t(f,p,d,g),s==1&&(u--,r(f,E<d?C:_,d))):(u==0&&(s=u=1),f=_.slice()),d=f.length,d<g&&f.unshift(0),r(p,f,g),s==-1&&(g=p.length,s=t(_,p,E,g),s<1&&(u++,r(p,E<g?C:_,g))),g=p.length):s===0&&(u++,p=[0]),m[c++]=u,s&&p[0]?p[g++]=j[S]||0:(p=[j[S]],g=1);while((S++<w||p[0]!==void 0)&&b--)}return m[0]||m.shift(),h.e=l,Me(h,o?a+at(h)+1:a)}})();function Xx(e,t){var r,n,i,a,o,s,l=0,c=0,u=e.constructor,f=u.precision;if(at(e)>16)throw Error(zd+at(e));if(!e.s)return new u(Gt);for(We=!1,s=f,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Qn(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new u(Gt),u.precision=s;;){if(i=Me(i.times(e),s),r=r.times(++l),o=a.plus(Gr(i,r,s)),Cr(o.d).slice(0,s)===Cr(a.d).slice(0,s)){for(;c--;)a=Me(a.times(a),s);return u.precision=f,t==null?(We=!0,Me(a,f)):a}a=o}}function at(e){for(var t=e.e*Le,r=e.d[0];r>=10;r/=10)t++;return t}function Wd(e,t,r){if(t>e.LN10.sd())throw We=!0,r&&(e.precision=r),Error(cr+"LN10 precision limit exceeded");return Me(new e(e.LN10),t)}function vn(e){for(var t="";e--;)t+="0";return t}function eo(e,t){var r,n,i,a,o,s,l,c,u,f=1,d=10,h=e,m=h.d,p=h.constructor,g=p.precision;if(h.s<1)throw Error(cr+(h.s?"NaN":"-Infinity"));if(h.eq(Gt))return new p(0);if(t==null?(We=!1,c=g):c=t,h.eq(10))return t==null&&(We=!0),Wd(p,c);if(c+=d,p.precision=c,r=Cr(m),n=r.charAt(0),a=at(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Cr(h.d),n=r.charAt(0),f++;a=at(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return l=Wd(p,c+2,g).times(a+""),h=eo(new p(n+"."+r.slice(1)),c-d).plus(l),p.precision=g,t==null?(We=!0,Me(h,g)):h;for(s=o=h=Gr(h.minus(Gt),h.plus(Gt),c),u=Me(h.times(h),c),i=3;;){if(o=Me(o.times(u),c),l=s.plus(Gr(o,new p(i),c)),Cr(l.d).slice(0,c)===Cr(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(Wd(p,c+2,g).times(a+""))),s=Gr(s,new p(f),c),p.precision=g,t==null?(We=!0,Me(s,g)):s;s=l,i+=2}}function Zx(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Hi(r/Le),e.d=[],n=(r+1)%Le,r<0&&(n+=Le),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Le;n<i;)e.d.push(+t.slice(n,n+=Le));t=t.slice(n),n=Le-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),We&&(e.e>Pl||e.e<-Pl))throw Error(zd+r)}else e.s=0,e.e=0,e.d=[0];return e}function Me(e,t,r){var n,i,a,o,s,l,c,u,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Le,i=t,c=f[u=0];else{if(u=Math.ceil((n+1)/Le),a=f.length,u>=a)return e;for(c=a=f[u],o=1;a>=10;a/=10)o++;n%=Le,i=n-Le+o}if(r!==void 0&&(a=Qn(10,o-i-1),s=c/a%10|0,l=t<0||f[u+1]!==void 0||c%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?c/Qn(10,o-i):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=at(e),f.length=1,t=t-a-1,f[0]=Qn(10,(Le-t%Le)%Le),e.e=Hi(-t/Le)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,a=1,u--):(f.length=u+1,a=Qn(10,Le-n),f[u]=i>0?(c/Qn(10,o-i)%Qn(10,i)|0)*a:0),l)for(;;)if(u==0){(f[0]+=a)==gt&&(f[0]=1,++e.e);break}else{if(f[u]+=a,f[u]!=gt)break;f[u--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(We&&(e.e>Pl||e.e<-Pl))throw Error(zd+at(e));return e}function Jx(e,t){var r,n,i,a,o,s,l,c,u,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),We?Me(t,h):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=f.length):(r=f,n=c,s=l.length),i=Math.max(Math.ceil(h/Le),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){u=l[i]<f[i];break}o=0}for(u&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=gt-1;--l[a],l[i]+=gt}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,We?Me(t,h):t):new d(0)}function ei(e,t,r){var n,i=at(e),a=Cr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+vn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+vn(-i-1)+a,r&&(n=r-o)>0&&(a+=vn(n))):i>=o?(a+=vn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+vn(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=vn(n))),e.s<0?"-"+a:a}function Qx(e,t){if(e.length>t)return e.length=t,!0}function e1(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Jn+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Zx(o,a.toString())}else if(typeof a!="string")throw Error(Jn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,VI.test(a))Zx(o,a);else throw Error(Jn+a)}if(i.prototype=Y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e1,i.config=i.set=HI,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function HI(e){if(!e||typeof e!="object")throw Error(cr+"Object expected");var t,r,n,i=["precision",1,Vi,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Hi(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Jn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Jn+r+": "+n);return this}var Vd=e1(WI);Gt=new Vd(1);const Ee=Vd;var UI=e=>e,t1={},r1=e=>e===t1,n1=e=>function t(){return arguments.length===0||arguments.length===1&&r1(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},i1=(e,t)=>e===1?t:n1(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter(o=>o!==t1).length;return a>=e?t(...n):i1(e-a,n1(function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];var c=n.map(u=>r1(u)?s.shift():u);return t(...c,...s)}))}),Cl=e=>i1(e.length,e),Hd=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},KI=Cl((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),qI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return UI;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce((s,l)=>l(s),a(...arguments))}},Ud=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),a1=e=>{var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t&&i.every((o,s)=>{var l;return o===((l=t)===null||l===void 0?void 0:l[s])})||(t=i,r=e(...i)),r}};function o1(e){var t;return e===0?t=1:t=Math.floor(new Ee(e).abs().log(10).toNumber())+1,t}function s1(e,t,r){for(var n=new Ee(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}Cl((e,t,r)=>{var n=+e,i=+t;return n+r*(i-n)}),Cl((e,t,r)=>{var n=t-+e;return n=n||1/0,(r-e)/n}),Cl((e,t,r)=>{var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});var l1=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},c1=(e,t,r)=>{if(e.lte(0))return new Ee(0);var n=o1(e.toNumber()),i=new Ee(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ee(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?new Ee(l.toNumber()):new Ee(Math.ceil(l.toNumber()))},YI=(e,t,r)=>{var n=new Ee(1),i=new Ee(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ee(10).pow(o1(e)-1),i=new Ee(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ee(Math.floor(e)))}else e===0?i=new Ee(Math.floor((t-1)/2)):r||(i=new Ee(Math.floor(e)));var o=Math.floor((t-1)/2),s=qI(KI(l=>i.add(new Ee(l-o).mul(n)).toNumber()),Hd);return s(0,t)},u1=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new Ee(0),tickMin:new Ee(0),tickMax:new Ee(0)};var o=c1(new Ee(r).sub(t).div(n-1),i,a),s;t<=0&&r>=0?s=new Ee(0):(s=new Ee(t).add(r).div(2),s=s.sub(new Ee(s).mod(o)));var l=Math.ceil(s.sub(t).div(o).toNumber()),c=Math.ceil(new Ee(r).sub(s).div(o).toNumber()),u=l+c+1;return u>n?u1(t,r,n,i,a+1):(u<n&&(c=r>0?c+(n-u):c,l=r>0?l:l+(n-u)),{step:o,tickMin:s.sub(new Ee(l).mul(o)),tickMax:s.add(new Ee(c).mul(o))})};function GI(e){var[t,r]=e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(n,2),[o,s]=l1([t,r]);if(o===-1/0||s===1/0){var l=s===1/0?[o,...Hd(0,n-1).map(()=>1/0)]:[...Hd(0,n-1).map(()=>-1/0),s];return t>r?Ud(l):l}if(o===s)return YI(o,n,i);var{step:c,tickMin:u,tickMax:f}=u1(o,s,a,i,0),d=s1(u,f.add(new Ee(.1).mul(c)),c);return t>r?Ud(d):d}function XI(e,t){var[r,n]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,o]=l1([r,n]);if(a===-1/0||o===1/0)return[r,n];if(a===o)return[a];var s=Math.max(t,2),l=c1(new Ee(o).sub(a).div(s-1),i,0),c=[...s1(new Ee(a),new Ee(o),l),o];return i===!1&&(c=c.map(u=>Math.round(u))),r>n?Ud(c):c}var ZI=a1(GI),JI=a1(XI),f1=e=>e.rootProps.maxBarSize,QI=e=>e.rootProps.barGap,d1=e=>e.rootProps.barCategoryGap,e4=e=>e.rootProps.barSize,to=e=>e.rootProps.stackOffset,Kd=e=>e.options.chartName,qd=e=>e.rootProps.syncId,h1=e=>e.rootProps.syncMethod,Yd=e=>e.options.eventEmitter,Xr={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Xt={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},kl=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},t4={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Xr.angleAxisId,includeHidden:!1,name:void 0,reversed:Xr.reversed,scale:Xr.scale,tick:Xr.tick,tickCount:void 0,ticks:void 0,type:Xr.type,unit:void 0},r4={allowDataOverflow:Xt.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Xt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Xt.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Xt.scale,tick:Xt.tick,tickCount:Xt.tickCount,ticks:void 0,type:Xt.type,unit:void 0},n4={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Xr.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Xr.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Xr.scale,tick:Xr.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},i4={allowDataOverflow:Xt.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Xt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Xt.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Xt.scale,tick:Xt.tick,tickCount:Xt.tickCount,ticks:void 0,type:"category",unit:void 0},Gd=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?n4:t4,Xd=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?i4:r4,Tl=e=>e.polarOptions,Zd=N([zr,Wr,st],j0),p1=N([Tl,Zd],(e,t)=>{if(e!=null)return At(e.innerRadius,t,0)}),m1=N([Tl,Zd],(e,t)=>{if(e!=null)return At(e.outerRadius,t,t*.8)}),a4=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},g1=N([Tl],a4);N([Gd,g1],kl);var v1=N([Zd,p1,m1],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});N([Xd,v1],kl);var y1=N([ue,Tl,p1,m1,zr,Wr],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:s,startAngle:l,endAngle:c}=t;return{cx:At(o,i,i/2),cy:At(s,a,a/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),Ve=(e,t)=>t,ro=(e,t,r)=>r;function Jd(e){return e?.id}var ct=e=>{var t=ue(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Ui=e=>e.tooltip.settings.axisId,vt=e=>{var t=ct(e),r=Ui(e);return no(e,t,r)},b1=N([vt],e=>e?.dataKey);function x1(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=Jd(s);c.forEach((f,d)=>{var h=a==null||i?d:String(Re(f,a,null)),m=Re(f,s.dataKey,0),p;o.has(h)?p=o.get(h):p={},Object.assign(p,{[u]:m}),o.set(h,p)})}}),Array.from(o.values())}function Ml(e){return e.stackId!=null&&e.dataKey!=null}function w1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w1(Object(r),!0).forEach(function(n){o4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o4(e,t,r){return(t=s4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s4(e){var t=l4(e,"string");return typeof t=="symbol"?t:t+""}function l4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qd=[0,"auto"],Zt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},_1=(e,t)=>e.cartesianAxis.xAxis[t],Zr=(e,t)=>{var r=_1(e,t);return r??Zt},Jt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Qd,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Na},S1=(e,t)=>e.cartesianAxis.yAxis[t],Jr=(e,t)=>{var r=S1(e,t);return r??Jt},c4={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},eh=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??c4},Je=(e,t,r)=>{switch(t){case"xAxis":return Zr(e,r);case"yAxis":return Jr(e,r);case"zAxis":return eh(e,r);case"angleAxis":return Gd(e,r);case"radiusAxis":return Xd(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},u4=(e,t,r)=>{switch(t){case"xAxis":return Zr(e,r);case"yAxis":return Jr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},no=(e,t,r)=>{switch(t){case"xAxis":return Zr(e,r);case"yAxis":return Jr(e,r);case"angleAxis":return Gd(e,r);case"radiusAxis":return Xd(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},O1=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function th(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Dl=e=>e.graphicalItems.cartesianItems,f4=N([Ve,ro],th),rh=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),io=N([Dl,Je,f4],rh),A1=N([io],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Ml)),E1=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),P1=N([io],E1),nh=e=>e.map(t=>t.data).filter(Boolean).flat(1),d4=N([io],nh),ih=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},ah=N([d4,El],ih),oh=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:Re(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Re(i,n)}))):e.map(n=>({value:n})),Nl=N([ah,Je,io],oh);function C1(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function ti(e){return e.filter(t=>Or(t)||t instanceof Date).map(Number).filter(t=>Ut(t)===!1)}function h4(e,t,r){return!r||typeof t!="number"||Ut(t)?[]:r.length?ti(r.flatMap(n=>{var i=Re(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!Yt(a)||!Yt(o)))return[t-a,t+o]})):[]}var p4=N([A1,El,vt],x1),k1=(e,t,r)=>{var n={},i=t.reduce((a,o)=>(o.stackId==null||(a[o.stackId]==null&&(a[o.stackId]=[]),a[o.stackId].push(o)),a),n);return Object.fromEntries(Object.entries(i).map(a=>{var[o,s]=a,l=s.map(Jd);return[o,{stackedData:jj(e,l,r),graphicalItems:s}]}))},sh=N([p4,A1,to],k1),T1=(e,t,r)=>{var{dataStartIndex:n,dataEndIndex:i}=t;if(r!=="zAxis"){var a=Rj(e,n,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},m4=N([sh,gn,Ve],T1),M1=(e,t,r,n,i)=>r.length>0?e.flatMap(a=>r.flatMap(o=>{var s,l,c=(s=n[o.id])===null||s===void 0?void 0:s.filter(f=>C1(i,f)),u=Re(a,(l=t.dataKey)!==null&&l!==void 0?l:o.dataKey);return{value:u,errorDomain:h4(a,u,c)}})).filter(Boolean):t?.dataKey!=null?e.map(a=>({value:Re(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]})),Il=e=>e.errorBars,j1=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>C1(r,n));N([P1,Il,Ve],j1);var g4=N([ah,Je,P1,Il,Ve],M1);function v4(e){var{value:t}=e;if(Or(t)||t instanceof Date)return t}var D1=e=>{var t=e.flatMap(n=>[n.value,n.errorDomain]).flat(1),r=ti(t);if(r.length!==0)return[Math.min(...r),Math.max(...r)]},y4=(e,t,r)=>{var n=e.map(v4).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&ov(n))?kb(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},lh=e=>{var t;if(e==null||!("domain"in e))return Qd;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=ti(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:Qd},$l=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),s=Math.max(...a);return[o,s]}},N1=e=>e.referenceElements.dots,Ki=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),b4=N([N1,Ve,ro],Ki),I1=e=>e.referenceElements.areas,x4=N([I1,Ve,ro],Ki),$1=e=>e.referenceElements.lines,w4=N([$1,Ve,ro],Ki),R1=(e,t)=>{var r=ti(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},_4=N(b4,Ve,R1),L1=(e,t)=>{var r=ti(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},S4=N([x4,Ve],L1),F1=(e,t)=>{var r=ti(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},O4=N(w4,Ve,F1),A4=N(_4,O4,S4,(e,t,r)=>$l(e,r,t)),B1=N([Je],lh),ch=(e,t,r,n,i,a,o)=>{var s=BI(t,e.allowDataOverflow);if(s!=null)return s;var l=a==="vertical"&&o==="xAxis"||a==="horizontal"&&o==="yAxis",c=l?$l(r,i,D1(n)):$l(i,D1(n));return zI(t,c,e.allowDataOverflow)},E4=N([Je,B1,m4,g4,A4,ue,Ve],ch),P4=[0,1],uh=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:s,type:l}=e,c=fn(t,a);return c&&s==null?kb(0,r.length):l==="category"?y4(n,e,c):i==="expand"?P4:o}},fh=N([Je,ue,ah,Nl,to,Ve,E4],uh),z1=(e,t,r,n,i)=>{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":o==="category"?"band":"linear";if(typeof a=="string"){var s="scale".concat(Ea(a));return s in Qa?s:"point"}}},qi=N([Je,ue,O1,Kd,Ve],z1);function C4(e){if(e!=null){if(e in Qa)return Qa[e]();var t="scale".concat(Ea(e));if(t in Qa)return Qa[t]()}}function dh(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=C4(t);if(i!=null){var a=i.domain(r).range(n);return Pj(a),a}}}var hh=(e,t,r)=>{var n=lh(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Wi(e))return ZI(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Wi(e))return JI(e,t.tickCount,t.allowDecimals)}},ph=N([fh,no,qi],hh),mh=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Wi(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],o=t[1],s=r[r.length-1];return[Math.min(i,a),Math.max(o,s)]}return t},k4=N([Je,fh,ph,Ve],mh),T4=N(Nl,Je,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(ti(e.map(s=>s.value))).sort((s,l)=>s-l);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var a=0;a<n.length-1;a++){var o=n[a+1]-n[a];r=Math.min(r,o)}return r/i}}),W1=N(T4,ue,d1,st,(e,t,r,n)=>n,(e,t,r,n,i)=>{if(!Yt(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=At(r,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),M4=(e,t)=>{var r=Zr(e,t);return r==null||typeof r.padding!="string"?0:W1(e,"xAxis",t,r.padding)},j4=(e,t)=>{var r=Jr(e,t);return r==null||typeof r.padding!="string"?0:W1(e,"yAxis",t,r.padding)},D4=N(Zr,M4,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),N4=N(Jr,j4,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),I4=N([st,D4,el,Qs,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),$4=N([st,ue,N4,el,Qs,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),ao=(e,t,r,n)=>{var i;switch(t){case"xAxis":return I4(e,r,n);case"yAxis":return $4(e,r,n);case"zAxis":return(i=eh(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return g1(e);case"radiusAxis":return v1(e,r);default:return}},V1=N([Je,ao],kl),Yi=N([Je,qi,k4,V1],dh);N([io,Il,Ve],j1);function H1(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Rl=(e,t)=>t,Ll=(e,t,r)=>r,R4=N(Xs,Rl,Ll,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(H1)),L4=N(Zs,Rl,Ll,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(H1)),U1=(e,t)=>({width:e.width,height:t.height}),F4=(e,t)=>{var r=typeof t.width=="number"?t.width:Na;return{width:r,height:e.height}},K1=N(st,Zr,U1),B4=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},z4=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},W4=N(Wr,st,R4,Rl,Ll,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var l=U1(t,s);o==null&&(o=B4(t,n,e));var c=n==="top"&&!i||n==="bottom"&&i;a[s.id]=o-Number(c)*l.height,o+=(c?-1:1)*l.height}),a}),V4=N(zr,st,L4,Rl,Ll,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var l=F4(t,s);o==null&&(o=z4(t,n,e));var c=n==="left"&&!i||n==="right"&&i;a[s.id]=o-Number(c)*l.width,o+=(c?-1:1)*l.width}),a}),H4=(e,t)=>{var r=Zr(e,t);if(r!=null)return W4(e,r.orientation,r.mirror)},U4=N([st,Zr,H4,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),K4=(e,t)=>{var r=Jr(e,t);if(r!=null)return V4(e,r.orientation,r.mirror)},q4=N([st,Jr,K4,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),q1=N(st,Jr,(e,t)=>{var r=typeof t.width=="number"?t.width:Na;return{width:r,height:e.height}}),Y1=(e,t,r)=>{switch(t){case"xAxis":return K1(e,r).width;case"yAxis":return q1(e,r).height;default:return}},G1=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,s=fn(e,n),l=t.map(c=>c.value);if(o&&s&&a==="category"&&i&&ov(l))return l}},gh=N([ue,Nl,Je,Ve],G1),X1=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=fn(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(s=>s.value)}},vh=N([ue,Nl,no,Ve],X1),Z1=N([ue,u4,qi,Yi,gh,vh,ao,ph,Ve],(e,t,r,n,i,a,o,s,l)=>{if(t==null)return null;var c=fn(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:s,range:o,realScaleType:r,scale:n}}),Y4=(e,t,r,n,i,a,o,s,l)=>{if(!(t==null||n==null)){var c=fn(e,l),{type:u,ticks:f,tickCount:d}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,m=u==="category"&&n.bandwidth?n.bandwidth()/h:0;m=l==="angleAxis"&&a!=null&&a.length>=2?pt(a[0]-a[1])*2*m:m;var p=f||i;if(p){var g=p.map((v,b)=>{var x=o?o.indexOf(v):v;return{index:b,coordinate:n(x)+m,value:v,offset:m}});return g.filter(v=>!Ut(v.coordinate))}return c&&s?s.map((v,b)=>({coordinate:n(v)+m,value:v,index:b,offset:m})):n.ticks?n.ticks(d).map(v=>({coordinate:n(v)+m,value:v,offset:m})):n.domain().map((v,b)=>({coordinate:n(v)+m,value:o?o[v]:v,index:b,offset:m}))}},J1=N([ue,no,qi,Yi,ph,ao,gh,vh,Ve],Y4),G4=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=fn(e,o),{tickCount:l}=t,c=0;return c=o==="angleAxis"&&n?.length>=2?pt(n[0]-n[1])*2*c:c,s&&a?a.map((u,f)=>({coordinate:r(u)+c,value:u,index:f,offset:c})):r.ticks?r.ticks(l).map(u=>({coordinate:r(u)+c,value:u,offset:c})):r.domain().map((u,f)=>({coordinate:r(u)+c,value:i?i[u]:u,index:f,offset:c}))}},yn=N([ue,no,Yi,ao,gh,vh,Ve],G4),bn=N(Je,Yi,(e,t)=>{if(!(e==null||t==null))return jl(jl({},e),{},{scale:t})}),X4=N([Je,qi,fh,V1],dh);N((e,t,r)=>eh(e,r),X4,(e,t)=>{if(!(e==null||t==null))return jl(jl({},e),{},{scale:t})});var Z4=N([ue,Xs,Zs],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Q1=e=>e.options.defaultTooltipEventType,ew=e=>e.options.validateTooltipEventTypes;function tw(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function yh(e,t){var r=Q1(e),n=ew(e);return tw(t,r,n)}function J4(e){return G(t=>yh(t,e))}var rw=(e,t)=>{var r,n=Number(t);if(!(Ut(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},Q4=e=>e.tooltip.settings,xn={active:!1,index:null,dataKey:void 0,coordinate:void 0},e$={itemInteraction:{click:xn,hover:xn},axisInteraction:{click:xn,hover:xn},keyboardInteraction:xn,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},nw=qt({name:"tooltip",initialState:e$,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var r=Br(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:t$,removeTooltipEntrySettings:r$,setTooltipSettingsState:n$,setActiveMouseOverItemIndex:iw,mouseLeaveItem:i$,mouseLeaveChart:aw,setActiveClickItemIndex:a$,setMouseOverAxisIndex:ow,setMouseClickAxisIndex:o$,setSyncInteraction:bh,setKeyboardInteraction:xh}=nw.actions,s$=nw.reducer;function sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sw(Object(r),!0).forEach(function(n){l$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l$(e,t,r){return(t=c$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c$(e){var t=u$(e,"string");return typeof t=="symbol"?t:t+""}function u$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f$(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function d$(e){return e.index!=null}var lw=(e,t,r,n)=>{if(t==null)return xn;var i=f$(e,t,r);if(i==null)return xn;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(d$(i)){if(a)return Fl(Fl({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n};return Fl(Fl({},xn),{},{coordinate:i.coordinate})},wh=(e,t)=>{var r=e?.index;if(r==null)return null;var n=Number(r);if(!Yt(n))return r;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(n,a)))},cw=(e,t,r,n,i,a,o,s)=>{if(!(a==null||s==null)){var l=o[0],c=l==null?void 0:s(l.positions,a);if(c!=null)return c;var u=i?.[Number(a)];if(u)switch(r){case"horizontal":return{x:u.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:u.coordinate}}}},uw=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var o;return((o=a.settings)===null||o===void 0?void 0:o.dataKey)===i})},oo=e=>e.options.tooltipPayloadSearcher,Gi=e=>e.tooltip;function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(n){h$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h$(e,t,r){return(t=p$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p$(e){var t=m$(e,"string");return typeof t=="symbol"?t:t+""}function m$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g$(e,t){return e??t}var hw=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,f=[];return e.reduce((d,h)=>{var m,{dataDefinedOnItem:p,settings:g}=h,v=g$(p,s),b=Array.isArray(v)?D0(v,c,u):v,x=(m=g?.dataKey)!==null&&m!==void 0?m:n,S=g?.nameKey,w;if(n&&Array.isArray(b)&&!Array.isArray(b[0])&&o==="axis"?w=sv(b,n,i):w=a(b,t,l,S),Array.isArray(w))w.forEach(E=>{var C=dw(dw({},g),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});d.push(W0({tooltipEntrySettings:C,dataKey:E.dataKey,payload:E.payload,value:Re(E.payload,E.dataKey),name:E.name}))});else{var O;d.push(W0({tooltipEntrySettings:g,dataKey:x,payload:w,value:Re(w,x),name:(O=Re(w,S))!==null&&O!==void 0?O:g?.name}))}return d},f)}},_h=N([vt,ue,O1,Kd,ct],z1),v$=N([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),y$=N([ct,Ui],th),so=N([v$,vt,y$],rh),b$=N([so],e=>e.filter(Ml)),x$=N([so],nh),Xi=N([x$,gn],ih),w$=N([b$,gn,vt],x1),Sh=N([Xi,vt,so],oh),_$=N([vt],lh),S$=N([so],e=>e.filter(Ml)),O$=N([w$,S$,to],k1),A$=N([O$,gn,ct],T1),E$=N([so],E1),P$=N([Xi,vt,E$,Il,ct],M1),C$=N([N1,ct,Ui],Ki),k$=N([C$,ct],R1),T$=N([I1,ct,Ui],Ki),M$=N([T$,ct],L1),j$=N([$1,ct,Ui],Ki),D$=N([j$,ct],F1),N$=N([k$,D$,M$],$l),I$=N([vt,_$,A$,P$,N$,ue,ct],ch),pw=N([vt,ue,Xi,Sh,to,ct,I$],uh),$$=N([pw,vt,_h],hh),R$=N([vt,pw,$$,ct],mh),mw=e=>{var t=ct(e),r=Ui(e),n=!1;return ao(e,t,r,n)},gw=N([vt,mw],kl),vw=N([vt,_h,R$,gw],dh),L$=N([ue,Sh,vt,ct],G1),F$=N([ue,Sh,vt,ct],X1),B$=(e,t,r,n,i,a,o,s)=>{if(t){var{type:l}=t,c=fn(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return f=s==="angleAxis"&&i!=null&&i?.length>=2?pt(i[0]-i[1])*2*f:f,c&&o?o.map((d,h)=>({coordinate:n(d)+f,value:d,index:h,offset:f})):n.domain().map((d,h)=>({coordinate:n(d)+f,value:a?a[d]:d,index:h,offset:f}))}}},Qr=N([ue,vt,_h,vw,mw,L$,F$,ct],B$),Oh=N([Q1,ew,Q4],(e,t,r)=>tw(r.shared,e,t)),yw=e=>e.tooltip.settings.trigger,Ah=e=>e.tooltip.settings.defaultIndex,Bl=N([Gi,Oh,yw,Ah],lw),wn=N([Bl,Xi],wh),bw=N([Qr,wn],rw),xw=N([Bl],e=>{if(e)return e.dataKey}),ww=N([Gi,Oh,yw,Ah],uw),z$=N([zr,Wr,ue,st,Qr,Ah,ww,oo],cw),W$=N([Bl,z$],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),V$=N([Bl],e=>e.active),H$=N([ww,wn,gn,b1,bw,oo,Oh],hw),U$=N([H$],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function _w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_w(Object(r),!0).forEach(function(n){K$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K$(e,t,r){return(t=q$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q$(e){var t=Y$(e,"string");return typeof t=="symbol"?t:t+""}function Y$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var G$=()=>G(vt),X$=()=>{var e=G$(),t=G(Qr),r=G(vw);return Da(Sw(Sw({},e),{},{scale:r}),t)},Z$=()=>G(Kd),Eh=(e,t)=>t,Ow=(e,t,r)=>r,Ph=(e,t,r,n)=>n,J$=N(Qr,e=>Ds(e,t=>t.coordinate)),Ch=N([Gi,Eh,Ow,Ph],lw),Aw=N([Ch,Xi],wh),Q$=(e,t,r)=>{if(t!=null){var n=Gi(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},Ew=N([Gi,Eh,Ow,Ph],uw),zl=N([zr,Wr,ue,st,Qr,Ph,Ew,oo],cw),eR=N([Ch,zl],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Pw=N(Qr,Aw,rw),tR=N([Ew,Aw,gn,b1,Pw,oo,Eh],hw),rR=N([Ch],e=>({isActive:e.active,activeIndex:e.index})),nR=(e,t,r,n,i,a,o,s)=>{if(!(!e||!t||!n||!i||!a)){var l=Lj(e.chartX,e.chartY,t,r,s);if(l){var c=Bj(l,t),u=Aj(c,o,a,n,i),f=Fj(t,a,u,l);return{activeIndex:String(u),activeCoordinate:f}}}};function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kh.apply(null,arguments)}function Cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(r),!0).forEach(function(n){iR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iR(e,t,r){return(t=aR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aR(e){var t=oR(e,"string");return typeof t=="symbol"?t:t+""}function oR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sR(e){var{coordinate:t,payload:r,index:n,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:l,chartName:c}=e,u=t,f=r,d=n;if(!s||!u||c!=="ScatterChart"&&l!=="axis")return null;var h,m;if(c==="ScatterChart")h=u,m=PD;else if(c==="BarChart")h=CD(o,u,i,a),m=wb;else if(o==="radial"){var{cx:p,cy:g,radius:v,startAngle:b,endAngle:x}=_b(u);h={cx:p,cy:g,startAngle:b,endAngle:x,innerRadius:v,outerRadius:v},m=Ob}else h={points:sN(o,u,i)},m=Yf;var S=typeof s=="object"&&"className"in s?s.className:void 0,w=Wl(Wl(Wl(Wl({stroke:"#ccc",pointerEvents:"none"},i),h),Ue(s,!1)),{},{payload:f,payloadIndex:d,className:de("recharts-tooltip-cursor",S)});return k.isValidElement(s)?k.cloneElement(s,w):k.createElement(m,w)}function lR(e){var t=X$(),r=q0(),n=tl(),i=Z$();return A.createElement(sR,kh({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var kw=k.createContext(null),cR=()=>k.useContext(kw),Th={exports:{}},Tw;function uR(){return Tw||(Tw=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||l,d),m=r?r+c:c;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],h]:l._events[m].push(h):(l._events[m]=h,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,m=new Array(h);d<h;d++)m[d]=f[d].fn;return m},s.prototype.listenerCount=function(c){var u=r?r+c:c,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,u,f,d,h,m){var p=r?r+c:c;if(!this._events[p])return!1;var g=this._events[p],v=arguments.length,b,x;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),v){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,f),!0;case 4:return g.fn.call(g.context,u,f,d),!0;case 5:return g.fn.call(g.context,u,f,d,h),!0;case 6:return g.fn.call(g.context,u,f,d,h,m),!0}for(x=1,b=new Array(v-1);x<v;x++)b[x-1]=arguments[x];g.fn.apply(g.context,b)}else{var S=g.length,w;for(x=0;x<S;x++)switch(g[x].once&&this.removeListener(c,g[x].fn,void 0,!0),v){case 1:g[x].fn.call(g[x].context);break;case 2:g[x].fn.call(g[x].context,u);break;case 3:g[x].fn.call(g[x].context,u,f);break;case 4:g[x].fn.call(g[x].context,u,f,d);break;default:if(!b)for(w=1,b=new Array(v-1);w<v;w++)b[w-1]=arguments[w];g[x].fn.apply(g[x].context,b)}}return!0},s.prototype.on=function(c,u,f){return a(this,c,u,f,!1)},s.prototype.once=function(c,u,f){return a(this,c,u,f,!0)},s.prototype.removeListener=function(c,u,f,d){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===u&&(!d||m.once)&&(!f||m.context===f)&&o(this,h);else{for(var p=0,g=[],v=m.length;p<v;p++)(m[p].fn!==u||d&&!m[p].once||f&&m[p].context!==f)&&g.push(m[p]);g.length?this._events[h]=g.length===1?g[0]:g:o(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Th)),Th.exports}var fR=uR();const dR=Ir(fR);var lo=new dR,Mh="recharts.syncEvent.tooltip",Mw="recharts.syncEvent.brush";function jh(e,t){if(t){var r=Number.parseInt(t,10);if(!Ut(r))return e?.[r]}}var hR={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},jw=qt({name:"options",initialState:hR,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),pR=jw.reducer,{createEventEmitter:mR}=jw.actions;function gR(e){return e.tooltip.syncInteraction}var vR={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Dw=qt({name:"chartData",initialState:vR,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:Nw,setDataStartEndIndexes:yR,setComputedData:PU}=Dw.actions,bR=Dw.reducer,xR=["x","y"];function Iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iw(Object(r),!0).forEach(function(n){wR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wR(e,t,r){return(t=_R(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _R(e){var t=SR(e,"string");return typeof t=="symbol"?t:t+""}function SR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OR(e,t){if(e==null)return{};var r,n,i=AR(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function AR(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var $w=()=>{};function ER(){var e=G(qd),t=G(Yd),r=Ze(),n=G(h1),i=G(Qr),a=tl(),o=Vf(),s=G(l=>l.rootProps.className);k.useEffect(()=>{if(e==null)return $w;var l=(c,u,f)=>{if(t!==f&&e===c){if(n==="index"){var d;if(o&&u!==null&&u!==void 0&&(d=u.payload)!==null&&d!==void 0&&d.coordinate){var h=u.payload.coordinate,{x:m,y:p}=h,g=OR(h,xR),v=ri(ri(ri({},g),typeof m=="number"&&{x:Math.max(o.x,Math.min(m,o.x+o.width))}),typeof p=="number"&&{y:Math.max(o.y,Math.min(p,o.y+o.height))}),b=ri(ri({},u),{},{payload:ri(ri({},u.payload),{},{coordinate:v})});r(b)}else r(u);return}if(i!=null){var x;if(typeof n=="function"){var S={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},w=n(i,S);x=i[w]}else n==="value"&&(x=i.find(I=>String(I.value)===u.payload.label));var{coordinate:O}=u.payload;if(x==null||u.payload.active===!1||O==null||o==null){r(bh({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:E,y:C}=O,M=Math.min(E,o.x+o.width),$=Math.min(C,o.y+o.height),j={x:a==="horizontal"?x.coordinate:M,y:a==="horizontal"?$:x.coordinate},_=bh({active:u.payload.active,coordinate:j,dataKey:u.payload.dataKey,index:String(x.index),label:u.payload.label});r(_)}}};return lo.on(Mh,l),()=>{lo.off(Mh,l)}},[s,r,t,e,n,i,a,o])}function PR(){var e=G(qd),t=G(Yd),r=Ze();k.useEffect(()=>{if(e==null)return $w;var n=(i,a,o)=>{t!==o&&e===i&&r(yR(a))};return lo.on(Mw,n),()=>{lo.off(Mw,n)}},[r,t,e])}function CR(){var e=Ze();k.useEffect(()=>{e(mR())},[e]),ER(),PR()}function kR(e,t,r,n,i,a){var o=G(d=>Q$(d,e,t)),s=G(Yd),l=G(qd),c=G(h1),u=G(gR),f=u?.active;k.useEffect(()=>{if(!f&&l!=null&&s!=null){var d=bh({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n});lo.emit(Mh,l,d,s)}},[f,r,o,i,n,s,l,c,a])}function Rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(r),!0).forEach(function(n){TR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TR(e,t,r){return(t=MR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MR(e){var t=jR(e,"string");return typeof t=="symbol"?t:t+""}function jR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DR(e){return e.dataKey}function NR(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(aD,t)}var Fw=[],IR={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!dn.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function ni(e){var t=_t(e,IR),{active:r,allowEscapeViewBox:n,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:l,offset:c,payloadUniqBy:u,position:f,reverseDirection:d,useTranslate3d:h,wrapperStyle:m,cursor:p,shared:g,trigger:v,defaultIndex:b,portal:x,axisId:S}=t,w=Ze(),O=typeof b=="number"?String(b):b;k.useEffect(()=>{w(n$({shared:g,trigger:v,axisId:S,active:r,defaultIndex:O}))},[w,g,v,S,r,O]);var E=Vf(),C=rb(),M=J4(g),{activeIndex:$,isActive:j}=G(J=>rR(J,M,v,O)),_=G(J=>tR(J,M,v,O)),I=G(J=>Pw(J,M,v,O)),D=G(J=>eR(J,M,v,O)),L=_,W=cR(),H=r??j,[te,Q]=rM([L,H]),F=M==="axis"?I:void 0;kR(M,v,D,F,$,H);var U=x??W;if(U==null)return null;var V=L??Fw;H||(V=Fw),s&&V.length&&(V=OT(L.filter(J=>J.value!=null&&(J.hide!==!0||t.includeHidden)),u,DR));var re=V.length>0,Z=A.createElement(dD,{allowEscapeViewBox:n,animationDuration:i,animationEasing:a,isAnimationActive:l,active:H,coordinate:D,hasPayload:re,offset:c,position:f,reverseDirection:d,useTranslate3d:h,viewBox:E,wrapperStyle:m,lastBoundingBox:te,innerRef:Q,hasPortalFromProps:!!x},NR(o,Lw(Lw({},t),{},{payload:V,label:F,active:H,coordinate:D,accessibilityLayer:C})));return A.createElement(A.Fragment,null,cA.createPortal(Z,U),H&&A.createElement(lR,{cursor:p,tooltipEventType:M,coordinate:D,payload:L,index:$}))}var Dh={},Nh={},Ih={},Bw;function $R(){return Bw||(Bw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,s=null;const l=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),u=()=>{s!==null&&(r.apply(o,s),o=void 0,s=null)},f=()=>{c&&u(),p()};let d=null;const h=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},m=()=>{d!==null&&(clearTimeout(d),d=null)},p=()=>{m(),o=void 0,s=null},g=()=>{u()},v=function(...b){if(i?.aborted)return;o=this,s=b;const x=d==null;h(),l&&x&&u()};return v.schedule=h,v.cancel=p,v.flush=g,i?.addEventListener("abort",p,{once:!0}),v}e.debounce=t})(Ih)),Ih}var zw;function RR(){return zw||(zw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$R();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:s=!0,maxWait:l}=a,c=Array(2);o&&(c[0]="leading"),s&&(c[1]="trailing");let u,f=null;const d=t.debounce(function(...p){u=n.apply(this,p),f=null},i,{edges:c}),h=function(...p){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(u=n.apply(this,p),f=Date.now(),d.cancel(),d.schedule(),u):(d.apply(this,p),u)},m=()=>(d.flush(),u);return h.cancel=d.cancel,h.flush=m,h}e.debounce=r})(Nh)),Nh}var Ww;function LR(){return Ww||(Ww=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=RR();function r(n,i=0,a={}){const{leading:o=!0,trailing:s=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:s})}e.throttle=r})(Dh)),Dh}var $h,Vw;function FR(){return Vw||(Vw=1,$h=LR().throttle),$h}var BR=FR();const zR=Ir(BR);var WR=process.env.NODE_ENV!=="production",co=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(WR&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}};function Hw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hw(Object(r),!0).forEach(function(n){VR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VR(e,t,r){return(t=HR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HR(e){var t=UR(e,"string");return typeof t=="symbol"?t:t+""}function UR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ii=k.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:o=0,minHeight:s,maxHeight:l,children:c,debounce:u=0,id:f,className:d,onResize:h,style:m={}}=e,p=k.useRef(null),g=k.useRef();g.current=h,k.useImperativeHandle(t,()=>p.current);var[v,b]=k.useState({containerWidth:n.width,containerHeight:n.height}),x=k.useCallback((w,O)=>{b(E=>{var C=Math.round(w),M=Math.round(O);return E.containerWidth===C&&E.containerHeight===M?E:{containerWidth:C,containerHeight:M}})},[]);k.useEffect(()=>{var w=M=>{var $,{width:j,height:_}=M[0].contentRect;x(j,_),($=g.current)===null||$===void 0||$.call(g,j,_)};u>0&&(w=zR(w,u,{trailing:!0,leading:!1}));var O=new ResizeObserver(w),{width:E,height:C}=p.current.getBoundingClientRect();return x(E,C),O.observe(p.current),()=>{O.disconnect()}},[x,u]);var S=k.useMemo(()=>{var{containerWidth:w,containerHeight:O}=v;if(w<0||O<0)return null;co(Fn(i)||Fn(a),`The width(%s) and height(%s) are both fixed numbers,
178
- maybe you don't need to use a ResponsiveContainer.`,i,a),co(!r||r>0,"The aspect(%s) must be greater than zero.",r);var E=Fn(i)?w:i,C=Fn(a)?O:a;return r&&r>0&&(E?C=E/r:C&&(E=C*r),l&&C>l&&(C=l)),co(E>0||C>0,`The width(%s) and height(%s) of chart should be greater than 0,
177
+ A`).concat(a,",").concat(a,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"Z")}else b+="L".concat(t,",").concat(r,"Z");return b},sN={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Ab=e=>{var t=_t(e,sN),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:f}=t;if(a<i||c===u)return null;var d=de("recharts-sector",f),h=a-i,m=At(o,h,0,!0),p;return m>0&&Math.abs(c-u)<360?p=oN({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):p=Ob({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:u}),A.createElement("path",ed({},Ue(t,!0),{className:d,d:p}))};function lN(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:s,cy:l,innerRadius:c,outerRadius:u,angle:f}=t,d=it(s,l,c,f),h=it(s,l,u,f);n=d.x,i=d.y,a=h.x,o=h.y}else return Sb(t);return[{x:n,y:i},{x:a,y:o}]}var td={},rd={},nd={},Eb;function cN(){return Eb||(Eb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$y();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(nd)),nd}var Pb;function uN(){return Pb||(Pb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cN();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(rd)),rd}var Cb;function fN(){return Cb||(Cb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zy(),r=uN();function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const s=Math.max(Math.ceil((a-i)/(o||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=i,i+=o;return l}e.range=n})(td)),td}var id,kb;function dN(){return kb||(kb=1,id=fN().range),id}var hN=dN();const Tb=Ir(hN);function hn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function pN(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ad(e){let t,r,n;e.length!==2?(t=hn,r=(s,l)=>hn(e(s),l),n=(s,l)=>e(s)-l):(t=e===hn||e===pN?e:mN,r=e,n=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<0?c=f+1:u=f}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(s,l,c=0,u=s.length){const f=i(s,l,c,u-1);return f>c&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function mN(){return 0}function Mb(e){return e===null?NaN:+e}function*gN(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Wa=ad(hn).right;ad(Mb).center;class jb extends Map{constructor(t,r=bN){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Db(this,t))}has(t){return super.has(Db(this,t))}set(t,r){return super.set(vN(this,t),r)}delete(t){return super.delete(yN(this,t))}}function Db({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function vN({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function yN({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function bN(e){return e!==null&&typeof e=="object"?e.valueOf():e}function xN(e=hn){if(e===hn)return Nb;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Nb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const wN=Math.sqrt(50),_N=Math.sqrt(10),SN=Math.sqrt(2);function cl(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=wN?10:a>=_N?5:a>=SN?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?cl(e,t,r*2):[s,l,c]}function od(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?cl(t,e,r):cl(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function sd(e,t,r){return t=+t,e=+e,r=+r,cl(e,t,r)[2]}function ld(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?sd(t,e,r):sd(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Ib(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function $b(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Rb(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Nb:xN(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/l+d)),m=Math.min(n,Math.floor(t+(l-c)*f/l+d));Rb(e,t,h,m,i)}const a=e[t];let o=r,s=n;for(Va(e,r,t),i(e[n],a)>0&&Va(e,r,n);o<s;){for(Va(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Va(e,r,s):(++s,Va(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Va(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function ON(e,t,r){if(e=Float64Array.from(gN(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return $b(e);if(t>=1)return Ib(e);var n,i=(n-1)*t,a=Math.floor(i),o=Ib(Rb(e,a).subarray(0,a+1)),s=$b(e.subarray(a+1));return o+(s-o)*(i-a)}}function AN(e,t,r=Mb){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function EN(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function sr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Vr(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 cd=Symbol("implicit");function ud(){var e=new jb,t=[],r=[],n=cd;function i(a){let o=e.get(a);if(o===void 0){if(n!==cd)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new jb;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ud(t,r).unknown(n)},sr.apply(i,arguments),i}function fd(){var e=ud().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function f(){var d=t().length,h=i<n,m=h?i:n,p=h?n:i;a=(p-m)/Math.max(1,d-l+c*2),s&&(a=Math.floor(a)),m+=(p-m-a*(d-l))*u,o=a*(1-l),s&&(m=Math.round(m),o=Math.round(o));var g=EN(d).map(function(v){return m+a*v});return r(h?g.reverse():g)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),f()):u},e.copy=function(){return fd(t(),[n,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},sr.apply(f(),arguments)}function Lb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Lb(t())},e}function PN(){return Lb(fd.apply(null,arguments).paddingInner(1))}function dd(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Fb(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ha(){}var Ua=.7,ul=1/Ua,$i="\\s*([+-]?\\d+)\\s*",Ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",CN=/^#([0-9a-f]{3,8})$/,kN=new RegExp(`^rgb\\(${$i},${$i},${$i}\\)$`),TN=new RegExp(`^rgb\\(${Er},${Er},${Er}\\)$`),MN=new RegExp(`^rgba\\(${$i},${$i},${$i},${Ka}\\)$`),jN=new RegExp(`^rgba\\(${Er},${Er},${Er},${Ka}\\)$`),DN=new RegExp(`^hsl\\(${Ka},${Er},${Er}\\)$`),NN=new RegExp(`^hsla\\(${Ka},${Er},${Er},${Ka}\\)$`),Bb={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};dd(Ha,qa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zb,formatHex:zb,formatHex8:IN,formatHsl:$N,formatRgb:Wb,toString:Wb});function zb(){return this.rgb().formatHex()}function IN(){return this.rgb().formatHex8()}function $N(){return qb(this).formatHsl()}function Wb(){return this.rgb().formatRgb()}function qa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=CN.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Vb(t):r===3?new It(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?fl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?fl(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=kN.exec(e))?new It(t[1],t[2],t[3],1):(t=TN.exec(e))?new It(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=MN.exec(e))?fl(t[1],t[2],t[3],t[4]):(t=jN.exec(e))?fl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DN.exec(e))?Kb(t[1],t[2]/100,t[3]/100,1):(t=NN.exec(e))?Kb(t[1],t[2]/100,t[3]/100,t[4]):Bb.hasOwnProperty(e)?Vb(Bb[e]):e==="transparent"?new It(NaN,NaN,NaN,0):null}function Vb(e){return new It(e>>16&255,e>>8&255,e&255,1)}function fl(e,t,r,n){return n<=0&&(e=t=r=NaN),new It(e,t,r,n)}function RN(e){return e instanceof Ha||(e=qa(e)),e?(e=e.rgb(),new It(e.r,e.g,e.b,e.opacity)):new It}function hd(e,t,r,n){return arguments.length===1?RN(e):new It(e,t,r,n??1)}function It(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}dd(It,hd,Fb(Ha,{brighter(e){return e=e==null?ul:Math.pow(ul,e),new It(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ua:Math.pow(Ua,e),new It(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new It(Yn(this.r),Yn(this.g),Yn(this.b),dl(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:Hb,formatHex:Hb,formatHex8:LN,formatRgb:Ub,toString:Ub}));function Hb(){return`#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}`}function LN(){return`#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}${Gn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ub(){const e=dl(this.opacity);return`${e===1?"rgb(":"rgba("}${Yn(this.r)}, ${Yn(this.g)}, ${Yn(this.b)}${e===1?")":`, ${e})`}`}function dl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gn(e){return e=Yn(e),(e<16?"0":"")+e.toString(16)}function Kb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new mr(e,t,r,n)}function qb(e){if(e instanceof mr)return new mr(e.h,e.s,e.l,e.opacity);if(e instanceof Ha||(e=qa(e)),!e)return new mr;if(e instanceof mr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new mr(o,s,l,e.opacity)}function FN(e,t,r,n){return arguments.length===1?qb(e):new mr(e,t,r,n??1)}function mr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}dd(mr,FN,Fb(Ha,{brighter(e){return e=e==null?ul:Math.pow(ul,e),new mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ua:Math.pow(Ua,e),new mr(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new It(pd(e>=240?e-240:e+120,i,n),pd(e,i,n),pd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new mr(Yb(this.h),hl(this.s),hl(this.l),dl(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=dl(this.opacity);return`${e===1?"hsl(":"hsla("}${Yb(this.h)}, ${hl(this.s)*100}%, ${hl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Yb(e){return e=(e||0)%360,e<0?e+360:e}function hl(e){return Math.max(0,Math.min(1,e||0))}function pd(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const md=e=>()=>e;function BN(e,t){return function(r){return e+r*t}}function zN(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function WN(e){return(e=+e)==1?Gb:function(t,r){return r-t?zN(t,r,e):md(isNaN(t)?r:t)}}function Gb(e,t){var r=t-e;return r?BN(e,r):md(isNaN(e)?t:e)}const Xb=(function e(t){var r=WN(t);function n(i,a){var o=r((i=hd(i)).r,(a=hd(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),c=Gb(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return n.gamma=e,n})(1);function VN(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function HN(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function UN(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Ri(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function KN(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function pl(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function qN(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Ri(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var gd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vd=new RegExp(gd.source,"g");function YN(e){return function(){return e}}function GN(e){return function(t){return e(t)+""}}function XN(e,t){var r=gd.lastIndex=vd.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=gd.exec(e))&&(i=vd.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:pl(n,i)})),r=vd.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?GN(l[0].x):YN(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)s[(f=l[u]).i]=f.x(c);return s.join("")})}function Ri(e,t){var r=typeof t,n;return t==null||r==="boolean"?md(t):(r==="number"?pl:r==="string"?(n=qa(t))?(t=n,Xb):XN:t instanceof qa?Xb:t instanceof Date?KN:HN(t)?VN:Array.isArray(t)?UN:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?qN:pl)(e,t)}function yd(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function ZN(e,t){t===void 0&&(t=e,e=Ri);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function JN(e){return function(){return e}}function ml(e){return+e}var Zb=[0,1];function kt(e){return e}function bd(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:JN(isNaN(t)?NaN:.5)}function QN(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function e5(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=bd(i,n),a=r(o,a)):(n=bd(n,i),a=r(a,o)),function(s){return a(n(s))}}function t5(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=bd(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=Wa(e,s,1,n)-1;return a[l](i[l](s))}}function Ya(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function gl(){var e=Zb,t=Zb,r=Ri,n,i,a,o=kt,s,l,c;function u(){var d=Math.min(e.length,t.length);return o!==kt&&(o=QN(e[0],e[d-1])),s=d>2?t5:e5,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((c||(c=s(t,e.map(n),pl)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,ml),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=yd,u()},f.clamp=function(d){return arguments.length?(o=d?!0:kt,u()):o!==kt},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,u()}}function xd(){return gl()(kt,kt)}function r5(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vl(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Li(e){return e=vl(Math.abs(e)),e?e[1]:NaN}function n5(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function i5(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var a5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ga(e){if(!(t=a5.exec(e)))throw new Error("invalid format: "+e);var t;return new wd({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]})}Ga.prototype=wd.prototype;function wd(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+""}wd.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 o5(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Jb;function s5(e,t){var r=vl(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(Jb=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+vl(e,Math.max(0,t+a-1))[0]}function Qb(e,t){var r=vl(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const ex={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:r5,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)=>Qb(e*100,t),r:Qb,s:s5,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function tx(e){return e}var rx=Array.prototype.map,nx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l5(e){var t=e.grouping===void 0||e.thousands===void 0?tx:n5(rx.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?tx:i5(rx.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=Ga(f);var d=f.fill,h=f.align,m=f.sign,p=f.symbol,g=f.zero,v=f.width,b=f.comma,x=f.precision,S=f.trim,w=f.type;w==="n"?(b=!0,w="g"):ex[w]||(x===void 0&&(x=12),S=!0,w="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var O=p==="$"?r:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",E=p==="$"?n:/[%p]/.test(w)?o:"",C=ex[w],M=/[defgprs%]/.test(w);x=x===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function $(j){var _=O,I=E,D,L,W;if(w==="c")I=C(j)+I,j="";else{j=+j;var H=j<0||1/j<0;if(j=isNaN(j)?l:C(Math.abs(j),x),S&&(j=o5(j)),H&&+j==0&&m!=="+"&&(H=!1),_=(H?m==="("?m:s:m==="-"||m==="("?"":m)+_,I=(w==="s"?nx[8+Jb/3]:"")+I+(H&&m==="("?")":""),M){for(D=-1,L=j.length;++D<L;)if(W=j.charCodeAt(D),48>W||W>57){I=(W===46?i+j.slice(D+1):j.slice(D))+I,j=j.slice(0,D);break}}}b&&!g&&(j=t(j,1/0));var te=_.length+j.length+I.length,Q=te<v?new Array(v-te+1).join(d):"";switch(b&&g&&(j=t(Q+j,Q.length?v-I.length:1/0),Q=""),h){case"<":j=_+j+I+Q;break;case"=":j=_+Q+j+I;break;case"^":j=Q.slice(0,te=Q.length>>1)+_+j+I+Q.slice(te);break;default:j=Q+_+j+I;break}return a(j)}return $.toString=function(){return f+""},$}function u(f,d){var h=c((f=Ga(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Li(d)/3)))*3,p=Math.pow(10,-m),g=nx[8+m/3];return function(v){return h(p*v)+g}}return{format:c,formatPrefix:u}}var yl,_d,ix;c5({thousands:",",grouping:[3],currency:["$",""]});function c5(e){return yl=l5(e),_d=yl.format,ix=yl.formatPrefix,yl}function u5(e){return Math.max(0,-Li(Math.abs(e)))}function f5(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Li(t)/3)))*3-Li(Math.abs(e)))}function d5(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Li(t)-Li(e))+1}function ax(e,t,r,n){var i=ld(e,t,r),a;switch(n=Ga(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=f5(i,o))&&(n.precision=a),ix(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=d5(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=u5(i))&&(n.precision=a-(n.type==="%")*2);break}}return _d(n)}function pn(e){var t=e.domain;return e.ticks=function(r){var n=t();return od(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ax(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=sd(o,s,r),c===l)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function ox(){var e=xd();return e.copy=function(){return Ya(e,ox())},sr.apply(e,arguments),pn(e)}function sx(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ml),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return sx(e).unknown(t)},e=arguments.length?Array.from(e,ml):[0,1],pn(r)}function lx(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function cx(e){return Math.log(e)}function ux(e){return Math.exp(e)}function h5(e){return-Math.log(-e)}function p5(e){return-Math.exp(-e)}function m5(e){return isFinite(e)?+("1e"+e):e<0?0:e}function g5(e){return e===10?m5:e===Math.E?Math.exp:t=>Math.pow(e,t)}function v5(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 fx(e){return(t,r)=>-e(-t,r)}function Sd(e){const t=e(cx,ux),r=t.domain;let n=10,i,a;function o(){return i=v5(n),a=g5(n),r()[0]<0?(i=fx(i),a=fx(a),e(h5,p5)):e(cx,ux),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let d=i(c),h=i(u),m,p;const g=s==null?10:+s;let v=[];if(!(n%1)&&h-d<g){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(m=1;m<n;++m)if(p=d<0?m/a(-d):m*a(d),!(p<c)){if(p>u)break;v.push(p)}}else for(;d<=h;++d)for(m=n-1;m>=1;--m)if(p=d>0?m/a(-d):m*a(d),!(p<c)){if(p>u)break;v.push(p)}v.length*2<g&&(v=od(c,u,g))}else v=od(d,h,Math.min(h-d,g)).map(a);return f?v.reverse():v},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ga(l)).precision==null&&(l.trim=!0),l=_d(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/a(Math.round(i(u)));return f*n<n-.5&&(f*=n),f<=c?l(u):""}},t.nice=()=>r(lx(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function dx(){const e=Sd(gl()).domain([1,10]);return e.copy=()=>Ya(e,dx()).base(e.base()),sr.apply(e,arguments),e}function hx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function px(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Od(e){var t=1,r=e(hx(t),px(t));return r.constant=function(n){return arguments.length?e(hx(t=+n),px(t)):t},pn(r)}function mx(){var e=Od(gl());return e.copy=function(){return Ya(e,mx()).constant(e.constant())},sr.apply(e,arguments)}function gx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function y5(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function b5(e){return e<0?-e*e:e*e}function Ad(e){var t=e(kt,kt),r=1;function n(){return r===1?e(kt,kt):r===.5?e(y5,b5):e(gx(r),gx(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},pn(t)}function Ed(){var e=Ad(gl());return e.copy=function(){return Ya(e,Ed()).exponent(e.exponent())},sr.apply(e,arguments),e}function x5(){return Ed.apply(null,arguments).exponent(.5)}function vx(e){return Math.sign(e)*e*e}function w5(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function yx(){var e=xd(),t=[0,1],r=!1,n;function i(a){var o=w5(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(vx(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,ml)).map(vx)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return yx(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},sr.apply(i,arguments),pn(i)}function bx(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=AN(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Wa(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(hn),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return bx().domain(e).range(t).unknown(n)},sr.apply(a,arguments)}function xx(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[Wa(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return xx().domain([e,t]).range(i).unknown(a)},sr.apply(pn(o),arguments)}function wx(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Wa(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return wx().domain(e).range(t).unknown(r)},sr.apply(i,arguments)}const Pd=new Date,Cd=new Date;function lt(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>lt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Pd.setTime(+a),Cd.setTime(+o),e(Pd),e(Cd),Math.floor(r(Pd,Cd))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const bl=lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bl),bl.range;const Hr=1e3,lr=Hr*60,Ur=lr*60,Kr=Ur*24,kd=Kr*7,_x=Kr*30,Td=Kr*365,Xn=lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Hr)},(e,t)=>(t-e)/Hr,e=>e.getUTCSeconds());Xn.range;const Md=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hr)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getMinutes());Md.range;const jd=lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCMinutes());jd.range;const Dd=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hr-e.getMinutes()*lr)},(e,t)=>{e.setTime(+e+t*Ur)},(e,t)=>(t-e)/Ur,e=>e.getHours());Dd.range;const Nd=lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ur)},(e,t)=>(t-e)/Ur,e=>e.getUTCHours());Nd.range;const Xa=lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lr)/Kr,e=>e.getDate()-1);Xa.range;const xl=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Kr,e=>e.getUTCDate()-1);xl.range;const Sx=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Kr,e=>Math.floor(e/Kr));Sx.range;function Zn(e){return lt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*lr)/kd)}const wl=Zn(0),_l=Zn(1),_5=Zn(2),S5=Zn(3),Fi=Zn(4),O5=Zn(5),A5=Zn(6);wl.range,_l.range,_5.range,S5.range,Fi.range,O5.range,A5.range;function Jn(e){return lt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/kd)}const Sl=Jn(0),Ol=Jn(1),E5=Jn(2),P5=Jn(3),Bi=Jn(4),C5=Jn(5),k5=Jn(6);Sl.range,Ol.range,E5.range,P5.range,Bi.range,C5.range,k5.range;const Id=lt(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());Id.range;const $d=lt(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());$d.range;const qr=lt(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());qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}),qr.range;const Yr=lt(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());Yr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}),Yr.range;function Ox(e,t,r,n,i,a){const o=[[Xn,1,Hr],[Xn,5,5*Hr],[Xn,15,15*Hr],[Xn,30,30*Hr],[a,1,lr],[a,5,5*lr],[a,15,15*lr],[a,30,30*lr],[i,1,Ur],[i,3,3*Ur],[i,6,6*Ur],[i,12,12*Ur],[n,1,Kr],[n,2,2*Kr],[r,1,kd],[t,1,_x],[t,3,3*_x],[e,1,Td]];function s(c,u,f){const d=u<c;d&&([c,u]=[u,c]);const h=f&&typeof f.range=="function"?f:l(c,u,f),m=h?h.range(c,+u+1):[];return d?m.reverse():m}function l(c,u,f){const d=Math.abs(u-c)/f,h=ad(([,,g])=>g).right(o,d);if(h===o.length)return e.every(ld(c/Td,u/Td,f));if(h===0)return bl.every(Math.max(ld(c,u,f),1));const[m,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return m.every(p)}return[s,l]}const[T5,M5]=Ox(Yr,$d,Sl,Sx,Nd,jd),[j5,D5]=Ox(qr,Id,wl,Xa,Dd,Md);function Rd(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 Ld(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 Za(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function N5(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Ja(i),u=Qa(i),f=Ja(a),d=Qa(a),h=Ja(o),m=Qa(o),p=Ja(s),g=Qa(s),v=Ja(l),b=Qa(l),x={a:H,A:te,b:Q,B:F,c:null,d:Tx,e:Tx,f:nI,g:hI,G:mI,H:eI,I:tI,j:rI,L:Mx,m:iI,M:aI,p:U,q:V,Q:Rx,s:Lx,S:oI,u:sI,U:lI,V:cI,w:uI,W:fI,x:null,X:null,y:dI,Y:pI,Z:gI,"%":$x},S={a:re,A:Z,b:J,B:ee,c:null,d:Dx,e:Dx,f:xI,g:TI,G:jI,H:vI,I:yI,j:bI,L:Nx,m:wI,M:_I,p:oe,q:le,Q:Rx,s:Lx,S:SI,u:OI,U:AI,V:EI,w:PI,W:CI,x:null,X:null,y:kI,Y:MI,Z:DI,"%":$x},w={a:$,A:j,b:_,B:I,c:D,d:Cx,e:Cx,f:X5,g:Px,G:Ex,H:kx,I:kx,j:K5,L:G5,m:U5,M:q5,p:M,q:H5,Q:J5,s:Q5,S:Y5,u:F5,U:B5,V:z5,w:L5,W:W5,x:L,X:W,y:Px,Y:Ex,Z:V5,"%":Z5};x.x=O(r,x),x.X=O(n,x),x.c=O(t,x),S.x=O(r,S),S.X=O(n,S),S.c=O(t,S);function O(B,K){return function(ne){var T=[],De=-1,pe=0,tt=B.length,dt,Nr,Bo;for(ne instanceof Date||(ne=new Date(+ne));++De<tt;)B.charCodeAt(De)===37&&(T.push(B.slice(pe,De)),(Nr=Ax[dt=B.charAt(++De)])!=null?dt=B.charAt(++De):Nr=dt==="e"?" ":"0",(Bo=K[dt])&&(dt=Bo(ne,Nr)),T.push(dt),pe=De+1);return T.push(B.slice(pe,De)),T.join("")}}function E(B,K){return function(ne){var T=Za(1900,void 0,1),De=C(T,B,ne+="",0),pe,tt;if(De!=ne.length)return null;if("Q"in T)return new Date(T.Q);if("s"in T)return new Date(T.s*1e3+("L"in T?T.L:0));if(K&&!("Z"in T)&&(T.Z=0),"p"in T&&(T.H=T.H%12+T.p*12),T.m===void 0&&(T.m="q"in T?T.q:0),"V"in T){if(T.V<1||T.V>53)return null;"w"in T||(T.w=1),"Z"in T?(pe=Ld(Za(T.y,0,1)),tt=pe.getUTCDay(),pe=tt>4||tt===0?Ol.ceil(pe):Ol(pe),pe=xl.offset(pe,(T.V-1)*7),T.y=pe.getUTCFullYear(),T.m=pe.getUTCMonth(),T.d=pe.getUTCDate()+(T.w+6)%7):(pe=Rd(Za(T.y,0,1)),tt=pe.getDay(),pe=tt>4||tt===0?_l.ceil(pe):_l(pe),pe=Xa.offset(pe,(T.V-1)*7),T.y=pe.getFullYear(),T.m=pe.getMonth(),T.d=pe.getDate()+(T.w+6)%7)}else("W"in T||"U"in T)&&("w"in T||(T.w="u"in T?T.u%7:"W"in T?1:0),tt="Z"in T?Ld(Za(T.y,0,1)).getUTCDay():Rd(Za(T.y,0,1)).getDay(),T.m=0,T.d="W"in T?(T.w+6)%7+T.W*7-(tt+5)%7:T.w+T.U*7-(tt+6)%7);return"Z"in T?(T.H+=T.Z/100|0,T.M+=T.Z%100,Ld(T)):Rd(T)}}function C(B,K,ne,T){for(var De=0,pe=K.length,tt=ne.length,dt,Nr;De<pe;){if(T>=tt)return-1;if(dt=K.charCodeAt(De++),dt===37){if(dt=K.charAt(De++),Nr=w[dt in Ax?K.charAt(De++):dt],!Nr||(T=Nr(B,ne,T))<0)return-1}else if(dt!=ne.charCodeAt(T++))return-1}return T}function M(B,K,ne){var T=c.exec(K.slice(ne));return T?(B.p=u.get(T[0].toLowerCase()),ne+T[0].length):-1}function $(B,K,ne){var T=h.exec(K.slice(ne));return T?(B.w=m.get(T[0].toLowerCase()),ne+T[0].length):-1}function j(B,K,ne){var T=f.exec(K.slice(ne));return T?(B.w=d.get(T[0].toLowerCase()),ne+T[0].length):-1}function _(B,K,ne){var T=v.exec(K.slice(ne));return T?(B.m=b.get(T[0].toLowerCase()),ne+T[0].length):-1}function I(B,K,ne){var T=p.exec(K.slice(ne));return T?(B.m=g.get(T[0].toLowerCase()),ne+T[0].length):-1}function D(B,K,ne){return C(B,t,K,ne)}function L(B,K,ne){return C(B,r,K,ne)}function W(B,K,ne){return C(B,n,K,ne)}function H(B){return o[B.getDay()]}function te(B){return a[B.getDay()]}function Q(B){return l[B.getMonth()]}function F(B){return s[B.getMonth()]}function U(B){return i[+(B.getHours()>=12)]}function V(B){return 1+~~(B.getMonth()/3)}function re(B){return o[B.getUTCDay()]}function Z(B){return a[B.getUTCDay()]}function J(B){return l[B.getUTCMonth()]}function ee(B){return s[B.getUTCMonth()]}function oe(B){return i[+(B.getUTCHours()>=12)]}function le(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var K=O(B+="",x);return K.toString=function(){return B},K},parse:function(B){var K=E(B+="",!1);return K.toString=function(){return B},K},utcFormat:function(B){var K=O(B+="",S);return K.toString=function(){return B},K},utcParse:function(B){var K=E(B+="",!0);return K.toString=function(){return B},K}}}var Ax={"-":"",_:" ",0:"0"},mt=/^\s*\d+/,I5=/^%/,$5=/[\\^$*+?|[\]().{}]/g;function ge(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function R5(e){return e.replace($5,"\\$&")}function Ja(e){return new RegExp("^(?:"+e.map(R5).join("|")+")","i")}function Qa(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function L5(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function F5(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function B5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function z5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function W5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ex(e,t,r){var n=mt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Px(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function V5(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function H5(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function U5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Cx(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function K5(e,t,r){var n=mt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function kx(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function q5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Y5(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function G5(e,t,r){var n=mt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function X5(e,t,r){var n=mt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Z5(e,t,r){var n=I5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function J5(e,t,r){var n=mt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Q5(e,t,r){var n=mt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Tx(e,t){return ge(e.getDate(),t,2)}function eI(e,t){return ge(e.getHours(),t,2)}function tI(e,t){return ge(e.getHours()%12||12,t,2)}function rI(e,t){return ge(1+Xa.count(qr(e),e),t,3)}function Mx(e,t){return ge(e.getMilliseconds(),t,3)}function nI(e,t){return Mx(e,t)+"000"}function iI(e,t){return ge(e.getMonth()+1,t,2)}function aI(e,t){return ge(e.getMinutes(),t,2)}function oI(e,t){return ge(e.getSeconds(),t,2)}function sI(e){var t=e.getDay();return t===0?7:t}function lI(e,t){return ge(wl.count(qr(e)-1,e),t,2)}function jx(e){var t=e.getDay();return t>=4||t===0?Fi(e):Fi.ceil(e)}function cI(e,t){return e=jx(e),ge(Fi.count(qr(e),e)+(qr(e).getDay()===4),t,2)}function uI(e){return e.getDay()}function fI(e,t){return ge(_l.count(qr(e)-1,e),t,2)}function dI(e,t){return ge(e.getFullYear()%100,t,2)}function hI(e,t){return e=jx(e),ge(e.getFullYear()%100,t,2)}function pI(e,t){return ge(e.getFullYear()%1e4,t,4)}function mI(e,t){var r=e.getDay();return e=r>=4||r===0?Fi(e):Fi.ceil(e),ge(e.getFullYear()%1e4,t,4)}function gI(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ge(t/60|0,"0",2)+ge(t%60,"0",2)}function Dx(e,t){return ge(e.getUTCDate(),t,2)}function vI(e,t){return ge(e.getUTCHours(),t,2)}function yI(e,t){return ge(e.getUTCHours()%12||12,t,2)}function bI(e,t){return ge(1+xl.count(Yr(e),e),t,3)}function Nx(e,t){return ge(e.getUTCMilliseconds(),t,3)}function xI(e,t){return Nx(e,t)+"000"}function wI(e,t){return ge(e.getUTCMonth()+1,t,2)}function _I(e,t){return ge(e.getUTCMinutes(),t,2)}function SI(e,t){return ge(e.getUTCSeconds(),t,2)}function OI(e){var t=e.getUTCDay();return t===0?7:t}function AI(e,t){return ge(Sl.count(Yr(e)-1,e),t,2)}function Ix(e){var t=e.getUTCDay();return t>=4||t===0?Bi(e):Bi.ceil(e)}function EI(e,t){return e=Ix(e),ge(Bi.count(Yr(e),e)+(Yr(e).getUTCDay()===4),t,2)}function PI(e){return e.getUTCDay()}function CI(e,t){return ge(Ol.count(Yr(e)-1,e),t,2)}function kI(e,t){return ge(e.getUTCFullYear()%100,t,2)}function TI(e,t){return e=Ix(e),ge(e.getUTCFullYear()%100,t,2)}function MI(e,t){return ge(e.getUTCFullYear()%1e4,t,4)}function jI(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Bi(e):Bi.ceil(e),ge(e.getUTCFullYear()%1e4,t,4)}function DI(){return"+0000"}function $x(){return"%"}function Rx(e){return+e}function Lx(e){return Math.floor(+e/1e3)}var zi,Fx,Bx;NI({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 NI(e){return zi=N5(e),Fx=zi.format,zi.parse,Bx=zi.utcFormat,zi.utcParse,zi}function II(e){return new Date(e)}function $I(e){return e instanceof Date?+e:+new Date(+e)}function Fd(e,t,r,n,i,a,o,s,l,c){var u=xd(),f=u.invert,d=u.domain,h=c(".%L"),m=c(":%S"),p=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),b=c("%b %d"),x=c("%B"),S=c("%Y");function w(O){return(l(O)<O?h:s(O)<O?m:o(O)<O?p:a(O)<O?g:n(O)<O?i(O)<O?v:b:r(O)<O?x:S)(O)}return u.invert=function(O){return new Date(f(O))},u.domain=function(O){return arguments.length?d(Array.from(O,$I)):d().map(II)},u.ticks=function(O){var E=d();return e(E[0],E[E.length-1],O??10)},u.tickFormat=function(O,E){return E==null?w:c(E)},u.nice=function(O){var E=d();return(!O||typeof O.range!="function")&&(O=t(E[0],E[E.length-1],O??10)),O?d(lx(E,O)):u},u.copy=function(){return Ya(u,Fd(e,t,r,n,i,a,o,s,l,c))},u}function RI(){return sr.apply(Fd(j5,D5,qr,Id,wl,Xa,Dd,Md,Xn,Fx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function LI(){return sr.apply(Fd(T5,M5,Yr,$d,Sl,xl,Nd,jd,Xn,Bx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Al(){var e=0,t=1,r,n,i,a,o=kt,s=!1,l;function c(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(d){var h,m;return arguments.length?([h,m]=d,o=f(h,m),c):[o(0),o(1)]}}return c.range=u(Ri),c.rangeRound=u(yd),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function mn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function zx(){var e=pn(Al()(kt));return e.copy=function(){return mn(e,zx())},Vr.apply(e,arguments)}function Wx(){var e=Sd(Al()).domain([1,10]);return e.copy=function(){return mn(e,Wx()).base(e.base())},Vr.apply(e,arguments)}function Vx(){var e=Od(Al());return e.copy=function(){return mn(e,Vx()).constant(e.constant())},Vr.apply(e,arguments)}function Bd(){var e=Ad(Al());return e.copy=function(){return mn(e,Bd()).exponent(e.exponent())},Vr.apply(e,arguments)}function FI(){return Bd.apply(null,arguments).exponent(.5)}function Hx(){var e=[],t=kt;function r(n){if(n!=null&&!isNaN(n=+n))return t((Wa(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(hn),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>ON(e,a/n))},r.copy=function(){return Hx(t).domain(e)},Vr.apply(r,arguments)}function El(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,c=kt,u,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+u(p))-a)*(n*p<n*a?s:l),c(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=u(e=+e),a=u(t=+t),o=u(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(c=p,h):c};function m(p){return function(g){var v,b,x;return arguments.length?([v,b,x]=g,c=ZN(p,[v,b,x]),h):[c(0),c(.5),c(1)]}}return h.range=m(Ri),h.rangeRound=m(yd),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return u=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Ux(){var e=pn(El()(kt));return e.copy=function(){return mn(e,Ux())},Vr.apply(e,arguments)}function Kx(){var e=Sd(El()).domain([.1,1,10]);return e.copy=function(){return mn(e,Kx()).base(e.base())},Vr.apply(e,arguments)}function qx(){var e=Od(El());return e.copy=function(){return mn(e,qx()).constant(e.constant())},Vr.apply(e,arguments)}function zd(){var e=Ad(El());return e.copy=function(){return mn(e,zd()).exponent(e.exponent())},Vr.apply(e,arguments)}function BI(){return zd.apply(null,arguments).exponent(.5)}const eo=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:fd,scaleDiverging:Ux,scaleDivergingLog:Kx,scaleDivergingPow:zd,scaleDivergingSqrt:BI,scaleDivergingSymlog:qx,scaleIdentity:sx,scaleImplicit:cd,scaleLinear:ox,scaleLog:dx,scaleOrdinal:ud,scalePoint:PN,scalePow:Ed,scaleQuantile:bx,scaleQuantize:xx,scaleRadial:yx,scaleSequential:zx,scaleSequentialLog:Wx,scaleSequentialPow:Bd,scaleSequentialQuantile:Hx,scaleSequentialSqrt:FI,scaleSequentialSymlog:Vx,scaleSqrt:x5,scaleSymlog:mx,scaleThreshold:wx,scaleTime:RI,scaleUtc:LI,tickFormat:ax},Symbol.toStringTag,{value:"Module"}));var gn=e=>e.chartData,Wd=N([gn],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Pl=(e,t,r,n)=>n?Wd(e):gn(e);function Wi(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(Yt(t)&&Yt(r))return!0}return!1}function Yx(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function zI(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(Yt(r))i=r;else if(typeof r=="function")return;if(Yt(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Wi(o))return o}}function WI(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Wi(n))return Yx(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i==="auto")t!=null&&(o=Math.min(...t));else if(X(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&z0.test(i)){var l=z0.exec(i);if(l==null||t==null)o=void 0;else{var c=+l[1];o=t[0]-c}}else o=t?.[0];if(a==="auto")t!=null&&(s=Math.max(...t));else if(X(a))s=a;else if(typeof a=="function")try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a=="string"&&W0.test(a)){var u=W0.exec(a);if(u==null||t==null)s=void 0;else{var f=+u[1];s=t[1]+f}}else s=t?.[1];var d=[o,s];if(Wi(d))return t==null?d:Yx(d,t,r)}}}var Vi=1e9,VI={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ud,We=!0,cr="[DecimalError] ",Qn=cr+"Invalid argument: ",Vd=cr+"Exponent out of range: ",Hi=Math.floor,ei=Math.pow,HI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Gt,gt=1e7,Le=7,Gx=9007199254740991,Cl=Hi(Gx/Le),Y={};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Y.comparedTo=Y.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1},Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Le;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r},Y.dividedBy=Y.div=function(e){return Gr(this,new this.constructor(e))},Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return Me(Gr(t,new r(e),0,1),r.precision)},Y.equals=Y.eq=function(e){return!this.cmp(e)},Y.exponent=function(){return at(this)},Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0},Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0},Y.isInteger=Y.isint=function(){return this.e>this.d.length-2},Y.isNegative=Y.isneg=function(){return this.s<0},Y.isPositive=Y.ispos=function(){return this.s>0},Y.isZero=function(){return this.s===0},Y.lessThan=Y.lt=function(e){return this.cmp(e)<0},Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1},Y.logarithm=Y.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Gt))throw Error(cr+"NaN");if(r.s<1)throw Error(cr+(r.s?"NaN":"-Infinity"));return r.eq(Gt)?new n(0):(We=!1,t=Gr(to(r,a),to(e,a),a),We=!0,Me(t,i))},Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qx(t,e):Xx(t,(e.s=-e.s,e))},Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(cr+"NaN");return r.s?(We=!1,t=Gr(r,e,0,1).times(e),We=!0,r.minus(t)):Me(new n(r),i)},Y.naturalExponential=Y.exp=function(){return Zx(this)},Y.naturalLogarithm=Y.ln=function(){return to(this)},Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Xx(t,e):Qx(t,(e.s=-e.s,e))},Y.precision=Y.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qn+e);if(t=at(i)+1,n=i.d.length-1,r=n*Le+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},Y.squareRoot=Y.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(cr+"NaN")}for(e=at(s),We=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Cr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Hi((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Gr(s,a,o+2)).times(.5),Cr(a.d).slice(0,o)===(t=Cr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Me(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return We=!0,Me(n,r)},Y.times=Y.mul=function(e){var t,r,n,i,a,o,s,l,c,u=this,f=u.constructor,d=u.d,h=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,l=d.length,c=h.length,l<c&&(a=d,d=h,h=a,o=l,l=c,c=o),a=[],o=l+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%gt|0,t=s/gt|0;a[i]=(a[i]+t)%gt|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,We?Me(e,f.precision):e},Y.toDecimalPlaces=Y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Pr(e,0,Vi),t===void 0?t=n.rounding:Pr(t,0,8),Me(r,e+at(r)+1,t))},Y.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ti(n,!0):(Pr(e,0,Vi),t===void 0?t=i.rounding:Pr(t,0,8),n=Me(new i(n),e+1,t),r=ti(n,!0,e+1)),r},Y.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ti(i):(Pr(e,0,Vi),t===void 0?t=a.rounding:Pr(t,0,8),n=Me(new a(i),e+at(i)+1,t),r=ti(n.abs(),!1,e+at(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return Me(new t(e),at(e)+1,t.rounding)},Y.toNumber=function(){return+this},Y.toPower=Y.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Gt);if(s=new l(s),!s.s){if(e.s<1)throw Error(cr+"Infinity");return s}if(s.eq(Gt))return s;if(n=l.precision,e.eq(Gt))return Me(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=u<0?-u:u)<=Gx){for(i=new l(Gt),t=Math.ceil(n/Le+4),We=!1;r%2&&(i=i.times(s),e1(i.d,t)),r=Hi(r/2),r!==0;)s=s.times(s),e1(s.d,t);return We=!0,e.s<0?new l(Gt).div(i):Me(i,n)}}else if(a<0)throw Error(cr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,We=!1,i=e.times(to(s,n+c)),We=!0,i=Zx(i),i.s=a,i},Y.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=at(i),n=ti(i,r<=a.toExpNeg||r>=a.toExpPos)):(Pr(e,1,Vi),t===void 0?t=a.rounding:Pr(t,0,8),i=Me(new a(i),e,t),r=at(i),n=ti(i,e<=r||r<=a.toExpNeg,e)),n},Y.toSignificantDigits=Y.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Pr(e,1,Vi),t===void 0?t=n.rounding:Pr(t,0,8)),Me(new n(r),e,t)},Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=at(e),r=e.constructor;return ti(e,t<=r.toExpNeg||t>=r.toExpPos)};function Xx(e,t){var r,n,i,a,o,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),We?Me(t,f):t;if(l=e.d,c=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=c.length):(n=c,i=o,s=l.length),o=Math.ceil(f/Le),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=c.length,s-a<0&&(a=s,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/gt|0,l[a]%=gt;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,We?Me(t,f):t}function Pr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Qn+e)}function Cr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Le-n.length,r&&(a+=vn(r)),a+=n;o=e[t],n=o+"",r=Le-n.length,r&&(a+=vn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Gr=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%gt|0,o=a/gt|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*gt+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,c,u,f,d,h,m,p,g,v,b,x,S,w,O,E,C,M=n.constructor,$=n.s==i.s?1:-1,j=n.d,_=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(cr+"Division by zero");for(l=n.e-i.e,E=_.length,w=j.length,h=new M($),m=h.d=[],c=0;_[c]==(j[c]||0);)++c;if(_[c]>(j[c]||0)&&--l,a==null?b=a=M.precision:o?b=a+(at(n)-at(i))+1:b=a,b<0)return new M(0);if(b=b/Le+2|0,c=0,E==1)for(u=0,_=_[0],b++;(c<w||u)&&b--;c++)x=u*gt+(j[c]||0),m[c]=x/_|0,u=x%_|0;else{for(u=gt/(_[0]+1)|0,u>1&&(_=e(_,u),j=e(j,u),E=_.length,w=j.length),S=E,p=j.slice(0,E),g=p.length;g<E;)p[g++]=0;C=_.slice(),C.unshift(0),O=_[0],_[1]>=gt/2&&++O;do u=0,s=t(_,p,E,g),s<0?(v=p[0],E!=g&&(v=v*gt+(p[1]||0)),u=v/O|0,u>1?(u>=gt&&(u=gt-1),f=e(_,u),d=f.length,g=p.length,s=t(f,p,d,g),s==1&&(u--,r(f,E<d?C:_,d))):(u==0&&(s=u=1),f=_.slice()),d=f.length,d<g&&f.unshift(0),r(p,f,g),s==-1&&(g=p.length,s=t(_,p,E,g),s<1&&(u++,r(p,E<g?C:_,g))),g=p.length):s===0&&(u++,p=[0]),m[c++]=u,s&&p[0]?p[g++]=j[S]||0:(p=[j[S]],g=1);while((S++<w||p[0]!==void 0)&&b--)}return m[0]||m.shift(),h.e=l,Me(h,o?a+at(h)+1:a)}})();function Zx(e,t){var r,n,i,a,o,s,l=0,c=0,u=e.constructor,f=u.precision;if(at(e)>16)throw Error(Vd+at(e));if(!e.s)return new u(Gt);for(We=!1,s=f,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(ei(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new u(Gt),u.precision=s;;){if(i=Me(i.times(e),s),r=r.times(++l),o=a.plus(Gr(i,r,s)),Cr(o.d).slice(0,s)===Cr(a.d).slice(0,s)){for(;c--;)a=Me(a.times(a),s);return u.precision=f,t==null?(We=!0,Me(a,f)):a}a=o}}function at(e){for(var t=e.e*Le,r=e.d[0];r>=10;r/=10)t++;return t}function Hd(e,t,r){if(t>e.LN10.sd())throw We=!0,r&&(e.precision=r),Error(cr+"LN10 precision limit exceeded");return Me(new e(e.LN10),t)}function vn(e){for(var t="";e--;)t+="0";return t}function to(e,t){var r,n,i,a,o,s,l,c,u,f=1,d=10,h=e,m=h.d,p=h.constructor,g=p.precision;if(h.s<1)throw Error(cr+(h.s?"NaN":"-Infinity"));if(h.eq(Gt))return new p(0);if(t==null?(We=!1,c=g):c=t,h.eq(10))return t==null&&(We=!0),Hd(p,c);if(c+=d,p.precision=c,r=Cr(m),n=r.charAt(0),a=at(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Cr(h.d),n=r.charAt(0),f++;a=at(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return l=Hd(p,c+2,g).times(a+""),h=to(new p(n+"."+r.slice(1)),c-d).plus(l),p.precision=g,t==null?(We=!0,Me(h,g)):h;for(s=o=h=Gr(h.minus(Gt),h.plus(Gt),c),u=Me(h.times(h),c),i=3;;){if(o=Me(o.times(u),c),l=s.plus(Gr(o,new p(i),c)),Cr(l.d).slice(0,c)===Cr(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(Hd(p,c+2,g).times(a+""))),s=Gr(s,new p(f),c),p.precision=g,t==null?(We=!0,Me(s,g)):s;s=l,i+=2}}function Jx(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Hi(r/Le),e.d=[],n=(r+1)%Le,r<0&&(n+=Le),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Le;n<i;)e.d.push(+t.slice(n,n+=Le));t=t.slice(n),n=Le-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),We&&(e.e>Cl||e.e<-Cl))throw Error(Vd+r)}else e.s=0,e.e=0,e.d=[0];return e}function Me(e,t,r){var n,i,a,o,s,l,c,u,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Le,i=t,c=f[u=0];else{if(u=Math.ceil((n+1)/Le),a=f.length,u>=a)return e;for(c=a=f[u],o=1;a>=10;a/=10)o++;n%=Le,i=n-Le+o}if(r!==void 0&&(a=ei(10,o-i-1),s=c/a%10|0,l=t<0||f[u+1]!==void 0||c%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?c/ei(10,o-i):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=at(e),f.length=1,t=t-a-1,f[0]=ei(10,(Le-t%Le)%Le),e.e=Hi(-t/Le)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,a=1,u--):(f.length=u+1,a=ei(10,Le-n),f[u]=i>0?(c/ei(10,o-i)%ei(10,i)|0)*a:0),l)for(;;)if(u==0){(f[0]+=a)==gt&&(f[0]=1,++e.e);break}else{if(f[u]+=a,f[u]!=gt)break;f[u--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(We&&(e.e>Cl||e.e<-Cl))throw Error(Vd+at(e));return e}function Qx(e,t){var r,n,i,a,o,s,l,c,u,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),We?Me(t,h):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=f.length):(r=f,n=c,s=l.length),i=Math.max(Math.ceil(h/Le),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){u=l[i]<f[i];break}o=0}for(u&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=gt-1;--l[a],l[i]+=gt}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,We?Me(t,h):t):new d(0)}function ti(e,t,r){var n,i=at(e),a=Cr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+vn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+vn(-i-1)+a,r&&(n=r-o)>0&&(a+=vn(n))):i>=o?(a+=vn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+vn(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=vn(n))),e.s<0?"-"+a:a}function e1(e,t){if(e.length>t)return e.length=t,!0}function t1(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Qn+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Jx(o,a.toString())}else if(typeof a!="string")throw Error(Qn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,HI.test(a))Jx(o,a);else throw Error(Qn+a)}if(i.prototype=Y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t1,i.config=i.set=UI,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function UI(e){if(!e||typeof e!="object")throw Error(cr+"Object expected");var t,r,n,i=["precision",1,Vi,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Hi(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Qn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Qn+r+": "+n);return this}var Ud=t1(VI);Gt=new Ud(1);const Ee=Ud;var KI=e=>e,r1={},n1=e=>e===r1,i1=e=>function t(){return arguments.length===0||arguments.length===1&&n1(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},a1=(e,t)=>e===1?t:i1(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter(o=>o!==r1).length;return a>=e?t(...n):a1(e-a,i1(function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];var c=n.map(u=>n1(u)?s.shift():u);return t(...c,...s)}))}),kl=e=>a1(e.length,e),Kd=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},qI=kl((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),YI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return KI;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce((s,l)=>l(s),a(...arguments))}},qd=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),o1=e=>{var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t&&i.every((o,s)=>{var l;return o===((l=t)===null||l===void 0?void 0:l[s])})||(t=i,r=e(...i)),r}};function s1(e){var t;return e===0?t=1:t=Math.floor(new Ee(e).abs().log(10).toNumber())+1,t}function l1(e,t,r){for(var n=new Ee(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}kl((e,t,r)=>{var n=+e,i=+t;return n+r*(i-n)}),kl((e,t,r)=>{var n=t-+e;return n=n||1/0,(r-e)/n}),kl((e,t,r)=>{var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});var c1=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},u1=(e,t,r)=>{if(e.lte(0))return new Ee(0);var n=s1(e.toNumber()),i=new Ee(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ee(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?new Ee(l.toNumber()):new Ee(Math.ceil(l.toNumber()))},GI=(e,t,r)=>{var n=new Ee(1),i=new Ee(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ee(10).pow(s1(e)-1),i=new Ee(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ee(Math.floor(e)))}else e===0?i=new Ee(Math.floor((t-1)/2)):r||(i=new Ee(Math.floor(e)));var o=Math.floor((t-1)/2),s=YI(qI(l=>i.add(new Ee(l-o).mul(n)).toNumber()),Kd);return s(0,t)},f1=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new Ee(0),tickMin:new Ee(0),tickMax:new Ee(0)};var o=u1(new Ee(r).sub(t).div(n-1),i,a),s;t<=0&&r>=0?s=new Ee(0):(s=new Ee(t).add(r).div(2),s=s.sub(new Ee(s).mod(o)));var l=Math.ceil(s.sub(t).div(o).toNumber()),c=Math.ceil(new Ee(r).sub(s).div(o).toNumber()),u=l+c+1;return u>n?f1(t,r,n,i,a+1):(u<n&&(c=r>0?c+(n-u):c,l=r>0?l:l+(n-u)),{step:o,tickMin:s.sub(new Ee(l).mul(o)),tickMax:s.add(new Ee(c).mul(o))})};function XI(e){var[t,r]=e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(n,2),[o,s]=c1([t,r]);if(o===-1/0||s===1/0){var l=s===1/0?[o,...Kd(0,n-1).map(()=>1/0)]:[...Kd(0,n-1).map(()=>-1/0),s];return t>r?qd(l):l}if(o===s)return GI(o,n,i);var{step:c,tickMin:u,tickMax:f}=f1(o,s,a,i,0),d=l1(u,f.add(new Ee(.1).mul(c)),c);return t>r?qd(d):d}function ZI(e,t){var[r,n]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,o]=c1([r,n]);if(a===-1/0||o===1/0)return[r,n];if(a===o)return[a];var s=Math.max(t,2),l=u1(new Ee(o).sub(a).div(s-1),i,0),c=[...l1(new Ee(a),new Ee(o),l),o];return i===!1&&(c=c.map(u=>Math.round(u))),r>n?qd(c):c}var JI=o1(XI),QI=o1(ZI),d1=e=>e.rootProps.maxBarSize,e4=e=>e.rootProps.barGap,h1=e=>e.rootProps.barCategoryGap,t4=e=>e.rootProps.barSize,ro=e=>e.rootProps.stackOffset,Yd=e=>e.options.chartName,Gd=e=>e.rootProps.syncId,p1=e=>e.rootProps.syncMethod,Xd=e=>e.options.eventEmitter,Xr={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Xt={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Tl=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},r4={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Xr.angleAxisId,includeHidden:!1,name:void 0,reversed:Xr.reversed,scale:Xr.scale,tick:Xr.tick,tickCount:void 0,ticks:void 0,type:Xr.type,unit:void 0},n4={allowDataOverflow:Xt.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Xt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Xt.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Xt.scale,tick:Xt.tick,tickCount:Xt.tickCount,ticks:void 0,type:Xt.type,unit:void 0},i4={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Xr.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Xr.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Xr.scale,tick:Xr.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},a4={allowDataOverflow:Xt.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Xt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Xt.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Xt.scale,tick:Xt.tick,tickCount:Xt.tickCount,ticks:void 0,type:"category",unit:void 0},Zd=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?i4:r4,Jd=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?a4:n4,Ml=e=>e.polarOptions,Qd=N([zr,Wr,st],D0),m1=N([Ml,Qd],(e,t)=>{if(e!=null)return At(e.innerRadius,t,0)}),g1=N([Ml,Qd],(e,t)=>{if(e!=null)return At(e.outerRadius,t,t*.8)}),o4=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},v1=N([Ml],o4);N([Zd,v1],Tl);var y1=N([Qd,m1,g1],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});N([Jd,y1],Tl);var b1=N([ue,Ml,m1,g1,zr,Wr],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:s,startAngle:l,endAngle:c}=t;return{cx:At(o,i,i/2),cy:At(s,a,a/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),Ve=(e,t)=>t,no=(e,t,r)=>r;function eh(e){return e?.id}var ct=e=>{var t=ue(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Ui=e=>e.tooltip.settings.axisId,vt=e=>{var t=ct(e),r=Ui(e);return io(e,t,r)},x1=N([vt],e=>e?.dataKey);function w1(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=eh(s);c.forEach((f,d)=>{var h=a==null||i?d:String(Re(f,a,null)),m=Re(f,s.dataKey,0),p;o.has(h)?p=o.get(h):p={},Object.assign(p,{[u]:m}),o.set(h,p)})}}),Array.from(o.values())}function jl(e){return e.stackId!=null&&e.dataKey!=null}function _1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_1(Object(r),!0).forEach(function(n){s4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s4(e,t,r){return(t=l4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l4(e){var t=c4(e,"string");return typeof t=="symbol"?t:t+""}function c4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var th=[0,"auto"],Zt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},S1=(e,t)=>e.cartesianAxis.xAxis[t],Zr=(e,t)=>{var r=S1(e,t);return r??Zt},Jt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:th,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Ia},O1=(e,t)=>e.cartesianAxis.yAxis[t],Jr=(e,t)=>{var r=O1(e,t);return r??Jt},u4={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},rh=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??u4},Je=(e,t,r)=>{switch(t){case"xAxis":return Zr(e,r);case"yAxis":return Jr(e,r);case"zAxis":return rh(e,r);case"angleAxis":return Zd(e,r);case"radiusAxis":return Jd(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},f4=(e,t,r)=>{switch(t){case"xAxis":return Zr(e,r);case"yAxis":return Jr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},io=(e,t,r)=>{switch(t){case"xAxis":return Zr(e,r);case"yAxis":return Jr(e,r);case"angleAxis":return Zd(e,r);case"radiusAxis":return Jd(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},A1=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function nh(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Nl=e=>e.graphicalItems.cartesianItems,d4=N([Ve,no],nh),ih=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),ao=N([Nl,Je,d4],ih),E1=N([ao],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(jl)),P1=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),C1=N([ao],P1),ah=e=>e.map(t=>t.data).filter(Boolean).flat(1),h4=N([ao],ah),oh=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},sh=N([h4,Pl],oh),lh=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:Re(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Re(i,n)}))):e.map(n=>({value:n})),Il=N([sh,Je,ao],lh);function k1(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function ri(e){return e.filter(t=>Or(t)||t instanceof Date).map(Number).filter(t=>Ut(t)===!1)}function p4(e,t,r){return!r||typeof t!="number"||Ut(t)?[]:r.length?ri(r.flatMap(n=>{var i=Re(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!Yt(a)||!Yt(o)))return[t-a,t+o]})):[]}var m4=N([E1,Pl,vt],w1),T1=(e,t,r)=>{var n={},i=t.reduce((a,o)=>(o.stackId==null||(a[o.stackId]==null&&(a[o.stackId]=[]),a[o.stackId].push(o)),a),n);return Object.fromEntries(Object.entries(i).map(a=>{var[o,s]=a,l=s.map(eh);return[o,{stackedData:Dj(e,l,r),graphicalItems:s}]}))},ch=N([m4,E1,ro],T1),M1=(e,t,r)=>{var{dataStartIndex:n,dataEndIndex:i}=t;if(r!=="zAxis"){var a=Lj(e,n,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},g4=N([ch,gn,Ve],M1),j1=(e,t,r,n,i)=>r.length>0?e.flatMap(a=>r.flatMap(o=>{var s,l,c=(s=n[o.id])===null||s===void 0?void 0:s.filter(f=>k1(i,f)),u=Re(a,(l=t.dataKey)!==null&&l!==void 0?l:o.dataKey);return{value:u,errorDomain:p4(a,u,c)}})).filter(Boolean):t?.dataKey!=null?e.map(a=>({value:Re(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]})),$l=e=>e.errorBars,D1=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>k1(r,n));N([C1,$l,Ve],D1);var v4=N([sh,Je,C1,$l,Ve],j1);function y4(e){var{value:t}=e;if(Or(t)||t instanceof Date)return t}var N1=e=>{var t=e.flatMap(n=>[n.value,n.errorDomain]).flat(1),r=ri(t);if(r.length!==0)return[Math.min(...r),Math.max(...r)]},b4=(e,t,r)=>{var n=e.map(y4).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&sv(n))?Tb(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},uh=e=>{var t;if(e==null||!("domain"in e))return th;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=ri(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:th},Rl=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),s=Math.max(...a);return[o,s]}},I1=e=>e.referenceElements.dots,Ki=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),x4=N([I1,Ve,no],Ki),$1=e=>e.referenceElements.areas,w4=N([$1,Ve,no],Ki),R1=e=>e.referenceElements.lines,_4=N([R1,Ve,no],Ki),L1=(e,t)=>{var r=ri(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},S4=N(x4,Ve,L1),F1=(e,t)=>{var r=ri(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},O4=N([w4,Ve],F1),B1=(e,t)=>{var r=ri(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},A4=N(_4,Ve,B1),E4=N(S4,A4,O4,(e,t,r)=>Rl(e,r,t)),z1=N([Je],uh),fh=(e,t,r,n,i,a,o)=>{var s=zI(t,e.allowDataOverflow);if(s!=null)return s;var l=a==="vertical"&&o==="xAxis"||a==="horizontal"&&o==="yAxis",c=l?Rl(r,i,N1(n)):Rl(i,N1(n));return WI(t,c,e.allowDataOverflow)},P4=N([Je,z1,g4,v4,E4,ue,Ve],fh),C4=[0,1],dh=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:s,type:l}=e,c=fn(t,a);return c&&s==null?Tb(0,r.length):l==="category"?b4(n,e,c):i==="expand"?C4:o}},hh=N([Je,ue,sh,Il,ro,Ve,P4],dh),W1=(e,t,r,n,i)=>{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":o==="category"?"band":"linear";if(typeof a=="string"){var s="scale".concat(Pa(a));return s in eo?s:"point"}}},qi=N([Je,ue,A1,Yd,Ve],W1);function k4(e){if(e!=null){if(e in eo)return eo[e]();var t="scale".concat(Pa(e));if(t in eo)return eo[t]()}}function ph(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=k4(t);if(i!=null){var a=i.domain(r).range(n);return Cj(a),a}}}var mh=(e,t,r)=>{var n=uh(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Wi(e))return JI(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Wi(e))return QI(e,t.tickCount,t.allowDecimals)}},gh=N([hh,io,qi],mh),vh=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Wi(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],o=t[1],s=r[r.length-1];return[Math.min(i,a),Math.max(o,s)]}return t},T4=N([Je,hh,gh,Ve],vh),M4=N(Il,Je,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(ri(e.map(s=>s.value))).sort((s,l)=>s-l);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var a=0;a<n.length-1;a++){var o=n[a+1]-n[a];r=Math.min(r,o)}return r/i}}),V1=N(M4,ue,h1,st,(e,t,r,n)=>n,(e,t,r,n,i)=>{if(!Yt(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=At(r,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),j4=(e,t)=>{var r=Zr(e,t);return r==null||typeof r.padding!="string"?0:V1(e,"xAxis",t,r.padding)},D4=(e,t)=>{var r=Jr(e,t);return r==null||typeof r.padding!="string"?0:V1(e,"yAxis",t,r.padding)},N4=N(Zr,j4,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),I4=N(Jr,D4,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),$4=N([st,N4,tl,el,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),R4=N([st,ue,I4,tl,el,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),oo=(e,t,r,n)=>{var i;switch(t){case"xAxis":return $4(e,r,n);case"yAxis":return R4(e,r,n);case"zAxis":return(i=rh(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return v1(e);case"radiusAxis":return y1(e,r);default:return}},H1=N([Je,oo],Tl),Yi=N([Je,qi,T4,H1],ph);N([ao,$l,Ve],D1);function U1(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Ll=(e,t)=>t,Fl=(e,t,r)=>r,L4=N(Zs,Ll,Fl,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(U1)),F4=N(Js,Ll,Fl,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(U1)),K1=(e,t)=>({width:e.width,height:t.height}),B4=(e,t)=>{var r=typeof t.width=="number"?t.width:Ia;return{width:r,height:e.height}},q1=N(st,Zr,K1),z4=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},W4=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},V4=N(Wr,st,L4,Ll,Fl,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var l=K1(t,s);o==null&&(o=z4(t,n,e));var c=n==="top"&&!i||n==="bottom"&&i;a[s.id]=o-Number(c)*l.height,o+=(c?-1:1)*l.height}),a}),H4=N(zr,st,F4,Ll,Fl,(e,t,r,n,i)=>{var a={},o;return r.forEach(s=>{var l=B4(t,s);o==null&&(o=W4(t,n,e));var c=n==="left"&&!i||n==="right"&&i;a[s.id]=o-Number(c)*l.width,o+=(c?-1:1)*l.width}),a}),U4=(e,t)=>{var r=Zr(e,t);if(r!=null)return V4(e,r.orientation,r.mirror)},K4=N([st,Zr,U4,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),q4=(e,t)=>{var r=Jr(e,t);if(r!=null)return H4(e,r.orientation,r.mirror)},Y4=N([st,Jr,q4,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),Y1=N(st,Jr,(e,t)=>{var r=typeof t.width=="number"?t.width:Ia;return{width:r,height:e.height}}),G1=(e,t,r)=>{switch(t){case"xAxis":return q1(e,r).width;case"yAxis":return Y1(e,r).height;default:return}},X1=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,s=fn(e,n),l=t.map(c=>c.value);if(o&&s&&a==="category"&&i&&sv(l))return l}},yh=N([ue,Il,Je,Ve],X1),Z1=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=fn(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(s=>s.value)}},bh=N([ue,Il,io,Ve],Z1),J1=N([ue,f4,qi,Yi,yh,bh,oo,gh,Ve],(e,t,r,n,i,a,o,s,l)=>{if(t==null)return null;var c=fn(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:s,range:o,realScaleType:r,scale:n}}),G4=(e,t,r,n,i,a,o,s,l)=>{if(!(t==null||n==null)){var c=fn(e,l),{type:u,ticks:f,tickCount:d}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,m=u==="category"&&n.bandwidth?n.bandwidth()/h:0;m=l==="angleAxis"&&a!=null&&a.length>=2?pt(a[0]-a[1])*2*m:m;var p=f||i;if(p){var g=p.map((v,b)=>{var x=o?o.indexOf(v):v;return{index:b,coordinate:n(x)+m,value:v,offset:m}});return g.filter(v=>!Ut(v.coordinate))}return c&&s?s.map((v,b)=>({coordinate:n(v)+m,value:v,index:b,offset:m})):n.ticks?n.ticks(d).map(v=>({coordinate:n(v)+m,value:v,offset:m})):n.domain().map((v,b)=>({coordinate:n(v)+m,value:o?o[v]:v,index:b,offset:m}))}},Q1=N([ue,io,qi,Yi,gh,oo,yh,bh,Ve],G4),X4=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=fn(e,o),{tickCount:l}=t,c=0;return c=o==="angleAxis"&&n?.length>=2?pt(n[0]-n[1])*2*c:c,s&&a?a.map((u,f)=>({coordinate:r(u)+c,value:u,index:f,offset:c})):r.ticks?r.ticks(l).map(u=>({coordinate:r(u)+c,value:u,offset:c})):r.domain().map((u,f)=>({coordinate:r(u)+c,value:i?i[u]:u,index:f,offset:c}))}},yn=N([ue,io,Yi,oo,yh,bh,Ve],X4),bn=N(Je,Yi,(e,t)=>{if(!(e==null||t==null))return Dl(Dl({},e),{},{scale:t})}),Z4=N([Je,qi,hh,H1],ph);N((e,t,r)=>rh(e,r),Z4,(e,t)=>{if(!(e==null||t==null))return Dl(Dl({},e),{},{scale:t})});var J4=N([ue,Zs,Js],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),ew=e=>e.options.defaultTooltipEventType,tw=e=>e.options.validateTooltipEventTypes;function rw(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function xh(e,t){var r=ew(e),n=tw(e);return rw(t,r,n)}function Q4(e){return G(t=>xh(t,e))}var nw=(e,t)=>{var r,n=Number(t);if(!(Ut(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},e$=e=>e.tooltip.settings,xn={active:!1,index:null,dataKey:void 0,coordinate:void 0},t$={itemInteraction:{click:xn,hover:xn},axisInteraction:{click:xn,hover:xn},keyboardInteraction:xn,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},iw=qt({name:"tooltip",initialState:t$,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var r=Br(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:r$,removeTooltipEntrySettings:n$,setTooltipSettingsState:i$,setActiveMouseOverItemIndex:aw,mouseLeaveItem:a$,mouseLeaveChart:ow,setActiveClickItemIndex:o$,setMouseOverAxisIndex:sw,setMouseClickAxisIndex:s$,setSyncInteraction:wh,setKeyboardInteraction:_h}=iw.actions,l$=iw.reducer;function lw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lw(Object(r),!0).forEach(function(n){c$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c$(e,t,r){return(t=u$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u$(e){var t=f$(e,"string");return typeof t=="symbol"?t:t+""}function f$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function h$(e){return e.index!=null}var cw=(e,t,r,n)=>{if(t==null)return xn;var i=d$(e,t,r);if(i==null)return xn;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(h$(i)){if(a)return Bl(Bl({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n};return Bl(Bl({},xn),{},{coordinate:i.coordinate})},Sh=(e,t)=>{var r=e?.index;if(r==null)return null;var n=Number(r);if(!Yt(n))return r;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(n,a)))},uw=(e,t,r,n,i,a,o,s)=>{if(!(a==null||s==null)){var l=o[0],c=l==null?void 0:s(l.positions,a);if(c!=null)return c;var u=i?.[Number(a)];if(u)switch(r){case"horizontal":return{x:u.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:u.coordinate}}}},fw=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var o;return((o=a.settings)===null||o===void 0?void 0:o.dataKey)===i})},so=e=>e.options.tooltipPayloadSearcher,Gi=e=>e.tooltip;function dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dw(Object(r),!0).forEach(function(n){p$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p$(e,t,r){return(t=m$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m$(e){var t=g$(e,"string");return typeof t=="symbol"?t:t+""}function g$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function v$(e,t){return e??t}var pw=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,f=[];return e.reduce((d,h)=>{var m,{dataDefinedOnItem:p,settings:g}=h,v=v$(p,s),b=Array.isArray(v)?N0(v,c,u):v,x=(m=g?.dataKey)!==null&&m!==void 0?m:n,S=g?.nameKey,w;if(n&&Array.isArray(b)&&!Array.isArray(b[0])&&o==="axis"?w=lv(b,n,i):w=a(b,t,l,S),Array.isArray(w))w.forEach(E=>{var C=hw(hw({},g),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});d.push(V0({tooltipEntrySettings:C,dataKey:E.dataKey,payload:E.payload,value:Re(E.payload,E.dataKey),name:E.name}))});else{var O;d.push(V0({tooltipEntrySettings:g,dataKey:x,payload:w,value:Re(w,x),name:(O=Re(w,S))!==null&&O!==void 0?O:g?.name}))}return d},f)}},Oh=N([vt,ue,A1,Yd,ct],W1),y$=N([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),b$=N([ct,Ui],nh),lo=N([y$,vt,b$],ih),x$=N([lo],e=>e.filter(jl)),w$=N([lo],ah),Xi=N([w$,gn],oh),_$=N([x$,gn,vt],w1),Ah=N([Xi,vt,lo],lh),S$=N([vt],uh),O$=N([lo],e=>e.filter(jl)),A$=N([_$,O$,ro],T1),E$=N([A$,gn,ct],M1),P$=N([lo],P1),C$=N([Xi,vt,P$,$l,ct],j1),k$=N([I1,ct,Ui],Ki),T$=N([k$,ct],L1),M$=N([$1,ct,Ui],Ki),j$=N([M$,ct],F1),D$=N([R1,ct,Ui],Ki),N$=N([D$,ct],B1),I$=N([T$,N$,j$],Rl),$$=N([vt,S$,E$,C$,I$,ue,ct],fh),mw=N([vt,ue,Xi,Ah,ro,ct,$$],dh),R$=N([mw,vt,Oh],mh),L$=N([vt,mw,R$,ct],vh),gw=e=>{var t=ct(e),r=Ui(e),n=!1;return oo(e,t,r,n)},vw=N([vt,gw],Tl),yw=N([vt,Oh,L$,vw],ph),F$=N([ue,Ah,vt,ct],X1),B$=N([ue,Ah,vt,ct],Z1),z$=(e,t,r,n,i,a,o,s)=>{if(t){var{type:l}=t,c=fn(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return f=s==="angleAxis"&&i!=null&&i?.length>=2?pt(i[0]-i[1])*2*f:f,c&&o?o.map((d,h)=>({coordinate:n(d)+f,value:d,index:h,offset:f})):n.domain().map((d,h)=>({coordinate:n(d)+f,value:a?a[d]:d,index:h,offset:f}))}}},Qr=N([ue,vt,Oh,yw,gw,F$,B$,ct],z$),Eh=N([ew,tw,e$],(e,t,r)=>rw(r.shared,e,t)),bw=e=>e.tooltip.settings.trigger,Ph=e=>e.tooltip.settings.defaultIndex,zl=N([Gi,Eh,bw,Ph],cw),wn=N([zl,Xi],Sh),xw=N([Qr,wn],nw),ww=N([zl],e=>{if(e)return e.dataKey}),_w=N([Gi,Eh,bw,Ph],fw),W$=N([zr,Wr,ue,st,Qr,Ph,_w,so],uw),V$=N([zl,W$],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),H$=N([zl],e=>e.active),U$=N([_w,wn,gn,x1,xw,so,Eh],pw),K$=N([U$],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ow(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sw(Object(r),!0).forEach(function(n){q$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q$(e,t,r){return(t=Y$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y$(e){var t=G$(e,"string");return typeof t=="symbol"?t:t+""}function G$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X$=()=>G(vt),Z$=()=>{var e=X$(),t=G(Qr),r=G(yw);return Na(Ow(Ow({},e),{},{scale:r}),t)},J$=()=>G(Yd),Ch=(e,t)=>t,Aw=(e,t,r)=>r,kh=(e,t,r,n)=>n,Q$=N(Qr,e=>Ns(e,t=>t.coordinate)),Th=N([Gi,Ch,Aw,kh],cw),Ew=N([Th,Xi],Sh),eR=(e,t,r)=>{if(t!=null){var n=Gi(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},Pw=N([Gi,Ch,Aw,kh],fw),Wl=N([zr,Wr,ue,st,Qr,kh,Pw,so],uw),tR=N([Th,Wl],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Cw=N(Qr,Ew,nw),rR=N([Pw,Ew,gn,x1,Cw,so,Ch],pw),nR=N([Th],e=>({isActive:e.active,activeIndex:e.index})),iR=(e,t,r,n,i,a,o,s)=>{if(!(!e||!t||!n||!i||!a)){var l=Fj(e.chartX,e.chartY,t,r,s);if(l){var c=zj(l,t),u=Ej(c,o,a,n,i),f=Bj(t,a,u,l);return{activeIndex:String(u),activeCoordinate:f}}}};function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mh.apply(null,arguments)}function kw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kw(Object(r),!0).forEach(function(n){aR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aR(e,t,r){return(t=oR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oR(e){var t=sR(e,"string");return typeof t=="symbol"?t:t+""}function sR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lR(e){var{coordinate:t,payload:r,index:n,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:l,chartName:c}=e,u=t,f=r,d=n;if(!s||!u||c!=="ScatterChart"&&l!=="axis")return null;var h,m;if(c==="ScatterChart")h=u,m=CD;else if(c==="BarChart")h=kD(o,u,i,a),m=_b;else if(o==="radial"){var{cx:p,cy:g,radius:v,startAngle:b,endAngle:x}=Sb(u);h={cx:p,cy:g,startAngle:b,endAngle:x,innerRadius:v,outerRadius:v},m=Ab}else h={points:lN(o,u,i)},m=Xf;var S=typeof s=="object"&&"className"in s?s.className:void 0,w=Vl(Vl(Vl(Vl({stroke:"#ccc",pointerEvents:"none"},i),h),Ue(s,!1)),{},{payload:f,payloadIndex:d,className:de("recharts-tooltip-cursor",S)});return k.isValidElement(s)?k.cloneElement(s,w):k.createElement(m,w)}function cR(e){var t=Z$(),r=Y0(),n=rl(),i=J$();return A.createElement(lR,Mh({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var Tw=k.createContext(null),uR=()=>k.useContext(Tw),jh={exports:{}},Mw;function fR(){return Mw||(Mw=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||l,d),m=r?r+c:c;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],h]:l._events[m].push(h):(l._events[m]=h,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,m=new Array(h);d<h;d++)m[d]=f[d].fn;return m},s.prototype.listenerCount=function(c){var u=r?r+c:c,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,u,f,d,h,m){var p=r?r+c:c;if(!this._events[p])return!1;var g=this._events[p],v=arguments.length,b,x;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),v){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,f),!0;case 4:return g.fn.call(g.context,u,f,d),!0;case 5:return g.fn.call(g.context,u,f,d,h),!0;case 6:return g.fn.call(g.context,u,f,d,h,m),!0}for(x=1,b=new Array(v-1);x<v;x++)b[x-1]=arguments[x];g.fn.apply(g.context,b)}else{var S=g.length,w;for(x=0;x<S;x++)switch(g[x].once&&this.removeListener(c,g[x].fn,void 0,!0),v){case 1:g[x].fn.call(g[x].context);break;case 2:g[x].fn.call(g[x].context,u);break;case 3:g[x].fn.call(g[x].context,u,f);break;case 4:g[x].fn.call(g[x].context,u,f,d);break;default:if(!b)for(w=1,b=new Array(v-1);w<v;w++)b[w-1]=arguments[w];g[x].fn.apply(g[x].context,b)}}return!0},s.prototype.on=function(c,u,f){return a(this,c,u,f,!1)},s.prototype.once=function(c,u,f){return a(this,c,u,f,!0)},s.prototype.removeListener=function(c,u,f,d){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===u&&(!d||m.once)&&(!f||m.context===f)&&o(this,h);else{for(var p=0,g=[],v=m.length;p<v;p++)(m[p].fn!==u||d&&!m[p].once||f&&m[p].context!==f)&&g.push(m[p]);g.length?this._events[h]=g.length===1?g[0]:g:o(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(jh)),jh.exports}var dR=fR();const hR=Ir(dR);var co=new hR,Dh="recharts.syncEvent.tooltip",jw="recharts.syncEvent.brush";function Nh(e,t){if(t){var r=Number.parseInt(t,10);if(!Ut(r))return e?.[r]}}var pR={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},Dw=qt({name:"options",initialState:pR,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),mR=Dw.reducer,{createEventEmitter:gR}=Dw.actions;function vR(e){return e.tooltip.syncInteraction}var yR={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Nw=qt({name:"chartData",initialState:yR,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:Iw,setDataStartEndIndexes:bR,setComputedData:kU}=Nw.actions,xR=Nw.reducer,wR=["x","y"];function $w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$w(Object(r),!0).forEach(function(n){_R(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _R(e,t,r){return(t=SR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SR(e){var t=OR(e,"string");return typeof t=="symbol"?t:t+""}function OR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AR(e,t){if(e==null)return{};var r,n,i=ER(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ER(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Rw=()=>{};function PR(){var e=G(Gd),t=G(Xd),r=Ze(),n=G(p1),i=G(Qr),a=rl(),o=Uf(),s=G(l=>l.rootProps.className);k.useEffect(()=>{if(e==null)return Rw;var l=(c,u,f)=>{if(t!==f&&e===c){if(n==="index"){var d;if(o&&u!==null&&u!==void 0&&(d=u.payload)!==null&&d!==void 0&&d.coordinate){var h=u.payload.coordinate,{x:m,y:p}=h,g=AR(h,wR),v=ni(ni(ni({},g),typeof m=="number"&&{x:Math.max(o.x,Math.min(m,o.x+o.width))}),typeof p=="number"&&{y:Math.max(o.y,Math.min(p,o.y+o.height))}),b=ni(ni({},u),{},{payload:ni(ni({},u.payload),{},{coordinate:v})});r(b)}else r(u);return}if(i!=null){var x;if(typeof n=="function"){var S={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},w=n(i,S);x=i[w]}else n==="value"&&(x=i.find(I=>String(I.value)===u.payload.label));var{coordinate:O}=u.payload;if(x==null||u.payload.active===!1||O==null||o==null){r(wh({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:E,y:C}=O,M=Math.min(E,o.x+o.width),$=Math.min(C,o.y+o.height),j={x:a==="horizontal"?x.coordinate:M,y:a==="horizontal"?$:x.coordinate},_=wh({active:u.payload.active,coordinate:j,dataKey:u.payload.dataKey,index:String(x.index),label:u.payload.label});r(_)}}};return co.on(Dh,l),()=>{co.off(Dh,l)}},[s,r,t,e,n,i,a,o])}function CR(){var e=G(Gd),t=G(Xd),r=Ze();k.useEffect(()=>{if(e==null)return Rw;var n=(i,a,o)=>{t!==o&&e===i&&r(bR(a))};return co.on(jw,n),()=>{co.off(jw,n)}},[r,t,e])}function kR(){var e=Ze();k.useEffect(()=>{e(gR())},[e]),PR(),CR()}function TR(e,t,r,n,i,a){var o=G(d=>eR(d,e,t)),s=G(Xd),l=G(Gd),c=G(p1),u=G(vR),f=u?.active;k.useEffect(()=>{if(!f&&l!=null&&s!=null){var d=wh({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n});co.emit(Dh,l,d,s)}},[f,r,o,i,n,s,l,c,a])}function Lw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lw(Object(r),!0).forEach(function(n){MR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MR(e,t,r){return(t=jR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jR(e){var t=DR(e,"string");return typeof t=="symbol"?t:t+""}function DR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NR(e){return e.dataKey}function IR(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(oD,t)}var Bw=[],$R={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!dn.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function ii(e){var t=_t(e,$R),{active:r,allowEscapeViewBox:n,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:l,offset:c,payloadUniqBy:u,position:f,reverseDirection:d,useTranslate3d:h,wrapperStyle:m,cursor:p,shared:g,trigger:v,defaultIndex:b,portal:x,axisId:S}=t,w=Ze(),O=typeof b=="number"?String(b):b;k.useEffect(()=>{w(i$({shared:g,trigger:v,axisId:S,active:r,defaultIndex:O}))},[w,g,v,S,r,O]);var E=Uf(),C=nb(),M=Q4(g),{activeIndex:$,isActive:j}=G(J=>nR(J,M,v,O)),_=G(J=>rR(J,M,v,O)),I=G(J=>Cw(J,M,v,O)),D=G(J=>tR(J,M,v,O)),L=_,W=uR(),H=r??j,[te,Q]=nM([L,H]),F=M==="axis"?I:void 0;TR(M,v,D,F,$,H);var U=x??W;if(U==null)return null;var V=L??Bw;H||(V=Bw),s&&V.length&&(V=AT(L.filter(J=>J.value!=null&&(J.hide!==!0||t.includeHidden)),u,NR));var re=V.length>0,Z=A.createElement(hD,{allowEscapeViewBox:n,animationDuration:i,animationEasing:a,isAnimationActive:l,active:H,coordinate:D,hasPayload:re,offset:c,position:f,reverseDirection:d,useTranslate3d:h,viewBox:E,wrapperStyle:m,lastBoundingBox:te,innerRef:Q,hasPortalFromProps:!!x},IR(o,Fw(Fw({},t),{},{payload:V,label:F,active:H,coordinate:D,accessibilityLayer:C})));return A.createElement(A.Fragment,null,uA.createPortal(Z,U),H&&A.createElement(cR,{cursor:p,tooltipEventType:M,coordinate:D,payload:L,index:$}))}var Ih={},$h={},Rh={},zw;function RR(){return zw||(zw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,s=null;const l=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),u=()=>{s!==null&&(r.apply(o,s),o=void 0,s=null)},f=()=>{c&&u(),p()};let d=null;const h=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},m=()=>{d!==null&&(clearTimeout(d),d=null)},p=()=>{m(),o=void 0,s=null},g=()=>{u()},v=function(...b){if(i?.aborted)return;o=this,s=b;const x=d==null;h(),l&&x&&u()};return v.schedule=h,v.cancel=p,v.flush=g,i?.addEventListener("abort",p,{once:!0}),v}e.debounce=t})(Rh)),Rh}var Ww;function LR(){return Ww||(Ww=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=RR();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:s=!0,maxWait:l}=a,c=Array(2);o&&(c[0]="leading"),s&&(c[1]="trailing");let u,f=null;const d=t.debounce(function(...p){u=n.apply(this,p),f=null},i,{edges:c}),h=function(...p){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(u=n.apply(this,p),f=Date.now(),d.cancel(),d.schedule(),u):(d.apply(this,p),u)},m=()=>(d.flush(),u);return h.cancel=d.cancel,h.flush=m,h}e.debounce=r})($h)),$h}var Vw;function FR(){return Vw||(Vw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LR();function r(n,i=0,a={}){const{leading:o=!0,trailing:s=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:s})}e.throttle=r})(Ih)),Ih}var Lh,Hw;function BR(){return Hw||(Hw=1,Lh=FR().throttle),Lh}var zR=BR();const WR=Ir(zR);var VR=process.env.NODE_ENV!=="production",uo=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(VR&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,()=>i[o++]))}};function Uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(r),!0).forEach(function(n){HR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HR(e,t,r){return(t=UR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UR(e){var t=KR(e,"string");return typeof t=="symbol"?t:t+""}function KR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ai=k.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:o=0,minHeight:s,maxHeight:l,children:c,debounce:u=0,id:f,className:d,onResize:h,style:m={}}=e,p=k.useRef(null),g=k.useRef();g.current=h,k.useImperativeHandle(t,()=>p.current);var[v,b]=k.useState({containerWidth:n.width,containerHeight:n.height}),x=k.useCallback((w,O)=>{b(E=>{var C=Math.round(w),M=Math.round(O);return E.containerWidth===C&&E.containerHeight===M?E:{containerWidth:C,containerHeight:M}})},[]);k.useEffect(()=>{var w=M=>{var $,{width:j,height:_}=M[0].contentRect;x(j,_),($=g.current)===null||$===void 0||$.call(g,j,_)};u>0&&(w=WR(w,u,{trailing:!0,leading:!1}));var O=new ResizeObserver(w),{width:E,height:C}=p.current.getBoundingClientRect();return x(E,C),O.observe(p.current),()=>{O.disconnect()}},[x,u]);var S=k.useMemo(()=>{var{containerWidth:w,containerHeight:O}=v;if(w<0||O<0)return null;uo(Bn(i)||Bn(a),`The width(%s) and height(%s) are both fixed numbers,
178
+ maybe you don't need to use a ResponsiveContainer.`,i,a),uo(!r||r>0,"The aspect(%s) must be greater than zero.",r);var E=Bn(i)?w:i,C=Bn(a)?O:a;return r&&r>0&&(E?C=E/r:C&&(E=C*r),l&&C>l&&(C=l)),uo(E>0||C>0,`The width(%s) and height(%s) of chart should be greater than 0,
179
179
  please check the style of container, or the props width(%s) and height(%s),
180
180
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
181
- height and width.`,E,C,i,a,o,s,r),A.Children.map(c,M=>k.cloneElement(M,{width:E,height:C,style:Rh({width:E,height:C},M.props.style)}))},[r,c,a,l,s,o,v,i]);return A.createElement("div",{id:f?"".concat(f):void 0,className:de("recharts-responsive-container",d),style:Rh(Rh({},m),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:l}),ref:p},A.createElement("div",{style:{width:0,height:0,overflow:"visible"}},S))}),kr=e=>null;kr.displayName="Cell";function KR(e,t,r){return(t=qR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qR(e){var t=YR(e,"string");return typeof t=="symbol"?t:t+""}function YR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class GR{constructor(t){KR(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function Uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(r),!0).forEach(function(n){ZR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZR(e,t,r){return(t=JR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JR(e){var t=QR(e,"string");return typeof t=="symbol"?t:t+""}function QR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eL={cacheSize:2e3,enableCache:!0},Kw=XR({},eL),qw=new GR(Kw.cacheSize),tL={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Yw="recharts_measurement_span";function rL(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(s)}var Gw=(e,t)=>{try{var r=document.getElementById(Yw);r||(r=document.createElement("span"),r.setAttribute("id",Yw),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,tL,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},uo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||dn.isSsr)return{width:0,height:0};if(!Kw.enableCache)return Gw(t,r);var n=rL(t,r),i=qw.get(n);if(i)return i;var a=Gw(t,r);return qw.set(n,a),a},Xw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,nL=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,iL=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Jw={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},aL=Object.keys(Jw),Zi="NaN";function oL(e,t){return e*Jw[t]}class $t{static parse(t){var r,[,n,i]=(r=iL.exec(t))!==null&&r!==void 0?r:[];return new $t(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Ut(t)&&(this.unit=""),r!==""&&!nL.test(r)&&(this.num=NaN,this.unit=""),aL.includes(r)&&(this.num=oL(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new $t(NaN,""):new $t(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new $t(NaN,""):new $t(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new $t(NaN,""):new $t(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new $t(NaN,""):new $t(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ut(this.num)}}function Qw(e){if(e.includes(Zi))return Zi;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=Xw.exec(t))!==null&&r!==void 0?r:[],o=$t.parse(n??""),s=$t.parse(a??""),l=i==="*"?o.multiply(s):o.divide(s);if(l.isNaN())return Zi;t=t.replace(Xw,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,f,d]=(c=Zw.exec(t))!==null&&c!==void 0?c:[],h=$t.parse(u??""),m=$t.parse(d??""),p=f==="+"?h.add(m):h.subtract(m);if(p.isNaN())return Zi;t=t.replace(Zw,p.toString())}return t}var e_=/\(([^()]*)\)/;function sL(e){for(var t=e,r;(r=e_.exec(t))!=null;){var[,n]=r;t=t.replace(e_,Qw(n))}return t}function lL(e){var t=e.replace(/\s+/g,"");return t=sL(t),t=Qw(t),t}function cL(e){try{return lL(e)}catch{return Zi}}function Lh(e){var t=cL(e.slice(5,-1));return t===Zi?"":t}var uL=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],fL=["dx","dy","angle","className","breakAll"];function Fh(){return Fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fh.apply(null,arguments)}function t_(e,t){if(e==null)return{};var r,n,i=dL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function dL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var r_=/[ \f\n\r\t\v\u2028\u2029]+/,n_=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];ze(t)||(r?i=t.toString().split(""):i=t.toString().split(r_));var a=i.map(s=>({word:s,width:uo(s,n).width})),o=r?0:uo(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}},hL=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:s,breakAll:l}=e,c=X(a),u=o,f=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce((_,I)=>{var{word:D,width:L}=I,W=_[_.length-1];if(W&&(n==null||i||W.width+L+r<Number(n)))W.words.push(D),W.width+=L+r;else{var H={words:[D],width:L};_.push(H)}return _},[])},d=f(t),h=$=>$.reduce((j,_)=>j.width>_.width?j:_);if(!c||i)return d;var m=d.length>a||h(d).width>Number(n);if(!m)return d;for(var p="…",g=$=>{var j=u.slice(0,$),_=n_({breakAll:l,style:s,children:j+p}).wordsWithComputedWidth,I=f(_),D=I.length>a||h(I).width>Number(n);return[D,I]},v=0,b=u.length-1,x=0,S;v<=b&&x<=u.length-1;){var w=Math.floor((v+b)/2),O=w-1,[E,C]=g(O),[M]=g(w);if(!E&&!M&&(v=w+1),E&&M&&(b=w-1),!E&&M){S=C;break}x++}return S||d},i_=e=>{var t=ze(e)?[]:e.toString().split(r_);return[{words:t}]},pL=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!dn.isSsr){var s,l,c=n_({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:u,spaceWidth:f}=c;s=u,l=f}else return i_(n);return hL({breakAll:a,children:n,maxLines:o,style:i},s,l,t,r)}return i_(n)},a_="#808080",Vl=k.forwardRef((e,t)=>{var{x:r=0,y:n=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:o=!1,textAnchor:s="start",verticalAnchor:l="end",fill:c=a_}=e,u=t_(e,uL),f=k.useMemo(()=>pL({breakAll:u.breakAll,children:u.children,maxLines:u.maxLines,scaleToFit:o,style:u.style,width:u.width}),[u.breakAll,u.children,u.maxLines,o,u.style,u.width]),{dx:d,dy:h,angle:m,className:p,breakAll:g}=u,v=t_(u,fL);if(!Or(r)||!Or(n)||f.length===0)return null;var b=r+(X(d)?d:0),x=n+(X(h)?h:0),S;switch(l){case"start":S=Lh("calc(".concat(a,")"));break;case"middle":S=Lh("calc(".concat((f.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:S=Lh("calc(".concat(f.length-1," * -").concat(i,")"));break}var w=[];if(o){var O=f[0].width,{width:E}=u;w.push("scale(".concat(X(E)?E/O:1,")"))}return m&&w.push("rotate(".concat(m,", ").concat(b,", ").concat(x,")")),w.length&&(v.transform=w.join(" ")),A.createElement("text",Fh({},Ue(v,!0),{ref:t,x:b,y:x,className:de("recharts-text",p),textAnchor:s,fill:c.includes("url")?a_:c}),f.map((C,M)=>{var $=C.words.join(g?"":" ");return A.createElement("tspan",{x:b,dy:M===0?S:i,key:"".concat($,"-").concat(M)},$)}))});Vl.displayName="Text";var mL=["labelRef"];function gL(e,t){if(e==null)return{};var r,n,i=vL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function o_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o_(Object(r),!0).forEach(function(n){yL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yL(e,t,r){return(t=bL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bL(e){var t=xL(e,"string");return typeof t=="symbol"?t:t+""}function xL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},en.apply(null,arguments)}var s_=k.createContext(null),wL=e=>{var{x:t,y:r,width:n,height:i,children:a}=e,o=k.useMemo(()=>({x:t,y:r,width:n,height:i}),[t,r,n,i]);return A.createElement(s_.Provider,{value:o},a)},l_=()=>{var e=k.useContext(s_),t=Vf();return e||t},_L=k.createContext(null),SL=()=>{var e=k.useContext(_L),t=G(y1);return e||t},OL=e=>{var{value:t,formatter:r}=e,n=ze(e.children)?t:e.children;return typeof r=="function"?r(n):n},Bh=e=>e!=null&&typeof e=="function",AL=(e,t)=>{var r=pt(t-e),n=Math.min(Math.abs(t-e),360);return r*n},EL=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:f,endAngle:d,clockWise:h}=i,m=(c+u)/2,p=AL(f,d),g=p>=0?1:-1,v,b;switch(t){case"insideStart":v=f+g*a,b=h;break;case"insideEnd":v=d-g*a,b=!h;break;case"end":v=d+g*a,b=h;break;default:throw new Error("Unsupported position ".concat(t))}b=p<=0?b:!b;var x=it(s,l,m,v),S=it(s,l,m,v+(b?1:-1)*359),w="M".concat(x.x,",").concat(x.y,`
181
+ height and width.`,E,C,i,a,o,s,r),A.Children.map(c,M=>k.cloneElement(M,{width:E,height:C,style:Fh({width:E,height:C},M.props.style)}))},[r,c,a,l,s,o,v,i]);return A.createElement("div",{id:f?"".concat(f):void 0,className:de("recharts-responsive-container",d),style:Fh(Fh({},m),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:l}),ref:p},A.createElement("div",{style:{width:0,height:0,overflow:"visible"}},S))}),kr=e=>null;kr.displayName="Cell";function qR(e,t,r){return(t=YR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YR(e){var t=GR(e,"string");return typeof t=="symbol"?t:t+""}function GR(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class XR{constructor(t){qR(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function Kw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ZR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(r),!0).forEach(function(n){JR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JR(e,t,r){return(t=QR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QR(e){var t=eL(e,"string");return typeof t=="symbol"?t:t+""}function eL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tL={cacheSize:2e3,enableCache:!0},qw=ZR({},tL),Yw=new XR(qw.cacheSize),rL={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Gw="recharts_measurement_span";function nL(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(s)}var Xw=(e,t)=>{try{var r=document.getElementById(Gw);r||(r=document.createElement("span"),r.setAttribute("id",Gw),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,rL,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},fo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||dn.isSsr)return{width:0,height:0};if(!qw.enableCache)return Xw(t,r);var n=nL(t,r),i=Yw.get(n);if(i)return i;var a=Xw(t,r);return Yw.set(n,a),a},Zw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Jw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,iL=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,aL=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Qw={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},oL=Object.keys(Qw),Zi="NaN";function sL(e,t){return e*Qw[t]}class $t{static parse(t){var r,[,n,i]=(r=aL.exec(t))!==null&&r!==void 0?r:[];return new $t(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Ut(t)&&(this.unit=""),r!==""&&!iL.test(r)&&(this.num=NaN,this.unit=""),oL.includes(r)&&(this.num=sL(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new $t(NaN,""):new $t(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new $t(NaN,""):new $t(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new $t(NaN,""):new $t(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new $t(NaN,""):new $t(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ut(this.num)}}function e_(e){if(e.includes(Zi))return Zi;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=Zw.exec(t))!==null&&r!==void 0?r:[],o=$t.parse(n??""),s=$t.parse(a??""),l=i==="*"?o.multiply(s):o.divide(s);if(l.isNaN())return Zi;t=t.replace(Zw,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,f,d]=(c=Jw.exec(t))!==null&&c!==void 0?c:[],h=$t.parse(u??""),m=$t.parse(d??""),p=f==="+"?h.add(m):h.subtract(m);if(p.isNaN())return Zi;t=t.replace(Jw,p.toString())}return t}var t_=/\(([^()]*)\)/;function lL(e){for(var t=e,r;(r=t_.exec(t))!=null;){var[,n]=r;t=t.replace(t_,e_(n))}return t}function cL(e){var t=e.replace(/\s+/g,"");return t=lL(t),t=e_(t),t}function uL(e){try{return cL(e)}catch{return Zi}}function Bh(e){var t=uL(e.slice(5,-1));return t===Zi?"":t}var fL=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],dL=["dx","dy","angle","className","breakAll"];function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zh.apply(null,arguments)}function r_(e,t){if(e==null)return{};var r,n,i=hL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function hL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var n_=/[ \f\n\r\t\v\u2028\u2029]+/,i_=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];ze(t)||(r?i=t.toString().split(""):i=t.toString().split(n_));var a=i.map(s=>({word:s,width:fo(s,n).width})),o=r?0:fo(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}},pL=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:s,breakAll:l}=e,c=X(a),u=o,f=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce((_,I)=>{var{word:D,width:L}=I,W=_[_.length-1];if(W&&(n==null||i||W.width+L+r<Number(n)))W.words.push(D),W.width+=L+r;else{var H={words:[D],width:L};_.push(H)}return _},[])},d=f(t),h=$=>$.reduce((j,_)=>j.width>_.width?j:_);if(!c||i)return d;var m=d.length>a||h(d).width>Number(n);if(!m)return d;for(var p="…",g=$=>{var j=u.slice(0,$),_=i_({breakAll:l,style:s,children:j+p}).wordsWithComputedWidth,I=f(_),D=I.length>a||h(I).width>Number(n);return[D,I]},v=0,b=u.length-1,x=0,S;v<=b&&x<=u.length-1;){var w=Math.floor((v+b)/2),O=w-1,[E,C]=g(O),[M]=g(w);if(!E&&!M&&(v=w+1),E&&M&&(b=w-1),!E&&M){S=C;break}x++}return S||d},a_=e=>{var t=ze(e)?[]:e.toString().split(n_);return[{words:t}]},mL=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!dn.isSsr){var s,l,c=i_({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:u,spaceWidth:f}=c;s=u,l=f}else return a_(n);return pL({breakAll:a,children:n,maxLines:o,style:i},s,l,t,r)}return a_(n)},o_="#808080",Hl=k.forwardRef((e,t)=>{var{x:r=0,y:n=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:o=!1,textAnchor:s="start",verticalAnchor:l="end",fill:c=o_}=e,u=r_(e,fL),f=k.useMemo(()=>mL({breakAll:u.breakAll,children:u.children,maxLines:u.maxLines,scaleToFit:o,style:u.style,width:u.width}),[u.breakAll,u.children,u.maxLines,o,u.style,u.width]),{dx:d,dy:h,angle:m,className:p,breakAll:g}=u,v=r_(u,dL);if(!Or(r)||!Or(n)||f.length===0)return null;var b=r+(X(d)?d:0),x=n+(X(h)?h:0),S;switch(l){case"start":S=Bh("calc(".concat(a,")"));break;case"middle":S=Bh("calc(".concat((f.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:S=Bh("calc(".concat(f.length-1," * -").concat(i,")"));break}var w=[];if(o){var O=f[0].width,{width:E}=u;w.push("scale(".concat(X(E)?E/O:1,")"))}return m&&w.push("rotate(".concat(m,", ").concat(b,", ").concat(x,")")),w.length&&(v.transform=w.join(" ")),A.createElement("text",zh({},Ue(v,!0),{ref:t,x:b,y:x,className:de("recharts-text",p),textAnchor:s,fill:c.includes("url")?o_:c}),f.map((C,M)=>{var $=C.words.join(g?"":" ");return A.createElement("tspan",{x:b,dy:M===0?S:i,key:"".concat($,"-").concat(M)},$)}))});Hl.displayName="Text";var gL=["labelRef"];function vL(e,t){if(e==null)return{};var r,n,i=yL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function s_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s_(Object(r),!0).forEach(function(n){bL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bL(e,t,r){return(t=xL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xL(e){var t=wL(e,"string");return typeof t=="symbol"?t:t+""}function wL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},en.apply(null,arguments)}var l_=k.createContext(null),_L=e=>{var{x:t,y:r,width:n,height:i,children:a}=e,o=k.useMemo(()=>({x:t,y:r,width:n,height:i}),[t,r,n,i]);return A.createElement(l_.Provider,{value:o},a)},c_=()=>{var e=k.useContext(l_),t=Uf();return e||t},SL=k.createContext(null),OL=()=>{var e=k.useContext(SL),t=G(b1);return e||t},AL=e=>{var{value:t,formatter:r}=e,n=ze(e.children)?t:e.children;return typeof r=="function"?r(n):n},Wh=e=>e!=null&&typeof e=="function",EL=(e,t)=>{var r=pt(t-e),n=Math.min(Math.abs(t-e),360);return r*n},PL=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:f,endAngle:d,clockWise:h}=i,m=(c+u)/2,p=EL(f,d),g=p>=0?1:-1,v,b;switch(t){case"insideStart":v=f+g*a,b=h;break;case"insideEnd":v=d-g*a,b=!h;break;case"end":v=d+g*a,b=h;break;default:throw new Error("Unsupported position ".concat(t))}b=p<=0?b:!b;var x=it(s,l,m,v),S=it(s,l,m,v+(b?1:-1)*359),w="M".concat(x.x,",").concat(x.y,`
182
182
  A`).concat(m,",").concat(m,",0,1,").concat(b?0:1,`,
183
- `).concat(S.x,",").concat(S.y),O=ze(e.id)?Aa("recharts-radial-line-"):e.id;return A.createElement("text",en({},n,{dominantBaseline:"central",className:de("recharts-radial-bar-label",o)}),A.createElement("defs",null,A.createElement("path",{id:O,d:w})),A.createElement("textPath",{xlinkHref:"#".concat(O)},r))},PL=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:f}=it(n,i,o+t,c);return{x:u,y:f,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:h,y:m}=it(n,i,d,c);return{x:h,y:m,textAnchor:"middle",verticalAnchor:"middle"}},c_=e=>"cx"in e&&X(e.cx),CL=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,a;r!=null&&!c_(r)&&(a=r);var{x:o,y:s,width:l,height:c}=t,u=c>=0?1:-1,f=u*n,d=u>0?"end":"start",h=u>0?"start":"end",m=l>=0?1:-1,p=m*n,g=m>0?"end":"start",v=m>0?"start":"end";if(i==="top"){var b={x:o+l/2,y:s-u*n,textAnchor:"middle",verticalAnchor:d};return Qe(Qe({},b),a?{height:Math.max(s-a.y,0),width:l}:{})}if(i==="bottom"){var x={x:o+l/2,y:s+c+f,textAnchor:"middle",verticalAnchor:h};return Qe(Qe({},x),a?{height:Math.max(a.y+a.height-(s+c),0),width:l}:{})}if(i==="left"){var S={x:o-p,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return Qe(Qe({},S),a?{width:Math.max(S.x-a.x,0),height:c}:{})}if(i==="right"){var w={x:o+l+p,y:s+c/2,textAnchor:v,verticalAnchor:"middle"};return Qe(Qe({},w),a?{width:Math.max(a.x+a.width-w.x,0),height:c}:{})}var O=a?{width:l,height:c}:{};return i==="insideLeft"?Qe({x:o+p,y:s+c/2,textAnchor:v,verticalAnchor:"middle"},O):i==="insideRight"?Qe({x:o+l-p,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},O):i==="insideTop"?Qe({x:o+l/2,y:s+f,textAnchor:"middle",verticalAnchor:h},O):i==="insideBottom"?Qe({x:o+l/2,y:s+c-f,textAnchor:"middle",verticalAnchor:d},O):i==="insideTopLeft"?Qe({x:o+p,y:s+f,textAnchor:v,verticalAnchor:h},O):i==="insideTopRight"?Qe({x:o+l-p,y:s+f,textAnchor:g,verticalAnchor:h},O):i==="insideBottomLeft"?Qe({x:o+p,y:s+c-f,textAnchor:v,verticalAnchor:d},O):i==="insideBottomRight"?Qe({x:o+l-p,y:s+c-f,textAnchor:g,verticalAnchor:d},O):i&&typeof i=="object"&&(X(i.x)||Fn(i.x))&&(X(i.y)||Fn(i.y))?Qe({x:o+At(i.x,l),y:s+At(i.y,c),textAnchor:"end",verticalAnchor:"end"},O):Qe({x:o+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},kL={offset:5};function _n(e){var t=_t(e,kL),{viewBox:r,position:n,value:i,children:a,content:o,className:s="",textBreakAll:l,labelRef:c}=t,u=SL(),f=l_(),d=n==="center"?f:u??f,h=r||d;if(!h||ze(i)&&ze(a)&&!k.isValidElement(o)&&typeof o!="function")return null;var m=Qe(Qe({},t),{},{viewBox:h});if(k.isValidElement(o)){var{labelRef:p}=m,g=gL(m,mL);return k.cloneElement(o,g)}var v;if(typeof o=="function"){if(v=k.createElement(o,m),k.isValidElement(v))return v}else v=OL(t);var b=c_(h),x=Ue(t,!0);if(b&&(n==="insideStart"||n==="insideEnd"||n==="end"))return EL(t,n,v,x,h);var S=b?PL(h,t.offset,t.position):CL(t,h);return A.createElement(Vl,en({ref:c,className:de("recharts-label",s)},x,S,{breakAll:l}),v)}_n.displayName="Label";var TL=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?A.createElement(_n,en({key:"label-implicit"},n)):Or(e)?A.createElement(_n,en({key:"label-implicit",value:e},n)):k.isValidElement(e)?e.type===_n?k.cloneElement(e,Qe({key:"label-implicit"},n)):A.createElement(_n,en({key:"label-implicit",content:e},n)):Bh(e)?A.createElement(_n,en({key:"label-implicit",content:e},n)):e&&typeof e=="object"?A.createElement(_n,en({},e,{key:"label-implicit"},n)):null};function ML(e){var{label:t}=e,r=l_();return TL(t,r)||null}var zh={},Wh={},u_;function jL(){return u_||(u_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(Wh)),Wh}var Vh={},f_;function DL(){return f_||(f_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(Vh)),Vh}var d_;function NL(){return d_||(d_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jL(),r=DL(),n=zu();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i})(zh)),zh}var Hh,h_;function IL(){return h_||(h_=1,Hh=NL().last),Hh}var $L=IL();const RL=Ir($L);var LL=["valueAccessor"],FL=["dataKey","clockWise","id","textBreakAll"];function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hl.apply(null,arguments)}function p_(e,t){if(e==null)return{};var r,n,i=BL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function BL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var zL=e=>Array.isArray(e.value)?RL(e.value):e.value,m_=k.createContext(void 0),g_=m_.Provider,v_=k.createContext(void 0),WL=v_.Provider;function VL(){return k.useContext(m_)}function HL(){return k.useContext(v_)}function Ul(e){var{valueAccessor:t=zL}=e,r=p_(e,LL),{dataKey:n,clockWise:i,id:a,textBreakAll:o}=r,s=p_(r,FL),l=VL(),c=HL(),u=l||c;return!u||!u.length?null:A.createElement(xt,{className:"recharts-label-list"},u.map((f,d)=>{var h,m=ze(n)?t(f,d):Re(f&&f.payload,n),p=ze(a)?{}:{id:"".concat(a,"-").concat(d)};return A.createElement(_n,Hl({},Ue(f,!0),s,p,{fill:(h=r.fill)!==null&&h!==void 0?h:f.fill,parentViewBox:f.parentViewBox,value:m,textBreakAll:o,viewBox:f.viewBox,key:"label-".concat(d),index:d}))}))}Ul.displayName="LabelList";function Uh(e){var{label:t}=e;return t?t===!0?A.createElement(Ul,{key:"labelList-implicit"}):A.isValidElement(t)||Bh(t)?A.createElement(Ul,{key:"labelList-implicit",content:t}):typeof t=="object"?A.createElement(Ul,Hl({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Kh(){return Kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kh.apply(null,arguments)}var y_=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=de("recharts-dot",i);return t===+t&&r===+r&&n===+n?A.createElement("circle",Kh({},Ar(e),xu(e),{className:a,cx:t,cy:r,r:n})):null},b_=e=>e.graphicalItems.polarItems,UL=N([Ve,ro],th),qh=N([b_,Je,UL],rh),KL=N([qh],nh),Yh=N([KL,Bd],ih),qL=N([Yh,Je,qh],oh),YL=N([Yh,Je,qh],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,o=Re(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:Re(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]}))),x_=()=>{},GL=N([Je,B1,x_,YL,x_,ue,Ve],ch),w_=N([Je,ue,Yh,qL,to,Ve,GL],uh),XL=N([w_,Je,qi],hh);N([Je,w_,XL,Ve],mh);var ZL={radiusAxis:{},angleAxis:{}},__=qt({name:"polarAxis",initialState:ZL,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:CU,removeRadiusAxis:kU,addAngleAxis:TU,removeAngleAxis:MU}=__.actions,JL=__.reducer;function S_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function O_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S_(Object(r),!0).forEach(function(n){QL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QL(e,t,r){return(t=eF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eF(e){var t=tF(e,"string");return typeof t=="symbol"?t:t+""}function tF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rF=(e,t)=>t,Gh=N([b_,rF],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),nF=[],Xh=(e,t,r)=>r?.length===0?nF:r,A_=N([Bd,Gh,Xh],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>O_(O_({},t.presentationProps),a.props))),i!=null)return i}}),iF=N([A_,Gh,Xh],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,o=Re(n,t.nameKey,t.name),s;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?s=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:Ni(o,t.dataKey),color:s,payload:n,type:t.legendType}})}),aF=N([A_,Gh,Xh,st],(e,t,r,n)=>{if(!(t==null||e==null))return r6({offset:n,pieSettings:t,displayedData:e,cells:r})}),Zh={},E_;function oF(){return E_||(E_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(Zh)),Zh}var Jh,P_;function sF(){return P_||(P_=1,Jh=oF().isPlainObject),Jh}var lF=sF();const cF=Ir(lF);function C_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C_(Object(r),!0).forEach(function(n){uF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uF(e,t,r){return(t=fF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fF(e){var t=dF(e,"string");return typeof t=="symbol"?t:t+""}function dF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kl.apply(null,arguments)}var T_=(e,t,r,n,i)=>{var a=r-n,o;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+r,",").concat(t),o+="L ".concat(e+r-a/2,",").concat(t+i),o+="L ".concat(e+r-a/2-n,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z"),o},hF={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},pF=e=>{var t=_t(e,hF),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:f}=t,d=k.useRef(),[h,m]=k.useState(-1),p=k.useRef(i),g=k.useRef(a),v=k.useRef(o),b=k.useRef(r),x=k.useRef(n),S=Ba(e,"trapezoid-");if(k.useEffect(()=>{if(d.current&&d.current.getTotalLength)try{var D=d.current.getTotalLength();D&&m(D)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var w=de("recharts-trapezoid",s);if(!f)return A.createElement("g",null,A.createElement("path",Kl({},Ue(t,!0),{className:w,d:T_(r,n,i,a,o)})));var O=p.current,E=g.current,C=v.current,M=b.current,$=x.current,j="0px ".concat(h===-1?1:h,"px"),_="".concat(h,"px 0px"),I=ub(["strokeDasharray"],c,l);return A.createElement(Fa,{animationId:S,key:S,canBegin:h>0,duration:c,easing:l,isActive:f,begin:u},D=>{var L=Ye(O,i,D),W=Ye(E,a,D),H=Ye(C,o,D),te=Ye(M,r,D),Q=Ye($,n,D);d.current&&(p.current=L,g.current=W,v.current=H,b.current=te,x.current=Q);var F=D>0?{transition:I,strokeDasharray:_}:{strokeDasharray:j};return A.createElement("path",Kl({},Ue(t,!0),{className:w,d:T_(te,Q,L,W,H),ref:d,style:k_(k_({},F),t.style)}))})},mF=["option","shapeType","propTransformer","activeClassName","isActive"];function gF(e,t){if(e==null)return{};var r,n,i=vF(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vF(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function M_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ql(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M_(Object(r),!0).forEach(function(n){yF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yF(e,t,r){return(t=bF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bF(e){var t=xF(e,"string");return typeof t=="symbol"?t:t+""}function xF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wF(e,t){return ql(ql({},t),e)}function _F(e,t){return e==="symbols"}function j_(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return A.createElement(wb,r);case"trapezoid":return A.createElement(pF,r);case"sector":return A.createElement(Ob,r);case"symbols":if(_F(t))return A.createElement(Lv,r);break;default:return null}}function SF(e){return k.isValidElement(e)?e.props:e}function D_(e){var{option:t,shapeType:r,propTransformer:n=wF,activeClassName:i="recharts-active-shape",isActive:a}=e,o=gF(e,mF),s;if(k.isValidElement(t))s=k.cloneElement(t,ql(ql({},o),SF(t)));else if(typeof t=="function")s=t(o);else if(cF(t)&&typeof t!="boolean"){var l=n(t,o);s=A.createElement(j_,{shapeType:r,elementProps:l})}else{var c=o;s=A.createElement(j_,{shapeType:r,elementProps:c})}return a?A.createElement(xt,{className:i},s):s}var Qh=(e,t)=>{var r=Ze();return(n,i)=>a=>{e?.(n,i,a),r(iw({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}},ep=e=>{var t=Ze();return(r,n)=>i=>{e?.(r,n,i),t(i$())}},tp=(e,t)=>{var r=Ze();return(n,i)=>a=>{e?.(n,i,a),r(a$({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}};function rp(e){var{fn:t,args:r}=e,n=Ze(),i=Nt();return k.useEffect(()=>{if(!i){var a=t(r);return n(t$(a)),()=>{n(r$(a))}}},[t,r,n,i]),null}var N_=()=>{};function I_(e){var{legendPayload:t}=e,r=Ze(),n=Nt();return k.useEffect(()=>n?N_:(r(Z0(t)),()=>{r(J0(t))}),[r,n,t]),null}function OF(e){var{legendPayload:t}=e,r=Ze(),n=G(ue);return k.useEffect(()=>n!=="centric"&&n!=="radial"?N_:(r(Z0(t)),()=>{r(J0(t))}),[r,n,t]),null}var np,AF=()=>{var[e]=A.useState(()=>Aa("uid-"));return e},EF=(np=A.useId)!==null&&np!==void 0?np:AF;function PF(e,t){var r=EF();return t||(e?"".concat(e,"-").concat(r):r)}var CF=k.createContext(void 0),ip=e=>{var{id:t,type:r,children:n}=e,i=PF("recharts-".concat(r),t);return A.createElement(CF.Provider,{value:i},n(i))},kF={cartesianItems:[],polarItems:[]},$_=qt({name:"graphicalItems",initialState:kF,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:r,next:n}=t.payload,i=Br(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},removeCartesianGraphicalItem(e,t){var r=Br(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var r=Br(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)}}}),{addCartesianGraphicalItem:TF,replaceCartesianGraphicalItem:MF,removeCartesianGraphicalItem:jF,addPolarGraphicalItem:DF,removePolarGraphicalItem:NF}=$_.actions,IF=$_.reducer;function R_(e){var t=Ze(),r=k.useRef(null);return k.useEffect(()=>{r.current===null?t(TF(e)):r.current!==e&&t(MF({prev:r.current,next:e})),r.current=e},[t,e]),k.useEffect(()=>()=>{r.current&&(t(jF(r.current)),r.current=null)},[t]),null}function $F(e){var t=Ze();return k.useEffect(()=>(t(DF(e)),()=>{t(NF(e))}),[t,e]),null}var RF=["onMouseEnter","onClick","onMouseLeave"],LF=["id"],FF=["id"];function ap(e,t){if(e==null)return{};var r,n,i=BF(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function BF(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function L_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L_(Object(r),!0).forEach(function(n){zF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zF(e,t,r){return(t=WF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WF(e){var t=VF(e,"string");return typeof t=="symbol"?t:t+""}function VF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(null,arguments)}function HF(e){var t=k.useMemo(()=>_u(e.children,kr),[e.children]),r=G(n=>iF(n,e.id,t));return r==null?null:A.createElement(OF,{legendPayload:r})}function UF(e){var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:o,name:s,hide:l,tooltipType:c}=e;return{dataDefinedOnItem:n.map(u=>u.tooltipPayload),positions:n.map(u=>u.tooltipPosition),settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:r,name:Ni(s,t),hide:l,type:c,color:o,unit:""}}}var KF=(e,t)=>e>t?"start":e<t?"end":"middle",qF=(e,t,r)=>At(typeof t=="function"?t(e):t,r,r*.8),YF=(e,t,r)=>{var{top:n,left:i,width:a,height:o}=t,s=j0(a,o),l=i+At(e.cx,a,a/2),c=n+At(e.cy,o,o/2),u=At(e.innerRadius,s,0),f=qF(r,e.outerRadius,s),d=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:f,maxRadius:d}},GF=(e,t)=>{var r=pt(t-e),n=Math.min(Math.abs(t-e),360);return r*n};function XF(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var ZF=(e,t)=>{if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return e(t);var r=de("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return A.createElement(Yf,Sn({},t,{type:"linear",className:r}))},JF=(e,t,r)=>{if(A.isValidElement(e))return A.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),A.isValidElement(n)))return n;var i=de("recharts-pie-label-text",XF(e));return A.createElement(Vl,Sn({},t,{alignmentBaseline:"middle",className:i}),n)};function QF(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:o}=r;if(!n||!i||!t)return null;var s=Ar(r),l=Ue(i,!1),c=Ue(a,!1),u=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((d,h)=>{var m=(d.startAngle+d.endAngle)/2,p=it(d.cx,d.cy,d.outerRadius+u,m),g=He(He(He(He({},s),d),{},{stroke:"none"},l),{},{index:h,textAnchor:KF(p.x,d.cx)},p),v=He(He(He(He({},s),d),{},{fill:"none",stroke:d.fill},c),{},{index:h,points:[it(d.cx,d.cy,d.outerRadius,m),p],key:"line"});return A.createElement(xt,{key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(h)},a&&ZF(a,v),JF(i,g,Re(d,o)))});return A.createElement(xt,{className:"recharts-pie-labels"},f)}function e6(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?A.createElement(Uh,{label:i}):A.createElement(QF,{sectors:t,props:r,showLabels:n})}function t6(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i}=e,a=G(wn),{onMouseEnter:o,onClick:s,onMouseLeave:l}=i,c=ap(i,RF),u=Qh(o,i.dataKey),f=ep(l),d=tp(s,i.dataKey);return t==null||t.length===0?null:A.createElement(A.Fragment,null,t.map((h,m)=>{if(h?.startAngle===0&&h?.endAngle===0&&t.length!==1)return null;var p=r&&String(m)===a,g=a?n:null,v=p?r:g,b=He(He({},h),{},{stroke:h.stroke,tabIndex:-1,[H0]:m,[U0]:i.dataKey});return A.createElement(xt,Sn({tabIndex:-1,className:"recharts-pie-sector"},bs(c,h,m),{onMouseEnter:u(h,m),onMouseLeave:f(h,m),onClick:d(h,m),key:"sector-".concat(h?.startAngle,"-").concat(h?.endAngle,"-").concat(h.midAngle,"-").concat(m)}),A.createElement(D_,Sn({option:v,isActive:p,shapeType:"sector"},b)))}))}function r6(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:o,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:f}=r,d=Math.abs(r.minAngle),h=GF(s,l),m=Math.abs(h),p=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,g=n.filter(O=>Re(O,c,0)!==0).length,v=(m>=360?g:g-1)*p,b=m-g*d-v,x=n.reduce((O,E)=>{var C=Re(E,c,0);return O+(X(C)?C:0)},0),S;if(x>0){var w;S=n.map((O,E)=>{var C=Re(O,c,0),M=Re(O,u,E),$=YF(r,a,O),j=(X(C)?C:0)/x,_,I=He(He({},O),i&&i[E]&&i[E].props);E?_=w.endAngle+pt(h)*p*(C!==0?1:0):_=s;var D=_+pt(h)*((C!==0?d:0)+j*b),L=(_+D)/2,W=($.innerRadius+$.outerRadius)/2,H=[{name:M,value:C,payload:I,dataKey:c,type:f}],te=it($.cx,$.cy,W,L);return w=He(He(He(He({},r.presentationProps),{},{percent:j,cornerRadius:o,name:M,tooltipPayload:H,midAngle:L,middleRadius:W,tooltipPosition:te},I),$),{},{value:C,startAngle:_,endAngle:D,payload:I,paddingAngle:pt(h)*p}),w})}return S}function n6(e){var{showLabels:t,sectors:r,children:n}=e,i=k.useMemo(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return A.createElement(WL,{value:t?i:void 0},n)}function i6(e){var{props:t,previousSectorsRef:r}=e,{sectors:n,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,activeShape:l,inactiveShape:c,onAnimationStart:u,onAnimationEnd:f}=t,d=Ba(t,"recharts-pie-"),h=r.current,[m,p]=k.useState(!1),g=k.useCallback(()=>{typeof f=="function"&&f(),p(!1)},[f]),v=k.useCallback(()=>{typeof u=="function"&&u(),p(!0)},[u]);return A.createElement(n6,{showLabels:!m,sectors:n},A.createElement(Fa,{animationId:d,begin:a,duration:o,isActive:i,easing:s,onAnimationStart:v,onAnimationEnd:g,key:d},b=>{var x=[],S=n&&n[0],w=S?.startAngle;return n?.forEach((O,E)=>{var C=h&&h[E],M=E>0?Ln(O,"paddingAngle",0):0;if(C){var $=Ye(C.endAngle-C.startAngle,O.endAngle-O.startAngle,b),j=He(He({},O),{},{startAngle:w+M,endAngle:w+$+M});x.push(j),w=j.endAngle}else{var{endAngle:_,startAngle:I}=O,D=Ye(0,_-I,b),L=He(He({},O),{},{startAngle:w+M,endAngle:w+D+M});x.push(L),w=L.endAngle}}),r.current=x,A.createElement(xt,null,A.createElement(t6,{sectors:x,activeShape:l,inactiveShape:c,allOtherPieProps:t}))}),A.createElement(e6,{showLabels:!m,sectors:n,props:t}),t.children)}var a6={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!dn.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function o6(e){var{id:t}=e,r=ap(e,LF),{hide:n,className:i,rootTabIndex:a}=e,o=k.useMemo(()=>_u(e.children,kr),[e.children]),s=G(u=>aF(u,t,o)),l=k.useRef(null),c=de("recharts-pie",i);return n||s==null?(l.current=null,A.createElement(xt,{tabIndex:a,className:c})):A.createElement(A.Fragment,null,A.createElement(rp,{fn:UF,args:He(He({},e),{},{sectors:s})}),A.createElement(xt,{tabIndex:a,className:c},A.createElement(i6,{props:He(He({},r),{},{sectors:s}),previousSectorsRef:l})))}function fo(e){var t=_t(e,a6),{id:r}=t,n=ap(t,FF),i=Ar(n);return A.createElement(ip,{id:r,type:"pie"},a=>A.createElement(A.Fragment,null,A.createElement($F,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),A.createElement(HF,Sn({},n,{id:a})),A.createElement(o6,Sn({},n,{id:a}))))}fo.displayName="Pie";function F_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function B_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(r),!0).forEach(function(n){s6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s6(e,t,r){return(t=l6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l6(e){var t=c6(e,"string");return typeof t=="symbol"?t:t+""}function c6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u6={xAxis:{},yAxis:{},zAxis:{}},z_=qt({name:"cartesianAxis",initialState:u6,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload;e.yAxis[r]&&(e.yAxis[r]=B_(B_({},e.yAxis[r]),{},{width:n}))}}}),{addXAxis:f6,removeXAxis:d6,addYAxis:h6,removeYAxis:p6,addZAxis:jU,removeZAxis:DU,updateYAxisWidth:m6}=z_.actions,g6=z_.reducer,v6=N([st],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),y6=N([v6,zr,Wr],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),op=()=>G(y6),b6=()=>G(U$);function W_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function V_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W_(Object(r),!0).forEach(function(n){x6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x6(e,t,r){return(t=w6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w6(e){var t=_6(e,"string");return typeof t=="symbol"?t:t+""}function _6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S6=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var o=V_(V_({index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},Ue(i,!1)),xu(i)),s;return k.isValidElement(i)?s=k.cloneElement(i,o):typeof i=="function"?s=i(o):s=A.createElement(y_,o),A.createElement(xt,{className:"recharts-active-dot"},s)};function O6(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i}=e,a=G(wn),o=b6();if(t==null||o==null)return null;var s=t.find(l=>o.includes(l.payload));return ze(s)?null:S6({point:s,childIndex:Number(a),mainColor:r,dataKey:i,activeDot:n})}var A6=process.env.NODE_ENV==="production",sp="Invariant failed";function H_(e,t){if(A6)throw new Error(sp);var r=typeof t=="function"?t():t,n=r?"".concat(sp,": ").concat(r):sp;throw new Error(n)}var E6=["x","y"];function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lp.apply(null,arguments)}function U_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ho(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U_(Object(r),!0).forEach(function(n){P6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P6(e,t,r){return(t=C6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C6(e){var t=k6(e,"string");return typeof t=="symbol"?t:t+""}function k6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function T6(e,t){if(e==null)return{};var r,n,i=M6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function M6(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function j6(e,t){var{x:r,y:n}=e,i=T6(e,E6),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),f="".concat(t.width||i.width),d=parseInt(f,10);return ho(ho(ho(ho(ho({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function cp(e){return A.createElement(D_,lp({shapeType:"rectangle",propTransformer:j6,activeClassName:"recharts-active-bar"},e))}var D6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(X(t))return t;var a=X(n)||ze(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?H_(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")):H_()),r)}},N6={},K_=qt({name:"errorBars",initialState:N6,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:NU,replaceErrorBar:IU,removeErrorBar:$U}=K_.actions,I6=K_.reducer,$6=["children"];function R6(e,t){if(e==null)return{};var r,n,i=L6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function L6(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var F6={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},B6=k.createContext(F6);function q_(e){var{children:t}=e,r=R6(e,$6);return A.createElement(B6.Provider,{value:r},t)}function up(e,t){var r,n,i=G(c=>Zr(c,e)),a=G(c=>Jr(c,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:Zt.allowDataOverflow,s=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Jt.allowDataOverflow,l=o||s;return{needClip:l,needClipX:o,needClipY:s}}function Y_(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=op(),{needClipX:a,needClipY:o,needClip:s}=up(t,r);if(!s)return null;var{x:l,y:c,width:u,height:f}=i;return A.createElement("clipPath",{id:"clipPath-".concat(n)},A.createElement("rect",{x:a?l:l-u/2,y:o?c:c-f/2,width:a?u:u*2,height:o?f:f*2}))}var z6=["onMouseEnter","onMouseLeave","onClick"],W6=["value","background","tooltipPosition"],V6=["id"],H6=["onMouseEnter","onClick","onMouseLeave"];function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},On.apply(null,arguments)}function G_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G_(Object(r),!0).forEach(function(n){U6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U6(e,t,r){return(t=K6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K6(e){var t=q6(e,"string");return typeof t=="symbol"?t:t+""}function q6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yl(e,t){if(e==null)return{};var r,n,i=Y6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Y6(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var G6=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ni(r,t),payload:e}]};function X6(e){var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:s}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Ni(a,t),hide:o,type:e.tooltipType,color:e.fill,unit:s}}}function Z6(e){var t=G(wn),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:s,onClick:l}=a,c=Yl(a,z6),u=Qh(o,n),f=ep(s),d=tp(l,n);if(!i||r==null)return null;var h=Ue(i,!1);return A.createElement(A.Fragment,null,r.map((m,p)=>{var{value:g,background:v,tooltipPosition:b}=m,x=Yl(m,W6);if(!v)return null;var S=u(m,p),w=f(m,p),O=d(m,p),E=Tt(Tt(Tt(Tt(Tt({option:i,isActive:String(p)===t},x),{},{fill:"#eee"},v),h),bs(c,m,p)),{},{onMouseEnter:S,onMouseLeave:w,onClick:O,dataKey:n,index:p,className:"recharts-bar-background-rectangle"});return A.createElement(cp,On({key:"background-bar-".concat(E.index)},E))}))}function J6(e){var{showLabels:t,children:r,rects:n}=e,i=n?.map(a=>{var o={x:a.x,y:a.y,width:a.width,height:a.height};return Tt(Tt({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return A.createElement(g_,{value:t?i:void 0},r)}function Q6(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,s=G(wn),l=G(xw),c=r&&String(a)===s&&(l==null||o===l),u=c?r:t;return A.createElement(cp,On({},n,i,{isActive:c,option:u,index:a,dataKey:o}))}function eB(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return A.createElement(cp,On({},r,n,{isActive:!1,option:t,index:i,dataKey:a}))}function tB(e){var{data:t,props:r}=e,n=Ar(r),{id:i}=n,a=Yl(n,V6),{shape:o,dataKey:s,activeBar:l}=r,{onMouseEnter:c,onClick:u,onMouseLeave:f}=r,d=Yl(r,H6),h=Qh(c,s),m=ep(f),p=tp(u,s);return t?A.createElement(A.Fragment,null,t.map((g,v)=>A.createElement(xt,On({className:"recharts-bar-rectangle"},bs(d,g,v),{onMouseEnter:h(g,v),onMouseLeave:m(g,v),onClick:p(g,v),key:"rectangle-".concat(g?.x,"-").concat(g?.y,"-").concat(g?.value,"-").concat(v)}),l?A.createElement(Q6,{shape:o,activeBar:l,baseProps:a,entry:g,index:v,dataKey:s}):A.createElement(eB,{shape:o,baseProps:a,entry:g,index:v,dataKey:s})))):null}function rB(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,f=r.current,d=Ba(t,"recharts-bar-"),[h,m]=k.useState(!1),p=!h,g=k.useCallback(()=>{typeof c=="function"&&c(),m(!1)},[c]),v=k.useCallback(()=>{typeof u=="function"&&u(),m(!0)},[u]);return A.createElement(J6,{showLabels:p,rects:n},A.createElement(Fa,{animationId:d,begin:o,duration:s,isActive:a,easing:l,onAnimationEnd:g,onAnimationStart:v,key:d},b=>{var x=b===1?n:n?.map((S,w)=>{var O=f&&f[w];if(O)return Tt(Tt({},S),{},{x:Ye(O.x,S.x,b),y:Ye(O.y,S.y,b),width:Ye(O.width,S.width,b),height:Ye(O.height,S.height,b)});if(i==="horizontal"){var E=Ye(0,S.height,b);return Tt(Tt({},S),{},{y:S.y+S.height-E,height:E})}var C=Ye(0,S.width,b);return Tt(Tt({},S),{},{width:C})});return b>0&&(r.current=x??null),x==null?null:A.createElement(xt,null,A.createElement(tB,{props:t,data:x}))}),A.createElement(Uh,{label:t.label}),t.children)}function nB(e){var t=k.useRef(null);return A.createElement(rB,{previousRectanglesRef:t,props:e})}var X_=0,iB=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Re(e,t)}};class aB extends k.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:s,background:l,id:c}=this.props;if(t||r==null)return null;var u=de("recharts-bar",i),f=c;return A.createElement(xt,{className:u,id:c},s&&A.createElement("defs",null,A.createElement(Y_,{clipPathId:f,xAxisId:a,yAxisId:o})),A.createElement(xt,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(f,")"):void 0},A.createElement(Z6,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),A.createElement(nB,this.props)))}}var oB={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!dn.isSsr,legendType:"rect",minPointSize:X_,xAxisId:0,yAxisId:0};function sB(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:f}=up(t,r),d=tl(),h=Nt(),m=_u(e.children,kr),p=G(b=>IB(b,t,r,h,e.id,m));if(d!=="vertical"&&d!=="horizontal")return null;var g,v=p?.[0];return v==null||v.height==null||v.width==null?g=0:g=d==="vertical"?v.height/2:v.width/2,A.createElement(q_,{xAxisId:t,yAxisId:r,data:p,dataPointFormatter:iB,errorBarOffset:g},A.createElement(aB,On({},e,{layout:d,needClip:f,data:p,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function lB(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:o,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:f,offset:d,cells:h,parentViewBox:m}=e,p=t==="horizontal"?s:o,g=u?p.scale.domain():null,v=Nj({numericAxis:p});return f.map((b,x)=>{var S,w,O,E,C,M;u?S=Cj(u[x],g):(S=Re(b,r),Array.isArray(S)||(S=[v,S]));var $=D6(n,X_)(S[1],x);if(t==="horizontal"){var j,[_,I]=[s.scale(S[0]),s.scale(S[1])];w=F0({axis:o,ticks:l,bandSize:a,offset:i.offset,entry:b,index:x}),O=(j=I??_)!==null&&j!==void 0?j:void 0,E=i.size;var D=_-I;if(C=Ut(D)?0:D,M={x:w,y:d.top,width:E,height:d.height},Math.abs($)>0&&Math.abs(C)<Math.abs($)){var L=pt(C||$)*(Math.abs($)-Math.abs(C));O-=L,C+=L}}else{var[W,H]=[o.scale(S[0]),o.scale(S[1])];if(w=W,O=F0({axis:s,ticks:c,bandSize:a,offset:i.offset,entry:b,index:x}),E=H-W,C=i.size,M={x:d.left,y:O,width:d.width,height:C},Math.abs($)>0&&Math.abs(E)<Math.abs($)){var te=pt(E||$)*(Math.abs($)-Math.abs(E));E+=te}}if(w==null||O==null||E==null||C==null)return null;var Q=Tt(Tt({},b),{},{x:w,y:O,width:E,height:C,value:u?S:S[1],payload:b,background:M,tooltipPosition:{x:w+E/2,y:O+C/2},parentViewBox:m},h&&h[x]&&h[x].props);return Q}).filter(Boolean)}function cB(e){var t=_t(e,oB),r=Nt();return A.createElement(ip,{id:t.id,type:"bar"},n=>A.createElement(A.Fragment,null,A.createElement(I_,{legendPayload:G6(t)}),A.createElement(rp,{fn:X6,args:t}),A.createElement(R_,{type:"bar",id:n,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:Dj(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),A.createElement(sB,On({},t,{id:n}))))}var Z_=A.memo(cB);Z_.displayName="Bar";function J_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J_(Object(r),!0).forEach(function(n){uB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uB(e,t,r){return(t=fB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fB(e){var t=dB(e,"string");return typeof t=="symbol"?t:t+""}function dB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hB=(e,t)=>t,pB=(e,t,r)=>r,mB=(e,t,r,n)=>n,gB=(e,t,r,n,i)=>i,po=N([Dl,gB],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),vB=N([po],e=>e?.maxBarSize),yB=(e,t,r,n,i,a)=>a,Q_=(e,t,r)=>{var n=r??e;if(!ze(n))return At(n,t,0)},bB=N([ue,Dl,hB,pB,mB],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),xB=(e,t,r,n)=>{var i=ue(e);return i==="horizontal"?sh(e,"yAxis",r,n):sh(e,"xAxis",t,n)},wB=(e,t,r)=>{var n=ue(e);return n==="horizontal"?Y1(e,"xAxis",t):Y1(e,"yAxis",r)},_B=(e,t,r)=>{var n={},i=e.filter(Ml),a=e.filter(c=>c.stackId==null),o=i.reduce((c,u)=>(c[u.stackId]||(c[u.stackId]=[]),c[u.stackId].push(u),c),n),s=Object.entries(o).map(c=>{var[u,f]=c,d=f.map(m=>m.dataKey),h=Q_(t,r,f[0].barSize);return{stackId:u,dataKeys:d,barSize:h}}),l=a.map(c=>{var u=[c.dataKey].filter(d=>d!=null),f=Q_(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:f}});return[...s,...l]},SB=N([bB,e4,wB],_B),OB=(e,t,r,n,i)=>{var a,o,s=po(e,t,r,n,i);if(s!=null){var l=ue(e),c=f1(e),{maxBarSize:u}=s,f=ze(u)?c:u,d,h;return l==="horizontal"?(d=bn(e,"xAxis",t,n),h=yn(e,"xAxis",t,n)):(d=bn(e,"yAxis",r,n),h=yn(e,"yAxis",r,n)),(a=(o=Da(d,h,!0))!==null&&o!==void 0?o:f)!==null&&a!==void 0?a:0}},e2=(e,t,r,n)=>{var i=ue(e),a,o;return i==="horizontal"?(a=bn(e,"xAxis",t,n),o=yn(e,"xAxis",t,n)):(a=bn(e,"yAxis",r,n),o=yn(e,"yAxis",r,n)),Da(a,o)};function AB(e,t,r,n,i){var a=n.length;if(!(a<1)){var o=At(e,r,0,!0),s,l=[];if(Yt(n[0].barSize)){var c=!1,u=r/a,f=n.reduce((v,b)=>v+(b.barSize||0),0);f+=(a-1)*o,f>=r&&(f-=(a-1)*o,o=0),f>=r&&u>0&&(c=!0,u*=.9,f=a*u);var d=(r-f)/2>>0,h={offset:d-o,size:0};s=n.reduce((v,b)=>{var x,S={stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:h.offset+h.size+o,size:c?u:(x=b.barSize)!==null&&x!==void 0?x:0}},w=[...v,S];return h=w[w.length-1].position,w},l)}else{var m=At(t,r,0,!0);r-2*m-(a-1)*o<=0&&(o=0);var p=(r-2*m-(a-1)*o)/a;p>1&&(p>>=0);var g=Yt(i)?Math.min(p,i):p;s=n.reduce((v,b,x)=>[...v,{stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:m+(p+o)*x+(p-g)/2,size:g}}],l)}return s}}var EB=(e,t,r,n,i,a,o)=>{var s=ze(o)?t:o,l=AB(r,n,i!==a?i:a,e,s);return i!==a&&l!=null&&(l=l.map(c=>Gl(Gl({},c),{},{position:Gl(Gl({},c.position),{},{offset:c.position.offset-i/2})}))),l},PB=N([SB,f1,QI,d1,OB,e2,vB],EB),CB=(e,t,r,n)=>bn(e,"xAxis",t,n),kB=(e,t,r,n)=>bn(e,"yAxis",r,n),TB=(e,t,r,n)=>yn(e,"xAxis",t,n),MB=(e,t,r,n)=>yn(e,"yAxis",r,n),jB=N([PB,po],(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}}),DB=(e,t)=>{var r=Jd(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(o=>o.key===r)}}}},NB=N([xB,po],DB),IB=N([st,Wf,CB,kB,TB,MB,jB,ue,El,e2,NB,po,yB],(e,t,r,n,i,a,o,s,l,c,u,f,d)=>{var{chartData:h,dataStartIndex:m,dataEndIndex:p}=l;if(!(f==null||o==null||t==null||s!=="horizontal"&&s!=="vertical"||r==null||n==null||i==null||a==null||c==null)){var{data:g}=f,v;if(g!=null&&g.length>0?v=g:v=h?.slice(m,p+1),v!=null)return lB({layout:s,barSettings:f,pos:o,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:v,offset:e,cells:d})}}),t2=e=>{var{chartData:t}=e,r=Ze(),n=Nt();return k.useEffect(()=>n?()=>{}:(r(Nw(t)),()=>{r(Nw(void 0))}),[t,r,n]),null},r2={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},n2=qt({name:"brush",initialState:r2,reducers:{setBrushSettings(e,t){return t.payload==null?r2:t.payload}}}),{setBrushSettings:RU}=n2.actions,$B=n2.reducer;function RB(e,t,r){return(t=LB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LB(e){var t=FB(e,"string");return typeof t=="symbol"?t:t+""}function FB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class fp{static create(t){return new fp(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:r,position:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}RB(fp,"EPS",1e-4);function BB(e){return(e%180+180)%180}var zB=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=BB(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},WB={dots:[],areas:[],lines:[]},i2=qt({name:"referenceElements",initialState:WB,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Br(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Br(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Br(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:LU,removeDot:FU,addArea:BU,removeArea:zU,addLine:WU,removeLine:VU}=i2.actions,VB=i2.reducer,HB=k.createContext(void 0),UB=e=>{var{children:t}=e,[r]=k.useState("".concat(Aa("recharts"),"-clip")),n=op();if(n==null)return null;var{x:i,y:a,width:o,height:s}=n;return A.createElement(HB.Provider,{value:r},A.createElement("defs",null,A.createElement("clipPath",{id:r},A.createElement("rect",{x:i,y:a,height:s,width:o}))),t)};function Ji(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function a2(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function KB(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return zB(n,r)}function qB(e,t,r){var n=r==="width",{x:i,y:a,width:o,height:s}=e;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Xl(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function YB(e,t){return a2(e,t+1)}function GB(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:s}=t,l=0,c=1,u=o,f=function(){var m=n?.[l];if(m===void 0)return{v:a2(n,c)};var p=l,g,v=()=>(g===void 0&&(g=r(m,p)),g),b=m.coordinate,x=l===0||Xl(e,b,v,u,s);x||(l=0,u=o,c+=1),x&&(u=b+e*(v()/2+i),l+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function o2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o2(Object(r),!0).forEach(function(n){XB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XB(e,t,r){return(t=ZB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZB(e){var t=JB(e,"string");return typeof t=="symbol"?t:t+""}function JB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QB(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:s}=t,{end:l}=t,c=function(d){var h=a[d],m,p=()=>(m===void 0&&(m=r(h,d)),m);if(d===o-1){var g=e*(h.coordinate+e*p()/2-l);a[d]=h=Et(Et({},h),{},{tickCoord:g>0?h.coordinate-g*e:h.coordinate})}else a[d]=h=Et(Et({},h),{},{tickCoord:h.coordinate});var v=Xl(e,h.tickCoord,p,s,l);v&&(l=h.tickCoord-e*(p()/2+i),a[d]=Et(Et({},h),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}function e3(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,{start:l,end:c}=t;if(a){var u=n[s-1],f=r(u,s-1),d=e*(u.coordinate+e*f/2-c);o[s-1]=u=Et(Et({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate});var h=Xl(e,u.tickCoord,()=>f,l,c);h&&(c=u.tickCoord-e*(f/2+i),o[s-1]=Et(Et({},u),{},{isShow:!0}))}for(var m=a?s-1:s,p=function(b){var x=o[b],S,w=()=>(S===void 0&&(S=r(x,b)),S);if(b===0){var O=e*(x.coordinate-e*w()/2-l);o[b]=x=Et(Et({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[b]=x=Et(Et({},x),{},{tickCoord:x.coordinate});var E=Xl(e,x.tickCoord,w,l,c);E&&(l=x.tickCoord+e*(w()/2+i),o[b]=Et(Et({},x),{},{isShow:!0}))},g=0;g<m;g++)p(g);return o}function dp(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:l,tickFormatter:c,unit:u,angle:f}=e;if(!i||!i.length||!n)return[];if(X(l)||dn.isSsr){var d;return(d=YB(i,X(l)?l:0))!==null&&d!==void 0?d:[]}var h=[],m=s==="top"||s==="bottom"?"width":"height",p=u&&m==="width"?uo(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},g=(x,S)=>{var w=typeof c=="function"?c(x.value,S):x.value;return m==="width"?KB(uo(w,{fontSize:t,letterSpacing:r}),p,f):uo(w,{fontSize:t,letterSpacing:r})[m]},v=i.length>=2?pt(i[1].coordinate-i[0].coordinate):1,b=qB(a,v,m);return l==="equidistantPreserveStart"?GB(v,b,g,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=e3(v,b,g,i,o,l==="preserveStartEnd"):h=QB(v,b,g,i,o),h.filter(x=>x.isShow))}var t3=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){t.forEach(u=>{if(u){var f=u.getBoundingClientRect();f.width>o&&(o=f.width)}});var s=r?r.getBoundingClientRect().width:0,l=i+a,c=o+l+s+(r?n:0);return Math.round(c)}return 0},r3=["axisLine","width","height","className","hide","ticks"],n3=["viewBox"],i3=["viewBox"];function hp(e,t){if(e==null)return{};var r,n,i=a3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function a3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ai.apply(null,arguments)}function s2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s2(Object(r),!0).forEach(function(n){o3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o3(e,t,r){return(t=s3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s3(e){var t=l3(e,"string");return typeof t=="symbol"?t:t+""}function l3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pp={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};function c3(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:o,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var c=ut(ut(ut({},l),Ue(s,!1)),{},{fill:"none"});if(a==="top"||a==="bottom"){var u=+(a==="top"&&!o||a==="bottom"&&o);c=ut(ut({},c),{},{x1:t,y1:r+u*i,x2:t+n,y2:r+u*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);c=ut(ut({},c),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return A.createElement("line",ai({},c,{className:de("recharts-cartesian-axis-line",Ln(s,"className"))}))}function u3(e,t,r,n,i,a,o,s,l){var c,u,f,d,h,m,p=s?-1:1,g=e.tickSize||o,v=X(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=u=e.coordinate,d=r+ +!s*i,f=d-p*g,m=f-p*l,h=v;break;case"left":f=d=e.coordinate,u=t+ +!s*n,c=u-p*g,h=c-p*l,m=v;break;case"right":f=d=e.coordinate,u=t+ +s*n,c=u+p*g,h=c+p*l,m=v;break;default:c=u=e.coordinate,d=r+ +s*i,f=d+p*g,m=f+p*l,h=v;break}return{line:{x1:c,y1:f,x2:u,y2:d},tick:{x:h,y:m}}}function f3(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function d3(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function h3(e){var{option:t,tickProps:r,value:n}=e,i,a=de(r.className,"recharts-cartesian-axis-tick-value");if(A.isValidElement(t))i=A.cloneElement(t,ut(ut({},r),{},{className:a}));else if(typeof t=="function")i=t(ut(ut({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=de(o,t?.className)),i=A.createElement(Vl,ai({},r,{className:o}),n)}return i}function p3(e){var{ticks:t=[],tick:r,tickLine:n,stroke:i,tickFormatter:a,unit:o,padding:s,tickTextProps:l,orientation:c,mirror:u,x:f,y:d,width:h,height:m,tickSize:p,tickMargin:g,fontSize:v,letterSpacing:b,getTicksConfig:x,events:S}=e,w=dp(ut(ut({},x),{},{ticks:t}),v,b),O=f3(c,u),E=d3(c,u),C=Ar(x),M=Ue(r,!1),$=ut(ut({},C),{},{fill:"none"},Ue(n,!1)),j=w.map((_,I)=>{var{line:D,tick:L}=u3(_,f,d,h,m,c,p,u,g),W=ut(ut(ut(ut({textAnchor:O,verticalAnchor:E},C),{},{stroke:"none",fill:i},M),L),{},{index:I,payload:_,visibleTicksCount:w.length,tickFormatter:a,padding:s},l);return A.createElement(xt,ai({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},bs(S,_,I)),n&&A.createElement("line",ai({},$,D,{className:de("recharts-cartesian-axis-tick-line",Ln(n,"className"))})),r&&A.createElement(h3,{option:r,tickProps:W,value:"".concat(typeof a=="function"?a(_.value,I):_.value).concat(o||"")}))});return j.length>0?A.createElement("g",{className:"recharts-cartesian-axis-ticks"},j):null}var m3=k.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:s}=e,l=hp(e,r3),[c,u]=k.useState(""),[f,d]=k.useState(""),h=k.useRef([]);k.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var p;return t3({ticks:h.current,label:(p=e.labelRef)===null||p===void 0?void 0:p.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=k.useCallback(p=>{if(p){var g=p.getElementsByClassName("recharts-cartesian-axis-tick-value");h.current=Array.from(g);var v=g[0];if(v){var b=window.getComputedStyle(v),x=b.fontSize,S=b.letterSpacing;(x!==c||S!==f)&&(u(x),d(S))}}},[c,f]);return o||n!=null&&n<=0||i!=null&&i<=0?null:A.createElement(xt,{className:de("recharts-cartesian-axis",a),ref:m},A.createElement(c3,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Ar(e)}),A.createElement(p3,{ticks:s,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:c,letterSpacing:f,getTicksConfig:e,events:l}),A.createElement(wL,{x:e.x,y:e.y,width:e.width,height:e.height},A.createElement(ML,{label:e.label}),e.children))}),g3=A.memo(m3,(e,t)=>{var{viewBox:r}=e,n=hp(e,n3),{viewBox:i}=t,a=hp(t,i3);return Ji(r,i)&&Ji(n,a)}),mp=A.forwardRef((e,t)=>{var r=_t(e,pp);return A.createElement(g3,ai({},r,{ref:t}))});mp.displayName="CartesianAxis";var v3=["x1","y1","x2","y2","key"],y3=["offset"],b3=["xAxisId","yAxisId"],x3=["xAxisId","yAxisId"];function l2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(r),!0).forEach(function(n){w3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w3(e,t,r){return(t=_3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _3(e){var t=S3(e,"string");return typeof t=="symbol"?t:t+""}function S3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oi.apply(null,arguments)}function Zl(e,t){if(e==null)return{};var r,n,i=O3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function O3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var A3=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:s}=e;return A.createElement("rect",{x:n,y:i,ry:s,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function c2(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var{x1:n,y1:i,x2:a,y2:o,key:s}=t,l=Zl(t,v3),c=Ar(l),{offset:u}=c,f=Zl(c,y3);r=A.createElement("line",oi({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function E3(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=Zl(e,b3),l=i.map((c,u)=>{var f=Pt(Pt({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return c2(n,f)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function P3(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=Zl(e,x3),l=i.map((c,u)=>{var f=Pt(Pt({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return c2(n,f)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function C3(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length)return null;var c=s.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var u=c.map((f,d)=>{var h=!c[d+1],m=h?i+o-f:c[d+1]-f;if(m<=0)return null;var p=d%t.length;return A.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:m,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function k3(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:s,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var c=l.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var u=c.map((f,d)=>{var h=!c[d+1],m=h?i+o-f:c[d+1]-f;if(m<=0)return null;var p=d%r.length;return A.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:m,height:s,stroke:"none",fill:r[p],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var T3=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return I0(dp(Pt(Pt(Pt({},pp),r),{},{ticks:$0(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},M3=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return I0(dp(Pt(Pt(Pt({},pp),r),{},{ticks:$0(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},j3={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function Jl(e){var t=Y0(),r=G0(),n=q0(),i=Pt(Pt({},_t(e,j3)),{},{x:X(e.x)?e.x:n.left,y:X(e.y)?e.y:n.top,width:X(e.width)?e.width:n.width,height:X(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:s,y:l,width:c,height:u,syncWithTicks:f,horizontalValues:d,verticalValues:h}=i,m=Nt(),p=G(M=>Z1(M,"xAxis",a,m)),g=G(M=>Z1(M,"yAxis",o,m));if(!X(c)||c<=0||!X(u)||u<=0||!X(s)||s!==+s||!X(l)||l!==+l)return null;var v=i.verticalCoordinatesGenerator||T3,b=i.horizontalCoordinatesGenerator||M3,{horizontalPoints:x,verticalPoints:S}=i;if((!x||!x.length)&&typeof b=="function"){var w=d&&d.length,O=b({yAxis:g?Pt(Pt({},g),{},{ticks:w?d:g.ticks}):void 0,width:t,height:r,offset:n},w?!0:f);co(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(x=O)}if((!S||!S.length)&&typeof v=="function"){var E=h&&h.length,C=v({xAxis:p?Pt(Pt({},p),{},{ticks:E?h:p.ticks}):void 0,width:t,height:r,offset:n},E?!0:f);co(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(S=C)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(A3,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),A.createElement(C3,oi({},i,{horizontalPoints:x})),A.createElement(k3,oi({},i,{verticalPoints:S})),A.createElement(E3,oi({},i,{offset:n,horizontalPoints:x,xAxis:p,yAxis:g})),A.createElement(P3,oi({},i,{offset:n,verticalPoints:S,xAxis:p,yAxis:g})))}Jl.displayName="CartesianGrid";var u2=(e,t,r,n)=>bn(e,"xAxis",t,n),f2=(e,t,r,n)=>yn(e,"xAxis",t,n),d2=(e,t,r,n)=>bn(e,"yAxis",r,n),h2=(e,t,r,n)=>yn(e,"yAxis",r,n),D3=N([ue,u2,d2,f2,h2],(e,t,r,n,i)=>fn(e,"xAxis")?Da(t,n,!1):Da(r,i,!1)),N3=(e,t,r,n,i)=>i;function I3(e){return e.type==="line"}var $3=N([Dl,N3],(e,t)=>e.filter(I3).find(r=>r.id===t)),R3=N([ue,u2,d2,f2,h2,$3,D3,El],(e,t,r,n,i,a,o,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||o==null)){var{dataKey:f,data:d}=a,h;if(d!=null&&d.length>0?h=d:h=l?.slice(c,u+1),h!=null)return a8({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:h})}}),L3=["id"],F3=["type","layout","connectNulls","needClip"],B3=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function p2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p2(Object(r),!0).forEach(function(n){z3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z3(e,t,r){return(t=W3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W3(e){var t=V3(e,"string");return typeof t=="symbol"?t:t+""}function V3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gp(e,t){if(e==null)return{};var r,n,i=H3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function H3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},si.apply(null,arguments)}var U3=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ni(r,t),payload:e}]};function K3(e){var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:s,unit:l}=e;return{dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ni(o,t),hide:s,type:e.tooltipType,color:e.stroke,unit:l}}}var m2=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function q3(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}var Y3=(e,t,r)=>{var n=r.reduce((f,d)=>f+d);if(!n)return m2(t,e);for(var i=Math.floor(e/n),a=e%n,o=t-e,s=[],l=0,c=0;l<r.length;c+=r[l],++l)if(c+r[l]>a){s=[...r.slice(0,l),a-c];break}var u=s.length%2===0?[0,o]:[o];return[...q3(r,i),...s,...u].map(f=>"".concat(f,"px")).join(", ")};function G3(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var n=de("recharts-line-dot",typeof e!="boolean"?e.className:"");r=A.createElement(y_,si({},t,{className:n}))}return r}function X3(e,t){return e==null?!1:t?!0:e.length===1}function Z3(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n;if(!X3(r,i))return null;var{id:s}=n,l=gp(n,L3),c=hv(i),u=Ar(l),f=Ue(i,!0),d=r.map((m,p)=>{var g=Qt(Qt(Qt({key:"dot-".concat(p),r:3},u),f),{},{index:p,cx:m.x,cy:m.y,dataKey:a,value:m.value,payload:m.payload,points:r});return G3(i,g)}),h={clipPath:o?"url(#clipPath-".concat(c?"":"dots-").concat(t,")"):void 0};return A.createElement(xt,si({className:"recharts-line-dots",key:"dots"},h),d)}function J3(e){var{showLabels:t,children:r,points:n}=e,i=k.useMemo(()=>n?.map(a=>{var o={x:a.x,y:a.y,width:0,height:0};return Qt(Qt({},o),{},{value:a.value,payload:a.payload,viewBox:o,parentViewBox:void 0,fill:void 0})}),[n]);return A.createElement(g_,{value:t?i:null},r)}function g2(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:o,layout:s,connectNulls:l,needClip:c}=a,u=gp(a,F3),f=Qt(Qt({},Ue(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:o,layout:s,connectNulls:l,strokeDasharray:i??a.strokeDasharray});return A.createElement(A.Fragment,null,n?.length>1&&A.createElement(Yf,si({},f,{pathRef:r})),A.createElement(Z3,{points:n,clipPathId:t,props:a}))}function Q3(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function e8(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:f,animateNewValues:d,width:h,height:m,onAnimationEnd:p,onAnimationStart:g}=r,v=i.current,b=Ba(r,"recharts-line-"),[x,S]=k.useState(!1),w=!x,O=k.useCallback(()=>{typeof p=="function"&&p(),S(!1)},[p]),E=k.useCallback(()=>{typeof g=="function"&&g(),S(!0)},[g]),C=Q3(n.current),M=a.current;return A.createElement(J3,{points:o,showLabels:w},r.children,A.createElement(Fa,{animationId:b,begin:c,duration:u,isActive:l,easing:f,onAnimationEnd:O,onAnimationStart:E,key:b},$=>{var j=Ye(M,C+M,$),_=Math.min(j,C),I;if(l)if(s){var D="".concat(s).split(/[,\s]+/gim).map(H=>parseFloat(H));I=Y3(_,C,D)}else I=m2(C,_);else I=s==null?void 0:String(s);if(v){var L=v.length/o.length,W=$===1?o:o.map((H,te)=>{var Q=Math.floor(te*L);if(v[Q]){var F=v[Q];return Qt(Qt({},H),{},{x:Ye(F.x,H.x,$),y:Ye(F.y,H.y,$)})}return d?Qt(Qt({},H),{},{x:Ye(h*2,H.x,$),y:Ye(m/2,H.y,$)}):Qt(Qt({},H),{},{x:H.x,y:H.y})});return i.current=W,A.createElement(g2,{props:r,points:W,clipPathId:t,pathRef:n,strokeDasharray:I})}return $>0&&C>0&&(i.current=o,a.current=_),A.createElement(g2,{props:r,points:o,clipPathId:t,pathRef:n,strokeDasharray:I})}),A.createElement(Uh,{label:r.label}))}function t8(e){var{clipPathId:t,props:r}=e,n=k.useRef(null),i=k.useRef(0),a=k.useRef(null);return A.createElement(e8,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:a})}var r8=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:Re(e.payload,t)});class n8 extends k.Component{render(){var t,{hide:r,dot:n,points:i,className:a,xAxisId:o,yAxisId:s,top:l,left:c,width:u,height:f,id:d,needClip:h}=this.props;if(r)return null;var m=de("recharts-line",a),p=d,{r:g=3,strokeWidth:v=2}=(t=Ue(n,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},b=hv(n),x=g*2+v;return A.createElement(A.Fragment,null,A.createElement(xt,{className:m},h&&A.createElement("defs",null,A.createElement(Y_,{clipPathId:p,xAxisId:o,yAxisId:s}),!b&&A.createElement("clipPath",{id:"clipPath-dots-".concat(p)},A.createElement("rect",{x:c-x/2,y:l-x/2,width:u+x,height:f+x}))),A.createElement(q_,{xAxisId:o,yAxisId:s,data:i,dataPointFormatter:r8,errorBarOffset:0},A.createElement(t8,{props:this.props,clipPathId:p}))),A.createElement(O6,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var v2={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!dn.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function i8(e){var t=_t(e,v2),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:f,legendType:d,xAxisId:h,yAxisId:m,id:p}=t,g=gp(t,B3),{needClip:v}=up(h,m),b=op(),x=tl(),S=Nt(),w=G($=>R3($,h,m,S,p));if(x!=="horizontal"&&x!=="vertical"||w==null||b==null)return null;var{height:O,width:E,x:C,y:M}=b;return A.createElement(n8,si({},g,{id:p,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:c,label:f,legendType:d,xAxisId:h,yAxisId:m,points:w,layout:x,height:O,width:E,left:C,top:M,needClip:v}))}function a8(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var f=Re(c,o);if(t==="horizontal"){var d=L0({axis:r,ticks:i,bandSize:s,entry:c,index:u}),h=ze(f)?null:n.scale(f);return{x:d,y:h,value:f,payload:c}}var m=ze(f)?null:r.scale(f),p=L0({axis:n,ticks:a,bandSize:s,entry:c,index:u});return m==null||p==null?null:{x:m,y:p,value:f,payload:c}}).filter(Boolean)}function o8(e){var t=_t(e,v2),r=Nt();return A.createElement(ip,{id:t.id,type:"line"},n=>A.createElement(A.Fragment,null,A.createElement(I_,{legendPayload:U3(t)}),A.createElement(rp,{fn:K3,args:t}),A.createElement(R_,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),A.createElement(i8,si({},t,{id:n}))))}var li=A.memo(o8);li.displayName="Line";var s8=["dangerouslySetInnerHTML","ticks"],l8=["id"],c8=["domain"],u8=["domain"];function vp(){return vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vp.apply(null,arguments)}function Ql(e,t){if(e==null)return{};var r,n,i=f8(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function f8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function d8(e){var t=Ze();return k.useEffect(()=>(t(f6(e)),()=>{t(d6(e))}),[e,t]),null}var h8=e=>{var{xAxisId:t,className:r}=e,n=G(Wf),i=Nt(),a="xAxis",o=G(g=>Yi(g,a,t,i)),s=G(g=>J1(g,a,t,i)),l=G(g=>K1(g,t)),c=G(g=>U4(g,t)),u=G(g=>_1(g,t));if(l==null||c==null||u==null)return null;var{dangerouslySetInnerHTML:f,ticks:d}=e,h=Ql(e,s8),{id:m}=u,p=Ql(u,l8);return A.createElement(mp,vp({},h,p,{scale:o,x:c.x,y:c.y,width:l.width,height:l.height,className:de("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:s}))},p8={allowDataOverflow:Zt.allowDataOverflow,allowDecimals:Zt.allowDecimals,allowDuplicatedCategory:Zt.allowDuplicatedCategory,height:Zt.height,hide:!1,mirror:Zt.mirror,orientation:Zt.orientation,padding:Zt.padding,reversed:Zt.reversed,scale:Zt.scale,tickCount:Zt.tickCount,type:Zt.type,xAxisId:0},m8=e=>{var t,r,n,i,a,o=_t(e,p8);return A.createElement(A.Fragment,null,A.createElement(d8,{interval:(t=o.interval)!==null&&t!==void 0?t:"preserveEnd",id:o.xAxisId,scale:o.scale,type:o.type,padding:o.padding,allowDataOverflow:o.allowDataOverflow,domain:o.domain,dataKey:o.dataKey,allowDuplicatedCategory:o.allowDuplicatedCategory,allowDecimals:o.allowDecimals,tickCount:o.tickCount,includeHidden:(r=o.includeHidden)!==null&&r!==void 0?r:!1,reversed:o.reversed,ticks:o.ticks,height:o.height,orientation:o.orientation,mirror:o.mirror,hide:o.hide,unit:o.unit,name:o.name,angle:(n=o.angle)!==null&&n!==void 0?n:0,minTickGap:(i=o.minTickGap)!==null&&i!==void 0?i:5,tick:(a=o.tick)!==null&&a!==void 0?a:!0,tickFormatter:o.tickFormatter}),A.createElement(h8,o))},g8=(e,t)=>{var{domain:r}=e,n=Ql(e,c8),{domain:i}=t,a=Ql(t,u8);return Ji(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:Ji({domain:r},{domain:i}):!1},ec=A.memo(m8,g8);ec.displayName="XAxis";var v8=["dangerouslySetInnerHTML","ticks"],y8=["id"],b8=["domain"],x8=["domain"];function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yp.apply(null,arguments)}function tc(e,t){if(e==null)return{};var r,n,i=w8(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function w8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function _8(e){var t=Ze();return k.useEffect(()=>(t(h6(e)),()=>{t(p6(e))}),[e,t]),null}var S8=e=>{var{yAxisId:t,className:r,width:n,label:i}=e,a=k.useRef(null),o=k.useRef(null),s=G(Wf),l=Nt(),c=Ze(),u="yAxis",f=G(w=>Yi(w,u,t,l)),d=G(w=>q1(w,t)),h=G(w=>q4(w,t)),m=G(w=>J1(w,u,t,l)),p=G(w=>S1(w,t));if(k.useLayoutEffect(()=>{if(!(n!=="auto"||!d||Bh(i)||k.isValidElement(i)||p==null)){var w=a.current;if(w){var O=w.getCalculatedWidth();Math.round(d.width)!==Math.round(O)&&c(m6({id:t,width:O}))}}},[m,d,c,i,t,n,p]),d==null||h==null||p==null)return null;var{dangerouslySetInnerHTML:g,ticks:v}=e,b=tc(e,v8),{id:x}=p,S=tc(p,y8);return A.createElement(mp,yp({},b,S,{ref:a,labelRef:o,scale:f,x:h.x,y:h.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:de("recharts-".concat(u," ").concat(u),r),viewBox:s,ticks:m}))},O8={allowDataOverflow:Jt.allowDataOverflow,allowDecimals:Jt.allowDecimals,allowDuplicatedCategory:Jt.allowDuplicatedCategory,hide:!1,mirror:Jt.mirror,orientation:Jt.orientation,padding:Jt.padding,reversed:Jt.reversed,scale:Jt.scale,tickCount:Jt.tickCount,type:Jt.type,width:Jt.width,yAxisId:0},A8=e=>{var t,r,n,i,a,o=_t(e,O8);return A.createElement(A.Fragment,null,A.createElement(_8,{interval:(t=o.interval)!==null&&t!==void 0?t:"preserveEnd",id:o.yAxisId,scale:o.scale,type:o.type,domain:o.domain,allowDataOverflow:o.allowDataOverflow,dataKey:o.dataKey,allowDuplicatedCategory:o.allowDuplicatedCategory,allowDecimals:o.allowDecimals,tickCount:o.tickCount,padding:o.padding,includeHidden:(r=o.includeHidden)!==null&&r!==void 0?r:!1,reversed:o.reversed,ticks:o.ticks,width:o.width,orientation:o.orientation,mirror:o.mirror,hide:o.hide,unit:o.unit,name:o.name,angle:(n=o.angle)!==null&&n!==void 0?n:0,minTickGap:(i=o.minTickGap)!==null&&i!==void 0?i:5,tick:(a=o.tick)!==null&&a!==void 0?a:!0,tickFormatter:o.tickFormatter}),A.createElement(S8,o))},E8=(e,t)=>{var{domain:r}=e,n=tc(e,b8),{domain:i}=t,a=tc(t,x8);return Ji(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:Ji({domain:r},{domain:i}):!1},mo=A.memo(A8,E8);mo.displayName="YAxis";var rc={exports:{}},bp={};/**
183
+ `).concat(S.x,",").concat(S.y),O=ze(e.id)?Ea("recharts-radial-line-"):e.id;return A.createElement("text",en({},n,{dominantBaseline:"central",className:de("recharts-radial-bar-label",o)}),A.createElement("defs",null,A.createElement("path",{id:O,d:w})),A.createElement("textPath",{xlinkHref:"#".concat(O)},r))},CL=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:f}=it(n,i,o+t,c);return{x:u,y:f,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:h,y:m}=it(n,i,d,c);return{x:h,y:m,textAnchor:"middle",verticalAnchor:"middle"}},u_=e=>"cx"in e&&X(e.cx),kL=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,a;r!=null&&!u_(r)&&(a=r);var{x:o,y:s,width:l,height:c}=t,u=c>=0?1:-1,f=u*n,d=u>0?"end":"start",h=u>0?"start":"end",m=l>=0?1:-1,p=m*n,g=m>0?"end":"start",v=m>0?"start":"end";if(i==="top"){var b={x:o+l/2,y:s-u*n,textAnchor:"middle",verticalAnchor:d};return Qe(Qe({},b),a?{height:Math.max(s-a.y,0),width:l}:{})}if(i==="bottom"){var x={x:o+l/2,y:s+c+f,textAnchor:"middle",verticalAnchor:h};return Qe(Qe({},x),a?{height:Math.max(a.y+a.height-(s+c),0),width:l}:{})}if(i==="left"){var S={x:o-p,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return Qe(Qe({},S),a?{width:Math.max(S.x-a.x,0),height:c}:{})}if(i==="right"){var w={x:o+l+p,y:s+c/2,textAnchor:v,verticalAnchor:"middle"};return Qe(Qe({},w),a?{width:Math.max(a.x+a.width-w.x,0),height:c}:{})}var O=a?{width:l,height:c}:{};return i==="insideLeft"?Qe({x:o+p,y:s+c/2,textAnchor:v,verticalAnchor:"middle"},O):i==="insideRight"?Qe({x:o+l-p,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},O):i==="insideTop"?Qe({x:o+l/2,y:s+f,textAnchor:"middle",verticalAnchor:h},O):i==="insideBottom"?Qe({x:o+l/2,y:s+c-f,textAnchor:"middle",verticalAnchor:d},O):i==="insideTopLeft"?Qe({x:o+p,y:s+f,textAnchor:v,verticalAnchor:h},O):i==="insideTopRight"?Qe({x:o+l-p,y:s+f,textAnchor:g,verticalAnchor:h},O):i==="insideBottomLeft"?Qe({x:o+p,y:s+c-f,textAnchor:v,verticalAnchor:d},O):i==="insideBottomRight"?Qe({x:o+l-p,y:s+c-f,textAnchor:g,verticalAnchor:d},O):i&&typeof i=="object"&&(X(i.x)||Bn(i.x))&&(X(i.y)||Bn(i.y))?Qe({x:o+At(i.x,l),y:s+At(i.y,c),textAnchor:"end",verticalAnchor:"end"},O):Qe({x:o+l/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},TL={offset:5};function _n(e){var t=_t(e,TL),{viewBox:r,position:n,value:i,children:a,content:o,className:s="",textBreakAll:l,labelRef:c}=t,u=OL(),f=c_(),d=n==="center"?f:u??f,h=r||d;if(!h||ze(i)&&ze(a)&&!k.isValidElement(o)&&typeof o!="function")return null;var m=Qe(Qe({},t),{},{viewBox:h});if(k.isValidElement(o)){var{labelRef:p}=m,g=vL(m,gL);return k.cloneElement(o,g)}var v;if(typeof o=="function"){if(v=k.createElement(o,m),k.isValidElement(v))return v}else v=AL(t);var b=u_(h),x=Ue(t,!0);if(b&&(n==="insideStart"||n==="insideEnd"||n==="end"))return PL(t,n,v,x,h);var S=b?CL(h,t.offset,t.position):kL(t,h);return A.createElement(Hl,en({ref:c,className:de("recharts-label",s)},x,S,{breakAll:l}),v)}_n.displayName="Label";var ML=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?A.createElement(_n,en({key:"label-implicit"},n)):Or(e)?A.createElement(_n,en({key:"label-implicit",value:e},n)):k.isValidElement(e)?e.type===_n?k.cloneElement(e,Qe({key:"label-implicit"},n)):A.createElement(_n,en({key:"label-implicit",content:e},n)):Wh(e)?A.createElement(_n,en({key:"label-implicit",content:e},n)):e&&typeof e=="object"?A.createElement(_n,en({},e,{key:"label-implicit"},n)):null};function jL(e){var{label:t}=e,r=c_();return ML(t,r)||null}var Vh={},Hh={},f_;function DL(){return f_||(f_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(Hh)),Hh}var Uh={},d_;function NL(){return d_||(d_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(Uh)),Uh}var h_;function IL(){return h_||(h_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DL(),r=NL(),n=Vu();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i})(Vh)),Vh}var Kh,p_;function $L(){return p_||(p_=1,Kh=IL().last),Kh}var RL=$L();const LL=Ir(RL);var FL=["valueAccessor"],BL=["dataKey","clockWise","id","textBreakAll"];function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ul.apply(null,arguments)}function m_(e,t){if(e==null)return{};var r,n,i=zL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function zL(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var WL=e=>Array.isArray(e.value)?LL(e.value):e.value,g_=k.createContext(void 0),v_=g_.Provider,y_=k.createContext(void 0),VL=y_.Provider;function HL(){return k.useContext(g_)}function UL(){return k.useContext(y_)}function Kl(e){var{valueAccessor:t=WL}=e,r=m_(e,FL),{dataKey:n,clockWise:i,id:a,textBreakAll:o}=r,s=m_(r,BL),l=HL(),c=UL(),u=l||c;return!u||!u.length?null:A.createElement(xt,{className:"recharts-label-list"},u.map((f,d)=>{var h,m=ze(n)?t(f,d):Re(f&&f.payload,n),p=ze(a)?{}:{id:"".concat(a,"-").concat(d)};return A.createElement(_n,Ul({},Ue(f,!0),s,p,{fill:(h=r.fill)!==null&&h!==void 0?h:f.fill,parentViewBox:f.parentViewBox,value:m,textBreakAll:o,viewBox:f.viewBox,key:"label-".concat(d),index:d}))}))}Kl.displayName="LabelList";function qh(e){var{label:t}=e;return t?t===!0?A.createElement(Kl,{key:"labelList-implicit"}):A.isValidElement(t)||Wh(t)?A.createElement(Kl,{key:"labelList-implicit",content:t}):typeof t=="object"?A.createElement(Kl,Ul({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yh.apply(null,arguments)}var b_=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=de("recharts-dot",i);return t===+t&&r===+r&&n===+n?A.createElement("circle",Yh({},Ar(e),_u(e),{className:a,cx:t,cy:r,r:n})):null},x_=e=>e.graphicalItems.polarItems,KL=N([Ve,no],nh),Gh=N([x_,Je,KL],ih),qL=N([Gh],ah),Xh=N([qL,Wd],oh),YL=N([Xh,Je,Gh],lh),GL=N([Xh,Je,Gh],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,o=Re(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:Re(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]}))),w_=()=>{},XL=N([Je,z1,w_,GL,w_,ue,Ve],fh),__=N([Je,ue,Xh,YL,ro,Ve,XL],dh),ZL=N([__,Je,qi],mh);N([Je,__,ZL,Ve],vh);var JL={radiusAxis:{},angleAxis:{}},S_=qt({name:"polarAxis",initialState:JL,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:TU,removeRadiusAxis:MU,addAngleAxis:jU,removeAngleAxis:DU}=S_.actions,QL=S_.reducer;function O_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O_(Object(r),!0).forEach(function(n){eF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eF(e,t,r){return(t=tF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tF(e){var t=rF(e,"string");return typeof t=="symbol"?t:t+""}function rF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nF=(e,t)=>t,Zh=N([x_,nF],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),iF=[],Jh=(e,t,r)=>r?.length===0?iF:r,E_=N([Wd,Zh,Jh],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>A_(A_({},t.presentationProps),a.props))),i!=null)return i}}),aF=N([E_,Zh,Jh],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,o=Re(n,t.nameKey,t.name),s;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?s=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:Ni(o,t.dataKey),color:s,payload:n,type:t.legendType}})}),oF=N([E_,Zh,Jh,st],(e,t,r,n)=>{if(!(t==null||e==null))return n6({offset:n,pieSettings:t,displayedData:e,cells:r})}),Qh={},P_;function sF(){return P_||(P_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(Qh)),Qh}var ep,C_;function lF(){return C_||(C_=1,ep=sF().isPlainObject),ep}var cF=lF();const uF=Ir(cF);function k_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function T_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k_(Object(r),!0).forEach(function(n){fF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fF(e,t,r){return(t=dF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dF(e){var t=hF(e,"string");return typeof t=="symbol"?t:t+""}function hF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ql.apply(null,arguments)}var M_=(e,t,r,n,i)=>{var a=r-n,o;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+r,",").concat(t),o+="L ".concat(e+r-a/2,",").concat(t+i),o+="L ".concat(e+r-a/2-n,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z"),o},pF={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mF=e=>{var t=_t(e,pF),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:f}=t,d=k.useRef(),[h,m]=k.useState(-1),p=k.useRef(i),g=k.useRef(a),v=k.useRef(o),b=k.useRef(r),x=k.useRef(n),S=za(e,"trapezoid-");if(k.useEffect(()=>{if(d.current&&d.current.getTotalLength)try{var D=d.current.getTotalLength();D&&m(D)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var w=de("recharts-trapezoid",s);if(!f)return A.createElement("g",null,A.createElement("path",ql({},Ue(t,!0),{className:w,d:M_(r,n,i,a,o)})));var O=p.current,E=g.current,C=v.current,M=b.current,$=x.current,j="0px ".concat(h===-1?1:h,"px"),_="".concat(h,"px 0px"),I=fb(["strokeDasharray"],c,l);return A.createElement(Ba,{animationId:S,key:S,canBegin:h>0,duration:c,easing:l,isActive:f,begin:u},D=>{var L=Ye(O,i,D),W=Ye(E,a,D),H=Ye(C,o,D),te=Ye(M,r,D),Q=Ye($,n,D);d.current&&(p.current=L,g.current=W,v.current=H,b.current=te,x.current=Q);var F=D>0?{transition:I,strokeDasharray:_}:{strokeDasharray:j};return A.createElement("path",ql({},Ue(t,!0),{className:w,d:M_(te,Q,L,W,H),ref:d,style:T_(T_({},F),t.style)}))})},gF=["option","shapeType","propTransformer","activeClassName","isActive"];function vF(e,t){if(e==null)return{};var r,n,i=yF(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yF(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function j_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(r),!0).forEach(function(n){bF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bF(e,t,r){return(t=xF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xF(e){var t=wF(e,"string");return typeof t=="symbol"?t:t+""}function wF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _F(e,t){return Yl(Yl({},t),e)}function SF(e,t){return e==="symbols"}function D_(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return A.createElement(_b,r);case"trapezoid":return A.createElement(mF,r);case"sector":return A.createElement(Ab,r);case"symbols":if(SF(t))return A.createElement(Fv,r);break;default:return null}}function OF(e){return k.isValidElement(e)?e.props:e}function N_(e){var{option:t,shapeType:r,propTransformer:n=_F,activeClassName:i="recharts-active-shape",isActive:a}=e,o=vF(e,gF),s;if(k.isValidElement(t))s=k.cloneElement(t,Yl(Yl({},o),OF(t)));else if(typeof t=="function")s=t(o);else if(uF(t)&&typeof t!="boolean"){var l=n(t,o);s=A.createElement(D_,{shapeType:r,elementProps:l})}else{var c=o;s=A.createElement(D_,{shapeType:r,elementProps:c})}return a?A.createElement(xt,{className:i},s):s}var tp=(e,t)=>{var r=Ze();return(n,i)=>a=>{e?.(n,i,a),r(aw({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}},rp=e=>{var t=Ze();return(r,n)=>i=>{e?.(r,n,i),t(a$())}},np=(e,t)=>{var r=Ze();return(n,i)=>a=>{e?.(n,i,a),r(o$({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}};function ip(e){var{fn:t,args:r}=e,n=Ze(),i=Nt();return k.useEffect(()=>{if(!i){var a=t(r);return n(r$(a)),()=>{n(n$(a))}}},[t,r,n,i]),null}var I_=()=>{};function $_(e){var{legendPayload:t}=e,r=Ze(),n=Nt();return k.useEffect(()=>n?I_:(r(J0(t)),()=>{r(Q0(t))}),[r,n,t]),null}function AF(e){var{legendPayload:t}=e,r=Ze(),n=G(ue);return k.useEffect(()=>n!=="centric"&&n!=="radial"?I_:(r(J0(t)),()=>{r(Q0(t))}),[r,n,t]),null}var ap,EF=()=>{var[e]=A.useState(()=>Ea("uid-"));return e},PF=(ap=A.useId)!==null&&ap!==void 0?ap:EF;function CF(e,t){var r=PF();return t||(e?"".concat(e,"-").concat(r):r)}var kF=k.createContext(void 0),op=e=>{var{id:t,type:r,children:n}=e,i=CF("recharts-".concat(r),t);return A.createElement(kF.Provider,{value:i},n(i))},TF={cartesianItems:[],polarItems:[]},R_=qt({name:"graphicalItems",initialState:TF,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:r,next:n}=t.payload,i=Br(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},removeCartesianGraphicalItem(e,t){var r=Br(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var r=Br(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)}}}),{addCartesianGraphicalItem:MF,replaceCartesianGraphicalItem:jF,removeCartesianGraphicalItem:DF,addPolarGraphicalItem:NF,removePolarGraphicalItem:IF}=R_.actions,$F=R_.reducer;function L_(e){var t=Ze(),r=k.useRef(null);return k.useEffect(()=>{r.current===null?t(MF(e)):r.current!==e&&t(jF({prev:r.current,next:e})),r.current=e},[t,e]),k.useEffect(()=>()=>{r.current&&(t(DF(r.current)),r.current=null)},[t]),null}function RF(e){var t=Ze();return k.useEffect(()=>(t(NF(e)),()=>{t(IF(e))}),[t,e]),null}var LF=["onMouseEnter","onClick","onMouseLeave"],FF=["id"],BF=["id"];function sp(e,t){if(e==null)return{};var r,n,i=zF(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function zF(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function F_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(r),!0).forEach(function(n){WF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WF(e,t,r){return(t=VF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VF(e){var t=HF(e,"string");return typeof t=="symbol"?t:t+""}function HF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(null,arguments)}function UF(e){var t=k.useMemo(()=>Ou(e.children,kr),[e.children]),r=G(n=>aF(n,e.id,t));return r==null?null:A.createElement(AF,{legendPayload:r})}function KF(e){var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:o,name:s,hide:l,tooltipType:c}=e;return{dataDefinedOnItem:n.map(u=>u.tooltipPayload),positions:n.map(u=>u.tooltipPosition),settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:r,name:Ni(s,t),hide:l,type:c,color:o,unit:""}}}var qF=(e,t)=>e>t?"start":e<t?"end":"middle",YF=(e,t,r)=>At(typeof t=="function"?t(e):t,r,r*.8),GF=(e,t,r)=>{var{top:n,left:i,width:a,height:o}=t,s=D0(a,o),l=i+At(e.cx,a,a/2),c=n+At(e.cy,o,o/2),u=At(e.innerRadius,s,0),f=YF(r,e.outerRadius,s),d=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:f,maxRadius:d}},XF=(e,t)=>{var r=pt(t-e),n=Math.min(Math.abs(t-e),360);return r*n};function ZF(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var JF=(e,t)=>{if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return e(t);var r=de("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return A.createElement(Xf,Sn({},t,{type:"linear",className:r}))},QF=(e,t,r)=>{if(A.isValidElement(e))return A.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),A.isValidElement(n)))return n;var i=de("recharts-pie-label-text",ZF(e));return A.createElement(Hl,Sn({},t,{alignmentBaseline:"middle",className:i}),n)};function e6(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:o}=r;if(!n||!i||!t)return null;var s=Ar(r),l=Ue(i,!1),c=Ue(a,!1),u=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,f=t.map((d,h)=>{var m=(d.startAngle+d.endAngle)/2,p=it(d.cx,d.cy,d.outerRadius+u,m),g=He(He(He(He({},s),d),{},{stroke:"none"},l),{},{index:h,textAnchor:qF(p.x,d.cx)},p),v=He(He(He(He({},s),d),{},{fill:"none",stroke:d.fill},c),{},{index:h,points:[it(d.cx,d.cy,d.outerRadius,m),p],key:"line"});return A.createElement(xt,{key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(h)},a&&JF(a,v),QF(i,g,Re(d,o)))});return A.createElement(xt,{className:"recharts-pie-labels"},f)}function t6(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?A.createElement(qh,{label:i}):A.createElement(e6,{sectors:t,props:r,showLabels:n})}function r6(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i}=e,a=G(wn),{onMouseEnter:o,onClick:s,onMouseLeave:l}=i,c=sp(i,LF),u=tp(o,i.dataKey),f=rp(l),d=np(s,i.dataKey);return t==null||t.length===0?null:A.createElement(A.Fragment,null,t.map((h,m)=>{if(h?.startAngle===0&&h?.endAngle===0&&t.length!==1)return null;var p=r&&String(m)===a,g=a?n:null,v=p?r:g,b=He(He({},h),{},{stroke:h.stroke,tabIndex:-1,[U0]:m,[K0]:i.dataKey});return A.createElement(xt,Sn({tabIndex:-1,className:"recharts-pie-sector"},xs(c,h,m),{onMouseEnter:u(h,m),onMouseLeave:f(h,m),onClick:d(h,m),key:"sector-".concat(h?.startAngle,"-").concat(h?.endAngle,"-").concat(h.midAngle,"-").concat(m)}),A.createElement(N_,Sn({option:v,isActive:p,shapeType:"sector"},b)))}))}function n6(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:o,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:f}=r,d=Math.abs(r.minAngle),h=XF(s,l),m=Math.abs(h),p=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,g=n.filter(O=>Re(O,c,0)!==0).length,v=(m>=360?g:g-1)*p,b=m-g*d-v,x=n.reduce((O,E)=>{var C=Re(E,c,0);return O+(X(C)?C:0)},0),S;if(x>0){var w;S=n.map((O,E)=>{var C=Re(O,c,0),M=Re(O,u,E),$=GF(r,a,O),j=(X(C)?C:0)/x,_,I=He(He({},O),i&&i[E]&&i[E].props);E?_=w.endAngle+pt(h)*p*(C!==0?1:0):_=s;var D=_+pt(h)*((C!==0?d:0)+j*b),L=(_+D)/2,W=($.innerRadius+$.outerRadius)/2,H=[{name:M,value:C,payload:I,dataKey:c,type:f}],te=it($.cx,$.cy,W,L);return w=He(He(He(He({},r.presentationProps),{},{percent:j,cornerRadius:o,name:M,tooltipPayload:H,midAngle:L,middleRadius:W,tooltipPosition:te},I),$),{},{value:C,startAngle:_,endAngle:D,payload:I,paddingAngle:pt(h)*p}),w})}return S}function i6(e){var{showLabels:t,sectors:r,children:n}=e,i=k.useMemo(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return A.createElement(VL,{value:t?i:void 0},n)}function a6(e){var{props:t,previousSectorsRef:r}=e,{sectors:n,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,activeShape:l,inactiveShape:c,onAnimationStart:u,onAnimationEnd:f}=t,d=za(t,"recharts-pie-"),h=r.current,[m,p]=k.useState(!1),g=k.useCallback(()=>{typeof f=="function"&&f(),p(!1)},[f]),v=k.useCallback(()=>{typeof u=="function"&&u(),p(!0)},[u]);return A.createElement(i6,{showLabels:!m,sectors:n},A.createElement(Ba,{animationId:d,begin:a,duration:o,isActive:i,easing:s,onAnimationStart:v,onAnimationEnd:g,key:d},b=>{var x=[],S=n&&n[0],w=S?.startAngle;return n?.forEach((O,E)=>{var C=h&&h[E],M=E>0?Fn(O,"paddingAngle",0):0;if(C){var $=Ye(C.endAngle-C.startAngle,O.endAngle-O.startAngle,b),j=He(He({},O),{},{startAngle:w+M,endAngle:w+$+M});x.push(j),w=j.endAngle}else{var{endAngle:_,startAngle:I}=O,D=Ye(0,_-I,b),L=He(He({},O),{},{startAngle:w+M,endAngle:w+D+M});x.push(L),w=L.endAngle}}),r.current=x,A.createElement(xt,null,A.createElement(r6,{sectors:x,activeShape:l,inactiveShape:c,allOtherPieProps:t}))}),A.createElement(t6,{showLabels:!m,sectors:n,props:t}),t.children)}var o6={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!dn.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function s6(e){var{id:t}=e,r=sp(e,FF),{hide:n,className:i,rootTabIndex:a}=e,o=k.useMemo(()=>Ou(e.children,kr),[e.children]),s=G(u=>oF(u,t,o)),l=k.useRef(null),c=de("recharts-pie",i);return n||s==null?(l.current=null,A.createElement(xt,{tabIndex:a,className:c})):A.createElement(A.Fragment,null,A.createElement(ip,{fn:KF,args:He(He({},e),{},{sectors:s})}),A.createElement(xt,{tabIndex:a,className:c},A.createElement(a6,{props:He(He({},r),{},{sectors:s}),previousSectorsRef:l})))}function ho(e){var t=_t(e,o6),{id:r}=t,n=sp(t,BF),i=Ar(n);return A.createElement(op,{id:r,type:"pie"},a=>A.createElement(A.Fragment,null,A.createElement(RF,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),A.createElement(UF,Sn({},n,{id:a})),A.createElement(s6,Sn({},n,{id:a}))))}ho.displayName="Pie";function B_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B_(Object(r),!0).forEach(function(n){l6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function l6(e,t,r){return(t=c6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c6(e){var t=u6(e,"string");return typeof t=="symbol"?t:t+""}function u6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f6={xAxis:{},yAxis:{},zAxis:{}},W_=qt({name:"cartesianAxis",initialState:f6,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload;e.yAxis[r]&&(e.yAxis[r]=z_(z_({},e.yAxis[r]),{},{width:n}))}}}),{addXAxis:d6,removeXAxis:h6,addYAxis:p6,removeYAxis:m6,addZAxis:NU,removeZAxis:IU,updateYAxisWidth:g6}=W_.actions,v6=W_.reducer,y6=N([st],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),b6=N([y6,zr,Wr],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),lp=()=>G(b6),x6=()=>G(K$);function V_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function H_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V_(Object(r),!0).forEach(function(n){w6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w6(e,t,r){return(t=_6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _6(e){var t=S6(e,"string");return typeof t=="symbol"?t:t+""}function S6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O6=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var o=H_(H_({index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},Ue(i,!1)),_u(i)),s;return k.isValidElement(i)?s=k.cloneElement(i,o):typeof i=="function"?s=i(o):s=A.createElement(b_,o),A.createElement(xt,{className:"recharts-active-dot"},s)};function A6(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i}=e,a=G(wn),o=x6();if(t==null||o==null)return null;var s=t.find(l=>o.includes(l.payload));return ze(s)?null:O6({point:s,childIndex:Number(a),mainColor:r,dataKey:i,activeDot:n})}var E6=process.env.NODE_ENV==="production",cp="Invariant failed";function U_(e,t){if(E6)throw new Error(cp);var r=typeof t=="function"?t():t,n=r?"".concat(cp,": ").concat(r):cp;throw new Error(n)}var P6=["x","y"];function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},up.apply(null,arguments)}function K_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function po(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(r),!0).forEach(function(n){C6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C6(e,t,r){return(t=k6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k6(e){var t=T6(e,"string");return typeof t=="symbol"?t:t+""}function T6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M6(e,t){if(e==null)return{};var r,n,i=j6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function j6(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function D6(e,t){var{x:r,y:n}=e,i=M6(e,P6),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),f="".concat(t.width||i.width),d=parseInt(f,10);return po(po(po(po(po({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function fp(e){return A.createElement(N_,up({shapeType:"rectangle",propTransformer:D6,activeClassName:"recharts-active-bar"},e))}var N6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(X(t))return t;var a=X(n)||ze(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?U_(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")):U_()),r)}},I6={},q_=qt({name:"errorBars",initialState:I6,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:$U,replaceErrorBar:RU,removeErrorBar:LU}=q_.actions,$6=q_.reducer,R6=["children"];function L6(e,t){if(e==null)return{};var r,n,i=F6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function F6(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var B6={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},z6=k.createContext(B6);function Y_(e){var{children:t}=e,r=L6(e,R6);return A.createElement(z6.Provider,{value:r},t)}function dp(e,t){var r,n,i=G(c=>Zr(c,e)),a=G(c=>Jr(c,t)),o=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:Zt.allowDataOverflow,s=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Jt.allowDataOverflow,l=o||s;return{needClip:l,needClipX:o,needClipY:s}}function G_(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=lp(),{needClipX:a,needClipY:o,needClip:s}=dp(t,r);if(!s)return null;var{x:l,y:c,width:u,height:f}=i;return A.createElement("clipPath",{id:"clipPath-".concat(n)},A.createElement("rect",{x:a?l:l-u/2,y:o?c:c-f/2,width:a?u:u*2,height:o?f:f*2}))}var W6=["onMouseEnter","onMouseLeave","onClick"],V6=["value","background","tooltipPosition"],H6=["id"],U6=["onMouseEnter","onClick","onMouseLeave"];function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},On.apply(null,arguments)}function X_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X_(Object(r),!0).forEach(function(n){K6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K6(e,t,r){return(t=q6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q6(e){var t=Y6(e,"string");return typeof t=="symbol"?t:t+""}function Y6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gl(e,t){if(e==null)return{};var r,n,i=G6(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function G6(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var X6=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ni(r,t),payload:e}]};function Z6(e){var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:s}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Ni(a,t),hide:o,type:e.tooltipType,color:e.fill,unit:s}}}function J6(e){var t=G(wn),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:s,onClick:l}=a,c=Gl(a,W6),u=tp(o,n),f=rp(s),d=np(l,n);if(!i||r==null)return null;var h=Ue(i,!1);return A.createElement(A.Fragment,null,r.map((m,p)=>{var{value:g,background:v,tooltipPosition:b}=m,x=Gl(m,V6);if(!v)return null;var S=u(m,p),w=f(m,p),O=d(m,p),E=Tt(Tt(Tt(Tt(Tt({option:i,isActive:String(p)===t},x),{},{fill:"#eee"},v),h),xs(c,m,p)),{},{onMouseEnter:S,onMouseLeave:w,onClick:O,dataKey:n,index:p,className:"recharts-bar-background-rectangle"});return A.createElement(fp,On({key:"background-bar-".concat(E.index)},E))}))}function Q6(e){var{showLabels:t,children:r,rects:n}=e,i=n?.map(a=>{var o={x:a.x,y:a.y,width:a.width,height:a.height};return Tt(Tt({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return A.createElement(v_,{value:t?i:void 0},r)}function eB(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,s=G(wn),l=G(ww),c=r&&String(a)===s&&(l==null||o===l),u=c?r:t;return A.createElement(fp,On({},n,i,{isActive:c,option:u,index:a,dataKey:o}))}function tB(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return A.createElement(fp,On({},r,n,{isActive:!1,option:t,index:i,dataKey:a}))}function rB(e){var{data:t,props:r}=e,n=Ar(r),{id:i}=n,a=Gl(n,H6),{shape:o,dataKey:s,activeBar:l}=r,{onMouseEnter:c,onClick:u,onMouseLeave:f}=r,d=Gl(r,U6),h=tp(c,s),m=rp(f),p=np(u,s);return t?A.createElement(A.Fragment,null,t.map((g,v)=>A.createElement(xt,On({className:"recharts-bar-rectangle"},xs(d,g,v),{onMouseEnter:h(g,v),onMouseLeave:m(g,v),onClick:p(g,v),key:"rectangle-".concat(g?.x,"-").concat(g?.y,"-").concat(g?.value,"-").concat(v)}),l?A.createElement(eB,{shape:o,activeBar:l,baseProps:a,entry:g,index:v,dataKey:s}):A.createElement(tB,{shape:o,baseProps:a,entry:g,index:v,dataKey:s})))):null}function nB(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,f=r.current,d=za(t,"recharts-bar-"),[h,m]=k.useState(!1),p=!h,g=k.useCallback(()=>{typeof c=="function"&&c(),m(!1)},[c]),v=k.useCallback(()=>{typeof u=="function"&&u(),m(!0)},[u]);return A.createElement(Q6,{showLabels:p,rects:n},A.createElement(Ba,{animationId:d,begin:o,duration:s,isActive:a,easing:l,onAnimationEnd:g,onAnimationStart:v,key:d},b=>{var x=b===1?n:n?.map((S,w)=>{var O=f&&f[w];if(O)return Tt(Tt({},S),{},{x:Ye(O.x,S.x,b),y:Ye(O.y,S.y,b),width:Ye(O.width,S.width,b),height:Ye(O.height,S.height,b)});if(i==="horizontal"){var E=Ye(0,S.height,b);return Tt(Tt({},S),{},{y:S.y+S.height-E,height:E})}var C=Ye(0,S.width,b);return Tt(Tt({},S),{},{width:C})});return b>0&&(r.current=x??null),x==null?null:A.createElement(xt,null,A.createElement(rB,{props:t,data:x}))}),A.createElement(qh,{label:t.label}),t.children)}function iB(e){var t=k.useRef(null);return A.createElement(nB,{previousRectanglesRef:t,props:e})}var Z_=0,aB=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Re(e,t)}};class oB extends k.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:s,background:l,id:c}=this.props;if(t||r==null)return null;var u=de("recharts-bar",i),f=c;return A.createElement(xt,{className:u,id:c},s&&A.createElement("defs",null,A.createElement(G_,{clipPathId:f,xAxisId:a,yAxisId:o})),A.createElement(xt,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(f,")"):void 0},A.createElement(J6,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),A.createElement(iB,this.props)))}}var sB={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!dn.isSsr,legendType:"rect",minPointSize:Z_,xAxisId:0,yAxisId:0};function lB(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:f}=dp(t,r),d=rl(),h=Nt(),m=Ou(e.children,kr),p=G(b=>$B(b,t,r,h,e.id,m));if(d!=="vertical"&&d!=="horizontal")return null;var g,v=p?.[0];return v==null||v.height==null||v.width==null?g=0:g=d==="vertical"?v.height/2:v.width/2,A.createElement(Y_,{xAxisId:t,yAxisId:r,data:p,dataPointFormatter:aB,errorBarOffset:g},A.createElement(oB,On({},e,{layout:d,needClip:f,data:p,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function cB(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:o,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:f,offset:d,cells:h,parentViewBox:m}=e,p=t==="horizontal"?s:o,g=u?p.scale.domain():null,v=Ij({numericAxis:p});return f.map((b,x)=>{var S,w,O,E,C,M;u?S=kj(u[x],g):(S=Re(b,r),Array.isArray(S)||(S=[v,S]));var $=N6(n,Z_)(S[1],x);if(t==="horizontal"){var j,[_,I]=[s.scale(S[0]),s.scale(S[1])];w=B0({axis:o,ticks:l,bandSize:a,offset:i.offset,entry:b,index:x}),O=(j=I??_)!==null&&j!==void 0?j:void 0,E=i.size;var D=_-I;if(C=Ut(D)?0:D,M={x:w,y:d.top,width:E,height:d.height},Math.abs($)>0&&Math.abs(C)<Math.abs($)){var L=pt(C||$)*(Math.abs($)-Math.abs(C));O-=L,C+=L}}else{var[W,H]=[o.scale(S[0]),o.scale(S[1])];if(w=W,O=B0({axis:s,ticks:c,bandSize:a,offset:i.offset,entry:b,index:x}),E=H-W,C=i.size,M={x:d.left,y:O,width:d.width,height:C},Math.abs($)>0&&Math.abs(E)<Math.abs($)){var te=pt(E||$)*(Math.abs($)-Math.abs(E));E+=te}}if(w==null||O==null||E==null||C==null)return null;var Q=Tt(Tt({},b),{},{x:w,y:O,width:E,height:C,value:u?S:S[1],payload:b,background:M,tooltipPosition:{x:w+E/2,y:O+C/2},parentViewBox:m},h&&h[x]&&h[x].props);return Q}).filter(Boolean)}function uB(e){var t=_t(e,sB),r=Nt();return A.createElement(op,{id:t.id,type:"bar"},n=>A.createElement(A.Fragment,null,A.createElement($_,{legendPayload:X6(t)}),A.createElement(ip,{fn:Z6,args:t}),A.createElement(L_,{type:"bar",id:n,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:Nj(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),A.createElement(lB,On({},t,{id:n}))))}var J_=A.memo(uB);J_.displayName="Bar";function Q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q_(Object(r),!0).forEach(function(n){fB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fB(e,t,r){return(t=dB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dB(e){var t=hB(e,"string");return typeof t=="symbol"?t:t+""}function hB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pB=(e,t)=>t,mB=(e,t,r)=>r,gB=(e,t,r,n)=>n,vB=(e,t,r,n,i)=>i,mo=N([Nl,vB],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),yB=N([mo],e=>e?.maxBarSize),bB=(e,t,r,n,i,a)=>a,e2=(e,t,r)=>{var n=r??e;if(!ze(n))return At(n,t,0)},xB=N([ue,Nl,pB,mB,gB],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),wB=(e,t,r,n)=>{var i=ue(e);return i==="horizontal"?ch(e,"yAxis",r,n):ch(e,"xAxis",t,n)},_B=(e,t,r)=>{var n=ue(e);return n==="horizontal"?G1(e,"xAxis",t):G1(e,"yAxis",r)},SB=(e,t,r)=>{var n={},i=e.filter(jl),a=e.filter(c=>c.stackId==null),o=i.reduce((c,u)=>(c[u.stackId]||(c[u.stackId]=[]),c[u.stackId].push(u),c),n),s=Object.entries(o).map(c=>{var[u,f]=c,d=f.map(m=>m.dataKey),h=e2(t,r,f[0].barSize);return{stackId:u,dataKeys:d,barSize:h}}),l=a.map(c=>{var u=[c.dataKey].filter(d=>d!=null),f=e2(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:f}});return[...s,...l]},OB=N([xB,t4,_B],SB),AB=(e,t,r,n,i)=>{var a,o,s=mo(e,t,r,n,i);if(s!=null){var l=ue(e),c=d1(e),{maxBarSize:u}=s,f=ze(u)?c:u,d,h;return l==="horizontal"?(d=bn(e,"xAxis",t,n),h=yn(e,"xAxis",t,n)):(d=bn(e,"yAxis",r,n),h=yn(e,"yAxis",r,n)),(a=(o=Na(d,h,!0))!==null&&o!==void 0?o:f)!==null&&a!==void 0?a:0}},t2=(e,t,r,n)=>{var i=ue(e),a,o;return i==="horizontal"?(a=bn(e,"xAxis",t,n),o=yn(e,"xAxis",t,n)):(a=bn(e,"yAxis",r,n),o=yn(e,"yAxis",r,n)),Na(a,o)};function EB(e,t,r,n,i){var a=n.length;if(!(a<1)){var o=At(e,r,0,!0),s,l=[];if(Yt(n[0].barSize)){var c=!1,u=r/a,f=n.reduce((v,b)=>v+(b.barSize||0),0);f+=(a-1)*o,f>=r&&(f-=(a-1)*o,o=0),f>=r&&u>0&&(c=!0,u*=.9,f=a*u);var d=(r-f)/2>>0,h={offset:d-o,size:0};s=n.reduce((v,b)=>{var x,S={stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:h.offset+h.size+o,size:c?u:(x=b.barSize)!==null&&x!==void 0?x:0}},w=[...v,S];return h=w[w.length-1].position,w},l)}else{var m=At(t,r,0,!0);r-2*m-(a-1)*o<=0&&(o=0);var p=(r-2*m-(a-1)*o)/a;p>1&&(p>>=0);var g=Yt(i)?Math.min(p,i):p;s=n.reduce((v,b,x)=>[...v,{stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:m+(p+o)*x+(p-g)/2,size:g}}],l)}return s}}var PB=(e,t,r,n,i,a,o)=>{var s=ze(o)?t:o,l=EB(r,n,i!==a?i:a,e,s);return i!==a&&l!=null&&(l=l.map(c=>Xl(Xl({},c),{},{position:Xl(Xl({},c.position),{},{offset:c.position.offset-i/2})}))),l},CB=N([OB,d1,e4,h1,AB,t2,yB],PB),kB=(e,t,r,n)=>bn(e,"xAxis",t,n),TB=(e,t,r,n)=>bn(e,"yAxis",r,n),MB=(e,t,r,n)=>yn(e,"xAxis",t,n),jB=(e,t,r,n)=>yn(e,"yAxis",r,n),DB=N([CB,mo],(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}}),NB=(e,t)=>{var r=eh(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(o=>o.key===r)}}}},IB=N([wB,mo],NB),$B=N([st,Hf,kB,TB,MB,jB,DB,ue,Pl,t2,IB,mo,bB],(e,t,r,n,i,a,o,s,l,c,u,f,d)=>{var{chartData:h,dataStartIndex:m,dataEndIndex:p}=l;if(!(f==null||o==null||t==null||s!=="horizontal"&&s!=="vertical"||r==null||n==null||i==null||a==null||c==null)){var{data:g}=f,v;if(g!=null&&g.length>0?v=g:v=h?.slice(m,p+1),v!=null)return cB({layout:s,barSettings:f,pos:o,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:v,offset:e,cells:d})}}),r2=e=>{var{chartData:t}=e,r=Ze(),n=Nt();return k.useEffect(()=>n?()=>{}:(r(Iw(t)),()=>{r(Iw(void 0))}),[t,r,n]),null},n2={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},i2=qt({name:"brush",initialState:n2,reducers:{setBrushSettings(e,t){return t.payload==null?n2:t.payload}}}),{setBrushSettings:FU}=i2.actions,RB=i2.reducer;function LB(e,t,r){return(t=FB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FB(e){var t=BB(e,"string");return typeof t=="symbol"?t:t+""}function BB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class hp{static create(t){return new hp(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:r,position:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}LB(hp,"EPS",1e-4);function zB(e){return(e%180+180)%180}var WB=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=zB(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},VB={dots:[],areas:[],lines:[]},a2=qt({name:"referenceElements",initialState:VB,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Br(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Br(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Br(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:BU,removeDot:zU,addArea:WU,removeArea:VU,addLine:HU,removeLine:UU}=a2.actions,HB=a2.reducer,UB=k.createContext(void 0),KB=e=>{var{children:t}=e,[r]=k.useState("".concat(Ea("recharts"),"-clip")),n=lp();if(n==null)return null;var{x:i,y:a,width:o,height:s}=n;return A.createElement(UB.Provider,{value:r},A.createElement("defs",null,A.createElement("clipPath",{id:r},A.createElement("rect",{x:i,y:a,height:s,width:o}))),t)};function Ji(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function o2(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function qB(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return WB(n,r)}function YB(e,t,r){var n=r==="width",{x:i,y:a,width:o,height:s}=e;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Zl(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function GB(e,t){return o2(e,t+1)}function XB(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:s}=t,l=0,c=1,u=o,f=function(){var m=n?.[l];if(m===void 0)return{v:o2(n,c)};var p=l,g,v=()=>(g===void 0&&(g=r(m,p)),g),b=m.coordinate,x=l===0||Zl(e,b,v,u,s);x||(l=0,u=o,c+=1),x&&(u=b+e*(v()/2+i),l+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function s2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s2(Object(r),!0).forEach(function(n){ZB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZB(e,t,r){return(t=JB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JB(e){var t=QB(e,"string");return typeof t=="symbol"?t:t+""}function QB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e3(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:s}=t,{end:l}=t,c=function(d){var h=a[d],m,p=()=>(m===void 0&&(m=r(h,d)),m);if(d===o-1){var g=e*(h.coordinate+e*p()/2-l);a[d]=h=Et(Et({},h),{},{tickCoord:g>0?h.coordinate-g*e:h.coordinate})}else a[d]=h=Et(Et({},h),{},{tickCoord:h.coordinate});var v=Zl(e,h.tickCoord,p,s,l);v&&(l=h.tickCoord-e*(p()/2+i),a[d]=Et(Et({},h),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}function t3(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,{start:l,end:c}=t;if(a){var u=n[s-1],f=r(u,s-1),d=e*(u.coordinate+e*f/2-c);o[s-1]=u=Et(Et({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate});var h=Zl(e,u.tickCoord,()=>f,l,c);h&&(c=u.tickCoord-e*(f/2+i),o[s-1]=Et(Et({},u),{},{isShow:!0}))}for(var m=a?s-1:s,p=function(b){var x=o[b],S,w=()=>(S===void 0&&(S=r(x,b)),S);if(b===0){var O=e*(x.coordinate-e*w()/2-l);o[b]=x=Et(Et({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[b]=x=Et(Et({},x),{},{tickCoord:x.coordinate});var E=Zl(e,x.tickCoord,w,l,c);E&&(l=x.tickCoord+e*(w()/2+i),o[b]=Et(Et({},x),{},{isShow:!0}))},g=0;g<m;g++)p(g);return o}function pp(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:l,tickFormatter:c,unit:u,angle:f}=e;if(!i||!i.length||!n)return[];if(X(l)||dn.isSsr){var d;return(d=GB(i,X(l)?l:0))!==null&&d!==void 0?d:[]}var h=[],m=s==="top"||s==="bottom"?"width":"height",p=u&&m==="width"?fo(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},g=(x,S)=>{var w=typeof c=="function"?c(x.value,S):x.value;return m==="width"?qB(fo(w,{fontSize:t,letterSpacing:r}),p,f):fo(w,{fontSize:t,letterSpacing:r})[m]},v=i.length>=2?pt(i[1].coordinate-i[0].coordinate):1,b=YB(a,v,m);return l==="equidistantPreserveStart"?XB(v,b,g,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=t3(v,b,g,i,o,l==="preserveStartEnd"):h=e3(v,b,g,i,o),h.filter(x=>x.isShow))}var r3=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){t.forEach(u=>{if(u){var f=u.getBoundingClientRect();f.width>o&&(o=f.width)}});var s=r?r.getBoundingClientRect().width:0,l=i+a,c=o+l+s+(r?n:0);return Math.round(c)}return 0},n3=["axisLine","width","height","className","hide","ticks"],i3=["viewBox"],a3=["viewBox"];function mp(e,t){if(e==null)return{};var r,n,i=o3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function o3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function oi(){return oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oi.apply(null,arguments)}function l2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(r),!0).forEach(function(n){s3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s3(e,t,r){return(t=l3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l3(e){var t=c3(e,"string");return typeof t=="symbol"?t:t+""}function c3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gp={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};function u3(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:o,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var c=ut(ut(ut({},l),Ue(s,!1)),{},{fill:"none"});if(a==="top"||a==="bottom"){var u=+(a==="top"&&!o||a==="bottom"&&o);c=ut(ut({},c),{},{x1:t,y1:r+u*i,x2:t+n,y2:r+u*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);c=ut(ut({},c),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return A.createElement("line",oi({},c,{className:de("recharts-cartesian-axis-line",Fn(s,"className"))}))}function f3(e,t,r,n,i,a,o,s,l){var c,u,f,d,h,m,p=s?-1:1,g=e.tickSize||o,v=X(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=u=e.coordinate,d=r+ +!s*i,f=d-p*g,m=f-p*l,h=v;break;case"left":f=d=e.coordinate,u=t+ +!s*n,c=u-p*g,h=c-p*l,m=v;break;case"right":f=d=e.coordinate,u=t+ +s*n,c=u+p*g,h=c+p*l,m=v;break;default:c=u=e.coordinate,d=r+ +s*i,f=d+p*g,m=f+p*l,h=v;break}return{line:{x1:c,y1:f,x2:u,y2:d},tick:{x:h,y:m}}}function d3(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function h3(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function p3(e){var{option:t,tickProps:r,value:n}=e,i,a=de(r.className,"recharts-cartesian-axis-tick-value");if(A.isValidElement(t))i=A.cloneElement(t,ut(ut({},r),{},{className:a}));else if(typeof t=="function")i=t(ut(ut({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=de(o,t?.className)),i=A.createElement(Hl,oi({},r,{className:o}),n)}return i}function m3(e){var{ticks:t=[],tick:r,tickLine:n,stroke:i,tickFormatter:a,unit:o,padding:s,tickTextProps:l,orientation:c,mirror:u,x:f,y:d,width:h,height:m,tickSize:p,tickMargin:g,fontSize:v,letterSpacing:b,getTicksConfig:x,events:S}=e,w=pp(ut(ut({},x),{},{ticks:t}),v,b),O=d3(c,u),E=h3(c,u),C=Ar(x),M=Ue(r,!1),$=ut(ut({},C),{},{fill:"none"},Ue(n,!1)),j=w.map((_,I)=>{var{line:D,tick:L}=f3(_,f,d,h,m,c,p,u,g),W=ut(ut(ut(ut({textAnchor:O,verticalAnchor:E},C),{},{stroke:"none",fill:i},M),L),{},{index:I,payload:_,visibleTicksCount:w.length,tickFormatter:a,padding:s},l);return A.createElement(xt,oi({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},xs(S,_,I)),n&&A.createElement("line",oi({},$,D,{className:de("recharts-cartesian-axis-tick-line",Fn(n,"className"))})),r&&A.createElement(p3,{option:r,tickProps:W,value:"".concat(typeof a=="function"?a(_.value,I):_.value).concat(o||"")}))});return j.length>0?A.createElement("g",{className:"recharts-cartesian-axis-ticks"},j):null}var g3=k.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:s}=e,l=mp(e,n3),[c,u]=k.useState(""),[f,d]=k.useState(""),h=k.useRef([]);k.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var p;return r3({ticks:h.current,label:(p=e.labelRef)===null||p===void 0?void 0:p.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=k.useCallback(p=>{if(p){var g=p.getElementsByClassName("recharts-cartesian-axis-tick-value");h.current=Array.from(g);var v=g[0];if(v){var b=window.getComputedStyle(v),x=b.fontSize,S=b.letterSpacing;(x!==c||S!==f)&&(u(x),d(S))}}},[c,f]);return o||n!=null&&n<=0||i!=null&&i<=0?null:A.createElement(xt,{className:de("recharts-cartesian-axis",a),ref:m},A.createElement(u3,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Ar(e)}),A.createElement(m3,{ticks:s,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:c,letterSpacing:f,getTicksConfig:e,events:l}),A.createElement(_L,{x:e.x,y:e.y,width:e.width,height:e.height},A.createElement(jL,{label:e.label}),e.children))}),v3=A.memo(g3,(e,t)=>{var{viewBox:r}=e,n=mp(e,i3),{viewBox:i}=t,a=mp(t,a3);return Ji(r,i)&&Ji(n,a)}),vp=A.forwardRef((e,t)=>{var r=_t(e,gp);return A.createElement(v3,oi({},r,{ref:t}))});vp.displayName="CartesianAxis";var y3=["x1","y1","x2","y2","key"],b3=["offset"],x3=["xAxisId","yAxisId"],w3=["xAxisId","yAxisId"];function c2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?c2(Object(r),!0).forEach(function(n){_3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _3(e,t,r){return(t=S3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S3(e){var t=O3(e,"string");return typeof t=="symbol"?t:t+""}function O3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},si.apply(null,arguments)}function Jl(e,t){if(e==null)return{};var r,n,i=A3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function A3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var E3=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:s}=e;return A.createElement("rect",{x:n,y:i,ry:s,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function u2(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var{x1:n,y1:i,x2:a,y2:o,key:s}=t,l=Jl(t,y3),c=Ar(l),{offset:u}=c,f=Jl(c,b3);r=A.createElement("line",si({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function P3(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=Jl(e,x3),l=i.map((c,u)=>{var f=Pt(Pt({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return u2(n,f)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function C3(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=Jl(e,w3),l=i.map((c,u)=>{var f=Pt(Pt({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return u2(n,f)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function k3(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length)return null;var c=s.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var u=c.map((f,d)=>{var h=!c[d+1],m=h?i+o-f:c[d+1]-f;if(m<=0)return null;var p=d%t.length;return A.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:m,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function T3(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:s,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var c=l.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==c[0]&&c.unshift(0);var u=c.map((f,d)=>{var h=!c[d+1],m=h?i+o-f:c[d+1]-f;if(m<=0)return null;var p=d%r.length;return A.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:m,height:s,stroke:"none",fill:r[p],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var M3=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return $0(pp(Pt(Pt(Pt({},gp),r),{},{ticks:R0(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},j3=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return $0(pp(Pt(Pt(Pt({},gp),r),{},{ticks:R0(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},D3={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function Ql(e){var t=G0(),r=X0(),n=Y0(),i=Pt(Pt({},_t(e,D3)),{},{x:X(e.x)?e.x:n.left,y:X(e.y)?e.y:n.top,width:X(e.width)?e.width:n.width,height:X(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:s,y:l,width:c,height:u,syncWithTicks:f,horizontalValues:d,verticalValues:h}=i,m=Nt(),p=G(M=>J1(M,"xAxis",a,m)),g=G(M=>J1(M,"yAxis",o,m));if(!X(c)||c<=0||!X(u)||u<=0||!X(s)||s!==+s||!X(l)||l!==+l)return null;var v=i.verticalCoordinatesGenerator||M3,b=i.horizontalCoordinatesGenerator||j3,{horizontalPoints:x,verticalPoints:S}=i;if((!x||!x.length)&&typeof b=="function"){var w=d&&d.length,O=b({yAxis:g?Pt(Pt({},g),{},{ticks:w?d:g.ticks}):void 0,width:t,height:r,offset:n},w?!0:f);uo(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(x=O)}if((!S||!S.length)&&typeof v=="function"){var E=h&&h.length,C=v({xAxis:p?Pt(Pt({},p),{},{ticks:E?h:p.ticks}):void 0,width:t,height:r,offset:n},E?!0:f);uo(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(S=C)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(E3,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),A.createElement(k3,si({},i,{horizontalPoints:x})),A.createElement(T3,si({},i,{verticalPoints:S})),A.createElement(P3,si({},i,{offset:n,horizontalPoints:x,xAxis:p,yAxis:g})),A.createElement(C3,si({},i,{offset:n,verticalPoints:S,xAxis:p,yAxis:g})))}Ql.displayName="CartesianGrid";var f2=(e,t,r,n)=>bn(e,"xAxis",t,n),d2=(e,t,r,n)=>yn(e,"xAxis",t,n),h2=(e,t,r,n)=>bn(e,"yAxis",r,n),p2=(e,t,r,n)=>yn(e,"yAxis",r,n),N3=N([ue,f2,h2,d2,p2],(e,t,r,n,i)=>fn(e,"xAxis")?Na(t,n,!1):Na(r,i,!1)),I3=(e,t,r,n,i)=>i;function $3(e){return e.type==="line"}var R3=N([Nl,I3],(e,t)=>e.filter($3).find(r=>r.id===t)),L3=N([ue,f2,h2,d2,p2,R3,N3,Pl],(e,t,r,n,i,a,o,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||o==null)){var{dataKey:f,data:d}=a,h;if(d!=null&&d.length>0?h=d:h=l?.slice(c,u+1),h!=null)return o8({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:h})}}),F3=["id"],B3=["type","layout","connectNulls","needClip"],z3=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function m2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m2(Object(r),!0).forEach(function(n){W3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W3(e,t,r){return(t=V3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V3(e){var t=H3(e,"string");return typeof t=="symbol"?t:t+""}function H3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yp(e,t){if(e==null)return{};var r,n,i=U3(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function U3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},li.apply(null,arguments)}var K3=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ni(r,t),payload:e}]};function q3(e){var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:s,unit:l}=e;return{dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ni(o,t),hide:s,type:e.tooltipType,color:e.stroke,unit:l}}}var g2=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function Y3(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}var G3=(e,t,r)=>{var n=r.reduce((f,d)=>f+d);if(!n)return g2(t,e);for(var i=Math.floor(e/n),a=e%n,o=t-e,s=[],l=0,c=0;l<r.length;c+=r[l],++l)if(c+r[l]>a){s=[...r.slice(0,l),a-c];break}var u=s.length%2===0?[0,o]:[o];return[...Y3(r,i),...s,...u].map(f=>"".concat(f,"px")).join(", ")};function X3(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var n=de("recharts-line-dot",typeof e!="boolean"?e.className:"");r=A.createElement(b_,li({},t,{className:n}))}return r}function Z3(e,t){return e==null?!1:t?!0:e.length===1}function J3(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n;if(!Z3(r,i))return null;var{id:s}=n,l=yp(n,F3),c=pv(i),u=Ar(l),f=Ue(i,!0),d=r.map((m,p)=>{var g=Qt(Qt(Qt({key:"dot-".concat(p),r:3},u),f),{},{index:p,cx:m.x,cy:m.y,dataKey:a,value:m.value,payload:m.payload,points:r});return X3(i,g)}),h={clipPath:o?"url(#clipPath-".concat(c?"":"dots-").concat(t,")"):void 0};return A.createElement(xt,li({className:"recharts-line-dots",key:"dots"},h),d)}function Q3(e){var{showLabels:t,children:r,points:n}=e,i=k.useMemo(()=>n?.map(a=>{var o={x:a.x,y:a.y,width:0,height:0};return Qt(Qt({},o),{},{value:a.value,payload:a.payload,viewBox:o,parentViewBox:void 0,fill:void 0})}),[n]);return A.createElement(v_,{value:t?i:null},r)}function v2(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:o,layout:s,connectNulls:l,needClip:c}=a,u=yp(a,B3),f=Qt(Qt({},Ue(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:o,layout:s,connectNulls:l,strokeDasharray:i??a.strokeDasharray});return A.createElement(A.Fragment,null,n?.length>1&&A.createElement(Xf,li({},f,{pathRef:r})),A.createElement(J3,{points:n,clipPathId:t,props:a}))}function e8(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function t8(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:f,animateNewValues:d,width:h,height:m,onAnimationEnd:p,onAnimationStart:g}=r,v=i.current,b=za(r,"recharts-line-"),[x,S]=k.useState(!1),w=!x,O=k.useCallback(()=>{typeof p=="function"&&p(),S(!1)},[p]),E=k.useCallback(()=>{typeof g=="function"&&g(),S(!0)},[g]),C=e8(n.current),M=a.current;return A.createElement(Q3,{points:o,showLabels:w},r.children,A.createElement(Ba,{animationId:b,begin:c,duration:u,isActive:l,easing:f,onAnimationEnd:O,onAnimationStart:E,key:b},$=>{var j=Ye(M,C+M,$),_=Math.min(j,C),I;if(l)if(s){var D="".concat(s).split(/[,\s]+/gim).map(H=>parseFloat(H));I=G3(_,C,D)}else I=g2(C,_);else I=s==null?void 0:String(s);if(v){var L=v.length/o.length,W=$===1?o:o.map((H,te)=>{var Q=Math.floor(te*L);if(v[Q]){var F=v[Q];return Qt(Qt({},H),{},{x:Ye(F.x,H.x,$),y:Ye(F.y,H.y,$)})}return d?Qt(Qt({},H),{},{x:Ye(h*2,H.x,$),y:Ye(m/2,H.y,$)}):Qt(Qt({},H),{},{x:H.x,y:H.y})});return i.current=W,A.createElement(v2,{props:r,points:W,clipPathId:t,pathRef:n,strokeDasharray:I})}return $>0&&C>0&&(i.current=o,a.current=_),A.createElement(v2,{props:r,points:o,clipPathId:t,pathRef:n,strokeDasharray:I})}),A.createElement(qh,{label:r.label}))}function r8(e){var{clipPathId:t,props:r}=e,n=k.useRef(null),i=k.useRef(0),a=k.useRef(null);return A.createElement(t8,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:a})}var n8=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:Re(e.payload,t)});class i8 extends k.Component{render(){var t,{hide:r,dot:n,points:i,className:a,xAxisId:o,yAxisId:s,top:l,left:c,width:u,height:f,id:d,needClip:h}=this.props;if(r)return null;var m=de("recharts-line",a),p=d,{r:g=3,strokeWidth:v=2}=(t=Ue(n,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},b=pv(n),x=g*2+v;return A.createElement(A.Fragment,null,A.createElement(xt,{className:m},h&&A.createElement("defs",null,A.createElement(G_,{clipPathId:p,xAxisId:o,yAxisId:s}),!b&&A.createElement("clipPath",{id:"clipPath-dots-".concat(p)},A.createElement("rect",{x:c-x/2,y:l-x/2,width:u+x,height:f+x}))),A.createElement(Y_,{xAxisId:o,yAxisId:s,data:i,dataPointFormatter:n8,errorBarOffset:0},A.createElement(r8,{props:this.props,clipPathId:p}))),A.createElement(A6,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var y2={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!dn.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function a8(e){var t=_t(e,y2),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:f,legendType:d,xAxisId:h,yAxisId:m,id:p}=t,g=yp(t,z3),{needClip:v}=dp(h,m),b=lp(),x=rl(),S=Nt(),w=G($=>L3($,h,m,S,p));if(x!=="horizontal"&&x!=="vertical"||w==null||b==null)return null;var{height:O,width:E,x:C,y:M}=b;return A.createElement(i8,li({},g,{id:p,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:c,label:f,legendType:d,xAxisId:h,yAxisId:m,points:w,layout:x,height:O,width:E,left:C,top:M,needClip:v}))}function o8(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var f=Re(c,o);if(t==="horizontal"){var d=F0({axis:r,ticks:i,bandSize:s,entry:c,index:u}),h=ze(f)?null:n.scale(f);return{x:d,y:h,value:f,payload:c}}var m=ze(f)?null:r.scale(f),p=F0({axis:n,ticks:a,bandSize:s,entry:c,index:u});return m==null||p==null?null:{x:m,y:p,value:f,payload:c}}).filter(Boolean)}function s8(e){var t=_t(e,y2),r=Nt();return A.createElement(op,{id:t.id,type:"line"},n=>A.createElement(A.Fragment,null,A.createElement($_,{legendPayload:K3(t)}),A.createElement(ip,{fn:q3,args:t}),A.createElement(L_,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),A.createElement(a8,li({},t,{id:n}))))}var ci=A.memo(s8);ci.displayName="Line";var l8=["dangerouslySetInnerHTML","ticks"],c8=["id"],u8=["domain"],f8=["domain"];function bp(){return bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bp.apply(null,arguments)}function ec(e,t){if(e==null)return{};var r,n,i=d8(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function d8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function h8(e){var t=Ze();return k.useEffect(()=>(t(d6(e)),()=>{t(h6(e))}),[e,t]),null}var p8=e=>{var{xAxisId:t,className:r}=e,n=G(Hf),i=Nt(),a="xAxis",o=G(g=>Yi(g,a,t,i)),s=G(g=>Q1(g,a,t,i)),l=G(g=>q1(g,t)),c=G(g=>K4(g,t)),u=G(g=>S1(g,t));if(l==null||c==null||u==null)return null;var{dangerouslySetInnerHTML:f,ticks:d}=e,h=ec(e,l8),{id:m}=u,p=ec(u,c8);return A.createElement(vp,bp({},h,p,{scale:o,x:c.x,y:c.y,width:l.width,height:l.height,className:de("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:s}))},m8={allowDataOverflow:Zt.allowDataOverflow,allowDecimals:Zt.allowDecimals,allowDuplicatedCategory:Zt.allowDuplicatedCategory,height:Zt.height,hide:!1,mirror:Zt.mirror,orientation:Zt.orientation,padding:Zt.padding,reversed:Zt.reversed,scale:Zt.scale,tickCount:Zt.tickCount,type:Zt.type,xAxisId:0},g8=e=>{var t,r,n,i,a,o=_t(e,m8);return A.createElement(A.Fragment,null,A.createElement(h8,{interval:(t=o.interval)!==null&&t!==void 0?t:"preserveEnd",id:o.xAxisId,scale:o.scale,type:o.type,padding:o.padding,allowDataOverflow:o.allowDataOverflow,domain:o.domain,dataKey:o.dataKey,allowDuplicatedCategory:o.allowDuplicatedCategory,allowDecimals:o.allowDecimals,tickCount:o.tickCount,includeHidden:(r=o.includeHidden)!==null&&r!==void 0?r:!1,reversed:o.reversed,ticks:o.ticks,height:o.height,orientation:o.orientation,mirror:o.mirror,hide:o.hide,unit:o.unit,name:o.name,angle:(n=o.angle)!==null&&n!==void 0?n:0,minTickGap:(i=o.minTickGap)!==null&&i!==void 0?i:5,tick:(a=o.tick)!==null&&a!==void 0?a:!0,tickFormatter:o.tickFormatter}),A.createElement(p8,o))},v8=(e,t)=>{var{domain:r}=e,n=ec(e,u8),{domain:i}=t,a=ec(t,f8);return Ji(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:Ji({domain:r},{domain:i}):!1},tc=A.memo(g8,v8);tc.displayName="XAxis";var y8=["dangerouslySetInnerHTML","ticks"],b8=["id"],x8=["domain"],w8=["domain"];function xp(){return xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xp.apply(null,arguments)}function rc(e,t){if(e==null)return{};var r,n,i=_8(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function S8(e){var t=Ze();return k.useEffect(()=>(t(p6(e)),()=>{t(m6(e))}),[e,t]),null}var O8=e=>{var{yAxisId:t,className:r,width:n,label:i}=e,a=k.useRef(null),o=k.useRef(null),s=G(Hf),l=Nt(),c=Ze(),u="yAxis",f=G(w=>Yi(w,u,t,l)),d=G(w=>Y1(w,t)),h=G(w=>Y4(w,t)),m=G(w=>Q1(w,u,t,l)),p=G(w=>O1(w,t));if(k.useLayoutEffect(()=>{if(!(n!=="auto"||!d||Wh(i)||k.isValidElement(i)||p==null)){var w=a.current;if(w){var O=w.getCalculatedWidth();Math.round(d.width)!==Math.round(O)&&c(g6({id:t,width:O}))}}},[m,d,c,i,t,n,p]),d==null||h==null||p==null)return null;var{dangerouslySetInnerHTML:g,ticks:v}=e,b=rc(e,y8),{id:x}=p,S=rc(p,b8);return A.createElement(vp,xp({},b,S,{ref:a,labelRef:o,scale:f,x:h.x,y:h.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:de("recharts-".concat(u," ").concat(u),r),viewBox:s,ticks:m}))},A8={allowDataOverflow:Jt.allowDataOverflow,allowDecimals:Jt.allowDecimals,allowDuplicatedCategory:Jt.allowDuplicatedCategory,hide:!1,mirror:Jt.mirror,orientation:Jt.orientation,padding:Jt.padding,reversed:Jt.reversed,scale:Jt.scale,tickCount:Jt.tickCount,type:Jt.type,width:Jt.width,yAxisId:0},E8=e=>{var t,r,n,i,a,o=_t(e,A8);return A.createElement(A.Fragment,null,A.createElement(S8,{interval:(t=o.interval)!==null&&t!==void 0?t:"preserveEnd",id:o.yAxisId,scale:o.scale,type:o.type,domain:o.domain,allowDataOverflow:o.allowDataOverflow,dataKey:o.dataKey,allowDuplicatedCategory:o.allowDuplicatedCategory,allowDecimals:o.allowDecimals,tickCount:o.tickCount,padding:o.padding,includeHidden:(r=o.includeHidden)!==null&&r!==void 0?r:!1,reversed:o.reversed,ticks:o.ticks,width:o.width,orientation:o.orientation,mirror:o.mirror,hide:o.hide,unit:o.unit,name:o.name,angle:(n=o.angle)!==null&&n!==void 0?n:0,minTickGap:(i=o.minTickGap)!==null&&i!==void 0?i:5,tick:(a=o.tick)!==null&&a!==void 0?a:!0,tickFormatter:o.tickFormatter}),A.createElement(O8,o))},P8=(e,t)=>{var{domain:r}=e,n=rc(e,x8),{domain:i}=t,a=rc(t,w8);return Ji(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:Ji({domain:r},{domain:i}):!1},go=A.memo(E8,P8);go.displayName="YAxis";var nc={exports:{}},wp={};/**
184
184
  * @license React
185
185
  * use-sync-external-store-with-selector.production.js
186
186
  *
@@ -188,7 +188,7 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
188
188
  *
189
189
  * This source code is licensed under the MIT license found in the
190
190
  * LICENSE file in the root directory of this source tree.
191
- */var y2;function P8(){if(y2)return bp;y2=1;var e=k;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,s=e.useDebugValue;return bp.useSyncExternalStoreWithSelector=function(l,c,u,f,d){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=o(function(){function g(w){if(!v){if(v=!0,b=w,w=f(w),d!==void 0&&m.hasValue){var O=m.value;if(d(O,w))return x=O}return x=w}if(O=x,r(b,w))return O;var E=f(w);return d!==void 0&&d(O,E)?(b=w,O):(b=w,x=E)}var v=!1,b,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,f,d]);var p=n(l,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},bp}var xp={};/**
191
+ */var b2;function C8(){if(b2)return wp;b2=1;var e=k;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,s=e.useDebugValue;return wp.useSyncExternalStoreWithSelector=function(l,c,u,f,d){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=o(function(){function g(w){if(!v){if(v=!0,b=w,w=f(w),d!==void 0&&m.hasValue){var O=m.value;if(d(O,w))return x=O}return x=w}if(O=x,r(b,w))return O;var E=f(w);return d!==void 0&&d(O,E)?(b=w,O):(b=w,x=E)}var v=!1,b,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,f,d]);var p=n(l,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},wp}var _p={};/**
192
192
  * @license React
193
193
  * use-sync-external-store-with-selector.development.js
194
194
  *
@@ -196,21 +196,21 @@ Take a look at the reducer(s) handling this action type: ${h.type}.
196
196
  *
197
197
  * This source code is licensed under the MIT license found in the
198
198
  * LICENSE file in the root directory of this source tree.
199
- */var b2;function C8(){return b2||(b2=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;xp.useSyncExternalStoreWithSelector=function(l,c,u,f,d){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=o(function(){function g(w){if(!v){if(v=!0,b=w,w=f(w),d!==void 0&&m.hasValue){var O=m.value;if(d(O,w))return x=O}return x=w}if(O=x,r(b,w))return O;var E=f(w);return d!==void 0&&d(O,E)?(b=w,O):(b=w,x=E)}var v=!1,b,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,f,d]);var p=n(l,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),xp}var x2;function k8(){return x2||(x2=1,process.env.NODE_ENV==="production"?rc.exports=P8():rc.exports=C8()),rc.exports}k8();function T8(e){e()}function M8(){let e=null,t=null;return{clear(){e=null,t=null},notify(){T8(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var w2={notify(){},get:()=>[]};function j8(e,t){let r,n=w2,i=0,a=!1;function o(p){u();const g=n.subscribe(p);let v=!1;return()=>{v||(v=!0,g(),f())}}function s(){n.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return a}function u(){i++,r||(r=e.subscribe(l),n=M8())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=w2)}function d(){a||(a=!0,u())}function h(){a&&(a=!1,f())}const m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return m}var D8=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N8=D8(),I8=()=>typeof navigator<"u"&&navigator.product==="ReactNative",$8=I8(),R8=()=>N8||$8?A.useLayoutEffect:A.useEffect,L8=R8(),F8=Symbol.for("react-redux-context"),B8=typeof globalThis<"u"?globalThis:{};function z8(){if(!A.createContext)return{};const e=B8[F8]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(A.createContext,t)),t}var W8=z8();function V8(e){const{children:t,context:r,serverState:n,store:i}=e,a=A.useMemo(()=>{const l=j8(i),c={store:i,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:u})}},[i,n]),o=A.useMemo(()=>i.getState(),[i]);L8(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const s=r||W8;return A.createElement(s.Provider,{value:a},t)}var H8=V8,U8=(e,t)=>t,wp=N([U8,ue,y1,ct,gw,Qr,J$,st],nR),_p=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},_2=ar("mouseClick"),S2=ja();S2.startListening({actionCreator:_2,effect:(e,t)=>{var r=e.payload,n=wp(t.getState(),_p(r));n?.activeIndex!=null&&t.dispatch(o$({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Sp=ar("mouseMove"),O2=ja();O2.startListening({actionCreator:Sp,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=yh(n,n.tooltip.settings.shared),a=wp(n,_p(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(ow({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(aw()))}});var A2={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},E2=qt({name:"rootProps",initialState:A2,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:A2.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),K8=E2.reducer,{updateOptions:q8}=E2.actions,P2=qt({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:Y8}=P2.actions,G8=P2.reducer,C2=ar("keyDown"),k2=ar("focus"),Op=ja();Op.startListening({actionCreator:C2,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(wh(i,Xi(r))),s=Qr(r);if(a==="Enter"){var l=zl(r,"axis","hover",String(i.index));t.dispatch(xh({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:l}));return}var c=Z4(r),u=c==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,d=o+f*u;if(!(s==null||d>=s.length||d<0)){var h=zl(r,"axis","hover",String(d));t.dispatch(xh({active:!0,activeIndex:d.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}}),Op.startListening({actionCreator:k2,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=zl(r,"axis","hover",String(a));t.dispatch(xh({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var ur=ar("externalEvent"),T2=ja();T2.startListening({actionCreator:ur,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:W$(r),activeDataKey:xw(r),activeIndex:wn(r),activeLabel:bw(r),activeTooltipIndex:wn(r),isTooltipActive:V$(r)};e.payload.handler(n,e.payload.reactEvent)}}});var X8=N([Gi],e=>e.tooltipItemPayloads),Z8=N([X8,oo,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(s=>s.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),M2=ar("touchMove"),j2=ja();j2.startListening({actionCreator:M2,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=yh(n,n.tooltip.settings.shared);if(i==="axis"){var a=wp(n,_p({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(ow({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=r.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(H0),u=(o=l.getAttribute(U0))!==null&&o!==void 0?o:void 0,f=Z8(t.getState(),c,u);t.dispatch(iw({activeDataKey:u,activeIndex:c,activeCoordinate:f}))}}});var J8=qy({brush:$B,cartesianAxis:g6,chartData:bR,errorBars:I6,graphicalItems:IF,layout:dj,legend:eD,options:pR,polarAxis:JL,polarOptions:G8,referenceElements:VB,rootProps:K8,tooltip:s$}),Q8=function(t){return RM({reducer:J8,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([S2.middleware,O2.middleware,Op.middleware,T2.middleware,j2.middleware]),devTools:dn.devToolsEnabled})};function D2(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Nt(),a=k.useRef(null);if(i)return r;a.current==null&&(a.current=Q8(t));var o=gf;return A.createElement(H8,{context:o,store:a.current},r)}function N2(e){var{layout:t,width:r,height:n,margin:i}=e,a=Ze(),o=Nt();return k.useEffect(()=>{o||(a(cj(t)),a(uj({width:r,height:n})),a(lj(i)))},[a,o,t,r,n,i]),null}function I2(e){var t=Ze();return k.useEffect(()=>{t(q8(e))},[t,e]),null}var ez=["children"];function tz(e,t){if(e==null)return{};var r,n,i=rz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function rz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nc.apply(null,arguments)}var nz={width:"100%",height:"100%"},iz=k.forwardRef((e,t)=>{var r=Y0(),n=G0(),i=rb();if(!Ii(r)||!Ii(n))return null;var{children:a,otherAttributes:o,title:s,desc:l}=e,c,u;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?u=o.role:u=i?"application":void 0,A.createElement(pv,nc({},o,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:nz,ref:t}),a)}),az=e=>{var{children:t}=e,r=G(el);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return A.createElement(pv,{width:n,height:i,x:o,y:a},t)},$2=k.forwardRef((e,t)=>{var{children:r}=e,n=tz(e,ez),i=Nt();return i?A.createElement(az,null,r):A.createElement(iz,nc({ref:t},n),r)});function oz(){var e=Ze(),[t,r]=k.useState(null),n=G(zj);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Yt(a)&&a!==n&&e(fj(a))}},[t,e,n]),r}function R2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R2(Object(r),!0).forEach(function(n){lz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lz(e,t,r){return(t=cz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cz(e){var t=uz(e,"string");return typeof t=="symbol"?t:t+""}function uz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fz=k.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:m,onTouchStart:p,style:g,width:v}=e,b=Ze(),[x,S]=k.useState(null),[w,O]=k.useState(null);CR();var E=oz(),C=k.useCallback(V=>{E(V),typeof t=="function"&&t(V),S(V),O(V)},[E,t,S,O]),M=k.useCallback(V=>{b(_2(V)),b(ur({handler:a,reactEvent:V}))},[b,a]),$=k.useCallback(V=>{b(Sp(V)),b(ur({handler:c,reactEvent:V}))},[b,c]),j=k.useCallback(V=>{b(aw()),b(ur({handler:u,reactEvent:V}))},[b,u]),_=k.useCallback(V=>{b(Sp(V)),b(ur({handler:f,reactEvent:V}))},[b,f]),I=k.useCallback(()=>{b(k2())},[b]),D=k.useCallback(V=>{b(C2(V.key))},[b]),L=k.useCallback(V=>{b(ur({handler:o,reactEvent:V}))},[b,o]),W=k.useCallback(V=>{b(ur({handler:s,reactEvent:V}))},[b,s]),H=k.useCallback(V=>{b(ur({handler:l,reactEvent:V}))},[b,l]),te=k.useCallback(V=>{b(ur({handler:d,reactEvent:V}))},[b,d]),Q=k.useCallback(V=>{b(ur({handler:p,reactEvent:V}))},[b,p]),F=k.useCallback(V=>{b(M2(V)),b(ur({handler:m,reactEvent:V}))},[b,m]),U=k.useCallback(V=>{b(ur({handler:h,reactEvent:V}))},[b,h]);return A.createElement(kw.Provider,{value:x},A.createElement(mk.Provider,{value:w},A.createElement("div",{className:de("recharts-wrapper",n),style:sz({position:"relative",cursor:"default",width:v,height:i},g),onClick:M,onContextMenu:L,onDoubleClick:W,onFocus:I,onKeyDown:D,onMouseDown:H,onMouseEnter:$,onMouseLeave:j,onMouseMove:_,onMouseUp:te,onTouchEnd:U,onTouchMove:F,onTouchStart:Q,ref:C},r)))}),dz=["children","className","width","height","style","compact","title","desc"];function hz(e,t){if(e==null)return{};var r,n,i=pz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function pz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var L2=k.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:o,compact:s,title:l,desc:c}=e,u=hz(e,dz),f=Ar(u);return s?A.createElement($2,{otherAttributes:f,title:l,desc:c},r):A.createElement(fz,{className:n,style:o,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},A.createElement($2,{otherAttributes:f,title:l,desc:c,ref:t},A.createElement(UB,null,r)))}),mz=["width","height"];function Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ap.apply(null,arguments)}function gz(e,t){if(e==null)return{};var r,n,i=vz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var yz={top:5,right:5,bottom:5,left:5},bz={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:yz,reverseStackOrder:!1,syncMethod:"index"},F2=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,bz),{width:a,height:o}=i,s=gz(i,mz);if(!Ii(a)||!Ii(o))return null;var{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,eventEmitter:void 0};return A.createElement(D2,{preloadedState:{options:h},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:l},A.createElement(t2,{chartData:d.data}),A.createElement(N2,{width:a,height:o,layout:i.layout,margin:i.margin}),A.createElement(I2,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(L2,Ap({},s,{width:a,height:o,ref:r})))}),xz=["axis"],B2=k.forwardRef((e,t)=>A.createElement(F2,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:xz,tooltipPayloadSearcher:jh,categoricalChartProps:e,ref:t})),wz=["axis","item"],_z=k.forwardRef((e,t)=>A.createElement(F2,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:wz,tooltipPayloadSearcher:jh,categoricalChartProps:e,ref:t}));function Sz(e){var t=Ze();return k.useEffect(()=>{t(Y8(e))},[t,e]),null}var Oz=["width","height","layout"];function Ep(){return Ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ep.apply(null,arguments)}function Az(e,t){if(e==null)return{};var r,n,i=Ez(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ez(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Pz={top:5,right:5,bottom:5,left:5},Cz={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Pz,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},kz=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,Cz),{width:a,height:o,layout:s}=i,l=Az(i,Oz);if(!Ii(a)||!Ii(o))return null;var{chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d}=t,h={chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,eventEmitter:void 0};return A.createElement(D2,{preloadedState:{options:h},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:c},A.createElement(t2,{chartData:i.data}),A.createElement(N2,{width:a,height:o,layout:s,margin:i.margin}),A.createElement(I2,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(Sz,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),A.createElement(L2,Ep({width:a,height:o},l,{ref:r})))}),Tz=["item"],Mz={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},ic=k.forwardRef((e,t)=>{var r=_t(e,Mz);return A.createElement(kz,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:Tz,tooltipPayloadSearcher:jh,categoricalChartProps:r,ref:t})});function jz({isStatic:e,data:t}){const r=Number(t?.thisMonthMoveIns??t?.lastMonthMoveIns??0),n=Number(t?.thisMonthMoveOuts??t?.lastMonthMoveOuts??0),i=Number(t?.moveInPercentChange??t?.moveInChange??0),a=Number(t?.moveOutPercentChange??t?.moveOutChange??0),o=["#8B5CF6","#EBE4F9"],s=[{name:"Move-ins",value:r,color:o[0]},{name:"Move-outs",value:n,color:o[1]}];function l(c,u){return((Number(c)+Number(u))/2).toFixed(2)+"%"}return y.jsx(Ti,{title:"Community",period:"This Month",icon:y.jsx(cu,{className:"!text-[24px] text-[#329DFF]"}),className:`${e&&"max-h-[184px]"} h-[184px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Move-in/Out Count"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium !text-[#8B5CF6]",children:r+n})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(Zg,{value:l(i,a)}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to last month"})]})]}),y.jsx("div",{className:"w-[50%] h-[111px] flex justify-end",children:y.jsx(ii,{width:"75%",height:"100%",children:y.jsxs(ic,{children:[y.jsxs(fo,{data:s,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:[y.jsx(kr,{fill:o[0]}),y.jsx(kr,{fill:o[1]})]}),y.jsx(ni,{content:y.jsx(Oa,{})})]})})})]})})}function Dz({isStatic:e,data:t}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],n=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return y.jsx(Ti,{title:"Engagement",period:"This Month",icon:y.jsx(Vg,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,children:y.jsx("div",{className:"w-full h-[235px]",children:y.jsx(ii,{width:"100%",height:"100%",children:y.jsxs(_z,{data:n,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[y.jsx(Jl,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),y.jsx(mo,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),y.jsx(ec,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),y.jsx(ni,{content:y.jsx(Oa,{}),cursor:{fill:"transparent"}}),y.jsx(Z_,{dataKey:"value",barSize:40,isAnimationActive:!1,children:n.map((i,a)=>y.jsx(kr,{fill:r[a]},i.name))})]})})})})}function Nz(e){if(!e)return 0;const[t,r]=e.split(" ");let[n,i]=t.split(":").map(Number);return r==="PM"&&n!==12&&(n+=12),r==="AM"&&n===12&&(n=0),n*60+i}function Iz(e){return Array.from({length:24},(n,i)=>i).map(n=>{const i=e.find(l=>{const c=Nz(l.slot_start_time);return Math.floor(c/60)===n}),a=n>=12?"PM":"AM";return{time:`${n%12||12} ${a}`,bookings:i?.slot_bookings||0,total:i?.total_slots||0,utilization:i?.utilization_rate||0}})}function $z({isStatic:e,data:t}){const r=Number(t?.totalBookings||0),n=Number(t?.totalSlots||0),i=Number(t?.utilizationRate||0),a=k.useMemo(()=>t?.slots?.length?Iz(t.slots):[],[t]),o=u=>["1 AM","6 AM","11 AM","5 PM","10 PM"].includes(u)?u:"",s=a.length>0?Math.max(...a.map(u=>u.total),5):5;function l(u){const f=u>=12?"PM":"AM";let d=u%12;return d===0&&(d=12),`${d} ${f}`}const c=a.length?a:Array.from({length:24},(u,f)=>({time:l(f),bookings:0,total:0,utilization:0}));return y.jsxs(Ti,{title:"Facilities",period:"Today",icon:y.jsx(Wg,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[y.jsxs("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px]",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:r})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Total Slots"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#F59E0B]",children:n})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),y.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[i.toFixed(2),"%"]})]})]}),y.jsx("div",{className:"w-full h-[170px]",children:y.jsx(ii,{width:"100%",height:"100%",children:y.jsxs(B2,{data:c,margin:{top:0,right:-30,left:-40,bottom:0},children:[y.jsx(Jl,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(ec,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),y.jsx(mo,{yAxisId:"left",domain:[0,s],tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(mo,{yAxisId:"right",orientation:"right",domain:[20,100],ticks:[20,40,60,80,100],tickFormatter:u=>`${u}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(ni,{content:y.jsx(Oa,{})}),y.jsx(li,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),y.jsx(li,{yAxisId:"left",type:"monotone",dataKey:"total",name:"Total Slots",stroke:"#F59E0B",strokeWidth:2,dot:!1}),y.jsx(li,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function Rz({data:e}){const t=e?.incomeSummary||{},r=e?.expenditureSummary||{},n=["AED","USD","EUR"],i=["Rs","INR","₹"];function a(s){if(s==null||isNaN(s))return"0";const l=Number(s);return l>=1e9?(l/1e9).toFixed(l%1e9===0?0:2)+"B":l>=1e6?(l/1e6).toFixed(l%1e6===0?0:2)+"M":l>=1e3?(l/1e3).toFixed(l%1e3===0?0:2)+"K":l.toFixed(l%1===0?0:2)}function o(s,l){return l?i.includes(l)?`${l} ${a(s)}`:n.includes(l)?`${a(s)} ${l}`:`${a(s)} ${l}`:a(s)}return y.jsx(Ti,{title:"Income",period:"This Month",icon:y.jsx(Hg,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",children:y.jsxs("div",{children:[y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Income"}),y.jsx("div",{children:"Collection"}),y.jsx("div",{children:"Closing"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[y.jsx("div",{children:o(t.opening_balance,t?.currency_type)}),y.jsx("div",{children:o(t.income,t?.currency_type)}),y.jsx("div",{children:o(t.collection,t?.currency_type)}),y.jsx("div",{children:o(t.closing_balance,t?.currency_type)})]}),y.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),y.jsx("div",{className:"flex items-center justify-between",children:y.jsxs("div",{className:"flex items-center gap-[12px]",children:[y.jsx(Hg,{className:"!text-[24px] text-red-600"}),y.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Expenditure"}),y.jsx("div",{children:"Payment"}),y.jsx("div",{children:"Outstanding"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[y.jsx("div",{children:o(r.opening_balance,r?.currency_type)}),y.jsx("div",{children:o(r.expenditure,r?.currency_type)}),y.jsx("div",{children:o(r.payment,r?.currency_type)}),y.jsx("div",{children:o(r.outstanding,r?.currency_type)})]})]})})}function Lz(e){const t=e>=12?"PM":"AM";let r=e%12;return r===0&&(r=12),`${r} ${t}`}function Fz(e){return Array.from({length:24},(t,r)=>{const n=e.find(i=>i.hour===r)||{};return{hour:r,time:Lz(r),walkins:n.walkins??0,checkins:n.preApproved??0,staffAttendance:n.staffAttendance??0}})}function Bz({isStatic:e,data:t}){const r={walkins:"#1FA05B",preApproved:"#E7A015",staffAttendance:"#329DFF"},n=t?.summary?.activeWalkins||{},i=t?.summary?.preApprovedCheckins||{},a=t?.summary?.staffAttendance||{},o=Fz(t?.chart||[]),s=Math.max(...o.flatMap(u=>[u.walkins,u.checkins,u.staffAttendance])),l=s>0?s:5,c=[0,Math.ceil(l/2),l];return y.jsx(Ti,{title:"Gate Updates",period:"Today",icon:y.jsx(Kg,{className:"!text-[24px] text-[#37CC6D]"}),className:`${e?"max-h-[303px]":""} h-[251px] mb-4 break-inside-avoid`,children:y.jsxs("div",{children:[y.jsxs("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"text-[10px] text-[#64748B]",children:"Active Walk-ins"}),y.jsxs("div",{className:"text-[28px] font-medium text-[#1FA05B] flex items-center",children:[n.visitor_in??0,y.jsxs("div",{className:"text-[20px] text-[#64748B]",children:["/",n.total_pass??0]})]})]}),y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"text-[10px] text-[#64748B] whitespace-nowrap",children:"Pre-approved Check-ins"}),y.jsxs("div",{className:"text-[28px] font-medium text-[#E7A015] flex items-center",children:[i.expected_pass_scanned??0,y.jsxs("div",{className:"text-[20px] text-[#64748B]",children:["/",i.total_expected_pass??0]})]})]}),y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"text-[10px] text-[#64748B]",children:"Staff Attendance"}),y.jsxs("div",{className:"text-[28px] font-medium text-[#329DFF] flex items-center",children:[a.total_in_now??0,y.jsxs("div",{className:"text-[20px] text-[#64748B]",children:["/",a.total_in_today??0]})]})]})]}),y.jsx("div",{className:"w-full h-[105px]",children:y.jsx(ii,{width:"100%",height:"100%",children:y.jsxs(B2,{data:o,margin:{top:1,right:0,left:-40,bottom:0},children:[y.jsx(Jl,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(ec,{dataKey:"time",tickFormatter:(u,f)=>f%4===0?u:"",tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1}),y.jsx(mo,{tick:{fontSize:10,fill:"#64748B",fontWeight:400},ticks:c,domain:[0,l],allowDecimals:!1,axisLine:!1,tickLine:!1}),y.jsx(ni,{content:y.jsx(Oa,{})}),y.jsx(li,{type:"monotone",dataKey:"walkins",stroke:r.walkins,strokeWidth:2,dot:!1,name:"Active Walk-ins"}),y.jsx(li,{type:"monotone",dataKey:"checkins",stroke:r.preApproved,strokeWidth:2,strokeDasharray:"5 5",dot:!1,name:"Pre-approved"}),y.jsx(li,{type:"monotone",dataKey:"staffAttendance",stroke:r.staffAttendance,strokeWidth:2,dot:!1,name:"Staff Attendance"})]})})})]})})}function zz({isStatic:e,data:t}){const r=["#1FA05B","#E7A015","#FA7E28","#EF4444","#CBD5E1"],n=[{name:"L1 Level",value:Number(t?.today_L1||0),color:r[0]},{name:"L2 Level",value:Number(t?.today_L2||0),color:r[1]},{name:"L3 Level",value:Number(t?.today_L3||0),color:r[2]},{name:"L4 Level",value:Number(t?.today_L4||0),color:r[3]}];n.reduce((a,o)=>a+o.value,0);const i=n;return y.jsx(Ti,{title:"Helpdesk",period:"Today",icon:y.jsx(ZC,{className:"!text-[24px] text-[#FA7E28]"}),className:`${e&&"max-h-[186px]"} h-[186px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex gap-[12px] h-fit",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Open Complaints"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium text-[#FA7E28]",children:t?.today_open_complaints??0})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(Zg,{value:t?.percent_change}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to yesterday"})]})]}),y.jsx("div",{className:"w-[50%] h-[110px] flex justify-end",children:y.jsx(ii,{width:"75%",height:"100%",children:y.jsxs(ic,{children:[y.jsx(fo,{data:i,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:i.map((a,o)=>y.jsx(kr,{fill:r[o]||"#CBD5E1"},a.name))}),y.jsx(ni,{content:y.jsx(Oa,{})})]})})})]})})}/*!
199
+ */var x2;function k8(){return x2||(x2=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;_p.useSyncExternalStoreWithSelector=function(l,c,u,f,d){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=o(function(){function g(w){if(!v){if(v=!0,b=w,w=f(w),d!==void 0&&m.hasValue){var O=m.value;if(d(O,w))return x=O}return x=w}if(O=x,r(b,w))return O;var E=f(w);return d!==void 0&&d(O,E)?(b=w,O):(b=w,x=E)}var v=!1,b,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,f,d]);var p=n(l,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=p},[p]),s(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),_p}var w2;function T8(){return w2||(w2=1,process.env.NODE_ENV==="production"?nc.exports=C8():nc.exports=k8()),nc.exports}T8();function M8(e){e()}function j8(){let e=null,t=null;return{clear(){e=null,t=null},notify(){M8(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var _2={notify(){},get:()=>[]};function D8(e,t){let r,n=_2,i=0,a=!1;function o(p){u();const g=n.subscribe(p);let v=!1;return()=>{v||(v=!0,g(),f())}}function s(){n.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return a}function u(){i++,r||(r=e.subscribe(l),n=j8())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=_2)}function d(){a||(a=!0,u())}function h(){a&&(a=!1,f())}const m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return m}var N8=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I8=N8(),$8=()=>typeof navigator<"u"&&navigator.product==="ReactNative",R8=$8(),L8=()=>I8||R8?A.useLayoutEffect:A.useEffect,F8=L8(),B8=Symbol.for("react-redux-context"),z8=typeof globalThis<"u"?globalThis:{};function W8(){if(!A.createContext)return{};const e=z8[B8]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(A.createContext,t)),t}var V8=W8();function H8(e){const{children:t,context:r,serverState:n,store:i}=e,a=A.useMemo(()=>{const l=D8(i),c={store:i,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:u})}},[i,n]),o=A.useMemo(()=>i.getState(),[i]);F8(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,o]);const s=r||V8;return A.createElement(s.Provider,{value:a},t)}var U8=H8,K8=(e,t)=>t,Sp=N([K8,ue,b1,ct,vw,Qr,Q$,st],iR),Op=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},S2=ar("mouseClick"),O2=Da();O2.startListening({actionCreator:S2,effect:(e,t)=>{var r=e.payload,n=Sp(t.getState(),Op(r));n?.activeIndex!=null&&t.dispatch(s$({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Ap=ar("mouseMove"),A2=Da();A2.startListening({actionCreator:Ap,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=xh(n,n.tooltip.settings.shared),a=Sp(n,Op(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(sw({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(ow()))}});var E2={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},P2=qt({name:"rootProps",initialState:E2,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:E2.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),q8=P2.reducer,{updateOptions:Y8}=P2.actions,C2=qt({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:G8}=C2.actions,X8=C2.reducer,k2=ar("keyDown"),T2=ar("focus"),Ep=Da();Ep.startListening({actionCreator:k2,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(Sh(i,Xi(r))),s=Qr(r);if(a==="Enter"){var l=Wl(r,"axis","hover",String(i.index));t.dispatch(_h({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:l}));return}var c=J4(r),u=c==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,d=o+f*u;if(!(s==null||d>=s.length||d<0)){var h=Wl(r,"axis","hover",String(d));t.dispatch(_h({active:!0,activeIndex:d.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}}),Ep.startListening({actionCreator:T2,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=Wl(r,"axis","hover",String(a));t.dispatch(_h({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var ur=ar("externalEvent"),M2=Da();M2.startListening({actionCreator:ur,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:V$(r),activeDataKey:ww(r),activeIndex:wn(r),activeLabel:xw(r),activeTooltipIndex:wn(r),isTooltipActive:H$(r)};e.payload.handler(n,e.payload.reactEvent)}}});var Z8=N([Gi],e=>e.tooltipItemPayloads),J8=N([Z8,so,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(s=>s.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),j2=ar("touchMove"),D2=Da();D2.startListening({actionCreator:j2,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=xh(n,n.tooltip.settings.shared);if(i==="axis"){var a=Sp(n,Op({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(sw({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=r.touches[0],l=document.elementFromPoint(s.clientX,s.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(U0),u=(o=l.getAttribute(K0))!==null&&o!==void 0?o:void 0,f=J8(t.getState(),c,u);t.dispatch(aw({activeDataKey:u,activeIndex:c,activeCoordinate:f}))}}});var Q8=Yy({brush:RB,cartesianAxis:v6,chartData:xR,errorBars:$6,graphicalItems:$F,layout:hj,legend:tD,options:mR,polarAxis:QL,polarOptions:X8,referenceElements:HB,rootProps:q8,tooltip:l$}),ez=function(t){return LM({reducer:Q8,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([O2.middleware,A2.middleware,Ep.middleware,M2.middleware,D2.middleware]),devTools:dn.devToolsEnabled})};function N2(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Nt(),a=k.useRef(null);if(i)return r;a.current==null&&(a.current=ez(t));var o=yf;return A.createElement(U8,{context:o,store:a.current},r)}function I2(e){var{layout:t,width:r,height:n,margin:i}=e,a=Ze(),o=Nt();return k.useEffect(()=>{o||(a(uj(t)),a(fj({width:r,height:n})),a(cj(i)))},[a,o,t,r,n,i]),null}function $2(e){var t=Ze();return k.useEffect(()=>{t(Y8(e))},[t,e]),null}var tz=["children"];function rz(e,t){if(e==null)return{};var r,n,i=nz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(null,arguments)}var iz={width:"100%",height:"100%"},az=k.forwardRef((e,t)=>{var r=G0(),n=X0(),i=nb();if(!Ii(r)||!Ii(n))return null;var{children:a,otherAttributes:o,title:s,desc:l}=e,c,u;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?u=o.role:u=i?"application":void 0,A.createElement(mv,ic({},o,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:iz,ref:t}),a)}),oz=e=>{var{children:t}=e,r=G(tl);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return A.createElement(mv,{width:n,height:i,x:o,y:a},t)},R2=k.forwardRef((e,t)=>{var{children:r}=e,n=rz(e,tz),i=Nt();return i?A.createElement(oz,null,r):A.createElement(az,ic({ref:t},n),r)});function sz(){var e=Ze(),[t,r]=k.useState(null),n=G(Wj);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;Yt(a)&&a!==n&&e(dj(a))}},[t,e,n]),r}function L2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L2(Object(r),!0).forEach(function(n){cz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cz(e,t,r){return(t=uz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uz(e){var t=fz(e,"string");return typeof t=="symbol"?t:t+""}function fz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dz=k.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:m,onTouchStart:p,style:g,width:v}=e,b=Ze(),[x,S]=k.useState(null),[w,O]=k.useState(null);kR();var E=sz(),C=k.useCallback(V=>{E(V),typeof t=="function"&&t(V),S(V),O(V)},[E,t,S,O]),M=k.useCallback(V=>{b(S2(V)),b(ur({handler:a,reactEvent:V}))},[b,a]),$=k.useCallback(V=>{b(Ap(V)),b(ur({handler:c,reactEvent:V}))},[b,c]),j=k.useCallback(V=>{b(ow()),b(ur({handler:u,reactEvent:V}))},[b,u]),_=k.useCallback(V=>{b(Ap(V)),b(ur({handler:f,reactEvent:V}))},[b,f]),I=k.useCallback(()=>{b(T2())},[b]),D=k.useCallback(V=>{b(k2(V.key))},[b]),L=k.useCallback(V=>{b(ur({handler:o,reactEvent:V}))},[b,o]),W=k.useCallback(V=>{b(ur({handler:s,reactEvent:V}))},[b,s]),H=k.useCallback(V=>{b(ur({handler:l,reactEvent:V}))},[b,l]),te=k.useCallback(V=>{b(ur({handler:d,reactEvent:V}))},[b,d]),Q=k.useCallback(V=>{b(ur({handler:p,reactEvent:V}))},[b,p]),F=k.useCallback(V=>{b(j2(V)),b(ur({handler:m,reactEvent:V}))},[b,m]),U=k.useCallback(V=>{b(ur({handler:h,reactEvent:V}))},[b,h]);return A.createElement(Tw.Provider,{value:x},A.createElement(gk.Provider,{value:w},A.createElement("div",{className:de("recharts-wrapper",n),style:lz({position:"relative",cursor:"default",width:v,height:i},g),onClick:M,onContextMenu:L,onDoubleClick:W,onFocus:I,onKeyDown:D,onMouseDown:H,onMouseEnter:$,onMouseLeave:j,onMouseMove:_,onMouseUp:te,onTouchEnd:U,onTouchMove:F,onTouchStart:Q,ref:C},r)))}),hz=["children","className","width","height","style","compact","title","desc"];function pz(e,t){if(e==null)return{};var r,n,i=mz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function mz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var F2=k.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:o,compact:s,title:l,desc:c}=e,u=pz(e,hz),f=Ar(u);return s?A.createElement(R2,{otherAttributes:f,title:l,desc:c},r):A.createElement(dz,{className:n,style:o,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},A.createElement(R2,{otherAttributes:f,title:l,desc:c,ref:t},A.createElement(KB,null,r)))}),gz=["width","height"];function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pp.apply(null,arguments)}function vz(e,t){if(e==null)return{};var r,n,i=yz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var bz={top:5,right:5,bottom:5,left:5},xz={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:bz,reverseStackOrder:!1,syncMethod:"index"},B2=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,xz),{width:a,height:o}=i,s=vz(i,gz);if(!Ii(a)||!Ii(o))return null;var{chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:l,defaultTooltipEventType:c,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,eventEmitter:void 0};return A.createElement(N2,{preloadedState:{options:h},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:l},A.createElement(r2,{chartData:d.data}),A.createElement(I2,{width:a,height:o,layout:i.layout,margin:i.margin}),A.createElement($2,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(F2,Pp({},s,{width:a,height:o,ref:r})))}),wz=["axis"],z2=k.forwardRef((e,t)=>A.createElement(B2,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:wz,tooltipPayloadSearcher:Nh,categoricalChartProps:e,ref:t})),_z=["axis","item"],Sz=k.forwardRef((e,t)=>A.createElement(B2,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:_z,tooltipPayloadSearcher:Nh,categoricalChartProps:e,ref:t}));function Oz(e){var t=Ze();return k.useEffect(()=>{t(G8(e))},[t,e]),null}var Az=["width","height","layout"];function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cp.apply(null,arguments)}function Ez(e,t){if(e==null)return{};var r,n,i=Pz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Pz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Cz={top:5,right:5,bottom:5,left:5},kz={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Cz,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},Tz=k.forwardRef(function(t,r){var n,i=_t(t.categoricalChartProps,kz),{width:a,height:o,layout:s}=i,l=Ez(i,Az);if(!Ii(a)||!Ii(o))return null;var{chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d}=t,h={chartName:c,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,eventEmitter:void 0};return A.createElement(N2,{preloadedState:{options:h},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:c},A.createElement(r2,{chartData:i.data}),A.createElement(I2,{width:a,height:o,layout:s,margin:i.margin}),A.createElement($2,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(Oz,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),A.createElement(F2,Cp({width:a,height:o},l,{ref:r})))}),Mz=["item"],jz={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},ac=k.forwardRef((e,t)=>{var r=_t(e,jz);return A.createElement(Tz,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:Mz,tooltipPayloadSearcher:Nh,categoricalChartProps:r,ref:t})});function Dz({isStatic:e,data:t}){const r=Number(t?.thisMonthMoveIns??t?.lastMonthMoveIns??0),n=Number(t?.thisMonthMoveOuts??t?.lastMonthMoveOuts??0),i=Number(t?.moveInPercentChange??t?.moveInChange??0),a=Number(t?.moveOutPercentChange??t?.moveOutChange??0),o=["#8B5CF6","#EBE4F9"],s=[{name:"Move-ins",value:r,color:o[0]},{name:"Move-outs",value:n,color:o[1]}];function l(c,u){return((Number(c)+Number(u))/2).toFixed(2)+"%"}return y.jsx(Ln,{title:"Community",period:"This Month",icon:y.jsx(uu,{className:"!text-[24px] text-[#329DFF]"}),className:`${e&&"max-h-[184px]"} h-[184px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Move-in/Out Count"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium !text-[#8B5CF6]",children:r+n})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(Jg,{value:l(i,a)}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to last month"})]})]}),y.jsx("div",{className:"w-[50%] h-[111px] flex justify-end",children:y.jsx(ai,{width:"75%",height:"100%",children:y.jsxs(ac,{children:[y.jsxs(ho,{data:s,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:[y.jsx(kr,{fill:o[0]}),y.jsx(kr,{fill:o[1]})]}),y.jsx(ii,{content:y.jsx(Aa,{})})]})})})]})})}function Nz({isStatic:e,data:t}){const r=["#8B5CF6","#22C55E","#3B82F6","#F59E0B"],n=[{name:"Notice",value:Number(t?.total_notices||0),color:r[0]},{name:"Post",value:Number(t?.total_topics||0),color:r[1]},{name:"Poll",value:Number(t?.total_polls||0),color:r[2]},{name:"Survey",value:Number(t?.total_surveys||0),color:r[3]}];return y.jsx(Ln,{title:"Engagement",period:"This Month",icon:y.jsx(Ug,{className:"!text-[24px] text-[#DBB467]"}),className:`${e&&"max-h-[303px]"} h-[303px]`,children:y.jsx("div",{className:"w-full h-[235px]",children:y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(Sz,{data:n,layout:"vertical",margin:{top:4,right:8,left:0,bottom:0},children:[y.jsx(Ql,{stroke:"#e5e7eb",strokeDasharray:"3 3",horizontal:!1}),y.jsx(go,{type:"category",dataKey:"name",width:40,axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#121212",fontWeight:400}}),y.jsx(tc,{type:"number",axisLine:!1,tickLine:!1,tick:{fontSize:10,lineHeight:14,fill:"#64748B",fontWeight:400}}),y.jsx(ii,{content:y.jsx(Aa,{}),cursor:{fill:"transparent"}}),y.jsx(J_,{dataKey:"value",barSize:40,isAnimationActive:!1,children:n.map((i,a)=>y.jsx(kr,{fill:r[a]},i.name))})]})})})})}function Iz(e){if(!e)return 0;const[t,r]=e.split(" ");let[n,i]=t.split(":").map(Number);return r==="PM"&&n!==12&&(n+=12),r==="AM"&&n===12&&(n=0),n*60+i}function $z(e){return Array.from({length:24},(n,i)=>i).map(n=>{const i=e.find(l=>{const c=Iz(l.slot_start_time);return Math.floor(c/60)===n}),a=n>=12?"PM":"AM";return{time:`${n%12||12} ${a}`,bookings:i?.slot_bookings||0,total:i?.total_slots||0,utilization:i?.utilization_rate||0}})}function Rz({isStatic:e,data:t}){const r=Number(t?.totalBookings||0),n=Number(t?.totalSlots||0),i=Number(t?.utilizationRate||0),a=k.useMemo(()=>t?.slots?.length?$z(t.slots):[],[t]),o=u=>["1 AM","6 AM","11 AM","5 PM","10 PM"].includes(u)?u:"",s=a.length>0?Math.max(...a.map(u=>u.total),5):5;function l(u){const f=u>=12?"PM":"AM";let d=u%12;return d===0&&(d=12),`${d} ${f}`}const c=a.length?a:Array.from({length:24},(u,f)=>({time:l(f),bookings:0,total:0,utilization:0}));return y.jsxs(Ln,{title:"Facilities",period:"Today",icon:y.jsx(Hg,{className:"!text-[24px] text-[#8B5CF6]"}),className:`${e&&"max-h-[305px]"} h-[305px] mb-4 break-inside-avoid`,children:[y.jsxs("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px]",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Bookings"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#8B5CF6]",children:r})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Total Slots"}),y.jsx("div",{className:"!text-[24px] font-medium text-[#F59E0B]",children:n})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:"Utilisation Rate"}),y.jsxs("div",{className:"!text-[24px] font-medium text-[#329DFF]",children:[i.toFixed(2),"%"]})]})]}),y.jsx("div",{className:"w-full h-[170px]",children:y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(z2,{data:c,margin:{top:0,right:-30,left:-40,bottom:0},children:[y.jsx(Ql,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(tc,{dataKey:"time",interval:0,tickFormatter:o,tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1,minTickGap:0}),y.jsx(go,{yAxisId:"left",domain:[0,s],tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(go,{yAxisId:"right",orientation:"right",domain:[20,100],ticks:[20,40,60,80,100],tickFormatter:u=>`${u}%`,tick:{fontSize:10,fill:"#64748B"},axisLine:!1,tickLine:!1}),y.jsx(ii,{content:y.jsx(Aa,{})}),y.jsx(ci,{yAxisId:"left",type:"monotone",dataKey:"bookings",name:"Bookings",stroke:"#8B5CF6",strokeWidth:2,dot:!1}),y.jsx(ci,{yAxisId:"left",type:"monotone",dataKey:"total",name:"Total Slots",stroke:"#F59E0B",strokeWidth:2,dot:!1}),y.jsx(ci,{yAxisId:"right",type:"monotone",dataKey:"utilization",name:"Utilization Rate",stroke:"#329DFF",strokeWidth:2,dot:!1,strokeDasharray:"2 4"})]})})})]})}function Lz({data:e}){const t=e?.incomeSummary||{},r=e?.expenditureSummary||{},n=["AED","USD","EUR"],i=["Rs","INR","₹"];function a(s){if(s==null||isNaN(s))return"0";const l=Number(s);return l>=1e9?(l/1e9).toFixed(l%1e9===0?0:2)+"B":l>=1e6?(l/1e6).toFixed(l%1e6===0?0:2)+"M":l>=1e3?(l/1e3).toFixed(l%1e3===0?0:2)+"K":l.toFixed(l%1===0?0:2)}function o(s,l){return l?i.includes(l)?`${l} ${a(s)}`:n.includes(l)?`${a(s)} ${l}`:`${a(s)} ${l}`:a(s)}return y.jsx(Ln,{title:"Income",period:"This Month",icon:y.jsx(Kg,{className:"!text-[24px] text-green-600"}),className:"!gap-[16px] break-inside-avoid h-[232px] overflow-hidden",children:y.jsxs("div",{children:[y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Income"}),y.jsx("div",{children:"Collection"}),y.jsx("div",{children:"Closing"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212] mb-2",children:[y.jsx("div",{children:o(t.opening_balance,t?.currency_type)}),y.jsx("div",{children:o(t.income,t?.currency_type)}),y.jsx("div",{children:o(t.collection,t?.currency_type)}),y.jsx("div",{children:o(t.closing_balance,t?.currency_type)})]}),y.jsx("hr",{className:"my-4 border-t border-dashed border-gray-300"}),y.jsx("div",{className:"flex items-center justify-between",children:y.jsxs("div",{className:"flex items-center gap-[12px]",children:[y.jsx(Kg,{className:"!text-[24px] text-red-600"}),y.jsx("div",{className:"!my-0 !font-medium !text-[16px] !leading-[20px] !text-[#121212]",children:"Expenditure"})]})}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] text-[#64748B] mt-4 mb-2",children:[y.jsx("div",{children:"Opening"}),y.jsx("div",{children:"Expenditure"}),y.jsx("div",{children:"Payment"}),y.jsx("div",{children:"Outstanding"})]}),y.jsxs("div",{className:"grid grid-cols-4 !text-[12px] font-medium text-[#121212]",children:[y.jsx("div",{children:o(r.opening_balance,r?.currency_type)}),y.jsx("div",{children:o(r.expenditure,r?.currency_type)}),y.jsx("div",{children:o(r.payment,r?.currency_type)}),y.jsx("div",{children:o(r.outstanding,r?.currency_type)})]})]})})}function Fz(e){const t=e>=12?"PM":"AM";let r=e%12;return r===0&&(r=12),`${r} ${t}`}function Bz(e){return Array.from({length:24},(t,r)=>{const n=e.find(i=>i.hour===r)||{};return{hour:r,time:Fz(r),walkins:n.walkins??0,checkins:n.preApproved??0,staffAttendance:n.staffAttendance??0}})}const Qi={walkins:"#1FA05B",preApproved:"#E7A015",staffAttendance:"#329DFF"};function zz({type:e,data:t}){if(!e||!t)return null;const r={activeWalkins:[["Currently Inside",t.currently_inside],["Absent Today",t.absent_today],["Total Visited Today",t.total_visited_today],["Total Staff",t.total_staff]],preApprovedCheckins:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today],["No Show",t.no_show],["Total Scheduled",t.total_scheduled]],staffAttendance:[["Currently Inside",t.currently_inside],["Total Visited Today",t.total_visited_today]]};return y.jsx(Ln,{title:e==="activeWalkins"?"Active Walk-ins":e==="preApprovedCheckins"?"Pre-approved Check-ins":"Staff Checked-in",period:"Today",icon:y.jsx(fu,{className:`${e==="activeWalkins"?"text-[#1FA05B]":e==="preApprovedCheckins"?"text-[#E7A015]":"text-[#329DFF]"} !text-[24px]`}),className:"!gap-[0px] !absolute top-[20px] left-0 w-[353px] !z-[10] transition-all duration-200",children:y.jsx("div",{className:"flex flex-col gap-[8px] mt-[12px] pt-[12px] border-t border-dashed border-[#EBEBEB]",children:r[e].map(([n,i])=>y.jsxs("div",{className:"flex justify-between !text-[14px] !text-[#64748B]",children:[y.jsx("div",{children:n}),y.jsx("div",{className:"font-semibold text-gray-800",children:i??0})]},n))})})}function Wz({isStatic:e,data:t}){const[r,n]=k.useState(null),i=t?.summary?.activeWalkins||{},a=t?.summary?.preApprovedCheckins||{},o=t?.summary?.staffAttendance||{},s=Bz(t?.chart||[]),l=Math.max(...s.flatMap(f=>[f.walkins,f.checkins,f.staffAttendance])),c=l>0?l:5,u=[0,Math.ceil(c/2),c];return y.jsx(Ln,{title:"Gate Updates",period:"Today",icon:y.jsx(fu,{className:"!text-[24px] text-[#37CC6D]"}),className:`${e?"max-h-[303px]":""} h-[251px] mb-4 break-inside-avoid`,children:y.jsxs("div",{children:[y.jsx("div",{className:"grid grid-cols-3 gap-[24px] mb-[16px] relative",children:[{key:"activeWalkins",data:i,color:Qi.walkins,label:"Active Walk-ins"},{key:"staffAttendance",data:o,color:Qi.staffAttendance,label:"Staff Checked-in"},{key:"preApprovedCheckins",data:a,color:Qi.preApproved,label:"Pre-approved Check-ins"}].map(f=>y.jsxs("div",{className:"flex flex-col gap-[8px] relative",onMouseEnter:()=>n(f.key),onMouseLeave:()=>n(null),children:[y.jsx("div",{className:"text-[10px] text-[#64748B] whitespace-nowrap",children:f.label}),y.jsxs("div",{className:"text-[28px] font-medium flex items-center",style:{color:f.color},children:[f.key==="activeWalkins"?f.data?.visitor_in??0:f.key==="preApprovedCheckins"?f.data?.expected_pass_scanned??0:f.data?.total_in_now??0,y.jsxs("div",{className:"text-[20px] text-[#64748B] ml-1",children:["/",f.key==="activeWalkins"?f.data?.total_pass??0:f.key==="preApprovedCheckins"?f.data?.total_expected_pass??0:f.data?.total_in_today??0]})]}),r===f.key&&y.jsx(zz,{type:f.key,data:f.data})]},f.key))}),y.jsx("div",{className:"w-full h-[105px]",children:y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(z2,{data:s,margin:{top:1,right:0,left:-40,bottom:0},children:[y.jsx(Ql,{strokeDasharray:"3 3",stroke:"#EBEBEB"}),y.jsx(tc,{dataKey:"time",tickFormatter:(f,d)=>d%4===0?f:"",tick:{fontSize:10,fill:"#121212",fontWeight:400},axisLine:!1,tickLine:!1}),y.jsx(go,{tick:{fontSize:10,fill:"#64748B",fontWeight:400},ticks:u,domain:[0,c],allowDecimals:!1,axisLine:!1,tickLine:!1}),y.jsx(ii,{content:y.jsx(Aa,{})}),y.jsx(ci,{type:"monotone",dataKey:"walkins",stroke:Qi.walkins,strokeWidth:2,dot:!1,name:"Active Walk-ins"}),y.jsx(ci,{type:"monotone",dataKey:"checkins",stroke:Qi.preApproved,strokeWidth:2,strokeDasharray:"5 5",dot:!1,name:"Pre-approved"}),y.jsx(ci,{type:"monotone",dataKey:"staffAttendance",stroke:Qi.staffAttendance,strokeWidth:2,dot:!1,name:"Staff Attendance"})]})})})]})})}function Vz({isStatic:e,data:t}){const r=["#1FA05B","#E7A015","#FA7E28","#EF4444","#CBD5E1"],n=[{name:"L1 Level",value:Number(t?.today_L1||0),color:r[0]},{name:"L2 Level",value:Number(t?.today_L2||0),color:r[1]},{name:"L3 Level",value:Number(t?.today_L3||0),color:r[2]},{name:"L4 Level",value:Number(t?.today_L4||0),color:r[3]}];n.reduce((a,o)=>a+o.value,0);const i=n;return y.jsx(Ln,{title:"Helpdesk",period:"Today",icon:y.jsx(JC,{className:"!text-[24px] text-[#FA7E28]"}),className:`${e&&"max-h-[186px]"} h-[186px] mb-4 break-inside-avoid`,children:y.jsxs("div",{className:"flex gap-[12px] h-fit",children:[y.jsxs("div",{className:"w-[50%] flex flex-col gap-[28px]",children:[y.jsxs("div",{className:"flex flex-col gap-[8px]",children:[y.jsx("div",{className:"!m-0 !text-[12px] !leading-[16px] !text-[#64748B]",children:"Un-resolved Complaints"}),y.jsx("div",{className:"!m-0 !text-[28px] !leading-[32px] !font-medium text-[#FA7E28]",children:t?.today_open_complaints??0})]}),y.jsxs("div",{className:"!m-0 !text-[10px] !leading-[14px] !text-[#64748B] flex items-center gap-[4px]",children:[y.jsx(Jg,{value:t?.percent_change}),y.jsx("div",{className:"whitespace-nowrap",children:"Compared to yesterday"})]})]}),y.jsx("div",{className:"w-[50%] h-[110px] flex justify-end",children:y.jsx(ai,{width:"75%",height:"100%",children:y.jsxs(ac,{children:[y.jsx(ho,{data:i,innerRadius:36,outerRadius:52,paddingAngle:2,dataKey:"value",children:i.map((a,o)=>y.jsx(kr,{fill:r[o]||"#CBD5E1"},a.name))}),y.jsx(ii,{content:y.jsx(Aa,{})})]})})})]})})}/*!
200
200
  * @kurkle/color v0.3.4
201
201
  * https://github.com/kurkle/color#readme
202
202
  * (c) 2024 Jukka Kurkela
203
203
  * Released under the MIT License
204
- */function go(e){return e+.5|0}const An=(e,t,r)=>Math.max(Math.min(e,r),t);function vo(e){return An(go(e*2.55),0,255)}function En(e){return An(go(e*255),0,255)}function tn(e){return An(go(e/2.55)/100,0,1)}function z2(e){return An(go(e*100),0,100)}const fr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Pp=[..."0123456789ABCDEF"],Wz=e=>Pp[e&15],Vz=e=>Pp[(e&240)>>4]+Pp[e&15],ac=e=>(e&240)>>4===(e&15),Hz=e=>ac(e.r)&&ac(e.g)&&ac(e.b)&&ac(e.a);function Uz(e){var t=e.length,r;return e[0]==="#"&&(t===4||t===5?r={r:255&fr[e[1]]*17,g:255&fr[e[2]]*17,b:255&fr[e[3]]*17,a:t===5?fr[e[4]]*17:255}:(t===7||t===9)&&(r={r:fr[e[1]]<<4|fr[e[2]],g:fr[e[3]]<<4|fr[e[4]],b:fr[e[5]]<<4|fr[e[6]],a:t===9?fr[e[7]]<<4|fr[e[8]]:255})),r}const Kz=(e,t)=>e<255?t(e):"";function qz(e){var t=Hz(e)?Wz:Vz;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Kz(e.a,t):void 0}const Yz=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function W2(e,t,r){const n=t*Math.min(r,1-r),i=(a,o=(a+e/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function Gz(e,t,r){const n=(i,a=(i+e/60)%6)=>r-r*t*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function Xz(e,t,r){const n=W2(e,1,.5);let i;for(t+r>1&&(i=1/(t+r),t*=i,r*=i),i=0;i<3;i++)n[i]*=1-t-r,n[i]+=t;return n}function Zz(e,t,r,n,i){return e===i?(t-r)/n+(t<r?6:0):t===i?(r-e)/n+2:(e-t)/n+4}function Cp(e){const r=e.r/255,n=e.g/255,i=e.b/255,a=Math.max(r,n,i),o=Math.min(r,n,i),s=(a+o)/2;let l,c,u;return a!==o&&(u=a-o,c=s>.5?u/(2-a-o):u/(a+o),l=Zz(r,n,i,u,a),l=l*60+.5),[l|0,c||0,s]}function kp(e,t,r,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,n)).map(En)}function Tp(e,t,r){return kp(W2,e,t,r)}function Jz(e,t,r){return kp(Xz,e,t,r)}function Qz(e,t,r){return kp(Gz,e,t,r)}function V2(e){return(e%360+360)%360}function e7(e){const t=Yz.exec(e);let r=255,n;if(!t)return;t[5]!==n&&(r=t[6]?vo(+t[5]):En(+t[5]));const i=V2(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?n=Jz(i,a,o):t[1]==="hsv"?n=Qz(i,a,o):n=Tp(i,a,o),{r:n[0],g:n[1],b:n[2],a:r}}function t7(e,t){var r=Cp(e);r[0]=V2(r[0]+t),r=Tp(r),e.r=r[0],e.g=r[1],e.b=r[2]}function r7(e){if(!e)return;const t=Cp(e),r=t[0],n=z2(t[1]),i=z2(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${i}%, ${tn(e.a)})`:`hsl(${r}, ${n}%, ${i}%)`}const H2={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},U2={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function n7(){const e={},t=Object.keys(U2),r=Object.keys(H2);let n,i,a,o,s;for(n=0;n<t.length;n++){for(o=s=t[n],i=0;i<r.length;i++)a=r[i],s=s.replace(a,H2[a]);a=parseInt(U2[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let oc;function i7(e){oc||(oc=n7(),oc.transparent=[0,0,0,0]);const t=oc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const a7=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function o7(e){const t=a7.exec(e);let r=255,n,i,a;if(t){if(t[7]!==n){const o=+t[7];r=t[8]?vo(o):An(o*255,0,255)}return n=+t[1],i=+t[3],a=+t[5],n=255&(t[2]?vo(n):An(n,0,255)),i=255&(t[4]?vo(i):An(i,0,255)),a=255&(t[6]?vo(a):An(a,0,255)),{r:n,g:i,b:a,a:r}}}function s7(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${tn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Mp=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Qi=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function l7(e,t,r){const n=Qi(tn(e.r)),i=Qi(tn(e.g)),a=Qi(tn(e.b));return{r:En(Mp(n+r*(Qi(tn(t.r))-n))),g:En(Mp(i+r*(Qi(tn(t.g))-i))),b:En(Mp(a+r*(Qi(tn(t.b))-a))),a:e.a+r*(t.a-e.a)}}function sc(e,t,r){if(e){let n=Cp(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,t===0?360:1)),n=Tp(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function K2(e,t){return e&&Object.assign(t||{},e)}function q2(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=En(e[3]))):(t=K2(e,{r:0,g:0,b:0,a:1}),t.a=En(t.a)),t}function c7(e){return e.charAt(0)==="r"?o7(e):e7(e)}class yo{constructor(t){if(t instanceof yo)return t;const r=typeof t;let n;r==="object"?n=q2(t):r==="string"&&(n=Uz(t)||i7(t)||c7(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=K2(this._rgb);return t&&(t.a=tn(t.a)),t}set rgb(t){this._rgb=q2(t)}rgbString(){return this._valid?s7(this._rgb):void 0}hexString(){return this._valid?qz(this._rgb):void 0}hslString(){return this._valid?r7(this._rgb):void 0}mix(t,r){if(t){const n=this.rgb,i=t.rgb;let a;const o=r===a?.5:r,s=2*o-1,l=n.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-c,n.r=255&c*n.r+a*i.r+.5,n.g=255&c*n.g+a*i.g+.5,n.b=255&c*n.b+a*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,r){return t&&(this._rgb=l7(this._rgb,t._rgb,r)),this}clone(){return new yo(this.rgb)}alpha(t){return this._rgb.a=En(t),this}clearer(t){const r=this._rgb;return r.a*=1-t,this}greyscale(){const t=this._rgb,r=go(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=r,this}opaquer(t){const r=this._rgb;return r.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return sc(this._rgb,2,t),this}darken(t){return sc(this._rgb,2,-t),this}saturate(t){return sc(this._rgb,1,t),this}desaturate(t){return sc(this._rgb,1,-t),this}rotate(t){return t7(this._rgb,t),this}}/*!
204
+ */function vo(e){return e+.5|0}const An=(e,t,r)=>Math.max(Math.min(e,r),t);function yo(e){return An(vo(e*2.55),0,255)}function En(e){return An(vo(e*255),0,255)}function tn(e){return An(vo(e/2.55)/100,0,1)}function W2(e){return An(vo(e*100),0,100)}const fr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},kp=[..."0123456789ABCDEF"],Hz=e=>kp[e&15],Uz=e=>kp[(e&240)>>4]+kp[e&15],oc=e=>(e&240)>>4===(e&15),Kz=e=>oc(e.r)&&oc(e.g)&&oc(e.b)&&oc(e.a);function qz(e){var t=e.length,r;return e[0]==="#"&&(t===4||t===5?r={r:255&fr[e[1]]*17,g:255&fr[e[2]]*17,b:255&fr[e[3]]*17,a:t===5?fr[e[4]]*17:255}:(t===7||t===9)&&(r={r:fr[e[1]]<<4|fr[e[2]],g:fr[e[3]]<<4|fr[e[4]],b:fr[e[5]]<<4|fr[e[6]],a:t===9?fr[e[7]]<<4|fr[e[8]]:255})),r}const Yz=(e,t)=>e<255?t(e):"";function Gz(e){var t=Kz(e)?Hz:Uz;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Yz(e.a,t):void 0}const Xz=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function V2(e,t,r){const n=t*Math.min(r,1-r),i=(a,o=(a+e/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function Zz(e,t,r){const n=(i,a=(i+e/60)%6)=>r-r*t*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function Jz(e,t,r){const n=V2(e,1,.5);let i;for(t+r>1&&(i=1/(t+r),t*=i,r*=i),i=0;i<3;i++)n[i]*=1-t-r,n[i]+=t;return n}function Qz(e,t,r,n,i){return e===i?(t-r)/n+(t<r?6:0):t===i?(r-e)/n+2:(e-t)/n+4}function Tp(e){const r=e.r/255,n=e.g/255,i=e.b/255,a=Math.max(r,n,i),o=Math.min(r,n,i),s=(a+o)/2;let l,c,u;return a!==o&&(u=a-o,c=s>.5?u/(2-a-o):u/(a+o),l=Qz(r,n,i,u,a),l=l*60+.5),[l|0,c||0,s]}function Mp(e,t,r,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,n)).map(En)}function jp(e,t,r){return Mp(V2,e,t,r)}function e7(e,t,r){return Mp(Jz,e,t,r)}function t7(e,t,r){return Mp(Zz,e,t,r)}function H2(e){return(e%360+360)%360}function r7(e){const t=Xz.exec(e);let r=255,n;if(!t)return;t[5]!==n&&(r=t[6]?yo(+t[5]):En(+t[5]));const i=H2(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?n=e7(i,a,o):t[1]==="hsv"?n=t7(i,a,o):n=jp(i,a,o),{r:n[0],g:n[1],b:n[2],a:r}}function n7(e,t){var r=Tp(e);r[0]=H2(r[0]+t),r=jp(r),e.r=r[0],e.g=r[1],e.b=r[2]}function i7(e){if(!e)return;const t=Tp(e),r=t[0],n=W2(t[1]),i=W2(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${i}%, ${tn(e.a)})`:`hsl(${r}, ${n}%, ${i}%)`}const U2={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},K2={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function a7(){const e={},t=Object.keys(K2),r=Object.keys(U2);let n,i,a,o,s;for(n=0;n<t.length;n++){for(o=s=t[n],i=0;i<r.length;i++)a=r[i],s=s.replace(a,U2[a]);a=parseInt(K2[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}let sc;function o7(e){sc||(sc=a7(),sc.transparent=[0,0,0,0]);const t=sc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const s7=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function l7(e){const t=s7.exec(e);let r=255,n,i,a;if(t){if(t[7]!==n){const o=+t[7];r=t[8]?yo(o):An(o*255,0,255)}return n=+t[1],i=+t[3],a=+t[5],n=255&(t[2]?yo(n):An(n,0,255)),i=255&(t[4]?yo(i):An(i,0,255)),a=255&(t[6]?yo(a):An(a,0,255)),{r:n,g:i,b:a,a:r}}}function c7(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${tn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Dp=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ea=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function u7(e,t,r){const n=ea(tn(e.r)),i=ea(tn(e.g)),a=ea(tn(e.b));return{r:En(Dp(n+r*(ea(tn(t.r))-n))),g:En(Dp(i+r*(ea(tn(t.g))-i))),b:En(Dp(a+r*(ea(tn(t.b))-a))),a:e.a+r*(t.a-e.a)}}function lc(e,t,r){if(e){let n=Tp(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,t===0?360:1)),n=jp(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function q2(e,t){return e&&Object.assign(t||{},e)}function Y2(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=En(e[3]))):(t=q2(e,{r:0,g:0,b:0,a:1}),t.a=En(t.a)),t}function f7(e){return e.charAt(0)==="r"?l7(e):r7(e)}class bo{constructor(t){if(t instanceof bo)return t;const r=typeof t;let n;r==="object"?n=Y2(t):r==="string"&&(n=qz(t)||o7(t)||f7(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=q2(this._rgb);return t&&(t.a=tn(t.a)),t}set rgb(t){this._rgb=Y2(t)}rgbString(){return this._valid?c7(this._rgb):void 0}hexString(){return this._valid?Gz(this._rgb):void 0}hslString(){return this._valid?i7(this._rgb):void 0}mix(t,r){if(t){const n=this.rgb,i=t.rgb;let a;const o=r===a?.5:r,s=2*o-1,l=n.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-c,n.r=255&c*n.r+a*i.r+.5,n.g=255&c*n.g+a*i.g+.5,n.b=255&c*n.b+a*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,r){return t&&(this._rgb=u7(this._rgb,t._rgb,r)),this}clone(){return new bo(this.rgb)}alpha(t){return this._rgb.a=En(t),this}clearer(t){const r=this._rgb;return r.a*=1-t,this}greyscale(){const t=this._rgb,r=vo(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=r,this}opaquer(t){const r=this._rgb;return r.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return lc(this._rgb,2,t),this}darken(t){return lc(this._rgb,2,-t),this}saturate(t){return lc(this._rgb,1,t),this}desaturate(t){return lc(this._rgb,1,-t),this}rotate(t){return n7(this._rgb,t),this}}/*!
205
205
  * Chart.js v4.5.0
206
206
  * https://www.chartjs.org
207
207
  * (c) 2025 Chart.js Contributors
208
208
  * Released under the MIT License
209
- */function rn(){}const u7=(()=>{let e=0;return()=>e++})();function _e(e){return e==null}function yt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function he(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function dr(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Tr(e,t){return dr(e)?e:t}function se(e,t){return typeof e>"u"?t:e}const f7=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,Y2=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Fe(e,t,r){if(e&&typeof e.call=="function")return e.apply(r,t)}function Pe(e,t,r,n){let i,a,o;if(yt(e))for(a=e.length,i=0;i<a;i++)t.call(r,e[i],i);else if(he(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(r,e[o[i]],o[i])}function lc(e,t){let r,n,i,a;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(i=e[r],a=t[r],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function cc(e){if(yt(e))return e.map(cc);if(he(e)){const t=Object.create(null),r=Object.keys(e),n=r.length;let i=0;for(;i<n;++i)t[r[i]]=cc(e[r[i]]);return t}return e}function G2(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function d7(e,t,r,n){if(!G2(e))return;const i=t[e],a=r[e];he(i)&&he(a)?bo(i,a,n):t[e]=cc(a)}function bo(e,t,r){const n=yt(t)?t:[t],i=n.length;if(!he(e))return e;r=r||{};const a=r.merger||d7;let o;for(let s=0;s<i;++s){if(o=n[s],!he(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)a(l[c],e,o,r)}return e}function xo(e,t){return bo(e,t,{merger:h7})}function h7(e,t,r){if(!G2(e))return;const n=t[e],i=r[e];he(n)&&he(i)?xo(n,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=cc(i))}const X2={"":e=>e,x:e=>e.x,y:e=>e.y};function p7(e){const t=e.split("."),r=[];let n="";for(const i of t)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function m7(e){const t=p7(e);return r=>{for(const n of t){if(n==="")break;r=r&&r[n]}return r}}function ci(e,t){return(X2[t]||(X2[t]=m7(t)))(e)}function jp(e){return e.charAt(0).toUpperCase()+e.slice(1)}const wo=e=>typeof e<"u",Pn=e=>typeof e=="function",Z2=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0};function g7(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const je=Math.PI,Ge=2*je,v7=Ge+je,uc=Number.POSITIVE_INFINITY,y7=je/180,ft=je/2,ui=je/4,J2=je*2/3,Q2=Math.log10,Mr=Math.sign;function _o(e,t,r){return Math.abs(e-t)<r}function eS(e){const t=Math.round(e);e=_o(e,t,e/1e3)?t:e;const r=Math.pow(10,Math.floor(Q2(e))),n=e/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function b7(e){const t=[],r=Math.sqrt(e);let n;for(n=1;n<r;n++)e%n===0&&(t.push(n),t.push(e/n));return r===(r|0)&&t.push(r),t.sort((i,a)=>i-a).pop(),t}function x7(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function So(e){return!x7(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function w7(e,t){const r=Math.round(e);return r-t<=e&&r+t>=e}function _7(e,t,r){let n,i,a;for(n=0,i=e.length;n<i;n++)a=e[n][r],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function nn(e){return e*(je/180)}function S7(e){return e*(180/je)}function tS(e){if(!dr(e))return;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r++;return r}function rS(e,t){const r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n);let a=Math.atan2(n,r);return a<-.5*je&&(a+=Ge),{angle:a,distance:i}}function Dp(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function O7(e,t){return(e-t+v7)%Ge-je}function gr(e){return(e%Ge+Ge)%Ge}function Oo(e,t,r,n){const i=gr(e),a=gr(t),o=gr(r),s=gr(a-i),l=gr(o-i),c=gr(i-a),u=gr(i-o);return i===a||i===o||n&&a===o||s>l&&c<u}function Ct(e,t,r){return Math.max(t,Math.min(r,e))}function A7(e){return Ct(e,-32768,32767)}function Cn(e,t,r,n=1e-6){return e>=Math.min(t,r)-n&&e<=Math.max(t,r)+n}function Np(e,t,r){r=r||(o=>e[o]<t);let n=e.length-1,i=0,a;for(;n-i>1;)a=i+n>>1,r(a)?i=a:n=a;return{lo:i,hi:n}}const fi=(e,t,r,n)=>Np(e,r,n?i=>{const a=e[i][t];return a<r||a===r&&e[i+1][t]===r}:i=>e[i][t]<r),E7=(e,t,r)=>Np(e,r,n=>e[n][t]>=r);function P7(e,t,r){let n=0,i=e.length;for(;n<i&&e[n]<t;)n++;for(;i>n&&e[i-1]>r;)i--;return n>0||i<e.length?e.slice(n,i):e}const nS=["push","pop","shift","splice","unshift"];function C7(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),nS.forEach(r=>{const n="_onData"+jp(r),i=e[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[n]=="function"&&s[n](...a)}),o}})})}function iS(e,t){const r=e._chartjs;if(!r)return;const n=r.listeners,i=n.indexOf(t);i!==-1&&n.splice(i,1),!(n.length>0)&&(nS.forEach(a=>{delete e[a]}),delete e._chartjs)}function aS(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const oS=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function sS(e,t){let r=[],n=!1;return function(...i){r=i,n||(n=!0,oS.call(window,()=>{n=!1,e.apply(t,r)}))}}function k7(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}const lS=e=>e==="start"?"left":e==="end"?"right":"center",er=(e,t,r)=>e==="start"?t:e==="end"?r:(t+r)/2,T7=(e,t,r,n)=>e===(n?"left":"right")?r:e==="center"?(t+r)/2:t;function M7(e,t,r){const n=t.length;let i=0,a=n;if(e._sorted){const{iScale:o,vScale:s,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:f,max:d,minDefined:h,maxDefined:m}=o.getUserBounds();if(h){if(i=Math.min(fi(l,u,f).lo,r?n:fi(t,u,o.getPixelForValue(f)).lo),c){const p=l.slice(0,i+1).reverse().findIndex(g=>!_e(g[s.axis]));i-=Math.max(0,p)}i=Ct(i,0,n-1)}if(m){let p=Math.max(fi(l,o.axis,d,!0).hi+1,r?0:fi(t,u,o.getPixelForValue(d),!0).hi+1);if(c){const g=l.slice(p-1).findIndex(v=>!_e(v[s.axis]));p+=Math.max(0,g)}a=Ct(p,i,n)-i}else a=n-i}return{start:i,count:a}}function j7(e){const{xScale:t,yScale:r,_scaleRanges:n}=e,i={xmin:t.min,xmax:t.max,ymin:r.min,ymax:r.max};if(!n)return e._scaleRanges=i,!0;const a=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),a}const fc=e=>e===0||e===1,cS=(e,t,r)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ge/r)),uS=(e,t,r)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ge/r)+1,Ao={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ft)+1,easeOutSine:e=>Math.sin(e*ft),easeInOutSine:e=>-.5*(Math.cos(je*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>fc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>fc(e)?e:cS(e,.075,.3),easeOutElastic:e=>fc(e)?e:uS(e,.075,.3),easeInOutElastic(e){return fc(e)?e:e<.5?.5*cS(e*2,.1125,.45):.5+.5*uS(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ao.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ao.easeInBounce(e*2)*.5:Ao.easeOutBounce(e*2-1)*.5+.5};function Ip(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function fS(e){return Ip(e)?e:new yo(e)}function $p(e){return Ip(e)?e:new yo(e).saturate(.5).darken(.1).hexString()}const D7=["x","y","borderWidth","radius","tension"],N7=["color","borderColor","backgroundColor"];function I7(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:N7},numbers:{type:"number",properties:D7}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function $7(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const dS=new Map;function R7(e,t){t=t||{};const r=e+JSON.stringify(t);let n=dS.get(r);return n||(n=new Intl.NumberFormat(e,t),dS.set(r,n)),n}function Rp(e,t,r){return R7(t,r).format(e)}const L7={values(e){return yt(e)?e:""+e},numeric(e,t,r){if(e===0)return"0";const n=this.chart.options.locale;let i,a=e;if(r.length>1){const c=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),a=F7(e,r)}const o=Q2(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Rp(e,n,l)}};function F7(e,t){let r=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(r)>=1&&e!==Math.floor(e)&&(r=e-Math.floor(e)),r}var hS={formatters:L7};function B7(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,r)=>r.lineWidth,tickColor:(t,r)=>r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:hS.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const di=Object.create(null),Lp=Object.create(null);function Eo(e,t){if(!t)return e;const r=t.split(".");for(let n=0,i=r.length;n<i;++n){const a=r[n];e=e[a]||(e[a]=Object.create(null))}return e}function Fp(e,t,r){return typeof t=="string"?bo(Eo(e,t),r):bo(Eo(e,""),t)}class z7{constructor(t,r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,i)=>$p(i.backgroundColor),this.hoverBorderColor=(n,i)=>$p(i.borderColor),this.hoverColor=(n,i)=>$p(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(r)}set(t,r){return Fp(this,t,r)}get(t){return Eo(this,t)}describe(t,r){return Fp(Lp,t,r)}override(t,r){return Fp(di,t,r)}route(t,r,n,i){const a=Eo(this,t),o=Eo(this,n),s="_"+r;Object.defineProperties(a,{[s]:{value:a[r],writable:!0},[r]:{enumerable:!0,get(){const l=this[s],c=o[i];return he(l)?Object.assign({},c,l):se(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(r=>r(this))}}var et=new z7({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[I7,$7,B7]);function W7(e){return!e||_e(e.size)||_e(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function pS(e,t,r,n,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,r.push(i)),a>n&&(n=a),n}function hi(e,t,r){const n=e.currentDevicePixelRatio,i=r!==0?Math.max(r/2,.5):0;return Math.round((t-i)*n)/n+i}function mS(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Bp(e,t,r,n){gS(e,t,r,n,null)}function gS(e,t,r,n,i){let a,o,s,l,c,u,f,d;const h=t.pointStyle,m=t.rotation,p=t.radius;let g=(m||0)*y7;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(r,n),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(p)||p<=0)){switch(e.beginPath(),h){default:i?e.ellipse(r,n,i/2,p,0,0,Ge):e.arc(r,n,p,0,Ge),e.closePath();break;case"triangle":u=i?i/2:p,e.moveTo(r+Math.sin(g)*u,n-Math.cos(g)*p),g+=J2,e.lineTo(r+Math.sin(g)*u,n-Math.cos(g)*p),g+=J2,e.lineTo(r+Math.sin(g)*u,n-Math.cos(g)*p),e.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(g+ui)*l,f=Math.cos(g+ui)*(i?i/2-c:l),s=Math.sin(g+ui)*l,d=Math.sin(g+ui)*(i?i/2-c:l),e.arc(r-f,n-s,c,g-je,g-ft),e.arc(r+d,n-o,c,g-ft,g),e.arc(r+f,n+s,c,g,g+ft),e.arc(r-d,n+o,c,g+ft,g+je),e.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,u=i?i/2:l,e.rect(r-u,n-l,2*u,2*l);break}g+=ui;case"rectRot":f=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,d=Math.sin(g)*(i?i/2:p),e.moveTo(r-f,n-s),e.lineTo(r+d,n-o),e.lineTo(r+f,n+s),e.lineTo(r-d,n+o),e.closePath();break;case"crossRot":g+=ui;case"cross":f=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,d=Math.sin(g)*(i?i/2:p),e.moveTo(r-f,n-s),e.lineTo(r+f,n+s),e.moveTo(r+d,n-o),e.lineTo(r-d,n+o);break;case"star":f=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,d=Math.sin(g)*(i?i/2:p),e.moveTo(r-f,n-s),e.lineTo(r+f,n+s),e.moveTo(r+d,n-o),e.lineTo(r-d,n+o),g+=ui,f=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,d=Math.sin(g)*(i?i/2:p),e.moveTo(r-f,n-s),e.lineTo(r+f,n+s),e.moveTo(r+d,n-o),e.lineTo(r-d,n+o);break;case"line":o=i?i/2:Math.cos(g)*p,s=Math.sin(g)*p,e.moveTo(r-o,n-s),e.lineTo(r+o,n+s);break;case"dash":e.moveTo(r,n),e.lineTo(r+Math.cos(g)*(i?i/2:p),n+Math.sin(g)*p);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Po(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r}function zp(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Wp(e){e.restore()}function V7(e,t,r,n,i){if(!t)return e.lineTo(r.x,r.y);if(i==="middle"){const a=(t.x+r.x)/2;e.lineTo(a,t.y),e.lineTo(a,r.y)}else i==="after"!=!!n?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}function H7(e,t,r,n){if(!t)return e.lineTo(r.x,r.y);e.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function U7(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),_e(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function K7(e,t,r,n,i){if(i.strikethrough||i.underline){const a=e.measureText(n),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=r-a.actualBoundingBoxAscent,c=r+a.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function q7(e,t){const r=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=r}function dc(e,t,r,n,i,a={}){const o=yt(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,U7(e,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&q7(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),_e(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(c,r,n,a.maxWidth)),e.fillText(c,r,n,a.maxWidth),K7(e,r,n,c,a),n+=Number(i.lineHeight);e.restore()}function hc(e,t){const{x:r,y:n,w:i,h:a,radius:o}=t;e.arc(r+o.topLeft,n+o.topLeft,o.topLeft,1.5*je,je,!0),e.lineTo(r,n+a-o.bottomLeft),e.arc(r+o.bottomLeft,n+a-o.bottomLeft,o.bottomLeft,je,ft,!0),e.lineTo(r+i-o.bottomRight,n+a),e.arc(r+i-o.bottomRight,n+a-o.bottomRight,o.bottomRight,ft,0,!0),e.lineTo(r+i,n+o.topRight),e.arc(r+i-o.topRight,n+o.topRight,o.topRight,0,-ft,!0),e.lineTo(r+o.topLeft,n)}const Y7=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,G7=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function X7(e,t){const r=(""+e).match(Y7);if(!r||r[1]==="normal")return t*1.2;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100;break}return t*e}const Z7=e=>+e||0;function Vp(e,t){const r={},n=he(t),i=n?Object.keys(t):t,a=he(e)?n?o=>se(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)r[o]=Z7(a(o));return r}function vS(e){return Vp(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ea(e){return Vp(e,["topLeft","topRight","bottomLeft","bottomRight"])}function vr(e){const t=vS(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Rt(e,t){e=e||{},t=t||et.font;let r=se(e.size,t.size);typeof r=="string"&&(r=parseInt(r,10));let n=se(e.style,t.style);n&&!(""+n).match(G7)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const i={family:se(e.family,t.family),lineHeight:X7(se(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:se(e.weight,t.weight),string:""};return i.string=W7(i),i}function pc(e,t,r,n){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function J7(e,t,r){const{min:n,max:i}=e,a=Y2(t,(i-n)/2),o=(s,l)=>r&&s===0?0:s+l;return{min:o(n,-Math.abs(a)),max:o(i,a)}}function pi(e,t){return Object.assign(Object.create(e),t)}function Hp(e,t=[""],r,n,i=()=>e[0]){const a=r||e;typeof n>"u"&&(n=_S("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:n,_getTarget:i,override:s=>Hp([s,...e],t,a,n)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return bS(s,l,()=>oW(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return SS(s).includes(l)},ownKeys(s){return SS(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function ta(e,t,r,n){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:r,_stack:new Set,_descriptors:yS(e,n),setContext:a=>ta(e,a,r,n),override:a=>ta(e.override(a),t,r,n)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return bS(a,o,()=>eW(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function yS(e,t={scriptable:!0,indexable:!0}){const{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:r,indexable:n,isScriptable:Pn(r)?r:()=>r,isIndexable:Pn(n)?n:()=>n}}const Q7=(e,t)=>e?e+jp(t):t,Up=(e,t)=>he(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function bS(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const n=r();return e[t]=n,n}function eW(e,t,r){const{_proxy:n,_context:i,_subProxy:a,_descriptors:o}=e;let s=n[t];return Pn(s)&&o.isScriptable(t)&&(s=tW(t,s,e,r)),yt(s)&&s.length&&(s=rW(t,s,e,o.isIndexable)),Up(t,s)&&(s=ta(s,i,a&&a[t],o)),s}function tW(e,t,r,n){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=r;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||n);return s.delete(e),Up(e,l)&&(l=Kp(i._scopes,i,e,l)),l}function rW(e,t,r,n){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=r;if(typeof a.index<"u"&&n(e))return t[a.index%t.length];if(he(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const f=Kp(c,i,e,u);t.push(ta(f,a,o&&o[e],s))}}return t}function xS(e,t,r){return Pn(e)?e(t,r):e}const nW=(e,t)=>e===!0?t:typeof e=="string"?ci(t,e):void 0;function iW(e,t,r,n,i){for(const a of t){const o=nW(r,a);if(o){e.add(o);const s=xS(o._fallback,r,i);if(typeof s<"u"&&s!==r&&s!==n)return s}else if(o===!1&&typeof n<"u"&&r!==n)return null}return!1}function Kp(e,t,r,n){const i=t._rootScopes,a=xS(t._fallback,r,n),o=[...e,...i],s=new Set;s.add(n);let l=wS(s,o,r,a||r,n);return l===null||typeof a<"u"&&a!==r&&(l=wS(s,o,a,l,n),l===null)?!1:Hp(Array.from(s),[""],i,a,()=>aW(t,r,n))}function wS(e,t,r,n,i){for(;r;)r=iW(e,t,r,n,i);return r}function aW(e,t,r){const n=e._getTarget();t in n||(n[t]={});const i=n[t];return yt(i)&&he(r)?r:i||{}}function oW(e,t,r,n){let i;for(const a of t)if(i=_S(Q7(a,e),r),typeof i<"u")return Up(e,i)?Kp(r,n,e,i):i}function _S(e,t){for(const r of t){if(!r)continue;const n=r[e];if(typeof n<"u")return n}}function SS(e){let t=e._keys;return t||(t=e._keys=sW(e._scopes)),t}function sW(e){const t=new Set;for(const r of e)for(const n of Object.keys(r).filter(i=>!i.startsWith("_")))t.add(n);return Array.from(t)}const lW=Number.EPSILON||1e-14,ra=(e,t)=>t<e.length&&!e[t].skip&&e[t],OS=e=>e==="x"?"y":"x";function cW(e,t,r,n){const i=e.skip?t:e,a=t,o=r.skip?t:r,s=Dp(a,i),l=Dp(o,a);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const f=n*c,d=n*u;return{previous:{x:a.x-f*(o.x-i.x),y:a.y-f*(o.y-i.y)},next:{x:a.x+d*(o.x-i.x),y:a.y+d*(o.y-i.y)}}}function uW(e,t,r){const n=e.length;let i,a,o,s,l,c=ra(e,0);for(let u=0;u<n-1;++u)if(l=c,c=ra(e,u+1),!(!l||!c)){if(_o(t[u],0,lW)){r[u]=r[u+1]=0;continue}i=r[u]/t[u],a=r[u+1]/t[u],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),r[u]=i*o*t[u],r[u+1]=a*o*t[u])}}function fW(e,t,r="x"){const n=OS(r),i=e.length;let a,o,s,l=ra(e,0);for(let c=0;c<i;++c){if(o=s,s=l,l=ra(e,c+1),!s)continue;const u=s[r],f=s[n];o&&(a=(u-o[r])/3,s[`cp1${r}`]=u-a,s[`cp1${n}`]=f-a*t[c]),l&&(a=(l[r]-u)/3,s[`cp2${r}`]=u+a,s[`cp2${n}`]=f+a*t[c])}}function dW(e,t="x"){const r=OS(t),n=e.length,i=Array(n).fill(0),a=Array(n);let o,s,l,c=ra(e,0);for(o=0;o<n;++o)if(s=l,l=c,c=ra(e,o+1),!!l){if(c){const u=c[t]-l[t];i[o]=u!==0?(c[r]-l[r])/u:0}a[o]=s?c?Mr(i[o-1])!==Mr(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}uW(e,i,a),fW(e,a,t)}function mc(e,t,r){return Math.max(Math.min(e,r),t)}function hW(e,t){let r,n,i,a,o,s=Po(e[0],t);for(r=0,n=e.length;r<n;++r)o=a,a=s,s=r<n-1&&Po(e[r+1],t),a&&(i=e[r],o&&(i.cp1x=mc(i.cp1x,t.left,t.right),i.cp1y=mc(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=mc(i.cp2x,t.left,t.right),i.cp2y=mc(i.cp2y,t.top,t.bottom)))}function pW(e,t,r,n,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")dW(e,i);else{let c=n?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=cW(c,s,e[Math.min(a+1,o-(n?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}t.capBezierPoints&&hW(e,r)}function qp(){return typeof window<"u"&&typeof document<"u"}function Yp(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function gc(e,t,r){let n;return typeof e=="string"?(n=parseInt(e,10),e.indexOf("%")!==-1&&(n=n/100*t.parentNode[r])):n=e,n}const vc=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function mW(e,t){return vc(e).getPropertyValue(t)}const gW=["top","right","bottom","left"];function mi(e,t,r){const n={};r=r?"-"+r:"";for(let i=0;i<4;i++){const a=gW[i];n[a]=parseFloat(e[t+"-"+a+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const vW=(e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot);function yW(e,t){const r=e.touches,n=r&&r.length?r[0]:e,{offsetX:i,offsetY:a}=n;let o=!1,s,l;if(vW(i,a,e.target))s=i,l=a;else{const c=t.getBoundingClientRect();s=n.clientX-c.left,l=n.clientY-c.top,o=!0}return{x:s,y:l,box:o}}function gi(e,t){if("native"in e)return e;const{canvas:r,currentDevicePixelRatio:n}=t,i=vc(r),a=i.boxSizing==="border-box",o=mi(i,"padding"),s=mi(i,"border","width"),{x:l,y:c,box:u}=yW(e,r),f=o.left+(u&&s.left),d=o.top+(u&&s.top);let{width:h,height:m}=t;return a&&(h-=o.width+s.width,m-=o.height+s.height),{x:Math.round((l-f)/h*r.width/n),y:Math.round((c-d)/m*r.height/n)}}function bW(e,t,r){let n,i;if(t===void 0||r===void 0){const a=e&&Yp(e);if(!a)t=e.clientWidth,r=e.clientHeight;else{const o=a.getBoundingClientRect(),s=vc(a),l=mi(s,"border","width"),c=mi(s,"padding");t=o.width-c.width-l.width,r=o.height-c.height-l.height,n=gc(s.maxWidth,a,"clientWidth"),i=gc(s.maxHeight,a,"clientHeight")}}return{width:t,height:r,maxWidth:n||uc,maxHeight:i||uc}}const yc=e=>Math.round(e*10)/10;function xW(e,t,r,n){const i=vc(e),a=mi(i,"margin"),o=gc(i.maxWidth,e,"clientWidth")||uc,s=gc(i.maxHeight,e,"clientHeight")||uc,l=bW(e,t,r);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const d=mi(i,"border","width"),h=mi(i,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-a.width),u=Math.max(0,n?c/n:u-a.height),c=yc(Math.min(c,o,l.maxWidth)),u=yc(Math.min(u,s,l.maxHeight)),c&&!u&&(u=yc(c/2)),(t!==void 0||r!==void 0)&&n&&l.height&&u>l.height&&(u=l.height,c=yc(Math.floor(u*n))),{width:c,height:u}}function AS(e,t,r){const n=t||1,i=Math.floor(e.height*n),a=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(r||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=n,o.height=i,o.width=a,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const wW=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};qp()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function ES(e,t){const r=mW(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function vi(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:e.y+r*(t.y-e.y)}}function _W(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:n==="middle"?r<.5?e.y:t.y:n==="after"?r<1?e.y:t.y:r>0?t.y:e.y}}function SW(e,t,r,n){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=vi(e,i,r),s=vi(i,a,r),l=vi(a,t,r),c=vi(o,s,r),u=vi(s,l,r);return vi(c,u,r)}const OW=function(e,t){return{x(r){return e+e+t-r},setWidth(r){t=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},AW=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function na(e,t,r){return e?OW(t,r):AW()}function PS(e,t){let r,n;(t==="ltr"||t==="rtl")&&(r=e.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function CS(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function kS(e){return e==="angle"?{between:Oo,compare:O7,normalize:gr}:{between:Cn,compare:(t,r)=>t-r,normalize:t=>t}}function TS({start:e,end:t,count:r,loop:n,style:i}){return{start:e%r,end:t%r,loop:n&&(t-e+1)%r===0,style:i}}function EW(e,t,r){const{property:n,start:i,end:a}=r,{between:o,normalize:s}=kS(n),l=t.length;let{start:c,end:u,loop:f}=e,d,h;if(f){for(c+=l,u+=l,d=0,h=l;d<h&&o(s(t[c%l][n]),i,a);++d)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:f,style:e.style}}function PW(e,t,r){if(!r)return[e];const{property:n,start:i,end:a}=r,o=t.length,{compare:s,between:l,normalize:c}=kS(n),{start:u,end:f,loop:d,style:h}=EW(e,t,r),m=[];let p=!1,g=null,v,b,x;const S=()=>l(i,x,v)&&s(i,x)!==0,w=()=>s(a,v)===0||l(a,x,v),O=()=>p||S(),E=()=>!p||w();for(let C=u,M=u;C<=f;++C)b=t[C%o],!b.skip&&(v=c(b[n]),v!==x&&(p=l(v,i,a),g===null&&O()&&(g=s(v,i)===0?C:M),g!==null&&E()&&(m.push(TS({start:g,end:C,loop:d,count:o,style:h})),g=null),M=C,x=v));return g!==null&&m.push(TS({start:g,end:f,loop:d,count:o,style:h})),m}function CW(e,t){const r=[],n=e.segments;for(let i=0;i<n.length;i++){const a=PW(n[i],e.points,t);a.length&&r.push(...a)}return r}function kW(e,t,r,n){let i=0,a=t-1;if(r&&!n)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,r&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function TW(e,t,r,n){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=r;++l){const c=e[l%i];c.skip||c.stop?s.skip||(n=!1,a.push({start:t%i,end:(l-1)%i,loop:n}),t=o=c.stop?l:null):(o=l,s.skip&&(t=l)),s=c}return o!==null&&a.push({start:t%i,end:o%i,loop:n}),a}function MW(e,t){const r=e.points,n=e.options.spanGaps,i=r.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=kW(r,i,a,n);if(n===!0)return MS(e,[{start:o,end:s,loop:a}],r,t);const l=s<o?s+i:s,c=!!e._fullLoop&&o===0&&s===i-1;return MS(e,TW(r,o,l,c),r,t)}function MS(e,t,r,n){return!n||!n.setContext||!r?t:jW(e,t,r,n)}function jW(e,t,r,n){const i=e._chart.getContext(),a=jS(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=r.length,c=[];let u=a,f=t[0].start,d=f;function h(m,p,g,v){const b=s?-1:1;if(m!==p){for(m+=l;r[m%l].skip;)m-=b;for(;r[p%l].skip;)p+=b;m%l!==p%l&&(c.push({start:m%l,end:p%l,loop:g,style:v}),u=v,f=p%l)}}for(const m of t){f=s?f:m.start;let p=r[f%l],g;for(d=f+1;d<=m.end;d++){const v=r[d%l];g=jS(n.setContext(pi(i,{type:"segment",p0:p,p1:v,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:o}))),DW(g,u)&&h(f,d-1,m.loop,u),p=v,u=g}f<d-1&&h(f,d-1,m.loop,u)}return c}function jS(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function DW(e,t){if(!t)return!1;const r=[],n=function(i,a){return Ip(a)?(r.includes(a)||r.push(a),r.indexOf(a)):a};return JSON.stringify(e,n)!==JSON.stringify(t,n)}function bc(e,t,r){return e.options.clip?e[r]:t[r]}function NW(e,t){const{xScale:r,yScale:n}=e;return r&&n?{left:bc(r,t,"left"),right:bc(r,t,"right"),top:bc(n,t,"top"),bottom:bc(n,t,"bottom")}:t}function IW(e,t){const r=t._clip;if(r.disabled)return!1;const n=NW(t,e.chartArea);return{left:r.left===!1?0:n.left-(r.left===!0?0:r.left),right:r.right===!1?e.width:n.right+(r.right===!0?0:r.right),top:r.top===!1?0:n.top-(r.top===!0?0:r.top),bottom:r.bottom===!1?e.height:n.bottom+(r.bottom===!0?0:r.bottom)}}/*!
209
+ */function rn(){}const d7=(()=>{let e=0;return()=>e++})();function _e(e){return e==null}function yt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function he(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function dr(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Tr(e,t){return dr(e)?e:t}function se(e,t){return typeof e>"u"?t:e}const h7=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,G2=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Fe(e,t,r){if(e&&typeof e.call=="function")return e.apply(r,t)}function Pe(e,t,r,n){let i,a,o;if(yt(e))for(a=e.length,i=0;i<a;i++)t.call(r,e[i],i);else if(he(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(r,e[o[i]],o[i])}function cc(e,t){let r,n,i,a;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(i=e[r],a=t[r],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function uc(e){if(yt(e))return e.map(uc);if(he(e)){const t=Object.create(null),r=Object.keys(e),n=r.length;let i=0;for(;i<n;++i)t[r[i]]=uc(e[r[i]]);return t}return e}function X2(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function p7(e,t,r,n){if(!X2(e))return;const i=t[e],a=r[e];he(i)&&he(a)?xo(i,a,n):t[e]=uc(a)}function xo(e,t,r){const n=yt(t)?t:[t],i=n.length;if(!he(e))return e;r=r||{};const a=r.merger||p7;let o;for(let s=0;s<i;++s){if(o=n[s],!he(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)a(l[c],e,o,r)}return e}function wo(e,t){return xo(e,t,{merger:m7})}function m7(e,t,r){if(!X2(e))return;const n=t[e],i=r[e];he(n)&&he(i)?wo(n,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=uc(i))}const Z2={"":e=>e,x:e=>e.x,y:e=>e.y};function g7(e){const t=e.split("."),r=[];let n="";for(const i of t)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function v7(e){const t=g7(e);return r=>{for(const n of t){if(n==="")break;r=r&&r[n]}return r}}function ui(e,t){return(Z2[t]||(Z2[t]=v7(t)))(e)}function Np(e){return e.charAt(0).toUpperCase()+e.slice(1)}const _o=e=>typeof e<"u",Pn=e=>typeof e=="function",J2=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0};function y7(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const je=Math.PI,Ge=2*je,b7=Ge+je,fc=Number.POSITIVE_INFINITY,x7=je/180,ft=je/2,fi=je/4,Q2=je*2/3,eS=Math.log10,Mr=Math.sign;function So(e,t,r){return Math.abs(e-t)<r}function tS(e){const t=Math.round(e);e=So(e,t,e/1e3)?t:e;const r=Math.pow(10,Math.floor(eS(e))),n=e/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function w7(e){const t=[],r=Math.sqrt(e);let n;for(n=1;n<r;n++)e%n===0&&(t.push(n),t.push(e/n));return r===(r|0)&&t.push(r),t.sort((i,a)=>i-a).pop(),t}function _7(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Oo(e){return!_7(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function S7(e,t){const r=Math.round(e);return r-t<=e&&r+t>=e}function O7(e,t,r){let n,i,a;for(n=0,i=e.length;n<i;n++)a=e[n][r],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function nn(e){return e*(je/180)}function A7(e){return e*(180/je)}function rS(e){if(!dr(e))return;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r++;return r}function nS(e,t){const r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n);let a=Math.atan2(n,r);return a<-.5*je&&(a+=Ge),{angle:a,distance:i}}function Ip(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function E7(e,t){return(e-t+b7)%Ge-je}function gr(e){return(e%Ge+Ge)%Ge}function Ao(e,t,r,n){const i=gr(e),a=gr(t),o=gr(r),s=gr(a-i),l=gr(o-i),c=gr(i-a),u=gr(i-o);return i===a||i===o||n&&a===o||s>l&&c<u}function Ct(e,t,r){return Math.max(t,Math.min(r,e))}function P7(e){return Ct(e,-32768,32767)}function Cn(e,t,r,n=1e-6){return e>=Math.min(t,r)-n&&e<=Math.max(t,r)+n}function $p(e,t,r){r=r||(o=>e[o]<t);let n=e.length-1,i=0,a;for(;n-i>1;)a=i+n>>1,r(a)?i=a:n=a;return{lo:i,hi:n}}const di=(e,t,r,n)=>$p(e,r,n?i=>{const a=e[i][t];return a<r||a===r&&e[i+1][t]===r}:i=>e[i][t]<r),C7=(e,t,r)=>$p(e,r,n=>e[n][t]>=r);function k7(e,t,r){let n=0,i=e.length;for(;n<i&&e[n]<t;)n++;for(;i>n&&e[i-1]>r;)i--;return n>0||i<e.length?e.slice(n,i):e}const iS=["push","pop","shift","splice","unshift"];function T7(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),iS.forEach(r=>{const n="_onData"+Np(r),i=e[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[n]=="function"&&s[n](...a)}),o}})})}function aS(e,t){const r=e._chartjs;if(!r)return;const n=r.listeners,i=n.indexOf(t);i!==-1&&n.splice(i,1),!(n.length>0)&&(iS.forEach(a=>{delete e[a]}),delete e._chartjs)}function oS(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const sS=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function lS(e,t){let r=[],n=!1;return function(...i){r=i,n||(n=!0,sS.call(window,()=>{n=!1,e.apply(t,r)}))}}function M7(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}const cS=e=>e==="start"?"left":e==="end"?"right":"center",er=(e,t,r)=>e==="start"?t:e==="end"?r:(t+r)/2,j7=(e,t,r,n)=>e===(n?"left":"right")?r:e==="center"?(t+r)/2:t;function D7(e,t,r){const n=t.length;let i=0,a=n;if(e._sorted){const{iScale:o,vScale:s,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:f,max:d,minDefined:h,maxDefined:m}=o.getUserBounds();if(h){if(i=Math.min(di(l,u,f).lo,r?n:di(t,u,o.getPixelForValue(f)).lo),c){const p=l.slice(0,i+1).reverse().findIndex(g=>!_e(g[s.axis]));i-=Math.max(0,p)}i=Ct(i,0,n-1)}if(m){let p=Math.max(di(l,o.axis,d,!0).hi+1,r?0:di(t,u,o.getPixelForValue(d),!0).hi+1);if(c){const g=l.slice(p-1).findIndex(v=>!_e(v[s.axis]));p+=Math.max(0,g)}a=Ct(p,i,n)-i}else a=n-i}return{start:i,count:a}}function N7(e){const{xScale:t,yScale:r,_scaleRanges:n}=e,i={xmin:t.min,xmax:t.max,ymin:r.min,ymax:r.max};if(!n)return e._scaleRanges=i,!0;const a=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),a}const dc=e=>e===0||e===1,uS=(e,t,r)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ge/r)),fS=(e,t,r)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ge/r)+1,Eo={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ft)+1,easeOutSine:e=>Math.sin(e*ft),easeInOutSine:e=>-.5*(Math.cos(je*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>dc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>dc(e)?e:uS(e,.075,.3),easeOutElastic:e=>dc(e)?e:fS(e,.075,.3),easeInOutElastic(e){return dc(e)?e:e<.5?.5*uS(e*2,.1125,.45):.5+.5*fS(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Eo.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Eo.easeInBounce(e*2)*.5:Eo.easeOutBounce(e*2-1)*.5+.5};function Rp(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function dS(e){return Rp(e)?e:new bo(e)}function Lp(e){return Rp(e)?e:new bo(e).saturate(.5).darken(.1).hexString()}const I7=["x","y","borderWidth","radius","tension"],$7=["color","borderColor","backgroundColor"];function R7(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:$7},numbers:{type:"number",properties:I7}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function L7(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const hS=new Map;function F7(e,t){t=t||{};const r=e+JSON.stringify(t);let n=hS.get(r);return n||(n=new Intl.NumberFormat(e,t),hS.set(r,n)),n}function Fp(e,t,r){return F7(t,r).format(e)}const B7={values(e){return yt(e)?e:""+e},numeric(e,t,r){if(e===0)return"0";const n=this.chart.options.locale;let i,a=e;if(r.length>1){const c=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),a=z7(e,r)}const o=eS(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Fp(e,n,l)}};function z7(e,t){let r=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(r)>=1&&e!==Math.floor(e)&&(r=e-Math.floor(e)),r}var pS={formatters:B7};function W7(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,r)=>r.lineWidth,tickColor:(t,r)=>r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:pS.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const hi=Object.create(null),Bp=Object.create(null);function Po(e,t){if(!t)return e;const r=t.split(".");for(let n=0,i=r.length;n<i;++n){const a=r[n];e=e[a]||(e[a]=Object.create(null))}return e}function zp(e,t,r){return typeof t=="string"?xo(Po(e,t),r):xo(Po(e,""),t)}class V7{constructor(t,r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,i)=>Lp(i.backgroundColor),this.hoverBorderColor=(n,i)=>Lp(i.borderColor),this.hoverColor=(n,i)=>Lp(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(r)}set(t,r){return zp(this,t,r)}get(t){return Po(this,t)}describe(t,r){return zp(Bp,t,r)}override(t,r){return zp(hi,t,r)}route(t,r,n,i){const a=Po(this,t),o=Po(this,n),s="_"+r;Object.defineProperties(a,{[s]:{value:a[r],writable:!0},[r]:{enumerable:!0,get(){const l=this[s],c=o[i];return he(l)?Object.assign({},c,l):se(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(r=>r(this))}}var et=new V7({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[R7,L7,W7]);function H7(e){return!e||_e(e.size)||_e(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function mS(e,t,r,n,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,r.push(i)),a>n&&(n=a),n}function pi(e,t,r){const n=e.currentDevicePixelRatio,i=r!==0?Math.max(r/2,.5):0;return Math.round((t-i)*n)/n+i}function gS(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Wp(e,t,r,n){vS(e,t,r,n,null)}function vS(e,t,r,n,i){let a,o,s,l,c,u,f,d;const h=t.pointStyle,m=t.rotation,p=t.radius;let g=(m||0)*x7;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(r,n),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(p)||p<=0)){switch(e.beginPath(),h){default:i?e.ellipse(r,n,i/2,p,0,0,Ge):e.arc(r,n,p,0,Ge),e.closePath();break;case"triangle":u=i?i/2:p,e.moveTo(r+Math.sin(g)*u,n-Math.cos(g)*p),g+=Q2,e.lineTo(r+Math.sin(g)*u,n-Math.cos(g)*p),g+=Q2,e.lineTo(r+Math.sin(g)*u,n-Math.cos(g)*p),e.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(g+fi)*l,f=Math.cos(g+fi)*(i?i/2-c:l),s=Math.sin(g+fi)*l,d=Math.sin(g+fi)*(i?i/2-c:l),e.arc(r-f,n-s,c,g-je,g-ft),e.arc(r+d,n-o,c,g-ft,g),e.arc(r+f,n+s,c,g,g+ft),e.arc(r-d,n+o,c,g+ft,g+je),e.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,u=i?i/2:l,e.rect(r-u,n-l,2*u,2*l);break}g+=fi;case"rectRot":f=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,d=Math.sin(g)*(i?i/2:p),e.moveTo(r-f,n-s),e.lineTo(r+d,n-o),e.lineTo(r+f,n+s),e.lineTo(r-d,n+o),e.closePath();break;case"crossRot":g+=fi;case"cross":f=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,d=Math.sin(g)*(i?i/2:p),e.moveTo(r-f,n-s),e.lineTo(r+f,n+s),e.moveTo(r+d,n-o),e.lineTo(r-d,n+o);break;case"star":f=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,d=Math.sin(g)*(i?i/2:p),e.moveTo(r-f,n-s),e.lineTo(r+f,n+s),e.moveTo(r+d,n-o),e.lineTo(r-d,n+o),g+=fi,f=Math.cos(g)*(i?i/2:p),o=Math.cos(g)*p,s=Math.sin(g)*p,d=Math.sin(g)*(i?i/2:p),e.moveTo(r-f,n-s),e.lineTo(r+f,n+s),e.moveTo(r+d,n-o),e.lineTo(r-d,n+o);break;case"line":o=i?i/2:Math.cos(g)*p,s=Math.sin(g)*p,e.moveTo(r-o,n-s),e.lineTo(r+o,n+s);break;case"dash":e.moveTo(r,n),e.lineTo(r+Math.cos(g)*(i?i/2:p),n+Math.sin(g)*p);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Co(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r}function Vp(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Hp(e){e.restore()}function U7(e,t,r,n,i){if(!t)return e.lineTo(r.x,r.y);if(i==="middle"){const a=(t.x+r.x)/2;e.lineTo(a,t.y),e.lineTo(a,r.y)}else i==="after"!=!!n?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}function K7(e,t,r,n){if(!t)return e.lineTo(r.x,r.y);e.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function q7(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),_e(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Y7(e,t,r,n,i){if(i.strikethrough||i.underline){const a=e.measureText(n),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=r-a.actualBoundingBoxAscent,c=r+a.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function G7(e,t){const r=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=r}function hc(e,t,r,n,i,a={}){const o=yt(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,q7(e,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&G7(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),_e(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(c,r,n,a.maxWidth)),e.fillText(c,r,n,a.maxWidth),Y7(e,r,n,c,a),n+=Number(i.lineHeight);e.restore()}function pc(e,t){const{x:r,y:n,w:i,h:a,radius:o}=t;e.arc(r+o.topLeft,n+o.topLeft,o.topLeft,1.5*je,je,!0),e.lineTo(r,n+a-o.bottomLeft),e.arc(r+o.bottomLeft,n+a-o.bottomLeft,o.bottomLeft,je,ft,!0),e.lineTo(r+i-o.bottomRight,n+a),e.arc(r+i-o.bottomRight,n+a-o.bottomRight,o.bottomRight,ft,0,!0),e.lineTo(r+i,n+o.topRight),e.arc(r+i-o.topRight,n+o.topRight,o.topRight,0,-ft,!0),e.lineTo(r+o.topLeft,n)}const X7=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Z7=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function J7(e,t){const r=(""+e).match(X7);if(!r||r[1]==="normal")return t*1.2;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100;break}return t*e}const Q7=e=>+e||0;function Up(e,t){const r={},n=he(t),i=n?Object.keys(t):t,a=he(e)?n?o=>se(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)r[o]=Q7(a(o));return r}function yS(e){return Up(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ta(e){return Up(e,["topLeft","topRight","bottomLeft","bottomRight"])}function vr(e){const t=yS(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Rt(e,t){e=e||{},t=t||et.font;let r=se(e.size,t.size);typeof r=="string"&&(r=parseInt(r,10));let n=se(e.style,t.style);n&&!(""+n).match(Z7)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const i={family:se(e.family,t.family),lineHeight:J7(se(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:se(e.weight,t.weight),string:""};return i.string=H7(i),i}function mc(e,t,r,n){let i,a,o;for(i=0,a=e.length;i<a;++i)if(o=e[i],o!==void 0&&o!==void 0)return o}function eW(e,t,r){const{min:n,max:i}=e,a=G2(t,(i-n)/2),o=(s,l)=>r&&s===0?0:s+l;return{min:o(n,-Math.abs(a)),max:o(i,a)}}function mi(e,t){return Object.assign(Object.create(e),t)}function Kp(e,t=[""],r,n,i=()=>e[0]){const a=r||e;typeof n>"u"&&(n=SS("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:n,_getTarget:i,override:s=>Kp([s,...e],t,a,n)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return xS(s,l,()=>lW(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return OS(s).includes(l)},ownKeys(s){return OS(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function ra(e,t,r,n){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:r,_stack:new Set,_descriptors:bS(e,n),setContext:a=>ra(e,a,r,n),override:a=>ra(e.override(a),t,r,n)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return xS(a,o,()=>rW(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function bS(e,t={scriptable:!0,indexable:!0}){const{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:r,indexable:n,isScriptable:Pn(r)?r:()=>r,isIndexable:Pn(n)?n:()=>n}}const tW=(e,t)=>e?e+Np(t):t,qp=(e,t)=>he(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function xS(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const n=r();return e[t]=n,n}function rW(e,t,r){const{_proxy:n,_context:i,_subProxy:a,_descriptors:o}=e;let s=n[t];return Pn(s)&&o.isScriptable(t)&&(s=nW(t,s,e,r)),yt(s)&&s.length&&(s=iW(t,s,e,o.isIndexable)),qp(t,s)&&(s=ra(s,i,a&&a[t],o)),s}function nW(e,t,r,n){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=r;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||n);return s.delete(e),qp(e,l)&&(l=Yp(i._scopes,i,e,l)),l}function iW(e,t,r,n){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=r;if(typeof a.index<"u"&&n(e))return t[a.index%t.length];if(he(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const f=Yp(c,i,e,u);t.push(ra(f,a,o&&o[e],s))}}return t}function wS(e,t,r){return Pn(e)?e(t,r):e}const aW=(e,t)=>e===!0?t:typeof e=="string"?ui(t,e):void 0;function oW(e,t,r,n,i){for(const a of t){const o=aW(r,a);if(o){e.add(o);const s=wS(o._fallback,r,i);if(typeof s<"u"&&s!==r&&s!==n)return s}else if(o===!1&&typeof n<"u"&&r!==n)return null}return!1}function Yp(e,t,r,n){const i=t._rootScopes,a=wS(t._fallback,r,n),o=[...e,...i],s=new Set;s.add(n);let l=_S(s,o,r,a||r,n);return l===null||typeof a<"u"&&a!==r&&(l=_S(s,o,a,l,n),l===null)?!1:Kp(Array.from(s),[""],i,a,()=>sW(t,r,n))}function _S(e,t,r,n,i){for(;r;)r=oW(e,t,r,n,i);return r}function sW(e,t,r){const n=e._getTarget();t in n||(n[t]={});const i=n[t];return yt(i)&&he(r)?r:i||{}}function lW(e,t,r,n){let i;for(const a of t)if(i=SS(tW(a,e),r),typeof i<"u")return qp(e,i)?Yp(r,n,e,i):i}function SS(e,t){for(const r of t){if(!r)continue;const n=r[e];if(typeof n<"u")return n}}function OS(e){let t=e._keys;return t||(t=e._keys=cW(e._scopes)),t}function cW(e){const t=new Set;for(const r of e)for(const n of Object.keys(r).filter(i=>!i.startsWith("_")))t.add(n);return Array.from(t)}const uW=Number.EPSILON||1e-14,na=(e,t)=>t<e.length&&!e[t].skip&&e[t],AS=e=>e==="x"?"y":"x";function fW(e,t,r,n){const i=e.skip?t:e,a=t,o=r.skip?t:r,s=Ip(a,i),l=Ip(o,a);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const f=n*c,d=n*u;return{previous:{x:a.x-f*(o.x-i.x),y:a.y-f*(o.y-i.y)},next:{x:a.x+d*(o.x-i.x),y:a.y+d*(o.y-i.y)}}}function dW(e,t,r){const n=e.length;let i,a,o,s,l,c=na(e,0);for(let u=0;u<n-1;++u)if(l=c,c=na(e,u+1),!(!l||!c)){if(So(t[u],0,uW)){r[u]=r[u+1]=0;continue}i=r[u]/t[u],a=r[u+1]/t[u],s=Math.pow(i,2)+Math.pow(a,2),!(s<=9)&&(o=3/Math.sqrt(s),r[u]=i*o*t[u],r[u+1]=a*o*t[u])}}function hW(e,t,r="x"){const n=AS(r),i=e.length;let a,o,s,l=na(e,0);for(let c=0;c<i;++c){if(o=s,s=l,l=na(e,c+1),!s)continue;const u=s[r],f=s[n];o&&(a=(u-o[r])/3,s[`cp1${r}`]=u-a,s[`cp1${n}`]=f-a*t[c]),l&&(a=(l[r]-u)/3,s[`cp2${r}`]=u+a,s[`cp2${n}`]=f+a*t[c])}}function pW(e,t="x"){const r=AS(t),n=e.length,i=Array(n).fill(0),a=Array(n);let o,s,l,c=na(e,0);for(o=0;o<n;++o)if(s=l,l=c,c=na(e,o+1),!!l){if(c){const u=c[t]-l[t];i[o]=u!==0?(c[r]-l[r])/u:0}a[o]=s?c?Mr(i[o-1])!==Mr(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}dW(e,i,a),hW(e,a,t)}function gc(e,t,r){return Math.max(Math.min(e,r),t)}function mW(e,t){let r,n,i,a,o,s=Co(e[0],t);for(r=0,n=e.length;r<n;++r)o=a,a=s,s=r<n-1&&Co(e[r+1],t),a&&(i=e[r],o&&(i.cp1x=gc(i.cp1x,t.left,t.right),i.cp1y=gc(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=gc(i.cp2x,t.left,t.right),i.cp2y=gc(i.cp2y,t.top,t.bottom)))}function gW(e,t,r,n,i){let a,o,s,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")pW(e,i);else{let c=n?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)s=e[a],l=fW(c,s,e[Math.min(a+1,o-(n?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}t.capBezierPoints&&mW(e,r)}function Gp(){return typeof window<"u"&&typeof document<"u"}function Xp(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function vc(e,t,r){let n;return typeof e=="string"?(n=parseInt(e,10),e.indexOf("%")!==-1&&(n=n/100*t.parentNode[r])):n=e,n}const yc=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function vW(e,t){return yc(e).getPropertyValue(t)}const yW=["top","right","bottom","left"];function gi(e,t,r){const n={};r=r?"-"+r:"";for(let i=0;i<4;i++){const a=yW[i];n[a]=parseFloat(e[t+"-"+a+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const bW=(e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot);function xW(e,t){const r=e.touches,n=r&&r.length?r[0]:e,{offsetX:i,offsetY:a}=n;let o=!1,s,l;if(bW(i,a,e.target))s=i,l=a;else{const c=t.getBoundingClientRect();s=n.clientX-c.left,l=n.clientY-c.top,o=!0}return{x:s,y:l,box:o}}function vi(e,t){if("native"in e)return e;const{canvas:r,currentDevicePixelRatio:n}=t,i=yc(r),a=i.boxSizing==="border-box",o=gi(i,"padding"),s=gi(i,"border","width"),{x:l,y:c,box:u}=xW(e,r),f=o.left+(u&&s.left),d=o.top+(u&&s.top);let{width:h,height:m}=t;return a&&(h-=o.width+s.width,m-=o.height+s.height),{x:Math.round((l-f)/h*r.width/n),y:Math.round((c-d)/m*r.height/n)}}function wW(e,t,r){let n,i;if(t===void 0||r===void 0){const a=e&&Xp(e);if(!a)t=e.clientWidth,r=e.clientHeight;else{const o=a.getBoundingClientRect(),s=yc(a),l=gi(s,"border","width"),c=gi(s,"padding");t=o.width-c.width-l.width,r=o.height-c.height-l.height,n=vc(s.maxWidth,a,"clientWidth"),i=vc(s.maxHeight,a,"clientHeight")}}return{width:t,height:r,maxWidth:n||fc,maxHeight:i||fc}}const bc=e=>Math.round(e*10)/10;function _W(e,t,r,n){const i=yc(e),a=gi(i,"margin"),o=vc(i.maxWidth,e,"clientWidth")||fc,s=vc(i.maxHeight,e,"clientHeight")||fc,l=wW(e,t,r);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const d=gi(i,"border","width"),h=gi(i,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-a.width),u=Math.max(0,n?c/n:u-a.height),c=bc(Math.min(c,o,l.maxWidth)),u=bc(Math.min(u,s,l.maxHeight)),c&&!u&&(u=bc(c/2)),(t!==void 0||r!==void 0)&&n&&l.height&&u>l.height&&(u=l.height,c=bc(Math.floor(u*n))),{width:c,height:u}}function ES(e,t,r){const n=t||1,i=Math.floor(e.height*n),a=Math.floor(e.width*n);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(r||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=n,o.height=i,o.width=a,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const SW=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Gp()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function PS(e,t){const r=vW(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function yi(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:e.y+r*(t.y-e.y)}}function OW(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:n==="middle"?r<.5?e.y:t.y:n==="after"?r<1?e.y:t.y:r>0?t.y:e.y}}function AW(e,t,r,n){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=yi(e,i,r),s=yi(i,a,r),l=yi(a,t,r),c=yi(o,s,r),u=yi(s,l,r);return yi(c,u,r)}const EW=function(e,t){return{x(r){return e+e+t-r},setWidth(r){t=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},PW=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ia(e,t,r){return e?EW(t,r):PW()}function CS(e,t){let r,n;(t==="ltr"||t==="rtl")&&(r=e.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function kS(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function TS(e){return e==="angle"?{between:Ao,compare:E7,normalize:gr}:{between:Cn,compare:(t,r)=>t-r,normalize:t=>t}}function MS({start:e,end:t,count:r,loop:n,style:i}){return{start:e%r,end:t%r,loop:n&&(t-e+1)%r===0,style:i}}function CW(e,t,r){const{property:n,start:i,end:a}=r,{between:o,normalize:s}=TS(n),l=t.length;let{start:c,end:u,loop:f}=e,d,h;if(f){for(c+=l,u+=l,d=0,h=l;d<h&&o(s(t[c%l][n]),i,a);++d)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:f,style:e.style}}function kW(e,t,r){if(!r)return[e];const{property:n,start:i,end:a}=r,o=t.length,{compare:s,between:l,normalize:c}=TS(n),{start:u,end:f,loop:d,style:h}=CW(e,t,r),m=[];let p=!1,g=null,v,b,x;const S=()=>l(i,x,v)&&s(i,x)!==0,w=()=>s(a,v)===0||l(a,x,v),O=()=>p||S(),E=()=>!p||w();for(let C=u,M=u;C<=f;++C)b=t[C%o],!b.skip&&(v=c(b[n]),v!==x&&(p=l(v,i,a),g===null&&O()&&(g=s(v,i)===0?C:M),g!==null&&E()&&(m.push(MS({start:g,end:C,loop:d,count:o,style:h})),g=null),M=C,x=v));return g!==null&&m.push(MS({start:g,end:f,loop:d,count:o,style:h})),m}function TW(e,t){const r=[],n=e.segments;for(let i=0;i<n.length;i++){const a=kW(n[i],e.points,t);a.length&&r.push(...a)}return r}function MW(e,t,r,n){let i=0,a=t-1;if(r&&!n)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,r&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function jW(e,t,r,n){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=r;++l){const c=e[l%i];c.skip||c.stop?s.skip||(n=!1,a.push({start:t%i,end:(l-1)%i,loop:n}),t=o=c.stop?l:null):(o=l,s.skip&&(t=l)),s=c}return o!==null&&a.push({start:t%i,end:o%i,loop:n}),a}function DW(e,t){const r=e.points,n=e.options.spanGaps,i=r.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=MW(r,i,a,n);if(n===!0)return jS(e,[{start:o,end:s,loop:a}],r,t);const l=s<o?s+i:s,c=!!e._fullLoop&&o===0&&s===i-1;return jS(e,jW(r,o,l,c),r,t)}function jS(e,t,r,n){return!n||!n.setContext||!r?t:NW(e,t,r,n)}function NW(e,t,r,n){const i=e._chart.getContext(),a=DS(e.options),{_datasetIndex:o,options:{spanGaps:s}}=e,l=r.length,c=[];let u=a,f=t[0].start,d=f;function h(m,p,g,v){const b=s?-1:1;if(m!==p){for(m+=l;r[m%l].skip;)m-=b;for(;r[p%l].skip;)p+=b;m%l!==p%l&&(c.push({start:m%l,end:p%l,loop:g,style:v}),u=v,f=p%l)}}for(const m of t){f=s?f:m.start;let p=r[f%l],g;for(d=f+1;d<=m.end;d++){const v=r[d%l];g=DS(n.setContext(mi(i,{type:"segment",p0:p,p1:v,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:o}))),IW(g,u)&&h(f,d-1,m.loop,u),p=v,u=g}f<d-1&&h(f,d-1,m.loop,u)}return c}function DS(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function IW(e,t){if(!t)return!1;const r=[],n=function(i,a){return Rp(a)?(r.includes(a)||r.push(a),r.indexOf(a)):a};return JSON.stringify(e,n)!==JSON.stringify(t,n)}function xc(e,t,r){return e.options.clip?e[r]:t[r]}function $W(e,t){const{xScale:r,yScale:n}=e;return r&&n?{left:xc(r,t,"left"),right:xc(r,t,"right"),top:xc(n,t,"top"),bottom:xc(n,t,"bottom")}:t}function RW(e,t){const r=t._clip;if(r.disabled)return!1;const n=$W(t,e.chartArea);return{left:r.left===!1?0:n.left-(r.left===!0?0:r.left),right:r.right===!1?e.width:n.right+(r.right===!0?0:r.right),top:r.top===!1?0:n.top-(r.top===!0?0:r.top),bottom:r.bottom===!1?e.height:n.bottom+(r.bottom===!0?0:r.bottom)}}/*!
210
210
  * Chart.js v4.5.0
211
211
  * https://www.chartjs.org
212
212
  * (c) 2025 Chart.js Contributors
213
213
  * Released under the MIT License
214
- */class $W{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,r,n,i){const a=r.listeners[i],o=r.duration;a.forEach(s=>s({chart:t,initial:r.initial,numSteps:o,currentStep:Math.min(n-r.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=oS.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let r=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const a=n.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),a.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),r+=a.length}),this._lastDate=t,r===0&&(this._running=!1)}_getAnims(t){const r=this._charts;let n=r.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(t,n)),n}listen(t,r,n){this._getAnims(t).listeners[r].push(n)}add(t,r){!r||!r.length||this._getAnims(t).items.push(...r)}has(t){return this._getAnims(t).items.length>0}start(t){const r=this._charts.get(t);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,i)=>Math.max(n,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const r=this._charts.get(t);return!(!r||!r.running||!r.items.length)}stop(t){const r=this._charts.get(t);if(!r||!r.items.length)return;const n=r.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();r.items=[],this._notify(t,r,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var an=new $W;const DS="transparent",RW={boolean(e,t,r){return r>.5?t:e},color(e,t,r){const n=fS(e||DS),i=n.valid&&fS(t||DS);return i&&i.valid?i.mix(n,r).hexString():t},number(e,t,r){return e+(t-e)*r}};class LW{constructor(t,r,n,i){const a=r[n];i=pc([t.to,i,a,t.from]);const o=pc([t.from,a,i]);this._active=!0,this._fn=t.fn||RW[t.type||typeof o],this._easing=Ao[t.easing]||Ao.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=r,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,r,n){if(this._active){this._notify(!1);const i=this._target[this._prop],a=n-this._start,o=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=pc([t.to,r,i,t.from]),this._from=pc([t.from,i,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const r=t-this._start,n=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||r<n),!this._active){this._target[i]=s,this._notify(!0);return}if(r<0){this._target[i]=a;return}l=r/n%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((r,n)=>{t.push({res:r,rej:n})})}_notify(t){const r=t?"res":"rej",n=this._promises||[];for(let i=0;i<n.length;i++)n[i][r]()}}class NS{constructor(t,r){this._chart=t,this._properties=new Map,this.configure(r)}configure(t){if(!he(t))return;const r=Object.keys(et.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!he(a))return;const o={};for(const s of r)o[s]=a[s];(yt(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!n.has(s))&&n.set(s,o)})})}_animateOptions(t,r){const n=r.options,i=BW(t,n);if(!i)return[];const a=this._createAnimations(i,n);return n.$shared&&FW(t.options.$animations,n).then(()=>{t.options=n},()=>{}),a}_createAnimations(t,r){const n=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(r),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,r));continue}const u=r[c];let f=a[c];const d=n.get(c);if(f)if(d&&f.active()){f.update(d,u,s);continue}else f.cancel();if(!d||!d.duration){t[c]=u;continue}a[c]=f=new LW(d,t,c,u),i.push(f)}return i}update(t,r){if(this._properties.size===0){Object.assign(t,r);return}const n=this._createAnimations(t,r);if(n.length)return an.add(this._chart,n),!0}}function FW(e,t){const r=[],n=Object.keys(t);for(let i=0;i<n.length;i++){const a=e[n[i]];a&&a.active()&&r.push(a.wait())}return Promise.all(r)}function BW(e,t){if(!t)return;let r=e.options;if(!r){e.options=t;return}return r.$shared&&(e.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function IS(e,t){const r=e&&e.options||{},n=r.reverse,i=r.min===void 0?t:0,a=r.max===void 0?t:0;return{start:n?a:i,end:n?i:a}}function zW(e,t,r){if(r===!1)return!1;const n=IS(e,r),i=IS(t,r);return{top:i.end,right:n.end,bottom:i.start,left:n.start}}function WW(e){let t,r,n,i;return he(e)?(t=e.top,r=e.right,n=e.bottom,i=e.left):t=r=n=i=e,{top:t,right:r,bottom:n,left:i,disabled:e===!1}}function $S(e,t){const r=[],n=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=n.length;i<a;++i)r.push(n[i].index);return r}function RS(e,t,r,n={}){const i=e.keys,a=n.mode==="single";let o,s,l,c;if(t===null)return;let u=!1;for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===r){if(u=!0,n.all)continue;break}c=e.values[l],dr(c)&&(a||t===0||Mr(t)===Mr(c))&&(t+=c)}return!u&&!n.all?0:t}function VW(e,t){const{iScale:r,vScale:n}=t,i=r.axis==="x"?"x":"y",a=n.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],s[l]={[i]:u,[a]:e[u]};return s}function Gp(e,t){const r=e&&e.options.stacked;return r||r===void 0&&t.stack!==void 0}function HW(e,t,r){return`${e.id}.${t.id}.${r.stack||r.type}`}function UW(e){const{min:t,max:r,minDefined:n,maxDefined:i}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:i?r:Number.POSITIVE_INFINITY}}function KW(e,t,r){const n=e[t]||(e[t]={});return n[r]||(n[r]={})}function LS(e,t,r,n){for(const i of t.getMatchingVisibleMetas(n).reverse()){const a=e[i.index];if(r&&a>0||!r&&a<0)return i.index}return null}function FS(e,t){const{chart:r,_cachedMeta:n}=e,i=r._stacks||(r._stacks={}),{iScale:a,vScale:o,index:s}=n,l=a.axis,c=o.axis,u=HW(a,o,n),f=t.length;let d;for(let h=0;h<f;++h){const m=t[h],{[l]:p,[c]:g}=m,v=m._stacks||(m._stacks={});d=v[c]=KW(i,u,p),d[s]=g,d._top=LS(d,o,!0,n.type),d._bottom=LS(d,o,!1,n.type);const b=d._visualValues||(d._visualValues={});b[s]=g}}function Xp(e,t){const r=e.scales;return Object.keys(r).filter(n=>r[n].axis===t).shift()}function qW(e,t){return pi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function YW(e,t,r){return pi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:r,index:t,mode:"default",type:"data"})}function Co(e,t){const r=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[n]===void 0||a[n][r]===void 0)return;delete a[n][r],a[n]._visualValues!==void 0&&a[n]._visualValues[r]!==void 0&&delete a[n]._visualValues[r]}}}const Zp=e=>e==="reset"||e==="none",BS=(e,t)=>t?e:Object.assign({},e),GW=(e,t,r)=>e&&!t.hidden&&t._stacked&&{keys:$S(r,!0),values:null};class xc{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,r){this.chart=t,this._ctx=t.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Gp(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Co(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,r=this._cachedMeta,n=this.getDataset(),i=(f,d,h,m)=>f==="x"?d:f==="r"?m:h,a=r.xAxisID=se(n.xAxisID,Xp(t,"x")),o=r.yAxisID=se(n.yAxisID,Xp(t,"y")),s=r.rAxisID=se(n.rAxisID,Xp(t,"r")),l=r.indexAxis,c=r.iAxisID=i(l,a,o,s),u=r.vAxisID=i(l,o,a,s);r.xScale=this.getScaleForId(a),r.yScale=this.getScaleForId(o),r.rScale=this.getScaleForId(s),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const r=this._cachedMeta;return t===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&iS(this._data,this),t._stacked&&Co(t)}_dataCheck(){const t=this.getDataset(),r=t.data||(t.data=[]),n=this._data;if(he(r)){const i=this._cachedMeta;this._data=VW(r,i)}else if(n!==r){if(n){iS(n,this);const i=this._cachedMeta;Co(i),i._parsed=[]}r&&Object.isExtensible(r)&&C7(r,this),this._syncList=[],this._data=r}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const r=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const a=r._stacked;r._stacked=Gp(r.vScale,r),r.stack!==n.stack&&(i=!0,Co(r),r.stack=n.stack),this._resyncElements(t),(i||a!==r._stacked)&&(FS(this,r._parsed),r._stacked=Gp(r.vScale,r))}configure(){const t=this.chart.config,r=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),r,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,r){const{_cachedMeta:n,_data:i}=this,{iScale:a,_stacked:o}=n,s=a.axis;let l=t===0&&r===i.length?!0:n._sorted,c=t>0&&n._parsed[t-1],u,f,d;if(this._parsing===!1)n._parsed=i,n._sorted=!0,d=i;else{yt(i[t])?d=this.parseArrayData(n,i,t,r):he(i[t])?d=this.parseObjectData(n,i,t,r):d=this.parsePrimitiveData(n,i,t,r);const h=()=>f[s]===null||c&&f[s]<c[s];for(u=0;u<r;++u)n._parsed[u+t]=f=d[u],l&&(h()&&(l=!1),c=f);n._sorted=l}o&&FS(this,d)}parsePrimitiveData(t,r,n,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,c=a.getLabels(),u=a===o,f=new Array(i);let d,h,m;for(d=0,h=i;d<h;++d)m=d+n,f[d]={[s]:u||a.parse(c[m],m),[l]:o.parse(r[m],m)};return f}parseArrayData(t,r,n,i){const{xScale:a,yScale:o}=t,s=new Array(i);let l,c,u,f;for(l=0,c=i;l<c;++l)u=l+n,f=r[u],s[l]={x:a.parse(f[0],u),y:o.parse(f[1],u)};return s}parseObjectData(t,r,n,i){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,f,d,h;for(u=0,f=i;u<f;++u)d=u+n,h=r[d],c[u]={x:a.parse(ci(h,s),d),y:o.parse(ci(h,l),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,r,n){const i=this.chart,a=this._cachedMeta,o=r[t.axis],s={keys:$S(i,!0),values:r._stacks[t.axis]._visualValues};return RS(s,o,a.index,{mode:n})}updateRangeFromParsed(t,r,n,i){const a=n[r.axis];let o=a===null?NaN:a;const s=i&&n._stacks[r.axis];i&&s&&(i.values=s,o=RS(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,r){const n=this._cachedMeta,i=n._parsed,a=n._sorted&&t===n.iScale,o=i.length,s=this._getOtherScale(t),l=GW(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=UW(s);let d,h;function m(){h=i[d];const p=h[s.axis];return!dr(h[t.axis])||u>p||f<p}for(d=0;d<o&&!(!m()&&(this.updateRangeFromParsed(c,t,h,l),a));++d);if(a){for(d=o-1;d>=0;--d)if(!m()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const r=this._cachedMeta._parsed,n=[];let i,a,o;for(i=0,a=r.length;i<a;++i)o=r[i][t.axis],dr(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const r=this._cachedMeta,n=r.iScale,i=r.vScale,a=this.getParsed(t);return{label:n?""+n.getLabelForValue(a[n.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const r=this._cachedMeta;this.update(t||"default"),r._clip=WW(se(this.options.clip,zW(r.xScale,r.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,r=this.chart,n=this._cachedMeta,i=n.data||[],a=r.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let u;for(n.dataset&&n.dataset.draw(t,a,s,l),u=s;u<s+l;++u){const f=i[u];f.hidden||(f.active&&c?o.push(f):f.draw(t,a))}for(u=0;u<o.length;++u)o[u].draw(t,a)}getStyle(t,r){const n=r?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,r,n){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=YW(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=qW(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!r,a.mode=n,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,r){return this._resolveElementOptions(this.dataElementType.id,r,t)}_resolveElementOptions(t,r="default",n){const i=r==="active",a=this._cachedDataOpts,o=t+"-"+r,s=a[o],l=this.enableOptionSharing&&wo(n);if(s)return BS(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),f=i?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),u),h=Object.keys(et.elements[t]),m=()=>this.getContext(n,i,r),p=c.resolveNamedOptions(d,h,m,f);return p.$shared&&(p.$shared=l,a[o]=Object.freeze(BS(p,l))),p}_resolveAnimations(t,r,n){const i=this.chart,a=this._cachedDataOpts,o=`animation-${r}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,r),d=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(d,this.getContext(t,n,r))}const c=new NS(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,r){return!r||Zp(t)||this.chart._animationsDisabled}_getSharedOptions(t,r){const n=this.resolveDataElementOptions(t,r),i=this._sharedOptions,a=this.getSharedOptions(n),o=this.includeOptions(r,a)||a!==i;return this.updateSharedOptions(a,r,n),{sharedOptions:a,includeOptions:o}}updateElement(t,r,n,i){Zp(i)?Object.assign(t,n):this._resolveAnimations(r,i).update(t,n)}updateSharedOptions(t,r,n){t&&!Zp(r)&&this._resolveAnimations(void 0,r).update(t,n)}_setStyle(t,r,n,i){t.active=i;const a=this.getStyle(r,i);this._resolveAnimations(r,n,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,r,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,r,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const r=this._data,n=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=n.length,a=r.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,r,n=!0){const i=this._cachedMeta,a=i.data,o=t+r;let s;const l=c=>{for(c.length+=r,s=c.length-1;s>=o;s--)c[s]=c[s-r]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,r),n&&this.updateElements(a,t,r,"reset")}updateElements(t,r,n,i){}_removeElements(t,r){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,r);n._stacked&&Co(n,i)}n.data.splice(t,r)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[r,n,i]=t;this[r](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,r){r&&this._sync(["_removeElements",t,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function XW(e,t){if(!e._cache.$bar){const r=e.getMatchingVisibleMetas(t);let n=[];for(let i=0,a=r.length;i<a;i++)n=n.concat(r[i].controller.getAllParsedValues(e));e._cache.$bar=aS(n.sort((i,a)=>i-a))}return e._cache.$bar}function ZW(e){const t=e.iScale,r=XW(t,e.type);let n=t._length,i,a,o,s;const l=()=>{o===32767||o===-32768||(wo(s)&&(n=Math.min(n,Math.abs(o-s)||n)),s=o)};for(i=0,a=r.length;i<a;++i)o=t.getPixelForValue(r[i]),l();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),l();return n}function JW(e,t,r,n){const i=r.barThickness;let a,o;return _e(i)?(a=t.min*r.categoryPercentage,o=r.barPercentage):(a=i*n,o=1),{chunk:a/n,ratio:o,start:t.pixels[e]-a/2}}function QW(e,t,r,n){const i=t.pixels,a=i[e];let o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=r.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);const c=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/n,ratio:r.barPercentage,start:c}}function eV(e,t,r,n){const i=r.parse(e[0],n),a=r.parse(e[1],n),o=Math.min(i,a),s=Math.max(i,a);let l=o,c=s;Math.abs(o)>Math.abs(s)&&(l=s,c=o),t[r.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:a,min:o,max:s}}function zS(e,t,r,n){return yt(e)?eV(e,t,r,n):t[r.axis]=r.parse(e,n),t}function WS(e,t,r,n){const i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,l=[];let c,u,f,d;for(c=r,u=r+n;c<u;++c)d=t[c],f={},f[i.axis]=s||i.parse(o[c],c),l.push(zS(d,f,a,c));return l}function Jp(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function tV(e,t,r){return e!==0?Mr(e):(t.isHorizontal()?1:-1)*(t.min>=r?1:-1)}function rV(e){let t,r,n,i,a;return e.horizontal?(t=e.base>e.x,r="left",n="right"):(t=e.base<e.y,r="bottom",n="top"),t?(i="end",a="start"):(i="start",a="end"),{start:r,end:n,reverse:t,top:i,bottom:a}}function nV(e,t,r,n){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:s,reverse:l,top:c,bottom:u}=rV(e);i==="middle"&&r&&(e.enableBorderRadius=!0,(r._top||0)===n?i=c:(r._bottom||0)===n?i=u:(a[VS(u,o,s,l)]=!0,i=c)),a[VS(i,o,s,l)]=!0,e.borderSkipped=a}function VS(e,t,r,n){return n?(e=iV(e,t,r),e=HS(e,r,t)):e=HS(e,t,r),e}function iV(e,t,r){return e===t?r:e===r?t:e}function HS(e,t,r){return e==="start"?t:e==="end"?r:e}function aV(e,{inflateAmount:t},r){e.inflateAmount=t==="auto"?r===1?.33:0:t}class oV extends xc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,r,n,i){return WS(t,r,n,i)}parseArrayData(t,r,n,i){return WS(t,r,n,i)}parseObjectData(t,r,n,i){const{iScale:a,vScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=a.axis==="x"?s:l,u=o.axis==="x"?s:l,f=[];let d,h,m,p;for(d=n,h=n+i;d<h;++d)p=r[d],m={},m[a.axis]=a.parse(ci(p,c),d),f.push(zS(ci(p,u),m,o,d));return f}updateRangeFromParsed(t,r,n,i){super.updateRangeFromParsed(t,r,n,i);const a=n._custom;a&&r===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const r=this._cachedMeta,{iScale:n,vScale:i}=r,a=this.getParsed(t),o=a._custom,s=Jp(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+n.getLabelForValue(a[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const r=this._cachedMeta;this.updateElements(r.data,0,r.data.length,t)}updateElements(t,r,n,i){const a=i==="reset",{index:o,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:d}=this._getSharedOptions(r,i);for(let h=r;h<r+n;h++){const m=this.getParsed(h),p=a||_e(m[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),g=this._calculateBarIndexPixels(h,u),v=(m._stacks||{})[s.axis],b={horizontal:c,base:p.base,enableBorderRadius:!v||Jp(m._custom)||o===v._top||o===v._bottom,x:c?p.head:g.center,y:c?g.center:p.head,height:c?g.size:Math.abs(p.size),width:c?Math.abs(p.size):g.size};d&&(b.options=f||this.resolveDataElementOptions(h,t[h].active?"active":i));const x=b.options||t[h].options;nV(b,x,v,o),aV(b,x,u.ratio),this.updateElement(t[h],h,b,i)}}_getStacks(t,r){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),a=n.options.stacked,o=[],s=this._cachedMeta.controller.getParsed(r),l=s&&s[n.axis],c=u=>{const f=u._parsed.find(h=>h[n.axis]===l),d=f&&f[u.vScale.axis];if(_e(d)||isNaN(d))return!0};for(const u of i)if(!(r!==void 0&&c(u))&&((a===!1||o.indexOf(u.stack)===-1||a===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,r=this.chart.options.indexAxis;return Object.keys(t).filter(n=>t[n].axis===r).shift()}_getAxis(){const t={},r=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[se(this.chart.options.indexAxis==="x"?n.xAxisID:n.yAxisID,r)]=!0;return Object.keys(t)}_getStackIndex(t,r,n){const i=this._getStacks(t,n),a=r!==void 0?i.indexOf(r):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,r=this._cachedMeta,n=r.iScale,i=[];let a,o;for(a=0,o=r.data.length;a<o;++a)i.push(n.getPixelForValue(this.getParsed(a)[n.axis],a));const s=t.barThickness;return{min:s||ZW(r),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:r,_stacked:n,index:i},options:{base:a,minBarLength:o}}=this,s=a||0,l=this.getParsed(t),c=l._custom,u=Jp(c);let f=l[r.axis],d=0,h=n?this.applyStack(r,l,n):f,m,p;h!==f&&(d=h-f,h=f),u&&(f=c.barStart,h=c.barEnd-c.barStart,f!==0&&Mr(f)!==Mr(c.barEnd)&&(d=0),d+=f);const g=!_e(a)&&!u?a:d;let v=r.getPixelForValue(g);if(this.chart.getDataVisibility(t)?m=r.getPixelForValue(d+h):m=v,p=m-v,Math.abs(p)<o){p=tV(p,r,s)*o,f===s&&(v-=p/2);const b=r.getPixelForDecimal(0),x=r.getPixelForDecimal(1),S=Math.min(b,x),w=Math.max(b,x);v=Math.max(Math.min(v,w),S),m=v+p,n&&!u&&(l._stacks[r.axis]._visualValues[i]=r.getValueForPixel(m)-r.getValueForPixel(v))}if(v===r.getPixelForValue(s)){const b=Mr(p)*r.getLineWidthForValue(s)/2;v+=b,p-=b}return{size:p,base:v,head:m,center:m+p/2}}_calculateBarIndexPixels(t,r){const n=r.scale,i=this.options,a=i.skipNull,o=se(i.maxBarThickness,1/0);let s,l;const c=this._getAxisCount();if(r.grouped){const u=a?this._getStackCount(t):r.stackCount,f=i.barThickness==="flex"?QW(t,r,i,u*c):JW(t,r,i,u*c),d=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(se(d,this.getFirstScaleIdForIndexAxis())),m=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0)+h;s=f.start+f.chunk*m+f.chunk/2,l=Math.min(o,f.chunk*f.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),l=Math.min(o,r.min*r.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,r=t.vScale,n=t.data,i=n.length;let a=0;for(;a<i;++a)this.getParsed(a)[r.axis]!==null&&!n[a].hidden&&n[a].draw(this._ctx)}}function sV(e,t,r){let n=1,i=1,a=0,o=0;if(t<Ge){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),f=Math.cos(l),d=Math.sin(l),h=(x,S,w)=>Oo(x,s,l,!0)?1:Math.max(S,S*r,w,w*r),m=(x,S,w)=>Oo(x,s,l,!0)?-1:Math.min(S,S*r,w,w*r),p=h(0,c,f),g=h(ft,u,d),v=m(je,c,f),b=m(je+ft,u,d);n=(p-v)/2,i=(g-b)/2,a=-(p+v)/2,o=-(g+b)/2}return{ratioX:n,ratioY:i,offsetX:a,offsetY:o}}class lV extends xc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const r=t.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return r.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}}};constructor(t,r){super(t,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,r){const n=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=n;else{let a=l=>+n[l];if(he(n[t])){const{key:l="value"}=this._parsing;a=c=>+ci(n[c],l)}let o,s;for(o=t,s=t+r;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return nn(this.options.rotation-90)}_getCircumference(){return nn(this.options.circumference)}_getRotationExtents(){let t=Ge,r=-Ge;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),r=Math.max(r,a+o)}return{rotation:t,circumference:r-t}}update(t){const r=this.chart,{chartArea:n}=r,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(n.width,n.height)-o)/2,0),l=Math.min(f7(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:m,offsetY:p}=sV(f,u,l),g=(n.width-o)/d,v=(n.height-o)/h,b=Math.max(Math.min(g,v)/2,0),x=Y2(this.options.radius,b),S=Math.max(x*l,0),w=(x-S)/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=p*x,i.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(a,0,a.length,t)}_circumference(t,r){const n=this.options,i=this._cachedMeta,a=this._getCircumference();return r&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Ge)}updateElements(t,r,n,i){const a=i==="reset",o=this.chart,s=o.chartArea,c=o.options.animation,u=(s.left+s.right)/2,f=(s.top+s.bottom)/2,d=a&&c.animateScale,h=d?0:this.innerRadius,m=d?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(r,i);let v=this._getRotation(),b;for(b=0;b<r;++b)v+=this._circumference(b,a);for(b=r;b<r+n;++b){const x=this._circumference(b,a),S=t[b],w={x:u+this.offsetX,y:f+this.offsetY,startAngle:v,endAngle:v+x,circumference:x,outerRadius:m,innerRadius:h};g&&(w.options=p||this.resolveDataElementOptions(b,S.active?"active":i)),v+=x,this.updateElement(S,b,w,i)}}calculateTotal(){const t=this._cachedMeta,r=t.data;let n=0,i;for(i=0;i<r.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!r[i].hidden&&(n+=Math.abs(a))}return n}calculateCircumference(t){const r=this._cachedMeta.total;return r>0&&!isNaN(t)?Ge*(Math.abs(t)/r):0}getLabelAndValue(t){const r=this._cachedMeta,n=this.chart,i=n.data.labels||[],a=Rp(r._parsed[t],n.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let r=0;const n=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=n.data.datasets.length;i<a;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(r=Math.max(r,l.borderWidth||0,l.hoverBorderWidth||0));return r}getMaxOffset(t){let r=0;for(let n=0,i=t.length;n<i;++n){const a=this.resolveDataElementOptions(n);r=Math.max(r,a.offset||0,a.hoverOffset||0)}return r}_getRingWeightOffset(t){let r=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(r+=this._getRingWeight(n));return r}_getRingWeight(t){return Math.max(se(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class cV extends xc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const r=this._cachedMeta,{dataset:n,data:i=[],_dataset:a}=r,o=this.chart._animationsDisabled;let{start:s,count:l}=M7(r,i,o);this._drawStart=s,this._drawCount=l,j7(r)&&(s=0,l=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,r,n,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(r,i),d=o.axis,h=s.axis,{spanGaps:m,segment:p}=this.options,g=So(m)?m:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||i==="none",b=r+n,x=t.length;let S=r>0&&this.getParsed(r-1);for(let w=0;w<x;++w){const O=t[w],E=v?O:{};if(w<r||w>=b){E.skip=!0;continue}const C=this.getParsed(w),M=_e(C[h]),$=E[d]=o.getPixelForValue(C[d],w),j=E[h]=a||M?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,C,l):C[h],w);E.skip=isNaN($)||isNaN(j)||M,E.stop=w>0&&Math.abs(C[d]-S[d])>g,p&&(E.parsed=C,E.raw=c.data[w]),f&&(E.options=u||this.resolveDataElementOptions(w,O.active?"active":i)),v||this.updateElement(O,w,E,i),S=C}}getMaxOverflow(){const t=this._cachedMeta,r=t.dataset,n=r.options&&r.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function yi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Qp{static override(t){Object.assign(Qp.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return yi()}parse(){return yi()}format(){return yi()}add(){return yi()}diff(){return yi()}startOf(){return yi()}endOf(){return yi()}}var uV={_date:Qp};function fV(e,t,r,n){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const c=s._reversePixels?E7:fi;if(n){if(i._sharedOptions){const u=a[0],f=typeof u.getRange=="function"&&u.getRange(t);if(f){const d=c(a,t,r-f),h=c(a,t,r+f);return{lo:d.lo,hi:h.hi}}}}else{const u=c(a,t,r);if(l){const{vScale:f}=i._cachedMeta,{_parsed:d}=e,h=d.slice(0,u.lo+1).reverse().findIndex(p=>!_e(p[f.axis]));u.lo-=Math.max(0,h);const m=d.slice(u.hi).findIndex(p=>!_e(p[f.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:a.length-1}}function wc(e,t,r,n,i){const a=e.getSortedVisibleDatasetMetas(),o=r[t];for(let s=0,l=a.length;s<l;++s){const{index:c,data:u}=a[s],{lo:f,hi:d}=fV(a[s],t,o,i);for(let h=f;h<=d;++h){const m=u[h];m.skip||n(m,c,h)}}}function dV(e){const t=e.indexOf("x")!==-1,r=e.indexOf("y")!==-1;return function(n,i){const a=t?Math.abs(n.x-i.x):0,o=r?Math.abs(n.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function em(e,t,r,n,i){const a=[];return!i&&!e.isPointInArea(t)||wc(e,r,t,function(s,l,c){!i&&!Po(s,e.chartArea,0)||s.inRange(t.x,t.y,n)&&a.push({element:s,datasetIndex:l,index:c})},!0),a}function hV(e,t,r,n){let i=[];function a(o,s,l){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],n),{angle:f}=rS(o,{x:t.x,y:t.y});Oo(f,c,u)&&i.push({element:o,datasetIndex:s,index:l})}return wc(e,r,t,a),i}function pV(e,t,r,n,i,a){let o=[];const s=dV(r);let l=Number.POSITIVE_INFINITY;function c(u,f,d){const h=u.inRange(t.x,t.y,i);if(n&&!h)return;const m=u.getCenterPoint(i);if(!(!!a||e.isPointInArea(m))&&!h)return;const g=s(t,m);g<l?(o=[{element:u,datasetIndex:f,index:d}],l=g):g===l&&o.push({element:u,datasetIndex:f,index:d})}return wc(e,r,t,c),o}function tm(e,t,r,n,i,a){return!a&&!e.isPointInArea(t)?[]:r==="r"&&!n?hV(e,t,r,i):pV(e,t,r,n,i,a)}function US(e,t,r,n,i){const a=[],o=r==="x"?"inXRange":"inYRange";let s=!1;return wc(e,r,t,(l,c,u)=>{l[o]&&l[o](t[r],i)&&(a.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),n&&!s?[]:a}var mV={modes:{index(e,t,r,n){const i=gi(t,e),a=r.axis||"x",o=r.includeInvisible||!1,s=r.intersect?em(e,i,a,n,o):tm(e,i,a,!1,n,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,r,n){const i=gi(t,e),a=r.axis||"xy",o=r.includeInvisible||!1;let s=r.intersect?em(e,i,a,n,o):tm(e,i,a,!1,n,o);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;u<c.length;++u)s.push({element:c[u],datasetIndex:l,index:u})}return s},point(e,t,r,n){const i=gi(t,e),a=r.axis||"xy",o=r.includeInvisible||!1;return em(e,i,a,n,o)},nearest(e,t,r,n){const i=gi(t,e),a=r.axis||"xy",o=r.includeInvisible||!1;return tm(e,i,a,r.intersect,n,o)},x(e,t,r,n){const i=gi(t,e);return US(e,i,"x",r.intersect,n)},y(e,t,r,n){const i=gi(t,e);return US(e,i,"y",r.intersect,n)}}};const KS=["left","top","right","bottom"];function ko(e,t){return e.filter(r=>r.pos===t)}function qS(e,t){return e.filter(r=>KS.indexOf(r.pos)===-1&&r.box.axis===t)}function To(e,t){return e.sort((r,n)=>{const i=t?n:r,a=t?r:n;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function gV(e){const t=[];let r,n,i,a,o,s;for(r=0,n=(e||[]).length;r<n;++r)i=e[r],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:r,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function vV(e){const t={};for(const r of e){const{stack:n,pos:i,stackWeight:a}=r;if(!n||!KS.includes(i))continue;const o=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function yV(e,t){const r=vV(e),{vBoxMaxWidth:n,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:l}=s.box,c=r[s.stack],u=c&&s.stackWeight/c.weight;s.horizontal?(s.width=u?u*n:l&&t.availableWidth,s.height=i):(s.width=n,s.height=u?u*i:l&&t.availableHeight)}return r}function bV(e){const t=gV(e),r=To(t.filter(c=>c.box.fullSize),!0),n=To(ko(t,"left"),!0),i=To(ko(t,"right")),a=To(ko(t,"top"),!0),o=To(ko(t,"bottom")),s=qS(t,"x"),l=qS(t,"y");return{fullSize:r,leftAndTop:n.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:ko(t,"chartArea"),vertical:n.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function YS(e,t,r,n){return Math.max(e[r],t[r])+Math.max(e[n],t[n])}function GS(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function xV(e,t,r,n){const{pos:i,box:a}=r,o=e.maxPadding;if(!he(i)){r.size&&(e[i]-=r.size);const f=n[r.stack]||{size:0,count:1};f.size=Math.max(f.size,r.horizontal?a.height:a.width),r.size=f.size/f.count,e[i]+=r.size}a.getPadding&&GS(o,a.getPadding());const s=Math.max(0,t.outerWidth-YS(o,e,"left","right")),l=Math.max(0,t.outerHeight-YS(o,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,r.horizontal?{same:c,other:u}:{same:u,other:c}}function wV(e){const t=e.maxPadding;function r(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}function _V(e,t){const r=t.maxPadding;function n(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],r[o])}),a}return n(e?["left","right"]:["top","bottom"])}function Mo(e,t,r,n){const i=[];let a,o,s,l,c,u;for(a=0,o=e.length,c=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,_V(s.horizontal,t));const{same:f,other:d}=xV(t,r,s,n);c|=f&&i.length,u=u||d,l.fullSize||i.push(s)}return c&&Mo(i,t,r,n)||u}function _c(e,t,r,n,i){e.top=r,e.left=t,e.right=t+n,e.bottom=r+i,e.width=n,e.height=i}function XS(e,t,r,n){const i=r.padding;let{x:a,y:o}=t;for(const s of e){const l=s.box,c=n[s.stack]||{placed:0,weight:1},u=s.stackWeight/c.weight||1;if(s.horizontal){const f=t.w*u,d=c.size||l.height;wo(c.start)&&(o=c.start),l.fullSize?_c(l,i.left,o,r.outerWidth-i.right-i.left,d):_c(l,t.left+c.placed,o,f,d),c.start=o,c.placed+=f,o=l.bottom}else{const f=t.h*u,d=c.size||l.width;wo(c.start)&&(a=c.start),l.fullSize?_c(l,a,i.top,d,r.outerHeight-i.bottom-i.top):_c(l,a,t.top+c.placed,d,f),c.start=a,c.placed+=f,a=l.right}}t.x=a,t.y=o}var kn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(r){t.draw(r)}}]},e.boxes.push(t)},removeBox(e,t){const r=e.boxes?e.boxes.indexOf(t):-1;r!==-1&&e.boxes.splice(r,1)},configure(e,t,r){t.fullSize=r.fullSize,t.position=r.position,t.weight=r.weight},update(e,t,r,n){if(!e)return;const i=vr(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(r-i.height,0),s=bV(e.boxes),l=s.vertical,c=s.horizontal;Pe(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=l.reduce((p,g)=>g.box.options&&g.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:r,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),d=Object.assign({},i);GS(d,vr(n));const h=Object.assign({maxPadding:d,w:a,h:o,x:i.left,y:i.top},i),m=yV(l.concat(c),f);Mo(s.fullSize,h,f,m),Mo(l,h,f,m),Mo(c,h,f,m)&&Mo(l,h,f,m),wV(h),XS(s.leftAndTop,h,f,m),h.x+=h.w,h.y+=h.h,XS(s.rightAndBottom,h,f,m),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Pe(s.chartArea,p=>{const g=p.box;Object.assign(g,e.chartArea),g.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class ZS{acquireContext(t,r){}releaseContext(t){return!1}addEventListener(t,r,n){}removeEventListener(t,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,r,n,i){return r=Math.max(0,r||t.width),n=n||t.height,{width:r,height:Math.max(0,i?Math.floor(r/i):n)}}isAttached(t){return!0}updateConfig(t){}}class SV extends ZS{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Sc="$chartjs",OV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},JS=e=>e===null||e==="";function AV(e,t){const r=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[Sc]={initial:{height:n,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",JS(i)){const a=ES(e,"width");a!==void 0&&(e.width=a)}if(JS(n))if(e.style.height==="")e.height=e.width/(t||2);else{const a=ES(e,"height");a!==void 0&&(e.height=a)}return e}const QS=wW?{passive:!0}:!1;function EV(e,t,r){e&&e.addEventListener(t,r,QS)}function PV(e,t,r){e&&e.canvas&&e.canvas.removeEventListener(t,r,QS)}function CV(e,t){const r=OV[e.type]||e.type,{x:n,y:i}=gi(e,t);return{type:r,chart:t,native:e,x:n!==void 0?n:null,y:i!==void 0?i:null}}function Oc(e,t){for(const r of e)if(r===t||r.contains(t))return!0}function kV(e,t,r){const n=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Oc(s.addedNodes,n),o=o&&!Oc(s.removedNodes,n);o&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}function TV(e,t,r){const n=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Oc(s.removedNodes,n),o=o&&!Oc(s.addedNodes,n);o&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}const jo=new Map;let eO=0;function tO(){const e=window.devicePixelRatio;e!==eO&&(eO=e,jo.forEach((t,r)=>{r.currentDevicePixelRatio!==e&&t()}))}function MV(e,t){jo.size||window.addEventListener("resize",tO),jo.set(e,t)}function jV(e){jo.delete(e),jo.size||window.removeEventListener("resize",tO)}function DV(e,t,r){const n=e.canvas,i=n&&Yp(n);if(!i)return;const a=sS((s,l)=>{const c=i.clientWidth;r(s,l),c<i.clientWidth&&r()},window),o=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||a(c,u)});return o.observe(i),MV(e,a),o}function rm(e,t,r){r&&r.disconnect(),t==="resize"&&jV(e)}function NV(e,t,r){const n=e.canvas,i=sS(a=>{e.ctx!==null&&r(CV(a,e))},e);return EV(n,t,i),i}class IV extends ZS{acquireContext(t,r){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(AV(t,r),n):null}releaseContext(t){const r=t.canvas;if(!r[Sc])return!1;const n=r[Sc].initial;["height","width"].forEach(a=>{const o=n[a];_e(o)?r.removeAttribute(a):r.setAttribute(a,o)});const i=n.style||{};return Object.keys(i).forEach(a=>{r.style[a]=i[a]}),r.width=r.width,delete r[Sc],!0}addEventListener(t,r,n){this.removeEventListener(t,r);const i=t.$proxies||(t.$proxies={}),o={attach:kV,detach:TV,resize:DV}[r]||NV;i[r]=o(t,r,n)}removeEventListener(t,r){const n=t.$proxies||(t.$proxies={}),i=n[r];if(!i)return;({attach:rm,detach:rm,resize:rm}[r]||PV)(t,r,i),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,r,n,i){return xW(t,r,n,i)}isAttached(t){const r=t&&Yp(t);return!!(r&&r.isConnected)}}function $V(e){return!qp()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?SV:IV}class Tn{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:r,y:n}=this.getProps(["x","y"],t);return{x:r,y:n}}hasValue(){return So(this.x)&&So(this.y)}getProps(t,r){const n=this.$animations;if(!r||!n)return this;const i={};return t.forEach(a=>{i[a]=n[a]&&n[a].active()?n[a]._to:this[a]}),i}}function RV(e,t){const r=e.options.ticks,n=LV(e),i=Math.min(r.maxTicksLimit||n,n),a=r.major.enabled?BV(t):[],o=a.length,s=a[0],l=a[o-1],c=[];if(o>i)return zV(t,c,a,o/i),c;const u=FV(a,t,i);if(o>0){let f,d;const h=o>1?Math.round((l-s)/(o-1)):null;for(Ac(t,c,u,_e(h)?0:s-h,s),f=0,d=o-1;f<d;f++)Ac(t,c,u,a[f],a[f+1]);return Ac(t,c,u,l,_e(h)?t.length:l+h),c}return Ac(t,c,u),c}function LV(e){const t=e.options.offset,r=e._tickSize(),n=e._length/r+(t?0:1),i=e._maxLength/r;return Math.floor(Math.min(n,i))}function FV(e,t,r){const n=WV(e),i=t.length/r;if(!n)return Math.max(i,1);const a=b7(n);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function BV(e){const t=[];let r,n;for(r=0,n=e.length;r<n;r++)e[r].major&&t.push(r);return t}function zV(e,t,r,n){let i=0,a=r[0],o;for(n=Math.ceil(n),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=r[i*n])}function Ac(e,t,r,n,i){const a=se(n,0),o=Math.min(se(i,e.length),e.length);let s=0,l,c,u;for(r=Math.ceil(r),i&&(l=i-n,r=l/Math.floor(l/r)),u=a;u<0;)s++,u=Math.round(a+s*r);for(c=Math.max(a,0);c<o;c++)c===u&&(t.push(e[c]),s++,u=Math.round(a+s*r))}function WV(e){const t=e.length;let r,n;if(t<2)return!1;for(n=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==n)return!1;return n}const VV=e=>e==="left"?"right":e==="right"?"left":e,rO=(e,t,r)=>t==="top"||t==="left"?e[t]+r:e[t]-r,nO=(e,t)=>Math.min(t||e,e);function iO(e,t){const r=[],n=e.length/t,i=e.length;let a=0;for(;a<i;a+=n)r.push(e[Math.floor(a)]);return r}function HV(e,t,r){const n=e.ticks.length,i=Math.min(t,n-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),c;if(!(r&&(n===1?c=Math.max(l-a,o-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<a-s||l>o+s)))return l}function UV(e,t){Pe(e,r=>{const n=r.gc,i=n.length/2;let a;if(i>t){for(a=0;a<i;++a)delete r.data[n[a]];n.splice(0,i)}})}function Do(e){return e.drawTicks?e.tickLength:0}function aO(e,t){if(!e.display)return 0;const r=Rt(e.font,t),n=vr(e.padding);return(yt(e.text)?e.text.length:1)*r.lineHeight+n.height}function KV(e,t){return pi(e,{scale:t,type:"scale"})}function qV(e,t,r){return pi(e,{tick:r,index:t,type:"tick"})}function YV(e,t,r){let n=lS(e);return(r&&t!=="right"||!r&&t==="right")&&(n=VV(n)),n}function GV(e,t,r,n){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let f=0,d,h,m;const p=o-i,g=s-a;if(e.isHorizontal()){if(h=er(n,a,s),he(r)){const v=Object.keys(r)[0],b=r[v];m=u[v].getPixelForValue(b)+p-t}else r==="center"?m=(c.bottom+c.top)/2+p-t:m=rO(e,r,t);d=s-a}else{if(he(r)){const v=Object.keys(r)[0],b=r[v];h=u[v].getPixelForValue(b)-g+t}else r==="center"?h=(c.left+c.right)/2-g+t:h=rO(e,r,t);m=er(n,o,i),f=r==="left"?-ft:ft}return{titleX:h,titleY:m,maxWidth:d,rotation:f}}class ia extends Tn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,r){return t}getUserBounds(){let{_userMin:t,_userMax:r,_suggestedMin:n,_suggestedMax:i}=this;return t=Tr(t,Number.POSITIVE_INFINITY),r=Tr(r,Number.NEGATIVE_INFINITY),n=Tr(n,Number.POSITIVE_INFINITY),i=Tr(i,Number.NEGATIVE_INFINITY),{min:Tr(t,n),max:Tr(r,i),minDefined:dr(t),maxDefined:dr(r)}}getMinMax(t){let{min:r,max:n,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:r,max:n};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)o=s[l].controller.getMinMax(this,t),i||(r=Math.min(r,o.min)),a||(n=Math.max(n,o.max));return r=a&&r>n?n:r,n=i&&r>n?r:n,{min:Tr(r,Tr(n,r)),max:Tr(n,Tr(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Fe(this.options.beforeUpdate,[this])}update(t,r,n){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=r,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=J7(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?iO(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=RV(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,t=!t),this._startPixel=r,this._endPixel=n,this._reversePixels=t,this._length=n-r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Fe(this.options.afterUpdate,[this])}beforeSetDimensions(){Fe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Fe(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Fe(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Fe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const r=this.options.ticks;let n,i,a;for(n=0,i=t.length;n<i;n++)a=t[n],a.label=Fe(r.callback,[a.value,n,t],this)}afterTickToLabelConversion(){Fe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Fe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,r=t.ticks,n=nO(this.ticks.length,t.ticks.maxTicksLimit),i=r.minRotation||0,a=r.maxRotation;let o=i,s,l,c;if(!this._isVisible()||!r.display||i>=a||n<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),f=u.widest.width,d=u.highest.height,h=Ct(this.chart.width-f,0,this.maxWidth);s=t.offset?this.maxWidth/n:h/(n-1),f+6>s&&(s=h/(n-(t.offset?.5:1)),l=this.maxHeight-Do(t.grid)-r.padding-aO(t.title,this.chart.options.font),c=Math.sqrt(f*f+d*d),o=S7(Math.min(Math.asin(Ct((u.highest.height+6)/s,-1,1)),Math.asin(Ct(l/c,-1,1))-Math.asin(Ct(d/c,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Fe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Fe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:r,options:{ticks:n,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=aO(i,r.options.font);if(s?(t.width=this.maxWidth,t.height=Do(a)+l):(t.height=this.maxHeight,t.width=Do(a)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:f,highest:d}=this._getLabelSizes(),h=n.padding*2,m=nn(this.labelRotation),p=Math.cos(m),g=Math.sin(m);if(s){const v=n.mirror?0:g*f.width+p*d.height;t.height=Math.min(this.maxHeight,t.height+v+h)}else{const v=n.mirror?0:p*f.width+g*d.height;t.width=Math.min(this.maxWidth,t.width+v+h)}this._calculatePadding(c,u,g,p)}}this._handleMargins(),s?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,r,n,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;l?c?(d=i*t.width,h=n*r.height):(d=n*t.height,h=i*r.width):a==="start"?h=r.width:a==="end"?d=t.width:a!=="inner"&&(d=t.width/2,h=r.width/2),this.paddingLeft=Math.max((d-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-f+o)*this.width/(this.width-f),0)}else{let u=r.height/2,f=t.height/2;a==="start"?(u=0,f=t.height):a==="end"&&(u=r.height,f=0),this.paddingTop=u+o,this.paddingBottom=f+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Fe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:r}=this.options;return r==="top"||r==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let r,n;for(r=0,n=t.length;r<n;r++)_e(t[r].label)&&(t.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=iO(n,r)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,r,n){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(r/nO(r,n));let c=0,u=0,f,d,h,m,p,g,v,b,x,S,w;for(f=0;f<r;f+=l){if(m=t[f].label,p=this._resolveTickFontOptions(f),i.font=g=p.string,v=a[g]=a[g]||{data:{},gc:[]},b=p.lineHeight,x=S=0,!_e(m)&&!yt(m))x=pS(i,v.data,v.gc,x,m),S=b;else if(yt(m))for(d=0,h=m.length;d<h;++d)w=m[d],!_e(w)&&!yt(w)&&(x=pS(i,v.data,v.gc,x,w),S+=b);o.push(x),s.push(S),c=Math.max(x,c),u=Math.max(S,u)}UV(a,r);const O=o.indexOf(c),E=s.indexOf(u),C=M=>({width:o[M]||0,height:s[M]||0});return{first:C(0),last:C(r-1),widest:C(O),highest:C(E),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,r){return NaN}getValueForPixel(t){}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const r=this._startPixel+t*this._length;return A7(this._alignToPixels?hi(this.chart,r,0):r)}getDecimalForPixel(t){const r=(t-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:r}=this;return t<0&&r<0?r:t>0&&r>0?t:0}getContext(t){const r=this.ticks||[];if(t>=0&&t<r.length){const n=r[t];return n.$context||(n.$context=qV(this.getContext(),t,n))}return this.$context||(this.$context=KV(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,r=nn(this.labelRotation),n=Math.abs(Math.cos(r)),i=Math.abs(Math.sin(r)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*n>s*i?s/n:l/i:l*i<s*n?l/n:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const r=this.axis,n=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=Do(a),h=[],m=s.setContext(this.getContext()),p=m.display?m.width:0,g=p/2,v=function(W){return hi(n,W,p)};let b,x,S,w,O,E,C,M,$,j,_,I;if(o==="top")b=v(this.bottom),E=this.bottom-d,M=b-g,j=v(t.top)+g,I=t.bottom;else if(o==="bottom")b=v(this.top),j=t.top,I=v(t.bottom)-g,E=b+g,M=this.top+d;else if(o==="left")b=v(this.right),O=this.right-d,C=b-g,$=v(t.left)+g,_=t.right;else if(o==="right")b=v(this.left),$=t.left,_=v(t.right)-g,O=b+g,C=this.left+d;else if(r==="x"){if(o==="center")b=v((t.top+t.bottom)/2+.5);else if(he(o)){const W=Object.keys(o)[0],H=o[W];b=v(this.chart.scales[W].getPixelForValue(H))}j=t.top,I=t.bottom,E=b+g,M=E+d}else if(r==="y"){if(o==="center")b=v((t.left+t.right)/2);else if(he(o)){const W=Object.keys(o)[0],H=o[W];b=v(this.chart.scales[W].getPixelForValue(H))}O=b-g,C=O-d,$=t.left,_=t.right}const D=se(i.ticks.maxTicksLimit,f),L=Math.max(1,Math.ceil(f/D));for(x=0;x<f;x+=L){const W=this.getContext(x),H=a.setContext(W),te=s.setContext(W),Q=H.lineWidth,F=H.color,U=te.dash||[],V=te.dashOffset,re=H.tickWidth,Z=H.tickColor,J=H.tickBorderDash||[],ee=H.tickBorderDashOffset;S=HV(this,x,l),S!==void 0&&(w=hi(n,S,Q),c?O=C=$=_=w:E=M=j=I=w,h.push({tx1:O,ty1:E,tx2:C,ty2:M,x1:$,y1:j,x2:_,y2:I,width:Q,color:F,borderDash:U,borderDashOffset:V,tickWidth:re,tickColor:Z,tickBorderDash:J,tickBorderDashOffset:ee}))}return this._ticksLength=f,this._borderValue=b,h}_computeLabelItems(t){const r=this.axis,n=this.options,{position:i,ticks:a}=n,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:f}=a,d=Do(n.grid),h=d+u,m=f?-u:h,p=-nn(this.labelRotation),g=[];let v,b,x,S,w,O,E,C,M,$,j,_,I="middle";if(i==="top")O=this.bottom-m,E=this._getXAxisLabelAlignment();else if(i==="bottom")O=this.top+m,E=this._getXAxisLabelAlignment();else if(i==="left"){const L=this._getYAxisLabelAlignment(d);E=L.textAlign,w=L.x}else if(i==="right"){const L=this._getYAxisLabelAlignment(d);E=L.textAlign,w=L.x}else if(r==="x"){if(i==="center")O=(t.top+t.bottom)/2+h;else if(he(i)){const L=Object.keys(i)[0],W=i[L];O=this.chart.scales[L].getPixelForValue(W)+h}E=this._getXAxisLabelAlignment()}else if(r==="y"){if(i==="center")w=(t.left+t.right)/2-h;else if(he(i)){const L=Object.keys(i)[0],W=i[L];w=this.chart.scales[L].getPixelForValue(W)}E=this._getYAxisLabelAlignment(d).textAlign}r==="y"&&(l==="start"?I="top":l==="end"&&(I="bottom"));const D=this._getLabelSizes();for(v=0,b=s.length;v<b;++v){x=s[v],S=x.label;const L=a.setContext(this.getContext(v));C=this.getPixelForTick(v)+a.labelOffset,M=this._resolveTickFontOptions(v),$=M.lineHeight,j=yt(S)?S.length:1;const W=j/2,H=L.color,te=L.textStrokeColor,Q=L.textStrokeWidth;let F=E;o?(w=C,E==="inner"&&(v===b-1?F=this.options.reverse?"left":"right":v===0?F=this.options.reverse?"right":"left":F="center"),i==="top"?c==="near"||p!==0?_=-j*$+$/2:c==="center"?_=-D.highest.height/2-W*$+$:_=-D.highest.height+$/2:c==="near"||p!==0?_=$/2:c==="center"?_=D.highest.height/2-W*$:_=D.highest.height-j*$,f&&(_*=-1),p!==0&&!L.showLabelBackdrop&&(w+=$/2*Math.sin(p))):(O=C,_=(1-j)*$/2);let U;if(L.showLabelBackdrop){const V=vr(L.backdropPadding),re=D.heights[v],Z=D.widths[v];let J=_-V.top,ee=0-V.left;switch(I){case"middle":J-=re/2;break;case"bottom":J-=re;break}switch(E){case"center":ee-=Z/2;break;case"right":ee-=Z;break;case"inner":v===b-1?ee-=Z:v>0&&(ee-=Z/2);break}U={left:ee,top:J,width:Z+V.width,height:re+V.height,color:L.backdropColor}}g.push({label:S,font:M,textOffset:_,options:{rotation:p,color:H,strokeColor:te,strokeWidth:Q,textAlign:F,textBaseline:I,translation:[w,O],backdrop:U}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:r}=this.options;if(-nn(this.labelRotation))return t==="top"?"left":"right";let i="center";return r.align==="start"?i="left":r.align==="end"?i="right":r.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:r,ticks:{crossAlign:n,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let c,u;return r==="left"?i?(u=this.right+a,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u=this.left)):r==="right"?i?(u=this.left+a,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:r},left:n,top:i,width:a,height:o}=this;r&&(t.save(),t.fillStyle=r,t.fillRect(n,i,a,o),t.restore())}getLineWidthForValue(t){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?r.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const r=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(r.display)for(a=0,o=i.length;a<o;++a){const l=i[a];r.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),r.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:r,options:{border:n,grid:i}}=this,a=n.setContext(this.getContext()),o=n.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,f,d;this.isHorizontal()?(c=hi(t,this.left,o)-o/2,u=hi(t,this.right,s)+s/2,f=d=l):(f=hi(t,this.top,o)-o/2,d=hi(t,this.bottom,s)+s/2,c=u=l),r.save(),r.lineWidth=a.width,r.strokeStyle=a.color,r.beginPath(),r.moveTo(c,f),r.lineTo(u,d),r.stroke(),r.restore()}drawLabels(t){if(!this.options.ticks.display)return;const n=this.ctx,i=this._computeLabelArea();i&&zp(n,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,c=o.label,u=o.textOffset;dc(n,c,0,u,l,s)}i&&Wp(n)}drawTitle(){const{ctx:t,options:{position:r,title:n,reverse:i}}=this;if(!n.display)return;const a=Rt(n.font),o=vr(n.padding),s=n.align;let l=a.lineHeight/2;r==="bottom"||r==="center"||he(r)?(l+=o.bottom,yt(n.text)&&(l+=a.lineHeight*(n.text.length-1))):l+=o.top;const{titleX:c,titleY:u,maxWidth:f,rotation:d}=GV(this,l,r,s);dc(t,n.text,0,0,a,{color:n.color,maxWidth:f,rotation:d,textAlign:YV(s,r,i),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,r=t.ticks&&t.ticks.z||0,n=se(t.grid&&t.grid.z,-1),i=se(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==ia.prototype.draw?[{z:r,draw:a=>{this.draw(a)}}]:[{z:n,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:r,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let a,o;for(a=0,o=r.length;a<o;++a){const s=r[a];s[n]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const r=this.options.ticks.setContext(this.getContext(t));return Rt(r.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ec{constructor(t,r,n){this.type=t,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const r=Object.getPrototypeOf(t);let n;JV(r)&&(n=this.register(r));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,XV(t,o,n),this.override&&et.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const r=this.items,n=t.id,i=this.scope;n in r&&delete r[n],i&&n in et[i]&&(delete et[i][n],this.override&&delete di[n])}}function XV(e,t,r){const n=bo(Object.create(null),[r?et.get(r):{},et.get(t),e.defaults]);et.set(t,n),e.defaultRoutes&&ZV(t,e.defaultRoutes),e.descriptors&&et.describe(t,e.descriptors)}function ZV(e,t){Object.keys(t).forEach(r=>{const n=r.split("."),i=n.pop(),a=[e].concat(n).join("."),o=t[r].split("."),s=o.pop(),l=o.join(".");et.route(a,i,l,s)})}function JV(e){return"id"in e&&"defaults"in e}class QV{constructor(){this.controllers=new Ec(xc,"datasets",!0),this.elements=new Ec(Tn,"elements"),this.plugins=new Ec(Object,"plugins"),this.scales=new Ec(ia,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,r,n){[...r].forEach(i=>{const a=n||this._getRegistryForType(i);n||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):Pe(i,o=>{const s=n||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,r,n){const i=jp(t);Fe(n["before"+i],[],n),r[t](n),Fe(n["after"+i],[],n)}_getRegistryForType(t){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(t))return n}return this.plugins}_get(t,r,n){const i=r.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var jr=new QV;class e9{constructor(){this._init=[]}notify(t,r,n,i){r==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,r,n);return r==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,r,n,i){i=i||{};for(const a of t){const o=a.plugin,s=o[n],l=[r,i,a.options];if(Fe(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){_e(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),r}_createDescriptors(t,r){const n=t&&t.config,i=se(n.options&&n.options.plugins,{}),a=t9(n);return i===!1&&!r?[]:n9(t,a,i,r)}_notifyStateChanges(t){const r=this._oldCache||[],n=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(r,n),t,"stop"),this._notify(i(n,r),t,"start")}}function t9(e){const t={},r=[],n=Object.keys(jr.plugins.items);for(let a=0;a<n.length;a++)r.push(jr.getPlugin(n[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];r.indexOf(o)===-1&&(r.push(o),t[o.id]=!0)}return{plugins:r,localIds:t}}function r9(e,t){return!t&&e===!1?null:e===!0?{}:e}function n9(e,{plugins:t,localIds:r},n,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,c=r9(n[l],i);c!==null&&a.push({plugin:s,options:i9(e.config,{plugin:s,local:r[l]},c,o)})}return a}function i9(e,{plugin:t,local:r},n,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(n,a);return r&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function nm(e,t){const r=et.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||r.indexAxis||"x"}function a9(e,t){let r=e;return e==="_index_"?r=t:e==="_value_"&&(r=t==="x"?"y":"x"),r}function o9(e,t){return e===t?"_index_":"_value_"}function oO(e){if(e==="x"||e==="y"||e==="r")return e}function s9(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function im(e,...t){if(oO(e))return e;for(const r of t){const n=r.axis||s9(r.position)||e.length>1&&oO(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function sO(e,t,r){if(r[t+"AxisID"]===e)return{axis:t}}function l9(e,t){if(t.data&&t.data.datasets){const r=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(r.length)return sO(e,"x",r[0])||sO(e,"y",r[0])}return{}}function c9(e,t){const r=di[e.type]||{scales:{}},n=t.scales||{},i=nm(e.type,t),a=Object.create(null);return Object.keys(n).forEach(o=>{const s=n[o];if(!he(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=im(o,s,l9(o,e),et.scales[s.type]),c=o9(l,i),u=r.scales||{};a[o]=xo(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||nm(s,t),u=(di[s]||{}).scales||{};Object.keys(u).forEach(f=>{const d=a9(f,l),h=o[d+"AxisID"]||d;a[h]=a[h]||Object.create(null),xo(a[h],[{axis:d},n[h],u[f]])})}),Object.keys(a).forEach(o=>{const s=a[o];xo(s,[et.scales[s.type],et.scale])}),a}function lO(e){const t=e.options||(e.options={});t.plugins=se(t.plugins,{}),t.scales=c9(e,t)}function cO(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function u9(e){return e=e||{},e.data=cO(e.data),lO(e),e}const uO=new Map,fO=new Set;function Pc(e,t){let r=uO.get(e);return r||(r=t(),uO.set(e,r),fO.add(r)),r}const No=(e,t,r)=>{const n=ci(t,r);n!==void 0&&e.add(n)};class f9{constructor(t){this._config=u9(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=cO(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),lO(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Pc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,r){return Pc(`${t}.transition.${r}`,()=>[[`datasets.${t}.transitions.${r}`,`transitions.${r}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,r){return Pc(`${t}-${r}`,()=>[[`datasets.${t}.elements.${r}`,`datasets.${t}`,`elements.${r}`,""]])}pluginScopeKeys(t){const r=t.id,n=this.type;return Pc(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,r){const n=this._scopeCache;let i=n.get(t);return(!i||r)&&(i=new Map,n.set(t,i)),i}getOptionScopes(t,r,n){const{options:i,type:a}=this,o=this._cachedScopes(t,n),s=o.get(r);if(s)return s;const l=new Set;r.forEach(u=>{t&&(l.add(t),u.forEach(f=>No(l,t,f))),u.forEach(f=>No(l,i,f)),u.forEach(f=>No(l,di[a]||{},f)),u.forEach(f=>No(l,et,f)),u.forEach(f=>No(l,Lp,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),fO.has(r)&&o.set(r,c),c}chartOptionScopes(){const{options:t,type:r}=this;return[t,di[r]||{},et.datasets[r]||{},{type:r},et,Lp]}resolveNamedOptions(t,r,n,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=dO(this._resolverCache,t,i);let l=o;if(h9(o,r)){a.$shared=!1,n=Pn(n)?n():n;const c=this.createResolver(t,n,s);l=ta(o,n,c)}for(const c of r)a[c]=l[c];return a}createResolver(t,r,n=[""],i){const{resolver:a}=dO(this._resolverCache,t,n);return he(r)?ta(a,r,void 0,i):a}}function dO(e,t,r){let n=e.get(t);n||(n=new Map,e.set(t,n));const i=r.join();let a=n.get(i);return a||(a={resolver:Hp(t,r),subPrefixes:r.filter(s=>!s.toLowerCase().includes("hover"))},n.set(i,a)),a}const d9=e=>he(e)&&Object.getOwnPropertyNames(e).some(t=>Pn(e[t]));function h9(e,t){const{isScriptable:r,isIndexable:n}=yS(e);for(const i of t){const a=r(i),o=n(i),s=(o||a)&&e[i];if(a&&(Pn(s)||d9(s))||o&&yt(s))return!0}return!1}var p9="4.5.0";const m9=["top","bottom","left","right","chartArea"];function hO(e,t){return e==="top"||e==="bottom"||m9.indexOf(e)===-1&&t==="x"}function pO(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}function mO(e){const t=e.chart,r=t.options.animation;t.notifyPlugins("afterRender"),Fe(r&&r.onComplete,[e],t)}function g9(e){const t=e.chart,r=t.options.animation;Fe(r&&r.onProgress,[e],t)}function gO(e){return qp()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Cc={},vO=e=>{const t=gO(e);return Object.values(Cc).filter(r=>r.canvas===t).pop()};function v9(e,t,r){const n=Object.keys(e);for(const i of n){const a=+i;if(a>=t){const o=e[i];delete e[i],(r>0||a>t)&&(e[a+r]=o)}}}function y9(e,t,r,n){return!r||e.type==="mouseout"?null:n?t:e}let Lt=class{static defaults=et;static instances=Cc;static overrides=di;static registry=jr;static version=p9;static getChart=vO;static register(...t){jr.add(...t),yO()}static unregister(...t){jr.remove(...t),yO()}constructor(t,r){const n=this.config=new f9(r),i=gO(t),a=vO(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||$V(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=u7(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new e9,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=k7(f=>this.update(f),o.resizeDelay||0),this._dataChanges=[],Cc[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}an.listen(this,"complete",mO),an.listen(this,"progress",g9),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:r},width:n,height:i,_aspectRatio:a}=this;return _e(t)?r&&a?a:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return jr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():AS(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return mS(this.canvas,this.ctx),this}stop(){return an.stop(this),this}resize(t,r){an.running(this)?this._resizeBeforeDraw={width:t,height:r}:this._resize(t,r)}_resize(t,r){const n=this.options,i=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,r,a),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,AS(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Fe(n.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};Pe(r,(n,i)=>{n.id=i})}buildOrUpdateScales(){const t=this.options,r=t.scales,n=this.scales,i=Object.keys(n).reduce((o,s)=>(o[s]=!1,o),{});let a=[];r&&(a=a.concat(Object.keys(r).map(o=>{const s=r[o],l=im(o,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Pe(a,o=>{const s=o.options,l=s.id,c=im(l,s),u=se(s.type,o.dtype);(s.position===void 0||hO(s.position,c)!==hO(o.dposition))&&(s.position=o.dposition),i[l]=!0;let f=null;if(l in n&&n[l].type===u)f=n[l];else{const d=jr.getScale(u);f=new d({id:l,type:u,ctx:this.ctx,chart:this}),n[f.id]=f}f.init(s,t)}),Pe(i,(o,s)=>{o||delete n[s]}),Pe(n,o=>{kn.configure(this,o,o.options),kn.addBox(this,o)})}_updateMetasets(){const t=this._metasets,r=this.data.datasets.length,n=t.length;if(t.sort((i,a)=>i.index-a.index),n>r){for(let i=r;i<n;++i)this._destroyDatasetMeta(i);t.splice(r,n-r)}this._sortedMetasets=t.slice(0).sort(pO("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:r}}=this;t.length>r.length&&delete this._stacks,t.forEach((n,i)=>{r.filter(a=>a===n._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],r=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=r.length;n<i;n++){const a=r[n];let o=this.getDatasetMeta(n);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=s,o.indexAxis=a.indexAxis||nm(s,this.options),o.order=a.order||0,o.index=n,o.label=""+a.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const l=jr.getController(s),{datasetElementType:c,dataElementType:u}=et.datasets[s];Object.assign(l,{dataElementType:jr.getElement(u),datasetElementType:c&&jr.getElement(c)}),o.controller=new l(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Pe(this.data.datasets,(t,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const r=this.config;r.update();const n=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:f}=this.getDatasetMeta(c),d=!i&&a.indexOf(f)===-1;f.buildOrUpdateElements(d),o=Math.max(+f.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||Pe(a,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(pO("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Pe(this.scales,t=>{kn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!Z2(r,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:a}of r){const o=n==="_removeElements"?-a:a;v9(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=n(0);for(let a=1;a<r;a++)if(!Z2(i,n(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;kn.update(this,this.width,this.height,t);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],Pe(this.boxes,i=>{n&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let r=0,n=this.data.datasets.length;r<n;++r)this.getDatasetMeta(r).controller.configure();for(let r=0,n=this.data.datasets.length;r<n;++r)this._updateDataset(r,Pn(t)?t({datasetIndex:r}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,r){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:r,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(n.controller._update(r),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(an.has(this)?this.attached&&!an.running(this)&&an.start(this):(this.draw(),mO({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:n,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const r=this._layers;for(t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(this.chartArea);for(this._drawDatasets();t<r.length;++t)r[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const r=this._sortedMetasets,n=[];let i,a;for(i=0,a=r.length;i<a;++i){const o=r[i];(!t||o.visible)&&n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let r=t.length-1;r>=0;--r)this._drawDataset(t[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const r=this.ctx,n={meta:t,index:t.index,cancelable:!0},i=IW(this,t);this.notifyPlugins("beforeDatasetDraw",n)!==!1&&(i&&zp(r,i),t.controller.draw(),i&&Wp(r),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return Po(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,r,n,i){const a=mV.modes[r];return typeof a=="function"?a(this,t,n,i):[]}getDatasetMeta(t){const r=this.data.datasets[t],n=this._metasets;let i=n.filter(a=>a&&a._dataset===r).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:t,_dataset:r,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=pi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const r=this.data.datasets[t];if(!r)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(t,r){const n=this.getDatasetMeta(t);n.hidden=!r}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,r,n){const i=n?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);wo(r)?(a.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(a,{visible:n}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,r){this._updateVisibility(t,r,!1)}show(t,r){this._updateVisibility(t,r,!0)}_destroyDatasetMeta(t){const r=this._metasets[t];r&&r.controller&&r.controller._destroy(),delete this._metasets[t]}_stop(){let t,r;for(this.stop(),an.remove(this),t=0,r=this.data.datasets.length;t<r;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:r}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),mS(t,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete Cc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,r=this.platform,n=(a,o)=>{r.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};Pe(this.options.events,a=>n(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,r=this.platform,n=(l,c)=>{r.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(r.removeEventListener(this,l,c),delete t[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",a),n("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),n("attach",s)},r.isAttached(this.canvas)?s():o()}unbindEvents(){Pe(this._listeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._listeners={},Pe(this._responsiveListeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,r,n){const i=n?"set":"remove";let a,o,s,l;for(r==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const r=this._active||[],n=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!lc(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(t,r,n){return this._plugins.notify(this,t,r,n)}isPluginEnabled(t){return this._plugins._cache.filter(r=>r.plugin.id===t).length===1}_updateHoverStyles(t,r,n){const i=this.options.hover,a=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),o=a(r,t),s=n?t:a(t,r);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,r){const n={event:t,replay:r,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,i)===!1)return;const a=this._handleEvent(t,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(a||n.changed)&&this.render(),this}_handleEvent(t,r,n){const{_active:i=[],options:a}=this,o=r,s=this._getActiveElements(t,i,n,o),l=g7(t),c=y9(t,this._lastEvent,n,l);n&&(this._lastEvent=null,Fe(a.onHover,[t,s,this],this),l&&Fe(a.onClick,[t,s,this],this));const u=!lc(s,i);return(u||r)&&(this._active=s,this._updateHoverStyles(s,i,r)),this._lastEvent=c,u}_getActiveElements(t,r,n,i){if(t.type==="mouseout")return[];if(!n)return r;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}};function yO(){return Pe(Lt.instances,e=>e._plugins.invalidate())}function b9(e,t,r){const{startAngle:n,x:i,y:a,outerRadius:o,innerRadius:s,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,f=Math.min(c/o,gr(n-r));if(e.beginPath(),e.arc(i,a,o-c/2,n+f/2,r-f/2),s>0){const d=Math.min(c/s,gr(n-r));e.arc(i,a,s+c/2,r-d/2,n+d/2,!0)}else{const d=Math.min(c/2,o*gr(n-r));if(u==="round")e.arc(i,a,d,r-je/2,n+je/2,!0);else if(u==="bevel"){const h=2*d*d,m=-h*Math.cos(r+je/2)+i,p=-h*Math.sin(r+je/2)+a,g=h*Math.cos(n+je/2)+i,v=h*Math.sin(n+je/2)+a;e.lineTo(m,p),e.lineTo(g,v)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function x9(e,t,r){const{startAngle:n,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(a,o,s,n-c,r+c),l>i?(c=i/l,e.arc(a,o,l,r+c,n-c,!0)):e.arc(a,o,i,r+ft,n-ft),e.closePath(),e.clip()}function w9(e){return Vp(e,["outerStart","outerEnd","innerStart","innerEnd"])}function _9(e,t,r,n){const i=w9(e.options.borderRadius),a=(r-t)/2,o=Math.min(a,n*t/2),s=l=>{const c=(r-Math.min(a,l))*n/2;return Ct(l,0,Math.min(a,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Ct(i.innerStart,0,o),innerEnd:Ct(i.innerEnd,0,o)}}function aa(e,t,r,n){return{x:r+e*Math.cos(t),y:n+e*Math.sin(t)}}function kc(e,t,r,n,i,a){const{x:o,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,f=Math.max(t.outerRadius+n+r-c,0),d=u>0?u+n+r+c:0;let h=0;const m=i-l;if(n){const L=u>0?u-n:0,W=f>0?f-n:0,H=(L+W)/2,te=H!==0?m*H/(H+n):m;h=(m-te)/2}const p=Math.max(.001,m*f-r/je)/f,g=(m-p)/2,v=l+g+h,b=i-g-h,{outerStart:x,outerEnd:S,innerStart:w,innerEnd:O}=_9(t,d,f,b-v),E=f-x,C=f-S,M=v+x/E,$=b-S/C,j=d+w,_=d+O,I=v+w/j,D=b-O/_;if(e.beginPath(),a){const L=(M+$)/2;if(e.arc(o,s,f,M,L),e.arc(o,s,f,L,$),S>0){const Q=aa(C,$,o,s);e.arc(Q.x,Q.y,S,$,b+ft)}const W=aa(_,b,o,s);if(e.lineTo(W.x,W.y),O>0){const Q=aa(_,D,o,s);e.arc(Q.x,Q.y,O,b+ft,D+Math.PI)}const H=(b-O/d+(v+w/d))/2;if(e.arc(o,s,d,b-O/d,H,!0),e.arc(o,s,d,H,v+w/d,!0),w>0){const Q=aa(j,I,o,s);e.arc(Q.x,Q.y,w,I+Math.PI,v-ft)}const te=aa(E,v,o,s);if(e.lineTo(te.x,te.y),x>0){const Q=aa(E,M,o,s);e.arc(Q.x,Q.y,x,v-ft,M)}}else{e.moveTo(o,s);const L=Math.cos(M)*f+o,W=Math.sin(M)*f+s;e.lineTo(L,W);const H=Math.cos($)*f+o,te=Math.sin($)*f+s;e.lineTo(H,te)}e.closePath()}function S9(e,t,r,n,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){kc(e,t,r,n,l,i);for(let c=0;c<a;++c)e.fill();isNaN(s)||(l=o+(s%Ge||Ge))}return kc(e,t,r,n,l,i),e.fill(),l}function O9(e,t,r,n,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:f,borderDashOffset:d,borderRadius:h}=l,m=l.borderAlign==="inner";if(!c)return;e.setLineDash(f||[]),e.lineDashOffset=d,m?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let p=t.endAngle;if(a){kc(e,t,r,n,p,i);for(let g=0;g<a;++g)e.stroke();isNaN(s)||(p=o+(s%Ge||Ge))}m&&x9(e,t,p),l.selfJoin&&p-o>=je&&h===0&&u!=="miter"&&b9(e,t,p),a||(kc(e,t,r,n,p,i),e.stroke())}class am extends Tn{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,r,n){const i=this.getProps(["x","y"],n),{angle:a,distance:o}=rS(i,{x:t,y:r}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,h=se(f,l-s),m=Oo(a,s,l)&&s!==l,p=h>=Ge||m,g=Cn(o,c+d,u+d);return p&&g}getCenterPoint(t){const{x:r,y:n,startAngle:i,endAngle:a,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,u=(i+a)/2,f=(o+s+c+l)/2;return{x:r+Math.cos(u)*f,y:n+Math.sin(u)*f}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:r,circumference:n}=this,i=(r.offset||0)/4,a=(r.spacing||0)/2,o=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=n>Ge?Math.floor(n/Ge):0,n===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(je,n||0)),c=i*l;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,S9(t,this,c,a,o),O9(t,this,c,a,o),t.restore()}}function bO(e,t,r=t){e.lineCap=se(r.borderCapStyle,t.borderCapStyle),e.setLineDash(se(r.borderDash,t.borderDash)),e.lineDashOffset=se(r.borderDashOffset,t.borderDashOffset),e.lineJoin=se(r.borderJoinStyle,t.borderJoinStyle),e.lineWidth=se(r.borderWidth,t.borderWidth),e.strokeStyle=se(r.borderColor,t.borderColor)}function A9(e,t,r){e.lineTo(r.x,r.y)}function E9(e){return e.stepped?V7:e.tension||e.cubicInterpolationMode==="monotone"?H7:A9}function xO(e,t,r={}){const n=e.length,{start:i=0,end:a=n-1}=r,{start:o,end:s}=t,l=Math.max(i,o),c=Math.min(a,s),u=i<o&&a<o||i>s&&a>s;return{count:n,start:l,loop:t.loop,ilen:c<l&&!u?n+c-l:c-l}}function P9(e,t,r,n){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:c}=xO(i,r,n),u=E9(a);let{move:f=!0,reverse:d}=n||{},h,m,p;for(h=0;h<=c;++h)m=i[(s+(d?c-h:h))%o],!m.skip&&(f?(e.moveTo(m.x,m.y),f=!1):u(e,p,m,d,a.stepped),p=m);return l&&(m=i[(s+(d?c:0))%o],u(e,p,m,d,a.stepped)),!!l}function C9(e,t,r,n){const i=t.points,{count:a,start:o,ilen:s}=xO(i,r,n),{move:l=!0,reverse:c}=n||{};let u=0,f=0,d,h,m,p,g,v;const b=S=>(o+(c?s-S:S))%a,x=()=>{p!==g&&(e.lineTo(u,g),e.lineTo(u,p),e.lineTo(u,v))};for(l&&(h=i[b(0)],e.moveTo(h.x,h.y)),d=0;d<=s;++d){if(h=i[b(d)],h.skip)continue;const S=h.x,w=h.y,O=S|0;O===m?(w<p?p=w:w>g&&(g=w),u=(f*u+S)/++f):(x(),e.lineTo(S,w),m=O,f=0,p=g=w),v=w}x()}function om(e){const t=e.options,r=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!r?C9:P9}function k9(e){return e.stepped?_W:e.tension||e.cubicInterpolationMode==="monotone"?SW:vi}function T9(e,t,r,n){let i=t._path;i||(i=t._path=new Path2D,t.path(i,r,n)&&i.closePath()),bO(e,t.options),e.stroke(i)}function M9(e,t,r,n){const{segments:i,options:a}=t,o=om(t);for(const s of i)bO(e,a,s.style),e.beginPath(),o(e,t,s,{start:r,end:r+n-1})&&e.closePath(),e.stroke()}const j9=typeof Path2D=="function";function D9(e,t,r,n){j9&&!t.options.segment?T9(e,t,r,n):M9(e,t,r,n)}class sm extends Tn{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,r){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;pW(this._points,n,t,i,r),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=MW(this,this.options.segment))}first(){const t=this.segments,r=this.points;return t.length&&r[t[0].start]}last(){const t=this.segments,r=this.points,n=t.length;return n&&r[t[n-1].end]}interpolate(t,r){const n=this.options,i=t[r],a=this.points,o=CW(this,{property:r,start:i,end:i});if(!o.length)return;const s=[],l=k9(n);let c,u;for(c=0,u=o.length;c<u;++c){const{start:f,end:d}=o[c],h=a[f],m=a[d];if(h===m){s.push(h);continue}const p=Math.abs((i-h[r])/(m[r]-h[r])),g=l(h,m,p,n.stepped);g[r]=t[r],s.push(g)}return s.length===1?s[0]:s}pathSegment(t,r,n){return om(this)(t,this,r,n)}path(t,r,n){const i=this.segments,a=om(this);let o=this._loop;r=r||0,n=n||this.points.length-r;for(const s of i)o&=a(t,this,s,{start:r,end:r+n-1});return!!o}draw(t,r,n,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),D9(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function wO(e,t,r,n){const i=e.options,{[r]:a}=e.getProps([r],n);return Math.abs(t-a)<i.radius+i.hitRadius}class lm extends Tn{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,r,n){const i=this.options,{x:a,y:o}=this.getProps(["x","y"],n);return Math.pow(t-a,2)+Math.pow(r-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,r){return wO(this,t,"x",r)}inYRange(t,r){return wO(this,t,"y",r)}getCenterPoint(t){const{x:r,y:n}=this.getProps(["x","y"],t);return{x:r,y:n}}size(t){t=t||this.options||{};let r=t.radius||0;r=Math.max(r,r&&t.hoverRadius||0);const n=r&&t.borderWidth||0;return(r+n)*2}draw(t,r){const n=this.options;this.skip||n.radius<.1||!Po(this,r,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Bp(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function _O(e,t){const{x:r,y:n,base:i,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,f;return e.horizontal?(f=o/2,s=Math.min(r,i),l=Math.max(r,i),c=n-f,u=n+f):(f=a/2,s=r-f,l=r+f,c=Math.min(n,i),u=Math.max(n,i)),{left:s,top:c,right:l,bottom:u}}function Mn(e,t,r,n){return e?0:Ct(t,r,n)}function N9(e,t,r){const n=e.options.borderWidth,i=e.borderSkipped,a=vS(n);return{t:Mn(i.top,a.top,0,r),r:Mn(i.right,a.right,0,t),b:Mn(i.bottom,a.bottom,0,r),l:Mn(i.left,a.left,0,t)}}function I9(e,t,r){const{enableBorderRadius:n}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=ea(i),o=Math.min(t,r),s=e.borderSkipped,l=n||he(i);return{topLeft:Mn(!l||s.top||s.left,a.topLeft,0,o),topRight:Mn(!l||s.top||s.right,a.topRight,0,o),bottomLeft:Mn(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Mn(!l||s.bottom||s.right,a.bottomRight,0,o)}}function $9(e){const t=_O(e),r=t.right-t.left,n=t.bottom-t.top,i=N9(e,r/2,n/2),a=I9(e,r/2,n/2);return{outer:{x:t.left,y:t.top,w:r,h:n,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:r-i.l-i.r,h:n-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function cm(e,t,r,n){const i=t===null,a=r===null,s=e&&!(i&&a)&&_O(e,n);return s&&(i||Cn(t,s.left,s.right))&&(a||Cn(r,s.top,s.bottom))}function R9(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function L9(e,t){e.rect(t.x,t.y,t.w,t.h)}function um(e,t,r={}){const n=e.x!==r.x?-t:0,i=e.y!==r.y?-t:0,a=(e.x+e.w!==r.x+r.w?t:0)-n,o=(e.y+e.h!==r.y+r.h?t:0)-i;return{x:e.x+n,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}class Io extends Tn{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:r,options:{borderColor:n,backgroundColor:i}}=this,{inner:a,outer:o}=$9(this),s=R9(o.radius)?hc:L9;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),s(t,um(o,r,a)),t.clip(),s(t,um(a,-r,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,um(a,r)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,r,n){return cm(this,t,r,n)}inXRange(t,r){return cm(this,t,null,r)}inYRange(t,r){return cm(this,null,t,r)}getCenterPoint(t){const{x:r,y:n,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(r+i)/2:r,y:a?n:(n+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}const SO=(e,t)=>{let{boxHeight:r=t,boxWidth:n=t}=e;return e.usePointStyle&&(r=Math.min(r,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(t,r)}},F9=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class OO extends Tn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,r,n){this.maxWidth=t,this.maxHeight=r,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let r=Fe(t.generateLabels,[this.chart],this)||[];t.filter&&(r=r.filter(n=>t.filter(n,this.chart.data))),t.sort&&(r=r.sort((n,i)=>t.sort(n,i,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:t,ctx:r}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,i=Rt(n.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=SO(n,a);let c,u;r.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,a,s,l)+10):(u=this.maxHeight,c=this._fitCols(o,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,r,n,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let f=t;a.textAlign="left",a.textBaseline="middle";let d=-1,h=-u;return this.legendItems.forEach((m,p)=>{const g=n+r/2+a.measureText(m.text).width;(p===0||c[c.length-1]+g+2*s>o)&&(f+=u,c[c.length-(p>0?0:1)]=0,h+=u,d++),l[p]={left:0,top:h,row:d,width:g,height:i},c[c.length-1]+=g+s}),f}_fitCols(t,r,n,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-t;let f=s,d=0,h=0,m=0,p=0;return this.legendItems.forEach((g,v)=>{const{itemWidth:b,itemHeight:x}=B9(n,r,a,g,i);v>0&&h+x+2*s>u&&(f+=d+s,c.push({width:d,height:h}),m+=d+s,p++,d=h=0),l[v]={left:m,top:h,col:p,width:b,height:x},d=Math.max(d,b),h+=x+s}),f+=d,c.push({width:d,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:i},rtl:a}}=this,o=na(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=er(n,this.left+i,this.right-this.lineWidths[s]);for(const c of r)s!==c.row&&(s=c.row,l=er(n,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}else{let s=0,l=er(n,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of r)c.col!==s&&(s=c.col,l=er(n,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;zp(t,this),this._draw(),Wp(t)}}_draw(){const{options:t,columnSizes:r,lineWidths:n,ctx:i}=this,{align:a,labels:o}=t,s=et.color,l=na(t.rtl,this.left,this.width),c=Rt(o.font),{padding:u}=o,f=c.size,d=f/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:g}=SO(o,f),v=function(O,E,C){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;i.save();const M=se(C.lineWidth,1);if(i.fillStyle=se(C.fillStyle,s),i.lineCap=se(C.lineCap,"butt"),i.lineDashOffset=se(C.lineDashOffset,0),i.lineJoin=se(C.lineJoin,"miter"),i.lineWidth=M,i.strokeStyle=se(C.strokeStyle,s),i.setLineDash(se(C.lineDash,[])),o.usePointStyle){const $={radius:p*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:M},j=l.xPlus(O,m/2),_=E+d;gS(i,$,j,_,o.pointStyleWidth&&m)}else{const $=E+Math.max((f-p)/2,0),j=l.leftForLtr(O,m),_=ea(C.borderRadius);i.beginPath(),Object.values(_).some(I=>I!==0)?hc(i,{x:j,y:$,w:m,h:p,radius:_}):i.rect(j,$,m,p),i.fill(),M!==0&&i.stroke()}i.restore()},b=function(O,E,C){dc(i,C.text,O,E+g/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?h={x:er(a,this.left+u,this.right-n[0]),y:this.top+u+S,line:0}:h={x:this.left+u,y:er(a,this.top+S+u,this.bottom-r[0].height),line:0},PS(this.ctx,t.textDirection);const w=g+u;this.legendItems.forEach((O,E)=>{i.strokeStyle=O.fontColor,i.fillStyle=O.fontColor;const C=i.measureText(O.text).width,M=l.textAlign(O.textAlign||(O.textAlign=o.textAlign)),$=m+d+C;let j=h.x,_=h.y;l.setWidth(this.width),x?E>0&&j+$+u>this.right&&(_=h.y+=w,h.line++,j=h.x=er(a,this.left+u,this.right-n[h.line])):E>0&&_+w>this.bottom&&(j=h.x=j+r[h.line].width+u,h.line++,_=h.y=er(a,this.top+S+u,this.bottom-r[h.line].height));const I=l.x(j);if(v(I,_,O),j=T7(M,j+m+d,x?j+$:this.right,t.rtl),b(l.x(j),_,O),x)h.x+=$+u;else if(typeof O.text!="string"){const D=c.lineHeight;h.y+=AO(O,D)+u}else h.y+=w}),CS(this.ctx,t.textDirection)}drawTitle(){const t=this.options,r=t.title,n=Rt(r.font),i=vr(r.padding);if(!r.display)return;const a=na(t.rtl,this.left,this.width),o=this.ctx,s=r.position,l=n.size/2,c=i.top+l;let u,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),u=this.top+c,f=er(t.align,f,this.right-d);else{const m=this.columnSizes.reduce((p,g)=>Math.max(p,g.height),0);u=c+er(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const h=er(s,f,f+d);o.textAlign=a.textAlign(lS(s)),o.textBaseline="middle",o.strokeStyle=r.color,o.fillStyle=r.color,o.font=n.string,dc(o,r.text,h,u,n)}_computeTitleHeight(){const t=this.options.title,r=Rt(t.font),n=vr(t.padding);return t.display?r.lineHeight+n.height:0}_getLegendItemAt(t,r){let n,i,a;if(Cn(t,this.left,this.right)&&Cn(r,this.top,this.bottom)){for(a=this.legendHitBoxes,n=0;n<a.length;++n)if(i=a[n],Cn(t,i.left,i.left+i.width)&&Cn(r,i.top,i.top+i.height))return this.legendItems[n]}return null}handleEvent(t){const r=this.options;if(!V9(t.type,r))return;const n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=F9(i,n);i&&!a&&Fe(r.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!a&&Fe(r.onHover,[t,n,this],this)}else n&&Fe(r.onClick,[t,n,this],this)}}function B9(e,t,r,n,i){const a=z9(n,e,t,r),o=W9(i,n,t.lineHeight);return{itemWidth:a,itemHeight:o}}function z9(e,t,r,n){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+r.size/2+n.measureText(i).width}function W9(e,t,r){let n=e;return typeof t.text!="string"&&(n=AO(t,r)),n}function AO(e,t){const r=e.text?e.text.length:0;return t*r}function V9(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var yr={id:"legend",_element:OO,start(e,t,r){const n=e.legend=new OO({ctx:e.ctx,options:r,chart:e});kn.configure(e,n,r),kn.addBox(e,n)},stop(e){kn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,r){const n=e.legend;kn.configure(e,n,r),n.options=r},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,r){const n=t.datasetIndex,i=r.chart;i.isDatasetVisible(n)?(i.hide(n),t.hidden=!0):(i.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),u=vr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const $o={average(e){if(!e.length)return!1;let t,r,n=new Set,i=0,a=0;for(t=0,r=e.length;t<r;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();n.add(l.x),i+=l.y,++a}}return a===0||n.size===0?!1:{x:[...n].reduce((s,l)=>s+l)/n.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let r=t.x,n=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Dp(t,c);u<i&&(i=u,s=l)}}if(s){const l=s.tooltipPosition();r=l.x,n=l.y}return{x:r,y:n}}};function Dr(e,t){return t&&(yt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function on(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
214
+ */class LW{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,r,n,i){const a=r.listeners[i],o=r.duration;a.forEach(s=>s({chart:t,initial:r.initial,numSteps:o,currentStep:Math.min(n-r.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=sS.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let r=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const a=n.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),a.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),r+=a.length}),this._lastDate=t,r===0&&(this._running=!1)}_getAnims(t){const r=this._charts;let n=r.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(t,n)),n}listen(t,r,n){this._getAnims(t).listeners[r].push(n)}add(t,r){!r||!r.length||this._getAnims(t).items.push(...r)}has(t){return this._getAnims(t).items.length>0}start(t){const r=this._charts.get(t);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,i)=>Math.max(n,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const r=this._charts.get(t);return!(!r||!r.running||!r.items.length)}stop(t){const r=this._charts.get(t);if(!r||!r.items.length)return;const n=r.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();r.items=[],this._notify(t,r,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var an=new LW;const NS="transparent",FW={boolean(e,t,r){return r>.5?t:e},color(e,t,r){const n=dS(e||NS),i=n.valid&&dS(t||NS);return i&&i.valid?i.mix(n,r).hexString():t},number(e,t,r){return e+(t-e)*r}};class BW{constructor(t,r,n,i){const a=r[n];i=mc([t.to,i,a,t.from]);const o=mc([t.from,a,i]);this._active=!0,this._fn=t.fn||FW[t.type||typeof o],this._easing=Eo[t.easing]||Eo.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=r,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,r,n){if(this._active){this._notify(!1);const i=this._target[this._prop],a=n-this._start,o=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=mc([t.to,r,i,t.from]),this._from=mc([t.from,i,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const r=t-this._start,n=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||r<n),!this._active){this._target[i]=s,this._notify(!0);return}if(r<0){this._target[i]=a;return}l=r/n%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((r,n)=>{t.push({res:r,rej:n})})}_notify(t){const r=t?"res":"rej",n=this._promises||[];for(let i=0;i<n.length;i++)n[i][r]()}}class IS{constructor(t,r){this._chart=t,this._properties=new Map,this.configure(r)}configure(t){if(!he(t))return;const r=Object.keys(et.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!he(a))return;const o={};for(const s of r)o[s]=a[s];(yt(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!n.has(s))&&n.set(s,o)})})}_animateOptions(t,r){const n=r.options,i=WW(t,n);if(!i)return[];const a=this._createAnimations(i,n);return n.$shared&&zW(t.options.$animations,n).then(()=>{t.options=n},()=>{}),a}_createAnimations(t,r){const n=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(r),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,r));continue}const u=r[c];let f=a[c];const d=n.get(c);if(f)if(d&&f.active()){f.update(d,u,s);continue}else f.cancel();if(!d||!d.duration){t[c]=u;continue}a[c]=f=new BW(d,t,c,u),i.push(f)}return i}update(t,r){if(this._properties.size===0){Object.assign(t,r);return}const n=this._createAnimations(t,r);if(n.length)return an.add(this._chart,n),!0}}function zW(e,t){const r=[],n=Object.keys(t);for(let i=0;i<n.length;i++){const a=e[n[i]];a&&a.active()&&r.push(a.wait())}return Promise.all(r)}function WW(e,t){if(!t)return;let r=e.options;if(!r){e.options=t;return}return r.$shared&&(e.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function $S(e,t){const r=e&&e.options||{},n=r.reverse,i=r.min===void 0?t:0,a=r.max===void 0?t:0;return{start:n?a:i,end:n?i:a}}function VW(e,t,r){if(r===!1)return!1;const n=$S(e,r),i=$S(t,r);return{top:i.end,right:n.end,bottom:i.start,left:n.start}}function HW(e){let t,r,n,i;return he(e)?(t=e.top,r=e.right,n=e.bottom,i=e.left):t=r=n=i=e,{top:t,right:r,bottom:n,left:i,disabled:e===!1}}function RS(e,t){const r=[],n=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=n.length;i<a;++i)r.push(n[i].index);return r}function LS(e,t,r,n={}){const i=e.keys,a=n.mode==="single";let o,s,l,c;if(t===null)return;let u=!1;for(o=0,s=i.length;o<s;++o){if(l=+i[o],l===r){if(u=!0,n.all)continue;break}c=e.values[l],dr(c)&&(a||t===0||Mr(t)===Mr(c))&&(t+=c)}return!u&&!n.all?0:t}function UW(e,t){const{iScale:r,vScale:n}=t,i=r.axis==="x"?"x":"y",a=n.axis==="x"?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],s[l]={[i]:u,[a]:e[u]};return s}function Zp(e,t){const r=e&&e.options.stacked;return r||r===void 0&&t.stack!==void 0}function KW(e,t,r){return`${e.id}.${t.id}.${r.stack||r.type}`}function qW(e){const{min:t,max:r,minDefined:n,maxDefined:i}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:i?r:Number.POSITIVE_INFINITY}}function YW(e,t,r){const n=e[t]||(e[t]={});return n[r]||(n[r]={})}function FS(e,t,r,n){for(const i of t.getMatchingVisibleMetas(n).reverse()){const a=e[i.index];if(r&&a>0||!r&&a<0)return i.index}return null}function BS(e,t){const{chart:r,_cachedMeta:n}=e,i=r._stacks||(r._stacks={}),{iScale:a,vScale:o,index:s}=n,l=a.axis,c=o.axis,u=KW(a,o,n),f=t.length;let d;for(let h=0;h<f;++h){const m=t[h],{[l]:p,[c]:g}=m,v=m._stacks||(m._stacks={});d=v[c]=YW(i,u,p),d[s]=g,d._top=FS(d,o,!0,n.type),d._bottom=FS(d,o,!1,n.type);const b=d._visualValues||(d._visualValues={});b[s]=g}}function Jp(e,t){const r=e.scales;return Object.keys(r).filter(n=>r[n].axis===t).shift()}function GW(e,t){return mi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function XW(e,t,r){return mi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:r,index:t,mode:"default",type:"data"})}function ko(e,t){const r=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[n]===void 0||a[n][r]===void 0)return;delete a[n][r],a[n]._visualValues!==void 0&&a[n]._visualValues[r]!==void 0&&delete a[n]._visualValues[r]}}}const Qp=e=>e==="reset"||e==="none",zS=(e,t)=>t?e:Object.assign({},e),ZW=(e,t,r)=>e&&!t.hidden&&t._stacked&&{keys:RS(r,!0),values:null};class wc{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,r){this.chart=t,this._ctx=t.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Zp(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ko(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,r=this._cachedMeta,n=this.getDataset(),i=(f,d,h,m)=>f==="x"?d:f==="r"?m:h,a=r.xAxisID=se(n.xAxisID,Jp(t,"x")),o=r.yAxisID=se(n.yAxisID,Jp(t,"y")),s=r.rAxisID=se(n.rAxisID,Jp(t,"r")),l=r.indexAxis,c=r.iAxisID=i(l,a,o,s),u=r.vAxisID=i(l,o,a,s);r.xScale=this.getScaleForId(a),r.yScale=this.getScaleForId(o),r.rScale=this.getScaleForId(s),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const r=this._cachedMeta;return t===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&aS(this._data,this),t._stacked&&ko(t)}_dataCheck(){const t=this.getDataset(),r=t.data||(t.data=[]),n=this._data;if(he(r)){const i=this._cachedMeta;this._data=UW(r,i)}else if(n!==r){if(n){aS(n,this);const i=this._cachedMeta;ko(i),i._parsed=[]}r&&Object.isExtensible(r)&&T7(r,this),this._syncList=[],this._data=r}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const r=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const a=r._stacked;r._stacked=Zp(r.vScale,r),r.stack!==n.stack&&(i=!0,ko(r),r.stack=n.stack),this._resyncElements(t),(i||a!==r._stacked)&&(BS(this,r._parsed),r._stacked=Zp(r.vScale,r))}configure(){const t=this.chart.config,r=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),r,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,r){const{_cachedMeta:n,_data:i}=this,{iScale:a,_stacked:o}=n,s=a.axis;let l=t===0&&r===i.length?!0:n._sorted,c=t>0&&n._parsed[t-1],u,f,d;if(this._parsing===!1)n._parsed=i,n._sorted=!0,d=i;else{yt(i[t])?d=this.parseArrayData(n,i,t,r):he(i[t])?d=this.parseObjectData(n,i,t,r):d=this.parsePrimitiveData(n,i,t,r);const h=()=>f[s]===null||c&&f[s]<c[s];for(u=0;u<r;++u)n._parsed[u+t]=f=d[u],l&&(h()&&(l=!1),c=f);n._sorted=l}o&&BS(this,d)}parsePrimitiveData(t,r,n,i){const{iScale:a,vScale:o}=t,s=a.axis,l=o.axis,c=a.getLabels(),u=a===o,f=new Array(i);let d,h,m;for(d=0,h=i;d<h;++d)m=d+n,f[d]={[s]:u||a.parse(c[m],m),[l]:o.parse(r[m],m)};return f}parseArrayData(t,r,n,i){const{xScale:a,yScale:o}=t,s=new Array(i);let l,c,u,f;for(l=0,c=i;l<c;++l)u=l+n,f=r[u],s[l]={x:a.parse(f[0],u),y:o.parse(f[1],u)};return s}parseObjectData(t,r,n,i){const{xScale:a,yScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,f,d,h;for(u=0,f=i;u<f;++u)d=u+n,h=r[d],c[u]={x:a.parse(ui(h,s),d),y:o.parse(ui(h,l),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,r,n){const i=this.chart,a=this._cachedMeta,o=r[t.axis],s={keys:RS(i,!0),values:r._stacks[t.axis]._visualValues};return LS(s,o,a.index,{mode:n})}updateRangeFromParsed(t,r,n,i){const a=n[r.axis];let o=a===null?NaN:a;const s=i&&n._stacks[r.axis];i&&s&&(i.values=s,o=LS(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,r){const n=this._cachedMeta,i=n._parsed,a=n._sorted&&t===n.iScale,o=i.length,s=this._getOtherScale(t),l=ZW(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=qW(s);let d,h;function m(){h=i[d];const p=h[s.axis];return!dr(h[t.axis])||u>p||f<p}for(d=0;d<o&&!(!m()&&(this.updateRangeFromParsed(c,t,h,l),a));++d);if(a){for(d=o-1;d>=0;--d)if(!m()){this.updateRangeFromParsed(c,t,h,l);break}}return c}getAllParsedValues(t){const r=this._cachedMeta._parsed,n=[];let i,a,o;for(i=0,a=r.length;i<a;++i)o=r[i][t.axis],dr(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const r=this._cachedMeta,n=r.iScale,i=r.vScale,a=this.getParsed(t);return{label:n?""+n.getLabelForValue(a[n.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const r=this._cachedMeta;this.update(t||"default"),r._clip=HW(se(this.options.clip,VW(r.xScale,r.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,r=this.chart,n=this._cachedMeta,i=n.data||[],a=r.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let u;for(n.dataset&&n.dataset.draw(t,a,s,l),u=s;u<s+l;++u){const f=i[u];f.hidden||(f.active&&c?o.push(f):f.draw(t,a))}for(u=0;u<o.length;++u)o[u].draw(t,a)}getStyle(t,r){const n=r?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,r,n){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];a=o.$context||(o.$context=XW(this.getContext(),t,o)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=GW(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!r,a.mode=n,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,r){return this._resolveElementOptions(this.dataElementType.id,r,t)}_resolveElementOptions(t,r="default",n){const i=r==="active",a=this._cachedDataOpts,o=t+"-"+r,s=a[o],l=this.enableOptionSharing&&_o(n);if(s)return zS(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),f=i?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),u),h=Object.keys(et.elements[t]),m=()=>this.getContext(n,i,r),p=c.resolveNamedOptions(d,h,m,f);return p.$shared&&(p.$shared=l,a[o]=Object.freeze(zS(p,l))),p}_resolveAnimations(t,r,n){const i=this.chart,a=this._cachedDataOpts,o=`animation-${r}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,r),d=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(d,this.getContext(t,n,r))}const c=new IS(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,r){return!r||Qp(t)||this.chart._animationsDisabled}_getSharedOptions(t,r){const n=this.resolveDataElementOptions(t,r),i=this._sharedOptions,a=this.getSharedOptions(n),o=this.includeOptions(r,a)||a!==i;return this.updateSharedOptions(a,r,n),{sharedOptions:a,includeOptions:o}}updateElement(t,r,n,i){Qp(i)?Object.assign(t,n):this._resolveAnimations(r,i).update(t,n)}updateSharedOptions(t,r,n){t&&!Qp(r)&&this._resolveAnimations(void 0,r).update(t,n)}_setStyle(t,r,n,i){t.active=i;const a=this.getStyle(r,i);this._resolveAnimations(r,n,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,r,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,r,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const r=this._data,n=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=n.length,a=r.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,r,n=!0){const i=this._cachedMeta,a=i.data,o=t+r;let s;const l=c=>{for(c.length+=r,s=c.length-1;s>=o;s--)c[s]=c[s-r]};for(l(a),s=t;s<o;++s)a[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,r),n&&this.updateElements(a,t,r,"reset")}updateElements(t,r,n,i){}_removeElements(t,r){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,r);n._stacked&&ko(n,i)}n.data.splice(t,r)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[r,n,i]=t;this[r](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,r){r&&this._sync(["_removeElements",t,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function JW(e,t){if(!e._cache.$bar){const r=e.getMatchingVisibleMetas(t);let n=[];for(let i=0,a=r.length;i<a;i++)n=n.concat(r[i].controller.getAllParsedValues(e));e._cache.$bar=oS(n.sort((i,a)=>i-a))}return e._cache.$bar}function QW(e){const t=e.iScale,r=JW(t,e.type);let n=t._length,i,a,o,s;const l=()=>{o===32767||o===-32768||(_o(s)&&(n=Math.min(n,Math.abs(o-s)||n)),s=o)};for(i=0,a=r.length;i<a;++i)o=t.getPixelForValue(r[i]),l();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),l();return n}function eV(e,t,r,n){const i=r.barThickness;let a,o;return _e(i)?(a=t.min*r.categoryPercentage,o=r.barPercentage):(a=i*n,o=1),{chunk:a/n,ratio:o,start:t.pixels[e]-a/2}}function tV(e,t,r,n){const i=t.pixels,a=i[e];let o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null;const l=r.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);const c=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/n,ratio:r.barPercentage,start:c}}function rV(e,t,r,n){const i=r.parse(e[0],n),a=r.parse(e[1],n),o=Math.min(i,a),s=Math.max(i,a);let l=o,c=s;Math.abs(o)>Math.abs(s)&&(l=s,c=o),t[r.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:a,min:o,max:s}}function WS(e,t,r,n){return yt(e)?rV(e,t,r,n):t[r.axis]=r.parse(e,n),t}function VS(e,t,r,n){const i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,l=[];let c,u,f,d;for(c=r,u=r+n;c<u;++c)d=t[c],f={},f[i.axis]=s||i.parse(o[c],c),l.push(WS(d,f,a,c));return l}function em(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function nV(e,t,r){return e!==0?Mr(e):(t.isHorizontal()?1:-1)*(t.min>=r?1:-1)}function iV(e){let t,r,n,i,a;return e.horizontal?(t=e.base>e.x,r="left",n="right"):(t=e.base<e.y,r="bottom",n="top"),t?(i="end",a="start"):(i="start",a="end"),{start:r,end:n,reverse:t,top:i,bottom:a}}function aV(e,t,r,n){let i=t.borderSkipped;const a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:s,reverse:l,top:c,bottom:u}=iV(e);i==="middle"&&r&&(e.enableBorderRadius=!0,(r._top||0)===n?i=c:(r._bottom||0)===n?i=u:(a[HS(u,o,s,l)]=!0,i=c)),a[HS(i,o,s,l)]=!0,e.borderSkipped=a}function HS(e,t,r,n){return n?(e=oV(e,t,r),e=US(e,r,t)):e=US(e,t,r),e}function oV(e,t,r){return e===t?r:e===r?t:e}function US(e,t,r){return e==="start"?t:e==="end"?r:e}function sV(e,{inflateAmount:t},r){e.inflateAmount=t==="auto"?r===1?.33:0:t}class lV extends wc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,r,n,i){return VS(t,r,n,i)}parseArrayData(t,r,n,i){return VS(t,r,n,i)}parseObjectData(t,r,n,i){const{iScale:a,vScale:o}=t,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=a.axis==="x"?s:l,u=o.axis==="x"?s:l,f=[];let d,h,m,p;for(d=n,h=n+i;d<h;++d)p=r[d],m={},m[a.axis]=a.parse(ui(p,c),d),f.push(WS(ui(p,u),m,o,d));return f}updateRangeFromParsed(t,r,n,i){super.updateRangeFromParsed(t,r,n,i);const a=n._custom;a&&r===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const r=this._cachedMeta,{iScale:n,vScale:i}=r,a=this.getParsed(t),o=a._custom,s=em(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+n.getLabelForValue(a[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const r=this._cachedMeta;this.updateElements(r.data,0,r.data.length,t)}updateElements(t,r,n,i){const a=i==="reset",{index:o,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:d}=this._getSharedOptions(r,i);for(let h=r;h<r+n;h++){const m=this.getParsed(h),p=a||_e(m[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),g=this._calculateBarIndexPixels(h,u),v=(m._stacks||{})[s.axis],b={horizontal:c,base:p.base,enableBorderRadius:!v||em(m._custom)||o===v._top||o===v._bottom,x:c?p.head:g.center,y:c?g.center:p.head,height:c?g.size:Math.abs(p.size),width:c?Math.abs(p.size):g.size};d&&(b.options=f||this.resolveDataElementOptions(h,t[h].active?"active":i));const x=b.options||t[h].options;aV(b,x,v,o),sV(b,x,u.ratio),this.updateElement(t[h],h,b,i)}}_getStacks(t,r){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),a=n.options.stacked,o=[],s=this._cachedMeta.controller.getParsed(r),l=s&&s[n.axis],c=u=>{const f=u._parsed.find(h=>h[n.axis]===l),d=f&&f[u.vScale.axis];if(_e(d)||isNaN(d))return!0};for(const u of i)if(!(r!==void 0&&c(u))&&((a===!1||o.indexOf(u.stack)===-1||a===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,r=this.chart.options.indexAxis;return Object.keys(t).filter(n=>t[n].axis===r).shift()}_getAxis(){const t={},r=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[se(this.chart.options.indexAxis==="x"?n.xAxisID:n.yAxisID,r)]=!0;return Object.keys(t)}_getStackIndex(t,r,n){const i=this._getStacks(t,n),a=r!==void 0?i.indexOf(r):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,r=this._cachedMeta,n=r.iScale,i=[];let a,o;for(a=0,o=r.data.length;a<o;++a)i.push(n.getPixelForValue(this.getParsed(a)[n.axis],a));const s=t.barThickness;return{min:s||QW(r),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:r,_stacked:n,index:i},options:{base:a,minBarLength:o}}=this,s=a||0,l=this.getParsed(t),c=l._custom,u=em(c);let f=l[r.axis],d=0,h=n?this.applyStack(r,l,n):f,m,p;h!==f&&(d=h-f,h=f),u&&(f=c.barStart,h=c.barEnd-c.barStart,f!==0&&Mr(f)!==Mr(c.barEnd)&&(d=0),d+=f);const g=!_e(a)&&!u?a:d;let v=r.getPixelForValue(g);if(this.chart.getDataVisibility(t)?m=r.getPixelForValue(d+h):m=v,p=m-v,Math.abs(p)<o){p=nV(p,r,s)*o,f===s&&(v-=p/2);const b=r.getPixelForDecimal(0),x=r.getPixelForDecimal(1),S=Math.min(b,x),w=Math.max(b,x);v=Math.max(Math.min(v,w),S),m=v+p,n&&!u&&(l._stacks[r.axis]._visualValues[i]=r.getValueForPixel(m)-r.getValueForPixel(v))}if(v===r.getPixelForValue(s)){const b=Mr(p)*r.getLineWidthForValue(s)/2;v+=b,p-=b}return{size:p,base:v,head:m,center:m+p/2}}_calculateBarIndexPixels(t,r){const n=r.scale,i=this.options,a=i.skipNull,o=se(i.maxBarThickness,1/0);let s,l;const c=this._getAxisCount();if(r.grouped){const u=a?this._getStackCount(t):r.stackCount,f=i.barThickness==="flex"?tV(t,r,i,u*c):eV(t,r,i,u*c),d=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(se(d,this.getFirstScaleIdForIndexAxis())),m=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0)+h;s=f.start+f.chunk*m+f.chunk/2,l=Math.min(o,f.chunk*f.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),l=Math.min(o,r.min*r.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,r=t.vScale,n=t.data,i=n.length;let a=0;for(;a<i;++a)this.getParsed(a)[r.axis]!==null&&!n[a].hidden&&n[a].draw(this._ctx)}}function cV(e,t,r){let n=1,i=1,a=0,o=0;if(t<Ge){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),f=Math.cos(l),d=Math.sin(l),h=(x,S,w)=>Ao(x,s,l,!0)?1:Math.max(S,S*r,w,w*r),m=(x,S,w)=>Ao(x,s,l,!0)?-1:Math.min(S,S*r,w,w*r),p=h(0,c,f),g=h(ft,u,d),v=m(je,c,f),b=m(je+ft,u,d);n=(p-v)/2,i=(g-b)/2,a=-(p+v)/2,o=-(g+b)/2}return{ratioX:n,ratioY:i,offsetX:a,offsetY:o}}class uV extends wc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const r=t.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return r.labels.map((a,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}}};constructor(t,r){super(t,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,r){const n=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=n;else{let a=l=>+n[l];if(he(n[t])){const{key:l="value"}=this._parsing;a=c=>+ui(n[c],l)}let o,s;for(o=t,s=t+r;o<s;++o)i._parsed[o]=a(o)}}_getRotation(){return nn(this.options.rotation-90)}_getCircumference(){return nn(this.options.circumference)}_getRotationExtents(){let t=Ge,r=-Ge;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,a=i._getRotation(),o=i._getCircumference();t=Math.min(t,a),r=Math.max(r,a+o)}return{rotation:t,circumference:r-t}}update(t){const r=this.chart,{chartArea:n}=r,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(n.width,n.height)-o)/2,0),l=Math.min(h7(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:m,offsetY:p}=cV(f,u,l),g=(n.width-o)/d,v=(n.height-o)/h,b=Math.max(Math.min(g,v)/2,0),x=G2(this.options.radius,b),S=Math.max(x*l,0),w=(x-S)/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=p*x,i.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(a,0,a.length,t)}_circumference(t,r){const n=this.options,i=this._cachedMeta,a=this._getCircumference();return r&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Ge)}updateElements(t,r,n,i){const a=i==="reset",o=this.chart,s=o.chartArea,c=o.options.animation,u=(s.left+s.right)/2,f=(s.top+s.bottom)/2,d=a&&c.animateScale,h=d?0:this.innerRadius,m=d?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(r,i);let v=this._getRotation(),b;for(b=0;b<r;++b)v+=this._circumference(b,a);for(b=r;b<r+n;++b){const x=this._circumference(b,a),S=t[b],w={x:u+this.offsetX,y:f+this.offsetY,startAngle:v,endAngle:v+x,circumference:x,outerRadius:m,innerRadius:h};g&&(w.options=p||this.resolveDataElementOptions(b,S.active?"active":i)),v+=x,this.updateElement(S,b,w,i)}}calculateTotal(){const t=this._cachedMeta,r=t.data;let n=0,i;for(i=0;i<r.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!r[i].hidden&&(n+=Math.abs(a))}return n}calculateCircumference(t){const r=this._cachedMeta.total;return r>0&&!isNaN(t)?Ge*(Math.abs(t)/r):0}getLabelAndValue(t){const r=this._cachedMeta,n=this.chart,i=n.data.labels||[],a=Fp(r._parsed[t],n.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let r=0;const n=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=n.data.datasets.length;i<a;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),t=o.data,s=o.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(r=Math.max(r,l.borderWidth||0,l.hoverBorderWidth||0));return r}getMaxOffset(t){let r=0;for(let n=0,i=t.length;n<i;++n){const a=this.resolveDataElementOptions(n);r=Math.max(r,a.offset||0,a.hoverOffset||0)}return r}_getRingWeightOffset(t){let r=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(r+=this._getRingWeight(n));return r}_getRingWeight(t){return Math.max(se(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class fV extends wc{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const r=this._cachedMeta,{dataset:n,data:i=[],_dataset:a}=r,o=this.chart._animationsDisabled;let{start:s,count:l}=D7(r,i,o);this._drawStart=s,this._drawCount=l,N7(r)&&(s=0,l=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,r,n,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(r,i),d=o.axis,h=s.axis,{spanGaps:m,segment:p}=this.options,g=Oo(m)?m:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||i==="none",b=r+n,x=t.length;let S=r>0&&this.getParsed(r-1);for(let w=0;w<x;++w){const O=t[w],E=v?O:{};if(w<r||w>=b){E.skip=!0;continue}const C=this.getParsed(w),M=_e(C[h]),$=E[d]=o.getPixelForValue(C[d],w),j=E[h]=a||M?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,C,l):C[h],w);E.skip=isNaN($)||isNaN(j)||M,E.stop=w>0&&Math.abs(C[d]-S[d])>g,p&&(E.parsed=C,E.raw=c.data[w]),f&&(E.options=u||this.resolveDataElementOptions(w,O.active?"active":i)),v||this.updateElement(O,w,E,i),S=C}}getMaxOverflow(){const t=this._cachedMeta,r=t.dataset,n=r.options&&r.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function bi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class tm{static override(t){Object.assign(tm.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return bi()}parse(){return bi()}format(){return bi()}add(){return bi()}diff(){return bi()}startOf(){return bi()}endOf(){return bi()}}var dV={_date:tm};function hV(e,t,r,n){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const c=s._reversePixels?C7:di;if(n){if(i._sharedOptions){const u=a[0],f=typeof u.getRange=="function"&&u.getRange(t);if(f){const d=c(a,t,r-f),h=c(a,t,r+f);return{lo:d.lo,hi:h.hi}}}}else{const u=c(a,t,r);if(l){const{vScale:f}=i._cachedMeta,{_parsed:d}=e,h=d.slice(0,u.lo+1).reverse().findIndex(p=>!_e(p[f.axis]));u.lo-=Math.max(0,h);const m=d.slice(u.hi).findIndex(p=>!_e(p[f.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:a.length-1}}function _c(e,t,r,n,i){const a=e.getSortedVisibleDatasetMetas(),o=r[t];for(let s=0,l=a.length;s<l;++s){const{index:c,data:u}=a[s],{lo:f,hi:d}=hV(a[s],t,o,i);for(let h=f;h<=d;++h){const m=u[h];m.skip||n(m,c,h)}}}function pV(e){const t=e.indexOf("x")!==-1,r=e.indexOf("y")!==-1;return function(n,i){const a=t?Math.abs(n.x-i.x):0,o=r?Math.abs(n.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function rm(e,t,r,n,i){const a=[];return!i&&!e.isPointInArea(t)||_c(e,r,t,function(s,l,c){!i&&!Co(s,e.chartArea,0)||s.inRange(t.x,t.y,n)&&a.push({element:s,datasetIndex:l,index:c})},!0),a}function mV(e,t,r,n){let i=[];function a(o,s,l){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],n),{angle:f}=nS(o,{x:t.x,y:t.y});Ao(f,c,u)&&i.push({element:o,datasetIndex:s,index:l})}return _c(e,r,t,a),i}function gV(e,t,r,n,i,a){let o=[];const s=pV(r);let l=Number.POSITIVE_INFINITY;function c(u,f,d){const h=u.inRange(t.x,t.y,i);if(n&&!h)return;const m=u.getCenterPoint(i);if(!(!!a||e.isPointInArea(m))&&!h)return;const g=s(t,m);g<l?(o=[{element:u,datasetIndex:f,index:d}],l=g):g===l&&o.push({element:u,datasetIndex:f,index:d})}return _c(e,r,t,c),o}function nm(e,t,r,n,i,a){return!a&&!e.isPointInArea(t)?[]:r==="r"&&!n?mV(e,t,r,i):gV(e,t,r,n,i,a)}function KS(e,t,r,n,i){const a=[],o=r==="x"?"inXRange":"inYRange";let s=!1;return _c(e,r,t,(l,c,u)=>{l[o]&&l[o](t[r],i)&&(a.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),n&&!s?[]:a}var vV={modes:{index(e,t,r,n){const i=vi(t,e),a=r.axis||"x",o=r.includeInvisible||!1,s=r.intersect?rm(e,i,a,n,o):nm(e,i,a,!1,n,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,r,n){const i=vi(t,e),a=r.axis||"xy",o=r.includeInvisible||!1;let s=r.intersect?rm(e,i,a,n,o):nm(e,i,a,!1,n,o);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;u<c.length;++u)s.push({element:c[u],datasetIndex:l,index:u})}return s},point(e,t,r,n){const i=vi(t,e),a=r.axis||"xy",o=r.includeInvisible||!1;return rm(e,i,a,n,o)},nearest(e,t,r,n){const i=vi(t,e),a=r.axis||"xy",o=r.includeInvisible||!1;return nm(e,i,a,r.intersect,n,o)},x(e,t,r,n){const i=vi(t,e);return KS(e,i,"x",r.intersect,n)},y(e,t,r,n){const i=vi(t,e);return KS(e,i,"y",r.intersect,n)}}};const qS=["left","top","right","bottom"];function To(e,t){return e.filter(r=>r.pos===t)}function YS(e,t){return e.filter(r=>qS.indexOf(r.pos)===-1&&r.box.axis===t)}function Mo(e,t){return e.sort((r,n)=>{const i=t?n:r,a=t?r:n;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function yV(e){const t=[];let r,n,i,a,o,s;for(r=0,n=(e||[]).length;r<n;++r)i=e[r],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:r,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function bV(e){const t={};for(const r of e){const{stack:n,pos:i,stackWeight:a}=r;if(!n||!qS.includes(i))continue;const o=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return t}function xV(e,t){const r=bV(e),{vBoxMaxWidth:n,hBoxMaxHeight:i}=t;let a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];const{fullSize:l}=s.box,c=r[s.stack],u=c&&s.stackWeight/c.weight;s.horizontal?(s.width=u?u*n:l&&t.availableWidth,s.height=i):(s.width=n,s.height=u?u*i:l&&t.availableHeight)}return r}function wV(e){const t=yV(e),r=Mo(t.filter(c=>c.box.fullSize),!0),n=Mo(To(t,"left"),!0),i=Mo(To(t,"right")),a=Mo(To(t,"top"),!0),o=Mo(To(t,"bottom")),s=YS(t,"x"),l=YS(t,"y");return{fullSize:r,leftAndTop:n.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:To(t,"chartArea"),vertical:n.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function GS(e,t,r,n){return Math.max(e[r],t[r])+Math.max(e[n],t[n])}function XS(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function _V(e,t,r,n){const{pos:i,box:a}=r,o=e.maxPadding;if(!he(i)){r.size&&(e[i]-=r.size);const f=n[r.stack]||{size:0,count:1};f.size=Math.max(f.size,r.horizontal?a.height:a.width),r.size=f.size/f.count,e[i]+=r.size}a.getPadding&&XS(o,a.getPadding());const s=Math.max(0,t.outerWidth-GS(o,e,"left","right")),l=Math.max(0,t.outerHeight-GS(o,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,r.horizontal?{same:c,other:u}:{same:u,other:c}}function SV(e){const t=e.maxPadding;function r(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}function OV(e,t){const r=t.maxPadding;function n(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],r[o])}),a}return n(e?["left","right"]:["top","bottom"])}function jo(e,t,r,n){const i=[];let a,o,s,l,c,u;for(a=0,o=e.length,c=0;a<o;++a){s=e[a],l=s.box,l.update(s.width||t.w,s.height||t.h,OV(s.horizontal,t));const{same:f,other:d}=_V(t,r,s,n);c|=f&&i.length,u=u||d,l.fullSize||i.push(s)}return c&&jo(i,t,r,n)||u}function Sc(e,t,r,n,i){e.top=r,e.left=t,e.right=t+n,e.bottom=r+i,e.width=n,e.height=i}function ZS(e,t,r,n){const i=r.padding;let{x:a,y:o}=t;for(const s of e){const l=s.box,c=n[s.stack]||{placed:0,weight:1},u=s.stackWeight/c.weight||1;if(s.horizontal){const f=t.w*u,d=c.size||l.height;_o(c.start)&&(o=c.start),l.fullSize?Sc(l,i.left,o,r.outerWidth-i.right-i.left,d):Sc(l,t.left+c.placed,o,f,d),c.start=o,c.placed+=f,o=l.bottom}else{const f=t.h*u,d=c.size||l.width;_o(c.start)&&(a=c.start),l.fullSize?Sc(l,a,i.top,d,r.outerHeight-i.bottom-i.top):Sc(l,a,t.top+c.placed,d,f),c.start=a,c.placed+=f,a=l.right}}t.x=a,t.y=o}var kn={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(r){t.draw(r)}}]},e.boxes.push(t)},removeBox(e,t){const r=e.boxes?e.boxes.indexOf(t):-1;r!==-1&&e.boxes.splice(r,1)},configure(e,t,r){t.fullSize=r.fullSize,t.position=r.position,t.weight=r.weight},update(e,t,r,n){if(!e)return;const i=vr(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(r-i.height,0),s=wV(e.boxes),l=s.vertical,c=s.horizontal;Pe(e.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const u=l.reduce((p,g)=>g.box.options&&g.box.options.display===!1?p:p+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:r,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),d=Object.assign({},i);XS(d,vr(n));const h=Object.assign({maxPadding:d,w:a,h:o,x:i.left,y:i.top},i),m=xV(l.concat(c),f);jo(s.fullSize,h,f,m),jo(l,h,f,m),jo(c,h,f,m)&&jo(l,h,f,m),SV(h),ZS(s.leftAndTop,h,f,m),h.x+=h.w,h.y+=h.h,ZS(s.rightAndBottom,h,f,m),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Pe(s.chartArea,p=>{const g=p.box;Object.assign(g,e.chartArea),g.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class JS{acquireContext(t,r){}releaseContext(t){return!1}addEventListener(t,r,n){}removeEventListener(t,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,r,n,i){return r=Math.max(0,r||t.width),n=n||t.height,{width:r,height:Math.max(0,i?Math.floor(r/i):n)}}isAttached(t){return!0}updateConfig(t){}}class AV extends JS{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Oc="$chartjs",EV={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},QS=e=>e===null||e==="";function PV(e,t){const r=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[Oc]={initial:{height:n,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",QS(i)){const a=PS(e,"width");a!==void 0&&(e.width=a)}if(QS(n))if(e.style.height==="")e.height=e.width/(t||2);else{const a=PS(e,"height");a!==void 0&&(e.height=a)}return e}const eO=SW?{passive:!0}:!1;function CV(e,t,r){e&&e.addEventListener(t,r,eO)}function kV(e,t,r){e&&e.canvas&&e.canvas.removeEventListener(t,r,eO)}function TV(e,t){const r=EV[e.type]||e.type,{x:n,y:i}=vi(e,t);return{type:r,chart:t,native:e,x:n!==void 0?n:null,y:i!==void 0?i:null}}function Ac(e,t){for(const r of e)if(r===t||r.contains(t))return!0}function MV(e,t,r){const n=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Ac(s.addedNodes,n),o=o&&!Ac(s.removedNodes,n);o&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}function jV(e,t,r){const n=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Ac(s.removedNodes,n),o=o&&!Ac(s.addedNodes,n);o&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}const Do=new Map;let tO=0;function rO(){const e=window.devicePixelRatio;e!==tO&&(tO=e,Do.forEach((t,r)=>{r.currentDevicePixelRatio!==e&&t()}))}function DV(e,t){Do.size||window.addEventListener("resize",rO),Do.set(e,t)}function NV(e){Do.delete(e),Do.size||window.removeEventListener("resize",rO)}function IV(e,t,r){const n=e.canvas,i=n&&Xp(n);if(!i)return;const a=lS((s,l)=>{const c=i.clientWidth;r(s,l),c<i.clientWidth&&r()},window),o=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||a(c,u)});return o.observe(i),DV(e,a),o}function im(e,t,r){r&&r.disconnect(),t==="resize"&&NV(e)}function $V(e,t,r){const n=e.canvas,i=lS(a=>{e.ctx!==null&&r(TV(a,e))},e);return CV(n,t,i),i}class RV extends JS{acquireContext(t,r){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(PV(t,r),n):null}releaseContext(t){const r=t.canvas;if(!r[Oc])return!1;const n=r[Oc].initial;["height","width"].forEach(a=>{const o=n[a];_e(o)?r.removeAttribute(a):r.setAttribute(a,o)});const i=n.style||{};return Object.keys(i).forEach(a=>{r.style[a]=i[a]}),r.width=r.width,delete r[Oc],!0}addEventListener(t,r,n){this.removeEventListener(t,r);const i=t.$proxies||(t.$proxies={}),o={attach:MV,detach:jV,resize:IV}[r]||$V;i[r]=o(t,r,n)}removeEventListener(t,r){const n=t.$proxies||(t.$proxies={}),i=n[r];if(!i)return;({attach:im,detach:im,resize:im}[r]||kV)(t,r,i),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,r,n,i){return _W(t,r,n,i)}isAttached(t){const r=t&&Xp(t);return!!(r&&r.isConnected)}}function LV(e){return!Gp()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?AV:RV}class Tn{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:r,y:n}=this.getProps(["x","y"],t);return{x:r,y:n}}hasValue(){return Oo(this.x)&&Oo(this.y)}getProps(t,r){const n=this.$animations;if(!r||!n)return this;const i={};return t.forEach(a=>{i[a]=n[a]&&n[a].active()?n[a]._to:this[a]}),i}}function FV(e,t){const r=e.options.ticks,n=BV(e),i=Math.min(r.maxTicksLimit||n,n),a=r.major.enabled?WV(t):[],o=a.length,s=a[0],l=a[o-1],c=[];if(o>i)return VV(t,c,a,o/i),c;const u=zV(a,t,i);if(o>0){let f,d;const h=o>1?Math.round((l-s)/(o-1)):null;for(Ec(t,c,u,_e(h)?0:s-h,s),f=0,d=o-1;f<d;f++)Ec(t,c,u,a[f],a[f+1]);return Ec(t,c,u,l,_e(h)?t.length:l+h),c}return Ec(t,c,u),c}function BV(e){const t=e.options.offset,r=e._tickSize(),n=e._length/r+(t?0:1),i=e._maxLength/r;return Math.floor(Math.min(n,i))}function zV(e,t,r){const n=HV(e),i=t.length/r;if(!n)return Math.max(i,1);const a=w7(n);for(let o=0,s=a.length-1;o<s;o++){const l=a[o];if(l>i)return l}return Math.max(i,1)}function WV(e){const t=[];let r,n;for(r=0,n=e.length;r<n;r++)e[r].major&&t.push(r);return t}function VV(e,t,r,n){let i=0,a=r[0],o;for(n=Math.ceil(n),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=r[i*n])}function Ec(e,t,r,n,i){const a=se(n,0),o=Math.min(se(i,e.length),e.length);let s=0,l,c,u;for(r=Math.ceil(r),i&&(l=i-n,r=l/Math.floor(l/r)),u=a;u<0;)s++,u=Math.round(a+s*r);for(c=Math.max(a,0);c<o;c++)c===u&&(t.push(e[c]),s++,u=Math.round(a+s*r))}function HV(e){const t=e.length;let r,n;if(t<2)return!1;for(n=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==n)return!1;return n}const UV=e=>e==="left"?"right":e==="right"?"left":e,nO=(e,t,r)=>t==="top"||t==="left"?e[t]+r:e[t]-r,iO=(e,t)=>Math.min(t||e,e);function aO(e,t){const r=[],n=e.length/t,i=e.length;let a=0;for(;a<i;a+=n)r.push(e[Math.floor(a)]);return r}function KV(e,t,r){const n=e.ticks.length,i=Math.min(t,n-1),a=e._startPixel,o=e._endPixel,s=1e-6;let l=e.getPixelForTick(i),c;if(!(r&&(n===1?c=Math.max(l-a,o-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<a-s||l>o+s)))return l}function qV(e,t){Pe(e,r=>{const n=r.gc,i=n.length/2;let a;if(i>t){for(a=0;a<i;++a)delete r.data[n[a]];n.splice(0,i)}})}function No(e){return e.drawTicks?e.tickLength:0}function oO(e,t){if(!e.display)return 0;const r=Rt(e.font,t),n=vr(e.padding);return(yt(e.text)?e.text.length:1)*r.lineHeight+n.height}function YV(e,t){return mi(e,{scale:t,type:"scale"})}function GV(e,t,r){return mi(e,{tick:r,index:t,type:"tick"})}function XV(e,t,r){let n=cS(e);return(r&&t!=="right"||!r&&t==="right")&&(n=UV(n)),n}function ZV(e,t,r,n){const{top:i,left:a,bottom:o,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let f=0,d,h,m;const p=o-i,g=s-a;if(e.isHorizontal()){if(h=er(n,a,s),he(r)){const v=Object.keys(r)[0],b=r[v];m=u[v].getPixelForValue(b)+p-t}else r==="center"?m=(c.bottom+c.top)/2+p-t:m=nO(e,r,t);d=s-a}else{if(he(r)){const v=Object.keys(r)[0],b=r[v];h=u[v].getPixelForValue(b)-g+t}else r==="center"?h=(c.left+c.right)/2-g+t:h=nO(e,r,t);m=er(n,o,i),f=r==="left"?-ft:ft}return{titleX:h,titleY:m,maxWidth:d,rotation:f}}class aa extends Tn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,r){return t}getUserBounds(){let{_userMin:t,_userMax:r,_suggestedMin:n,_suggestedMax:i}=this;return t=Tr(t,Number.POSITIVE_INFINITY),r=Tr(r,Number.NEGATIVE_INFINITY),n=Tr(n,Number.POSITIVE_INFINITY),i=Tr(i,Number.NEGATIVE_INFINITY),{min:Tr(t,n),max:Tr(r,i),minDefined:dr(t),maxDefined:dr(r)}}getMinMax(t){let{min:r,max:n,minDefined:i,maxDefined:a}=this.getUserBounds(),o;if(i&&a)return{min:r,max:n};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)o=s[l].controller.getMinMax(this,t),i||(r=Math.min(r,o.min)),a||(n=Math.max(n,o.max));return r=a&&r>n?n:r,n=i&&r>n?r:n,{min:Tr(r,Tr(n,r)),max:Tr(n,Tr(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Fe(this.options.beforeUpdate,[this])}update(t,r,n){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=r,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=eW(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?aO(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=FV(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,t=!t),this._startPixel=r,this._endPixel=n,this._reversePixels=t,this._length=n-r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Fe(this.options.afterUpdate,[this])}beforeSetDimensions(){Fe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Fe(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Fe(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Fe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const r=this.options.ticks;let n,i,a;for(n=0,i=t.length;n<i;n++)a=t[n],a.label=Fe(r.callback,[a.value,n,t],this)}afterTickToLabelConversion(){Fe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Fe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,r=t.ticks,n=iO(this.ticks.length,t.ticks.maxTicksLimit),i=r.minRotation||0,a=r.maxRotation;let o=i,s,l,c;if(!this._isVisible()||!r.display||i>=a||n<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),f=u.widest.width,d=u.highest.height,h=Ct(this.chart.width-f,0,this.maxWidth);s=t.offset?this.maxWidth/n:h/(n-1),f+6>s&&(s=h/(n-(t.offset?.5:1)),l=this.maxHeight-No(t.grid)-r.padding-oO(t.title,this.chart.options.font),c=Math.sqrt(f*f+d*d),o=A7(Math.min(Math.asin(Ct((u.highest.height+6)/s,-1,1)),Math.asin(Ct(l/c,-1,1))-Math.asin(Ct(d/c,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Fe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Fe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:r,options:{ticks:n,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=oO(i,r.options.font);if(s?(t.width=this.maxWidth,t.height=No(a)+l):(t.height=this.maxHeight,t.width=No(a)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:f,highest:d}=this._getLabelSizes(),h=n.padding*2,m=nn(this.labelRotation),p=Math.cos(m),g=Math.sin(m);if(s){const v=n.mirror?0:g*f.width+p*d.height;t.height=Math.min(this.maxHeight,t.height+v+h)}else{const v=n.mirror?0:p*f.width+g*d.height;t.width=Math.min(this.maxWidth,t.width+v+h)}this._calculatePadding(c,u,g,p)}}this._handleMargins(),s?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,r,n,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;l?c?(d=i*t.width,h=n*r.height):(d=n*t.height,h=i*r.width):a==="start"?h=r.width:a==="end"?d=t.width:a!=="inner"&&(d=t.width/2,h=r.width/2),this.paddingLeft=Math.max((d-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-f+o)*this.width/(this.width-f),0)}else{let u=r.height/2,f=t.height/2;a==="start"?(u=0,f=t.height):a==="end"&&(u=r.height,f=0),this.paddingTop=u+o,this.paddingBottom=f+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Fe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:r}=this.options;return r==="top"||r==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let r,n;for(r=0,n=t.length;r<n;r++)_e(t[r].label)&&(t.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=aO(n,r)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,r,n){const{ctx:i,_longestTextCache:a}=this,o=[],s=[],l=Math.floor(r/iO(r,n));let c=0,u=0,f,d,h,m,p,g,v,b,x,S,w;for(f=0;f<r;f+=l){if(m=t[f].label,p=this._resolveTickFontOptions(f),i.font=g=p.string,v=a[g]=a[g]||{data:{},gc:[]},b=p.lineHeight,x=S=0,!_e(m)&&!yt(m))x=mS(i,v.data,v.gc,x,m),S=b;else if(yt(m))for(d=0,h=m.length;d<h;++d)w=m[d],!_e(w)&&!yt(w)&&(x=mS(i,v.data,v.gc,x,w),S+=b);o.push(x),s.push(S),c=Math.max(x,c),u=Math.max(S,u)}qV(a,r);const O=o.indexOf(c),E=s.indexOf(u),C=M=>({width:o[M]||0,height:s[M]||0});return{first:C(0),last:C(r-1),widest:C(O),highest:C(E),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,r){return NaN}getValueForPixel(t){}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const r=this._startPixel+t*this._length;return P7(this._alignToPixels?pi(this.chart,r,0):r)}getDecimalForPixel(t){const r=(t-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:r}=this;return t<0&&r<0?r:t>0&&r>0?t:0}getContext(t){const r=this.ticks||[];if(t>=0&&t<r.length){const n=r[t];return n.$context||(n.$context=GV(this.getContext(),t,n))}return this.$context||(this.$context=YV(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,r=nn(this.labelRotation),n=Math.abs(Math.cos(r)),i=Math.abs(Math.sin(r)),a=this._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*n>s*i?s/n:l/i:l*i<s*n?l/n:s/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const r=this.axis,n=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=No(a),h=[],m=s.setContext(this.getContext()),p=m.display?m.width:0,g=p/2,v=function(W){return pi(n,W,p)};let b,x,S,w,O,E,C,M,$,j,_,I;if(o==="top")b=v(this.bottom),E=this.bottom-d,M=b-g,j=v(t.top)+g,I=t.bottom;else if(o==="bottom")b=v(this.top),j=t.top,I=v(t.bottom)-g,E=b+g,M=this.top+d;else if(o==="left")b=v(this.right),O=this.right-d,C=b-g,$=v(t.left)+g,_=t.right;else if(o==="right")b=v(this.left),$=t.left,_=v(t.right)-g,O=b+g,C=this.left+d;else if(r==="x"){if(o==="center")b=v((t.top+t.bottom)/2+.5);else if(he(o)){const W=Object.keys(o)[0],H=o[W];b=v(this.chart.scales[W].getPixelForValue(H))}j=t.top,I=t.bottom,E=b+g,M=E+d}else if(r==="y"){if(o==="center")b=v((t.left+t.right)/2);else if(he(o)){const W=Object.keys(o)[0],H=o[W];b=v(this.chart.scales[W].getPixelForValue(H))}O=b-g,C=O-d,$=t.left,_=t.right}const D=se(i.ticks.maxTicksLimit,f),L=Math.max(1,Math.ceil(f/D));for(x=0;x<f;x+=L){const W=this.getContext(x),H=a.setContext(W),te=s.setContext(W),Q=H.lineWidth,F=H.color,U=te.dash||[],V=te.dashOffset,re=H.tickWidth,Z=H.tickColor,J=H.tickBorderDash||[],ee=H.tickBorderDashOffset;S=KV(this,x,l),S!==void 0&&(w=pi(n,S,Q),c?O=C=$=_=w:E=M=j=I=w,h.push({tx1:O,ty1:E,tx2:C,ty2:M,x1:$,y1:j,x2:_,y2:I,width:Q,color:F,borderDash:U,borderDashOffset:V,tickWidth:re,tickColor:Z,tickBorderDash:J,tickBorderDashOffset:ee}))}return this._ticksLength=f,this._borderValue=b,h}_computeLabelItems(t){const r=this.axis,n=this.options,{position:i,ticks:a}=n,o=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:f}=a,d=No(n.grid),h=d+u,m=f?-u:h,p=-nn(this.labelRotation),g=[];let v,b,x,S,w,O,E,C,M,$,j,_,I="middle";if(i==="top")O=this.bottom-m,E=this._getXAxisLabelAlignment();else if(i==="bottom")O=this.top+m,E=this._getXAxisLabelAlignment();else if(i==="left"){const L=this._getYAxisLabelAlignment(d);E=L.textAlign,w=L.x}else if(i==="right"){const L=this._getYAxisLabelAlignment(d);E=L.textAlign,w=L.x}else if(r==="x"){if(i==="center")O=(t.top+t.bottom)/2+h;else if(he(i)){const L=Object.keys(i)[0],W=i[L];O=this.chart.scales[L].getPixelForValue(W)+h}E=this._getXAxisLabelAlignment()}else if(r==="y"){if(i==="center")w=(t.left+t.right)/2-h;else if(he(i)){const L=Object.keys(i)[0],W=i[L];w=this.chart.scales[L].getPixelForValue(W)}E=this._getYAxisLabelAlignment(d).textAlign}r==="y"&&(l==="start"?I="top":l==="end"&&(I="bottom"));const D=this._getLabelSizes();for(v=0,b=s.length;v<b;++v){x=s[v],S=x.label;const L=a.setContext(this.getContext(v));C=this.getPixelForTick(v)+a.labelOffset,M=this._resolveTickFontOptions(v),$=M.lineHeight,j=yt(S)?S.length:1;const W=j/2,H=L.color,te=L.textStrokeColor,Q=L.textStrokeWidth;let F=E;o?(w=C,E==="inner"&&(v===b-1?F=this.options.reverse?"left":"right":v===0?F=this.options.reverse?"right":"left":F="center"),i==="top"?c==="near"||p!==0?_=-j*$+$/2:c==="center"?_=-D.highest.height/2-W*$+$:_=-D.highest.height+$/2:c==="near"||p!==0?_=$/2:c==="center"?_=D.highest.height/2-W*$:_=D.highest.height-j*$,f&&(_*=-1),p!==0&&!L.showLabelBackdrop&&(w+=$/2*Math.sin(p))):(O=C,_=(1-j)*$/2);let U;if(L.showLabelBackdrop){const V=vr(L.backdropPadding),re=D.heights[v],Z=D.widths[v];let J=_-V.top,ee=0-V.left;switch(I){case"middle":J-=re/2;break;case"bottom":J-=re;break}switch(E){case"center":ee-=Z/2;break;case"right":ee-=Z;break;case"inner":v===b-1?ee-=Z:v>0&&(ee-=Z/2);break}U={left:ee,top:J,width:Z+V.width,height:re+V.height,color:L.backdropColor}}g.push({label:S,font:M,textOffset:_,options:{rotation:p,color:H,strokeColor:te,strokeWidth:Q,textAlign:F,textBaseline:I,translation:[w,O],backdrop:U}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:r}=this.options;if(-nn(this.labelRotation))return t==="top"?"left":"right";let i="center";return r.align==="start"?i="left":r.align==="end"?i="right":r.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:r,ticks:{crossAlign:n,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let c,u;return r==="left"?i?(u=this.right+a,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u=this.left)):r==="right"?i?(u=this.left+a,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:r},left:n,top:i,width:a,height:o}=this;r&&(t.save(),t.fillStyle=r,t.fillRect(n,i,a,o),t.restore())}getLineWidthForValue(t){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?r.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const r=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(r.display)for(a=0,o=i.length;a<o;++a){const l=i[a];r.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),r.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:r,options:{border:n,grid:i}}=this,a=n.setContext(this.getContext()),o=n.display?a.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,f,d;this.isHorizontal()?(c=pi(t,this.left,o)-o/2,u=pi(t,this.right,s)+s/2,f=d=l):(f=pi(t,this.top,o)-o/2,d=pi(t,this.bottom,s)+s/2,c=u=l),r.save(),r.lineWidth=a.width,r.strokeStyle=a.color,r.beginPath(),r.moveTo(c,f),r.lineTo(u,d),r.stroke(),r.restore()}drawLabels(t){if(!this.options.ticks.display)return;const n=this.ctx,i=this._computeLabelArea();i&&Vp(n,i);const a=this.getLabelItems(t);for(const o of a){const s=o.options,l=o.font,c=o.label,u=o.textOffset;hc(n,c,0,u,l,s)}i&&Hp(n)}drawTitle(){const{ctx:t,options:{position:r,title:n,reverse:i}}=this;if(!n.display)return;const a=Rt(n.font),o=vr(n.padding),s=n.align;let l=a.lineHeight/2;r==="bottom"||r==="center"||he(r)?(l+=o.bottom,yt(n.text)&&(l+=a.lineHeight*(n.text.length-1))):l+=o.top;const{titleX:c,titleY:u,maxWidth:f,rotation:d}=ZV(this,l,r,s);hc(t,n.text,0,0,a,{color:n.color,maxWidth:f,rotation:d,textAlign:XV(s,r,i),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,r=t.ticks&&t.ticks.z||0,n=se(t.grid&&t.grid.z,-1),i=se(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==aa.prototype.draw?[{z:r,draw:a=>{this.draw(a)}}]:[{z:n,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:r,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let a,o;for(a=0,o=r.length;a<o;++a){const s=r[a];s[n]===this.id&&(!t||s.type===t)&&i.push(s)}return i}_resolveTickFontOptions(t){const r=this.options.ticks.setContext(this.getContext(t));return Rt(r.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Pc{constructor(t,r,n){this.type=t,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const r=Object.getPrototypeOf(t);let n;e9(r)&&(n=this.register(r));const i=this.items,a=t.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,JV(t,o,n),this.override&&et.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const r=this.items,n=t.id,i=this.scope;n in r&&delete r[n],i&&n in et[i]&&(delete et[i][n],this.override&&delete hi[n])}}function JV(e,t,r){const n=xo(Object.create(null),[r?et.get(r):{},et.get(t),e.defaults]);et.set(t,n),e.defaultRoutes&&QV(t,e.defaultRoutes),e.descriptors&&et.describe(t,e.descriptors)}function QV(e,t){Object.keys(t).forEach(r=>{const n=r.split("."),i=n.pop(),a=[e].concat(n).join("."),o=t[r].split("."),s=o.pop(),l=o.join(".");et.route(a,i,l,s)})}function e9(e){return"id"in e&&"defaults"in e}class t9{constructor(){this.controllers=new Pc(wc,"datasets",!0),this.elements=new Pc(Tn,"elements"),this.plugins=new Pc(Object,"plugins"),this.scales=new Pc(aa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,r,n){[...r].forEach(i=>{const a=n||this._getRegistryForType(i);n||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):Pe(i,o=>{const s=n||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,r,n){const i=Np(t);Fe(n["before"+i],[],n),r[t](n),Fe(n["after"+i],[],n)}_getRegistryForType(t){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(t))return n}return this.plugins}_get(t,r,n){const i=r.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var jr=new t9;class r9{constructor(){this._init=[]}notify(t,r,n,i){r==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const a=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(a,t,r,n);return r==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,r,n,i){i=i||{};for(const a of t){const o=a.plugin,s=o[n],l=[r,i,a.options];if(Fe(s,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){_e(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),r}_createDescriptors(t,r){const n=t&&t.config,i=se(n.options&&n.options.plugins,{}),a=n9(n);return i===!1&&!r?[]:a9(t,a,i,r)}_notifyStateChanges(t){const r=this._oldCache||[],n=this._cache,i=(a,o)=>a.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(r,n),t,"stop"),this._notify(i(n,r),t,"start")}}function n9(e){const t={},r=[],n=Object.keys(jr.plugins.items);for(let a=0;a<n.length;a++)r.push(jr.getPlugin(n[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const o=i[a];r.indexOf(o)===-1&&(r.push(o),t[o.id]=!0)}return{plugins:r,localIds:t}}function i9(e,t){return!t&&e===!1?null:e===!0?{}:e}function a9(e,{plugins:t,localIds:r},n,i){const a=[],o=e.getContext();for(const s of t){const l=s.id,c=i9(n[l],i);c!==null&&a.push({plugin:s,options:o9(e.config,{plugin:s,local:r[l]},c,o)})}return a}function o9(e,{plugin:t,local:r},n,i){const a=e.pluginScopeKeys(t),o=e.getOptionScopes(n,a);return r&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function am(e,t){const r=et.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||r.indexAxis||"x"}function s9(e,t){let r=e;return e==="_index_"?r=t:e==="_value_"&&(r=t==="x"?"y":"x"),r}function l9(e,t){return e===t?"_index_":"_value_"}function sO(e){if(e==="x"||e==="y"||e==="r")return e}function c9(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function om(e,...t){if(sO(e))return e;for(const r of t){const n=r.axis||c9(r.position)||e.length>1&&sO(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function lO(e,t,r){if(r[t+"AxisID"]===e)return{axis:t}}function u9(e,t){if(t.data&&t.data.datasets){const r=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(r.length)return lO(e,"x",r[0])||lO(e,"y",r[0])}return{}}function f9(e,t){const r=hi[e.type]||{scales:{}},n=t.scales||{},i=am(e.type,t),a=Object.create(null);return Object.keys(n).forEach(o=>{const s=n[o];if(!he(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=om(o,s,u9(o,e),et.scales[s.type]),c=l9(l,i),u=r.scales||{};a[o]=wo(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||am(s,t),u=(hi[s]||{}).scales||{};Object.keys(u).forEach(f=>{const d=s9(f,l),h=o[d+"AxisID"]||d;a[h]=a[h]||Object.create(null),wo(a[h],[{axis:d},n[h],u[f]])})}),Object.keys(a).forEach(o=>{const s=a[o];wo(s,[et.scales[s.type],et.scale])}),a}function cO(e){const t=e.options||(e.options={});t.plugins=se(t.plugins,{}),t.scales=f9(e,t)}function uO(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function d9(e){return e=e||{},e.data=uO(e.data),cO(e),e}const fO=new Map,dO=new Set;function Cc(e,t){let r=fO.get(e);return r||(r=t(),fO.set(e,r),dO.add(r)),r}const Io=(e,t,r)=>{const n=ui(t,r);n!==void 0&&e.add(n)};class h9{constructor(t){this._config=d9(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=uO(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),cO(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Cc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,r){return Cc(`${t}.transition.${r}`,()=>[[`datasets.${t}.transitions.${r}`,`transitions.${r}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,r){return Cc(`${t}-${r}`,()=>[[`datasets.${t}.elements.${r}`,`datasets.${t}`,`elements.${r}`,""]])}pluginScopeKeys(t){const r=t.id,n=this.type;return Cc(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,r){const n=this._scopeCache;let i=n.get(t);return(!i||r)&&(i=new Map,n.set(t,i)),i}getOptionScopes(t,r,n){const{options:i,type:a}=this,o=this._cachedScopes(t,n),s=o.get(r);if(s)return s;const l=new Set;r.forEach(u=>{t&&(l.add(t),u.forEach(f=>Io(l,t,f))),u.forEach(f=>Io(l,i,f)),u.forEach(f=>Io(l,hi[a]||{},f)),u.forEach(f=>Io(l,et,f)),u.forEach(f=>Io(l,Bp,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),dO.has(r)&&o.set(r,c),c}chartOptionScopes(){const{options:t,type:r}=this;return[t,hi[r]||{},et.datasets[r]||{},{type:r},et,Bp]}resolveNamedOptions(t,r,n,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=hO(this._resolverCache,t,i);let l=o;if(m9(o,r)){a.$shared=!1,n=Pn(n)?n():n;const c=this.createResolver(t,n,s);l=ra(o,n,c)}for(const c of r)a[c]=l[c];return a}createResolver(t,r,n=[""],i){const{resolver:a}=hO(this._resolverCache,t,n);return he(r)?ra(a,r,void 0,i):a}}function hO(e,t,r){let n=e.get(t);n||(n=new Map,e.set(t,n));const i=r.join();let a=n.get(i);return a||(a={resolver:Kp(t,r),subPrefixes:r.filter(s=>!s.toLowerCase().includes("hover"))},n.set(i,a)),a}const p9=e=>he(e)&&Object.getOwnPropertyNames(e).some(t=>Pn(e[t]));function m9(e,t){const{isScriptable:r,isIndexable:n}=bS(e);for(const i of t){const a=r(i),o=n(i),s=(o||a)&&e[i];if(a&&(Pn(s)||p9(s))||o&&yt(s))return!0}return!1}var g9="4.5.0";const v9=["top","bottom","left","right","chartArea"];function pO(e,t){return e==="top"||e==="bottom"||v9.indexOf(e)===-1&&t==="x"}function mO(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}function gO(e){const t=e.chart,r=t.options.animation;t.notifyPlugins("afterRender"),Fe(r&&r.onComplete,[e],t)}function y9(e){const t=e.chart,r=t.options.animation;Fe(r&&r.onProgress,[e],t)}function vO(e){return Gp()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const kc={},yO=e=>{const t=vO(e);return Object.values(kc).filter(r=>r.canvas===t).pop()};function b9(e,t,r){const n=Object.keys(e);for(const i of n){const a=+i;if(a>=t){const o=e[i];delete e[i],(r>0||a>t)&&(e[a+r]=o)}}}function x9(e,t,r,n){return!r||e.type==="mouseout"?null:n?t:e}let Lt=class{static defaults=et;static instances=kc;static overrides=hi;static registry=jr;static version=g9;static getChart=yO;static register(...t){jr.add(...t),bO()}static unregister(...t){jr.remove(...t),bO()}constructor(t,r){const n=this.config=new h9(r),i=vO(t),a=yO(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||LV(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,o.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=d7(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new r9,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=M7(f=>this.update(f),o.resizeDelay||0),this._dataChanges=[],kc[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}an.listen(this,"complete",gO),an.listen(this,"progress",y9),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:r},width:n,height:i,_aspectRatio:a}=this;return _e(t)?r&&a?a:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return jr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ES(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return gS(this.canvas,this.ctx),this}stop(){return an.stop(this),this}resize(t,r){an.running(this)?this._resizeBeforeDraw={width:t,height:r}:this._resize(t,r)}_resize(t,r){const n=this.options,i=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,r,a),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ES(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Fe(n.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};Pe(r,(n,i)=>{n.id=i})}buildOrUpdateScales(){const t=this.options,r=t.scales,n=this.scales,i=Object.keys(n).reduce((o,s)=>(o[s]=!1,o),{});let a=[];r&&(a=a.concat(Object.keys(r).map(o=>{const s=r[o],l=om(o,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Pe(a,o=>{const s=o.options,l=s.id,c=om(l,s),u=se(s.type,o.dtype);(s.position===void 0||pO(s.position,c)!==pO(o.dposition))&&(s.position=o.dposition),i[l]=!0;let f=null;if(l in n&&n[l].type===u)f=n[l];else{const d=jr.getScale(u);f=new d({id:l,type:u,ctx:this.ctx,chart:this}),n[f.id]=f}f.init(s,t)}),Pe(i,(o,s)=>{o||delete n[s]}),Pe(n,o=>{kn.configure(this,o,o.options),kn.addBox(this,o)})}_updateMetasets(){const t=this._metasets,r=this.data.datasets.length,n=t.length;if(t.sort((i,a)=>i.index-a.index),n>r){for(let i=r;i<n;++i)this._destroyDatasetMeta(i);t.splice(r,n-r)}this._sortedMetasets=t.slice(0).sort(mO("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:r}}=this;t.length>r.length&&delete this._stacks,t.forEach((n,i)=>{r.filter(a=>a===n._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],r=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=r.length;n<i;n++){const a=r[n];let o=this.getDatasetMeta(n);const s=a.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=s,o.indexAxis=a.indexAxis||am(s,this.options),o.order=a.order||0,o.index=n,o.label=""+a.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const l=jr.getController(s),{datasetElementType:c,dataElementType:u}=et.datasets[s];Object.assign(l,{dataElementType:jr.getElement(u),datasetElementType:c&&jr.getElement(c)}),o.controller=new l(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Pe(this.data.datasets,(t,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const r=this.config;r.update();const n=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:f}=this.getDatasetMeta(c),d=!i&&a.indexOf(f)===-1;f.buildOrUpdateElements(d),o=Math.max(+f.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||Pe(a,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(mO("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Pe(this.scales,t=>{kn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!J2(r,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:a}of r){const o=n==="_removeElements"?-a:a;b9(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=a=>new Set(t.filter(o=>o[0]===a).map((o,s)=>s+","+o.splice(1).join(","))),i=n(0);for(let a=1;a<r;a++)if(!J2(i,n(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;kn.update(this,this.width,this.height,t);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],Pe(this.boxes,i=>{n&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let r=0,n=this.data.datasets.length;r<n;++r)this.getDatasetMeta(r).controller.configure();for(let r=0,n=this.data.datasets.length;r<n;++r)this._updateDataset(r,Pn(t)?t({datasetIndex:r}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,r){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:r,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(n.controller._update(r),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(an.has(this)?this.attached&&!an.running(this)&&an.start(this):(this.draw(),gO({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:n,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const r=this._layers;for(t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(this.chartArea);for(this._drawDatasets();t<r.length;++t)r[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const r=this._sortedMetasets,n=[];let i,a;for(i=0,a=r.length;i<a;++i){const o=r[i];(!t||o.visible)&&n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let r=t.length-1;r>=0;--r)this._drawDataset(t[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const r=this.ctx,n={meta:t,index:t.index,cancelable:!0},i=RW(this,t);this.notifyPlugins("beforeDatasetDraw",n)!==!1&&(i&&Vp(r,i),t.controller.draw(),i&&Hp(r),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return Co(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,r,n,i){const a=vV.modes[r];return typeof a=="function"?a(this,t,n,i):[]}getDatasetMeta(t){const r=this.data.datasets[t],n=this._metasets;let i=n.filter(a=>a&&a._dataset===r).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:t,_dataset:r,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=mi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const r=this.data.datasets[t];if(!r)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(t,r){const n=this.getDatasetMeta(t);n.hidden=!r}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,r,n){const i=n?"show":"hide",a=this.getDatasetMeta(t),o=a.controller._resolveAnimations(void 0,i);_o(r)?(a.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(a,{visible:n}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,r){this._updateVisibility(t,r,!1)}show(t,r){this._updateVisibility(t,r,!0)}_destroyDatasetMeta(t){const r=this._metasets[t];r&&r.controller&&r.controller._destroy(),delete this._metasets[t]}_stop(){let t,r;for(this.stop(),an.remove(this),t=0,r=this.data.datasets.length;t<r;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:r}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),gS(t,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete kc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,r=this.platform,n=(a,o)=>{r.addEventListener(this,a,o),t[a]=o},i=(a,o,s)=>{a.offsetX=o,a.offsetY=s,this._eventHandler(a)};Pe(this.options.events,a=>n(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,r=this.platform,n=(l,c)=>{r.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(r.removeEventListener(this,l,c),delete t[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",a),n("detach",o)};o=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),n("attach",s)},r.isAttached(this.canvas)?s():o()}unbindEvents(){Pe(this._listeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._listeners={},Pe(this._responsiveListeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,r,n){const i=n?"set":"remove";let a,o,s,l;for(r==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s<l;++s){o=t[s];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const r=this._active||[],n=t.map(({datasetIndex:a,index:o})=>{const s=this.getDatasetMeta(a);if(!s)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:s.data[o],index:o}});!cc(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(t,r,n){return this._plugins.notify(this,t,r,n)}isPluginEnabled(t){return this._plugins._cache.filter(r=>r.plugin.id===t).length===1}_updateHoverStyles(t,r,n){const i=this.options.hover,a=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),o=a(r,t),s=n?t:a(t,r);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,r){const n={event:t,replay:r,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,i)===!1)return;const a=this._handleEvent(t,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(a||n.changed)&&this.render(),this}_handleEvent(t,r,n){const{_active:i=[],options:a}=this,o=r,s=this._getActiveElements(t,i,n,o),l=y7(t),c=x9(t,this._lastEvent,n,l);n&&(this._lastEvent=null,Fe(a.onHover,[t,s,this],this),l&&Fe(a.onClick,[t,s,this],this));const u=!cc(s,i);return(u||r)&&(this._active=s,this._updateHoverStyles(s,i,r)),this._lastEvent=c,u}_getActiveElements(t,r,n,i){if(t.type==="mouseout")return[];if(!n)return r;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}};function bO(){return Pe(Lt.instances,e=>e._plugins.invalidate())}function w9(e,t,r){const{startAngle:n,x:i,y:a,outerRadius:o,innerRadius:s,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,f=Math.min(c/o,gr(n-r));if(e.beginPath(),e.arc(i,a,o-c/2,n+f/2,r-f/2),s>0){const d=Math.min(c/s,gr(n-r));e.arc(i,a,s+c/2,r-d/2,n+d/2,!0)}else{const d=Math.min(c/2,o*gr(n-r));if(u==="round")e.arc(i,a,d,r-je/2,n+je/2,!0);else if(u==="bevel"){const h=2*d*d,m=-h*Math.cos(r+je/2)+i,p=-h*Math.sin(r+je/2)+a,g=h*Math.cos(n+je/2)+i,v=h*Math.sin(n+je/2)+a;e.lineTo(m,p),e.lineTo(g,v)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function _9(e,t,r){const{startAngle:n,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(a,o,s,n-c,r+c),l>i?(c=i/l,e.arc(a,o,l,r+c,n-c,!0)):e.arc(a,o,i,r+ft,n-ft),e.closePath(),e.clip()}function S9(e){return Up(e,["outerStart","outerEnd","innerStart","innerEnd"])}function O9(e,t,r,n){const i=S9(e.options.borderRadius),a=(r-t)/2,o=Math.min(a,n*t/2),s=l=>{const c=(r-Math.min(a,l))*n/2;return Ct(l,0,Math.min(a,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Ct(i.innerStart,0,o),innerEnd:Ct(i.innerEnd,0,o)}}function oa(e,t,r,n){return{x:r+e*Math.cos(t),y:n+e*Math.sin(t)}}function Tc(e,t,r,n,i,a){const{x:o,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,f=Math.max(t.outerRadius+n+r-c,0),d=u>0?u+n+r+c:0;let h=0;const m=i-l;if(n){const L=u>0?u-n:0,W=f>0?f-n:0,H=(L+W)/2,te=H!==0?m*H/(H+n):m;h=(m-te)/2}const p=Math.max(.001,m*f-r/je)/f,g=(m-p)/2,v=l+g+h,b=i-g-h,{outerStart:x,outerEnd:S,innerStart:w,innerEnd:O}=O9(t,d,f,b-v),E=f-x,C=f-S,M=v+x/E,$=b-S/C,j=d+w,_=d+O,I=v+w/j,D=b-O/_;if(e.beginPath(),a){const L=(M+$)/2;if(e.arc(o,s,f,M,L),e.arc(o,s,f,L,$),S>0){const Q=oa(C,$,o,s);e.arc(Q.x,Q.y,S,$,b+ft)}const W=oa(_,b,o,s);if(e.lineTo(W.x,W.y),O>0){const Q=oa(_,D,o,s);e.arc(Q.x,Q.y,O,b+ft,D+Math.PI)}const H=(b-O/d+(v+w/d))/2;if(e.arc(o,s,d,b-O/d,H,!0),e.arc(o,s,d,H,v+w/d,!0),w>0){const Q=oa(j,I,o,s);e.arc(Q.x,Q.y,w,I+Math.PI,v-ft)}const te=oa(E,v,o,s);if(e.lineTo(te.x,te.y),x>0){const Q=oa(E,M,o,s);e.arc(Q.x,Q.y,x,v-ft,M)}}else{e.moveTo(o,s);const L=Math.cos(M)*f+o,W=Math.sin(M)*f+s;e.lineTo(L,W);const H=Math.cos($)*f+o,te=Math.sin($)*f+s;e.lineTo(H,te)}e.closePath()}function A9(e,t,r,n,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){Tc(e,t,r,n,l,i);for(let c=0;c<a;++c)e.fill();isNaN(s)||(l=o+(s%Ge||Ge))}return Tc(e,t,r,n,l,i),e.fill(),l}function E9(e,t,r,n,i){const{fullCircles:a,startAngle:o,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:f,borderDashOffset:d,borderRadius:h}=l,m=l.borderAlign==="inner";if(!c)return;e.setLineDash(f||[]),e.lineDashOffset=d,m?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let p=t.endAngle;if(a){Tc(e,t,r,n,p,i);for(let g=0;g<a;++g)e.stroke();isNaN(s)||(p=o+(s%Ge||Ge))}m&&_9(e,t,p),l.selfJoin&&p-o>=je&&h===0&&u!=="miter"&&w9(e,t,p),a||(Tc(e,t,r,n,p,i),e.stroke())}class sm extends Tn{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,r,n){const i=this.getProps(["x","y"],n),{angle:a,distance:o}=nS(i,{x:t,y:r}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,h=se(f,l-s),m=Ao(a,s,l)&&s!==l,p=h>=Ge||m,g=Cn(o,c+d,u+d);return p&&g}getCenterPoint(t){const{x:r,y:n,startAngle:i,endAngle:a,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,u=(i+a)/2,f=(o+s+c+l)/2;return{x:r+Math.cos(u)*f,y:n+Math.sin(u)*f}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:r,circumference:n}=this,i=(r.offset||0)/4,a=(r.spacing||0)/2,o=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=n>Ge?Math.floor(n/Ge):0,n===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(je,n||0)),c=i*l;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,A9(t,this,c,a,o),E9(t,this,c,a,o),t.restore()}}function xO(e,t,r=t){e.lineCap=se(r.borderCapStyle,t.borderCapStyle),e.setLineDash(se(r.borderDash,t.borderDash)),e.lineDashOffset=se(r.borderDashOffset,t.borderDashOffset),e.lineJoin=se(r.borderJoinStyle,t.borderJoinStyle),e.lineWidth=se(r.borderWidth,t.borderWidth),e.strokeStyle=se(r.borderColor,t.borderColor)}function P9(e,t,r){e.lineTo(r.x,r.y)}function C9(e){return e.stepped?U7:e.tension||e.cubicInterpolationMode==="monotone"?K7:P9}function wO(e,t,r={}){const n=e.length,{start:i=0,end:a=n-1}=r,{start:o,end:s}=t,l=Math.max(i,o),c=Math.min(a,s),u=i<o&&a<o||i>s&&a>s;return{count:n,start:l,loop:t.loop,ilen:c<l&&!u?n+c-l:c-l}}function k9(e,t,r,n){const{points:i,options:a}=t,{count:o,start:s,loop:l,ilen:c}=wO(i,r,n),u=C9(a);let{move:f=!0,reverse:d}=n||{},h,m,p;for(h=0;h<=c;++h)m=i[(s+(d?c-h:h))%o],!m.skip&&(f?(e.moveTo(m.x,m.y),f=!1):u(e,p,m,d,a.stepped),p=m);return l&&(m=i[(s+(d?c:0))%o],u(e,p,m,d,a.stepped)),!!l}function T9(e,t,r,n){const i=t.points,{count:a,start:o,ilen:s}=wO(i,r,n),{move:l=!0,reverse:c}=n||{};let u=0,f=0,d,h,m,p,g,v;const b=S=>(o+(c?s-S:S))%a,x=()=>{p!==g&&(e.lineTo(u,g),e.lineTo(u,p),e.lineTo(u,v))};for(l&&(h=i[b(0)],e.moveTo(h.x,h.y)),d=0;d<=s;++d){if(h=i[b(d)],h.skip)continue;const S=h.x,w=h.y,O=S|0;O===m?(w<p?p=w:w>g&&(g=w),u=(f*u+S)/++f):(x(),e.lineTo(S,w),m=O,f=0,p=g=w),v=w}x()}function lm(e){const t=e.options,r=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!r?T9:k9}function M9(e){return e.stepped?OW:e.tension||e.cubicInterpolationMode==="monotone"?AW:yi}function j9(e,t,r,n){let i=t._path;i||(i=t._path=new Path2D,t.path(i,r,n)&&i.closePath()),xO(e,t.options),e.stroke(i)}function D9(e,t,r,n){const{segments:i,options:a}=t,o=lm(t);for(const s of i)xO(e,a,s.style),e.beginPath(),o(e,t,s,{start:r,end:r+n-1})&&e.closePath(),e.stroke()}const N9=typeof Path2D=="function";function I9(e,t,r,n){N9&&!t.options.segment?j9(e,t,r,n):D9(e,t,r,n)}class cm extends Tn{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,r){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;gW(this._points,n,t,i,r),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=DW(this,this.options.segment))}first(){const t=this.segments,r=this.points;return t.length&&r[t[0].start]}last(){const t=this.segments,r=this.points,n=t.length;return n&&r[t[n-1].end]}interpolate(t,r){const n=this.options,i=t[r],a=this.points,o=TW(this,{property:r,start:i,end:i});if(!o.length)return;const s=[],l=M9(n);let c,u;for(c=0,u=o.length;c<u;++c){const{start:f,end:d}=o[c],h=a[f],m=a[d];if(h===m){s.push(h);continue}const p=Math.abs((i-h[r])/(m[r]-h[r])),g=l(h,m,p,n.stepped);g[r]=t[r],s.push(g)}return s.length===1?s[0]:s}pathSegment(t,r,n){return lm(this)(t,this,r,n)}path(t,r,n){const i=this.segments,a=lm(this);let o=this._loop;r=r||0,n=n||this.points.length-r;for(const s of i)o&=a(t,this,s,{start:r,end:r+n-1});return!!o}draw(t,r,n,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),I9(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function _O(e,t,r,n){const i=e.options,{[r]:a}=e.getProps([r],n);return Math.abs(t-a)<i.radius+i.hitRadius}class um extends Tn{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,r,n){const i=this.options,{x:a,y:o}=this.getProps(["x","y"],n);return Math.pow(t-a,2)+Math.pow(r-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,r){return _O(this,t,"x",r)}inYRange(t,r){return _O(this,t,"y",r)}getCenterPoint(t){const{x:r,y:n}=this.getProps(["x","y"],t);return{x:r,y:n}}size(t){t=t||this.options||{};let r=t.radius||0;r=Math.max(r,r&&t.hoverRadius||0);const n=r&&t.borderWidth||0;return(r+n)*2}draw(t,r){const n=this.options;this.skip||n.radius<.1||!Co(this,r,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Wp(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function SO(e,t){const{x:r,y:n,base:i,width:a,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,f;return e.horizontal?(f=o/2,s=Math.min(r,i),l=Math.max(r,i),c=n-f,u=n+f):(f=a/2,s=r-f,l=r+f,c=Math.min(n,i),u=Math.max(n,i)),{left:s,top:c,right:l,bottom:u}}function Mn(e,t,r,n){return e?0:Ct(t,r,n)}function $9(e,t,r){const n=e.options.borderWidth,i=e.borderSkipped,a=yS(n);return{t:Mn(i.top,a.top,0,r),r:Mn(i.right,a.right,0,t),b:Mn(i.bottom,a.bottom,0,r),l:Mn(i.left,a.left,0,t)}}function R9(e,t,r){const{enableBorderRadius:n}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,a=ta(i),o=Math.min(t,r),s=e.borderSkipped,l=n||he(i);return{topLeft:Mn(!l||s.top||s.left,a.topLeft,0,o),topRight:Mn(!l||s.top||s.right,a.topRight,0,o),bottomLeft:Mn(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Mn(!l||s.bottom||s.right,a.bottomRight,0,o)}}function L9(e){const t=SO(e),r=t.right-t.left,n=t.bottom-t.top,i=$9(e,r/2,n/2),a=R9(e,r/2,n/2);return{outer:{x:t.left,y:t.top,w:r,h:n,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:r-i.l-i.r,h:n-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function fm(e,t,r,n){const i=t===null,a=r===null,s=e&&!(i&&a)&&SO(e,n);return s&&(i||Cn(t,s.left,s.right))&&(a||Cn(r,s.top,s.bottom))}function F9(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function B9(e,t){e.rect(t.x,t.y,t.w,t.h)}function dm(e,t,r={}){const n=e.x!==r.x?-t:0,i=e.y!==r.y?-t:0,a=(e.x+e.w!==r.x+r.w?t:0)-n,o=(e.y+e.h!==r.y+r.h?t:0)-i;return{x:e.x+n,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}class $o extends Tn{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:r,options:{borderColor:n,backgroundColor:i}}=this,{inner:a,outer:o}=L9(this),s=F9(o.radius)?pc:B9;t.save(),(o.w!==a.w||o.h!==a.h)&&(t.beginPath(),s(t,dm(o,r,a)),t.clip(),s(t,dm(a,-r,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,dm(a,r)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,r,n){return fm(this,t,r,n)}inXRange(t,r){return fm(this,t,null,r)}inYRange(t,r){return fm(this,null,t,r)}getCenterPoint(t){const{x:r,y:n,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(r+i)/2:r,y:a?n:(n+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}const OO=(e,t)=>{let{boxHeight:r=t,boxWidth:n=t}=e;return e.usePointStyle&&(r=Math.min(r,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(t,r)}},z9=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class AO extends Tn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,r,n){this.maxWidth=t,this.maxHeight=r,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let r=Fe(t.generateLabels,[this.chart],this)||[];t.filter&&(r=r.filter(n=>t.filter(n,this.chart.data))),t.sort&&(r=r.sort((n,i)=>t.sort(n,i,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:t,ctx:r}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,i=Rt(n.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=OO(n,a);let c,u;r.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,a,s,l)+10):(u=this.maxHeight,c=this._fitCols(o,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,r,n,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let f=t;a.textAlign="left",a.textBaseline="middle";let d=-1,h=-u;return this.legendItems.forEach((m,p)=>{const g=n+r/2+a.measureText(m.text).width;(p===0||c[c.length-1]+g+2*s>o)&&(f+=u,c[c.length-(p>0?0:1)]=0,h+=u,d++),l[p]={left:0,top:h,row:d,width:g,height:i},c[c.length-1]+=g+s}),f}_fitCols(t,r,n,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-t;let f=s,d=0,h=0,m=0,p=0;return this.legendItems.forEach((g,v)=>{const{itemWidth:b,itemHeight:x}=W9(n,r,a,g,i);v>0&&h+x+2*s>u&&(f+=d+s,c.push({width:d,height:h}),m+=d+s,p++,d=h=0),l[v]={left:m,top:h,col:p,width:b,height:x},d=Math.max(d,b),h+=x+s}),f+=d,c.push({width:d,height:h}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:i},rtl:a}}=this,o=ia(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=er(n,this.left+i,this.right-this.lineWidths[s]);for(const c of r)s!==c.row&&(s=c.row,l=er(n,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}else{let s=0,l=er(n,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of r)c.col!==s&&(s=c.col,l=er(n,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Vp(t,this),this._draw(),Hp(t)}}_draw(){const{options:t,columnSizes:r,lineWidths:n,ctx:i}=this,{align:a,labels:o}=t,s=et.color,l=ia(t.rtl,this.left,this.width),c=Rt(o.font),{padding:u}=o,f=c.size,d=f/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:g}=OO(o,f),v=function(O,E,C){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;i.save();const M=se(C.lineWidth,1);if(i.fillStyle=se(C.fillStyle,s),i.lineCap=se(C.lineCap,"butt"),i.lineDashOffset=se(C.lineDashOffset,0),i.lineJoin=se(C.lineJoin,"miter"),i.lineWidth=M,i.strokeStyle=se(C.strokeStyle,s),i.setLineDash(se(C.lineDash,[])),o.usePointStyle){const $={radius:p*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:M},j=l.xPlus(O,m/2),_=E+d;vS(i,$,j,_,o.pointStyleWidth&&m)}else{const $=E+Math.max((f-p)/2,0),j=l.leftForLtr(O,m),_=ta(C.borderRadius);i.beginPath(),Object.values(_).some(I=>I!==0)?pc(i,{x:j,y:$,w:m,h:p,radius:_}):i.rect(j,$,m,p),i.fill(),M!==0&&i.stroke()}i.restore()},b=function(O,E,C){hc(i,C.text,O,E+g/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?h={x:er(a,this.left+u,this.right-n[0]),y:this.top+u+S,line:0}:h={x:this.left+u,y:er(a,this.top+S+u,this.bottom-r[0].height),line:0},CS(this.ctx,t.textDirection);const w=g+u;this.legendItems.forEach((O,E)=>{i.strokeStyle=O.fontColor,i.fillStyle=O.fontColor;const C=i.measureText(O.text).width,M=l.textAlign(O.textAlign||(O.textAlign=o.textAlign)),$=m+d+C;let j=h.x,_=h.y;l.setWidth(this.width),x?E>0&&j+$+u>this.right&&(_=h.y+=w,h.line++,j=h.x=er(a,this.left+u,this.right-n[h.line])):E>0&&_+w>this.bottom&&(j=h.x=j+r[h.line].width+u,h.line++,_=h.y=er(a,this.top+S+u,this.bottom-r[h.line].height));const I=l.x(j);if(v(I,_,O),j=j7(M,j+m+d,x?j+$:this.right,t.rtl),b(l.x(j),_,O),x)h.x+=$+u;else if(typeof O.text!="string"){const D=c.lineHeight;h.y+=EO(O,D)+u}else h.y+=w}),kS(this.ctx,t.textDirection)}drawTitle(){const t=this.options,r=t.title,n=Rt(r.font),i=vr(r.padding);if(!r.display)return;const a=ia(t.rtl,this.left,this.width),o=this.ctx,s=r.position,l=n.size/2,c=i.top+l;let u,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),u=this.top+c,f=er(t.align,f,this.right-d);else{const m=this.columnSizes.reduce((p,g)=>Math.max(p,g.height),0);u=c+er(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const h=er(s,f,f+d);o.textAlign=a.textAlign(cS(s)),o.textBaseline="middle",o.strokeStyle=r.color,o.fillStyle=r.color,o.font=n.string,hc(o,r.text,h,u,n)}_computeTitleHeight(){const t=this.options.title,r=Rt(t.font),n=vr(t.padding);return t.display?r.lineHeight+n.height:0}_getLegendItemAt(t,r){let n,i,a;if(Cn(t,this.left,this.right)&&Cn(r,this.top,this.bottom)){for(a=this.legendHitBoxes,n=0;n<a.length;++n)if(i=a[n],Cn(t,i.left,i.left+i.width)&&Cn(r,i.top,i.top+i.height))return this.legendItems[n]}return null}handleEvent(t){const r=this.options;if(!U9(t.type,r))return;const n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=z9(i,n);i&&!a&&Fe(r.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!a&&Fe(r.onHover,[t,n,this],this)}else n&&Fe(r.onClick,[t,n,this],this)}}function W9(e,t,r,n,i){const a=V9(n,e,t,r),o=H9(i,n,t.lineHeight);return{itemWidth:a,itemHeight:o}}function V9(e,t,r,n){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,o)=>a.length>o.length?a:o)),t+r.size/2+n.measureText(i).width}function H9(e,t,r){let n=e;return typeof t.text!="string"&&(n=EO(t,r)),n}function EO(e,t){const r=e.text?e.text.length:0;return t*r}function U9(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var yr={id:"legend",_element:AO,start(e,t,r){const n=e.legend=new AO({ctx:e.ctx,options:r,chart:e});kn.configure(e,n,r),kn.addBox(e,n)},stop(e){kn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,r){const n=e.legend;kn.configure(e,n,r),n.options=r},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,r){const n=t.datasetIndex,i=r.chart;i.isDatasetVisible(n)?(i.hide(n),t.hidden=!0):(i.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),u=vr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const Ro={average(e){if(!e.length)return!1;let t,r,n=new Set,i=0,a=0;for(t=0,r=e.length;t<r;++t){const s=e[t].element;if(s&&s.hasValue()){const l=s.tooltipPosition();n.add(l.x),i+=l.y,++a}}return a===0||n.size===0?!1:{x:[...n].reduce((s,l)=>s+l)/n.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let r=t.x,n=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a<o;++a){const l=e[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Ip(t,c);u<i&&(i=u,s=l)}}if(s){const l=s.tooltipPosition();r=l.x,n=l.y}return{x:r,y:n}}};function Dr(e,t){return t&&(yt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function on(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
215
215
  `)>-1?e.split(`
216
- `):e}function H9(e,t){const{element:r,datasetIndex:n,index:i}=t,a=e.getDatasetMeta(n).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[n].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:n,element:r}}function EO(e,t){const r=e.chart.ctx,{body:n,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=Rt(t.bodyFont),c=Rt(t.titleFont),u=Rt(t.footerFont),f=a.length,d=i.length,h=n.length,m=vr(t.padding);let p=m.height,g=0,v=n.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,f&&(p+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),v){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;p+=h*S+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}d&&(p+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let b=0;const x=function(S){g=Math.max(g,r.measureText(S).width+b)};return r.save(),r.font=c.string,Pe(e.title,x),r.font=l.string,Pe(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?o+2+t.boxPadding:0,Pe(n,S=>{Pe(S.before,x),Pe(S.lines,x),Pe(S.after,x)}),b=0,r.font=u.string,Pe(e.footer,x),r.restore(),g+=m.width,{width:g,height:p}}function U9(e,t){const{y:r,height:n}=t;return r<n/2?"top":r>e.height-n/2?"bottom":"center"}function K9(e,t,r,n){const{x:i,width:a}=n,o=r.caretSize+r.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function q9(e,t,r,n){const{x:i,width:a}=r,{width:o,chartArea:{left:s,right:l}}=e;let c="center";return n==="center"?c=i<=(s+l)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),K9(c,e,t,r)&&(c="center"),c}function PO(e,t,r){const n=r.yAlign||t.yAlign||U9(e,r);return{xAlign:r.xAlign||t.xAlign||q9(e,t,r,n),yAlign:n}}function Y9(e,t){let{x:r,width:n}=e;return t==="right"?r-=n:t==="center"&&(r-=n/2),r}function G9(e,t,r){let{y:n,height:i}=e;return t==="top"?n+=r:t==="bottom"?n-=i+r:n-=i/2,n}function CO(e,t,r,n){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=r,c=i+a,{topLeft:u,topRight:f,bottomLeft:d,bottomRight:h}=ea(o);let m=Y9(t,s);const p=G9(t,l,c);return l==="center"?s==="left"?m+=c:s==="right"&&(m-=c):s==="left"?m-=Math.max(u,d)+i:s==="right"&&(m+=Math.max(f,h)+i),{x:Ct(m,0,n.width-t.width),y:Ct(p,0,n.height-t.height)}}function Tc(e,t,r){const n=vr(r.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function kO(e){return Dr([],on(e))}function X9(e,t,r){return pi(e,{tooltip:t,tooltipItems:r,type:"tooltip"})}function TO(e,t){const r=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return r?e.override(r):e}const MO={beforeTitle:rn,title(e){if(e.length>0){const t=e[0],r=t.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return r[t.dataIndex]}return""},afterTitle:rn,beforeBody:rn,beforeLabel:rn,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const r=e.formattedValue;return _e(r)||(t+=r),t},labelColor(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:r.borderColor,backgroundColor:r.backgroundColor,borderWidth:r.borderWidth,borderDash:r.borderDash,borderDashOffset:r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:rn,afterBody:rn,beforeFooter:rn,footer:rn,afterFooter:rn};function Ft(e,t,r,n){const i=e[t].call(r,n);return typeof i>"u"?MO[t].call(r,n):i}class jO extends Tn{static positioners=$o;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const r=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&r.options.animation&&n.animations,a=new NS(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=X9(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,r){const{callbacks:n}=r,i=Ft(n,"beforeTitle",this,t),a=Ft(n,"title",this,t),o=Ft(n,"afterTitle",this,t);let s=[];return s=Dr(s,on(i)),s=Dr(s,on(a)),s=Dr(s,on(o)),s}getBeforeBody(t,r){return kO(Ft(r.callbacks,"beforeBody",this,t))}getBody(t,r){const{callbacks:n}=r,i=[];return Pe(t,a=>{const o={before:[],lines:[],after:[]},s=TO(n,a);Dr(o.before,on(Ft(s,"beforeLabel",this,a))),Dr(o.lines,Ft(s,"label",this,a)),Dr(o.after,on(Ft(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,r){return kO(Ft(r.callbacks,"afterBody",this,t))}getFooter(t,r){const{callbacks:n}=r,i=Ft(n,"beforeFooter",this,t),a=Ft(n,"footer",this,t),o=Ft(n,"afterFooter",this,t);let s=[];return s=Dr(s,on(i)),s=Dr(s,on(a)),s=Dr(s,on(o)),s}_createItems(t){const r=this._active,n=this.chart.data,i=[],a=[],o=[];let s=[],l,c;for(l=0,c=r.length;l<c;++l)s.push(H9(this.chart,r[l]));return t.filter&&(s=s.filter((u,f,d)=>t.filter(u,f,d,n))),t.itemSort&&(s=s.sort((u,f)=>t.itemSort(u,f,n))),Pe(s,u=>{const f=TO(t.callbacks,u);i.push(Ft(f,"labelColor",this,u)),a.push(Ft(f,"labelPointStyle",this,u)),o.push(Ft(f,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,r){const n=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=$o[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const l=this._size=EO(this,n),c=Object.assign({},s,l),u=PO(this.chart,n,c),f=CO(n,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,a={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(t,r,n,i){const a=this.getCaretPosition(t,n,i);r.lineTo(a.x1,a.y1),r.lineTo(a.x2,a.y2),r.lineTo(a.x3,a.y3)}getCaretPosition(t,r,n){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=n,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=ea(s),{x:d,y:h}=t,{width:m,height:p}=r;let g,v,b,x,S,w;return a==="center"?(S=h+p/2,i==="left"?(g=d,v=g-o,x=S+o,w=S-o):(g=d+m,v=g+o,x=S-o,w=S+o),b=g):(i==="left"?v=d+Math.max(l,u)+o:i==="right"?v=d+m-Math.max(c,f)-o:v=this.caretX,a==="top"?(x=h,S=x-o,g=v-o,b=v+o):(x=h+p,S=x+o,g=v+o,b=v-o),w=x),{x1:g,x2:v,x3:b,y1:x,y2:S,y3:w}}drawTitle(t,r,n){const i=this.title,a=i.length;let o,s,l;if(a){const c=na(n.rtl,this.x,this.width);for(t.x=Tc(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",o=Rt(n.titleFont),s=n.titleSpacing,r.fillStyle=n.titleColor,r.font=o.string,l=0;l<a;++l)r.fillText(i[l],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,r,n,i,a){const o=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=a,u=Rt(a.bodyFont),f=Tc(this,"left",a),d=i.x(f),h=l<u.lineHeight?(u.lineHeight-l)/2:0,m=r.y+h;if(a.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},g=i.leftForLtr(d,c)+c/2,v=m+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,Bp(t,p,g,v),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Bp(t,p,g,v)}else{t.lineWidth=he(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const p=i.leftForLtr(d,c),g=i.leftForLtr(i.xPlus(d,1),c-2),v=ea(o.borderRadius);Object.values(v).some(b=>b!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,hc(t,{x:p,y:m,w:c,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),hc(t,{x:g,y:m+1,w:c-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(p,m,c,l),t.strokeRect(p,m,c,l),t.fillStyle=o.backgroundColor,t.fillRect(g,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,r,n){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=n,f=Rt(n.bodyFont);let d=f.lineHeight,h=0;const m=na(n.rtl,this.x,this.width),p=function(C){r.fillText(C,m.x(t.x+h),t.y+d/2),t.y+=d+a},g=m.textAlign(o);let v,b,x,S,w,O,E;for(r.textAlign=o,r.textBaseline="middle",r.font=f.string,t.x=Tc(this,g,n),r.fillStyle=n.bodyColor,Pe(this.beforeBody,p),h=s&&g!=="right"?o==="center"?c/2+u:c+2+u:0,S=0,O=i.length;S<O;++S){for(v=i[S],b=this.labelTextColors[S],r.fillStyle=b,Pe(v.before,p),x=v.lines,s&&x.length&&(this._drawColorBox(r,t,S,m,n),d=Math.max(f.lineHeight,l)),w=0,E=x.length;w<E;++w)p(x[w]),d=f.lineHeight;Pe(v.after,p)}h=0,d=f.lineHeight,Pe(this.afterBody,p),t.y-=a}drawFooter(t,r,n){const i=this.footer,a=i.length;let o,s;if(a){const l=na(n.rtl,this.x,this.width);for(t.x=Tc(this,n.footerAlign,n),t.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",o=Rt(n.footerFont),r.fillStyle=n.footerColor,r.font=o.string,s=0;s<a;++s)r.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,r,n,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:c,height:u}=n,{topLeft:f,topRight:d,bottomLeft:h,bottomRight:m}=ea(i.cornerRadius);r.fillStyle=i.backgroundColor,r.strokeStyle=i.borderColor,r.lineWidth=i.borderWidth,r.beginPath(),r.moveTo(s+f,l),o==="top"&&this.drawCaret(t,r,n,i),r.lineTo(s+c-d,l),r.quadraticCurveTo(s+c,l,s+c,l+d),o==="center"&&a==="right"&&this.drawCaret(t,r,n,i),r.lineTo(s+c,l+u-m),r.quadraticCurveTo(s+c,l+u,s+c-m,l+u),o==="bottom"&&this.drawCaret(t,r,n,i),r.lineTo(s+h,l+u),r.quadraticCurveTo(s,l+u,s,l+u-h),o==="center"&&a==="left"&&this.drawCaret(t,r,n,i),r.lineTo(s,l+f),r.quadraticCurveTo(s,l,s+f,l),r.closePath(),r.fill(),i.borderWidth>0&&r.stroke()}_updateAnimationTarget(t){const r=this.chart,n=this.$animations,i=n&&n.x,a=n&&n.y;if(i||a){const o=$o[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=EO(this,t),l=Object.assign({},o,this._size),c=PO(r,t,l),u=CO(t,l,c,r);(i._to!==u.x||a._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const r=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(r);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=vr(r.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(a,t,i,r),PS(t,r.textDirection),a.y+=o.top,this.drawTitle(a,t,r),this.drawBody(a,t,r),this.drawFooter(a,t,r),CS(t,r.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,r){const n=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),a=!lc(n,i),o=this._positionChanged(i,r);(a||o)&&(this._active=i,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,r,n),s=this._positionChanged(o,t),l=r||!lc(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,r))),l}_getActiveElements(t,r,n,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return r.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,n);return a.reverse&&o.reverse(),o}_positionChanged(t,r){const{caretX:n,caretY:i,options:a}=this,o=$o[a.position].call(this,t,r);return o!==!1&&(n!==o.x||i!==o.y)}}var br={id:"tooltip",_element:jO,positioners:$o,afterInit(e,t,r){r&&(e.tooltip=new jO({chart:e,options:r}))},beforeUpdate(e,t,r){e.tooltip&&e.tooltip.initialize(r)},reset(e,t,r){e.tooltip&&e.tooltip.initialize(r)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const r={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",r)}},afterEvent(e,t){if(e.tooltip){const r=t.replay;e.tooltip.handleEvent(t.event,r,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:MO},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Z9=(e,t,r,n)=>(typeof t=="string"?(r=e.push(t)-1,n.unshift({index:r,label:t})):isNaN(t)&&(r=null),r);function J9(e,t,r,n){const i=e.indexOf(t);if(i===-1)return Z9(e,t,r,n);const a=e.lastIndexOf(t);return i!==a?r:i}const Q9=(e,t)=>e===null?null:Ct(Math.round(e),0,t);function DO(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class jn extends ia{static id="category";static defaults={ticks:{callback:DO}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const r=this._addedLabels;if(r.length){const n=this.getLabels();for(const{index:i,label:a}of r)n[i]===a&&n.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,r){if(_e(t))return null;const n=this.getLabels();return r=isFinite(r)&&n[r]===t?r:J9(n,t,se(r,t),this._addedLabels),Q9(r,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:r}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(n=0),r||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,r=this.max,n=this.options.offset,i=[];let a=this.getLabels();a=t===0&&r===a.length-1?a:a.slice(t,r+1),this._valueRange=Math.max(a.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let o=t;o<=r;o++)i.push({value:o});return i}getLabelForValue(t){return DO.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function eH(e,t){const r=[],{bounds:i,step:a,min:o,max:s,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:d}=e,h=a||1,m=u-1,{min:p,max:g}=t,v=!_e(o),b=!_e(s),x=!_e(c),S=(g-p)/(f+1);let w=eS((g-p)/m/h)*h,O,E,C,M;if(w<1e-14&&!v&&!b)return[{value:p},{value:g}];M=Math.ceil(g/w)-Math.floor(p/w),M>m&&(w=eS(M*w/m/h)*h),_e(l)||(O=Math.pow(10,l),w=Math.ceil(w*O)/O),i==="ticks"?(E=Math.floor(p/w)*w,C=Math.ceil(g/w)*w):(E=p,C=g),v&&b&&a&&w7((s-o)/a,w/1e3)?(M=Math.round(Math.min((s-o)/w,u)),w=(s-o)/M,E=o,C=s):x?(E=v?o:E,C=b?s:C,M=c-1,w=(C-E)/M):(M=(C-E)/w,_o(M,Math.round(M),w/1e3)?M=Math.round(M):M=Math.ceil(M));const $=Math.max(tS(w),tS(E));O=Math.pow(10,_e(l)?$:l),E=Math.round(E*O)/O,C=Math.round(C*O)/O;let j=0;for(v&&(d&&E!==o?(r.push({value:o}),E<o&&j++,_o(Math.round((E+j*w)*O)/O,o,NO(o,S,e))&&j++):E<o&&j++);j<M;++j){const _=Math.round((E+j*w)*O)/O;if(b&&_>s)break;r.push({value:_})}return b&&d&&C!==s?r.length&&_o(r[r.length-1].value,s,NO(s,S,e))?r[r.length-1].value=s:r.push({value:s}):(!b||C===s)&&r.push({value:C}),r}function NO(e,t,{horizontal:r,minRotation:n}){const i=nn(n),a=(r?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class tH extends ia{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,r){return _e(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:r,maxDefined:n}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=r?i:l,s=l=>a=n?a:l;if(t){const l=Mr(i),c=Mr(a);l<0&&c<0?s(0):l>0&&c>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:r,stepSize:n}=t,i;return n?(i=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),r=r||11),r&&(i=Math.min(r,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,r=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:r.precision,step:r.stepSize,count:r.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:r.minRotation||0,includeBounds:r.includeBounds!==!1},a=this._range||this,o=eH(i,a);return t.bounds==="ticks"&&_7(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let r=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-r)/Math.max(t.length-1,1)/2;r-=i,n+=i}this._startValue=r,this._endValue=n,this._valueRange=n-r}getLabelForValue(t){return Rp(t,this.chart.options.locale,this.options.ticks.format)}}class Dn extends tH{static id="linear";static defaults={ticks:{callback:hS.formatters.numeric}};determineDataLimits(){const{min:t,max:r}=this.getMinMax(!0);this.min=dr(t)?t:0,this.max=dr(r)?r:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),r=t?this.width:this.height,n=nn(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(r/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Mc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Bt=Object.keys(Mc);function IO(e,t){return e-t}function $O(e,t){if(_e(t))return null;const r=e._adapter,{parser:n,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof n=="function"&&(o=n(o)),dr(o)||(o=typeof n=="string"?r.parse(o,n):r.parse(o)),o===null?null:(i&&(o=i==="week"&&(So(a)||a===!0)?r.startOf(o,"isoWeek",a):r.startOf(o,i)),+o)}function RO(e,t,r,n){const i=Bt.length;for(let a=Bt.indexOf(e);a<i-1;++a){const o=Mc[Bt[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((r-t)/(s*o.size))<=n)return Bt[a]}return Bt[i-1]}function rH(e,t,r,n,i){for(let a=Bt.length-1;a>=Bt.indexOf(r);a--){const o=Bt[a];if(Mc[o].common&&e._adapter.diff(i,n,o)>=t-1)return o}return Bt[r?Bt.indexOf(r):0]}function nH(e){for(let t=Bt.indexOf(e)+1,r=Bt.length;t<r;++t)if(Mc[Bt[t]].common)return Bt[t]}function LO(e,t,r){if(!r)e[t]=!0;else if(r.length){const{lo:n,hi:i}=Np(r,t),a=r[n]>=t?r[n]:r[i];e[a]=!0}}function iH(e,t,r,n){const i=e._adapter,a=+i.startOf(t[0].value,n),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,n))l=r[s],l>=0&&(t[l].major=!0);return t}function FO(e,t,r){const n=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,n.push({value:s,major:!1});return a===0||!r?n:iH(e,n,i,r)}class BO extends ia{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,r={}){const n=t.time||(t.time={}),i=this._adapter=new uV._date(t.adapters.date);i.init(r),xo(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=r.normalized}parse(t,r){return t===void 0?null:$O(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,r=this._adapter,n=t.time.unit||"day";let{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=dr(i)&&!isNaN(i)?i:+r.startOf(Date.now(),n),a=dr(a)&&!isNaN(a)?a:+r.endOf(Date.now(),n)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(r=t[0],n=t[t.length-1]),{min:r,max:n}}buildTicks(){const t=this.options,r=t.time,n=t.ticks,i=n.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,o=this.max,s=P7(i,a,o);return this._unit=r.unit||(n.autoSkip?RO(r.minUnit,this.min,this.max,this._getLabelCapacity(a)):rH(this,s.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:nH(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),FO(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let r=0,n=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?r=1-i:r=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?n=a:n=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;r=Ct(r,0,o),n=Ct(n,0,o),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const t=this._adapter,r=this.min,n=this.max,i=this.options,a=i.time,o=a.unit||RO(a.minUnit,r,n,this._getLabelCapacity(r)),s=se(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=So(l)||l===!0,u={};let f=r,d,h;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":o),t.diff(n,r,o)>1e5*s)throw new Error(r+" and "+n+" are too far apart with stepSize of "+s+" "+o);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(d=f,h=0;d<n;d=+t.add(d,s,o),h++)LO(u,d,m);return(d===n||i.bounds==="ticks"||h===1)&&LO(u,d,m),Object.keys(u).sort(IO).map(p=>+p)}getLabelForValue(t){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(t,n.tooltipFormat):r.format(t,n.displayFormats.datetime)}format(t,r){const i=this.options.time.displayFormats,a=this._unit,o=r||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,r,n,i){const a=this.options,o=a.ticks.callback;if(o)return Fe(o,[t,r,n],this);const s=a.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],f=c&&s[c],d=n[r],h=c&&f&&d&&d.major;return this._adapter.format(t,i||(h?f:u))}generateTickLabels(t){let r,n,i;for(r=0,n=t.length;r<n;++r)i=t[r],i.label=this._tickFormatFunction(i.value,r,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const r=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const r=this.options.ticks,n=this.ctx.measureText(t).width,i=nn(this.isHorizontal()?r.maxRotation:r.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*a+s*o,h:n*o+s*a}}_getLabelCapacity(t){const r=this.options.time,n=r.displayFormats,i=n[r.unit]||n.millisecond,a=this._tickFormatFunction(t,0,FO(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],r,n;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(r=0,n=i.length;r<n;++r)t=t.concat(i[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let r,n;if(t.length)return t;const i=this.getLabels();for(r=0,n=i.length;r<n;++r)t.push($O(this,i[r]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return aS(t.sort(IO))}}function jc(e,t,r){let n=0,i=e.length-1,a,o,s,l;r?(t>=e[n].pos&&t<=e[i].pos&&({lo:n,hi:i}=fi(e,"pos",t)),{pos:a,time:s}=e[n],{pos:o,time:l}=e[i]):(t>=e[n].time&&t<=e[i].time&&({lo:n,hi:i}=fi(e,"time",t)),{time:a,pos:s}=e[n],{time:o,pos:l}=e[i]);const c=o-a;return c?s+(l-s)*(t-a)/c:s}class HU extends BO{static id="timeseries";static defaults=BO.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(t);this._minPos=jc(r,this.min),this._tableRange=jc(r,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:r,max:n}=this,i=[],a=[];let o,s,l,c,u;for(o=0,s=t.length;o<s;++o)c=t[o],c>=r&&c<=n&&i.push(c);if(i.length<2)return[{time:r,pos:0},{time:n,pos:1}];for(o=0,s=i.length;o<s;++o)u=i[o+1],l=i[o-1],c=i[o],Math.round((u+l)/2)!==c&&a.push({time:c,pos:o/(s-1)});return a}_generate(){const t=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(t)||!n.length)&&n.splice(0,0,t),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?t=this.normalize(r.concat(n)):t=r.length?r:n,t=this._cache.all=t,t}getDecimalForValue(t){return(jc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return jc(this._table,n*this._tableRange+this._minPos,!0)}}const zO="label";function WO(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function aH(e,t){const r=e.options;r&&t&&Object.assign(r,t)}function VO(e,t){e.labels=t}function HO(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zO;const n=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[r]===i[r]);return!a||!i.data||n.includes(a)?{...i}:(n.push(a),Object.assign(a,i),a)})}function oH(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zO;const r={labels:[],datasets:[]};return VO(r,e.labels),HO(r,e.datasets,t),r}function sH(e,t){const{height:r=150,width:n=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:f,...d}=e,h=k.useRef(null),m=k.useRef(null),p=()=>{h.current&&(m.current=new Lt(h.current,{type:o,data:oH(s,a),options:l&&{...l},plugins:c}),WO(t,m.current))},g=()=>{WO(t,null),m.current&&(m.current.destroy(),m.current=null)};return k.useEffect(()=>{!i&&m.current&&l&&aH(m.current,l)},[i,l]),k.useEffect(()=>{!i&&m.current&&VO(m.current.config.data,s.labels)},[i,s.labels]),k.useEffect(()=>{!i&&m.current&&s.datasets&&HO(m.current.config.data,s.datasets,a)},[i,s.datasets]),k.useEffect(()=>{m.current&&(i?(g(),setTimeout(p)):m.current.update(f))},[i,l,s.labels,s.datasets,f]),k.useEffect(()=>{m.current&&(g(),setTimeout(p))},[o]),k.useEffect(()=>(p(),()=>g()),[]),k.createElement("canvas",{ref:h,role:"img",height:r,width:n,...d},u)}const lH=k.forwardRef(sH);function fm(e,t){return Lt.register(t),k.forwardRef((r,n)=>k.createElement(lH,{...r,ref:n,type:e}))}const dm=fm("line",cV),Ro=fm("bar",oV),hm=fm("doughnut",lV);Lt.register(am,br,yr);const cH={id:"centerText",afterDraw(e,t,r){const{ctx:n}=e,i=e.getDatasetMeta(0);if(!i?.data?.[0])return;const{x:a,y:o}=i.data[0],{top:s="",bottom:l="",topSize:c=20,bottomSize:u=10,topColor:f="#0F172A",bottomColor:d="#64748B"}=r||{};n.save(),n.textAlign="center",n.textBaseline="middle",n.fillStyle=f,n.font=`600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,n.fillText(s,a,o-5),n.fillStyle=d,n.font=`500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,n.fillText(l,a,o+12),n.restore()}},uH=({sold:e=847,unsold:t=73,growthPct:r="+9.1%"})=>{const n=e+t,i={labels:["Sold","Unsold"],datasets:[{data:[e,t],backgroundColor:["#12B981","#EF4444"],borderWidth:2,hoverOffset:4}]},a={responsive:!0,maintainAspectRatio:!1,cutout:"68%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:o=>`${o.label}: ${o.parsed}`},displayColors:!1},centerText:{top:`${n}`,bottom:"Total Units",topSize:20,bottomSize:10}}};return y.jsx(Ie,{title:"Unit Status",period:"This Month",icon:y.jsx(cu,{className:"h-6 w-6 text-green-600"}),className:"h-[238px]",children:y.jsxs("div",{className:"grid grid-cols-12 gap-[16px] items-center",children:[y.jsxs("div",{className:"col-span-5 space-y-3",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] lending-[16px] text-[#64748B]",children:"Sold"}),y.jsx("div",{className:"text-[28px] leading-[32px] text-[#1FA05B]",children:e})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] lending-[16px] text-[#64748B]",children:"Unsold"}),y.jsx("div",{className:"text-[28px] leading-[32px] text-[#EF4444]",children:t})]}),y.jsxs("div",{className:"text-[10px] text-[#1FA05B] flex gap-[8px] items-center ",children:[r," ",y.jsx("div",{className:"text-[#64748B] text-[10px]",children:"Compared to last month"})]})]}),y.jsx("div",{className:"col-span-7",children:y.jsx("div",{className:"h-[158px] w-[158px] ml-auto mr-2",children:y.jsx(hm,{data:i,options:a,plugins:[cH]})})})]})})},UO=({value:e=0,total:t=1,colorClass:r="",label:n=""})=>{const i=Math.max(0,Math.min(100,e/(t||1)*100)),a=r==="bg-[#8B5CF6]"?"text-[#8B5CF6]":r==="bg-[#12B981]"?"text-[#12B981]":"text-slate-600";return y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsx("div",{className:"w-2/3 min-w-[80px] h-3 rounded-full overflow-hidden",children:y.jsx("div",{className:`h-3 rounded-full ${r}`,style:{width:`${i}%`}})}),y.jsx("div",{className:`${a} !text-[12px] font-bold mt-1`,children:e}),y.jsx("div",{className:"!text-[12px] text-[#64748B] mt-1",children:n})]})},KO=({title:e,value:t,suffix:r,valueClass:n=""})=>y.jsxs("div",{className:"bg-white border border-[#EBEBEB] rounded-xl shadow-[0_0_12px_0_#EAF2FF] h-[98px] p-4 flex flex-col justify-center",children:[y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#121212] mb-1",children:e}),y.jsxs("div",{className:`text-[28px] leading-[32px] flex item gap-[4px] font-medium ${n}`,children:[t," ",r&&y.jsx("div",{className:"text-[28px] leading-[32px] font-medium",children:r})]})]}),fH=({totalUnits:e=847,occupiedUnits:t=756,ownerCount:r=700,tenantCount:n=56,avgResidents:i=4.4,avgLeaseMonths:a=18})=>{const o=r+n;return y.jsxs("div",{children:[y.jsxs("div",{className:"bg-white border border-[#EBEBEB] rounded-xl shadow-[0_0_12px_0_#EAF2FF] p-4 h-[128px]",children:[y.jsxs("div",{className:"flex items-center gap-[12px] mb-4",children:[y.jsx(Yg,{className:"h-6 w-6 text-[#329DFF]"}),y.jsx("div",{className:"font-medium text-[#121212]",children:"Occupancy Overview"})]}),y.jsxs("div",{className:"flex items-center justify-between gap-",children:[y.jsxs("div",{children:[y.jsx("div",{className:"text-xs leading-[16px] text-[#64748B]",children:"Occupied Units"}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),y.jsxs("div",{className:"text-[#64748B] text-[20px] leading-[32px]",children:["/",e]})]})]}),y.jsxs("div",{className:"flex items-end",children:[y.jsx(UO,{value:r,total:o,colorClass:"bg-[#8B5CF6]",label:"Owner"}),y.jsx(UO,{value:n,total:o,colorClass:"bg-[#12B981]",label:"Tenant"})]})]})]}),y.jsxs("div",{className:"mt-2.5 grid grid-cols-2 gap-[12px]",children:[y.jsx(KO,{title:"Avg Residents Per Unit",value:i,valueClass:"text-[#8B5CF6]"}),y.jsx(KO,{title:"Avg Lease Period",value:a,suffix:"months",valueClass:"text-[#E7A015]"})]})]})};Lt.register(am,br,yr);const dH={id:"centerText",afterDraw(e,t,r){const{ctx:n}=e,i=e.getDatasetMeta(0);if(!i?.data?.[0])return;const{x:a,y:o}=i.data[0],{top:s="",bottom:l="",topSize:c=20,bottomSize:u=10,topColor:f="#0F172A",bottomColor:d="#64748B"}=r||{};n.save(),n.textAlign="center",n.textBaseline="middle",n.fillStyle=f,n.font=`600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,n.fillText(s,a,o-5),n.fillStyle=d,n.font=`500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,n.fillText(l,a,o+12),n.restore()}},hH=({ownerCount:e=1e3,tenantCount:t=200,nonResidingOwners:r=26,growthPct:n="+9.1%"})=>{const i=Math.max(e-r,0),a=e+t,o={labels:["Owners","Tenants","Non-residing Owner"],datasets:[{data:[i,t,r],backgroundColor:["#3C81F6","#08B6D4","#8B5CF6"],borderWidth:2,hoverOffset:4}]},s={responsive:!0,maintainAspectRatio:!1,cutout:"68%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:l=>`${l.label}: ${l.parsed}`},displayColors:!1},centerText:{top:`${a}`,bottom:"Total Members",topSize:20,bottomSize:10}}};return y.jsx(Ie,{title:"Resident Overview",icon:y.jsx(qg,{className:"h-6 w-6 text-[#8B5CF6]"}),className:"h-[238px]",children:y.jsxs("div",{className:" flex-1 min-h-0 grid grid-cols-12 gap-[16px] items-center",children:[y.jsxs("div",{className:"col-span-5",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B] leading-[16px]",children:"Total Owners"}),y.jsx("div",{className:"text-[28px] leading-[32px ] text-[#3C81F6]",children:e})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B] leading-[16px]",children:"Total Tenants"}),y.jsx("div",{className:"text-[28px] leading-[32px ] text-[#08B6D4]",children:t})]}),y.jsxs("div",{className:"text-[10px] text-[#1FA05B] flex gap-2 items-center",children:[n," ",y.jsx("div",{className:"text-[#64748B] ",children:"Compared to last month"})]})]}),y.jsx("div",{className:"col-span-7",children:y.jsx("div",{className:"h-[162px] w-[162px] ml-auto mr-2",children:y.jsx(hm,{data:o,options:s,plugins:[dH]})})})]})})};Lt.register(jn,Dn,Io,br,yr);const pH=({blocks:e=[{name:"Block A",owner:110,rented:24,vacant:8},{name:"Block B",owner:95,rented:18,vacant:6},{name:"Block C",owner:65,rented:12,vacant:18},{name:"Block D",owner:78,rented:16,vacant:30}]})=>{const t=e.map(s=>s.name),r=e.map(s=>s.owner),n=e.map(s=>s.rented),i=e.map(s=>s.vacant),a={labels:t,datasets:[{label:"Owner",data:r,backgroundColor:"#3C81F6",barThickness:40},{label:"",data:r.map(()=>2),backgroundColor:"transparent",barThickness:40},{label:"Rented",data:n,backgroundColor:"#8B5CF6",barThickness:40},{label:"",data:n.map(()=>2),backgroundColor:"transparent",barThickness:40},{label:"Vacant",data:i,backgroundColor:"#08B6D4",barThickness:40}]},o={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,pointStyle:"rectRot",padding:20}},tooltip:{callbacks:{label:s=>`${s.dataset.label}: ${s.parsed.y}`}}},scales:{x:{stacked:!0,grid:{display:!1},ticks:{color:"#64748B"}},y:{stacked:!0,beginAtZero:!0,suggestedMax:180,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:20}}}};return y.jsx(Ie,{title:"Block-wise Occupancy",period:y.jsx(ht,{className:"text-xl text-[#884EA7]"}),className:"w-full h-[360px]",titleWeight:"semi-bold",children:y.jsx(Ro,{data:a,options:o})})};Lt.register(jn,Dn,lm,sm,br,yr);const mH=e=>{const[t,r]=String(e).split(" ");return`${{Jan:"January",Feb:"February",Mar:"March",Apr:"April",May:"May",Jun:"June",Jul:"July",Aug:"August",Sep:"September",Oct:"October",Nov:"November",Dec:"December"}[t]||t} 20${r}`},gH=({labels:e=["Jan 25","Feb 25","Mar 25","Apr 25","May 25"],moveIn:t=[24,27,20,26,23],moveOut:r=[12,17,8,5,16]})=>{const n={labels:e,datasets:[{label:"Move-in",data:t,borderColor:"#12B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#12B981",pointStyle:"rectRot",fill:!1},{label:"Move-out",data:r,borderColor:"#8B5CF6",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#8B5CF6",pointStyle:"rectRot",fill:!1}]},i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:a=>mH(a[0].label),label:a=>`${a.dataset.label}: ${a.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return y.jsx(Ie,{title:"Move-in/Out Trends",className:"w-full h-[360px]",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),titleWeight:"semi-bold",children:y.jsx(dm,{data:n,options:i})})};Lt.register(jn,Dn,lm,sm,br,yr);const vH=e=>{const[t,r]=String(e).split(" ");return`${{Jan:"January",Feb:"February",Mar:"March",Apr:"April",May:"May",Jun:"June",Jul:"July",Aug:"August",Sep:"September",Oct:"October",Nov:"November",Dec:"December"}[t]||t} 20${r}`},qO=({labels:e=["Jan 25","Feb 25","Mar 25","Apr 25","May 25"],moveIn:t=[24,27,20,26,23],moveOut:r=[4,17,8,5,16,4,7]})=>{const n={labels:e,datasets:[{label:"Income",data:t,borderColor:"#10B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#10B981",pointStyle:"rectRot",fill:!1},{label:"Expenditure",data:r,borderColor:"#AB0000",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#AB0000",pointStyle:"rectRot",fill:!1}]},i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:a=>vH(a[0].label),label:a=>`${a.dataset.label}: ${a.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return y.jsx(dm,{data:n,options:i})};function YO({label:e,value:t,positive:r,bgColor:n,delta:i,deltaLabel:a,textColor:o}){return y.jsxs("div",{className:`rounded-lg p-4 ${n} border border-[#EBEBEB] h-[126px]`,children:[y.jsx("div",{className:`text-[16px] leading-[20px] ${o}`,children:e}),y.jsx("div",{className:"mt-[16px] leading-[28px] !text-[24px] font-medium text-[#121212]",children:t}),y.jsxs("div",{className:"mt-[8px] flex items-center gap-[8px] leading-[14px] text-[10px]",children:[y.jsx("div",{className:r?"text-[#1FA05B] font-medium":"text-[#EF4444] font-medium",children:i}),y.jsx("div",{className:"text-[#64748B] ",children:a})]})]})}function yH(){return y.jsxs(Ie,{title:"Accounting",className:"w-full h-[523px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[y.jsxs("div",{className:"grid grid-cols-2 gap-[16px]",children:[y.jsx(YO,{label:"Total Income",value:"AED 5.68M",delta:"+4.4%",positive:!0,bgColor:"bg-slate-50",deltaLabel:"Compared to last month",textColor:"text-[#1FA05B]"}),y.jsx(YO,{label:"Total Expenditure",value:"AED 1.83M",delta:"-1.1%",positive:!1,bgColor:"bg-slate-50",deltaLabel:"Compared to last month",textColor:"text-[#AB0000]"})]}),y.jsx("div",{className:"h-[254px] mt-[35.5px]",children:y.jsx(qO,{})})]})}Lt.register(jn,Dn,Io,br,yr);const bH=()=>{const e=["Maintenance","Security","Utilities","Housekeeping","Administration","Others"],n={labels:e,datasets:[{label:"Budget",data:[55e3,56e3,64e3,38e3,54e3,65e3],backgroundColor:"#93C5FD",barThickness:60},{label:"Actual",data:[63e3,48e3,51300,28e3,42e3,35e3],backgroundColor:"#3B82F6",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,pointStyle:"rectRot",padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:a=>e[a[0].dataIndex],label:a=>{const o=a.parsed.y;return`${a.dataset.label}: AED ${(o/1e3).toFixed(1)}K`}}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:a=>`${a/1e3}K`}}}};return y.jsx(Ie,{title:"Budget vs Actuals",className:"w-full h-[362px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:y.jsx(Ro,{data:n,options:i})})},xH=()=>{const e=[{title:"Primary Account",amount:285e4,subtitle:"Savings"},{title:"Emergency Fund",amount:12e5,subtitle:"Fixed deposit"},{title:"Maintenance Fund",amount:68e4,subtitle:"Current"}],t=e.reduce((n,i)=>n+i.amount,0),r=n=>n>=1e6?`AED ${(n/1e6).toFixed(2)}M`:n>=1e3?`AED ${(n/1e3).toFixed(1)}K`:`AED ${n}`;return y.jsxs(Ie,{title:"Cash & Bank Balance",className:"w-full h-[362px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),children:[y.jsx("div",{className:"flex flex-col gap-[12px]",children:e.map((n,i)=>y.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"text-[14px] font-medium text-[#121212]",children:n.title}),y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:n?.subtitle})]}),y.jsx("div",{className:"flex flex-col items-end",children:y.jsx("div",{className:"text-[14px] text-[#1FA05B] font-semibold",children:r(n.amount)})})]},i))}),y.jsxs("div",{className:"flex items-center justify-between border-t border-[#EBEBEB] h-[68px] px-3",children:[y.jsx("div",{className:"text-[14px] font-medium text-[#121212]",children:"Total"}),y.jsx("div",{className:"text-[16px] text-[#1FA05B] font-bold",children:r(t)})]})]})};Lt.register(jn,Dn,Io,br,yr);const wH=()=>{const e=["Current Month","1-3 Months","3-6 Months","6+ Months"],t=[13e3,9400,8800,7200],r=[18,12,18,6],n={labels:e,datasets:[{label:"Due",data:t,backgroundColor:"#EF4444",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:a=>e[a[0].dataIndex],label:a=>`Due: AED ${(a.parsed.y/1e3).toFixed(1)}K`,afterLabel:a=>`Units Count: ${r[a.dataIndex]}`}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:a=>`${a/1e3}K`}}}};return y.jsxs(Ie,{title:"Dues Ageing",className:"w-full h-[362px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[y.jsx("div",{className:"grid grid-cols-4 md:grid-cols-4 gap-[12px] h-[48px]",children:e.map((a,o)=>y.jsx("div",{className:"p-2 rounded-lg bg-slate-50",children:y.jsxs("div",{className:"flex justify-between items-start",children:[y.jsx("div",{className:"font-medium leading-[16px] !text-[12px] rounded",children:a}),y.jsxs("div",{className:"text-right",children:[y.jsxs("div",{className:"text-red-600 font-medium leading-[16px] !text-[12px]",children:["AED ",(t[o]/1e3).toFixed(1),"K"]}),y.jsxs("div",{className:" text-gray-500 leading-[14px] text-[10px]",children:[r[o]," Units"]})]})]})},a))}),y.jsx("div",{className:"h-[192px]",children:y.jsx(Ro,{data:n,options:i})})]})};Lt.register(am,br,yr);const _H=()=>{const e=["Maintenance","Utilities","Security","Administration","Others"],t=[45e4,32e4,28e4,18e4,12e4],r={labels:e,datasets:[{label:"Expenses",data:t,backgroundColor:["#08B6D4","#8B5CF6","#EF4444","#F69E0A","#12B981"],borderColor:"#FFFFFF",borderWidth:2,cutout:"70%"}]},n=t.reduce((a,o)=>a+o,0),i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:10,callbacks:{label:a=>`${a.label}: AED ${a.formattedValue}`}}}};return y.jsxs(Ie,{title:"Expense Categories",className:"w-full h-[523px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[y.jsxs("div",{className:"relative h-[259px] flex justify-center items-center",children:[y.jsx(hm,{data:r,options:i}),y.jsxs("div",{className:"absolute text-center",children:[y.jsxs("div",{className:"!text-[24px] font-medium leading-[28px] text-[#121212]",children:["AED ",(n/1e6).toFixed(2),"M"]}),y.jsx("div",{className:"text-[#121212] leading-[18px] text-[14px]",children:"Total Expenses"})]})]}),y.jsx("div",{className:"space-y-2",children:e.map((a,o)=>y.jsxs("div",{className:"flex justify-between items-center text-[14px] pb-2",children:[y.jsxs("div",{className:"flex items-center gap-[8px] !text-[12px] leading-[16px] text-[#64748B]",children:[y.jsx("div",{className:"w-[7px] h-[7px] rotate-45",style:{backgroundColor:r.datasets[0].backgroundColor[o]}}),a]}),y.jsxs("div",{className:"leading-[16px] !text-[12px] text-[#64748B]",children:["AED ",(t[o]/1e3).toFixed(0),"K"]})]},a))})]})},Lo=[{name:"Gym Equipment",value:1e6,color:"#08B6D4"},{name:"Security",value:8e5,color:"#EF4444"},{name:"Others",value:6e5,color:"#F59E0B"},{name:"Pool Maintenance",value:7e5,color:"#8B5CF6"},{name:"Administration",value:52e4,color:"#10B981"}];function SH(){const e=Lo.reduce((t,r)=>t+r.value,0);return y.jsx(Ie,{title:"Asset Value Breakdown",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",titleWeight:"semi-bold",children:y.jsxs("div",{className:"flex flex-col items-center justify-center",children:[y.jsxs("div",{className:"w-[214px] h-[181px] relative",children:[y.jsx(ii,{width:"100%",height:"100%",children:y.jsxs(ic,{children:[y.jsx(fo,{data:Lo,innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",nameKey:"name",children:Lo.map((t,r)=>y.jsx(kr,{fill:t.color},`cell-${r}`))}),y.jsx(ni,{formatter:t=>`AED ${t.toLocaleString()}`})]})}),y.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[y.jsxs("div",{className:"font-medium text-lg leading-[12px] ",children:["AED ",(e/1e6).toFixed(2),"M"]}),y.jsx("div",{className:"text-[10px] leading-[12.59px] text-[#121212] mt-[6px]",children:"Total Assets"})]})]}),y.jsxs("div",{className:"flex justify-between w-full px-4 sm:px-8 mt-4 text-[14px]",children:[y.jsx("div",{className:"flex flex-col gap-[8px]",children:Lo.slice(0,3).map(t=>y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"inline-block h-[7px] w-[7px] rotate-45",style:{backgroundColor:t.color}}),y.jsx("div",{className:"text-[#64748B] leading-[16px] !text-[12px]",children:t.name})]},t.name))}),y.jsx("div",{className:"flex flex-col gap-[8px] items-start",children:Lo.slice(3).map(t=>y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"inline-block h-[7px] w-[7px] rotate-45",style:{backgroundColor:t.color}}),y.jsx("div",{className:"text-[#64748B] leading-[16px] !text-[12px]",children:t.name})]},t.name))})]})]})})}Lt.register(jn,Dn,Io,br,yr);const OH=()=>{const e=["Gym","Parking","Swimming Pool","Community Hall","Tennis Court"],t=[13e3,9400,8800,7200,6e3],r=[18,12,18,6],n={labels:e,datasets:[{label:"Due",data:t,backgroundColor:"#8B5CF6",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:a=>e[a[0].dataIndex],label:a=>`Due: AED ${(a.parsed.y/1e3).toFixed(1)}K`,afterLabel:a=>`Units Count: ${r[a.dataIndex]}`}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:a=>`${a/1e3}K`}}}};return y.jsx(Ie,{title:"Revenue by Category",className:"w-full h-[362px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:y.jsx(Ro,{data:n,options:i})})};function AH(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 5l0 2"},child:[]},{tag:"path",attr:{d:"M15 11l0 2"},child:[]},{tag:"path",attr:{d:"M15 17l0 2"},child:[]},{tag:"path",attr:{d:"M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2"},child:[]}]})(e)}function EH(e){return Te({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M855.7 210.8l-42.4-42.4a8.03 8.03 0 0 0-11.3 0L168.3 801.9a8.03 8.03 0 0 0 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z"},child:[]}]})(e)}function PH({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Sa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsxs(Ie,{title:e,icon:y.jsx("div",{className:"h-6 w-6 grid place-items-center",children:y.jsx(a,{className:`h-6 w-6 ${o}`})}),children:[y.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[y.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-slate-500",children:n})]})]})}function CH(){const e=[{title:"Total Bookings",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:Ug,iconColor:"text-emerald-600"},{title:"Utilisation Rate",value:73,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:EH,iconColor:"text-[#329DFF]"},{title:"Revenue",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:AH,iconColor:"text-[#FA7E28]"},{title:"Pending Dues",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:Gg,iconColor:"text-[#DBB467]"}];return y.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,r)=>y.jsx(PH,{...t},r))})}const Dc=[{name:"Completed",value:46,color:"#12B981"},{name:"Delayed",value:2,color:"#EF4444"},{name:"Missed",value:2,color:"#F69E0A"}];function kH(){const t=Dc.find(r=>r.name==="Completed")?.value||0;return y.jsx(Ie,{title:"Guard Patrols",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:y.jsxs("div",{className:"flex flex-col items-center justify-center",children:[y.jsxs("div",{className:"w-[215px] h-[182px] relative",children:[y.jsx(ii,{width:"100%",height:"100%",children:y.jsxs(ic,{children:[y.jsx(fo,{data:Dc,innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",nameKey:"name",children:Dc.map((r,n)=>y.jsx(kr,{fill:r.color},`cell-${n}`))}),y.jsx(ni,{formatter:r=>r.toLocaleString()})]})}),y.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[y.jsxs("div",{className:"font-medium text-[19.35px] leading-[23.65px] ",children:[t,"/",50]}),y.jsx("div",{className:"text-[10.75px] leading-[15.05px] text-[#64748B]",children:"Completed"})]})]}),y.jsx("div",{className:"flex flex-col gap-[8px] mt-3 w-full px-6 text-[14px]",children:Dc.map(r=>y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"inline-block w-[7px] h-[7px] rotate-45",style:{backgroundColor:r.color}}),y.jsx("div",{className:"leading-[16.09px] text-[12.07px] text-[#64748B]",children:r.name})]}),y.jsx("div",{className:"leading-[16.09px] text-[12.07px] text-[#64748B]",children:r.value})]},r.name))})]})})}Lt.register(jn,Dn,lm,sm,br,yr);const TH=()=>{const t={labels:["10 AM","12 PM","2 PM","4 PM","6 PM","8 PM","10 PM"],datasets:[{label:"Guest",data:[9,5,12,7,3,6,4],borderColor:"#EF4444",backgroundColor:"rgba(239,68,68,0.15)",pointBackgroundColor:"#EF4444",pointStyle:"rectRot",fill:!1},{label:"Cab",data:[15,12,10,14,7,12,8],borderColor:"#7C3AED",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#7C3AED",pointStyle:"rectRot",fill:!1},{label:"Delivery",data:[22,18,16,20,22,14,17],borderColor:"#10B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#10B981",pointStyle:"rectRot",fill:!1},{label:"Service",data:[13,12,8,9,5,10,7],borderColor:"#F59E0B",backgroundColor:"rgba(245,158,11,0.15)",pointBackgroundColor:"#F59E0B",pointStyle:"rectRot",fill:!1}]},r={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:n=>n[0].label,label:n=>`${n.dataset.label} ${n.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return y.jsx(Ie,{title:"Hourly Traffic Flow",className:"w-full h-[362px]",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),children:y.jsx(dm,{data:t,options:r})})};function MH(){return y.jsx(Ie,{title:"Incident Reports",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:y.jsxs("div",{children:[y.jsxs("div",{className:"flex w-full text-center gap-[24px]",children:[y.jsxs("div",{className:"flex-1 py-3 bg-[#FBF4F4] h-[76px] rounded",children:[y.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#AB0000]",children:"3"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#AB0000]",children:"Open"})]}),y.jsxs("div",{className:"flex-1 py-3 bg-[#FFFBF2] h-[76px] rounded",children:[y.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#E7A015]",children:"5"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#E7A015]",children:"In-progress"})]}),y.jsxs("div",{className:"flex-1 py-3 bg-[#F7FEFA] h-[76px] rounded",children:[y.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#1FA05B]",children:"12"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#1FA05B]",children:"Closed"})]})]}),y.jsxs("div",{className:"mt-4 ",children:[y.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#AB0000]",children:y.jsx("div",{className:"text-white !text-[12px] font-bold",children:"!"})}),y.jsx("div",{className:"text-gray-700 font-medium",children:"INC 001"})]}),y.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#AB0000] bg-red-50",children:[y.jsx("div",{children:"4 - Danger"}),y.jsx("div",{className:"w-2 h-2 rounded-full bg-[#AB0000]"})]})]}),y.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#E7A015]",children:y.jsx(zg,{className:"text-white text-[10px]"})}),y.jsx("div",{className:"text-gray-700 font-medium",children:"INC 002"})]}),y.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#E7A015] bg-yellow-50",children:[y.jsx("div",{children:"3 - High"}),y.jsx("div",{className:"w-2 h-2 rounded-full bg-[#E7A015]"})]})]}),y.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#1FA05B]",children:y.jsx(zg,{className:"text-white text-[10px]"})}),y.jsx("div",{className:"text-gray-700 font-medium",children:"INC 003"})]}),y.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#1FA05B] bg-green-50",children:[y.jsx("div",{children:"1 - Low"}),y.jsx("div",{className:"w-2 h-2 rounded-full bg-[#1FA05B]"})]})]})]})]})})}function jH(){return y.jsx(Ie,{title:"Staff Attendance",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:y.jsxs("div",{children:[y.jsxs("div",{className:"flex w-full text-center h-[76px] gap-[16px] mb-2",children:[y.jsxs("div",{className:"flex-1 py-4 bg-green-50 rounded-md",children:[y.jsx("div",{className:"!text-[24px] leading-[18px] font-medium text-[#1FA05B] pb-[8px]",children:"25"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#1FA05B]",children:"Present"})]}),y.jsxs("div",{className:"flex-1 py-4 bg-red-50 rounded-md",children:[y.jsx("div",{className:"!text-[24px] leading-[18px] font-medium text-[#AB0000] pb-[8px]",children:"1"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#AB0000]",children:"Absent"})]})]}),y.jsxs("div",{className:"mt-[24px] ",children:[y.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[y.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Security guards"}),y.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"12/12 Present"})]}),y.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[y.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Housekeeping"}),y.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"7/8 Present"})]}),y.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[y.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Maintenance"}),y.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"4/4 Present"})]}),y.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[y.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Gardening"}),y.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"2/2 Present"})]})]})]})})}function DH(e){return Te({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function NH(e){return Te({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}function IH(e){return Te({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M116,132V96a12,12,0,0,1,24,0v36a12,12,0,0,1-24,0Zm12,56a16,16,0,1,0-16-16A16,16,0,0,0,128,188ZM228,56v56c0,54.29-26.32,87.22-48.4,105.29-23.71,19.39-47.44,26-48.44,26.29a12.1,12.1,0,0,1-6.32,0c-1-.28-24.73-6.9-48.44-26.29C54.32,199.22,28,166.29,28,112V56A20,20,0,0,1,48,36H208A20,20,0,0,1,228,56Zm-24,4H52v52c0,35.71,13.09,64.69,38.91,86.15A126.14,126.14,0,0,0,128,219.38a126.28,126.28,0,0,0,37.09-21.23C190.91,176.69,204,147.71,204,112Z"},child:[]}]})(e)}function $H({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Sa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsxs(Ie,{title:e,icon:y.jsx("div",{className:"h-6 w-6 grid place-items-center",children:y.jsx(a,{className:`h-6 w-6 ${o}`})}),children:[y.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[y.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-slate-500",children:n})]})]})}function RH(){const e=[{title:"Total Visitors",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:Yg,iconColor:"text-[#329DFF]"},{title:"Active Incidents",value:73,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:NH,iconColor:"text-[#F69E0A]"},{title:"Missed Patrols",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:IH,iconColor:"text-[#AB0000]"},{title:"Parking Usage",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:GC,iconColor:"text-[#36AB6C]"}];return y.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,r)=>y.jsx($H,{...t},r))})}const LH=[{title:"Maintenance",total:25,pending:8},{title:"Security",total:15,pending:3},{title:"Housekeeping",total:12,pending:4},{title:"Utilities",total:10,pending:2}];function FH(){return y.jsx(Ie,{title:"Complaints",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),className:"h-[362px]",children:y.jsx("div",{className:"flex flex-col gap-[12px]",children:LH.map((e,t)=>y.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-[#121212]",children:e.title}),y.jsxs("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:["Total: ",e.total]})]}),y.jsxs("div",{className:"flex flex-col items-end",children:[y.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-red-700",children:String(e.pending).padStart(2,"0")}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:"Pending"})]})]},t))})})}Lt.register(jn,Dn,Io,br,yr);const BH=({blocks:e=[{name:"Level 1",owner:110,rented:24,vacant:8},{name:"Level 2",owner:95,rented:18,vacant:6},{name:"Level 3",owner:65,rented:12,vacant:18},{name:"Level 4",owner:78,rented:16,vacant:30}]})=>{const t=e.map(s=>s.name),r=e.map(s=>s.owner),n=e.map(s=>s.rented),i=e.map(s=>s.vacant),a={labels:t,datasets:[{label:"Closed",data:r,backgroundColor:"#12B981",barThickness:44},{label:"",data:r.map(()=>2),backgroundColor:"transparent",barThickness:44},{label:"In Progress",data:n,backgroundColor:"#F59D0D",barThickness:44},{label:"",data:r.map(()=>2),backgroundColor:"transparent",barThickness:44},{label:"Open",data:i,backgroundColor:"#EF4444",barThickness:44}]},o={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,pointStyle:"rectRot",padding:20}},tooltip:{callbacks:{label:s=>`${s.dataset.label}: ${s.parsed.y}`}}},scales:{x:{stacked:!0,grid:{display:!1},ticks:{color:"#64748B"}},y:{stacked:!0,beginAtZero:!0,suggestedMax:180,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:20}}}};return y.jsx(Ie,{title:"Complaints by Level",className:"w-full h-[362px]",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),children:y.jsx(Ro,{data:a,options:o})})},zH=[{title:"Access Card",total:45,pending:11},{title:"NOC Request",total:12,pending:7},{title:"Parking Allocation",total:8,pending:6},{title:"Document Request",total:25,pending:2}];function WH(){return y.jsx(Ie,{title:"Request Box",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),className:"h-[362px]",children:y.jsx("div",{className:"flex flex-col gap-[12px]",children:zH.map((e,t)=>y.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-[#121212]",children:e.title}),y.jsxs("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:["Total: ",e.total]})]}),y.jsxs("div",{className:"flex flex-col items-end",children:[y.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-red-700",children:String(e.pending).padStart(2,"0")}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:"Pending"})]})]},t))})})}function VH(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0 0 32 32h120m-232 80h160m-160 80h160"},child:[]}]})(e)}function HH({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Sa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsxs(Ie,{title:e,icon:y.jsx("div",{className:"h-6 w-6 grid place-items-center",children:y.jsx(a,{className:`h-6 w-6 ${o}`})}),children:[y.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[y.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-slate-500",children:n})]})]})}function UH(){const e=[{title:"Open Complaints",value:145,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:Ug,iconColor:"text-[#AB0000]"},{title:"Pending Requests",value:83,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:VH,iconColor:"text-[#E7A015]"},{title:"Avg Response Time",value:"3h",delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:KC,iconColor:"text-[#1FA05B]"},{title:"Resolution Rate",value:"93%",delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:WC,iconColor:"text-[#329DFF]"}];return y.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,r)=>y.jsx(HH,{...t},r))})}function GO({title:e,date:t,rsvp:r,utilisation:n,status:i}){return y.jsxs("div",{className:" bg-[#F8FAFC] h-[106px] px-3 mt-3",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"text-[16px] leading-[20px] font-semibold text-[#121212]",children:e}),y.jsx("div",{className:`!text-[12px] font-medium leading-[16px] px-2 py-1 ${i==="Completed"?"text-[#36AB6C] bg-[#E6F7EE]":i==="Upcoming"?"text-[#329DFF] bg-[#E6F2FF]":"text-slate-500 bg-slate-100"}`,children:i})]}),y.jsx("div",{className:"text-[14px] leading-[18px] text-[#64748B]",children:t}),y.jsxs("div",{className:"flex justify-between items-center mt-2",children:[y.jsxs("div",{className:"text-[14px] leading-[18px] text-[#64748B]",children:[r," RSVP"]}),y.jsxs("div",{className:"text-[#3C82F6] text-[14px] leading-[18px] font-medium",children:[n,"% utilisation"]})]}),y.jsx("div",{className:"w-full bg-[#F8FAFC] h-[6px] rounded mt-2 mb-3",children:y.jsx("div",{className:"h-[6px] rounded bg-[#3C82F6]",style:{width:`${n}%`}})})]})}function KH(){return y.jsx(Ie,{title:"Events Utilisation",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"w-full h-[360px]",children:y.jsxs("div",{children:[y.jsx(GO,{title:"Holi Celebration",date:"25 Jun 2025",rsvp:"78/100",utilisation:71,status:"Upcoming"}),y.jsx(GO,{title:"Maintenance Meeting",date:"25 Jun 2025",rsvp:"45/60",utilisation:75,status:"Completed"})]})})}function Nc({label:e,value:t,subLabel:r,bgColor:n,textColor:i}){return y.jsxs("div",{className:`rounded-lg p-4 ${n} h-[124px]`,children:[y.jsx("div",{className:`text-[16px] font-medium ${i} leading-[20px]`,children:e}),y.jsx("div",{className:"mt-4 text-[28px] leading-[32px] font-semibold text-[#121212]",children:t}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B] mt-2",children:r})]})}function qH(){return y.jsx(Ie,{title:"Notice Board Status",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"w-full h-[360px]",children:y.jsxs("div",{className:"grid grid-cols-2 gap-[16px]",children:[y.jsx(Nc,{label:"Active",value:138,subLabel:"3 expiring soon",bgColor:"bg-[#F0FFF7]",textColor:"text-[#1FA05B]"}),y.jsx(Nc,{label:"Scheduled",value:13,subLabel:"4 this week",bgColor:"bg-[#FFFBF2]",textColor:"text-[#E7A015]"}),y.jsx(Nc,{label:"Recurring",value:3,subLabel:"All active",bgColor:"bg-[#EDF6FF]",textColor:"text-[#329DFF]"}),y.jsx(Nc,{label:"Expired",value:7,subLabel:"4 recent",bgColor:"bg-[#F6F6F6]",textColor:"text-[#64748B]"})]})})}function XO(e){return Te({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 9H16V11H8V9ZM8 13H16V15H8V13Z"},child:[]}]})(e)}function YH({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Sa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsx(Ie,{title:e,icon:y.jsx("div",{className:`h-6 w-6 grid place-items-center rounded-md ${s}`,children:y.jsx(a,{className:`h-4 w-4 ${o}`})}),className:"h-[132px]",children:y.jsxs("div",{children:[y.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] pt-[8px] !text-[12px] leading-[16px]",children:[y.jsx("div",{className:i?"text-[#1FA05B] font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-[#64748B]",children:n})]})]})})}function GH({data:e}){const t=[{title:e?.title||"Total Bookings",value:145,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:XO,iconColor:"text-emerald-600",iconBg:"bg-emerald-50"}];return y.jsx("div",{className:"h-full",children:t.map((r,n)=>y.jsx(YH,{...r},n))})}function XH(e){return Te({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"},child:[]}]})(e)}function ZH({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Sa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsx(Ie,{title:e,icon:y.jsx("div",{className:`h-6 w-6 grid place-items-center rounded-md ${s}`,children:y.jsx(a,{className:`h-4 w-4 ${o}`})}),className:"h-[132px]",children:y.jsxs("div",{children:[y.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] pt-[8px] !text-[12px] leading-[16px]",children:[y.jsx("div",{className:i?"text-[#1FA05B] font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-[#64748B]",children:n})]})]})})}function JH(){const e=[{title:"Notice",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:XO,iconColor:"text-emerald-600",iconBg:"bg-emerald-50"},{title:"Post",value:83,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:XC,iconColor:"text-[#329DFF]",iconBg:"bg-emerald-50"},{title:"Poll",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:DH,iconColor:"text-[#FA7E28]",iconBg:"bg-orange-100"},{title:"Poll",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:XH,iconColor:"text-[#DBB467]",iconBg:"bg-yellow-100"}];return y.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,r)=>y.jsx(ZH,{...t},r))})}ae.Accounting=yH,ae.AssetValueBreakdown=SH,ae.BlockWiseOccupancy=pH,ae.Budgets=bH,ae.Card=Ie,ae.CashBankBalance=xH,ae.Community=jz,ae.Complaints=FH,ae.ComplaintsByLevel=BH,ae.DuesAgeing=wH,ae.Engagement=Dz,ae.EngagementStatsGrid=JH,ae.EventsUtilisation=KH,ae.ExpenseCategories=_H,ae.Facilities=$z,ae.FinanceSummary=Rz,ae.GateAndSecurityStatsGrid=RH,ae.GateUpdates=Bz,ae.GuardPatrols=kH,ae.Header=qC,ae.Helpdesk=zz,ae.HelpdeskStatsGrid=UH,ae.HourlyTrafficFlow=TH,ae.IncidentReports=MH,ae.IncomeExpenditure=qO,ae.MainHeader=QC,ae.MoveInOutTrends=gH,ae.NoticeBoardStatus=qH,ae.OccupancyOverview=fH,ae.RequestBox=WH,ae.ResidentOverview=hH,ae.RevenuebyCategory=OH,ae.SingleStats=GH,ae.StaffAttendance=jH,ae.StatsGrid=CH,ae.UnitStatus=uH,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})}));
216
+ `):e}function K9(e,t){const{element:r,datasetIndex:n,index:i}=t,a=e.getDatasetMeta(n).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[n].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:n,element:r}}function PO(e,t){const r=e.chart.ctx,{body:n,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=Rt(t.bodyFont),c=Rt(t.titleFont),u=Rt(t.footerFont),f=a.length,d=i.length,h=n.length,m=vr(t.padding);let p=m.height,g=0,v=n.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,f&&(p+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),v){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;p+=h*S+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}d&&(p+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let b=0;const x=function(S){g=Math.max(g,r.measureText(S).width+b)};return r.save(),r.font=c.string,Pe(e.title,x),r.font=l.string,Pe(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?o+2+t.boxPadding:0,Pe(n,S=>{Pe(S.before,x),Pe(S.lines,x),Pe(S.after,x)}),b=0,r.font=u.string,Pe(e.footer,x),r.restore(),g+=m.width,{width:g,height:p}}function q9(e,t){const{y:r,height:n}=t;return r<n/2?"top":r>e.height-n/2?"bottom":"center"}function Y9(e,t,r,n){const{x:i,width:a}=n,o=r.caretSize+r.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function G9(e,t,r,n){const{x:i,width:a}=r,{width:o,chartArea:{left:s,right:l}}=e;let c="center";return n==="center"?c=i<=(s+l)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),Y9(c,e,t,r)&&(c="center"),c}function CO(e,t,r){const n=r.yAlign||t.yAlign||q9(e,r);return{xAlign:r.xAlign||t.xAlign||G9(e,t,r,n),yAlign:n}}function X9(e,t){let{x:r,width:n}=e;return t==="right"?r-=n:t==="center"&&(r-=n/2),r}function Z9(e,t,r){let{y:n,height:i}=e;return t==="top"?n+=r:t==="bottom"?n-=i+r:n-=i/2,n}function kO(e,t,r,n){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=r,c=i+a,{topLeft:u,topRight:f,bottomLeft:d,bottomRight:h}=ta(o);let m=X9(t,s);const p=Z9(t,l,c);return l==="center"?s==="left"?m+=c:s==="right"&&(m-=c):s==="left"?m-=Math.max(u,d)+i:s==="right"&&(m+=Math.max(f,h)+i),{x:Ct(m,0,n.width-t.width),y:Ct(p,0,n.height-t.height)}}function Mc(e,t,r){const n=vr(r.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function TO(e){return Dr([],on(e))}function J9(e,t,r){return mi(e,{tooltip:t,tooltipItems:r,type:"tooltip"})}function MO(e,t){const r=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return r?e.override(r):e}const jO={beforeTitle:rn,title(e){if(e.length>0){const t=e[0],r=t.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return r[t.dataIndex]}return""},afterTitle:rn,beforeBody:rn,beforeLabel:rn,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const r=e.formattedValue;return _e(r)||(t+=r),t},labelColor(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:r.borderColor,backgroundColor:r.backgroundColor,borderWidth:r.borderWidth,borderDash:r.borderDash,borderDashOffset:r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:rn,afterBody:rn,beforeFooter:rn,footer:rn,afterFooter:rn};function Ft(e,t,r,n){const i=e[t].call(r,n);return typeof i>"u"?jO[t].call(r,n):i}class DO extends Tn{static positioners=Ro;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const r=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&r.options.animation&&n.animations,a=new IS(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=J9(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,r){const{callbacks:n}=r,i=Ft(n,"beforeTitle",this,t),a=Ft(n,"title",this,t),o=Ft(n,"afterTitle",this,t);let s=[];return s=Dr(s,on(i)),s=Dr(s,on(a)),s=Dr(s,on(o)),s}getBeforeBody(t,r){return TO(Ft(r.callbacks,"beforeBody",this,t))}getBody(t,r){const{callbacks:n}=r,i=[];return Pe(t,a=>{const o={before:[],lines:[],after:[]},s=MO(n,a);Dr(o.before,on(Ft(s,"beforeLabel",this,a))),Dr(o.lines,Ft(s,"label",this,a)),Dr(o.after,on(Ft(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,r){return TO(Ft(r.callbacks,"afterBody",this,t))}getFooter(t,r){const{callbacks:n}=r,i=Ft(n,"beforeFooter",this,t),a=Ft(n,"footer",this,t),o=Ft(n,"afterFooter",this,t);let s=[];return s=Dr(s,on(i)),s=Dr(s,on(a)),s=Dr(s,on(o)),s}_createItems(t){const r=this._active,n=this.chart.data,i=[],a=[],o=[];let s=[],l,c;for(l=0,c=r.length;l<c;++l)s.push(K9(this.chart,r[l]));return t.filter&&(s=s.filter((u,f,d)=>t.filter(u,f,d,n))),t.itemSort&&(s=s.sort((u,f)=>t.itemSort(u,f,n))),Pe(s,u=>{const f=MO(t.callbacks,u);i.push(Ft(f,"labelColor",this,u)),a.push(Ft(f,"labelPointStyle",this,u)),o.push(Ft(f,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,r){const n=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=Ro[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const l=this._size=PO(this,n),c=Object.assign({},s,l),u=CO(this.chart,n,c),f=kO(n,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,a={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(t,r,n,i){const a=this.getCaretPosition(t,n,i);r.lineTo(a.x1,a.y1),r.lineTo(a.x2,a.y2),r.lineTo(a.x3,a.y3)}getCaretPosition(t,r,n){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=n,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=ta(s),{x:d,y:h}=t,{width:m,height:p}=r;let g,v,b,x,S,w;return a==="center"?(S=h+p/2,i==="left"?(g=d,v=g-o,x=S+o,w=S-o):(g=d+m,v=g+o,x=S-o,w=S+o),b=g):(i==="left"?v=d+Math.max(l,u)+o:i==="right"?v=d+m-Math.max(c,f)-o:v=this.caretX,a==="top"?(x=h,S=x-o,g=v-o,b=v+o):(x=h+p,S=x+o,g=v+o,b=v-o),w=x),{x1:g,x2:v,x3:b,y1:x,y2:S,y3:w}}drawTitle(t,r,n){const i=this.title,a=i.length;let o,s,l;if(a){const c=ia(n.rtl,this.x,this.width);for(t.x=Mc(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",o=Rt(n.titleFont),s=n.titleSpacing,r.fillStyle=n.titleColor,r.font=o.string,l=0;l<a;++l)r.fillText(i[l],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s,l+1===a&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,r,n,i,a){const o=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=a,u=Rt(a.bodyFont),f=Mc(this,"left",a),d=i.x(f),h=l<u.lineHeight?(u.lineHeight-l)/2:0,m=r.y+h;if(a.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},g=i.leftForLtr(d,c)+c/2,v=m+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,Wp(t,p,g,v),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Wp(t,p,g,v)}else{t.lineWidth=he(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const p=i.leftForLtr(d,c),g=i.leftForLtr(i.xPlus(d,1),c-2),v=ta(o.borderRadius);Object.values(v).some(b=>b!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,pc(t,{x:p,y:m,w:c,h:l,radius:v}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),pc(t,{x:g,y:m+1,w:c-2,h:l-2,radius:v}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(p,m,c,l),t.strokeRect(p,m,c,l),t.fillStyle=o.backgroundColor,t.fillRect(g,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,r,n){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=n,f=Rt(n.bodyFont);let d=f.lineHeight,h=0;const m=ia(n.rtl,this.x,this.width),p=function(C){r.fillText(C,m.x(t.x+h),t.y+d/2),t.y+=d+a},g=m.textAlign(o);let v,b,x,S,w,O,E;for(r.textAlign=o,r.textBaseline="middle",r.font=f.string,t.x=Mc(this,g,n),r.fillStyle=n.bodyColor,Pe(this.beforeBody,p),h=s&&g!=="right"?o==="center"?c/2+u:c+2+u:0,S=0,O=i.length;S<O;++S){for(v=i[S],b=this.labelTextColors[S],r.fillStyle=b,Pe(v.before,p),x=v.lines,s&&x.length&&(this._drawColorBox(r,t,S,m,n),d=Math.max(f.lineHeight,l)),w=0,E=x.length;w<E;++w)p(x[w]),d=f.lineHeight;Pe(v.after,p)}h=0,d=f.lineHeight,Pe(this.afterBody,p),t.y-=a}drawFooter(t,r,n){const i=this.footer,a=i.length;let o,s;if(a){const l=ia(n.rtl,this.x,this.width);for(t.x=Mc(this,n.footerAlign,n),t.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",o=Rt(n.footerFont),r.fillStyle=n.footerColor,r.font=o.string,s=0;s<a;++s)r.fillText(i[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,r,n,i){const{xAlign:a,yAlign:o}=this,{x:s,y:l}=t,{width:c,height:u}=n,{topLeft:f,topRight:d,bottomLeft:h,bottomRight:m}=ta(i.cornerRadius);r.fillStyle=i.backgroundColor,r.strokeStyle=i.borderColor,r.lineWidth=i.borderWidth,r.beginPath(),r.moveTo(s+f,l),o==="top"&&this.drawCaret(t,r,n,i),r.lineTo(s+c-d,l),r.quadraticCurveTo(s+c,l,s+c,l+d),o==="center"&&a==="right"&&this.drawCaret(t,r,n,i),r.lineTo(s+c,l+u-m),r.quadraticCurveTo(s+c,l+u,s+c-m,l+u),o==="bottom"&&this.drawCaret(t,r,n,i),r.lineTo(s+h,l+u),r.quadraticCurveTo(s,l+u,s,l+u-h),o==="center"&&a==="left"&&this.drawCaret(t,r,n,i),r.lineTo(s,l+f),r.quadraticCurveTo(s,l,s+f,l),r.closePath(),r.fill(),i.borderWidth>0&&r.stroke()}_updateAnimationTarget(t){const r=this.chart,n=this.$animations,i=n&&n.x,a=n&&n.y;if(i||a){const o=Ro[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=PO(this,t),l=Object.assign({},o,this._size),c=CO(r,t,l),u=kO(t,l,c,r);(i._to!==u.x||a._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const r=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(r);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=vr(r.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(a,t,i,r),CS(t,r.textDirection),a.y+=o.top,this.drawTitle(a,t,r),this.drawBody(a,t,r),this.drawFooter(a,t,r),kS(t,r.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,r){const n=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),a=!cc(n,i),o=this._positionChanged(i,r);(a||o)&&(this._active=i,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,r,n),s=this._positionChanged(o,t),l=r||!cc(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,r))),l}_getActiveElements(t,r,n,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return r.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,n);return a.reverse&&o.reverse(),o}_positionChanged(t,r){const{caretX:n,caretY:i,options:a}=this,o=Ro[a.position].call(this,t,r);return o!==!1&&(n!==o.x||i!==o.y)}}var br={id:"tooltip",_element:DO,positioners:Ro,afterInit(e,t,r){r&&(e.tooltip=new DO({chart:e,options:r}))},beforeUpdate(e,t,r){e.tooltip&&e.tooltip.initialize(r)},reset(e,t,r){e.tooltip&&e.tooltip.initialize(r)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const r={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",r)}},afterEvent(e,t){if(e.tooltip){const r=t.replay;e.tooltip.handleEvent(t.event,r,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:jO},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Q9=(e,t,r,n)=>(typeof t=="string"?(r=e.push(t)-1,n.unshift({index:r,label:t})):isNaN(t)&&(r=null),r);function eH(e,t,r,n){const i=e.indexOf(t);if(i===-1)return Q9(e,t,r,n);const a=e.lastIndexOf(t);return i!==a?r:i}const tH=(e,t)=>e===null?null:Ct(Math.round(e),0,t);function NO(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class jn extends aa{static id="category";static defaults={ticks:{callback:NO}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const r=this._addedLabels;if(r.length){const n=this.getLabels();for(const{index:i,label:a}of r)n[i]===a&&n.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,r){if(_e(t))return null;const n=this.getLabels();return r=isFinite(r)&&n[r]===t?r:eH(n,t,se(r,t),this._addedLabels),tH(r,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:r}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(n=0),r||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,r=this.max,n=this.options.offset,i=[];let a=this.getLabels();a=t===0&&r===a.length-1?a:a.slice(t,r+1),this._valueRange=Math.max(a.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let o=t;o<=r;o++)i.push({value:o});return i}getLabelForValue(t){return NO.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function rH(e,t){const r=[],{bounds:i,step:a,min:o,max:s,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:d}=e,h=a||1,m=u-1,{min:p,max:g}=t,v=!_e(o),b=!_e(s),x=!_e(c),S=(g-p)/(f+1);let w=tS((g-p)/m/h)*h,O,E,C,M;if(w<1e-14&&!v&&!b)return[{value:p},{value:g}];M=Math.ceil(g/w)-Math.floor(p/w),M>m&&(w=tS(M*w/m/h)*h),_e(l)||(O=Math.pow(10,l),w=Math.ceil(w*O)/O),i==="ticks"?(E=Math.floor(p/w)*w,C=Math.ceil(g/w)*w):(E=p,C=g),v&&b&&a&&S7((s-o)/a,w/1e3)?(M=Math.round(Math.min((s-o)/w,u)),w=(s-o)/M,E=o,C=s):x?(E=v?o:E,C=b?s:C,M=c-1,w=(C-E)/M):(M=(C-E)/w,So(M,Math.round(M),w/1e3)?M=Math.round(M):M=Math.ceil(M));const $=Math.max(rS(w),rS(E));O=Math.pow(10,_e(l)?$:l),E=Math.round(E*O)/O,C=Math.round(C*O)/O;let j=0;for(v&&(d&&E!==o?(r.push({value:o}),E<o&&j++,So(Math.round((E+j*w)*O)/O,o,IO(o,S,e))&&j++):E<o&&j++);j<M;++j){const _=Math.round((E+j*w)*O)/O;if(b&&_>s)break;r.push({value:_})}return b&&d&&C!==s?r.length&&So(r[r.length-1].value,s,IO(s,S,e))?r[r.length-1].value=s:r.push({value:s}):(!b||C===s)&&r.push({value:C}),r}function IO(e,t,{horizontal:r,minRotation:n}){const i=nn(n),a=(r?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class nH extends aa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,r){return _e(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:r,maxDefined:n}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=r?i:l,s=l=>a=n?a:l;if(t){const l=Mr(i),c=Mr(a);l<0&&c<0?s(0):l>0&&c>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:r,stepSize:n}=t,i;return n?(i=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),r=r||11),r&&(i=Math.min(r,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,r=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:r.precision,step:r.stepSize,count:r.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:r.minRotation||0,includeBounds:r.includeBounds!==!1},a=this._range||this,o=rH(i,a);return t.bounds==="ticks"&&O7(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let r=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-r)/Math.max(t.length-1,1)/2;r-=i,n+=i}this._startValue=r,this._endValue=n,this._valueRange=n-r}getLabelForValue(t){return Fp(t,this.chart.options.locale,this.options.ticks.format)}}class Dn extends nH{static id="linear";static defaults={ticks:{callback:pS.formatters.numeric}};determineDataLimits(){const{min:t,max:r}=this.getMinMax(!0);this.min=dr(t)?t:0,this.max=dr(r)?r:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),r=t?this.width:this.height,n=nn(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(r/Math.min(40,a.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const jc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Bt=Object.keys(jc);function $O(e,t){return e-t}function RO(e,t){if(_e(t))return null;const r=e._adapter,{parser:n,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof n=="function"&&(o=n(o)),dr(o)||(o=typeof n=="string"?r.parse(o,n):r.parse(o)),o===null?null:(i&&(o=i==="week"&&(Oo(a)||a===!0)?r.startOf(o,"isoWeek",a):r.startOf(o,i)),+o)}function LO(e,t,r,n){const i=Bt.length;for(let a=Bt.indexOf(e);a<i-1;++a){const o=jc[Bt[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((r-t)/(s*o.size))<=n)return Bt[a]}return Bt[i-1]}function iH(e,t,r,n,i){for(let a=Bt.length-1;a>=Bt.indexOf(r);a--){const o=Bt[a];if(jc[o].common&&e._adapter.diff(i,n,o)>=t-1)return o}return Bt[r?Bt.indexOf(r):0]}function aH(e){for(let t=Bt.indexOf(e)+1,r=Bt.length;t<r;++t)if(jc[Bt[t]].common)return Bt[t]}function FO(e,t,r){if(!r)e[t]=!0;else if(r.length){const{lo:n,hi:i}=$p(r,t),a=r[n]>=t?r[n]:r[i];e[a]=!0}}function oH(e,t,r,n){const i=e._adapter,a=+i.startOf(t[0].value,n),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,n))l=r[s],l>=0&&(t[l].major=!0);return t}function BO(e,t,r){const n=[],i={},a=t.length;let o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,n.push({value:s,major:!1});return a===0||!r?n:oH(e,n,i,r)}class zO extends aa{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,r={}){const n=t.time||(t.time={}),i=this._adapter=new dV._date(t.adapters.date);i.init(r),wo(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=r.normalized}parse(t,r){return t===void 0?null:RO(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,r=this._adapter,n=t.time.unit||"day";let{min:i,max:a,minDefined:o,maxDefined:s}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!o||!s)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=dr(i)&&!isNaN(i)?i:+r.startOf(Date.now(),n),a=dr(a)&&!isNaN(a)?a:+r.endOf(Date.now(),n)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(r=t[0],n=t[t.length-1]),{min:r,max:n}}buildTicks(){const t=this.options,r=t.time,n=t.ticks,i=n.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,o=this.max,s=k7(i,a,o);return this._unit=r.unit||(n.autoSkip?LO(r.minUnit,this.min,this.max,this._getLabelCapacity(a)):iH(this,s.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:aH(this._unit),this.initOffsets(i),t.reverse&&s.reverse(),BO(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let r=0,n=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?r=1-i:r=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?n=a:n=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;r=Ct(r,0,o),n=Ct(n,0,o),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const t=this._adapter,r=this.min,n=this.max,i=this.options,a=i.time,o=a.unit||LO(a.minUnit,r,n,this._getLabelCapacity(r)),s=se(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=Oo(l)||l===!0,u={};let f=r,d,h;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":o),t.diff(n,r,o)>1e5*s)throw new Error(r+" and "+n+" are too far apart with stepSize of "+s+" "+o);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(d=f,h=0;d<n;d=+t.add(d,s,o),h++)FO(u,d,m);return(d===n||i.bounds==="ticks"||h===1)&&FO(u,d,m),Object.keys(u).sort($O).map(p=>+p)}getLabelForValue(t){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(t,n.tooltipFormat):r.format(t,n.displayFormats.datetime)}format(t,r){const i=this.options.time.displayFormats,a=this._unit,o=r||i[a];return this._adapter.format(t,o)}_tickFormatFunction(t,r,n,i){const a=this.options,o=a.ticks.callback;if(o)return Fe(o,[t,r,n],this);const s=a.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],f=c&&s[c],d=n[r],h=c&&f&&d&&d.major;return this._adapter.format(t,i||(h?f:u))}generateTickLabels(t){let r,n,i;for(r=0,n=t.length;r<n;++r)i=t[r],i.label=this._tickFormatFunction(i.value,r,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const r=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const r=this.options.ticks,n=this.ctx.measureText(t).width,i=nn(this.isHorizontal()?r.maxRotation:r.minRotation),a=Math.cos(i),o=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*a+s*o,h:n*o+s*a}}_getLabelCapacity(t){const r=this.options.time,n=r.displayFormats,i=n[r.unit]||n.millisecond,a=this._tickFormatFunction(t,0,BO(this,[t],this._majorUnit),i),o=this._getLabelSize(a),s=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return s>0?s:1}getDataTimestamps(){let t=this._cache.data||[],r,n;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(r=0,n=i.length;r<n;++r)t=t.concat(i[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let r,n;if(t.length)return t;const i=this.getLabels();for(r=0,n=i.length;r<n;++r)t.push(RO(this,i[r]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return oS(t.sort($O))}}function Dc(e,t,r){let n=0,i=e.length-1,a,o,s,l;r?(t>=e[n].pos&&t<=e[i].pos&&({lo:n,hi:i}=di(e,"pos",t)),{pos:a,time:s}=e[n],{pos:o,time:l}=e[i]):(t>=e[n].time&&t<=e[i].time&&({lo:n,hi:i}=di(e,"time",t)),{time:a,pos:s}=e[n],{time:o,pos:l}=e[i]);const c=o-a;return c?s+(l-s)*(t-a)/c:s}class KU extends zO{static id="timeseries";static defaults=zO.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(t);this._minPos=Dc(r,this.min),this._tableRange=Dc(r,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:r,max:n}=this,i=[],a=[];let o,s,l,c,u;for(o=0,s=t.length;o<s;++o)c=t[o],c>=r&&c<=n&&i.push(c);if(i.length<2)return[{time:r,pos:0},{time:n,pos:1}];for(o=0,s=i.length;o<s;++o)u=i[o+1],l=i[o-1],c=i[o],Math.round((u+l)/2)!==c&&a.push({time:c,pos:o/(s-1)});return a}_generate(){const t=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(t)||!n.length)&&n.splice(0,0,t),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?t=this.normalize(r.concat(n)):t=r.length?r:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Dc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return Dc(this._table,n*this._tableRange+this._minPos,!0)}}const WO="label";function VO(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function sH(e,t){const r=e.options;r&&t&&Object.assign(r,t)}function HO(e,t){e.labels=t}function UO(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:WO;const n=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[r]===i[r]);return!a||!i.data||n.includes(a)?{...i}:(n.push(a),Object.assign(a,i),a)})}function lH(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:WO;const r={labels:[],datasets:[]};return HO(r,e.labels),UO(r,e.datasets,t),r}function cH(e,t){const{height:r=150,width:n=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:f,...d}=e,h=k.useRef(null),m=k.useRef(null),p=()=>{h.current&&(m.current=new Lt(h.current,{type:o,data:lH(s,a),options:l&&{...l},plugins:c}),VO(t,m.current))},g=()=>{VO(t,null),m.current&&(m.current.destroy(),m.current=null)};return k.useEffect(()=>{!i&&m.current&&l&&sH(m.current,l)},[i,l]),k.useEffect(()=>{!i&&m.current&&HO(m.current.config.data,s.labels)},[i,s.labels]),k.useEffect(()=>{!i&&m.current&&s.datasets&&UO(m.current.config.data,s.datasets,a)},[i,s.datasets]),k.useEffect(()=>{m.current&&(i?(g(),setTimeout(p)):m.current.update(f))},[i,l,s.labels,s.datasets,f]),k.useEffect(()=>{m.current&&(g(),setTimeout(p))},[o]),k.useEffect(()=>(p(),()=>g()),[]),k.createElement("canvas",{ref:h,role:"img",height:r,width:n,...d},u)}const uH=k.forwardRef(cH);function hm(e,t){return Lt.register(t),k.forwardRef((r,n)=>k.createElement(uH,{...r,ref:n,type:e}))}const pm=hm("line",fV),Lo=hm("bar",lV),mm=hm("doughnut",uV);Lt.register(sm,br,yr);const fH={id:"centerText",afterDraw(e,t,r){const{ctx:n}=e,i=e.getDatasetMeta(0);if(!i?.data?.[0])return;const{x:a,y:o}=i.data[0],{top:s="",bottom:l="",topSize:c=20,bottomSize:u=10,topColor:f="#0F172A",bottomColor:d="#64748B"}=r||{};n.save(),n.textAlign="center",n.textBaseline="middle",n.fillStyle=f,n.font=`600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,n.fillText(s,a,o-5),n.fillStyle=d,n.font=`500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,n.fillText(l,a,o+12),n.restore()}},dH=({sold:e=847,unsold:t=73,growthPct:r="+9.1%"})=>{const n=e+t,i={labels:["Sold","Unsold"],datasets:[{data:[e,t],backgroundColor:["#12B981","#EF4444"],borderWidth:2,hoverOffset:4}]},a={responsive:!0,maintainAspectRatio:!1,cutout:"68%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:o=>`${o.label}: ${o.parsed}`},displayColors:!1},centerText:{top:`${n}`,bottom:"Total Units",topSize:20,bottomSize:10}}};return y.jsx(Ie,{title:"Unit Status",period:"This Month",icon:y.jsx(uu,{className:"h-6 w-6 text-green-600"}),className:"h-[238px]",children:y.jsxs("div",{className:"grid grid-cols-12 gap-[16px] items-center",children:[y.jsxs("div",{className:"col-span-5 space-y-3",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] lending-[16px] text-[#64748B]",children:"Sold"}),y.jsx("div",{className:"text-[28px] leading-[32px] text-[#1FA05B]",children:e})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] lending-[16px] text-[#64748B]",children:"Unsold"}),y.jsx("div",{className:"text-[28px] leading-[32px] text-[#EF4444]",children:t})]}),y.jsxs("div",{className:"text-[10px] text-[#1FA05B] flex gap-[8px] items-center ",children:[r," ",y.jsx("div",{className:"text-[#64748B] text-[10px]",children:"Compared to last month"})]})]}),y.jsx("div",{className:"col-span-7",children:y.jsx("div",{className:"h-[158px] w-[158px] ml-auto mr-2",children:y.jsx(mm,{data:i,options:a,plugins:[fH]})})})]})})},KO=({value:e=0,total:t=1,colorClass:r="",label:n=""})=>{const i=Math.max(0,Math.min(100,e/(t||1)*100)),a=r==="bg-[#8B5CF6]"?"text-[#8B5CF6]":r==="bg-[#12B981]"?"text-[#12B981]":"text-slate-600";return y.jsxs("div",{className:"flex flex-col items-start",children:[y.jsx("div",{className:"w-2/3 min-w-[80px] h-3 rounded-full overflow-hidden",children:y.jsx("div",{className:`h-3 rounded-full ${r}`,style:{width:`${i}%`}})}),y.jsx("div",{className:`${a} !text-[12px] font-bold mt-1`,children:e}),y.jsx("div",{className:"!text-[12px] text-[#64748B] mt-1",children:n})]})},qO=({title:e,value:t,suffix:r,valueClass:n=""})=>y.jsxs("div",{className:"bg-white border border-[#EBEBEB] rounded-xl shadow-[0_0_12px_0_#EAF2FF] h-[98px] p-4 flex flex-col justify-center",children:[y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#121212] mb-1",children:e}),y.jsxs("div",{className:`text-[28px] leading-[32px] flex item gap-[4px] font-medium ${n}`,children:[t," ",r&&y.jsx("div",{className:"text-[28px] leading-[32px] font-medium",children:r})]})]}),hH=({totalUnits:e=847,occupiedUnits:t=756,ownerCount:r=700,tenantCount:n=56,avgResidents:i=4.4,avgLeaseMonths:a=18})=>{const o=r+n;return y.jsxs("div",{children:[y.jsxs("div",{className:"bg-white border border-[#EBEBEB] rounded-xl shadow-[0_0_12px_0_#EAF2FF] p-4 h-[128px]",children:[y.jsxs("div",{className:"flex items-center gap-[12px] mb-4",children:[y.jsx(Gg,{className:"h-6 w-6 text-[#329DFF]"}),y.jsx("div",{className:"font-medium text-[#121212]",children:"Occupancy Overview"})]}),y.jsxs("div",{className:"flex items-center justify-between gap-",children:[y.jsxs("div",{children:[y.jsx("div",{className:"text-xs leading-[16px] text-[#64748B]",children:"Occupied Units"}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),y.jsxs("div",{className:"text-[#64748B] text-[20px] leading-[32px]",children:["/",e]})]})]}),y.jsxs("div",{className:"flex items-end",children:[y.jsx(KO,{value:r,total:o,colorClass:"bg-[#8B5CF6]",label:"Owner"}),y.jsx(KO,{value:n,total:o,colorClass:"bg-[#12B981]",label:"Tenant"})]})]})]}),y.jsxs("div",{className:"mt-2.5 grid grid-cols-2 gap-[12px]",children:[y.jsx(qO,{title:"Avg Residents Per Unit",value:i,valueClass:"text-[#8B5CF6]"}),y.jsx(qO,{title:"Avg Lease Period",value:a,suffix:"months",valueClass:"text-[#E7A015]"})]})]})};Lt.register(sm,br,yr);const pH={id:"centerText",afterDraw(e,t,r){const{ctx:n}=e,i=e.getDatasetMeta(0);if(!i?.data?.[0])return;const{x:a,y:o}=i.data[0],{top:s="",bottom:l="",topSize:c=20,bottomSize:u=10,topColor:f="#0F172A",bottomColor:d="#64748B"}=r||{};n.save(),n.textAlign="center",n.textBaseline="middle",n.fillStyle=f,n.font=`600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,n.fillText(s,a,o-5),n.fillStyle=d,n.font=`500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`,n.fillText(l,a,o+12),n.restore()}},mH=({ownerCount:e=1e3,tenantCount:t=200,nonResidingOwners:r=26,growthPct:n="+9.1%"})=>{const i=Math.max(e-r,0),a=e+t,o={labels:["Owners","Tenants","Non-residing Owner"],datasets:[{data:[i,t,r],backgroundColor:["#3C81F6","#08B6D4","#8B5CF6"],borderWidth:2,hoverOffset:4}]},s={responsive:!0,maintainAspectRatio:!1,cutout:"68%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:l=>`${l.label}: ${l.parsed}`},displayColors:!1},centerText:{top:`${a}`,bottom:"Total Members",topSize:20,bottomSize:10}}};return y.jsx(Ie,{title:"Resident Overview",icon:y.jsx(Yg,{className:"h-6 w-6 text-[#8B5CF6]"}),className:"h-[238px]",children:y.jsxs("div",{className:" flex-1 min-h-0 grid grid-cols-12 gap-[16px] items-center",children:[y.jsxs("div",{className:"col-span-5",children:[y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B] leading-[16px]",children:"Total Owners"}),y.jsx("div",{className:"text-[28px] leading-[32px ] text-[#3C81F6]",children:e})]}),y.jsxs("div",{children:[y.jsx("div",{className:"!text-[12px] text-[#64748B] leading-[16px]",children:"Total Tenants"}),y.jsx("div",{className:"text-[28px] leading-[32px ] text-[#08B6D4]",children:t})]}),y.jsxs("div",{className:"text-[10px] text-[#1FA05B] flex gap-2 items-center",children:[n," ",y.jsx("div",{className:"text-[#64748B] ",children:"Compared to last month"})]})]}),y.jsx("div",{className:"col-span-7",children:y.jsx("div",{className:"h-[162px] w-[162px] ml-auto mr-2",children:y.jsx(mm,{data:o,options:s,plugins:[pH]})})})]})})};Lt.register(jn,Dn,$o,br,yr);const gH=({blocks:e=[{name:"Block A",owner:110,rented:24,vacant:8},{name:"Block B",owner:95,rented:18,vacant:6},{name:"Block C",owner:65,rented:12,vacant:18},{name:"Block D",owner:78,rented:16,vacant:30}]})=>{const t=e.map(s=>s.name),r=e.map(s=>s.owner),n=e.map(s=>s.rented),i=e.map(s=>s.vacant),a={labels:t,datasets:[{label:"Owner",data:r,backgroundColor:"#3C81F6",barThickness:40},{label:"",data:r.map(()=>2),backgroundColor:"transparent",barThickness:40},{label:"Rented",data:n,backgroundColor:"#8B5CF6",barThickness:40},{label:"",data:n.map(()=>2),backgroundColor:"transparent",barThickness:40},{label:"Vacant",data:i,backgroundColor:"#08B6D4",barThickness:40}]},o={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,pointStyle:"rectRot",padding:20}},tooltip:{callbacks:{label:s=>`${s.dataset.label}: ${s.parsed.y}`}}},scales:{x:{stacked:!0,grid:{display:!1},ticks:{color:"#64748B"}},y:{stacked:!0,beginAtZero:!0,suggestedMax:180,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:20}}}};return y.jsx(Ie,{title:"Block-wise Occupancy",period:y.jsx(ht,{className:"text-xl text-[#884EA7]"}),className:"w-full h-[360px]",titleWeight:"semi-bold",children:y.jsx(Lo,{data:a,options:o})})};Lt.register(jn,Dn,um,cm,br,yr);const vH=e=>{const[t,r]=String(e).split(" ");return`${{Jan:"January",Feb:"February",Mar:"March",Apr:"April",May:"May",Jun:"June",Jul:"July",Aug:"August",Sep:"September",Oct:"October",Nov:"November",Dec:"December"}[t]||t} 20${r}`},yH=({labels:e=["Jan 25","Feb 25","Mar 25","Apr 25","May 25"],moveIn:t=[24,27,20,26,23],moveOut:r=[12,17,8,5,16]})=>{const n={labels:e,datasets:[{label:"Move-in",data:t,borderColor:"#12B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#12B981",pointStyle:"rectRot",fill:!1},{label:"Move-out",data:r,borderColor:"#8B5CF6",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#8B5CF6",pointStyle:"rectRot",fill:!1}]},i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:a=>vH(a[0].label),label:a=>`${a.dataset.label}: ${a.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return y.jsx(Ie,{title:"Move-in/Out Trends",className:"w-full h-[360px]",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),titleWeight:"semi-bold",children:y.jsx(pm,{data:n,options:i})})};Lt.register(jn,Dn,um,cm,br,yr);const bH=e=>{const[t,r]=String(e).split(" ");return`${{Jan:"January",Feb:"February",Mar:"March",Apr:"April",May:"May",Jun:"June",Jul:"July",Aug:"August",Sep:"September",Oct:"October",Nov:"November",Dec:"December"}[t]||t} 20${r}`},YO=({labels:e=["Jan 25","Feb 25","Mar 25","Apr 25","May 25"],moveIn:t=[24,27,20,26,23],moveOut:r=[4,17,8,5,16,4,7]})=>{const n={labels:e,datasets:[{label:"Income",data:t,borderColor:"#10B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#10B981",pointStyle:"rectRot",fill:!1},{label:"Expenditure",data:r,borderColor:"#AB0000",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#AB0000",pointStyle:"rectRot",fill:!1}]},i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:a=>bH(a[0].label),label:a=>`${a.dataset.label}: ${a.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return y.jsx(pm,{data:n,options:i})};function GO({label:e,value:t,positive:r,bgColor:n,delta:i,deltaLabel:a,textColor:o}){return y.jsxs("div",{className:`rounded-lg p-4 ${n} border border-[#EBEBEB] h-[126px]`,children:[y.jsx("div",{className:`text-[16px] leading-[20px] ${o}`,children:e}),y.jsx("div",{className:"mt-[16px] leading-[28px] !text-[24px] font-medium text-[#121212]",children:t}),y.jsxs("div",{className:"mt-[8px] flex items-center gap-[8px] leading-[14px] text-[10px]",children:[y.jsx("div",{className:r?"text-[#1FA05B] font-medium":"text-[#EF4444] font-medium",children:i}),y.jsx("div",{className:"text-[#64748B] ",children:a})]})]})}function xH(){return y.jsxs(Ie,{title:"Accounting",className:"w-full h-[523px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[y.jsxs("div",{className:"grid grid-cols-2 gap-[16px]",children:[y.jsx(GO,{label:"Total Income",value:"AED 5.68M",delta:"+4.4%",positive:!0,bgColor:"bg-slate-50",deltaLabel:"Compared to last month",textColor:"text-[#1FA05B]"}),y.jsx(GO,{label:"Total Expenditure",value:"AED 1.83M",delta:"-1.1%",positive:!1,bgColor:"bg-slate-50",deltaLabel:"Compared to last month",textColor:"text-[#AB0000]"})]}),y.jsx("div",{className:"h-[254px] mt-[35.5px]",children:y.jsx(YO,{})})]})}Lt.register(jn,Dn,$o,br,yr);const wH=()=>{const e=["Maintenance","Security","Utilities","Housekeeping","Administration","Others"],n={labels:e,datasets:[{label:"Budget",data:[55e3,56e3,64e3,38e3,54e3,65e3],backgroundColor:"#93C5FD",barThickness:60},{label:"Actual",data:[63e3,48e3,51300,28e3,42e3,35e3],backgroundColor:"#3B82F6",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,pointStyle:"rectRot",padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:a=>e[a[0].dataIndex],label:a=>{const o=a.parsed.y;return`${a.dataset.label}: AED ${(o/1e3).toFixed(1)}K`}}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:a=>`${a/1e3}K`}}}};return y.jsx(Ie,{title:"Budget vs Actuals",className:"w-full h-[362px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:y.jsx(Lo,{data:n,options:i})})},_H=()=>{const e=[{title:"Primary Account",amount:285e4,subtitle:"Savings"},{title:"Emergency Fund",amount:12e5,subtitle:"Fixed deposit"},{title:"Maintenance Fund",amount:68e4,subtitle:"Current"}],t=e.reduce((n,i)=>n+i.amount,0),r=n=>n>=1e6?`AED ${(n/1e6).toFixed(2)}M`:n>=1e3?`AED ${(n/1e3).toFixed(1)}K`:`AED ${n}`;return y.jsxs(Ie,{title:"Cash & Bank Balance",className:"w-full h-[362px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),children:[y.jsx("div",{className:"flex flex-col gap-[12px]",children:e.map((n,i)=>y.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"text-[14px] font-medium text-[#121212]",children:n.title}),y.jsx("div",{className:"!text-[12px] text-[#64748B]",children:n?.subtitle})]}),y.jsx("div",{className:"flex flex-col items-end",children:y.jsx("div",{className:"text-[14px] text-[#1FA05B] font-semibold",children:r(n.amount)})})]},i))}),y.jsxs("div",{className:"flex items-center justify-between border-t border-[#EBEBEB] h-[68px] px-3",children:[y.jsx("div",{className:"text-[14px] font-medium text-[#121212]",children:"Total"}),y.jsx("div",{className:"text-[16px] text-[#1FA05B] font-bold",children:r(t)})]})]})};Lt.register(jn,Dn,$o,br,yr);const SH=()=>{const e=["Current Month","1-3 Months","3-6 Months","6+ Months"],t=[13e3,9400,8800,7200],r=[18,12,18,6],n={labels:e,datasets:[{label:"Due",data:t,backgroundColor:"#EF4444",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:a=>e[a[0].dataIndex],label:a=>`Due: AED ${(a.parsed.y/1e3).toFixed(1)}K`,afterLabel:a=>`Units Count: ${r[a.dataIndex]}`}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:a=>`${a/1e3}K`}}}};return y.jsxs(Ie,{title:"Dues Ageing",className:"w-full h-[362px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[y.jsx("div",{className:"grid grid-cols-4 md:grid-cols-4 gap-[12px] h-[48px]",children:e.map((a,o)=>y.jsx("div",{className:"p-2 rounded-lg bg-slate-50",children:y.jsxs("div",{className:"flex justify-between items-start",children:[y.jsx("div",{className:"font-medium leading-[16px] !text-[12px] rounded",children:a}),y.jsxs("div",{className:"text-right",children:[y.jsxs("div",{className:"text-red-600 font-medium leading-[16px] !text-[12px]",children:["AED ",(t[o]/1e3).toFixed(1),"K"]}),y.jsxs("div",{className:" text-gray-500 leading-[14px] text-[10px]",children:[r[o]," Units"]})]})]})},a))}),y.jsx("div",{className:"h-[192px]",children:y.jsx(Lo,{data:n,options:i})})]})};Lt.register(sm,br,yr);const OH=()=>{const e=["Maintenance","Utilities","Security","Administration","Others"],t=[45e4,32e4,28e4,18e4,12e4],r={labels:e,datasets:[{label:"Expenses",data:t,backgroundColor:["#08B6D4","#8B5CF6","#EF4444","#F69E0A","#12B981"],borderColor:"#FFFFFF",borderWidth:2,cutout:"70%"}]},n=t.reduce((a,o)=>a+o,0),i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:10,callbacks:{label:a=>`${a.label}: AED ${a.formattedValue}`}}}};return y.jsxs(Ie,{title:"Expense Categories",className:"w-full h-[523px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:[y.jsxs("div",{className:"relative h-[259px] flex justify-center items-center",children:[y.jsx(mm,{data:r,options:i}),y.jsxs("div",{className:"absolute text-center",children:[y.jsxs("div",{className:"!text-[24px] font-medium leading-[28px] text-[#121212]",children:["AED ",(n/1e6).toFixed(2),"M"]}),y.jsx("div",{className:"text-[#121212] leading-[18px] text-[14px]",children:"Total Expenses"})]})]}),y.jsx("div",{className:"space-y-2",children:e.map((a,o)=>y.jsxs("div",{className:"flex justify-between items-center text-[14px] pb-2",children:[y.jsxs("div",{className:"flex items-center gap-[8px] !text-[12px] leading-[16px] text-[#64748B]",children:[y.jsx("div",{className:"w-[7px] h-[7px] rotate-45",style:{backgroundColor:r.datasets[0].backgroundColor[o]}}),a]}),y.jsxs("div",{className:"leading-[16px] !text-[12px] text-[#64748B]",children:["AED ",(t[o]/1e3).toFixed(0),"K"]})]},a))})]})},Fo=[{name:"Gym Equipment",value:1e6,color:"#08B6D4"},{name:"Security",value:8e5,color:"#EF4444"},{name:"Others",value:6e5,color:"#F59E0B"},{name:"Pool Maintenance",value:7e5,color:"#8B5CF6"},{name:"Administration",value:52e4,color:"#10B981"}];function AH(){const e=Fo.reduce((t,r)=>t+r.value,0);return y.jsx(Ie,{title:"Asset Value Breakdown",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",titleWeight:"semi-bold",children:y.jsxs("div",{className:"flex flex-col items-center justify-center",children:[y.jsxs("div",{className:"w-[214px] h-[181px] relative",children:[y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(ac,{children:[y.jsx(ho,{data:Fo,innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",nameKey:"name",children:Fo.map((t,r)=>y.jsx(kr,{fill:t.color},`cell-${r}`))}),y.jsx(ii,{formatter:t=>`AED ${t.toLocaleString()}`})]})}),y.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[y.jsxs("div",{className:"font-medium text-lg leading-[12px] ",children:["AED ",(e/1e6).toFixed(2),"M"]}),y.jsx("div",{className:"text-[10px] leading-[12.59px] text-[#121212] mt-[6px]",children:"Total Assets"})]})]}),y.jsxs("div",{className:"flex justify-between w-full px-4 sm:px-8 mt-4 text-[14px]",children:[y.jsx("div",{className:"flex flex-col gap-[8px]",children:Fo.slice(0,3).map(t=>y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"inline-block h-[7px] w-[7px] rotate-45",style:{backgroundColor:t.color}}),y.jsx("div",{className:"text-[#64748B] leading-[16px] !text-[12px]",children:t.name})]},t.name))}),y.jsx("div",{className:"flex flex-col gap-[8px] items-start",children:Fo.slice(3).map(t=>y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"inline-block h-[7px] w-[7px] rotate-45",style:{backgroundColor:t.color}}),y.jsx("div",{className:"text-[#64748B] leading-[16px] !text-[12px]",children:t.name})]},t.name))})]})]})})}Lt.register(jn,Dn,$o,br,yr);const EH=()=>{const e=["Gym","Parking","Swimming Pool","Community Hall","Tennis Court"],t=[13e3,9400,8800,7200,6e3],r=[18,12,18,6],n={labels:e,datasets:[{label:"Due",data:t,backgroundColor:"#8B5CF6",barThickness:60}]},i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:6,callbacks:{title:a=>e[a[0].dataIndex],label:a=>`Due: AED ${(a.parsed.y/1e3).toFixed(1)}K`,afterLabel:a=>`Units Count: ${r[a.dataIndex]}`}}},scales:{x:{grid:{display:!1},ticks:{color:"#64748B"}},y:{beginAtZero:!0,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",callback:a=>`${a/1e3}K`}}}};return y.jsx(Ie,{title:"Revenue by Category",className:"w-full h-[362px]",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),titleWeight:"semi-bold",children:y.jsx(Lo,{data:n,options:i})})};function PH(e){return Te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 5l0 2"},child:[]},{tag:"path",attr:{d:"M15 11l0 2"},child:[]},{tag:"path",attr:{d:"M15 17l0 2"},child:[]},{tag:"path",attr:{d:"M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2"},child:[]}]})(e)}function CH(e){return Te({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M855.7 210.8l-42.4-42.4a8.03 8.03 0 0 0-11.3 0L168.3 801.9a8.03 8.03 0 0 0 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z"},child:[]}]})(e)}function kH({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Oa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsxs(Ie,{title:e,icon:y.jsx("div",{className:"h-6 w-6 grid place-items-center",children:y.jsx(a,{className:`h-6 w-6 ${o}`})}),children:[y.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[y.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-slate-500",children:n})]})]})}function TH(){const e=[{title:"Total Bookings",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:qg,iconColor:"text-emerald-600"},{title:"Utilisation Rate",value:73,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:CH,iconColor:"text-[#329DFF]"},{title:"Revenue",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:PH,iconColor:"text-[#FA7E28]"},{title:"Pending Dues",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:Xg,iconColor:"text-[#DBB467]"}];return y.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,r)=>y.jsx(kH,{...t},r))})}const Nc=[{name:"Completed",value:46,color:"#12B981"},{name:"Delayed",value:2,color:"#EF4444"},{name:"Missed",value:2,color:"#F69E0A"}];function MH(){const t=Nc.find(r=>r.name==="Completed")?.value||0;return y.jsx(Ie,{title:"Guard Patrols",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:y.jsxs("div",{className:"flex flex-col items-center justify-center",children:[y.jsxs("div",{className:"w-[215px] h-[182px] relative",children:[y.jsx(ai,{width:"100%",height:"100%",children:y.jsxs(ac,{children:[y.jsx(ho,{data:Nc,innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",nameKey:"name",children:Nc.map((r,n)=>y.jsx(kr,{fill:r.color},`cell-${n}`))}),y.jsx(ii,{formatter:r=>r.toLocaleString()})]})}),y.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none",children:[y.jsxs("div",{className:"font-medium text-[19.35px] leading-[23.65px] ",children:[t,"/",50]}),y.jsx("div",{className:"text-[10.75px] leading-[15.05px] text-[#64748B]",children:"Completed"})]})]}),y.jsx("div",{className:"flex flex-col gap-[8px] mt-3 w-full px-6 text-[14px]",children:Nc.map(r=>y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"inline-block w-[7px] h-[7px] rotate-45",style:{backgroundColor:r.color}}),y.jsx("div",{className:"leading-[16.09px] text-[12.07px] text-[#64748B]",children:r.name})]}),y.jsx("div",{className:"leading-[16.09px] text-[12.07px] text-[#64748B]",children:r.value})]},r.name))})]})})}Lt.register(jn,Dn,um,cm,br,yr);const jH=()=>{const t={labels:["10 AM","12 PM","2 PM","4 PM","6 PM","8 PM","10 PM"],datasets:[{label:"Guest",data:[9,5,12,7,3,6,4],borderColor:"#EF4444",backgroundColor:"rgba(239,68,68,0.15)",pointBackgroundColor:"#EF4444",pointStyle:"rectRot",fill:!1},{label:"Cab",data:[15,12,10,14,7,12,8],borderColor:"#7C3AED",backgroundColor:"rgba(124,58,237,0.15)",pointBackgroundColor:"#7C3AED",pointStyle:"rectRot",fill:!1},{label:"Delivery",data:[22,18,16,20,22,14,17],borderColor:"#10B981",backgroundColor:"rgba(16,185,129,0.15)",pointBackgroundColor:"#10B981",pointStyle:"rectRot",fill:!1},{label:"Service",data:[13,12,8,9,5,10,7],borderColor:"#F59E0B",backgroundColor:"rgba(245,158,11,0.15)",pointBackgroundColor:"#F59E0B",pointStyle:"rectRot",fill:!1}]},r={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,padding:20}},tooltip:{backgroundColor:"#0F172A",titleColor:"#FFFFFF",bodyColor:"#FFFFFF",displayColors:!1,padding:12,caretSize:0,callbacks:{title:n=>n[0].label,label:n=>`${n.dataset.label} ${n.parsed.y}`}}},scales:{x:{grid:{color:"#F1F5F9"},ticks:{color:"#64748B"}},y:{beginAtZero:!0,suggestedMax:28,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:4,precision:0}}},elements:{line:{borderWidth:2,tension:0},point:{radius:0,hoverRadius:3,hitRadius:10}}};return y.jsx(Ie,{title:"Hourly Traffic Flow",className:"w-full h-[362px]",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),children:y.jsx(pm,{data:t,options:r})})};function DH(){return y.jsx(Ie,{title:"Incident Reports",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:y.jsxs("div",{children:[y.jsxs("div",{className:"flex w-full text-center gap-[24px]",children:[y.jsxs("div",{className:"flex-1 py-3 bg-[#FBF4F4] h-[76px] rounded",children:[y.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#AB0000]",children:"3"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#AB0000]",children:"Open"})]}),y.jsxs("div",{className:"flex-1 py-3 bg-[#FFFBF2] h-[76px] rounded",children:[y.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#E7A015]",children:"5"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#E7A015]",children:"In-progress"})]}),y.jsxs("div",{className:"flex-1 py-3 bg-[#F7FEFA] h-[76px] rounded",children:[y.jsx("div",{className:"!text-[24px] leading-[28px] font-medium text-[#1FA05B]",children:"12"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#1FA05B]",children:"Closed"})]})]}),y.jsxs("div",{className:"mt-4 ",children:[y.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#AB0000]",children:y.jsx("div",{className:"text-white !text-[12px] font-bold",children:"!"})}),y.jsx("div",{className:"text-gray-700 font-medium",children:"INC 001"})]}),y.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#AB0000] bg-red-50",children:[y.jsx("div",{children:"4 - Danger"}),y.jsx("div",{className:"w-2 h-2 rounded-full bg-[#AB0000]"})]})]}),y.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#E7A015]",children:y.jsx(Vg,{className:"text-white text-[10px]"})}),y.jsx("div",{className:"text-gray-700 font-medium",children:"INC 002"})]}),y.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#E7A015] bg-yellow-50",children:[y.jsx("div",{children:"3 - High"}),y.jsx("div",{className:"w-2 h-2 rounded-full bg-[#E7A015]"})]})]}),y.jsxs("div",{className:"flex items-center justify-between p-3 bg-[#FAFBFD] rounded-md border border-[#FAFBFD]",children:[y.jsxs("div",{className:"flex items-center gap-[8px]",children:[y.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center bg-[#1FA05B]",children:y.jsx(Vg,{className:"text-white text-[10px]"})}),y.jsx("div",{className:"text-gray-700 font-medium",children:"INC 003"})]}),y.jsxs("div",{className:"px-3 py-1 rounded-full !text-[12px] font-semibold flex items-center gap-[4px] text-[#1FA05B] bg-green-50",children:[y.jsx("div",{children:"1 - Low"}),y.jsx("div",{className:"w-2 h-2 rounded-full bg-[#1FA05B]"})]})]})]})]})})}function NH(){return y.jsx(Ie,{title:"Staff Attendance",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"h-[362px]",children:y.jsxs("div",{children:[y.jsxs("div",{className:"flex w-full text-center h-[76px] gap-[16px] mb-2",children:[y.jsxs("div",{className:"flex-1 py-4 bg-green-50 rounded-md",children:[y.jsx("div",{className:"!text-[24px] leading-[18px] font-medium text-[#1FA05B] pb-[8px]",children:"25"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#1FA05B]",children:"Present"})]}),y.jsxs("div",{className:"flex-1 py-4 bg-red-50 rounded-md",children:[y.jsx("div",{className:"!text-[24px] leading-[18px] font-medium text-[#AB0000] pb-[8px]",children:"1"}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#AB0000]",children:"Absent"})]})]}),y.jsxs("div",{className:"mt-[24px] ",children:[y.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[y.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Security guards"}),y.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"12/12 Present"})]}),y.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[y.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Housekeeping"}),y.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"7/8 Present"})]}),y.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[y.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Maintenance"}),y.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"4/4 Present"})]}),y.jsxs("div",{className:"flex justify-between items-center p-3 bg-[#FAFBFD] rounded-md",children:[y.jsx("div",{className:" font-medium !text-[12px] leading-[18px]",children:"Gardening"}),y.jsx("div",{className:"text-[#64748B] leading[20px] text-[14px]",children:"2/2 Present"})]})]})]})})}function IH(e){return Te({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Box_List"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z"},child:[]},{tag:"path",attr:{d:"M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]},{tag:"path",attr:{d:"M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z"},child:[]}]}]}]})(e)}function $H(e){return Te({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Warning"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z"},child:[]},{tag:"circle",attr:{cx:"11.999",cy:"16.736",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z"},child:[]}]}]}]})(e)}function RH(e){return Te({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M116,132V96a12,12,0,0,1,24,0v36a12,12,0,0,1-24,0Zm12,56a16,16,0,1,0-16-16A16,16,0,0,0,128,188ZM228,56v56c0,54.29-26.32,87.22-48.4,105.29-23.71,19.39-47.44,26-48.44,26.29a12.1,12.1,0,0,1-6.32,0c-1-.28-24.73-6.9-48.44-26.29C54.32,199.22,28,166.29,28,112V56A20,20,0,0,1,48,36H208A20,20,0,0,1,228,56Zm-24,4H52v52c0,35.71,13.09,64.69,38.91,86.15A126.14,126.14,0,0,0,128,219.38a126.28,126.28,0,0,0,37.09-21.23C190.91,176.69,204,147.71,204,112Z"},child:[]}]})(e)}function LH({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Oa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsxs(Ie,{title:e,icon:y.jsx("div",{className:"h-6 w-6 grid place-items-center",children:y.jsx(a,{className:`h-6 w-6 ${o}`})}),children:[y.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[y.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-slate-500",children:n})]})]})}function FH(){const e=[{title:"Total Visitors",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:Gg,iconColor:"text-[#329DFF]"},{title:"Active Incidents",value:73,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:$H,iconColor:"text-[#F69E0A]"},{title:"Missed Patrols",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:RH,iconColor:"text-[#AB0000]"},{title:"Parking Usage",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:XC,iconColor:"text-[#36AB6C]"}];return y.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,r)=>y.jsx(LH,{...t},r))})}const BH=[{title:"Maintenance",total:25,pending:8},{title:"Security",total:15,pending:3},{title:"Housekeeping",total:12,pending:4},{title:"Utilities",total:10,pending:2}];function zH(){return y.jsx(Ie,{title:"Complaints",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),className:"h-[362px]",children:y.jsx("div",{className:"flex flex-col gap-[12px]",children:BH.map((e,t)=>y.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-[#121212]",children:e.title}),y.jsxs("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:["Total: ",e.total]})]}),y.jsxs("div",{className:"flex flex-col items-end",children:[y.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-red-700",children:String(e.pending).padStart(2,"0")}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:"Pending"})]})]},t))})})}Lt.register(jn,Dn,$o,br,yr);const WH=({blocks:e=[{name:"Level 1",owner:110,rented:24,vacant:8},{name:"Level 2",owner:95,rented:18,vacant:6},{name:"Level 3",owner:65,rented:12,vacant:18},{name:"Level 4",owner:78,rented:16,vacant:30}]})=>{const t=e.map(s=>s.name),r=e.map(s=>s.owner),n=e.map(s=>s.rented),i=e.map(s=>s.vacant),a={labels:t,datasets:[{label:"Closed",data:r,backgroundColor:"#12B981",barThickness:44},{label:"",data:r.map(()=>2),backgroundColor:"transparent",barThickness:44},{label:"In Progress",data:n,backgroundColor:"#F59D0D",barThickness:44},{label:"",data:r.map(()=>2),backgroundColor:"transparent",barThickness:44},{label:"Open",data:i,backgroundColor:"#EF4444",barThickness:44}]},o={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{usePointStyle:!0,boxWidth:10,boxHeight:10,pointStyle:"rectRot",padding:20}},tooltip:{callbacks:{label:s=>`${s.dataset.label}: ${s.parsed.y}`}}},scales:{x:{stacked:!0,grid:{display:!1},ticks:{color:"#64748B"}},y:{stacked:!0,beginAtZero:!0,suggestedMax:180,grid:{color:"#F1F5F9"},ticks:{color:"#64748B",stepSize:20}}}};return y.jsx(Ie,{title:"Complaints by Level",className:"w-full h-[362px]",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),children:y.jsx(Lo,{data:a,options:o})})},VH=[{title:"Access Card",total:45,pending:11},{title:"NOC Request",total:12,pending:7},{title:"Parking Allocation",total:8,pending:6},{title:"Document Request",total:25,pending:2}];function HH(){return y.jsx(Ie,{title:"Request Box",period:y.jsx(ht,{className:"text-[20px] text-[#884EA7]"}),className:"h-[362px]",children:y.jsx("div",{className:"flex flex-col gap-[12px]",children:VH.map((e,t)=>y.jsxs("div",{className:"flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-[#121212]",children:e.title}),y.jsxs("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:["Total: ",e.total]})]}),y.jsxs("div",{className:"flex flex-col items-end",children:[y.jsx("div",{className:"text-[14px] leading-[18px] font-medium text-red-700",children:String(e.pending).padStart(2,"0")}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B]",children:"Pending"})]})]},t))})})}function UH(e){return Te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0 0 32 32h120m-232 80h160m-160 80h160"},child:[]}]})(e)}function KH({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Oa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsxs(Ie,{title:e,icon:y.jsx("div",{className:"h-6 w-6 grid place-items-center",children:y.jsx(a,{className:`h-6 w-6 ${o}`})}),children:[y.jsx("div",{className:"text-4xl font-semibold tracking-tight text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] text-[14px]",children:[y.jsx("div",{className:i?"text-emerald-600 font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-slate-500",children:n})]})]})}function qH(){const e=[{title:"Open Complaints",value:145,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:qg,iconColor:"text-[#AB0000]"},{title:"Pending Requests",value:83,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:UH,iconColor:"text-[#E7A015]"},{title:"Avg Response Time",value:"3h",delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:qC,iconColor:"text-[#1FA05B]"},{title:"Resolution Rate",value:"93%",delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:VC,iconColor:"text-[#329DFF]"}];return y.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,r)=>y.jsx(KH,{...t},r))})}function XO({title:e,date:t,rsvp:r,utilisation:n,status:i}){return y.jsxs("div",{className:" bg-[#F8FAFC] h-[106px] px-3 mt-3",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"text-[16px] leading-[20px] font-semibold text-[#121212]",children:e}),y.jsx("div",{className:`!text-[12px] font-medium leading-[16px] px-2 py-1 ${i==="Completed"?"text-[#36AB6C] bg-[#E6F7EE]":i==="Upcoming"?"text-[#329DFF] bg-[#E6F2FF]":"text-slate-500 bg-slate-100"}`,children:i})]}),y.jsx("div",{className:"text-[14px] leading-[18px] text-[#64748B]",children:t}),y.jsxs("div",{className:"flex justify-between items-center mt-2",children:[y.jsxs("div",{className:"text-[14px] leading-[18px] text-[#64748B]",children:[r," RSVP"]}),y.jsxs("div",{className:"text-[#3C82F6] text-[14px] leading-[18px] font-medium",children:[n,"% utilisation"]})]}),y.jsx("div",{className:"w-full bg-[#F8FAFC] h-[6px] rounded mt-2 mb-3",children:y.jsx("div",{className:"h-[6px] rounded bg-[#3C82F6]",style:{width:`${n}%`}})})]})}function YH(){return y.jsx(Ie,{title:"Events Utilisation",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"w-full h-[360px]",children:y.jsxs("div",{children:[y.jsx(XO,{title:"Holi Celebration",date:"25 Jun 2025",rsvp:"78/100",utilisation:71,status:"Upcoming"}),y.jsx(XO,{title:"Maintenance Meeting",date:"25 Jun 2025",rsvp:"45/60",utilisation:75,status:"Completed"})]})})}function Ic({label:e,value:t,subLabel:r,bgColor:n,textColor:i}){return y.jsxs("div",{className:`rounded-lg p-4 ${n} h-[124px]`,children:[y.jsx("div",{className:`text-[16px] font-medium ${i} leading-[20px]`,children:e}),y.jsx("div",{className:"mt-4 text-[28px] leading-[32px] font-semibold text-[#121212]",children:t}),y.jsx("div",{className:"!text-[12px] leading-[16px] text-[#64748B] mt-2",children:r})]})}function GH(){return y.jsx(Ie,{title:"Notice Board Status",period:y.jsx(ht,{className:"h-5 w-5 text-[#884EA7] cursor-pointer"}),className:"w-full h-[360px]",children:y.jsxs("div",{className:"grid grid-cols-2 gap-[16px]",children:[y.jsx(Ic,{label:"Active",value:138,subLabel:"3 expiring soon",bgColor:"bg-[#F0FFF7]",textColor:"text-[#1FA05B]"}),y.jsx(Ic,{label:"Scheduled",value:13,subLabel:"4 this week",bgColor:"bg-[#FFFBF2]",textColor:"text-[#E7A015]"}),y.jsx(Ic,{label:"Recurring",value:3,subLabel:"All active",bgColor:"bg-[#EDF6FF]",textColor:"text-[#329DFF]"}),y.jsx(Ic,{label:"Expired",value:7,subLabel:"4 recent",bgColor:"bg-[#F6F6F6]",textColor:"text-[#64748B]"})]})})}function ZO(e){return Te({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 9H16V11H8V9ZM8 13H16V15H8V13Z"},child:[]}]})(e)}function XH({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Oa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsx(Ie,{title:e,icon:y.jsx("div",{className:`h-6 w-6 grid place-items-center rounded-md ${s}`,children:y.jsx(a,{className:`h-4 w-4 ${o}`})}),className:"h-[132px]",children:y.jsxs("div",{children:[y.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] pt-[8px] !text-[12px] leading-[16px]",children:[y.jsx("div",{className:i?"text-[#1FA05B] font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-[#64748B]",children:n})]})]})})}function ZH({data:e}){const t=[{title:e?.title||"Total Bookings",value:145,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:ZO,iconColor:"text-emerald-600",iconBg:"bg-emerald-50"}];return y.jsx("div",{className:"h-full",children:t.map((r,n)=>y.jsx(XH,{...r},n))})}function JH(e){return Te({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"},child:[]}]})(e)}function QH({title:e,value:t,delta:r,deltaLabel:n,positive:i=!0,Icon:a=Oa,iconColor:o="text-emerald-600",iconBg:s="bg-emerald-50"}){return y.jsx(Ie,{title:e,icon:y.jsx("div",{className:`h-6 w-6 grid place-items-center rounded-md ${s}`,children:y.jsx(a,{className:`h-4 w-4 ${o}`})}),className:"h-[132px]",children:y.jsxs("div",{children:[y.jsx("div",{className:"text-[28px] leading-[32px] font-medium text-[#121212]",children:t}),y.jsxs("div",{className:"flex items-center gap-[8px] pt-[8px] !text-[12px] leading-[16px]",children:[y.jsx("div",{className:i?"text-[#1FA05B] font-medium":"text-rose-600 font-medium",children:r}),y.jsx("div",{className:"text-[#64748B]",children:n})]})]})})}function eU(){const e=[{title:"Notice",value:160,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:ZO,iconColor:"text-emerald-600",iconBg:"bg-emerald-50"},{title:"Post",value:83,delta:"+2.0%",deltaLabel:"Compared to last month",positive:!0,Icon:ZC,iconColor:"text-[#329DFF]",iconBg:"bg-emerald-50"},{title:"Poll",value:3,delta:"+11.0%",deltaLabel:"Compared to last month",positive:!0,Icon:IH,iconColor:"text-[#FA7E28]",iconBg:"bg-orange-100"},{title:"Poll",value:5,delta:"-8.0%",deltaLabel:"Compared to last month",positive:!1,Icon:JH,iconColor:"text-[#DBB467]",iconBg:"bg-yellow-100"}];return y.jsx("div",{className:"px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]",children:e.map((t,r)=>y.jsx(QH,{...t},r))})}ae.Accounting=xH,ae.AssetValueBreakdown=AH,ae.BlockWiseOccupancy=gH,ae.Budgets=wH,ae.Card=Ie,ae.CashBankBalance=_H,ae.Community=Dz,ae.Complaints=zH,ae.ComplaintsByLevel=WH,ae.DuesAgeing=SH,ae.Engagement=Nz,ae.EngagementStatsGrid=eU,ae.EventsUtilisation=YH,ae.ExpenseCategories=OH,ae.Facilities=Rz,ae.FinanceSummary=Lz,ae.GateAndSecurityStatsGrid=FH,ae.GateUpdates=Wz,ae.GuardPatrols=MH,ae.Header=YC,ae.Helpdesk=Vz,ae.HelpdeskStatsGrid=qH,ae.HourlyTrafficFlow=jH,ae.IncidentReports=DH,ae.IncomeExpenditure=YO,ae.MainHeader=ek,ae.MoveInOutTrends=yH,ae.NoticeBoardStatus=GH,ae.OccupancyOverview=hH,ae.RequestBox=HH,ae.ResidentOverview=mH,ae.RevenuebyCategory=EH,ae.SingleStats=ZH,ae.StaffAttendance=NH,ae.StatsGrid=TH,ae.UnitStatus=dH,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})}));