@johpaz/hive-agents 0.0.29 → 0.0.30
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/README.md +27 -17
- package/dist/hive.js +9219 -10079
- package/dist/ui/assets/AgentCreateForm-BmRLLGIL.js +1 -0
- package/dist/ui/assets/AgentDetailPage-BOVOgECU.js +1 -0
- package/dist/ui/assets/AgentNewPage-BCMuhksF.js +1 -0
- package/dist/ui/assets/AgentsPage-BYGTwib8.js +10 -0
- package/dist/ui/assets/BridgePage-CEMpmdql.js +1 -0
- package/dist/ui/assets/CanvasPage-Dcmx4S1-.js +33 -0
- package/dist/ui/assets/ChannelsPage-B_PiavjN.js +8 -0
- package/dist/ui/assets/DashboardPage-sSu1NU7V.js +6 -0
- package/dist/ui/assets/LoginPage-D1kejzak.js +1 -0
- package/dist/ui/assets/LogsPage-CaD4OOff.js +1 -0
- package/dist/ui/assets/MeetingPage-C0iKxHOI.js +1 -0
- package/dist/ui/assets/NotFound-CBnwE5nh.js +1 -0
- package/dist/ui/assets/ProjectsPage-DGliWwpu.js +1 -0
- package/dist/ui/assets/ProvidersPage-_O0WMMVK.js +1 -0
- package/dist/ui/assets/RecoverPage-DVESenp8.js +1 -0
- package/dist/ui/assets/SettingsPage-BKCZqIq2.js +9 -0
- package/dist/ui/assets/SetupPage-IjKq_kLj.js +1 -0
- package/dist/ui/assets/WebChatPage-D-zO53Yt.js +16 -0
- package/dist/ui/assets/accordion-_sozXeaB.js +1 -0
- package/dist/ui/assets/activity-BB8JBT7a.js +1 -0
- package/dist/ui/assets/alert-Bgqky__w.js +1 -0
- package/dist/ui/assets/alert-dialog-B12geoBt.js +1 -0
- package/dist/ui/assets/arrow-left-WQsWOWW_.js +1 -0
- package/dist/ui/assets/badge-BY-VUaxL.js +1 -0
- package/dist/ui/assets/calendar-D_GHXR8q.js +1 -0
- package/dist/ui/assets/card-CE_kGxdL.js +1 -0
- package/dist/ui/assets/chevron-down-DLfCQOQA.js +1 -0
- package/dist/ui/assets/chevron-left-5XF9hbEm.js +1 -0
- package/dist/ui/assets/chevron-right-B60x0b2L.js +1 -0
- package/dist/ui/assets/chevron-up-GfewdYph.js +1 -0
- package/dist/ui/assets/circle-DLFOVgkH.js +1 -0
- package/dist/ui/assets/circle-alert-Qf59MV-u.js +1 -0
- package/dist/ui/assets/circle-check-BhwUUu4Z.js +1 -0
- package/dist/ui/assets/circle-minus-BcF7EW2K.js +1 -0
- package/dist/ui/assets/circle-x-C55wB-DP.js +1 -0
- package/dist/ui/assets/cpu-BxFtjoPn.js +1 -0
- package/dist/ui/assets/dialog-CWlGzRqi.js +1 -0
- package/dist/ui/assets/download-DRO1cmbw.js +1 -0
- package/dist/ui/assets/dropdown-menu-CdulmYlU.js +1 -0
- package/dist/ui/assets/es-JYPdzK5t.js +1 -0
- package/dist/ui/assets/external-link-BULKsDvk.js +1 -0
- package/dist/ui/assets/eye-SOUMoM2-.js +1 -0
- package/dist/ui/assets/file-text-CxAwK_Ze.js +1 -0
- package/dist/ui/assets/folder-open-BnXDc8BG.js +1 -0
- package/dist/ui/assets/format-CR2WWfql.js +1 -0
- package/dist/ui/assets/gauge-DYmZYnET.js +1 -0
- package/dist/ui/assets/globe-C7sirxEy.js +1 -0
- package/dist/ui/assets/hexagon-BGGuDxI7.js +1 -0
- package/dist/ui/assets/history-vA8Y7XQq.js +1 -0
- package/dist/ui/assets/index-9GZvkGGW.css +2 -0
- package/dist/ui/assets/index-B4lS14UW.js +116 -0
- package/dist/ui/assets/info-CFGdNsZs.js +1 -0
- package/dist/ui/assets/key-DFIqRGXl.js +1 -0
- package/dist/ui/assets/label-CplWBwSz.js +1 -0
- package/dist/ui/assets/loader-circle-BaadtldT.js +1 -0
- package/dist/ui/assets/lock-DUwqtzEo.js +1 -0
- package/dist/ui/assets/pause-BsToEchU.js +1 -0
- package/dist/ui/assets/play-Rmf5Px63.js +1 -0
- package/dist/ui/assets/plus-CqJyiQvM.js +1 -0
- package/dist/ui/assets/progress-CFpWXmru.js +1 -0
- package/dist/ui/assets/refresh-cw-Yf5FGfA5.js +1 -0
- package/dist/ui/assets/save-Diu387yr.js +1 -0
- package/dist/ui/assets/scroll-area-B3bGhGnD.js +1 -0
- package/dist/ui/assets/search-CnhAnemg.js +1 -0
- package/dist/ui/assets/send-CU73wLDC.js +1 -0
- package/dist/ui/assets/settings-OcD7AWkq.js +1 -0
- package/dist/ui/assets/slider-B7ibzqE3.js +14 -0
- package/dist/ui/assets/sparkles-Dnx_Tpre.js +1 -0
- package/dist/ui/assets/square-PyIpnS-W.js +1 -0
- package/dist/ui/assets/switch-CQf9jQKN.js +1 -0
- package/dist/ui/assets/table-CN6cGA9v.js +1 -0
- package/dist/ui/assets/terminal-CNLY74vg.js +1 -0
- package/dist/ui/assets/textarea-CPuZn8Rg.js +1 -0
- package/dist/ui/assets/trash-2-CUqHaFaC.js +1 -0
- package/dist/ui/assets/triangle-alert-vUtWDfZd.js +1 -0
- package/dist/ui/assets/useProviders-77fYN2hY.js +1 -0
- package/dist/ui/assets/vendor-charts-Bu2lyBKP.js +65 -0
- package/dist/ui/assets/vendor-query-DsWPbQdG.js +1 -0
- package/dist/ui/assets/vendor-radix-JY4ncZrD.js +63 -0
- package/dist/ui/assets/vendor-react-CscwQerf.js +1 -0
- package/dist/ui/assets/vendor-router-4QM6Fwg6.js +3 -0
- package/dist/ui/assets/volume-2-B8dkjcEZ.js +1 -0
- package/dist/ui/assets/wifi-DK-RxSqc.js +1 -0
- package/dist/ui/assets/zap-BD57u2UH.js +1 -0
- package/dist/ui/dist/assets/AgentCreateForm-BmRLLGIL.js +1 -0
- package/dist/ui/dist/assets/AgentDetailPage-BOVOgECU.js +1 -0
- package/dist/ui/dist/assets/AgentNewPage-BCMuhksF.js +1 -0
- package/dist/ui/dist/assets/AgentsPage-BYGTwib8.js +10 -0
- package/dist/ui/dist/assets/BridgePage-CEMpmdql.js +1 -0
- package/dist/ui/dist/assets/CanvasPage-Dcmx4S1-.js +33 -0
- package/dist/ui/dist/assets/ChannelsPage-B_PiavjN.js +8 -0
- package/dist/ui/dist/assets/DashboardPage-sSu1NU7V.js +6 -0
- package/dist/ui/dist/assets/LoginPage-D1kejzak.js +1 -0
- package/dist/ui/dist/assets/LogsPage-CaD4OOff.js +1 -0
- package/dist/ui/dist/assets/MeetingPage-C0iKxHOI.js +1 -0
- package/dist/ui/dist/assets/NotFound-CBnwE5nh.js +1 -0
- package/dist/ui/dist/assets/ProjectsPage-DGliWwpu.js +1 -0
- package/dist/ui/dist/assets/ProvidersPage-_O0WMMVK.js +1 -0
- package/dist/ui/dist/assets/RecoverPage-DVESenp8.js +1 -0
- package/dist/ui/dist/assets/SettingsPage-BKCZqIq2.js +9 -0
- package/dist/ui/dist/assets/SetupPage-IjKq_kLj.js +1 -0
- package/dist/ui/dist/assets/WebChatPage-D-zO53Yt.js +16 -0
- package/dist/ui/dist/assets/accordion-_sozXeaB.js +1 -0
- package/dist/ui/dist/assets/activity-BB8JBT7a.js +1 -0
- package/dist/ui/dist/assets/alert-Bgqky__w.js +1 -0
- package/dist/ui/dist/assets/alert-dialog-B12geoBt.js +1 -0
- package/dist/ui/dist/assets/arrow-left-WQsWOWW_.js +1 -0
- package/dist/ui/dist/assets/badge-BY-VUaxL.js +1 -0
- package/dist/ui/dist/assets/calendar-D_GHXR8q.js +1 -0
- package/dist/ui/dist/assets/card-CE_kGxdL.js +1 -0
- package/dist/ui/dist/assets/chevron-down-DLfCQOQA.js +1 -0
- package/dist/ui/dist/assets/chevron-left-5XF9hbEm.js +1 -0
- package/dist/ui/dist/assets/chevron-right-B60x0b2L.js +1 -0
- package/dist/ui/dist/assets/chevron-up-GfewdYph.js +1 -0
- package/dist/ui/dist/assets/circle-DLFOVgkH.js +1 -0
- package/dist/ui/dist/assets/circle-alert-Qf59MV-u.js +1 -0
- package/dist/ui/dist/assets/circle-check-BhwUUu4Z.js +1 -0
- package/dist/ui/dist/assets/circle-minus-BcF7EW2K.js +1 -0
- package/dist/ui/dist/assets/circle-x-C55wB-DP.js +1 -0
- package/dist/ui/dist/assets/cpu-BxFtjoPn.js +1 -0
- package/dist/ui/dist/assets/dialog-CWlGzRqi.js +1 -0
- package/dist/ui/dist/assets/download-DRO1cmbw.js +1 -0
- package/dist/ui/dist/assets/dropdown-menu-CdulmYlU.js +1 -0
- package/dist/ui/dist/assets/es-JYPdzK5t.js +1 -0
- package/dist/ui/dist/assets/external-link-BULKsDvk.js +1 -0
- package/dist/ui/dist/assets/eye-SOUMoM2-.js +1 -0
- package/dist/ui/dist/assets/file-text-CxAwK_Ze.js +1 -0
- package/dist/ui/dist/assets/folder-open-BnXDc8BG.js +1 -0
- package/dist/ui/dist/assets/format-CR2WWfql.js +1 -0
- package/dist/ui/dist/assets/gauge-DYmZYnET.js +1 -0
- package/dist/ui/dist/assets/globe-C7sirxEy.js +1 -0
- package/dist/ui/dist/assets/hexagon-BGGuDxI7.js +1 -0
- package/dist/ui/dist/assets/history-vA8Y7XQq.js +1 -0
- package/dist/ui/dist/assets/index-9GZvkGGW.css +2 -0
- package/dist/ui/dist/assets/index-B4lS14UW.js +116 -0
- package/dist/ui/dist/assets/info-CFGdNsZs.js +1 -0
- package/dist/ui/dist/assets/key-DFIqRGXl.js +1 -0
- package/dist/ui/dist/assets/label-CplWBwSz.js +1 -0
- package/dist/ui/dist/assets/loader-circle-BaadtldT.js +1 -0
- package/dist/ui/dist/assets/lock-DUwqtzEo.js +1 -0
- package/dist/ui/dist/assets/pause-BsToEchU.js +1 -0
- package/dist/ui/dist/assets/play-Rmf5Px63.js +1 -0
- package/dist/ui/dist/assets/plus-CqJyiQvM.js +1 -0
- package/dist/ui/dist/assets/progress-CFpWXmru.js +1 -0
- package/dist/ui/dist/assets/refresh-cw-Yf5FGfA5.js +1 -0
- package/dist/ui/dist/assets/save-Diu387yr.js +1 -0
- package/dist/ui/dist/assets/scroll-area-B3bGhGnD.js +1 -0
- package/dist/ui/dist/assets/search-CnhAnemg.js +1 -0
- package/dist/ui/dist/assets/send-CU73wLDC.js +1 -0
- package/dist/ui/dist/assets/settings-OcD7AWkq.js +1 -0
- package/dist/ui/dist/assets/slider-B7ibzqE3.js +14 -0
- package/dist/ui/dist/assets/sparkles-Dnx_Tpre.js +1 -0
- package/dist/ui/dist/assets/square-PyIpnS-W.js +1 -0
- package/dist/ui/dist/assets/switch-CQf9jQKN.js +1 -0
- package/dist/ui/dist/assets/table-CN6cGA9v.js +1 -0
- package/dist/ui/dist/assets/terminal-CNLY74vg.js +1 -0
- package/dist/ui/dist/assets/textarea-CPuZn8Rg.js +1 -0
- package/dist/ui/dist/assets/trash-2-CUqHaFaC.js +1 -0
- package/dist/ui/dist/assets/triangle-alert-vUtWDfZd.js +1 -0
- package/dist/ui/dist/assets/useProviders-77fYN2hY.js +1 -0
- package/dist/ui/dist/assets/vendor-charts-Bu2lyBKP.js +65 -0
- package/dist/ui/dist/assets/vendor-query-DsWPbQdG.js +1 -0
- package/dist/ui/dist/assets/vendor-radix-JY4ncZrD.js +63 -0
- package/dist/ui/dist/assets/vendor-react-CscwQerf.js +1 -0
- package/dist/ui/dist/assets/vendor-router-4QM6Fwg6.js +3 -0
- package/dist/ui/dist/assets/volume-2-B8dkjcEZ.js +1 -0
- package/dist/ui/dist/assets/wifi-DK-RxSqc.js +1 -0
- package/dist/ui/dist/assets/zap-BD57u2UH.js +1 -0
- package/dist/ui/dist/index.html +30 -25
- package/dist/ui/index.html +30 -25
- package/package.json +3 -5
- package/dist/ui/assets/index-CS7uWSOk.js +0 -344
- package/dist/ui/assets/index-DUIt49UX.css +0 -2
- package/dist/ui/assets/react-C63RN3Ve.js +0 -1
- package/dist/ui/assets/ui-CHpVij2M.css +0 -1
- package/dist/ui/assets/ui-Ra3lIxcJ.js +0 -22
- package/dist/ui/dist/assets/index-CS7uWSOk.js +0 -344
- package/dist/ui/dist/assets/index-DUIt49UX.css +0 -2
- package/dist/ui/dist/assets/react-C63RN3Ve.js +0 -1
- package/dist/ui/dist/assets/ui-CHpVij2M.css +0 -1
- package/dist/ui/dist/assets/ui-Ra3lIxcJ.js +0 -22
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import{n as e,r as t,t as n}from"./rolldown-runtime-S-ySWqyJ.js";var r=n((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=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`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=j(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=j(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P={current:null},ee={transition:null},te={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:ee,ReactCurrentOwner:C};function ne(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,e.act=ne,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ee.transition;ee.transition={};try{e()}finally{ee.transition=t}},e.unstable_act=ne,e.useCallback=function(e,t){return P.current.useCallback(e,t)},e.useContext=function(e){return P.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return P.current.useDeferredValue(e)},e.useEffect=function(e,t){return P.current.useEffect(e,t)},e.useId=function(){return P.current.useId()},e.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return P.current.useMemo(e,t)},e.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},e.useRef=function(e){return P.current.useRef(e)},e.useState=function(e){return P.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return P.current.useTransition()},e.version=`18.3.1`})),i=n(((e,t)=>{t.exports=r()}));function a(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=a(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function o(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=a(e))&&(r&&(r+=` `),r+=t);return r}var s=n(((e,t)=>{t.exports=Array.isArray})),c=n(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),l=n(((e,t)=>{var n=c(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),u=n(((e,t)=>{t.exports=l().Symbol})),d=n(((e,t)=>{var n=u(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),f=n(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),p=n(((e,t)=>{var n=u(),r=d(),i=f(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),m=n(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),h=n(((e,t)=>{var n=p(),r=m(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),g=n(((e,t)=>{var n=s(),r=h(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),_=n(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),v=n(((e,t)=>{var n=p(),r=_(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),y=n(((e,t)=>{t.exports=l()[`__core-js_shared__`]})),b=n(((e,t)=>{var n=y(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),x=n(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),S=n(((e,t)=>{var n=v(),r=b(),i=_(),a=x(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),C=n(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),w=n(((e,t)=>{var n=S(),r=C();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),T=n(((e,t)=>{t.exports=w()(Object,`create`)})),E=n(((e,t)=>{var n=T();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),D=n(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),O=n(((e,t)=>{var n=T(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),k=n(((e,t)=>{var n=T(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),A=n(((e,t)=>{var n=T(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),j=n(((e,t)=>{var n=E(),r=D(),i=O(),a=k(),o=A();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),M=n(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),N=n(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),P=n(((e,t)=>{var n=N();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),ee=n(((e,t)=>{var n=P(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),te=n(((e,t)=>{var n=P();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),ne=n(((e,t)=>{var n=P();function r(e){return n(this.__data__,e)>-1}t.exports=r})),re=n(((e,t)=>{var n=P();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),ie=n(((e,t)=>{var n=M(),r=ee(),i=te(),a=ne(),o=re();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),ae=n(((e,t)=>{t.exports=w()(l(),`Map`)})),oe=n(((e,t)=>{var n=j(),r=ie(),i=ae();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),se=n(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),ce=n(((e,t)=>{var n=se();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),le=n(((e,t)=>{var n=ce();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),ue=n(((e,t)=>{var n=ce();function r(e){return n(this,e).get(e)}t.exports=r})),de=n(((e,t)=>{var n=ce();function r(e){return n(this,e).has(e)}t.exports=r})),fe=n(((e,t)=>{var n=ce();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),pe=n(((e,t)=>{var n=oe(),r=le(),i=ue(),a=de(),o=fe();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),me=n(((e,t)=>{var n=pe(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),he=n(((e,t)=>{var n=me(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),ge=n(((e,t)=>{var n=he(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),_e=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),ve=n(((e,t)=>{var n=u(),r=_e(),i=s(),a=h(),o=1/0,c=n?n.prototype:void 0,l=c?c.toString:void 0;function d(e){if(typeof e==`string`)return e;if(i(e))return r(e,d)+``;if(a(e))return l?l.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=d})),ye=n(((e,t)=>{var n=ve();function r(e){return e==null?``:n(e)}t.exports=r})),be=n(((e,t)=>{var n=s(),r=g(),i=ge(),a=ye();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),xe=n(((e,t)=>{var n=h(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),Se=n(((e,t)=>{var n=be(),r=xe();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),Ce=n(((e,t)=>{var n=Se();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),we=n(((e,t)=>{function n(e){return e==null}t.exports=n})),Te=n(((e,t)=>{var n=p(),r=s(),i=m(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),Ee=n((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=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`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),De=n(((e,t)=>{t.exports=Ee()})),Oe=n(((e,t)=>{var n=p(),r=m(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),ke=n(((e,t)=>{var n=Oe();function r(e){return n(e)&&e!=+e}t.exports=r})),F=t(i()),Ae=t(Te()),je=t(ke()),Me=t(Ce()),Ne=t(Oe()),I=t(we()),Pe=function(e){return e===0?0:e>0?1:-1},Fe=function(e){return(0,Ae.default)(e)&&e.indexOf(`%`)===e.length-1},L=function(e){return(0,Ne.default)(e)&&!(0,je.default)(e)},Ie=function(e){return(0,I.default)(e)},R=function(e){return L(e)||(0,Ae.default)(e)},Le=0,Re=function(e){var t=++Le;return`${e||``}${t}`},ze=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!L(e)&&!(0,Ae.default)(e))return n;var i;if(Fe(e)){var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return(0,je.default)(i)&&(i=n),r&&i>t&&(i=t),i},Be=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},Ve=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},z=function(e,t){return L(e)&&L(t)?function(n){return e+n*(t-e)}:function(){return t}};function He(e,t,n){return!e||!e.length?null:e.find(function(e){return e&&(typeof t==`function`?t(e):(0,Me.default)(e,t))===n})}var Ue=function(e,t){return L(e)&&L(t)?e-t:(0,Ae.default)(e)&&(0,Ae.default)(t)?e.localeCompare(t):e instanceof Date&&t instanceof Date?e.getTime()-t.getTime():String(e).localeCompare(String(t))},We=t(_()),B=t(v()),Ge=De();function Ke(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qe(e)}var Je=[`viewBox`,`children`],Ye=`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`.split(`.`),Xe=[`points`,`pathLength`],Ze={svg:Je,polygon:Xe,polyline:Xe},Qe=`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`.split(`.`),$e=function(e,t){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,F.isValidElement)(e)&&(n=e.props),!(0,We.default)(n))return null;var r={};return Object.keys(n).forEach(function(e){Qe.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})}),r},et=function(e,t,n){return function(r){return e(t,n,r),null}},tt=function(e,t,n){if(!(0,We.default)(e)||qe(e)!==`object`)return null;var r=null;return Object.keys(e).forEach(function(i){var a=e[i];Qe.includes(i)&&typeof a==`function`&&(r||={},r[i]=et(a,t,n))}),r},nt=[`children`],rt=[`children`];function it(e,t){if(e==null)return{};var n=at(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function at(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ot(e){"@babel/helpers - typeof";return ot=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ot(e)}var st={click:`onClick`,mousedown:`onMouseDown`,mouseup:`onMouseUp`,mouseover:`onMouseOver`,mousemove:`onMouseMove`,mouseout:`onMouseOut`,mouseenter:`onMouseEnter`,mouseleave:`onMouseLeave`,touchcancel:`onTouchCancel`,touchend:`onTouchEnd`,touchmove:`onTouchMove`,touchstart:`onTouchStart`,contextmenu:`onContextMenu`,dblclick:`onDoubleClick`},ct=function(e){return typeof e==`string`?e:e?e.displayName||e.name||`Component`:``},lt=null,ut=null,dt=function e(t){if(t===lt&&Array.isArray(ut))return ut;var n=[];return F.Children.forEach(t,function(t){(0,I.default)(t)||((0,Ge.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))}),ut=n,lt=t,n};function ft(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(function(e){return ct(e)}):[ct(t)],dt(e).forEach(function(e){var t=(0,Me.default)(e,`type.displayName`)||(0,Me.default)(e,`type.name`);r.indexOf(t)!==-1&&n.push(e)}),n}function pt(e,t){var n=ft(e,t);return n&&n[0]}var mt=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!L(n)||n<=0||!L(r)||r<=0)},ht=`a.altGlyph.altGlyphDef.altGlyphItem.animate.animateColor.animateMotion.animateTransform.circle.clipPath.color-profile.cursor.defs.desc.ellipse.feBlend.feColormatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.font.font-face.font-face-format.font-face-name.font-face-url.foreignObject.g.glyph.glyphRef.hkern.image.line.lineGradient.marker.mask.metadata.missing-glyph.mpath.path.pattern.polygon.polyline.radialGradient.rect.script.set.stop.style.svg.switch.symbol.text.textPath.title.tref.tspan.use.view.vkern`.split(`.`),gt=function(e){return e&&e.type&&(0,Ae.default)(e.type)&&ht.indexOf(e.type)>=0},_t=function(e){return e&&ot(e)===`object`&&`clipDot`in e},vt=function(e,t,n,r){var i=Ze?.[r]??[];return t.startsWith(`data-`)||!(0,B.default)(e)&&(r&&i.includes(t)||Ye.includes(t))||n&&Qe.includes(t)},V=function(e,t,n){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var r=e;if((0,F.isValidElement)(e)&&(r=e.props),!(0,We.default)(r))return null;var i={};return Object.keys(r).forEach(function(e){vt(r?.[e],e,t,n)&&(i[e]=r[e])}),i},yt=function e(t,n){if(t===n)return!0;var r=F.Children.count(t);if(r!==F.Children.count(n))return!1;if(r===0)return!0;if(r===1)return bt(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!bt(a,o))return!1}return!0},bt=function(e,t){if((0,I.default)(e)&&(0,I.default)(t))return!0;if(!(0,I.default)(e)&&!(0,I.default)(t)){var n=e.props||{},r=n.children,i=it(n,nt),a=t.props||{},o=a.children,s=it(a,rt);return r&&o?Ke(i,s)&&yt(r,o):!r&&!o?Ke(i,s):!1}return!1},xt=function(e,t){var n=[],r={};return dt(e).forEach(function(e,i){if(gt(e))n.push(e);else if(e){var a=ct(e.type),o=t[a]||{},s=o.handler,c=o.once;if(s&&(!c||!r[a])){var l=s(e,a,i);n.push(l),r[a]=!0}}}),n},St=function(e){var t=e&&e.type;return t&&st[t]?st[t]:null},Ct=function(e,t){return dt(t).indexOf(e)},wt=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tt.apply(this,arguments)}function Et(e,t){if(e==null)return{};var n=Dt(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ot(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,s=e.style,c=e.title,l=e.desc,u=Et(e,wt),d=i||{width:n,height:r,x:0,y:0},f=o(`recharts-surface`,a);return F.createElement(`svg`,Tt({},V(u,!0,`svg`),{className:f,width:n,height:r,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`}),F.createElement(`title`,null,c),F.createElement(`desc`,null,l),t)}var kt=[`children`,`className`];function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}function jt(e,t){if(e==null)return{};var n=Mt(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mt(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var H=F.forwardRef(function(e,t){var n=e.children,r=e.className,i=jt(e,kt),a=o(`recharts-layer`,r);return F.createElement(`g`,At({className:a},V(i,!0),{ref:t}),n)}),Nt=!1,Pt=function(e,t){var n=[...arguments].slice(2);if(Nt&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,function(){return n[r++]}))}},Ft=n(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),It=n(((e,t)=>{var n=Ft();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),Lt=n(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),Rt=n(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),zt=n(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),Bt=n(((e,t)=>{var n=Rt(),r=Lt(),i=zt();function a(e){return r(e)?i(e):n(e)}t.exports=a})),Vt=n(((e,t)=>{var n=It(),r=Lt(),i=Bt(),a=ye();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),Ht=n(((e,t)=>{t.exports=Vt()(`toUpperCase`)}));function U(e){return function(){return e}}var Ut=Math.cos,Wt=Math.sin,Gt=Math.sqrt,Kt=Math.PI;Kt/2;var qt=2*Kt,Jt=Math.PI,Yt=2*Jt,Xt=1e-6,Zt=Yt-Xt;function Qt(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function $t(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Qt;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var en=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Qt:$t(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Xt)if(!(Math.abs(u*s-c*l)>Xt)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Jt-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Xt&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Xt||Math.abs(this._y1-l)>Xt)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Yt+Yt),d>Zt?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Xt&&this._append`A${n},${n},0,${+(d>=Jt)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function tn(){return new en}tn.prototype=en.prototype;function nn(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new en(t)}Array.prototype.slice;function rn(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function an(e){this._context=e}an.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 on(e){return new an(e)}function sn(e){return e[0]}function cn(e){return e[1]}function ln(e,t){var n=U(!0),r=null,i=on,a=null,o=nn(s);e=typeof e==`function`?e:e===void 0?sn:U(e),t=typeof t==`function`?t:t===void 0?cn:U(t);function s(s){var c,l=(s=rn(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:U(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:U(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:U(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function un(e,t,n){var r=null,i=U(!0),a=null,o=on,s=null,c=nn(l);e=typeof e==`function`?e:e===void 0?sn:U(+e),t=typeof t==`function`?t:U(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?cn:U(+n);function l(l){var u,d,f,p=(l=rn(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return ln().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:U(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:U(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:U(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:U(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:U(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:U(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:U(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var dn=class{constructor(e,t){this._context=e,this._x=t}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(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function fn(e){return new dn(e,!0)}function pn(e){return new dn(e,!1)}var mn={draw(e,t){let n=Gt(t/Kt);e.moveTo(n,0),e.arc(0,0,n,0,qt)}},hn={draw(e,t){let n=Gt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},gn=Gt(1/3),_n=gn*2,vn={draw(e,t){let n=Gt(t/_n),r=n*gn;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},yn={draw(e,t){let n=Gt(t),r=-n/2;e.rect(r,r,n,n)}},bn=.8908130915292852,xn=Wt(Kt/10)/Wt(7*Kt/10),Sn=Wt(qt/10)*xn,Cn=-Ut(qt/10)*xn,wn={draw(e,t){let n=Gt(t*bn),r=Sn*n,i=Cn*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=qt*t/5,o=Ut(a),s=Wt(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Tn=Gt(3),En={draw(e,t){let n=-Gt(t/(Tn*3));e.moveTo(0,n*2),e.lineTo(-Tn*n,-n),e.lineTo(Tn*n,-n),e.closePath()}},Dn=-.5,On=Gt(3)/2,kn=1/Gt(12),An=(kn/2+1)*3,jn={draw(e,t){let n=Gt(t/An),r=n/2,i=n*kn,a=r,o=n*kn+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Dn*r-On*i,On*r+Dn*i),e.lineTo(Dn*a-On*o,On*a+Dn*o),e.lineTo(Dn*s-On*c,On*s+Dn*c),e.lineTo(Dn*r+On*i,Dn*i-On*r),e.lineTo(Dn*a+On*o,Dn*o-On*a),e.lineTo(Dn*s+On*c,Dn*c-On*s),e.closePath()}};function Mn(e,t){let n=null,r=nn(i);e=typeof e==`function`?e:U(e||mn),t=typeof t==`function`?t:U(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:U(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:U(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function Nn(){}function Pn(e,t,n){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+n)/6)}function Fn(e){this._context=e}Fn.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:Pn(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:Pn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function In(e){return new Fn(e)}function Ln(e){this._context=e}Ln.prototype={areaStart:Nn,areaEnd:Nn,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:Pn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Rn(e){return new Ln(e)}function zn(e){this._context=e}zn.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Pn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bn(e){return new zn(e)}function Vn(e){this._context=e}Vn.prototype={areaStart:Nn,areaEnd:Nn,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 Hn(e){return new Vn(e)}function Un(e){return e<0?-1:1}function Wn(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Un(a)+Un(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Gn(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Kn(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function qn(e){this._context=e}qn.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:Kn(this,this._t0,Gn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Kn(this,Gn(this,n=Wn(this,e,t)),n);break;default:Kn(this,this._t0,n=Wn(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Jn(e){this._context=new Yn(e)}(Jn.prototype=Object.create(qn.prototype)).point=function(e,t){qn.prototype.point.call(this,t,e)};function Yn(e){this._context=e}Yn.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Xn(e){return new qn(e)}function Zn(e){return new Jn(e)}function Qn(e){this._context=e}Qn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=$n(e),i=$n(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $n(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function er(e){return new Qn(e)}function tr(e,t){this._context=e,this._t=t}tr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function nr(e){return new tr(e,.5)}function rr(e){return new tr(e,0)}function ir(e){return new tr(e,1)}function ar(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function or(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function sr(e,t){return e[t]}function cr(e){let t=[];return t.key=e,t}function lr(){var e=U([]),t=or,n=ar,r=sr;function i(i){var a=Array.from(e.apply(this,arguments),cr),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=rn(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:U(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:U(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?or:typeof e==`function`?e:U(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??ar,i):n},i}function ur(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}ar(e,t)}}function dr(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}ar(e,t)}}function fr(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,ar(e,t)}}var pr=t(Ht());function mr(e){"@babel/helpers - typeof";return mr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},mr(e)}var hr=[`type`,`size`,`sizeType`];function gr(){return gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gr.apply(this,arguments)}function _r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_r(Object(n),!0).forEach(function(t){yr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yr(e,t,n){return t=br(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function br(e){var t=xr(e,`string`);return mr(t)==`symbol`?t:t+``}function xr(e,t){if(mr(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mr(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Sr(e,t){if(e==null)return{};var n=Cr(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cr(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var wr={symbolCircle:mn,symbolCross:hn,symbolDiamond:vn,symbolSquare:yn,symbolStar:wn,symbolTriangle:En,symbolWye:jn},Tr=Math.PI/180,Er=function(e){return wr[`symbol${(0,pr.default)(e)}`]||mn},Dr=function(e,t,n){if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*Tr;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**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}},Or=function(e,t){wr[`symbol${(0,pr.default)(e)}`]=t},kr=function(e){var t=e.type,n=t===void 0?`circle`:t,r=e.size,i=r===void 0?64:r,a=e.sizeType,s=a===void 0?`area`:a,c=vr(vr({},Sr(e,hr)),{},{type:n,size:i,sizeType:s}),l=function(){var e=Er(n);return Mn().type(e).size(Dr(i,s,n))()},u=c.className,d=c.cx,f=c.cy,p=V(c,!0);return d===+d&&f===+f&&i===+i?F.createElement(`path`,gr({},p,{className:o(`recharts-symbols`,u),transform:`translate(${d}, ${f})`,d:l()})):null};kr.registerSymbol=Or;function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ar(e)}function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jr.apply(this,arguments)}function Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mr(Object(n),!0).forEach(function(t){Wr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pr(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Gr(r.key),r)}}function Ir(e,t,n){return t&&Fr(e.prototype,t),n&&Fr(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Lr(e,t,n){return t=Vr(t),Rr(e,Br()?Reflect.construct(t,n||[],Vr(e).constructor):t.apply(e,n))}function Rr(e,t){if(t&&(Ar(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return zr(e)}function zr(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Br(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Br=function(){return!!e})()}function Vr(e){return Vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vr(e)}function Hr(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Ur(e,t)}function Ur(e,t){return Ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ur(e,t)}function Wr(e,t,n){return t=Gr(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gr(e){var t=Kr(e,`string`);return Ar(t)==`symbol`?t:t+``}function Kr(e,t){if(Ar(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ar(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var qr=32,Jr=function(e){function t(){return Pr(this,t),Lr(this,t,arguments)}return Hr(t,e),Ir(t,[{key:`renderIcon`,value:function(e){var t=this.props.inactiveColor,n=qr/2,r=qr/6,i=qr/3,a=e.inactive?t:e.color;if(e.type===`plainline`)return F.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:qr,y2:n,className:`recharts-legend-icon`});if(e.type===`line`)return F.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:a,d:`M0,${n}h${i}
|
|
2
|
+
A${r},${r},0,1,1,${2*i},${n}
|
|
3
|
+
H${qr}M${2*i},${n}
|
|
4
|
+
A${r},${r},0,1,1,${i},${n}`,className:`recharts-legend-icon`});if(e.type===`rect`)return F.createElement(`path`,{stroke:`none`,fill:a,d:`M0,${qr/8}h${qr}v${qr*3/4}h${-qr}z`,className:`recharts-legend-icon`});if(F.isValidElement(e.legendIcon)){var o=Nr({},e);return delete o.legendIcon,F.cloneElement(e.legendIcon,o)}return F.createElement(kr,{fill:a,cx:n,cy:n,size:qr,sizeType:`diameter`,type:e.type})}},{key:`renderItems`,value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,s=t.inactiveColor,c={x:0,y:0,width:qr,height:qr},l={display:i===`horizontal`?`inline-block`:`block`,marginRight:10},u={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return n.map(function(t,n){var i=t.formatter||a,d=o(Wr(Wr({"recharts-legend-item":!0},`legend-item-${n}`,!0),`inactive`,t.inactive));if(t.type===`none`)return null;var f=(0,B.default)(t.value)?null:t.value;Pt(!(0,B.default)(t.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var p=t.inactive?s:t.color;return F.createElement(`li`,jr({className:d,style:l,key:`legend-item-${n}`},tt(e.props,t,n)),F.createElement(Ot,{width:r,height:r,viewBox:c,style:u},e.renderIcon(t)),F.createElement(`span`,{className:`recharts-legend-item-text`,style:{color:p}},i?i(f,t,n):f))})}},{key:`render`,value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:n===`horizontal`?r:`left`};return F.createElement(`ul`,{className:`recharts-default-legend`,style:i},this.renderItems())}}])}(F.PureComponent);Wr(Jr,`displayName`,`Legend`),Wr(Jr,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`middle`,inactiveColor:`#ccc`});var Yr=n(((e,t)=>{var n=ie();function r(){this.__data__=new n,this.size=0}t.exports=r})),Xr=n(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Zr=n(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),Qr=n(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),$r=n(((e,t)=>{var n=ie(),r=ae(),i=pe(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),ei=n(((e,t)=>{var n=ie(),r=Yr(),i=Xr(),a=Zr(),o=Qr(),s=$r();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),ti=n(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),ni=n(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),ri=n(((e,t)=>{var n=pe(),r=ti(),i=ni();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),ii=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),ai=n(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),oi=n(((e,t)=>{var n=ri(),r=ii(),i=ai(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),si=n(((e,t)=>{t.exports=l().Uint8Array})),ci=n(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),li=n(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),ui=n(((e,t)=>{var n=u(),r=si(),i=N(),a=oi(),o=ci(),s=li(),c=1,l=2,d=`[object Boolean]`,f=`[object Date]`,p=`[object Error]`,m=`[object Map]`,h=`[object Number]`,g=`[object RegExp]`,_=`[object Set]`,v=`[object String]`,y=`[object Symbol]`,b=`[object ArrayBuffer]`,x=`[object DataView]`,S=n?n.prototype:void 0,C=S?S.valueOf:void 0;function w(e,t,n,u,S,w,T){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case d:case f:case h:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case v:return e==t+``;case m:var E=o;case _:var D=u&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;u|=l,T.set(e,t);var k=a(E(e),E(t),u,S,w,T);return T.delete(e),k;case y:if(C)return C.call(e)==C.call(t)}return!1}t.exports=w})),di=n(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),fi=n(((e,t)=>{var n=di(),r=s();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),pi=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),mi=n(((e,t)=>{function n(){return[]}t.exports=n})),hi=n(((e,t)=>{var n=pi(),r=mi(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),gi=n(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),_i=n(((e,t)=>{var n=p(),r=m(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),vi=n(((e,t)=>{var n=_i(),r=m(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),yi=n(((e,t)=>{function n(){return!1}t.exports=n})),bi=n(((e,t)=>{var n=l(),r=yi(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),xi=n(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),Si=n(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Ci=n(((e,t)=>{var n=p(),r=Si(),i=m(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,h=`[object Object]`,g=`[object RegExp]`,_=`[object Set]`,v=`[object String]`,y=`[object WeakMap]`,b=`[object ArrayBuffer]`,x=`[object DataView]`,S=`[object Float32Array]`,C=`[object Float64Array]`,w=`[object Int8Array]`,T=`[object Int16Array]`,E=`[object Int32Array]`,D=`[object Uint8Array]`,O=`[object Uint8ClampedArray]`,k=`[object Uint16Array]`,A=`[object Uint32Array]`,j={};j[S]=j[C]=j[w]=j[T]=j[E]=j[D]=j[O]=j[k]=j[A]=!0,j[a]=j[o]=j[b]=j[s]=j[x]=j[c]=j[l]=j[u]=j[d]=j[f]=j[h]=j[g]=j[_]=j[v]=j[y]=!1;function M(e){return i(e)&&r(e.length)&&!!j[n(e)]}t.exports=M})),wi=n(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),Ti=n(((e,t)=>{var n=c(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Ei=n(((e,t)=>{var n=Ci(),r=wi(),i=Ti(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Di=n(((e,t)=>{var n=gi(),r=vi(),i=s(),a=bi(),o=xi(),c=Ei(),l=Object.prototype.hasOwnProperty;function u(e,t){var s=i(e),u=!s&&r(e),d=!s&&!u&&a(e),f=!s&&!u&&!d&&c(e),p=s||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||l.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=u})),Oi=n(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),ki=n(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),Ai=n(((e,t)=>{t.exports=ki()(Object.keys,Object)})),ji=n(((e,t)=>{var n=Oi(),r=Ai(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),Mi=n(((e,t)=>{var n=v(),r=Si();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),Ni=n(((e,t)=>{var n=Di(),r=ji(),i=Mi();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Pi=n(((e,t)=>{var n=fi(),r=hi(),i=Ni();function a(e){return n(e,i,r)}t.exports=a})),Fi=n(((e,t)=>{var n=Pi(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),Ii=n(((e,t)=>{t.exports=w()(l(),`DataView`)})),Li=n(((e,t)=>{t.exports=w()(l(),`Promise`)})),Ri=n(((e,t)=>{t.exports=w()(l(),`Set`)})),zi=n(((e,t)=>{t.exports=w()(l(),`WeakMap`)})),Bi=n(((e,t)=>{var n=Ii(),r=ae(),i=Li(),a=Ri(),o=zi(),s=p(),c=x(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,m=`[object WeakMap]`,h=`[object DataView]`,g=c(n),_=c(r),v=c(i),y=c(a),b=c(o),S=s;(n&&S(new n(new ArrayBuffer(1)))!=h||r&&S(new r)!=l||i&&S(i.resolve())!=d||a&&S(new a)!=f||o&&S(new o)!=m)&&(S=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case g:return h;case _:return l;case v:return d;case y:return f;case b:return m}return t}),t.exports=S})),Vi=n(((e,t)=>{var n=ei(),r=oi(),i=ui(),a=Fi(),o=Bi(),c=s(),l=bi(),u=Ei(),d=1,f=`[object Arguments]`,p=`[object Array]`,m=`[object Object]`,h=Object.prototype.hasOwnProperty;function g(e,t,s,g,_,v){var y=c(e),b=c(t),x=y?p:o(e),S=b?p:o(t);x=x==f?m:x,S=S==f?m:S;var C=x==m,w=S==m,T=x==S;if(T&&l(e)){if(!l(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||u(e)?r(e,t,s,g,_,v):i(e,t,x,s,g,_,v);if(!(s&d)){var E=C&&h.call(e,`__wrapped__`),D=w&&h.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,s,g,v)}}return T?(v||=new n,a(e,t,s,g,_,v)):!1}t.exports=g})),Hi=n(((e,t)=>{var n=Vi(),r=m();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),Ui=n(((e,t)=>{var n=ei(),r=Hi(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),Wi=n(((e,t)=>{var n=_();function r(e){return e===e&&!n(e)}t.exports=r})),Gi=n(((e,t)=>{var n=Wi(),r=Ni();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),Ki=n(((e,t)=>{function n(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),qi=n(((e,t)=>{var n=Ui(),r=Gi(),i=Ki();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),Ji=n(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),Yi=n(((e,t)=>{var n=be(),r=vi(),i=s(),a=xi(),o=Si(),c=xe();function l(e,t,s){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=c(t[l]);if(!(d=e!=null&&s(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=l})),Xi=n(((e,t)=>{var n=Ji(),r=Yi();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Zi=n(((e,t)=>{var n=Hi(),r=Ce(),i=Xi(),a=g(),o=Wi(),s=Ki(),c=xe(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),Qi=n(((e,t)=>{function n(e){return e}t.exports=n})),$i=n(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),ea=n(((e,t)=>{var n=Se();function r(e){return function(t){return n(t,e)}}t.exports=r})),ta=n(((e,t)=>{var n=$i(),r=ea(),i=g(),a=xe();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),na=n(((e,t)=>{var n=qi(),r=Zi(),i=Qi(),a=s(),o=ta();function c(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=c})),ra=n(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),ia=n(((e,t)=>{function n(e){return e!==e}t.exports=n})),aa=n(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),oa=n(((e,t)=>{var n=ra(),r=ia(),i=aa();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),sa=n(((e,t)=>{var n=oa();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),ca=n(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),la=n(((e,t)=>{function n(){}t.exports=n})),ua=n(((e,t)=>{var n=Ri(),r=la(),i=li();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),da=n(((e,t)=>{var n=ri(),r=sa(),i=ca(),a=ai(),o=ua(),s=li(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),fa=t(n(((e,t)=>{var n=na(),r=da();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i}))());function pa(e,t,n){return t===!0?(0,fa.default)(e,n):(0,B.default)(t)?(0,fa.default)(e,t):e}function ma(e){"@babel/helpers - typeof";return ma=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ma(e)}var ha=[`ref`];function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ga(Object(n),!0).forEach(function(t){Oa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function va(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ka(r.key),r)}}function ba(e,t,n){return t&&ya(e.prototype,t),n&&ya(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function xa(e,t,n){return t=Ta(t),Sa(e,wa()?Reflect.construct(t,n||[],Ta(e).constructor):t.apply(e,n))}function Sa(e,t){if(t&&(ma(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Ca(e)}function Ca(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function wa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wa=function(){return!!e})()}function Ta(e){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ta(e)}function Ea(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Da(e,t)}function Da(e,t){return Da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Da(e,t)}function Oa(e,t,n){return t=ka(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ka(e){var t=Aa(e,`string`);return ma(t)==`symbol`?t:t+``}function Aa(e,t){if(ma(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ma(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ja(e,t){if(e==null)return{};var n=Ma(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ma(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Na(e){return e.value}function Pa(e,t){if(F.isValidElement(e))return F.cloneElement(e,t);if(typeof e==`function`)return F.createElement(e,t);t.ref;var n=ja(t,ha);return F.createElement(Jr,n)}var Fa=1,Ia=function(e){function t(){var e;va(this,t);var n=[...arguments];return e=xa(this,t,[].concat(n)),Oa(e,`lastBoundingBox`,{width:-1,height:-1}),e}return Ea(t,e),ba(t,[{key:`componentDidMount`,value:function(){this.updateBBox()}},{key:`componentDidUpdate`,value:function(){this.updateBBox()}},{key:`getBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:`updateBBox`,value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>Fa||Math.abs(t.height-this.lastBoundingBox.height)>Fa)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:`getBBoxSnapshot`,value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?_a({},this.lastBoundingBox):{width:0,height:0}}},{key:`getDefaultPosition`,value:function(e){var t=this.props,n=t.layout,r=t.align,i=t.verticalAlign,a=t.margin,o=t.chartWidth,s=t.chartHeight,c,l;if(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))if(r===`center`&&n===`vertical`){var u=this.getBBoxSnapshot();c={left:((o||0)-u.width)/2}}else c=r===`right`?{right:a&&a.right||0}:{left:a&&a.left||0};if(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))if(i===`middle`){var d=this.getBBoxSnapshot();l={top:((s||0)-d.height)/2}}else l=i===`bottom`?{bottom:a&&a.bottom||0}:{top:a&&a.top||0};return _a(_a({},c),l)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,o=t.payloadUniqBy,s=t.payload,c=_a(_a({position:`absolute`,width:r||`auto`,height:i||`auto`},this.getDefaultPosition(a)),a);return F.createElement(`div`,{className:`recharts-legend-wrapper`,style:c,ref:function(t){e.wrapperNode=t}},Pa(n,_a(_a({},this.props),{},{payload:pa(s,o,Na)})))}}],[{key:`getWithHeight`,value:function(e,t){var n=_a(_a({},this.defaultProps),e.props).layout;return n===`vertical`&&L(e.props.height)?{height:e.props.height}:n===`horizontal`?{width:e.props.width||t}:null}}])}(F.PureComponent);Oa(Ia,`displayName`,`Legend`),Oa(Ia,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`bottom`});var La=n(((e,t)=>{var n=u(),r=vi(),i=s(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),Ra=n(((e,t)=>{var n=di(),r=La();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),za=n(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),Ba=n(((e,t)=>{t.exports=za()()})),Va=n(((e,t)=>{var n=Ba(),r=Ni();function i(e,t){return e&&n(e,t,r)}t.exports=i})),Ha=n(((e,t)=>{var n=Mi();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),Ua=n(((e,t)=>{var n=Va();t.exports=Ha()(n)})),Wa=n(((e,t)=>{var n=Ua(),r=Mi();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),Ga=n(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),Ka=n(((e,t)=>{var n=h();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),qa=n(((e,t)=>{var n=Ka();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),Ja=n(((e,t)=>{var n=_e(),r=Se(),i=na(),a=Wa(),o=Ga(),c=wi(),l=qa(),u=Qi(),d=s();function f(e,t,s){t=t.length?n(t,function(e){return d(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[u];var f=-1;return t=n(t,c(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return l(e,t,s)})}t.exports=f})),Ya=n(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),Xa=n(((e,t)=>{var n=Ya(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),Za=n(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),Qa=n(((e,t)=>{var n=w();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),$a=n(((e,t)=>{var n=Za(),r=Qa(),i=Qi();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),eo=n(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),to=n(((e,t)=>{var n=$a();t.exports=eo()(n)})),no=n(((e,t)=>{var n=Qi(),r=Xa(),i=to();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),ro=n(((e,t)=>{var n=N(),r=Mi(),i=xi(),a=_();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),io=n(((e,t)=>{var n=Ra(),r=Ja(),i=no(),a=ro();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})})),ao=t(me()),oo=t(io());function so(e){"@babel/helpers - typeof";return so=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},so(e)}function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},co.apply(this,arguments)}function lo(e,t){return ho(e)||mo(e,t)||fo(e,t)||uo()}function uo(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fo(e,t){if(e){if(typeof e==`string`)return po(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return po(e,t)}}function po(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mo(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ho(e){if(Array.isArray(e))return e}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?go(Object(n),!0).forEach(function(t){vo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vo(e,t,n){return t=yo(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yo(e){var t=bo(e,`string`);return so(t)==`symbol`?t:t+``}function bo(e,t){if(so(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(so(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xo(e){return Array.isArray(e)&&R(e[0])&&R(e[1])?e.join(` ~ `):e}var So=function(e){var t=e.separator,n=t===void 0?` : `:t,r=e.contentStyle,i=r===void 0?{}:r,a=e.itemStyle,s=a===void 0?{}:a,c=e.labelStyle,l=c===void 0?{}:c,u=e.payload,d=e.formatter,f=e.itemSorter,p=e.wrapperClassName,m=e.labelClassName,h=e.label,g=e.labelFormatter,_=e.accessibilityLayer,v=_===void 0?!1:_,y=function(){if(u&&u.length){var e={padding:0,margin:0},t=(f?(0,oo.default)(u,f):u).map(function(e,t){if(e.type===`none`)return null;var r=_o({display:`block`,paddingTop:4,paddingBottom:4,color:e.color||`#000`},s),i=e.formatter||d||xo,a=e.value,o=e.name,c=a,l=o;if(i&&c!=null&&l!=null){var f=i(a,o,e,t,u);if(Array.isArray(f)){var p=lo(f,2);c=p[0],l=p[1]}else c=f}return F.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${t}`,style:r},R(l)?F.createElement(`span`,{className:`recharts-tooltip-item-name`},l):null,R(l)?F.createElement(`span`,{className:`recharts-tooltip-item-separator`},n):null,F.createElement(`span`,{className:`recharts-tooltip-item-value`},c),F.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return F.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},t)}return null},b=_o({margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},i),x=_o({margin:0},l),S=!(0,I.default)(h),C=S?h:``,w=o(`recharts-default-tooltip`,p),T=o(`recharts-tooltip-label`,m);S&&g&&u!=null&&(C=g(h,u));var E=v?{role:`status`,"aria-live":`assertive`}:{};return F.createElement(`div`,co({className:w,style:b},E),F.createElement(`p`,{className:T,style:x},F.isValidElement(C)?C:`${C}`),y())};function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Co(e)}function wo(e,t,n){return t=To(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function To(e){var t=Eo(e,`string`);return Co(t)==`symbol`?t:t+``}function Eo(e,t){if(Co(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Co(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Do=`recharts-tooltip-wrapper`,Oo={visibility:`hidden`};function ko(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return o(Do,wo(wo(wo(wo({},`${Do}-right`,L(n)&&t&&L(t.x)&&n>=t.x),`${Do}-left`,L(n)&&t&&L(t.x)&&n<t.x),`${Do}-bottom`,L(r)&&t&&L(t.y)&&r>=t.y),`${Do}-top`,L(r)&&t&&L(t.y)&&r<t.y))}function Ao(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&L(a[r]))return a[r];var u=n[r]-s-i,d=n[r]+i;return t[r]?o[r]?u:d:o[r]?u<c[r]?Math.max(d,c[r]):Math.max(u,c[r]):d+s>c[r]+l?Math.max(u,c[r]):Math.max(d,c[r])}function jo(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function Mo(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,l,u,d;return o.height>0&&o.width>0&&n?(u=Ao({allowEscapeViewBox:t,coordinate:n,key:`x`,offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),d=Ao({allowEscapeViewBox:t,coordinate:n,key:`y`,offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),l=jo({translateX:u,translateY:d,useTranslate3d:s})):l=Oo,{cssProperties:l,cssClasses:ko({translateX:u,translateY:d,coordinate:n})}}function No(e){"@babel/helpers - typeof";return No=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},No(e)}function Po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Po(Object(n),!0).forEach(function(t){Ko(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Io(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,qo(r.key),r)}}function Ro(e,t,n){return t&&Lo(e.prototype,t),n&&Lo(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function zo(e,t,n){return t=Uo(t),Bo(e,Ho()?Reflect.construct(t,n||[],Uo(e).constructor):t.apply(e,n))}function Bo(e,t){if(t&&(No(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Vo(e)}function Vo(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Ho(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ho=function(){return!!e})()}function Uo(e){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uo(e)}function Wo(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Go(e,t)}function Go(e,t){return Go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Go(e,t)}function Ko(e,t,n){return t=qo(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e){var t=Jo(e,`string`);return No(t)==`symbol`?t:t+``}function Jo(e,t){if(No(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(No(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Yo=1,Xo=function(e){function t(){var e;Io(this,t);var n=[...arguments];return e=zo(this,t,[].concat(n)),Ko(e,`state`,{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ko(e,`handleKeyDown`,function(t){t.key===`Escape`&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:e.props.coordinate?.x??0,y:e.props.coordinate?.y??0}})}),e}return Wo(t,e),Ro(t,[{key:`updateBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>Yo||Math.abs(e.height-this.state.lastBoundingBox.height)>Yo)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else (this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:`componentDidMount`,value:function(){document.addEventListener(`keydown`,this.handleKeyDown),this.updateBBox()}},{key:`componentWillUnmount`,value:function(){document.removeEventListener(`keydown`,this.handleKeyDown)}},{key:`componentDidUpdate`,value:function(){this.props.active&&this.updateBBox(),this.state.dismissed&&(this.props.coordinate?.x!==this.state.dismissedAtCoordinate.x||this.props.coordinate?.y!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.children,s=t.coordinate,c=t.hasPayload,l=t.isAnimationActive,u=t.offset,d=t.position,f=t.reverseDirection,p=t.useTranslate3d,m=t.viewBox,h=t.wrapperStyle,g=Mo({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:u,position:d,reverseDirection:f,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:m}),_=g.cssClasses,v=g.cssProperties,y=Fo(Fo({transition:l&&n?`transform ${i}ms ${a}`:void 0},v),{},{pointerEvents:`none`,visibility:!this.state.dismissed&&n&&c?`visible`:`hidden`,position:`absolute`,top:0,left:0},h);return F.createElement(`div`,{tabIndex:-1,className:_,style:y,ref:function(t){e.wrapperNode=t}},o)}}])}(F.PureComponent),Zo={isSsr:function(){return!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)}(),get:function(e){return Zo[e]},set:function(e,t){if(typeof e==`string`)Zo[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(t){Zo[t]=e[t]})}}};function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Qo(e)}function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$o(Object(n),!0).forEach(function(t){ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ts(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,fs(r.key),r)}}function rs(e,t,n){return t&&ns(e.prototype,t),n&&ns(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function is(e,t,n){return t=cs(t),as(e,ss()?Reflect.construct(t,n||[],cs(e).constructor):t.apply(e,n))}function as(e,t){if(t&&(Qo(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return os(e)}function os(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ss(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ss=function(){return!!e})()}function cs(e){return cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cs(e)}function ls(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&us(e,t)}function us(e,t){return us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},us(e,t)}function ds(e,t,n){return t=fs(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fs(e){var t=ps(e,`string`);return Qo(t)==`symbol`?t:t+``}function ps(e,t){if(Qo(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Qo(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ms(e){return e.dataKey}function hs(e,t){return F.isValidElement(e)?F.cloneElement(e,t):typeof e==`function`?F.createElement(e,t):F.createElement(So,t)}var gs=function(e){function t(){return ts(this,t),is(this,t,arguments)}return ls(t,e),rs(t,[{key:`render`,value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.content,s=t.coordinate,c=t.filterNull,l=t.isAnimationActive,u=t.offset,d=t.payload,f=t.payloadUniqBy,p=t.position,m=t.reverseDirection,h=t.useTranslate3d,g=t.viewBox,_=t.wrapperStyle,v=d??[];c&&v.length&&(v=pa(d.filter(function(t){return t.value!=null&&(t.hide!==!0||e.props.includeHidden)}),f,ms));var y=v.length>0;return F.createElement(Xo,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:l,active:n,coordinate:s,hasPayload:y,offset:u,position:p,reverseDirection:m,useTranslate3d:h,viewBox:g,wrapperStyle:_},hs(o,es(es({},this.props),{},{payload:v})))}}])}(F.PureComponent);ds(gs,`displayName`,`Tooltip`),ds(gs,`defaultProps`,{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Zo.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var _s=n(((e,t)=>{var n=l();t.exports=function(){return n.Date.now()}})),vs=n(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),ys=n(((e,t)=>{var n=vs(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),bs=n(((e,t)=>{var n=ys(),r=_(),i=h(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;function u(e){if(typeof e==`number`)return e;if(i(e))return a;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var u=s.test(e);return u||c.test(e)?l(e.slice(2),u?2:8):o.test(e)?a:+e}t.exports=u})),xs=n(((e,t)=>{var n=_(),r=_s(),i=bs(),a=`Expected a function`,o=Math.max,s=Math.min;function c(e,t,c){var l,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(a);t=i(t)||0,n(c)&&(g=!!c.leading,_=`maxWait`in c,d=_?o(i(c.maxWait)||0,t):d,v=`trailing`in c?!!c.trailing:v);function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?s(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=r();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function E(){return p===void 0?f:w(r())}function D(){var e=r(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return D.cancel=T,D.flush=E,D}t.exports=c})),Ss=t(n(((e,t)=>{var n=xs(),r=_(),i=`Expected a function`;function a(e,t,a){var o=!0,s=!0;if(typeof e!=`function`)throw TypeError(i);return r(a)&&(o=`leading`in a?!!a.leading:o,s=`trailing`in a?!!a.trailing:s),n(e,t,{leading:o,maxWait:t,trailing:s})}t.exports=a}))());function Cs(e){"@babel/helpers - typeof";return Cs=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Cs(e)}function ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ws(Object(n),!0).forEach(function(t){Es(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Es(e,t,n){return t=Ds(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ds(e){var t=Os(e,`string`);return Cs(t)==`symbol`?t:t+``}function Os(e,t){if(Cs(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Cs(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ks(e,t){return Ps(e)||Ns(e,t)||js(e,t)||As()}function As(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function js(e,t){if(e){if(typeof e==`string`)return Ms(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ms(e,t)}}function Ms(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ns(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ps(e){if(Array.isArray(e))return e}var Fs=(0,F.forwardRef)(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,s=a===void 0?`100%`:a,c=e.height,l=c===void 0?`100%`:c,u=e.minWidth,d=u===void 0?0:u,f=e.minHeight,p=e.maxHeight,m=e.children,h=e.debounce,g=h===void 0?0:h,_=e.id,v=e.className,y=e.onResize,b=e.style,x=b===void 0?{}:b,S=(0,F.useRef)(null),C=(0,F.useRef)();C.current=y,(0,F.useImperativeHandle)(t,function(){return Object.defineProperty(S.current,`current`,{get:function(){return console.warn(`The usage of ref.current.current is deprecated and will no longer be supported.`),S.current},configurable:!0})});var w=ks((0,F.useState)({containerWidth:i.width,containerHeight:i.height}),2),T=w[0],E=w[1],D=(0,F.useCallback)(function(e,t){E(function(n){var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,F.useEffect)(function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,i=n.height;D(r,i),(t=C.current)==null||t.call(C,r,i)};g>0&&(e=(0,Ss.default)(e,g,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect(),r=n.width,i=n.height;return D(r,i),t.observe(S.current),function(){t.disconnect()}},[D,g]);var O=(0,F.useMemo)(function(){var e=T.containerWidth,t=T.containerHeight;if(e<0||t<0)return null;Pt(Fe(s)||Fe(l),`The width(%s) and height(%s) are both fixed numbers,
|
|
7
|
+
maybe you don't need to use a ResponsiveContainer.`,s,l),Pt(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var r=Fe(s)?e:s,i=Fe(l)?t:l;n&&n>0&&(r?i=r/n:i&&(r=i*n),p&&i>p&&(i=p)),Pt(r>0||i>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
8
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
9
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
10
|
+
height and width.`,r,i,s,l,d,f,n);var a=!Array.isArray(m)&&ct(m.type).endsWith(`Chart`);return F.Children.map(m,function(e){return F.isValidElement(e)?(0,F.cloneElement)(e,Ts({width:r,height:i},a?{style:Ts({height:`100%`,width:`100%`,maxHeight:i,maxWidth:r},e.props.style)}:{})):e})},[n,m,l,p,f,d,T,s]);return F.createElement(`div`,{id:_?`${_}`:void 0,className:o(`recharts-responsive-container`,v),style:Ts(Ts({},x),{},{width:s,height:l,minWidth:d,minHeight:f,maxHeight:p}),ref:S},O)}),Is=function(e){return null};Is.displayName=`Cell`;function Ls(e){"@babel/helpers - typeof";return Ls=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ls(e)}function Rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Rs(Object(n),!0).forEach(function(t){Bs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bs(e,t,n){return t=Vs(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vs(e){var t=Hs(e,`string`);return Ls(t)==`symbol`?t:t+``}function Hs(e,t){if(Ls(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ls(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Us={widthCache:{},cacheCount:0},Ws=2e3,Gs={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},Ks=`recharts_measurement_span`;function qs(e){var t=zs({},e);return Object.keys(t).forEach(function(e){t[e]||delete t[e]}),t}var Js=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Zo.isSsr)return{width:0,height:0};var n=qs(t),r=JSON.stringify({text:e,copyStyle:n});if(Us.widthCache[r])return Us.widthCache[r];try{var i=document.getElementById(Ks);i||(i=document.createElement(`span`),i.setAttribute(`id`,Ks),i.setAttribute(`aria-hidden`,`true`),document.body.appendChild(i));var a=zs(zs({},Gs),n);Object.assign(i.style,a),i.textContent=`${e}`;var o=i.getBoundingClientRect(),s={width:o.width,height:o.height};return Us.widthCache[r]=s,++Us.cacheCount>Ws&&(Us.cacheCount=0,Us.widthCache={}),s}catch{return{width:0,height:0}}},Ys=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Xs(e)}function Zs(e,t){return nc(e)||tc(e,t)||$s(e,t)||Qs()}function Qs(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $s(e,t){if(e){if(typeof e==`string`)return ec(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ec(e,t)}}function ec(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tc(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function nc(e){if(Array.isArray(e))return e}function rc(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,oc(r.key),r)}}function ac(e,t,n){return t&&ic(e.prototype,t),n&&ic(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function oc(e){var t=sc(e,`string`);return Xs(t)==`symbol`?t:t+``}function sc(e,t){if(Xs(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Xs(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var cc=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lc=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uc=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,dc=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,fc={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},pc=Object.keys(fc),mc=`NaN`;function hc(e,t){return e*fc[t]}var gc=function(){function e(t,n){rc(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=``),n!==``&&!uc.test(n)&&(this.num=NaN,this.unit=``),pc.includes(n)&&(this.num=hc(t,n),this.unit=`px`)}return ac(e,[{key:`add`,value:function(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}},{key:`subtract`,value:function(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}},{key:`multiply`,value:function(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}},{key:`divide`,value:function(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}},{key:`toString`,value:function(){return`${this.num}${this.unit}`}},{key:`isNaN`,value:function(){return Number.isNaN(this.num)}}],[{key:`parse`,value:function(t){var n=Zs(dc.exec(t)??[],3),r=n[1],i=n[2];return new e(parseFloat(r),i??``)}}])}();function _c(e){if(e.includes(mc))return mc;for(var t=e;t.includes(`*`)||t.includes(`/`);){var n=Zs(cc.exec(t)??[],4),r=n[1],i=n[2],a=n[3],o=gc.parse(r??``),s=gc.parse(a??``),c=i===`*`?o.multiply(s):o.divide(s);if(c.isNaN())return mc;t=t.replace(cc,c.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var l=Zs(lc.exec(t)??[],4),u=l[1],d=l[2],f=l[3],p=gc.parse(u??``),m=gc.parse(f??``),h=d===`+`?p.add(m):p.subtract(m);if(h.isNaN())return mc;t=t.replace(lc,h.toString())}return t}var vc=/\(([^()]*)\)/;function yc(e){for(var t=e;t.includes(`(`);){var n=Zs(vc.exec(t),2)[1];t=t.replace(vc,_c(n))}return t}function bc(e){var t=e.replace(/\s+/g,``);return t=yc(t),t=_c(t),t}function xc(e){try{return bc(e)}catch{return mc}}function Sc(e){var t=xc(e.slice(5,-1));return t===mc?``:t}var Cc=[`x`,`y`,`lineHeight`,`capHeight`,`scaleToFit`,`textAnchor`,`verticalAnchor`,`fill`],wc=[`dx`,`dy`,`angle`,`className`,`breakAll`];function Tc(){return Tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tc.apply(this,arguments)}function Ec(e,t){if(e==null)return{};var n=Dc(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dc(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Oc(e,t){return Nc(e)||Mc(e,t)||Ac(e,t)||kc()}function kc(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ac(e,t){if(e){if(typeof e==`string`)return jc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jc(e,t)}}function jc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mc(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Nc(e){if(Array.isArray(e))return e}var Pc=/[ \f\n\r\t\v\u2028\u2029]+/,Fc=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var i=[];return(0,I.default)(t)||(i=n?t.toString().split(``):t.toString().split(Pc)),{wordsWithComputedWidth:i.map(function(e){return{word:e,width:Js(e,r).width}}),spaceWidth:n?0:Js(`\xA0`,r).width}}catch{return null}},Ic=function(e,t,n,r,i){var a=e.maxLines,o=e.children,s=e.style,c=e.breakAll,l=L(a),u=o,d=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).reduce(function(e,t){var a=t.word,o=t.width,s=e[e.length-1];if(s&&(r==null||i||s.width+o+n<Number(r)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[])},f=d(t),p=function(e){return e.reduce(function(e,t){return e.width>t.width?e:t})};if(!l)return f;for(var m=`…`,h=function(e){var t=Fc({breakAll:c,style:s,children:u.slice(0,e)+m}).wordsWithComputedWidth,n=d(t);return[n.length>a||p(n).width>Number(r),n]},g=0,_=u.length-1,v=0,y;g<=_&&v<=u.length-1;){var b=Math.floor((g+_)/2),x=Oc(h(b-1),2),S=x[0],C=x[1],w=Oc(h(b),1)[0];if(!S&&!w&&(g=b+1),S&&w&&(_=b-1),!S&&w){y=C;break}v++}return y||f},Lc=function(e){return[{words:(0,I.default)(e)?[]:e.toString().split(Pc)}]},Rc=function(e){var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,a=e.breakAll,o=e.maxLines;if((t||n)&&!Zo.isSsr){var s,c,l=Fc({breakAll:a,children:r,style:i});if(l){var u=l.wordsWithComputedWidth,d=l.spaceWidth;s=u,c=d}else return Lc(r);return Ic({breakAll:a,children:r,maxLines:o,style:i},s,c,t,n)}return Lc(r)},zc=`#808080`,Bc=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.lineHeight,s=a===void 0?`1em`:a,c=e.capHeight,l=c===void 0?`0.71em`:c,u=e.scaleToFit,d=u===void 0?!1:u,f=e.textAnchor,p=f===void 0?`start`:f,m=e.verticalAnchor,h=m===void 0?`end`:m,g=e.fill,_=g===void 0?zc:g,v=Ec(e,Cc),y=(0,F.useMemo)(function(){return Rc({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:d,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,d,v.style,v.width]),b=v.dx,x=v.dy,S=v.angle,C=v.className,w=v.breakAll,T=Ec(v,wc);if(!R(n)||!R(i))return null;var E=n+(L(b)?b:0),D=i+(L(x)?x:0),O;switch(h){case`start`:O=Sc(`calc(${l})`);break;case`middle`:O=Sc(`calc(${(y.length-1)/2} * -${s} + (${l} / 2))`);break;default:O=Sc(`calc(${y.length-1} * -${s})`);break}var k=[];if(d){var A=y[0].width,j=v.width;k.push(`scale(${(L(j)?j/A:1)/A})`)}return S&&k.push(`rotate(${S}, ${E}, ${D})`),k.length&&(T.transform=k.join(` `)),F.createElement(`text`,Tc({},V(T,!0),{x:E,y:D,className:o(`recharts-text`,C),textAnchor:p,fill:_.includes(`url`)?zc:_}),y.map(function(e,t){var n=e.words.join(w?``:` `);return F.createElement(`tspan`,{x:E,dy:t===0?O:s,key:`${n}-${t}`},n)}))};function Vc(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Hc(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Uc(e){let t,n,r;e.length===2?(t=e===Vc||e===Hc?e:Wc,n=e,r=e):(t=Vc,n=(t,n)=>Vc(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Wc(){return 0}function Gc(e){return e===null?NaN:+e}function*Kc(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var qc=Uc(Vc),Jc=qc.right;qc.left,Uc(Gc).center;var Yc=class extends Map{constructor(e,t=$c){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Xc(this,e))}has(e){return super.has(Xc(this,e))}set(e,t){return super.set(Zc(this,e),t)}delete(e){return super.delete(Qc(this,e))}};function Xc({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Zc({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Qc({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function $c(e){return typeof e==`object`&&e?e.valueOf():e}function el(e=Vc){if(e===Vc)return tl;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function tl(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:+(e>t))}var nl=Math.sqrt(50),rl=Math.sqrt(10),il=Math.sqrt(2);function al(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=nl?10:a>=rl?5:a>=il?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?al(e,t,n*2):[s,c,l]}function ol(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?al(t,e,n):al(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function sl(e,t,n){return t=+t,e=+e,n=+n,al(e,t,n)[2]}function cl(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?sl(t,e,n):sl(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function ll(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function ul(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function dl(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?tl:el(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));dl(e,t,u,d,i)}let a=e[t],o=n,s=r;for(fl(e,n,t),i(e[r],a)>0&&fl(e,n,r);o<s;){for(fl(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?fl(e,n,s):(++s,fl(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function fl(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function pl(e,t,n){if(e=Float64Array.from(Kc(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return ul(e);if(t>=1)return ll(e);var r,i=(r-1)*t,a=Math.floor(i),o=ll(dl(e,a).subarray(0,a+1));return o+(ul(e.subarray(a+1))-o)*(i-a)}}function ml(e,t,n=Gc){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function hl(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function gl(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function _l(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}var vl=Symbol(`implicit`);function yl(){var e=new Yc,t=[],n=[],r=vl;function i(i){let a=e.get(i);if(a===void 0){if(r!==vl)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Yc;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return yl(t,n).unknown(r)},gl.apply(i,arguments),i}function bl(){var e=yl().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=hl(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return bl(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},gl.apply(d(),arguments)}function xl(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return xl(t())},e}function Sl(){return xl(bl.apply(null,arguments).paddingInner(1))}function Cl(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wl(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Tl(){}var El=.7,Dl=1/El,Ol=`\\s*([+-]?\\d+)\\s*`,kl=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Al=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,jl=/^#([0-9a-f]{3,8})$/,Ml=RegExp(`^rgb\\(${Ol},${Ol},${Ol}\\)$`),Nl=RegExp(`^rgb\\(${Al},${Al},${Al}\\)$`),Pl=RegExp(`^rgba\\(${Ol},${Ol},${Ol},${kl}\\)$`),Fl=RegExp(`^rgba\\(${Al},${Al},${Al},${kl}\\)$`),Il=RegExp(`^hsl\\(${kl},${Al},${Al}\\)$`),Ll=RegExp(`^hsla\\(${kl},${Al},${Al},${kl}\\)$`),Rl={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};Cl(Tl,Ul,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zl,formatHex:zl,formatHex8:Bl,formatHsl:Vl,formatRgb:Hl,toString:Hl});function zl(){return this.rgb().formatHex()}function Bl(){return this.rgb().formatHex8()}function Vl(){return nu(this).formatHsl()}function Hl(){return this.rgb().formatRgb()}function Ul(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=jl.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Wl(t):n===3?new Jl(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gl(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=Ml.exec(e))?new Jl(t[1],t[2],t[3],1):(t=Nl.exec(e))?new Jl(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Pl.exec(e))?Gl(t[1],t[2],t[3],t[4]):(t=Fl.exec(e))?Gl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Il.exec(e))?tu(t[1],t[2]/100,t[3]/100,1):(t=Ll.exec(e))?tu(t[1],t[2]/100,t[3]/100,t[4]):Rl.hasOwnProperty(e)?Wl(Rl[e]):e===`transparent`?new Jl(NaN,NaN,NaN,0):null}function Wl(e){return new Jl(e>>16&255,e>>8&255,e&255,1)}function Gl(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jl(e,t,n,r)}function Kl(e){return e instanceof Tl||(e=Ul(e)),e?(e=e.rgb(),new Jl(e.r,e.g,e.b,e.opacity)):new Jl}function ql(e,t,n,r){return arguments.length===1?Kl(e):new Jl(e,t,n,r??1)}function Jl(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Cl(Jl,ql,wl(Tl,{brighter(e){return e=e==null?Dl:Dl**+e,new Jl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?El:El**+e,new Jl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jl($l(this.r),$l(this.g),$l(this.b),Ql(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:Yl,formatHex:Yl,formatHex8:Xl,formatRgb:Zl,toString:Zl}));function Yl(){return`#${eu(this.r)}${eu(this.g)}${eu(this.b)}`}function Xl(){return`#${eu(this.r)}${eu(this.g)}${eu(this.b)}${eu((isNaN(this.opacity)?1:this.opacity)*255)}`}function Zl(){let e=Ql(this.opacity);return`${e===1?`rgb(`:`rgba(`}${$l(this.r)}, ${$l(this.g)}, ${$l(this.b)}${e===1?`)`:`, ${e})`}`}function Ql(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $l(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eu(e){return e=$l(e),(e<16?`0`:``)+e.toString(16)}function tu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new iu(e,t,n,r)}function nu(e){if(e instanceof iu)return new iu(e.h,e.s,e.l,e.opacity);if(e instanceof Tl||(e=Ul(e)),!e)return new iu;if(e instanceof iu)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new iu(o,s,c,e.opacity)}function ru(e,t,n,r){return arguments.length===1?nu(e):new iu(e,t,n,r??1)}function iu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Cl(iu,ru,wl(Tl,{brighter(e){return e=e==null?Dl:Dl**+e,new iu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?El:El**+e,new iu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Jl(su(e>=240?e-240:e+120,i,r),su(e,i,r),su(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new iu(au(this.h),ou(this.s),ou(this.l),Ql(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(){let e=Ql(this.opacity);return`${e===1?`hsl(`:`hsla(`}${au(this.h)}, ${ou(this.s)*100}%, ${ou(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function au(e){return e=(e||0)%360,e<0?e+360:e}function ou(e){return Math.max(0,Math.min(1,e||0))}function su(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var cu=e=>()=>e;function lu(e,t){return function(n){return e+n*t}}function uu(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function du(e){return(e=+e)==1?fu:function(t,n){return n-t?uu(t,n,e):cu(isNaN(t)?n:t)}}function fu(e,t){var n=t-e;return n?lu(e,n):cu(isNaN(e)?t:e)}var pu=(function e(t){var n=du(t);function r(e,t){var r=n((e=ql(e)).r,(t=ql(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=fu(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function mu(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function hu(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gu(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=Tu(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function _u(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vu(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function yu(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Tu(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var bu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xu=new RegExp(bu.source,`g`);function Su(e){return function(){return e}}function Cu(e){return function(t){return e(t)+``}}function wu(e,t){var n=bu.lastIndex=xu.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=bu.exec(e))&&(i=xu.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:vu(r,i)})),n=xu.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Cu(c[0].x):Su(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function Tu(e,t){var n=typeof t,r;return t==null||n===`boolean`?cu(t):(n===`number`?vu:n===`string`?(r=Ul(t))?(t=r,pu):wu:t instanceof Ul?pu:t instanceof Date?_u:hu(t)?mu:Array.isArray(t)?gu:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?yu:vu)(e,t)}function Eu(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Du(e,t){t===void 0&&(t=e,e=Tu);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function Ou(e){return function(){return e}}function ku(e){return+e}var Au=[0,1];function ju(e){return e}function Mu(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ou(isNaN(t)?NaN:.5)}function Nu(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Pu(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Mu(i,r),a=n(o,a)):(r=Mu(r,i),a=n(a,o)),function(e){return a(r(e))}}function Fu(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Mu(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=Jc(e,t,1,r)-1;return a[n](i[n](t))}}function Iu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Lu(){var e=Au,t=Au,n=Tu,r,i,a,o=ju,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==ju&&(o=Nu(e[0],e[n-1])),s=n>2?Fu:Pu,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),vu))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,ku),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Eu,u()},d.clamp=function(e){return arguments.length?(o=e?!0:ju,u()):o!==ju},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Ru(){return Lu()(ju,ju)}function zu(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Bu(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Vu(e){return e=Bu(Math.abs(e)),e?e[1]:NaN}function Hu(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Uu(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Wu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gu(e){if(!(t=Wu.exec(e)))throw Error(`invalid format: `+e);var t;return new Ku({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]})}Gu.prototype=Ku.prototype;function Ku(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+``}Ku.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 qu(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Ju;function Yu(e,t){var n=Bu(e,t);if(!n)return Ju=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Ju=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Bu(e,Math.max(0,t+a-1))[0]}function Xu(e,t){var n=Bu(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Zu={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:zu,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)=>Xu(e*100,t),r:Xu,s:Yu,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Qu(e){return e}var $u=Array.prototype.map,ed=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function td(e){var t=e.grouping===void 0||e.thousands===void 0?Qu:Hu($u.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Qu:Uu($u.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Gu(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Zu[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Zu[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=qu(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Ju!==void 0?ed[8+Ju/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Vu(t)/3)))*3,r=10**-n,i=l((e=Gu(e),e.type=`f`,e),{suffix:ed[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var nd,rd,id;ad({thousands:`,`,grouping:[3],currency:[`$`,``]});function ad(e){return nd=td(e),rd=nd.format,id=nd.formatPrefix,nd}function od(e){return Math.max(0,-Vu(Math.abs(e)))}function sd(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vu(t)/3)))*3-Vu(Math.abs(e)))}function cd(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Vu(t)-Vu(e))+1}function ld(e,t,n,r){var i=cl(e,t,n),a;switch(r=Gu(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=sd(i,o))&&(r.precision=a),id(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=cd(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=od(i))&&(r.precision=a-(r.type===`%`)*2);break}return rd(r)}function ud(e){var t=e.domain;return e.ticks=function(e){var n=t();return ol(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return ld(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=sl(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function dd(){var e=Ru();return e.copy=function(){return Iu(e,dd())},gl.apply(e,arguments),ud(e)}function fd(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,ku),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return fd(e).unknown(t)},e=arguments.length?Array.from(e,ku):[0,1],ud(n)}function pd(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function md(e){return Math.log(e)}function hd(e){return Math.exp(e)}function gd(e){return-Math.log(-e)}function _d(e){return-Math.exp(-e)}function vd(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function yd(e){return e===10?vd:e===Math.E?Math.exp:t=>e**+t}function bd(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 xd(e){return(t,n)=>-e(-t,n)}function Sd(e){let t=e(md,hd),n=t.domain,r=10,i,a;function o(){return i=bd(r),a=yd(r),n()[0]<0?(i=xd(i),a=xd(a),e(gd,_d)):e(md,hd),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=ol(o,s,p))}else m=ol(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=Gu(n)).precision==null&&(n.trim=!0),n=rd(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(pd(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function Cd(){let e=Sd(Lu()).domain([1,10]);return e.copy=()=>Iu(e,Cd()).base(e.base()),gl.apply(e,arguments),e}function wd(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Td(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ed(e){var t=1,n=e(wd(t),Td(t));return n.constant=function(n){return arguments.length?e(wd(t=+n),Td(t)):t},ud(n)}function Dd(){var e=Ed(Lu());return e.copy=function(){return Iu(e,Dd()).constant(e.constant())},gl.apply(e,arguments)}function Od(e){return function(t){return t<0?-((-t)**+e):t**+e}}function kd(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ad(e){return e<0?-e*e:e*e}function jd(e){var t=e(ju,ju),n=1;function r(){return n===1?e(ju,ju):n===.5?e(kd,Ad):e(Od(n),Od(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},ud(t)}function Md(){var e=jd(Lu());return e.copy=function(){return Iu(e,Md()).exponent(e.exponent())},gl.apply(e,arguments),e}function Nd(){return Md.apply(null,arguments).exponent(.5)}function Pd(e){return Math.sign(e)*e*e}function Fd(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Id(){var e=Ru(),t=[0,1],n=!1,r;function i(t){var i=Fd(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(Pd(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,ku)).map(Pd)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Id(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},gl.apply(i,arguments),ud(i)}function Ld(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=ml(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[Jc(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(Vc),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return Ld().domain(e).range(t).unknown(r)},gl.apply(a,arguments)}function Rd(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[Jc(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return Rd().domain([e,t]).range(i).unknown(a)},gl.apply(ud(o),arguments)}function zd(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[Jc(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return zd().domain(e).range(t).unknown(n)},gl.apply(i,arguments)}var Bd=new Date,Vd=new Date;function Hd(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>Hd(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(Bd.setTime(+t),Vd.setTime(+r),e(Bd),e(Vd),Math.floor(n(Bd,Vd))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var Ud=Hd(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ud.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Hd(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ud),Ud.range;var Wd=1e3,Gd=Wd*60,Kd=Gd*60,qd=Kd*24,Jd=qd*7,Yd=qd*30,Xd=qd*365,Zd=Hd(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wd)},(e,t)=>(t-e)/Wd,e=>e.getUTCSeconds());Zd.range;var Qd=Hd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wd)},(e,t)=>{e.setTime(+e+t*Gd)},(e,t)=>(t-e)/Gd,e=>e.getMinutes());Qd.range;var $d=Hd(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Gd)},(e,t)=>(t-e)/Gd,e=>e.getUTCMinutes());$d.range;var ef=Hd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wd-e.getMinutes()*Gd)},(e,t)=>{e.setTime(+e+t*Kd)},(e,t)=>(t-e)/Kd,e=>e.getHours());ef.range;var tf=Hd(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Kd)},(e,t)=>(t-e)/Kd,e=>e.getUTCHours());tf.range;var nf=Hd(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Gd)/qd,e=>e.getDate()-1);nf.range;var rf=Hd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qd,e=>e.getUTCDate()-1);rf.range;var af=Hd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qd,e=>Math.floor(e/qd));af.range;function of(e){return Hd(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Gd)/Jd)}var sf=of(0),cf=of(1),lf=of(2),uf=of(3),df=of(4),ff=of(5),pf=of(6);sf.range,cf.range,lf.range,uf.range,df.range,ff.range,pf.range;function mf(e){return Hd(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Jd)}var hf=mf(0),gf=mf(1),_f=mf(2),vf=mf(3),yf=mf(4),bf=mf(5),xf=mf(6);hf.range,gf.range,_f.range,vf.range,yf.range,bf.range,xf.range;var Sf=Hd(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());Sf.range;var Cf=Hd(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());Cf.range;var wf=Hd(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());wf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Hd(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),wf.range;var Tf=Hd(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());Tf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Hd(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),Tf.range;function Ef(e,t,n,r,i,a){let o=[[Zd,1,Wd],[Zd,5,5*Wd],[Zd,15,15*Wd],[Zd,30,30*Wd],[a,1,Gd],[a,5,5*Gd],[a,15,15*Gd],[a,30,30*Gd],[i,1,Kd],[i,3,3*Kd],[i,6,6*Kd],[i,12,12*Kd],[r,1,qd],[r,2,2*qd],[n,1,Jd],[t,1,Yd],[t,3,3*Yd],[e,1,Xd]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=Uc(([,,e])=>e).right(o,i);if(a===o.length)return e.every(cl(t/Xd,n/Xd,r));if(a===0)return Ud.every(Math.max(cl(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[Df,Of]=Ef(Tf,Cf,hf,af,tf,$d),[kf,Af]=Ef(wf,Sf,sf,nf,ef,Qd);function jf(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 Mf(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 Nf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Pf(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Bf(i),u=Vf(i),d=Bf(a),f=Vf(a),p=Bf(o),m=Vf(o),h=Bf(s),g=Vf(s),_=Bf(c),v=Vf(c),y={a:N,A:P,b:ee,B:te,c:null,d:cp,e:cp,f:pp,g:wp,G:Ep,H:lp,I:up,j:dp,L:fp,m:mp,M:hp,p:ne,q:re,Q:Yp,s:Xp,S:gp,u:_p,U:vp,V:bp,w:xp,W:Sp,x:null,X:null,y:Cp,Y:Tp,Z:Dp,"%":Jp},b={a:ie,A:ae,b:oe,B:se,c:null,d:Op,e:Op,f:Np,g:Wp,G:Kp,H:kp,I:Ap,j:jp,L:Mp,m:Pp,M:Fp,p:ce,q:le,Q:Yp,s:Xp,S:Ip,u:Lp,U:Rp,V:Bp,w:Vp,W:Hp,x:null,X:null,y:Up,Y:Gp,Z:qp,"%":Jp},x={a:E,A:D,b:O,B:k,c:A,d:Qf,e:Qf,f:ip,g:Jf,G:qf,H:ep,I:ep,j:$f,L:rp,m:Zf,M:tp,p:T,q:Xf,Q:op,s:sp,S:np,u:Uf,U:Wf,V:Gf,w:Hf,W:Kf,x:j,X:M,y:Jf,Y:qf,Z:Yf,"%":ap};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=Ff[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=Nf(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=Mf(Nf(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?gf.ceil(a):gf(a),a=rf.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=jf(Nf(r.y,0,1)),o=a.getDay(),a=o>4||o===0?cf.ceil(a):cf(a),a=nf.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Mf(Nf(r.y,0,1)).getUTCDay():jf(Nf(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Mf(r)):jf(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in Ff?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function ee(e){return c[e.getMonth()]}function te(e){return s[e.getMonth()]}function ne(e){return i[+(e.getHours()>=12)]}function re(e){return 1+~~(e.getMonth()/3)}function ie(e){return o[e.getUTCDay()]}function ae(e){return a[e.getUTCDay()]}function oe(e){return c[e.getUTCMonth()]}function se(e){return s[e.getUTCMonth()]}function ce(e){return i[+(e.getUTCHours()>=12)]}function le(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var Ff={"-":``,_:` `,0:`0`},If=/^\s*\d+/,Lf=/^%/,Rf=/[\\^$*+?|[\]().{}]/g;function W(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function zf(e){return e.replace(Rf,`\\$&`)}function Bf(e){return RegExp(`^(?:`+e.map(zf).join(`|`)+`)`,`i`)}function Vf(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Hf(e,t,n){var r=If.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Uf(e,t,n){var r=If.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Wf(e,t,n){var r=If.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Gf(e,t,n){var r=If.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Kf(e,t,n){var r=If.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function qf(e,t,n){var r=If.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Jf(e,t,n){var r=If.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Yf(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Xf(e,t,n){var r=If.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Zf(e,t,n){var r=If.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Qf(e,t,n){var r=If.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function $f(e,t,n){var r=If.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ep(e,t,n){var r=If.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function tp(e,t,n){var r=If.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function np(e,t,n){var r=If.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function rp(e,t,n){var r=If.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ip(e,t,n){var r=If.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ap(e,t,n){var r=Lf.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function op(e,t,n){var r=If.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function sp(e,t,n){var r=If.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function cp(e,t){return W(e.getDate(),t,2)}function lp(e,t){return W(e.getHours(),t,2)}function up(e,t){return W(e.getHours()%12||12,t,2)}function dp(e,t){return W(1+nf.count(wf(e),e),t,3)}function fp(e,t){return W(e.getMilliseconds(),t,3)}function pp(e,t){return fp(e,t)+`000`}function mp(e,t){return W(e.getMonth()+1,t,2)}function hp(e,t){return W(e.getMinutes(),t,2)}function gp(e,t){return W(e.getSeconds(),t,2)}function _p(e){var t=e.getDay();return t===0?7:t}function vp(e,t){return W(sf.count(wf(e)-1,e),t,2)}function yp(e){var t=e.getDay();return t>=4||t===0?df(e):df.ceil(e)}function bp(e,t){return e=yp(e),W(df.count(wf(e),e)+(wf(e).getDay()===4),t,2)}function xp(e){return e.getDay()}function Sp(e,t){return W(cf.count(wf(e)-1,e),t,2)}function Cp(e,t){return W(e.getFullYear()%100,t,2)}function wp(e,t){return e=yp(e),W(e.getFullYear()%100,t,2)}function Tp(e,t){return W(e.getFullYear()%1e4,t,4)}function Ep(e,t){var n=e.getDay();return e=n>=4||n===0?df(e):df.ceil(e),W(e.getFullYear()%1e4,t,4)}function Dp(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+W(t/60|0,`0`,2)+W(t%60,`0`,2)}function Op(e,t){return W(e.getUTCDate(),t,2)}function kp(e,t){return W(e.getUTCHours(),t,2)}function Ap(e,t){return W(e.getUTCHours()%12||12,t,2)}function jp(e,t){return W(1+rf.count(Tf(e),e),t,3)}function Mp(e,t){return W(e.getUTCMilliseconds(),t,3)}function Np(e,t){return Mp(e,t)+`000`}function Pp(e,t){return W(e.getUTCMonth()+1,t,2)}function Fp(e,t){return W(e.getUTCMinutes(),t,2)}function Ip(e,t){return W(e.getUTCSeconds(),t,2)}function Lp(e){var t=e.getUTCDay();return t===0?7:t}function Rp(e,t){return W(hf.count(Tf(e)-1,e),t,2)}function zp(e){var t=e.getUTCDay();return t>=4||t===0?yf(e):yf.ceil(e)}function Bp(e,t){return e=zp(e),W(yf.count(Tf(e),e)+(Tf(e).getUTCDay()===4),t,2)}function Vp(e){return e.getUTCDay()}function Hp(e,t){return W(gf.count(Tf(e)-1,e),t,2)}function Up(e,t){return W(e.getUTCFullYear()%100,t,2)}function Wp(e,t){return e=zp(e),W(e.getUTCFullYear()%100,t,2)}function Gp(e,t){return W(e.getUTCFullYear()%1e4,t,4)}function Kp(e,t){var n=e.getUTCDay();return e=n>=4||n===0?yf(e):yf.ceil(e),W(e.getUTCFullYear()%1e4,t,4)}function qp(){return`+0000`}function Jp(){return`%`}function Yp(e){return+e}function Xp(e){return Math.floor(e/1e3)}var Zp,Qp,$p;em({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 em(e){return Zp=Pf(e),Qp=Zp.format,Zp.parse,$p=Zp.utcFormat,Zp.utcParse,Zp}function tm(e){return new Date(e)}function nm(e){return e instanceof Date?+e:+new Date(+e)}function rm(e,t,n,r,i,a,o,s,c,l){var u=Ru(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,nm)):f().map(tm)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(pd(n,e)):u},u.copy=function(){return Iu(u,rm(e,t,n,r,i,a,o,s,c,l))},u}function im(){return gl.apply(rm(kf,Af,wf,Sf,sf,nf,ef,Qd,Zd,Qp).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function am(){return gl.apply(rm(Df,Of,Tf,Cf,hf,rf,tf,$d,Zd,$p).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function om(){var e=0,t=1,n,r,i,a,o=ju,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(Tu),l.rangeRound=u(Eu),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function sm(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function cm(){var e=ud(om()(ju));return e.copy=function(){return sm(e,cm())},_l.apply(e,arguments)}function lm(){var e=Sd(om()).domain([1,10]);return e.copy=function(){return sm(e,lm()).base(e.base())},_l.apply(e,arguments)}function um(){var e=Ed(om());return e.copy=function(){return sm(e,um()).constant(e.constant())},_l.apply(e,arguments)}function dm(){var e=jd(om());return e.copy=function(){return sm(e,dm()).exponent(e.exponent())},_l.apply(e,arguments)}function fm(){return dm.apply(null,arguments).exponent(.5)}function pm(){var e=[],t=ju;function n(n){if(n!=null&&!isNaN(n=+n))return t((Jc(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(Vc),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>pl(e,r/t))},n.copy=function(){return pm(t).domain(e)},_l.apply(n,arguments)}function mm(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=ju,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=Du(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(Tu),p.rangeRound=m(Eu),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function hm(){var e=ud(mm()(ju));return e.copy=function(){return sm(e,hm())},_l.apply(e,arguments)}function gm(){var e=Sd(mm()).domain([.1,1,10]);return e.copy=function(){return sm(e,gm()).base(e.base())},_l.apply(e,arguments)}function _m(){var e=Ed(mm());return e.copy=function(){return sm(e,_m()).constant(e.constant())},_l.apply(e,arguments)}function vm(){var e=jd(mm());return e.copy=function(){return sm(e,vm()).exponent(e.exponent())},_l.apply(e,arguments)}function ym(){return vm.apply(null,arguments).exponent(.5)}var bm=e({scaleBand:()=>bl,scaleDiverging:()=>hm,scaleDivergingLog:()=>gm,scaleDivergingPow:()=>vm,scaleDivergingSqrt:()=>ym,scaleDivergingSymlog:()=>_m,scaleIdentity:()=>fd,scaleImplicit:()=>vl,scaleLinear:()=>dd,scaleLog:()=>Cd,scaleOrdinal:()=>yl,scalePoint:()=>Sl,scalePow:()=>Md,scaleQuantile:()=>Ld,scaleQuantize:()=>Rd,scaleRadial:()=>Id,scaleSequential:()=>cm,scaleSequentialLog:()=>lm,scaleSequentialPow:()=>dm,scaleSequentialQuantile:()=>pm,scaleSequentialSqrt:()=>fm,scaleSequentialSymlog:()=>um,scaleSqrt:()=>Nd,scaleSymlog:()=>Dd,scaleThreshold:()=>zd,scaleTime:()=>im,scaleUtc:()=>am,tickFormat:()=>ld}),xm=n(((e,t)=>{var n=h();function r(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===void 0?s===s&&!n(s):r(s,c)))var c=s,l=o}return l}t.exports=r})),Sm=n(((e,t)=>{function n(e,t){return e>t}t.exports=n})),Cm=n(((e,t)=>{var n=xm(),r=Sm(),i=Qi();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),wm=n(((e,t)=>{function n(e,t){return e<t}t.exports=n})),Tm=n(((e,t)=>{var n=xm(),r=wm(),i=Qi();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),Em=n(((e,t)=>{var n=_e(),r=na(),i=Wa(),a=s();function o(e,t){return(a(e)?n:i)(e,r(t,3))}t.exports=o})),Dm=n(((e,t)=>{var n=Ra(),r=Em();function i(e,t){return n(r(e,t),1)}t.exports=i})),Om=n(((e,t)=>{var n=Hi();function r(e,t){return n(e,t)}t.exports=r})),km=n(((e,t)=>{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,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(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]<t[n]),e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}else if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,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=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0)if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i);if((i=e[r=`LN10`])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i);return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)})),Am=t(Cm()),jm=t(Tm()),Mm=t(Dm()),Nm=t(Om()),G=t(km());function Pm(e){return Rm(e)||Lm(e)||Im(e)||Fm()}function Fm(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Im(e,t){if(e){if(typeof e==`string`)return zm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zm(e,t)}}function Lm(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function Rm(e){if(Array.isArray(e))return zm(e)}function zm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Bm=function(e){return e},Vm={"@@functional/placeholder":!0},Hm=function(e){return e===Vm},Um=function(e){return function t(){return arguments.length===0||arguments.length===1&&Hm(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Wm=function e(t,n){return t===1?n:Um(function(){var r=[...arguments],i=r.filter(function(e){return e!==Vm}).length;return i>=t?n.apply(void 0,r):e(t-i,Um(function(){var e=[...arguments],t=r.map(function(t){return Hm(t)?e.shift():t});return n.apply(void 0,Pm(t).concat(e))}))})},Gm=function(e){return Wm(e.length,e)},Km=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},qm=Gm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)}),Jm=function(){var e=[...arguments];if(!e.length)return Bm;var t=e.reverse(),n=t[0],r=t.slice(1);return function(){return r.reduce(function(e,t){return t(e)},n.apply(void 0,arguments))}},Ym=function(e){return Array.isArray(e)?e.reverse():e.split(``).reverse.join(``)},Xm=function(e){var t=null,n=null;return function(){var r=[...arguments];return t&&r.every(function(e,n){return e===t[n]})?n:(t=r,n=e.apply(void 0,r),n)}};function Zm(e){return e===0?1:Math.floor(new G.default(e).abs().log(10).toNumber())+1}function Qm(e,t,n){for(var r=new G.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var $m={rangeStep:Qm,getDigitCount:Zm,interpolateNumber:Gm(function(e,t,n){var r=+e;return r+n*(+t-r)}),uninterpolateNumber:Gm(function(e,t,n){var r=t-+e;return r||=1/0,(n-e)/r}),uninterpolateTruncation:Gm(function(e,t,n){var r=t-+e;return r||=1/0,Math.max(0,Math.min(1,(n-e)/r))})};function eh(e){return rh(e)||nh(e)||oh(e)||th()}function th(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nh(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function rh(e){if(Array.isArray(e))return sh(e)}function ih(e,t){return lh(e)||ch(e,t)||oh(e,t)||ah()}function ah(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oh(e,t){if(e){if(typeof e==`string`)return sh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sh(e,t)}}function sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ch(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function lh(e){if(Array.isArray(e))return e}function uh(e){var t=ih(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function dh(e,t,n){if(e.lte(0))return new G.default(0);var r=$m.getDigitCount(e.toNumber()),i=new G.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new G.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?s:new G.default(Math.ceil(s))}function fh(e,t,n){var r=1,i=new G.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new G.default(10).pow($m.getDigitCount(e)-1),i=new G.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new G.default(Math.floor(e)))}else e===0?i=new G.default(Math.floor((t-1)/2)):n||(i=new G.default(Math.floor(e)));var o=Math.floor((t-1)/2);return Jm(qm(function(e){return i.add(new G.default(e-o).mul(r)).toNumber()}),Km)(0,t)}function ph(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new G.default(0),tickMin:new G.default(0),tickMax:new G.default(0)};var a=dh(new G.default(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new G.default(0):(o=new G.default(e).add(t).div(2),o=o.sub(new G.default(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new G.default(t).sub(o).div(a).toNumber()),l=s+c+1;return l>n?ph(e,t,n,r,i+1):(l<n&&(c=t>0?c+(n-l):c,s=t>0?s:s+(n-l)),{step:a,tickMin:o.sub(new G.default(s).mul(a)),tickMax:o.add(new G.default(c).mul(a))})}function mh(e){var t=ih(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=ih(uh([n,r]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0){var u=l===1/0?[c].concat(eh(Km(0,i-1).map(function(){return 1/0}))):[].concat(eh(Km(0,i-1).map(function(){return-1/0})),[l]);return n>r?Ym(u):u}if(c===l)return fh(c,i,a);var d=ph(c,l,o,a),f=d.step,p=d.tickMin,m=d.tickMax,h=$m.rangeStep(p,m.add(new G.default(.1).mul(f)),f);return n>r?Ym(h):h}function hh(e,t){var n=ih(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=ih(uh([r,i]),2),s=o[0],c=o[1];if(s===-1/0||c===1/0)return[r,i];if(s===c)return[s];var l=Math.max(t,2),u=dh(new G.default(c).sub(s).div(l-1),a,0),d=[].concat(eh($m.rangeStep(new G.default(s),new G.default(c).sub(new G.default(.99).mul(u)),u)),[c]);return r>i?Ym(d):d}var gh=Xm(mh),_h=Xm(hh),vh=!0,yh=`Invariant failed`;function bh(e,t){if(!e){if(vh)throw Error(yh);var n=typeof t==`function`?t():t,r=n?`${yh}: ${n}`:yh;throw Error(r)}}var xh=[`offset`,`layout`,`width`,`dataKey`,`data`,`dataPointFormatter`,`xAxis`,`yAxis`];function Sh(e){"@babel/helpers - typeof";return Sh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Sh(e)}function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ch.apply(this,arguments)}function wh(e,t){return kh(e)||Oh(e,t)||Eh(e,t)||Th()}function Th(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eh(e,t){if(e){if(typeof e==`string`)return Dh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dh(e,t)}}function Dh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Oh(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kh(e){if(Array.isArray(e))return e}function Ah(e,t){if(e==null)return{};var n=jh(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jh(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Mh(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Nh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Uh(r.key),r)}}function Ph(e,t,n){return t&&Nh(e.prototype,t),n&&Nh(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Fh(e,t,n){return t=zh(t),Ih(e,Rh()?Reflect.construct(t,n||[],zh(e).constructor):t.apply(e,n))}function Ih(e,t){if(t&&(Sh(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Lh(e)}function Lh(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Rh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rh=function(){return!!e})()}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zh(e)}function Bh(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Vh(e,t)}function Vh(e,t){return Vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vh(e,t)}function Hh(e,t,n){return t=Uh(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uh(e){var t=Wh(e,`string`);return Sh(t)==`symbol`?t:t+``}function Wh(e,t){if(Sh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Sh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Gh=function(e){function t(){return Mh(this,t),Fh(this,t,arguments)}return Bh(t,e),Ph(t,[{key:`render`,value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,c=e.yAxis,l=V(Ah(e,xh),!1);this.props.direction===`x`&&s.type!==`number`&&bh(!1);var u=a.map(function(e){var a=o(e,i),u=a.x,d=a.y,f=a.value,p=a.errorVal;if(!p)return null;var m=[],h,g;if(Array.isArray(p)){var _=wh(p,2);h=_[0],g=_[1]}else h=g=p;if(n===`vertical`){var v=s.scale,y=d+t,b=y+r,x=y-r,S=v(f-h),C=v(f+g);m.push({x1:C,y1:b,x2:C,y2:x}),m.push({x1:S,y1:y,x2:C,y2:y}),m.push({x1:S,y1:b,x2:S,y2:x})}else if(n===`horizontal`){var w=c.scale,T=u+t,E=T-r,D=T+r,O=w(f-h),k=w(f+g);m.push({x1:E,y1:k,x2:D,y2:k}),m.push({x1:T,y1:O,x2:T,y2:k}),m.push({x1:E,y1:O,x2:D,y2:O})}return F.createElement(H,Ch({className:`recharts-errorBar`,key:`bar-${m.map(function(e){return`${e.x1}-${e.x2}-${e.y1}-${e.y2}`})}`},l),m.map(function(e){return F.createElement(`line`,Ch({},e,{key:`line-${e.x1}-${e.x2}-${e.y1}-${e.y2}`}))}))});return F.createElement(H,{className:`recharts-errorBars`},u)}}])}(F.Component);Hh(Gh,`defaultProps`,{stroke:`black`,strokeWidth:1.5,width:5,offset:0,layout:`horizontal`}),Hh(Gh,`displayName`,`ErrorBar`);function Kh(e){"@babel/helpers - typeof";return Kh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Kh(e)}function qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qh(Object(n),!0).forEach(function(t){Yh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yh(e,t,n){return t=Xh(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xh(e){var t=Zh(e,`string`);return Kh(t)==`symbol`?t:t+``}function Zh(e,t){if(Kh(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Kh(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Qh=function(e){var t=e.children,n=e.formattedGraphicalItems,r=e.legendWidth,i=e.legendContent,a=pt(t,Ia);if(!a)return null;var o=Ia.defaultProps,s=o===void 0?{}:Jh(Jh({},o),a.props),c=a.props&&a.props.payload?a.props&&a.props.payload:i===`children`?(n||[]).reduce(function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map(function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(n||[]).map(function(e){var t=e.item,n=t.type.defaultProps,r=n===void 0?{}:Jh(Jh({},n),t.props),i=r.dataKey,a=r.name,o=r.legendType;return{inactive:r.hide,dataKey:i,type:s.iconType||o||`square`,color:fg(t),value:a||i,payload:r}});return Jh(Jh(Jh({},s),Ia.getWithHeight(a,r)),{},{payload:c,item:a})};function $h(e){"@babel/helpers - typeof";return $h=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$h(e)}function eg(e){return ig(e)||rg(e)||ng(e)||tg()}function tg(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ng(e,t){if(e){if(typeof e==`string`)return ag(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ag(e,t)}}function rg(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ig(e){if(Array.isArray(e))return ag(e)}function ag(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?og(Object(n),!0).forEach(function(t){sg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sg(e,t,n){return t=cg(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cg(e){var t=lg(e,`string`);return $h(t)==`symbol`?t:t+``}function lg(e,t){if($h(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if($h(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function q(e,t,n){return(0,I.default)(e)||(0,I.default)(t)?n:R(t)?(0,Me.default)(e,t,n):(0,B.default)(t)?t(e):n}function ug(e,t,n,r){var i=(0,Mm.default)(e,function(e){return q(e,t)});if(n===`number`){var a=i.filter(function(e){return L(e)||parseFloat(e)});return a.length?[(0,jm.default)(a),(0,Am.default)(a)]:[1/0,-1/0]}return(r?i.filter(function(e){return!(0,I.default)(e)}):i).map(function(e){return R(e)||e instanceof Date?e:``})}var dg=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=-1,a=t?.length??0;if(a<=1)return 0;if(r&&r.axisType===`angleAxis`&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var o=r.range,s=0;s<a;s++){var c=s>0?n[s-1].coordinate:n[a-1].coordinate,l=n[s].coordinate,u=s>=a-1?n[0].coordinate:n[s+1].coordinate,d=void 0;if(Pe(l-c)!==Pe(u-l)){var f=[];if(Pe(u-l)===Pe(o[1]-o[0])){d=u;var p=l+o[1]-o[0];f[0]=Math.min(p,(p+c)/2),f[1]=Math.max(p,(p+c)/2)}else{d=c;var m=u+o[1]-o[0];f[0]=Math.min(l,(m+l)/2),f[1]=Math.max(l,(m+l)/2)}var h=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){i=n[s].index;break}}else{var g=Math.min(c,u),_=Math.max(c,u);if(e>(g+l)/2&&e<=(_+l)/2){i=n[s].index;break}}}else for(var v=0;v<a;v++)if(v===0&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v>0&&v<a-1&&e>(t[v].coordinate+t[v-1].coordinate)/2&&e<=(t[v].coordinate+t[v+1].coordinate)/2||v===a-1&&e>(t[v].coordinate+t[v-1].coordinate)/2){i=t[v].index;break}return i},fg=function(e){var t,n=e.type.displayName,r=(t=e.type)!=null&&t.defaultProps?K(K({},e.type.defaultProps),e.props):e.props,i=r.stroke,a=r.fill,o;switch(n){case`Line`:o=i;break;case`Area`:case`Radar`:o=i&&i!==`none`?i:a;break;default:o=a;break}return o},pg=function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),s=0,c=o.length;s<c;s++)for(var l=i[o[s]].stackGroups,u=Object.keys(l),d=0,f=u.length;d<f;d++){var p=l[u[d]],m=p.items,h=p.cateAxisId,g=m.filter(function(e){return ct(e.type).indexOf(`Bar`)>=0});if(g&&g.length){var _=g[0].type.defaultProps,v=_===void 0?g[0].props:K(K({},_),g[0].props),y=v.barSize,b=v[h];a[b]||(a[b]=[]);var x=(0,I.default)(y)?t:y;a[b].push({item:g[0],stackList:g.slice(1),barSize:(0,I.default)(x)?void 0:ze(x,n,0)})}}return a},mg=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,a=i===void 0?[]:i,o=e.maxBarSize,s=a.length;if(s<1)return null;var c=ze(t,r,0,!0),l,u=[];if(a[0].barSize===+a[0].barSize){var d=!1,f=r/s,p=a.reduce(function(e,t){return e+t.barSize||0},0);p+=(s-1)*c,p>=r&&(p-=(s-1)*c,c=0),p>=r&&f>0&&(d=!0,f*=.9,p=s*f);var m={offset:((r-p)/2>>0)-c,size:0};l=a.reduce(function(e,t){var n={item:t.item,position:{offset:m.offset+m.size+c,size:d?f:t.barSize}},r=[].concat(eg(e),[n]);return m=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:m})}),r},u)}else{var h=ze(n,r,0,!0);r-2*h-(s-1)*c<=0&&(c=0);var g=(r-2*h-(s-1)*c)/s;g>1&&(g>>=0);var _=o===+o?Math.min(g,o):g;l=a.reduce(function(e,t,n){var r=[].concat(eg(e),[{item:t.item,position:{offset:h+(g+c)*n+(g-_)/2,size:_}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return l},hg=function(e,t,n,r){var i=n.children,a=n.width,o=n.margin,s=Qh({children:i,legendWidth:a-(o.left||0)-(o.right||0)});if(s){var c=r||{},l=c.width,u=c.height,d=s.align,f=s.verticalAlign,p=s.layout;if((p===`vertical`||p===`horizontal`&&f===`middle`)&&d!==`center`&&L(e[d]))return K(K({},e),{},sg({},d,e[d]+(l||0)));if((p===`horizontal`||p===`vertical`&&d===`center`)&&f!==`middle`&&L(e[f]))return K(K({},e),{},sg({},f,e[f]+(u||0)))}return e},gg=function(e,t,n){return(0,I.default)(t)?!0:e===`horizontal`?t===`yAxis`:e===`vertical`||n===`x`?t===`xAxis`:n===`y`?t===`yAxis`:!0},_g=function(e,t,n,r,i){var a=t.props.children,o=ft(a,Gh).filter(function(e){return gg(r,i,e.props.direction)});if(o&&o.length){var s=o.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=q(t,n);if((0,I.default)(r))return e;var i=Array.isArray(r)?[(0,jm.default)(r),(0,Am.default)(r)]:[r,r],a=s.reduce(function(e,n){var r=q(t,n,0),a=i[0]-Math.abs(Array.isArray(r)?r[0]:r),o=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(a,e[0]),Math.max(o,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},vg=function(e,t,n,r,i){var a=t.map(function(t){return _g(e,t,n,i,r)}).filter(function(e){return!(0,I.default)(e)});return a&&a.length?a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},yg=function(e,t,n,r,i){var a=t.map(function(t){var a=t.props.dataKey;return n===`number`&&a&&_g(e,t,a,r)||ug(e,a,n,i)});if(n===`number`)return a.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var o={};return a.reduce(function(e,t){for(var n=0,r=t.length;n<r;n++)o[t[n]]||(o[t[n]]=!0,e.push(t[n]));return e},[])},bg=function(e,t){return e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`},xg=function(e,t,n,r){if(r)return e.map(function(e){return e.coordinate});var i,a,o=e.map(function(e){return e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate});return i||o.push(t),a||o.push(n),o},Sg=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,a=e.type,o=e.range,s=e.realScaleType===`scaleBand`?r.bandwidth()/2:2,c=(t||n)&&a===`category`&&r.bandwidth?r.bandwidth()/s:0;return c=e.axisType===`angleAxis`&&o?.length>=2?Pe(o[0]-o[1])*2*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map(function(e){return{coordinate:r(i?i.indexOf(e):e)+c,value:e,offset:c}}).filter(function(e){return!(0,je.default)(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}}):r.ticks&&!n?r.ticks(e.tickCount).map(function(e){return{coordinate:r(e)+c,value:e,offset:c}}):r.domain().map(function(e,t){return{coordinate:r(e)+c,value:i?i[e]:e,index:t,offset:c}})},Cg=new WeakMap,wg=function(e,t){if(typeof t!=`function`)return e;Cg.has(e)||Cg.set(e,new WeakMap);var n=Cg.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},Tg=function(e,t,n){var r=e.scale,i=e.type,a=e.layout,o=e.axisType;if(r===`auto`)return a===`radial`&&o===`radiusAxis`?{scale:bl(),realScaleType:`band`}:a===`radial`&&o===`angleAxis`?{scale:dd(),realScaleType:`linear`}:i===`category`&&t&&(t.indexOf(`LineChart`)>=0||t.indexOf(`AreaChart`)>=0||t.indexOf(`ComposedChart`)>=0&&!n)?{scale:Sl(),realScaleType:`point`}:i===`category`?{scale:bl(),realScaleType:`band`}:{scale:dd(),realScaleType:`linear`};if((0,Ae.default)(r)){var s=`scale${(0,pr.default)(r)}`;return{scale:(bm[s]||Sl)(),realScaleType:bm[s]?s:`point`}}return(0,B.default)(r)?{scale:r}:{scale:Sl(),realScaleType:`point`}},Eg=1e-4,Dg=function(e){var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-Eg,a=Math.max(r[0],r[1])+Eg,o=e(t[0]),s=e(t[n-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[n-1]])}},Og=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},kg=function(e,t){if(!t||t.length!==2||!L(t[0])||!L(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!L(e[0])||e[0]<n)&&(i[0]=n),(!L(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Ag={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0,o=0;o<t;++o){var s=(0,je.default)(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=i,e[o][n][1]=i+s,i=e[o][n][1]):(e[o][n][0]=a,e[o][n][1]=a+s,a=e[o][n][1])}},expand:ur,none:ar,silhouette:dr,wiggle:fr,positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0;a<t;++a){var o=(0,je.default)(e[a][n][1])?e[a][n][0]:e[a][n][1];o>=0?(e[a][n][0]=i,e[a][n][1]=i+o,i=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}}},jg=function(e,t,n){var r=t.map(function(e){return e.props.dataKey}),i=Ag[n];return lr().keys(r).value(function(e,t){return+q(e,t,0)}).order(or).offset(i)(e)},Mg=function(e,t,n,r,i,a){if(!e)return null;var o=(a?t.reverse():t).reduce(function(e,t){var i,a=(i=t.type)!=null&&i.defaultProps?K(K({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(a.hide)return e;var s=a[n],c=e[s]||{hasStack:!1,stackGroups:{}};if(R(o)){var l=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),c.hasStack=!0,c.stackGroups[o]=l}else c.stackGroups[Re(`_stackId_`)]={numericAxisId:n,cateAxisId:r,items:[t]};return K(K({},e),{},sg({},s,c))},{});return Object.keys(o).reduce(function(t,a){var s=o[a];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,a){var o=s.stackGroups[a];return K(K({},t),{},sg({},a,{numericAxisId:n,cateAxisId:r,items:o.items,stackedData:jg(e,o.items,i)}))},{})),K(K({},t),{},sg({},a,s))},{})},Ng=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,a=t.originalDomain,o=t.allowDecimals,s=n||t.scale;if(s!==`auto`&&s!==`linear`)return null;if(i&&r===`number`&&a&&(a[0]===`auto`||a[1]===`auto`)){var c=e.domain();if(!c.length)return null;var l=gh(c,i,o);return e.domain([(0,jm.default)(l),(0,Am.default)(l)]),{niceTicks:l}}return i&&r===`number`?{niceTicks:_h(e.domain(),i,o)}:null};function Pg(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,I.default)(i[t.dataKey])){var s=He(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var c=q(i,(0,I.default)(o)?t.dataKey:o);return(0,I.default)(c)?null:t.scale(c)}var Fg=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,a=e.entry,o=e.index;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=q(a,t.dataKey,t.domain[o]);return(0,I.default)(s)?null:t.scale(s)-i/2+r},Ig=function(e){var t=e.numericAxis,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},Lg=function(e,t){var n,r=((n=e.type)!=null&&n.defaultProps?K(K({},e.type.defaultProps),e.props):e.props).stackId;if(R(r)){var i=t[r];if(i){var a=i.items.indexOf(e);return a>=0?i.stackedData[a]:null}}return null},Rg=function(e){return e.reduce(function(e,t){return[(0,jm.default)(t.concat([e[0]]).filter(L)),(0,Am.default)(t.concat([e[1]]).filter(L))]},[1/0,-1/0])},zg=function(e,t,n){return Object.keys(e).reduce(function(r,i){var a=e[i].stackedData.reduce(function(e,r){var i=Rg(r.slice(t,n+1));return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(a[0],r[0]),Math.max(a[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},Bg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hg=function(e,t,n){if((0,B.default)(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(L(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Bg.test(e[0])){var i=+Bg.exec(e[0])[1];r[0]=t[0]-i}else (0,B.default)(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(L(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(Vg.test(e[1])){var a=+Vg.exec(e[1])[1];r[1]=t[1]+a}else (0,B.default)(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},Ug=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=(0,oo.default)(t,function(e){return e.coordinate}),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c.coordinate||0)-(l.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},Wg=function(e,t,n){return!e||!e.length||(0,Nm.default)(e,(0,Me.default)(n,`type.defaultProps.domain`))?t:e},Gg=function(e,t){var n=e.type.defaultProps?K(K({},e.type.defaultProps),e.props):e.props,r=n.dataKey,i=n.name,a=n.unit,o=n.formatter,s=n.tooltipType,c=n.chartType,l=n.hide;return K(K({},V(e,!1)),{},{dataKey:r,unit:a,formatter:o,name:i||r,color:fg(e),value:q(t,r),type:s,payload:t,chartType:c,hide:l})};function Kg(e){"@babel/helpers - typeof";return Kg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Kg(e)}function qg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qg(Object(n),!0).forEach(function(t){Yg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yg(e,t,n){return t=Xg(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xg(e){var t=Zg(e,`string`);return Kg(t)==`symbol`?t:t+``}function Zg(e,t){if(Kg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Kg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Qg(e,t){return r_(e)||n_(e,t)||e_(e,t)||$g()}function $g(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e_(e,t){if(e){if(typeof e==`string`)return t_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t_(e,t)}}function t_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n_(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function r_(e){if(Array.isArray(e))return e}var i_=Math.PI/180,a_=function(e){return e*180/Math.PI},J=function(e,t,n,r){return{x:e+Math.cos(-i_*r)*n,y:t+Math.sin(-i_*r)*n}},o_=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},s_=function(e,t,n,r,i){var a=e.width,o=e.height,s=e.startAngle,c=e.endAngle,l=ze(e.cx,a,a/2),u=ze(e.cy,o,o/2),d=o_(a,o,n),f=ze(e.innerRadius,d,0),p=ze(e.outerRadius,d,d*.8);return Object.keys(t).reduce(function(e,n){var a=t[n],o=a.domain,d=a.reversed,m;if((0,I.default)(a.range))r===`angleAxis`?m=[s,c]:r===`radiusAxis`&&(m=[f,p]),d&&(m=[m[1],m[0]]);else{m=a.range;var h=Qg(m,2);s=h[0],c=h[1]}var g=Tg(a,i),_=g.realScaleType,v=g.scale;v.domain(o).range(m),Dg(v);var y=Ng(v,Jg(Jg({},a),{},{realScaleType:_})),b=Jg(Jg(Jg({},a),y),{},{range:m,radius:p,realScaleType:_,scale:v,cx:l,cy:u,innerRadius:f,outerRadius:p,startAngle:s,endAngle:c});return Jg(Jg({},e),{},Yg({},n,b))},{})},c_=function(e,t){var n=e.x,r=e.y,i=t.x,a=t.y;return Math.sqrt((n-i)**2+(r-a)**2)},l_=function(e,t){var n=e.x,r=e.y,i=t.cx,a=t.cy,o=c_({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:a_(c),angleInRadian:c}},u_=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},d_=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},f_=function(e,t){var n=e.x,r=e.y,i=l_({x:n,y:r},t),a=i.radius,o=i.angle,s=t.innerRadius,c=t.outerRadius;if(a<s||a>c)return!1;if(a===0)return!0;var l=u_(t),u=l.startAngle,d=l.endAngle,f=o,p;if(u<=d){for(;f>d;)f-=360;for(;f<u;)f+=360;p=f>=u&&f<=d}else{for(;f>u;)f-=360;for(;f<d;)f+=360;p=f>=d&&f<=u}return p?Jg(Jg({},t),{},{radius:a,angle:d_(f,t)}):null},p_=function(e){return!(0,F.isValidElement)(e)&&!(0,B.default)(e)&&typeof e!=`boolean`?e.className:``};function m_(e){"@babel/helpers - typeof";return m_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},m_(e)}var h_=[`offset`];function g_(e){return b_(e)||y_(e)||v_(e)||__()}function __(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v_(e,t){if(e){if(typeof e==`string`)return x_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x_(e,t)}}function y_(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function b_(e){if(Array.isArray(e))return x_(e)}function x_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S_(e,t){if(e==null)return{};var n=C_(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function C_(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?w_(Object(n),!0).forEach(function(t){E_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E_(e,t,n){return t=D_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D_(e){var t=O_(e,`string`);return m_(t)==`symbol`?t:t+``}function O_(e,t){if(m_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(m_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function k_(){return k_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k_.apply(this,arguments)}var A_=function(e){var t=e.value,n=e.formatter,r=(0,I.default)(e.children)?t:e.children;return(0,B.default)(n)?n(r):r},j_=function(e,t){return Pe(t-e)*Math.min(Math.abs(t-e),360)},M_=function(e,t,n){var r=e.position,i=e.viewBox,a=e.offset,s=e.className,c=i,l=c.cx,u=c.cy,d=c.innerRadius,f=c.outerRadius,p=c.startAngle,m=c.endAngle,h=c.clockWise,g=(d+f)/2,_=j_(p,m),v=_>=0?1:-1,y,b;r===`insideStart`?(y=p+v*a,b=h):r===`insideEnd`?(y=m-v*a,b=!h):r===`end`&&(y=m+v*a,b=h),b=_<=0?b:!b;var x=J(l,u,g,y),S=J(l,u,g,y+(b?1:-1)*359),C=`M${x.x},${x.y}
|
|
20
|
+
A${g},${g},0,1,${+!b},
|
|
21
|
+
${S.x},${S.y}`,w=(0,I.default)(e.id)?Re(`recharts-radial-line-`):e.id;return F.createElement(`text`,k_({},n,{dominantBaseline:`central`,className:o(`recharts-radial-bar-label`,s)}),F.createElement(`defs`,null,F.createElement(`path`,{id:w,d:C})),F.createElement(`textPath`,{xlinkHref:`#${w}`},t))},N_=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,a=i.cx,o=i.cy,s=i.innerRadius,c=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if(r===`outside`){var u=J(a,o,c+n,l),d=u.x;return{x:d,y:u.y,textAnchor:d>=a?`start`:`end`,verticalAnchor:`middle`}}if(r===`center`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`middle`};if(r===`centerTop`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`start`};if(r===`centerBottom`)return{x:a,y:o,textAnchor:`middle`,verticalAnchor:`end`};var f=J(a,o,(s+c)/2,l);return{x:f.x,y:f.y,textAnchor:`middle`,verticalAnchor:`middle`}},P_=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,a=t,o=a.x,s=a.y,c=a.width,l=a.height,u=l>=0?1:-1,d=u*r,f=u>0?`end`:`start`,p=u>0?`start`:`end`,m=c>=0?1:-1,h=m*r,g=m>0?`end`:`start`,_=m>0?`start`:`end`;if(i===`top`)return T_(T_({},{x:o+c/2,y:s-u*r,textAnchor:`middle`,verticalAnchor:f}),n?{height:Math.max(s-n.y,0),width:c}:{});if(i===`bottom`)return T_(T_({},{x:o+c/2,y:s+l+d,textAnchor:`middle`,verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+l),0),width:c}:{});if(i===`left`){var v={x:o-h,y:s+l/2,textAnchor:g,verticalAnchor:`middle`};return T_(T_({},v),n?{width:Math.max(v.x-n.x,0),height:l}:{})}if(i===`right`){var y={x:o+c+h,y:s+l/2,textAnchor:_,verticalAnchor:`middle`};return T_(T_({},y),n?{width:Math.max(n.x+n.width-y.x,0),height:l}:{})}var b=n?{width:c,height:l}:{};return i===`insideLeft`?T_({x:o+h,y:s+l/2,textAnchor:_,verticalAnchor:`middle`},b):i===`insideRight`?T_({x:o+c-h,y:s+l/2,textAnchor:g,verticalAnchor:`middle`},b):i===`insideTop`?T_({x:o+c/2,y:s+d,textAnchor:`middle`,verticalAnchor:p},b):i===`insideBottom`?T_({x:o+c/2,y:s+l-d,textAnchor:`middle`,verticalAnchor:f},b):i===`insideTopLeft`?T_({x:o+h,y:s+d,textAnchor:_,verticalAnchor:p},b):i===`insideTopRight`?T_({x:o+c-h,y:s+d,textAnchor:g,verticalAnchor:p},b):i===`insideBottomLeft`?T_({x:o+h,y:s+l-d,textAnchor:_,verticalAnchor:f},b):i===`insideBottomRight`?T_({x:o+c-h,y:s+l-d,textAnchor:g,verticalAnchor:f},b):(0,We.default)(i)&&(L(i.x)||Fe(i.x))&&(L(i.y)||Fe(i.y))?T_({x:o+ze(i.x,c),y:s+ze(i.y,l),textAnchor:`end`,verticalAnchor:`end`},b):T_({x:o+c/2,y:s+l/2,textAnchor:`middle`,verticalAnchor:`middle`},b)},F_=function(e){return`cx`in e&&L(e.cx)};function I_(e){var t=e.offset,n=t===void 0?5:t,r=S_(e,h_),i=T_({offset:n},r),a=i.viewBox,s=i.position,c=i.value,l=i.children,u=i.content,d=i.className,f=d===void 0?``:d,p=i.textBreakAll;if(!a||(0,I.default)(c)&&(0,I.default)(l)&&!(0,F.isValidElement)(u)&&!(0,B.default)(u))return null;if((0,F.isValidElement)(u))return(0,F.cloneElement)(u,i);var m;if((0,B.default)(u)){if(m=(0,F.createElement)(u,i),(0,F.isValidElement)(m))return m}else m=A_(i);var h=F_(a),g=V(i,!0);if(h&&(s===`insideStart`||s===`insideEnd`||s===`end`))return M_(i,m,g);var _=h?N_(i):P_(i);return F.createElement(Bc,k_({className:o(`recharts-label`,f)},g,_,{breakAll:p}),m)}I_.displayName=`Label`;var L_=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,a=e.endAngle,o=e.r,s=e.radius,c=e.innerRadius,l=e.outerRadius,u=e.x,d=e.y,f=e.top,p=e.left,m=e.width,h=e.height,g=e.clockWise,_=e.labelViewBox;if(_)return _;if(L(m)&&L(h)){if(L(u)&&L(d))return{x:u,y:d,width:m,height:h};if(L(f)&&L(p))return{x:f,y:p,width:m,height:h}}return L(u)&&L(d)?{x:u,y:d,width:0,height:0}:L(t)&&L(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:a||r||0,innerRadius:c||0,outerRadius:l||s||o||0,clockWise:g}:e.viewBox?e.viewBox:{}},R_=function(e,t){return e?e===!0?F.createElement(I_,{key:`label-implicit`,viewBox:t}):R(e)?F.createElement(I_,{key:`label-implicit`,viewBox:t,value:e}):(0,F.isValidElement)(e)?e.type===I_?(0,F.cloneElement)(e,{key:`label-implicit`,viewBox:t}):F.createElement(I_,{key:`label-implicit`,content:e,viewBox:t}):(0,B.default)(e)?F.createElement(I_,{key:`label-implicit`,content:e,viewBox:t}):(0,We.default)(e)?F.createElement(I_,k_({viewBox:t},e,{key:`label-implicit`})):null:null};I_.parseViewBox=L_,I_.renderCallByParent=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=L_(e),a=ft(r,I_).map(function(e,n){return(0,F.cloneElement)(e,{viewBox:t||i,key:`label-${n}`})});return n?[R_(e.label,t||i)].concat(g_(a)):a};var z_=t(n(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n}))());function B_(e){"@babel/helpers - typeof";return B_=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},B_(e)}var V_=[`valueAccessor`],H_=[`data`,`dataKey`,`clockWise`,`id`,`textBreakAll`];function U_(e){return q_(e)||K_(e)||G_(e)||W_()}function W_(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G_(e,t){if(e){if(typeof e==`string`)return J_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J_(e,t)}}function K_(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function q_(e){if(Array.isArray(e))return J_(e)}function J_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y_.apply(this,arguments)}function X_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?X_(Object(n),!0).forEach(function(t){Q_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q_(e,t,n){return t=$_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $_(e){var t=ev(e,`string`);return B_(t)==`symbol`?t:t+``}function ev(e,t){if(B_(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(B_(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function tv(e,t){if(e==null)return{};var n=nv(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nv(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var rv=function(e){return Array.isArray(e.value)?(0,z_.default)(e.value):e.value};function iv(e){var t=e.valueAccessor,n=t===void 0?rv:t,r=tv(e,V_),i=r.data,a=r.dataKey,o=r.clockWise,s=r.id,c=r.textBreakAll,l=tv(r,H_);return!i||!i.length?null:F.createElement(H,{className:`recharts-label-list`},i.map(function(e,t){var r=(0,I.default)(a)?n(e,t):q(e&&e.payload,a),i=(0,I.default)(s)?{}:{id:`${s}-${t}`};return F.createElement(I_,Y_({},V(e,!0),l,i,{parentViewBox:e.parentViewBox,value:r,textBreakAll:c,viewBox:I_.parseViewBox((0,I.default)(o)?e:Z_(Z_({},e),{},{clockWise:o})),key:`label-${t}`,index:t}))}))}iv.displayName=`LabelList`;function av(e,t){return e?e===!0?F.createElement(iv,{key:`labelList-implicit`,data:t}):F.isValidElement(e)||(0,B.default)(e)?F.createElement(iv,{key:`labelList-implicit`,data:t,content:e}):(0,We.default)(e)?F.createElement(iv,Y_({data:t},e,{key:`labelList-implicit`})):null:null}function ov(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=ft(r,iv).map(function(e,n){return(0,F.cloneElement)(e,{data:t,key:`labelList-${n}`})});return n?[av(e.label,t)].concat(U_(i)):i}iv.renderCallByParent=ov;function sv(e){"@babel/helpers - typeof";return sv=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},sv(e)}function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cv.apply(this,arguments)}function lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lv(Object(n),!0).forEach(function(t){dv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dv(e,t,n){return t=fv(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fv(e){var t=pv(e,`string`);return sv(t)==`symbol`?t:t+``}function pv(e,t){if(sv(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(sv(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var mv=function(e,t){return Pe(t-e)*Math.min(Math.abs(t-e),359.999)},hv=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,a=e.sign,o=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(o?1:-1)+r,u=Math.asin(s/l)/i_,d=c?i:i+a*u,f=J(t,n,l,d),p=J(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:J(t,n,l*Math.cos(u*i_),m),theta:u}},gv=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.startAngle,o=e.endAngle,s=mv(a,o),c=a+s,l=J(t,n,i,a),u=J(t,n,i,c),d=`M ${l.x},${l.y}
|
|
23
|
+
A ${i},${i},0,
|
|
24
|
+
${+(Math.abs(s)>180)},${+(a>c)},
|
|
25
|
+
${u.x},${u.y}
|
|
26
|
+
`;if(r>0){var f=J(t,n,r,a),p=J(t,n,r,c);d+=`L ${p.x},${p.y}
|
|
27
|
+
A ${r},${r},0,
|
|
28
|
+
${+(Math.abs(s)>180)},${+(a<=c)},
|
|
29
|
+
${f.x},${f.y} Z`}else d+=`L ${t},${n} Z`;return d},_v=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,o=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=Pe(l-c),d=hv({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,m=d.theta,h=hv({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=h.circleTangency,_=h.lineTangency,v=h.theta,y=s?Math.abs(c-l):Math.abs(c-l)-m-v;if(y<0)return o?`M ${p.x},${p.y}
|
|
30
|
+
a${a},${a},0,0,1,${a*2},0
|
|
31
|
+
a${a},${a},0,0,1,${-a*2},0
|
|
32
|
+
`:gv({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var b=`M ${p.x},${p.y}
|
|
33
|
+
A${a},${a},0,0,${+(u<0)},${f.x},${f.y}
|
|
34
|
+
A${i},${i},0,${+(y>180)},${+(u<0)},${g.x},${g.y}
|
|
35
|
+
A${a},${a},0,0,${+(u<0)},${_.x},${_.y}
|
|
36
|
+
`;if(r>0){var x=hv({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),S=x.circleTangency,C=x.lineTangency,w=x.theta,T=hv({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=T.circleTangency,D=T.lineTangency,O=T.theta,k=s?Math.abs(c-l):Math.abs(c-l)-w-O;if(k<0&&a===0)return`${b}L${t},${n}Z`;b+=`L${D.x},${D.y}
|
|
37
|
+
A${a},${a},0,0,${+(u<0)},${E.x},${E.y}
|
|
38
|
+
A${r},${r},0,${+(k>180)},${+(u>0)},${S.x},${S.y}
|
|
39
|
+
A${a},${a},0,0,${+(u<0)},${C.x},${C.y}Z`}else b+=`L${t},${n}Z`;return b},vv={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},yv=function(e){var t=uv(uv({},vv),e),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,s=t.cornerRadius,c=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,f=t.className;if(a<i||u===d)return null;var p=o(`recharts-sector`,f),m=a-i,h=ze(s,m,0,!0),g=h>0&&Math.abs(u-d)<360?_v({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(h,m/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:d}):gv({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:u,endAngle:d});return F.createElement(`path`,cv({},V(t,!0),{className:p,d:g,role:`img`}))};function bv(e){"@babel/helpers - typeof";return bv=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bv(e)}function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xv.apply(this,arguments)}function Sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sv(Object(n),!0).forEach(function(t){wv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wv(e,t,n){return t=Tv(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tv(e){var t=Ev(e,`string`);return bv(t)==`symbol`?t:t+``}function Ev(e,t){if(bv(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bv(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Dv={curveBasisClosed:Rn,curveBasisOpen:Bn,curveBasis:In,curveBumpX:fn,curveBumpY:pn,curveLinearClosed:Hn,curveLinear:on,curveMonotoneX:Xn,curveMonotoneY:Zn,curveNatural:er,curveStep:nr,curveStepAfter:ir,curveStepBefore:rr},Ov=function(e){return e.x===+e.x&&e.y===+e.y},kv=function(e){return e.x},Av=function(e){return e.y},jv=function(e,t){if((0,B.default)(e))return e;var n=`curve${(0,pr.default)(e)}`;return(n===`curveMonotone`||n===`curveBump`)&&t?Dv[`${n}${t===`vertical`?`Y`:`X`}`]:Dv[n]||on},Mv=function(e){var t=e.type,n=t===void 0?`linear`:t,r=e.points,i=r===void 0?[]:r,a=e.baseLine,o=e.layout,s=e.connectNulls,c=s===void 0?!1:s,l=jv(n,o),u=c?i.filter(function(e){return Ov(e)}):i,d;if(Array.isArray(a)){var f=c?a.filter(function(e){return Ov(e)}):a,p=u.map(function(e,t){return Cv(Cv({},e),{},{base:f[t]})});return d=o===`vertical`?un().y(Av).x1(kv).x0(function(e){return e.base.x}):un().x(kv).y1(Av).y0(function(e){return e.base.y}),d.defined(Ov).curve(l),d(p)}return d=o===`vertical`&&L(a)?un().y(Av).x1(kv).x0(a):L(a)?un().x(kv).y1(Av).y0(a):ln().x(kv).y(Av),d.defined(Ov).curve(l),d(u)},Nv=function(e){var t=e.className,n=e.points,r=e.path,i=e.pathRef;if((!n||!n.length)&&!r)return null;var a=n&&n.length?Mv(e):r;return F.createElement(`path`,xv({},V(e,!1),$e(e),{className:o(`recharts-curve`,t),d:a,ref:i}))},Pv=n(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Fv=n(((e,t)=>{var n=Pv();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Y=t(n(((e,t)=>{t.exports=Fv()()}))()),{getOwnPropertyNames:Iv,getOwnPropertySymbols:Lv}=Object,{hasOwnProperty:Rv}=Object.prototype;function zv(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function Bv(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function Vv(e){return e?.[Symbol.toStringTag]}function Hv(e){return Iv(e).concat(Lv(e))}var Uv=Object.hasOwn||((e,t)=>Rv.call(e,t));function Wv(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Gv=`__v`,Kv=`__o`,qv=`_owner`,{getOwnPropertyDescriptor:Jv,keys:Yv}=Object;function Xv(e,t){return e.byteLength===t.byteLength&&ly(new Uint8Array(e),new Uint8Array(t))}function Zv(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Qv(e,t){return e.byteLength===t.byteLength&&ly(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function $v(e,t){return Wv(e.getTime(),t.getTime())}function ey(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function ty(e,t){return e===t}function ny(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var ry=Wv;function iy(e,t,n){let r=Yv(e),i=r.length;if(Yv(t).length!==i)return!1;for(;i-- >0;)if(!dy(e,t,n,r[i]))return!1;return!0}function ay(e,t,n){let r=Hv(e),i=r.length;if(Hv(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=r[i],!dy(e,t,n,a)||(o=Jv(e,a),s=Jv(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function oy(e,t){return Wv(e.valueOf(),t.valueOf())}function sy(e,t){return e.source===t.source&&e.flags===t.flags}function cy(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function ly(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function uy(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function dy(e,t,n,r){return(r===qv||r===Kv||r===Gv)&&(e.$$typeof||t.$$typeof)?!0:Uv(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var fy=`[object ArrayBuffer]`,py=`[object Arguments]`,my=`[object Boolean]`,hy=`[object DataView]`,gy=`[object Date]`,_y=`[object Error]`,vy=`[object Map]`,yy=`[object Number]`,by=`[object Object]`,xy=`[object RegExp]`,Sy=`[object Set]`,Cy=`[object String]`,wy={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Ty=`[object URL]`,Ey=Object.prototype.toString;function Dy({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`?a(h,g,_):!1;let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);let b=Ey.call(h);if(b===gy)return r(h,g,_);if(b===xy)return u(h,g,_);if(b===vy)return o(h,g,_);if(b===Sy)return d(h,g,_);if(b===by)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===Ty)return p(h,g,_);if(b===_y)return i(h,g,_);if(b===py)return c(h,g,_);if(wy[b])return f(h,g,_);if(b===fy)return e(h,g,_);if(b===hy)return n(h,g,_);if(b===my||b===yy||b===Cy)return l(h,g,_);if(m){let e=m[b];if(!e){let t=Vv(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function Oy({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Xv,areArraysEqual:n?ay:Zv,areDataViewsEqual:Qv,areDatesEqual:$v,areErrorsEqual:ey,areFunctionsEqual:ty,areMapsEqual:n?zv(ny,ay):ny,areNumbersEqual:ry,areObjectsEqual:n?ay:iy,arePrimitiveWrappersEqual:oy,areRegExpsEqual:sy,areSetsEqual:n?zv(cy,ay):cy,areTypedArraysEqual:n?zv(ly,ay):ly,areUrlsEqual:uy,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=Bv(r.areArraysEqual),t=Bv(r.areMapsEqual),n=Bv(r.areObjectsEqual),i=Bv(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:i})}return r}function ky(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function Ay({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}var jy=My();My({strict:!0}),My({circular:!0}),My({circular:!0,strict:!0}),My({createInternalComparator:()=>Wv}),My({strict:!0,createInternalComparator:()=>Wv}),My({circular:!0,createInternalComparator:()=>Wv}),My({circular:!0,createInternalComparator:()=>Wv,strict:!0});function My(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=Dy(Oy(e));return Ay({circular:t,comparator:a,createState:r,equals:n?n(a):ky(a),strict:i})}function Ny(e){typeof requestAnimationFrame<`u`&&requestAnimationFrame(e)}function Py(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1;requestAnimationFrame(function r(i){n<0&&(n=i),i-n>t?(e(i),n=-1):Ny(r)})}function Fy(e){"@babel/helpers - typeof";return Fy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Fy(e)}function Iy(e){return Vy(e)||By(e)||Ry(e)||Ly()}function Ly(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ry(e,t){if(e){if(typeof e==`string`)return zy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zy(e,t)}}function zy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function By(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Vy(e){if(Array.isArray(e))return e}function Hy(){var e={},t=function(){return null},n=!1,r=function r(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var a=Iy(i),o=a[0],s=a.slice(1);if(typeof o==`number`){Py(r.bind(null,s),o);return}r(o),Py(r.bind(null,s));return}Fy(i)===`object`&&(e=i,t(e)),typeof i==`function`&&i()}};return{stop:function(){n=!0},start:function(e){n=!1,r(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Uy(e){"@babel/helpers - typeof";return Uy=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Uy(e)}function Wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Wy(Object(n),!0).forEach(function(t){Ky(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ky(e,t,n){return t=qy(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qy(e){var t=Jy(e,`string`);return Uy(t)===`symbol`?t:String(t)}function Jy(e,t){if(Uy(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Uy(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Yy=function(e,t){return[Object.keys(e),Object.keys(t)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})})},Xy=function(e){return e},Zy=function(e){return e.replace(/([A-Z])/g,function(e){return`-${e.toLowerCase()}`})},Qy=function(e,t){return Object.keys(t).reduce(function(n,r){return Gy(Gy({},n),{},Ky({},r,e(r,t[r])))},{})},$y=function(e,t,n){return e.map(function(e){return`${Zy(e)} ${t}ms ${n}`}).join(`,`)},eb=!1,tb=function(e,t,n,r,i,a,o,s){if(eb&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var c=[n,r,i,a,o,s],l=0;console.warn(t.replace(/%s/g,function(){return c[l++]}))}};function nb(e,t){return ab(e)||ib(e,t)||cb(e,t)||rb()}function rb(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ib(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ab(e){if(Array.isArray(e))return e}function ob(e){return ub(e)||lb(e)||cb(e)||sb()}function sb(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cb(e,t){if(e){if(typeof e==`string`)return db(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return db(e,t)}}function lb(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ub(e){if(Array.isArray(e))return db(e)}function db(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var fb=1e-4,pb=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},mb=function(e,t){return e.map(function(e,n){return e*t**+n}).reduce(function(e,t){return e+t})},hb=function(e,t){return function(n){return mb(pb(e,t),n)}},gb=function(e,t){return function(n){var r=pb(e,t);return mb([].concat(ob(r.map(function(e,t){return e*t}).slice(1)),[0]),n)}},_b=function(){var e=[...arguments],t=e[0],n=e[1],r=e[2],i=e[3];if(e.length===1)switch(e[0]){case`linear`:t=0,n=0,r=1,i=1;break;case`ease`:t=.25,n=.1,r=.25,i=1;break;case`ease-in`:t=.42,n=0,r=1,i=1;break;case`ease-out`:t=.42,n=0,r=.58,i=1;break;case`ease-in-out`:t=0,n=0,r=.58,i=1;break;default:var a=e[0].split(`(`);if(a[0]===`cubic-bezier`&&a[1].split(`)`)[0].split(`,`).length===4){var o=nb(a[1].split(`)`)[0].split(`,`).map(function(e){return parseFloat(e)}),4);t=o[0],n=o[1],r=o[2],i=o[3]}else tb(!1,`[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s`,e)}tb([t,r,n,i].every(function(e){return typeof e==`number`&&e>=0&&e<=1}),`[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s`,e);var s=hb(t,r),c=hb(n,i),l=gb(t,r),u=function(e){return e>1?1:e<0?0:e},d=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var i=s(n)-t,a=l(n);if(Math.abs(i-t)<fb||a<fb)return c(n);n=u(n-i/a)}return c(n)};return d.isStepper=!1,d},vb=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,a=e.dt,o=a===void 0?17:a,s=function(e,t,r){var a=r+(-(e-t)*n-r*i)*o/1e3,s=r*o/1e3+e;return Math.abs(s-t)<fb&&Math.abs(a)<fb?[t,0]:[s,a]};return s.isStepper=!0,s.dt=o,s},yb=function(){var e=[...arguments],t=e[0];if(typeof t==`string`)switch(t){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return _b(t);case`spring`:return vb();default:if(t.split(`(`)[0]===`cubic-bezier`)return _b(t);tb(!1,`[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s`,e)}return typeof t==`function`?t:(tb(!1,`[configEasing]: first argument type should be function or string, instead received %s`,e),null)};function bb(e){"@babel/helpers - typeof";return bb=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bb(e)}function xb(e){return wb(e)||Cb(e)||Mb(e)||Sb()}function Sb(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cb(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function wb(e){if(Array.isArray(e))return Nb(e)}function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Eb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Tb(Object(n),!0).forEach(function(t){Db(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Db(e,t,n){return t=Ob(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ob(e){var t=kb(e,`string`);return bb(t)===`symbol`?t:String(t)}function kb(e,t){if(bb(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bb(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ab(e,t){return Fb(e)||Pb(e,t)||Mb(e,t)||jb()}function jb(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mb(e,t){if(e){if(typeof e==`string`)return Nb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nb(e,t)}}function Nb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pb(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Fb(e){if(Array.isArray(e))return e}var Ib=function(e,t,n){return e+(t-e)*n},Lb=function(e){return e.from!==e.to},Rb=function e(t,n,r){var i=Qy(function(e,n){if(Lb(n)){var r=Ab(t(n.from,n.to,n.velocity),2),i=r[0],a=r[1];return Eb(Eb({},n),{},{from:i,velocity:a})}return n},n);return r<1?Qy(function(e,t){return Lb(t)?Eb(Eb({},t),{},{velocity:Ib(t.velocity,i[e].velocity,r),from:Ib(t.from,i[e].from,r)}):t},n):e(t,i,r-1)},zb=(function(e,t,n,r,i){var a=Yy(e,t),o=a.reduce(function(n,r){return Eb(Eb({},n),{},Db({},r,[e[r],t[r]]))},{}),s=a.reduce(function(n,r){return Eb(Eb({},n),{},Db({},r,{from:e[r],velocity:0,to:t[r]}))},{}),c=-1,l,u,d=function(){return null},f=function(){return Qy(function(e,t){return t.from},s)},p=function(){return!Object.values(s).filter(Lb).length};return d=n.isStepper?function(r){l||=r;var a=(r-l)/n.dt;s=Rb(n,s,a),i(Eb(Eb(Eb({},e),t),f(s))),l=r,p()||(c=requestAnimationFrame(d))}:function(a){u||=a;var s=(a-u)/r,l=Qy(function(e,t){return Ib.apply(void 0,xb(t).concat([n(s)]))},o);if(i(Eb(Eb(Eb({},e),t),l)),s<1)c=requestAnimationFrame(d);else{var f=Qy(function(e,t){return Ib.apply(void 0,xb(t).concat([n(1)]))},o);i(Eb(Eb(Eb({},e),t),f))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}});function Bb(e){"@babel/helpers - typeof";return Bb=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Bb(e)}var Vb=[`children`,`begin`,`duration`,`attributeName`,`easing`,`isActive`,`steps`,`from`,`to`,`canBegin`,`onAnimationEnd`,`shouldReAnimate`,`onAnimationReStart`];function Hb(e,t){if(e==null)return{};var n=Ub(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ub(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Wb(e){return Jb(e)||qb(e)||Kb(e)||Gb()}function Gb(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
45
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kb(e,t){if(e){if(typeof e==`string`)return Yb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yb(e,t)}}function qb(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Jb(e){if(Array.isArray(e))return Yb(e)}function Yb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xb(Object(n),!0).forEach(function(t){Qb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qb(e,t,n){return t=nx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $b(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ex(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,nx(r.key),r)}}function tx(e,t,n){return t&&ex(e.prototype,t),n&&ex(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function nx(e){var t=rx(e,`string`);return Bb(t)===`symbol`?t:String(t)}function rx(e,t){if(Bb(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Bb(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ix(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&ax(e,t)}function ax(e,t){return ax=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ax(e,t)}function ox(e){var t=lx();return function(){var n=ux(e),r;if(t){var i=ux(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return sx(this,r)}}function sx(e,t){if(t&&(Bb(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return cx(e)}function cx(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function lx(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ux(e){return ux=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ux(e)}var dx=function(e){ix(n,e);var t=ox(n);function n(e,r){var i;$b(this,n),i=t.call(this,e,r);var a=i.props,o=a.isActive,s=a.attributeName,c=a.from,l=a.to,u=a.steps,d=a.children,f=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(cx(i)),i.changeStyle=i.changeStyle.bind(cx(i)),!o||f<=0)return i.state={style:{}},typeof d==`function`&&(i.state={style:l}),sx(i);if(u&&u.length)i.state={style:u[0].style};else if(c){if(typeof d==`function`)return i.state={style:c},sx(i);i.state={style:s?Qb({},s,c):c}}else i.state={style:{}};return i}return tx(n,[{key:`componentDidMount`,value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,!(!t||!n)&&this.runAnimation(this.props)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,i=t.attributeName,a=t.shouldReAnimate,o=t.to,s=t.from,c=this.state.style;if(r){if(!n){var l={style:i?Qb({},i,o):o};this.state&&c&&(i&&c[i]!==o||!i&&c!==o)&&this.setState(l);return}if(!(jy(e.to,o)&&e.canBegin&&e.isActive)){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var d=u||a?s:e.to;if(this.state&&c){var f={style:i?Qb({},i,d):d};(i&&c[i]!==d||!i&&c!==d)&&this.setState(f)}this.runAnimation(Zb(Zb({},this.props),{},{from:d,begin:0}))}}}},{key:`componentWillUnmount`,value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&=(this.manager.stop(),null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:`handleStyleChange`,value:function(e){this.changeStyle(e)}},{key:`changeStyle`,value:function(e){this.mounted&&this.setState({style:e})}},{key:`runJSAnimation`,value:function(e){var t=this,n=e.from,r=e.to,i=e.duration,a=e.easing,o=e.begin,s=e.onAnimationEnd,c=e.onAnimationStart,l=zb(n,r,yb(a),i,this.changeStyle);this.manager.start([c,o,function(){t.stopJSAnimation=l()},i,s])}},{key:`runStepAnimation`,value:function(e){var t=this,n=e.steps,r=e.begin,i=e.onAnimationStart,a=n[0],o=a.style,s=a.duration,c=s===void 0?0:s;return this.manager.start([i].concat(Wb(n.reduce(function(e,r,i){if(i===0)return e;var a=r.duration,o=r.easing,s=o===void 0?`ease`:o,c=r.style,l=r.properties,u=r.onAnimationEnd,d=i>0?n[i-1]:r,f=l||Object.keys(c);if(typeof s==`function`||s===`spring`)return[].concat(Wb(e),[t.runJSAnimation.bind(t,{from:d.style,to:c,duration:a,easing:s}),a]);var p=$y(f,a,s),m=Zb(Zb(Zb({},d.style),c),{},{transition:p});return[].concat(Wb(e),[m,a,u]).filter(Xy)},[o,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:`runAnimation`,value:function(e){this.manager||=Hy();var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,a=e.easing,o=e.onAnimationStart,s=e.onAnimationEnd,c=e.steps,l=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),typeof a==`function`||typeof l==`function`||a===`spring`){this.runJSAnimation(e);return}if(c.length>1){this.runStepAnimation(e);return}var d=r?Qb({},r,i):i,f=$y(Object.keys(d),n,a);u.start([o,t,Zb(Zb({},d),{},{transition:f}),n,s])}},{key:`render`,value:function(){var e=this.props,t=e.children;e.begin;var n=e.duration;e.attributeName,e.easing;var r=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=Hb(e,Vb),a=F.Children.count(t),o=this.state.style;if(typeof t==`function`)return t(o);if(!r||a===0||n<=0)return t;var s=function(e){var t=e.props,n=t.style,r=n===void 0?{}:n,a=t.className;return(0,F.cloneElement)(e,Zb(Zb({},i),{},{style:Zb(Zb({},r),o),className:a}))};return a===1?s(F.Children.only(t)):F.createElement(`div`,null,F.Children.map(t,function(e){return s(e)}))}}]),n}(F.PureComponent);dx.displayName=`Animate`,dx.defaultProps={begin:0,duration:1e3,from:``,to:``,attributeName:``,easing:`ease`,isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},dx.propTypes={from:Y.default.oneOfType([Y.default.object,Y.default.string]),to:Y.default.oneOfType([Y.default.object,Y.default.string]),attributeName:Y.default.string,duration:Y.default.number,begin:Y.default.number,easing:Y.default.oneOfType([Y.default.string,Y.default.func]),steps:Y.default.arrayOf(Y.default.shape({duration:Y.default.number.isRequired,style:Y.default.object.isRequired,easing:Y.default.oneOfType([Y.default.oneOf([`ease`,`ease-in`,`ease-out`,`ease-in-out`,`linear`]),Y.default.func]),properties:Y.default.arrayOf(`string`),onAnimationEnd:Y.default.func})),children:Y.default.oneOfType([Y.default.node,Y.default.func]),isActive:Y.default.bool,canBegin:Y.default.bool,onAnimationEnd:Y.default.func,shouldReAnimate:Y.default.bool,onAnimationStart:Y.default.func,onAnimationReStart:Y.default.func};var fx=dx;function px(e){"@babel/helpers - typeof";return px=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},px(e)}function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mx.apply(this,arguments)}function hx(e,t){return bx(e)||yx(e,t)||_x(e,t)||gx()}function gx(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _x(e,t){if(e){if(typeof e==`string`)return vx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vx(e,t)}}function vx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yx(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function bx(e){if(Array.isArray(e))return e}function xx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xx(Object(n),!0).forEach(function(t){Cx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cx(e,t,n){return t=wx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wx(e){var t=Tx(e,`string`);return px(t)==`symbol`?t:t+``}function Tx(e,t){if(px(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(px(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ex=function(e,t,n,r,i){var a=Math.min(Math.abs(n)/2,Math.abs(r)/2),o=r>=0?1:-1,s=n>=0?1:-1,c=+(r>=0&&n>=0||r<0&&n<0),l;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],d=0,f=4;d<f;d++)u[d]=i[d]>a?a:i[d];l=`M${e},${t+o*u[0]}`,u[0]>0&&(l+=`A ${u[0]},${u[0]},0,0,${c},${e+s*u[0]},${t}`),l+=`L ${e+n-s*u[1]},${t}`,u[1]>0&&(l+=`A ${u[1]},${u[1]},0,0,${c},
|
|
47
|
+
${e+n},${t+o*u[1]}`),l+=`L ${e+n},${t+r-o*u[2]}`,u[2]>0&&(l+=`A ${u[2]},${u[2]},0,0,${c},
|
|
48
|
+
${e+n-s*u[2]},${t+r}`),l+=`L ${e+s*u[3]},${t+r}`,u[3]>0&&(l+=`A ${u[3]},${u[3]},0,0,${c},
|
|
49
|
+
${e},${t+r-o*u[3]}`),l+=`Z`}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);l=`M ${e},${t+o*p}
|
|
50
|
+
A ${p},${p},0,0,${c},${e+s*p},${t}
|
|
51
|
+
L ${e+n-s*p},${t}
|
|
52
|
+
A ${p},${p},0,0,${c},${e+n},${t+o*p}
|
|
53
|
+
L ${e+n},${t+r-o*p}
|
|
54
|
+
A ${p},${p},0,0,${c},${e+n-s*p},${t+r}
|
|
55
|
+
L ${e+s*p},${t+r}
|
|
56
|
+
A ${p},${p},0,0,${c},${e},${t+r-o*p} Z`}else l=`M ${e},${t} h ${n} v ${r} h ${-n} Z`;return l},Dx=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,a=t.y,o=t.width,s=t.height;if(Math.abs(o)>0&&Math.abs(s)>0){var c=Math.min(i,i+o),l=Math.max(i,i+o),u=Math.min(a,a+s),d=Math.max(a,a+s);return n>=c&&n<=l&&r>=u&&r<=d}return!1},Ox={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},kx=function(e){var t=Sx(Sx({},Ox),e),n=(0,F.useRef)(),r=hx((0,F.useState)(-1),2),i=r[0],a=r[1];(0,F.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var s=t.x,c=t.y,l=t.width,u=t.height,d=t.radius,f=t.className,p=t.animationEasing,m=t.animationDuration,h=t.animationBegin,g=t.isAnimationActive,_=t.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||l===0||u===0)return null;var v=o(`recharts-rectangle`,f);return _?F.createElement(fx,{canBegin:i>0,from:{width:l,height:u,x:s,y:c},to:{width:l,height:u,x:s,y:c},duration:m,animationEasing:p,isActive:_},function(e){var r=e.width,a=e.height,o=e.x,s=e.y;return F.createElement(fx,{canBegin:i>0,from:`0px ${i===-1?1:i}px`,to:`${i}px 0px`,attributeName:`strokeDasharray`,begin:h,duration:m,isActive:g,easing:p},F.createElement(`path`,mx({},V(t,!0),{className:v,d:Ex(o,s,r,a,d),ref:n})))}):F.createElement(`path`,mx({},V(t,!0),{className:v,d:Ex(s,c,l,u,d)}))},Ax=[`points`,`className`,`baseLinePoints`,`connectNulls`];function jx(){return jx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jx.apply(this,arguments)}function Mx(e,t){if(e==null)return{};var n=Nx(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nx(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Px(e){return Rx(e)||Lx(e)||Ix(e)||Fx()}function Fx(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ix(e,t){if(e){if(typeof e==`string`)return zx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zx(e,t)}}function Lx(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Rx(e){if(Array.isArray(e))return zx(e)}function zx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Bx=function(e){return e&&e.x===+e.x&&e.y===+e.y},Vx=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];return e.forEach(function(e){Bx(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),Bx(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},Hx=function(e,t){var n=Vx(e);t&&(n=[n.reduce(function(e,t){return[].concat(Px(e),Px(t))},[])]);var r=n.map(function(e){return e.reduce(function(e,t,n){return`${e}${n===0?`M`:`L`}${t.x},${t.y}`},``)}).join(``);return n.length===1?`${r}Z`:r},Ux=function(e,t,n){var r=Hx(e,n);return`${r.slice(-1)===`Z`?r.slice(0,-1):r}L${Hx(t.reverse(),n).slice(1)}`},Wx=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,a=Mx(e,Ax);if(!t||!t.length)return null;var s=o(`recharts-polygon`,n);if(r&&r.length){var c=a.stroke&&a.stroke!==`none`,l=Ux(t,r,i);return F.createElement(`g`,{className:s},F.createElement(`path`,jx({},V(a,!0),{fill:l.slice(-1)===`Z`?a.fill:`none`,stroke:`none`,d:l})),c?F.createElement(`path`,jx({},V(a,!0),{fill:`none`,d:Hx(t,i)})):null,c?F.createElement(`path`,jx({},V(a,!0),{fill:`none`,d:Hx(r,i)})):null)}var u=Hx(t,i);return F.createElement(`path`,jx({},V(a,!0),{fill:u.slice(-1)===`Z`?a.fill:`none`,className:s,d:u}))};function Gx(){return Gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gx.apply(this,arguments)}var Kx=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.className,a=o(`recharts-dot`,i);return t===+t&&n===+n&&r===+r?F.createElement(`circle`,Gx({},V(e,!1),$e(e),{className:a,cx:t,cy:n,r})):null};function qx(e){"@babel/helpers - typeof";return qx=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qx(e)}var Jx=[`x`,`y`,`top`,`left`,`width`,`height`,`className`];function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yx.apply(this,arguments)}function Xx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xx(Object(n),!0).forEach(function(t){Qx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qx(e,t,n){return t=$x(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $x(e){var t=eS(e,`string`);return qx(t)==`symbol`?t:t+``}function eS(e,t){if(qx(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(qx(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function tS(e,t){if(e==null)return{};var n=nS(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nS(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var rS=function(e,t,n,r,i,a){return`M${e},${i}v${r}M${a},${t}h${n}`},iS=function(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.top,s=a===void 0?0:a,c=e.left,l=c===void 0?0:c,u=e.width,d=u===void 0?0:u,f=e.height,p=f===void 0?0:f,m=e.className,h=tS(e,Jx),g=Zx({x:n,y:i,top:s,left:l,width:d,height:p},h);return!L(n)||!L(i)||!L(d)||!L(p)||!L(s)||!L(l)?null:F.createElement(`path`,Yx({},V(g,!0),{className:o(`recharts-cross`,m),d:rS(n,i,d,p,s,l)}))},aS=n(((e,t)=>{var n=xm(),r=Sm(),i=na();function a(e,t){return e&&e.length?n(e,i(t,2),r):void 0}t.exports=a})),oS=n(((e,t)=>{var n=xm(),r=na(),i=wm();function a(e,t){return e&&e.length?n(e,r(t,2),i):void 0}t.exports=a})),sS=t(aS()),cS=t(oS()),lS=[`cx`,`cy`,`angle`,`ticks`,`axisLine`],uS=[`ticks`,`tick`,`angle`,`tickFormatter`,`stroke`];function dS(e){"@babel/helpers - typeof";return dS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},dS(e)}function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fS.apply(this,arguments)}function pS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pS(Object(n),!0).forEach(function(t){DS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hS(e,t){if(e==null)return{};var n=gS(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gS(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _S(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function vS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,OS(r.key),r)}}function yS(e,t,n){return t&&vS(e.prototype,t),n&&vS(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function bS(e,t,n){return t=wS(t),xS(e,CS()?Reflect.construct(t,n||[],wS(e).constructor):t.apply(e,n))}function xS(e,t){if(t&&(dS(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return SS(e)}function SS(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function CS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CS=function(){return!!e})()}function wS(e){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wS(e)}function TS(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&ES(e,t)}function ES(e,t){return ES=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ES(e,t)}function DS(e,t,n){return t=OS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OS(e){var t=kS(e,`string`);return dS(t)==`symbol`?t:t+``}function kS(e,t){if(dS(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(dS(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var AS=function(e){function t(){return _S(this,t),bS(this,t,arguments)}return TS(t,e),yS(t,[{key:`getTickValueCoord`,value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,a=n.cy;return J(i,a,t,r)}},{key:`getTickTextAnchor`,value:function(){var e=this.props.orientation,t;switch(e){case`left`:t=`end`;break;case`right`:t=`start`;break;default:t=`middle`;break}return t}},{key:`getViewBox`,value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=(0,sS.default)(i,function(e){return e.coordinate||0});return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:(0,cS.default)(i,function(e){return e.coordinate||0}).coordinate||0,outerRadius:a.coordinate||0}}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=e.axisLine,o=hS(e,lS),s=i.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),c=J(t,n,s[0],r),l=J(t,n,s[1],r),u=mS(mS(mS({},V(o,!1)),{},{fill:`none`},V(a,!1)),{},{x1:c.x,y1:c.y,x2:l.x,y2:l.y});return F.createElement(`line`,fS({className:`recharts-polar-radius-axis-line`},u))}},{key:`renderTicks`,value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.angle,s=n.tickFormatter,c=n.stroke,l=hS(n,uS),u=this.getTickTextAnchor(),d=V(l,!1),f=V(i,!1),p=r.map(function(n,r){var l=e.getTickValueCoord(n),p=mS(mS(mS(mS({textAnchor:u,transform:`rotate(${90-a}, ${l.x}, ${l.y})`},d),{},{stroke:`none`,fill:c},f),{},{index:r},l),{},{payload:n});return F.createElement(H,fS({className:o(`recharts-polar-radius-axis-tick`,p_(i)),key:`tick-${n.coordinate}`},tt(e.props,n,r)),t.renderTickItem(i,p,s?s(n.value,r):n.value))});return F.createElement(H,{className:`recharts-polar-radius-axis-ticks`},p)}},{key:`render`,value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return!t||!t.length?null:F.createElement(H,{className:o(`recharts-polar-radius-axis`,this.props.className)},n&&this.renderAxisLine(),r&&this.renderTicks(),I_.renderCallByParent(this.props,this.getViewBox()))}}],[{key:`renderTickItem`,value:function(e,t,n){return F.isValidElement(e)?F.cloneElement(e,t):(0,B.default)(e)?e(t):F.createElement(Bc,fS({},t,{className:`recharts-polar-radius-axis-tick-value`}),n)}}])}(F.PureComponent);DS(AS,`displayName`,`PolarRadiusAxis`),DS(AS,`axisType`,`radiusAxis`),DS(AS,`defaultProps`,{type:`number`,radiusAxisId:0,cx:0,cy:0,angle:0,orientation:`right`,stroke:`#ccc`,axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:`auto`,allowDuplicatedCategory:!0});function jS(e){"@babel/helpers - typeof";return jS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},jS(e)}function MS(){return MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MS.apply(this,arguments)}function NS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?NS(Object(n),!0).forEach(function(t){GS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function FS(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function IS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,KS(r.key),r)}}function LS(e,t,n){return t&&IS(e.prototype,t),n&&IS(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function RS(e,t,n){return t=HS(t),zS(e,VS()?Reflect.construct(t,n||[],HS(e).constructor):t.apply(e,n))}function zS(e,t){if(t&&(jS(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return BS(e)}function BS(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function VS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VS=function(){return!!e})()}function HS(e){return HS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HS(e)}function US(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&WS(e,t)}function WS(e,t){return WS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},WS(e,t)}function GS(e,t,n){return t=KS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KS(e){var t=qS(e,`string`);return jS(t)==`symbol`?t:t+``}function qS(e,t){if(jS(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(jS(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var JS=Math.PI/180,YS=1e-5,XS=function(e){function t(){return FS(this,t),RS(this,t,arguments)}return US(t,e),LS(t,[{key:`getTickLineCoord`,value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,a=t.orientation,o=t.tickSize||8,s=J(n,r,i,e.coordinate),c=J(n,r,i+(a===`inner`?-1:1)*o,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:`getTickTextAnchor`,value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*JS);return n>YS?t===`outer`?`start`:`end`:n<-YS?t===`outer`?`end`:`start`:`middle`}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,o=PS(PS({},V(this.props,!1)),{},{fill:`none`},V(i,!1));if(a===`circle`)return F.createElement(Kx,MS({className:`recharts-polar-angle-axis-line`},o,{cx:t,cy:n,r}));var s=this.props.ticks.map(function(e){return J(t,n,r,e.coordinate)});return F.createElement(Wx,MS({className:`recharts-polar-angle-axis-line`},o,{points:s}))}},{key:`renderTicks`,value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.tickLine,s=n.tickFormatter,c=n.stroke,l=V(this.props,!1),u=V(i,!1),d=PS(PS({},l),{},{fill:`none`},V(a,!1)),f=r.map(function(n,r){var f=e.getTickLineCoord(n),p=PS(PS(PS({textAnchor:e.getTickTextAnchor(n)},l),{},{stroke:`none`,fill:c},u),{},{index:r,payload:n,x:f.x2,y:f.y2});return F.createElement(H,MS({className:o(`recharts-polar-angle-axis-tick`,p_(i)),key:`tick-${n.coordinate}`},tt(e.props,n,r)),a&&F.createElement(`line`,MS({className:`recharts-polar-angle-axis-tick-line`},d,f)),i&&t.renderTickItem(i,p,s?s(n.value,r):n.value))});return F.createElement(H,{className:`recharts-polar-angle-axis-ticks`},f)}},{key:`render`,value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:F.createElement(H,{className:o(`recharts-polar-angle-axis`,this.props.className)},r&&this.renderAxisLine(),this.renderTicks())}}],[{key:`renderTickItem`,value:function(e,t,n){return F.isValidElement(e)?F.cloneElement(e,t):(0,B.default)(e)?e(t):F.createElement(Bc,MS({},t,{className:`recharts-polar-angle-axis-tick-value`}),n)}}])}(F.PureComponent);GS(XS,`displayName`,`PolarAngleAxis`),GS(XS,`axisType`,`angleAxis`),GS(XS,`defaultProps`,{type:`category`,angleAxisId:0,scale:`auto`,cx:0,cy:0,orientation:`outer`,axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var ZS=n(((e,t)=>{t.exports=ki()(Object.getPrototypeOf,Object)})),QS=n(((e,t)=>{var n=p(),r=ZS(),i=m(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),$S=n(((e,t)=>{var n=p(),r=m(),i=`[object Boolean]`;function a(e){return e===!0||e===!1||r(e)&&n(e)==i}t.exports=a})),eC=t(QS()),tC=t($S());function nC(e){"@babel/helpers - typeof";return nC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nC(e)}function rC(){return rC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rC.apply(this,arguments)}function iC(e,t){return lC(e)||cC(e,t)||oC(e,t)||aC()}function aC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oC(e,t){if(e){if(typeof e==`string`)return sC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sC(e,t)}}function sC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function lC(e){if(Array.isArray(e))return e}function uC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uC(Object(n),!0).forEach(function(t){fC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fC(e,t,n){return t=pC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pC(e){var t=mC(e,`string`);return nC(t)==`symbol`?t:t+``}function mC(e,t){if(nC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var hC=function(e,t,n,r,i){var a=n-r,o=`M ${e},${t}`;return o+=`L ${e+n},${t}`,o+=`L ${e+n-a/2},${t+i}`,o+=`L ${e+n-a/2-r},${t+i}`,o+=`L ${e},${t} Z`,o},gC={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},_C=function(e){var t=dC(dC({},gC),e),n=(0,F.useRef)(),r=iC((0,F.useState)(-1),2),i=r[0],a=r[1];(0,F.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var s=t.x,c=t.y,l=t.upperWidth,u=t.lowerWidth,d=t.height,f=t.className,p=t.animationEasing,m=t.animationDuration,h=t.animationBegin,g=t.isUpdateAnimationActive;if(s!==+s||c!==+c||l!==+l||u!==+u||d!==+d||l===0&&u===0||d===0)return null;var _=o(`recharts-trapezoid`,f);return g?F.createElement(fx,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:l,lowerWidth:u,height:d,x:s,y:c},duration:m,animationEasing:p,isActive:g},function(e){var r=e.upperWidth,a=e.lowerWidth,o=e.height,s=e.x,c=e.y;return F.createElement(fx,{canBegin:i>0,from:`0px ${i===-1?1:i}px`,to:`${i}px 0px`,attributeName:`strokeDasharray`,begin:h,duration:m,easing:p},F.createElement(`path`,rC({},V(t,!0),{className:_,d:hC(s,c,r,a,o),ref:n})))}):F.createElement(`g`,null,F.createElement(`path`,rC({},V(t,!0),{className:_,d:hC(s,c,l,u,d)})))},vC=[`option`,`shapeType`,`propTransformer`,`activeClassName`,`isActive`];function yC(e){"@babel/helpers - typeof";return yC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yC(e)}function bC(e,t){if(e==null)return{};var n=xC(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xC(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function SC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SC(Object(n),!0).forEach(function(t){wC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wC(e,t,n){return t=TC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TC(e){var t=EC(e,`string`);return yC(t)==`symbol`?t:t+``}function EC(e,t){if(yC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function DC(e,t){return CC(CC({},t),e)}function OC(e,t){return e===`symbols`}function kC(e){var t=e.shapeType,n=e.elementProps;switch(t){case`rectangle`:return F.createElement(kx,n);case`trapezoid`:return F.createElement(_C,n);case`sector`:return F.createElement(yv,n);case`symbols`:if(OC(t,n))return F.createElement(kr,n);break;default:return null}}function AC(e){return(0,F.isValidElement)(e)?e.props:e}function jC(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?DC:r,a=e.activeClassName,o=a===void 0?`recharts-active-shape`:a,s=e.isActive,c=bC(e,vC),l;if((0,F.isValidElement)(t))l=(0,F.cloneElement)(t,CC(CC({},c),AC(t)));else if((0,B.default)(t))l=t(c);else if((0,eC.default)(t)&&!(0,tC.default)(t)){var u=i(t,c);l=F.createElement(kC,{shapeType:n,elementProps:u})}else{var d=c;l=F.createElement(kC,{shapeType:n,elementProps:d})}return s?F.createElement(H,{className:o},l):l}function MC(e,t){return t!=null&&`trapezoids`in e.props}function NC(e,t){return t!=null&&`sectors`in e.props}function PC(e,t){return t!=null&&`points`in e.props}function FC(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)==null?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)==null?void 0:r.y)||e.y===t.y;return i&&a}function IC(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function LC(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function RC(e,t){var n;return MC(e,t)?n=FC:NC(e,t)?n=IC:PC(e,t)&&(n=LC),n}function zC(e,t){var n;return MC(e,t)?n=`trapezoids`:NC(e,t)?n=`sectors`:PC(e,t)&&(n=`points`),n}function BC(e,t){if(MC(e,t)){var n;return(n=t.tooltipPayload)==null||(n=n[0])==null||(n=n.payload)==null?void 0:n.payload}if(NC(e,t)){var r;return(r=t.tooltipPayload)==null||(r=r[0])==null||(r=r.payload)==null?void 0:r.payload}return PC(e,t)?t.payload:{}}function VC(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=zC(n,t),a=BC(n,t),o=r.filter(function(e,r){var o=(0,Nm.default)(a,e),s=n.props[i].filter(function(e){return RC(n,t)(e,t)}),c=r===n.props[i].indexOf(s[s.length-1]);return o&&c});return r.indexOf(o[o.length-1])}var HC;function UC(e){"@babel/helpers - typeof";return UC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UC(e)}function WC(){return WC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WC.apply(this,arguments)}function GC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?GC(Object(n),!0).forEach(function(t){nw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KC(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function qC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,rw(r.key),r)}}function JC(e,t,n){return t&&qC(e.prototype,t),n&&qC(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function YC(e,t,n){return t=$C(t),XC(e,QC()?Reflect.construct(t,n||[],$C(e).constructor):t.apply(e,n))}function XC(e,t){if(t&&(UC(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return ZC(e)}function ZC(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function QC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QC=function(){return!!e})()}function $C(e){return $C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$C(e)}function ew(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&tw(e,t)}function tw(e,t){return tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tw(e,t)}function nw(e,t,n){return t=rw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rw(e){var t=iw(e,`string`);return UC(t)==`symbol`?t:t+``}function iw(e,t){if(UC(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(UC(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var aw=function(e){function t(e){var n;return KC(this,t),n=YC(this,t,[e]),nw(n,`pieRef`,null),nw(n,`sectorRefs`,[]),nw(n,`id`,Re(`recharts-pie-`)),nw(n,`handleAnimationEnd`,function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),(0,B.default)(e)&&e()}),nw(n,`handleAnimationStart`,function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),(0,B.default)(e)&&e()}),n.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},n}return ew(t,e),JC(t,[{key:`isActiveIndex`,value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?t.indexOf(e)!==-1:e===t}},{key:`hasActiveIndex`,value:function(){var e=this.props.activeIndex;return Array.isArray(e)?e.length!==0:e||e===0}},{key:`renderLabels`,value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,a=n.dataKey,o=n.valueKey,s=V(this.props,!1),c=V(r,!1),l=V(i,!1),u=r&&r.offsetRadius||20,d=e.map(function(e,n){var d=(e.startAngle+e.endAngle)/2,f=J(e.cx,e.cy,e.outerRadius+u,d),p=X(X(X(X({},s),e),{},{stroke:`none`},c),{},{index:n,textAnchor:t.getTextAnchor(f.x,e.cx)},f),m=X(X(X(X({},s),e),{},{fill:`none`,stroke:e.fill},l),{},{index:n,points:[J(e.cx,e.cy,e.outerRadius,d),f]}),h=a;return(0,I.default)(a)&&(0,I.default)(o)?h=`value`:(0,I.default)(a)&&(h=o),F.createElement(H,{key:`label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${n}`},i&&t.renderLabelLineItem(i,m,`line`),t.renderLabelItem(r,p,q(e,h)))});return F.createElement(H,{className:`recharts-pie-labels`},d)}},{key:`renderSectorsStatically`,value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return e.map(function(n,o){if(n?.startAngle===0&&n?.endAngle===0&&e.length!==1)return null;var s=t.isActiveIndex(o),c=a&&t.hasActiveIndex()?a:null,l=s?r:c,u=X(X({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return F.createElement(H,WC({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:`recharts-pie-sector`},tt(t.props,n,o),{key:`sector-${n?.startAngle}-${n?.endAngle}-${n.midAngle}-${o}`}),F.createElement(jC,WC({option:l,isActive:s,shapeType:`sector`},u)))})}},{key:`renderSectorsWithAnimation`,value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,o=t.animationEasing,s=t.animationId,c=this.state,l=c.prevSectors,u=c.prevIsAnimationActive;return F.createElement(fx,{begin:i,duration:a,isActive:r,easing:o,from:{t:0},to:{t:1},key:`pie-${s}-${u}`,onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(t){var r=t.t,i=[],a=(n&&n[0]).startAngle;return n.forEach(function(e,t){var n=l&&l[t],o=t>0?(0,Me.default)(e,`paddingAngle`,0):0;if(n){var s=z(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=X(X({},e),{},{startAngle:a+o,endAngle:a+s(r)+o});i.push(c),a=c.endAngle}else{var u=e.endAngle,d=e.startAngle,f=z(0,u-d)(r),p=X(X({},e),{},{startAngle:a+o,endAngle:a+f+o});i.push(p),a=p.endAngle}}),F.createElement(H,null,e.renderSectorsStatically(i))})}},{key:`attachKeyboardHandlers`,value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case`ArrowLeft`:var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case`ArrowRight`:var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case`Escape`:t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0});break;default:}}}},{key:`renderSectors`,value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return n&&t&&t.length&&(!r||!(0,Nm.default)(r,t))?this.renderSectorsWithAnimation():this.renderSectorsStatically(t)}},{key:`componentDidMount`,value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,a=t.label,s=t.cx,c=t.cy,l=t.innerRadius,u=t.outerRadius,d=t.isAnimationActive,f=this.state.isAnimationFinished;if(n||!r||!r.length||!L(s)||!L(c)||!L(l)||!L(u))return null;var p=o(`recharts-pie`,i);return F.createElement(H,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(r),I_.renderCallByParent(this.props,null,!1),(!d||f)&&iv.renderCallByParent(this.props,r,!1))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return t.prevIsAnimationActive===e.isAnimationActive?e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors===t.curSectors?null:{curSectors:e.sectors,isAnimationFinished:!0}:{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}}},{key:`getTextAnchor`,value:function(e,t){return e>t?`start`:e<t?`end`:`middle`}},{key:`renderLabelLineItem`,value:function(e,t,n){if(F.isValidElement(e))return F.cloneElement(e,t);if((0,B.default)(e))return e(t);var r=o(`recharts-pie-label-line`,typeof e==`boolean`?``:e.className);return F.createElement(Nv,WC({},t,{key:n,type:`linear`,className:r}))}},{key:`renderLabelItem`,value:function(e,t,n){if(F.isValidElement(e))return F.cloneElement(e,t);var r=n;if((0,B.default)(e)&&(r=e(t),F.isValidElement(r)))return r;var i=o(`recharts-pie-label-text`,typeof e!=`boolean`&&!(0,B.default)(e)?e.className:``);return F.createElement(Bc,WC({},t,{alignmentBaseline:`middle`,className:i}),r)}}])}(F.PureComponent);HC=aw,nw(aw,`displayName`,`Pie`),nw(aw,`defaultProps`,{stroke:`#fff`,fill:`#808080`,legendType:`rect`,cx:`50%`,cy:`50%`,startAngle:0,endAngle:360,innerRadius:0,outerRadius:`80%`,paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Zo.isSsr,animationBegin:400,animationDuration:1500,animationEasing:`ease`,nameKey:`name`,blendStroke:!1,rootTabIndex:0}),nw(aw,`parseDeltaAngle`,function(e,t){return Pe(t-e)*Math.min(Math.abs(t-e),360)}),nw(aw,`getRealPieData`,function(e){var t=e.data,n=e.children,r=V(e,!1),i=ft(n,Is);return t&&t.length?t.map(function(e,t){return X(X(X({payload:e},r),e),i&&i[t]&&i[t].props)}):i&&i.length?i.map(function(e){return X(X({},r),e.props)}):[]}),nw(aw,`parseCoordinateOfPie`,function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=o_(i,a);return{cx:r+ze(e.cx,i,i/2),cy:n+ze(e.cy,a,a/2),innerRadius:ze(e.innerRadius,o,0),outerRadius:ze(e.outerRadius,o,o*.8),maxRadius:e.maxRadius||Math.sqrt(i*i+a*a)/2}}),nw(aw,`getComposedData`,function(e){var t=e.item,n=e.offset,r=t.type.defaultProps===void 0?t.props:X(X({},t.type.defaultProps),t.props),i=HC.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,s=r.endAngle,c=r.paddingAngle,l=r.dataKey,u=r.nameKey,d=r.valueKey,f=r.tooltipType,p=Math.abs(r.minAngle),m=HC.parseCoordinateOfPie(r,n),h=HC.parseDeltaAngle(o,s),g=Math.abs(h),_=l;(0,I.default)(l)&&(0,I.default)(d)?(Pt(!1,`Use "dataKey" to specify the value of pie,
|
|
59
|
+
the props "valueKey" will be deprecated in 1.1.0`),_=`value`):(0,I.default)(l)&&(Pt(!1,`Use "dataKey" to specify the value of pie,
|
|
60
|
+
the props "valueKey" will be deprecated in 1.1.0`),_=d);var v=i.filter(function(e){return q(e,_,0)!==0}).length,y=(g>=360?v:v-1)*c,b=g-v*p-y,x=i.reduce(function(e,t){var n=q(t,_,0);return e+(L(n)?n:0)},0),S;if(x>0){var C;S=i.map(function(e,t){var n=q(e,_,0),r=q(e,u,t),i=(L(n)?n:0)/x,s=t?C.endAngle+Pe(h)*c*(n===0?0:1):o,l=s+Pe(h)*((n===0?0:p)+i*b),d=(s+l)/2,g=(m.innerRadius+m.outerRadius)/2;return C=X(X(X({percent:i,cornerRadius:a,name:r,tooltipPayload:[{name:r,value:n,payload:e,dataKey:_,type:f}],midAngle:d,middleRadius:g,tooltipPosition:J(m.cx,m.cy,g,d)},e),m),{},{value:q(e,_),startAngle:s,endAngle:l,payload:e,paddingAngle:Pe(h)*c}),C})}return X(X({},m),{},{sectors:S,data:i})});var ow=n(((e,t)=>{var n=Math.ceil,r=Math.max;function i(e,t,i,a){for(var o=-1,s=r(n((t-e)/(i||1)),0),c=Array(s);s--;)c[a?s:++o]=e,e+=i;return c}t.exports=i})),sw=n(((e,t)=>{var n=bs(),r=1/0,i=17976931348623157e292;function a(e){return e?(e=n(e),e===r||e===-r?(e<0?-1:1)*i:e===e?e:0):e===0?e:0}t.exports=a})),cw=n(((e,t)=>{var n=ow(),r=ro(),i=sw();function a(e){return function(t,a,o){return o&&typeof o!=`number`&&r(t,a,o)&&(a=o=void 0),t=i(t),a===void 0?(a=t,t=0):a=i(a),o=o===void 0?t<a?1:-1:i(o),n(t,a,o,e)}}t.exports=a})),lw=t(n(((e,t)=>{t.exports=cw()()}))());function uw(e){"@babel/helpers - typeof";return uw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uw(e)}function dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dw(Object(n),!0).forEach(function(t){pw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pw(e,t,n){return t=mw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mw(e){var t=hw(e,`string`);return uw(t)==`symbol`?t:t+``}function hw(e,t){if(uw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var gw=[`Webkit`,`Moz`,`O`,`ms`],_w=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=gw.reduce(function(e,r){return fw(fw({},e),{},pw({},r+n,t))},{});return r[e]=t,r};function vw(e){"@babel/helpers - typeof";return vw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vw(e)}function yw(){return yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yw.apply(this,arguments)}function bw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bw(Object(n),!0).forEach(function(t){Mw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sw(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Cw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Nw(r.key),r)}}function ww(e,t,n){return t&&Cw(e.prototype,t),n&&Cw(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Tw(e,t,n){return t=kw(t),Ew(e,Ow()?Reflect.construct(t,n||[],kw(e).constructor):t.apply(e,n))}function Ew(e,t){if(t&&(vw(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Dw(e)}function Dw(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Ow(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ow=function(){return!!e})()}function kw(e){return kw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kw(e)}function Aw(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&jw(e,t)}function jw(e,t){return jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jw(e,t)}function Mw(e,t,n){return t=Nw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nw(e){var t=Pw(e,`string`);return vw(t)==`symbol`?t:t+``}function Pw(e,t){if(vw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Fw=function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,a=e.width,o=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,c=Sl().domain((0,lw.default)(0,s)).range([i,i+a-o]),l=c.domain().map(function(e){return c(e)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(r),scale:c,scaleValues:l}},Iw=function(e){return e.changedTouches&&!!e.changedTouches.length},Lw=function(e){function t(e){var n;return Sw(this,t),n=Tw(this,t,[e]),Mw(n,`handleDrag`,function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)}),Mw(n,`handleTouchMove`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),Mw(n,`handleDragEnd`,function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,i=e.startIndex;r?.({endIndex:t,startIndex:i})}),n.detachDragEndListener()}),Mw(n,`handleLeaveWrapper`,function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Mw(n,`handleEnterSlideOrTraveller`,function(){n.setState({isTextActive:!0})}),Mw(n,`handleLeaveSlideOrTraveller`,function(){n.setState({isTextActive:!1})}),Mw(n,`handleSlideDragStart`,function(e){var t=Iw(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,`startX`),endX:n.handleTravellerDragStart.bind(n,`endX`)},n.state={},n}return Aw(t,e),ww(t,[{key:`componentWillUnmount`,value:function(){this.leaveTimer&&=(clearTimeout(this.leaveTimer),null),this.detachDragEndListener()}},{key:`getIndex`,value:function(e){var n=e.startX,r=e.endX,i=this.state.scaleValues,a=this.props,o=a.gap,s=a.data.length-1,c=Math.min(n,r),l=Math.max(n,r),u=t.getIndexInRange(i,c),d=t.getIndexInRange(i,l);return{startIndex:u-u%o,endIndex:d===s?s:d-d%o}}},{key:`getTextOfTick`,value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,a=q(n[e],i,e);return(0,B.default)(r)?r(a,e):a}},{key:`attachDragEndListener`,value:function(){window.addEventListener(`mouseup`,this.handleDragEnd,!0),window.addEventListener(`touchend`,this.handleDragEnd,!0),window.addEventListener(`mousemove`,this.handleDrag,!0)}},{key:`detachDragEndListener`,value:function(){window.removeEventListener(`mouseup`,this.handleDragEnd,!0),window.removeEventListener(`touchend`,this.handleDragEnd,!0),window.removeEventListener(`mousemove`,this.handleDrag,!0)}},{key:`handleSlideDrag`,value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,a=this.props,o=a.x,s=a.width,c=a.travellerWidth,l=a.startIndex,u=a.endIndex,d=a.onChange,f=e.pageX-n;f>0?f=Math.min(f,o+s-c-i,o+s-c-r):f<0&&(f=Math.max(f,o-r,o-i));var p=this.getIndex({startX:r+f,endX:i+f});(p.startIndex!==l||p.endIndex!==u)&&d&&d(p),this.setState({startX:r+f,endX:i+f,slideMoveStartX:e.pageX})}},{key:`handleTravellerDragStart`,value:function(e,t){var n=Iw(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:`handleTravellerMove`,value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,i=t.endX,a=t.startX,o=this.state[r],s=this.props,c=s.x,l=s.width,u=s.travellerWidth,d=s.onChange,f=s.gap,p=s.data,m={startX:this.state.startX,endX:this.state.endX},h=e.pageX-n;h>0?h=Math.min(h,c+l-u-o):h<0&&(h=Math.max(h,c-o)),m[r]=o+h;var g=this.getIndex(m),_=g.startIndex,v=g.endIndex,y=function(){var e=p.length-1;return r===`startX`&&(i>a?_%f===0:v%f===0)||i<a&&v===e||r===`endX`&&(i>a?v%f===0:_%f===0)||i>a&&v===e};this.setState(Mw(Mw({},r,o+h),`brushMoveStartX`,e.pageX),function(){d&&y()&&d(g)})}},{key:`handleTravellerMoveKeyboard`,value:function(e,t){var n=this,r=this.state,i=r.scaleValues,a=r.startX,o=r.endX,s=this.state[t],c=i.indexOf(s);if(c!==-1){var l=c+e;if(!(l===-1||l>=i.length)){var u=i[l];t===`startX`&&u>=o||t===`endX`&&u<=a||this.setState(Mw({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:`renderBackground`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,o=e.stroke;return F.createElement(`rect`,{stroke:o,fill:a,x:t,y:n,width:r,height:i})}},{key:`renderPanorama`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,o=e.children,s=e.padding,c=F.Children.only(o);return c?F.cloneElement(c,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:a}):null}},{key:`renderTravellerLayer`,value:function(e,n){var r=this,i=this.props,a=i.y,o=i.travellerWidth,s=i.height,c=i.traveller,l=i.ariaLabel,u=i.data,d=i.startIndex,f=i.endIndex,p=Math.max(e,this.props.x),m=xw(xw({},V(this.props,!1)),{},{x:p,y:a,width:o,height:s}),h=l||`Min value: ${u[d]?.name}, Max value: ${u[f]?.name}`;return F.createElement(H,{tabIndex:0,role:`slider`,"aria-label":h,"aria-valuenow":e,className:`recharts-brush-traveller`,onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){[`ArrowLeft`,`ArrowRight`].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),r.handleTravellerMoveKeyboard(e.key===`ArrowRight`?1:-1,n))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:`col-resize`}},t.renderTraveller(c,m))}},{key:`renderSlide`,value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,o=n.travellerWidth,s=Math.min(e,t)+o,c=Math.max(Math.abs(t-e)-o,0);return F.createElement(`rect`,{className:`recharts-brush-slide`,onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:`move`},stroke:`none`,fill:a,fillOpacity:.2,x:s,y:r,width:c,height:i})}},{key:`renderText`,value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,o=e.stroke,s=this.state,c=s.startX,l=s.endX,u=5,d={pointerEvents:`none`,fill:o};return F.createElement(H,{className:`recharts-brush-texts`},F.createElement(Bc,yw({textAnchor:`end`,verticalAnchor:`middle`,x:Math.min(c,l)-u,y:r+i/2},d),this.getTextOfTick(t)),F.createElement(Bc,yw({textAnchor:`start`,verticalAnchor:`middle`,x:Math.max(c,l)+a+u,y:r+i/2},d),this.getTextOfTick(n)))}},{key:`render`,value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,s=e.width,c=e.height,l=e.alwaysShowText,u=this.state,d=u.startX,f=u.endX,p=u.isTextActive,m=u.isSlideMoving,h=u.isTravellerMoving,g=u.isTravellerFocused;if(!t||!t.length||!L(i)||!L(a)||!L(s)||!L(c)||s<=0||c<=0)return null;var _=o(`recharts-brush`,n),v=F.Children.count(r)===1,y=_w(`userSelect`,`none`);return F.createElement(H,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:y},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(d,f),this.renderTravellerLayer(d,`startX`),this.renderTravellerLayer(f,`endX`),(p||m||h||g||l)&&this.renderText())}}],[{key:`renderDefaultTraveller`,value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,o=Math.floor(n+i/2)-1;return F.createElement(F.Fragment,null,F.createElement(`rect`,{x:t,y:n,width:r,height:i,fill:a,stroke:`none`}),F.createElement(`line`,{x1:t+1,y1:o,x2:t+r-1,y2:o,fill:`none`,stroke:`#fff`}),F.createElement(`line`,{x1:t+1,y1:o+2,x2:t+r-1,y2:o+2,fill:`none`,stroke:`#fff`}))}},{key:`renderTraveller`,value:function(e,n){return F.isValidElement(e)?F.cloneElement(e,n):(0,B.default)(e)?e(n):t.renderDefaultTraveller(n)}},{key:`getDerivedStateFromProps`,value:function(e,t){var n=e.data,r=e.width,i=e.x,a=e.travellerWidth,o=e.updateId,s=e.startIndex,c=e.endIndex;if(n!==t.prevData||o!==t.prevUpdateId)return xw({prevData:n,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:r},n&&n.length?Fw({data:n,width:r,x:i,travellerWidth:a,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([i,i+r-a]);var l=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:a,prevUpdateId:o,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:`getIndexInRange`,value:function(e,t){for(var n=e.length,r=0,i=n-1;i-r>1;){var a=Math.floor((r+i)/2);e[a]>t?i=a:r=a}return t>=e[i]?i:r}}])}(F.PureComponent);Mw(Lw,`displayName`,`Brush`),Mw(Lw,`defaultProps`,{height:40,travellerWidth:5,gap:1,fill:`#fff`,stroke:`#666`,padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Rw=n(((e,t)=>{var n=Ua();function r(e,t){var r;return n(e,function(e,n,i){return r=t(e,n,i),!r}),!!r}t.exports=r})),zw=n(((e,t)=>{var n=ii(),r=na(),i=Rw(),a=s(),o=ro();function c(e,t,s){var c=a(e)?n:i;return s&&o(e,t,s)&&(t=void 0),c(e,r(t,3))}t.exports=c})),Bw=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r=`extendDomain`),r===t},Vw=n(((e,t)=>{var n=Qa();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),Hw=n(((e,t)=>{var n=Vw(),r=Va(),i=na();function a(e,t){var a={};return t=i(t,3),r(e,function(e,r,i){n(a,r,t(e,r,i))}),a}t.exports=a})),Uw=n(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}t.exports=n})),Ww=n(((e,t)=>{var n=Ua();function r(e,t){var r=!0;return n(e,function(e,n,i){return r=!!t(e,n,i),r}),r}t.exports=r})),Gw=n(((e,t)=>{var n=Uw(),r=Ww(),i=na(),a=s(),o=ro();function c(e,t,s){var c=a(e)?n:r;return s&&o(e,t,s)&&(t=void 0),c(e,i(t,3))}t.exports=c})),Kw=t(Hw()),qw=t(Gw()),Jw=[`x`,`y`];function Yw(e){"@babel/helpers - typeof";return Yw=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Yw(e)}function Xw(){return Xw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xw.apply(this,arguments)}function Zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zw(Object(n),!0).forEach(function(t){$w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $w(e,t,n){return t=eT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eT(e){var t=tT(e,`string`);return Yw(t)==`symbol`?t:t+``}function tT(e,t){if(Yw(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Yw(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nT(e,t){if(e==null)return{};var n=rT(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rT(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function iT(e,t){var n=e.x,r=e.y,i=nT(e,Jw),a=`${n}`,o=parseInt(a,10),s=`${r}`,c=parseInt(s,10),l=`${t.height||i.height}`,u=parseInt(l,10),d=`${t.width||i.width}`,f=parseInt(d,10);return Qw(Qw(Qw(Qw(Qw({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function aT(e){return F.createElement(jC,Xw({shapeType:`rectangle`,propTransformer:iT,activeClassName:`recharts-active-bar`},e))}var oT=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,r){if(typeof e==`number`)return e;var i=L(n)||Ie(n);return i?e(n,r):(!i&&bh(!1),t)}},sT=[`value`,`background`],cT;function lT(e){"@babel/helpers - typeof";return lT=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},lT(e)}function uT(e,t){if(e==null)return{};var n=dT(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dT(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fT(){return fT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fT.apply(this,arguments)}function pT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pT(Object(n),!0).forEach(function(t){wT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mT(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function hT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,TT(r.key),r)}}function gT(e,t,n){return t&&hT(e.prototype,t),n&&hT(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function _T(e,t,n){return t=xT(t),vT(e,bT()?Reflect.construct(t,n||[],xT(e).constructor):t.apply(e,n))}function vT(e,t){if(t&&(lT(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return yT(e)}function yT(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function bT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bT=function(){return!!e})()}function xT(e){return xT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xT(e)}function ST(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&CT(e,t)}function CT(e,t){return CT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CT(e,t)}function wT(e,t,n){return t=TT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TT(e){var t=ET(e,`string`);return lT(t)==`symbol`?t:t+``}function ET(e,t){if(lT(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(lT(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var DT=function(e){function t(){var e;mT(this,t);var n=[...arguments];return e=_T(this,t,[].concat(n)),wT(e,`state`,{isAnimationFinished:!1}),wT(e,`id`,Re(`recharts-bar-`)),wT(e,`handleAnimationEnd`,function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()}),wT(e,`handleAnimationStart`,function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()}),e}return ST(t,e),gT(t,[{key:`renderRectanglesStatically`,value:function(e){var t=this,n=this.props,r=n.shape,i=n.dataKey,a=n.activeIndex,o=n.activeBar,s=V(this.props,!1);return e&&e.map(function(e,n){var c=n===a,l=c?o:r,u=Z(Z(Z({},s),e),{},{isActive:c,option:l,index:n,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return F.createElement(H,fT({className:`recharts-bar-rectangle`},tt(t.props,e,n),{key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${n}`}),F.createElement(aT,u))})}},{key:`renderRectanglesWithAnimation`,value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,o=t.animationDuration,s=t.animationEasing,c=t.animationId,l=this.state.prevData;return F.createElement(fx,{begin:a,duration:o,isActive:i,easing:s,from:{t:0},to:{t:1},key:`bar-${c}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var i=t.t,a=n.map(function(e,t){var n=l&&l[t];if(n){var a=z(n.x,e.x),o=z(n.y,e.y),s=z(n.width,e.width),c=z(n.height,e.height);return Z(Z({},e),{},{x:a(i),y:o(i),width:s(i),height:c(i)})}if(r===`horizontal`){var u=z(0,e.height)(i);return Z(Z({},e),{},{y:e.y+e.height-u,height:u})}var d=z(0,e.width)(i);return Z(Z({},e),{},{width:d})});return F.createElement(H,null,e.renderRectanglesStatically(a))})}},{key:`renderRectangles`,value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return n&&t&&t.length&&(!r||!(0,Nm.default)(r,t))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(t)}},{key:`renderBackground`,value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,i=t.activeIndex,a=V(this.props.background,!1);return n.map(function(t,n){t.value;var o=t.background,s=uT(t,sT);if(!o)return null;var c=Z(Z(Z(Z(Z({},s),{},{fill:`#eee`},o),a),tt(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return F.createElement(aT,fT({key:`background-bar-${n}`,option:e.props.background,isActive:n===i},c))})}},{key:`renderErrorBar`,value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,o=n.layout,s=n.children,c=ft(s,Gh);if(!c)return null;var l=o===`vertical`?r[0].height/2:r[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:q(e,t)}},d={clipPath:e?`url(#clipPath-${t})`:null};return F.createElement(H,d,c.map(function(e){return F.cloneElement(e,{key:`error-bar-${t}-${e.props.dataKey}`,data:r,xAxis:i,yAxis:a,layout:o,offset:l,dataPointFormatter:u})}))}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,l=e.width,u=e.height,d=e.isAnimationActive,f=e.background,p=e.id;if(t||!n||!n.length)return null;var m=this.state.isAnimationFinished,h=o(`recharts-bar`,r),g=i&&i.allowDataOverflow,_=a&&a.allowDataOverflow,v=g||_,y=(0,I.default)(p)?this.id:p;return F.createElement(H,{className:h},g||_?F.createElement(`defs`,null,F.createElement(`clipPath`,{id:`clipPath-${y}`},F.createElement(`rect`,{x:g?s:s-l/2,y:_?c:c-u/2,width:g?l:l*2,height:_?u:u*2}))):null,F.createElement(H,{className:`recharts-bar-rectangles`,clipPath:v?`url(#clipPath-${y})`:null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,y),(!d||m)&&iv.renderCallByParent(this.props,n))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.data===t.curData?null:{curData:e.data}:{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}}}])}(F.PureComponent);cT=DT,wT(DT,`displayName`,`Bar`),wT(DT,`defaultProps`,{xAxisId:0,yAxisId:0,legendType:`rect`,minPointSize:0,hide:!1,data:[],layout:`vertical`,activeBar:!1,isAnimationActive:!Zo.isSsr,animationBegin:0,animationDuration:400,animationEasing:`ease`}),wT(DT,`getComposedData`,function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=Og(r,n);if(!p)return null;var m=t.layout,h=n.type.defaultProps,g=h===void 0?n.props:Z(Z({},h),n.props),_=g.dataKey,v=g.children,y=g.minPointSize,b=m===`horizontal`?o:a,x=l?b.scale.domain():null,S=Ig({numericAxis:b}),C=ft(v,Is);return Z({data:d.map(function(e,t){var r,d,f,h,g,v;l?r=kg(l[u+t],x):(r=q(e,_),Array.isArray(r)||(r=[S,r]));var b=oT(y,cT.defaultProps.minPointSize)(r[1],t);if(m===`horizontal`){var w=[o.scale(r[0]),o.scale(r[1])],T=w[0],E=w[1];d=Fg({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:e,index:t}),f=E??T??void 0,h=p.size;var D=T-E;if(g=Number.isNaN(D)?0:D,v={x:d,y:o.y,width:h,height:o.height},Math.abs(b)>0&&Math.abs(g)<Math.abs(b)){var O=Pe(g||b)*(Math.abs(b)-Math.abs(g));f-=O,g+=O}}else{var k=[a.scale(r[0]),a.scale(r[1])],A=k[0],j=k[1];if(d=A,f=Fg({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:e,index:t}),h=j-A,g=p.size,v={x:a.x,y:f,width:a.width,height:g},Math.abs(b)>0&&Math.abs(h)<Math.abs(b)){var M=Pe(h||b)*(Math.abs(b)-Math.abs(h));h+=M}}return Z(Z(Z({},e),{},{x:d,y:f,width:h,height:g,value:l?r:r[1],payload:e,background:v},C&&C[t]&&C[t].props),{},{tooltipPayload:[Gg(n,e)],tooltipPosition:{x:d+h/2,y:f+g/2}})}),layout:m},f)});function OT(e){"@babel/helpers - typeof";return OT=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},OT(e)}function kT(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function AT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,FT(r.key),r)}}function jT(e,t,n){return t&&AT(e.prototype,t),n&&AT(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function MT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function NT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?MT(Object(n),!0).forEach(function(t){PT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function PT(e,t,n){return t=FT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FT(e){var t=IT(e,`string`);return OT(t)==`symbol`?t:t+``}function IT(e,t){if(OT(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(OT(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var LT=function(e,t,n,r,i){var a=e.width,o=e.height,s=e.layout,c=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:o-n.bottom,bottomMirror:o-n.bottom},d=!!pt(c,DT);return l.reduce(function(a,o){var c=t[o],l=c.orientation,f=c.domain,p=c.padding,m=p===void 0?{}:p,h=c.mirror,g=c.reversed,_=`${l}${h?`Mirror`:``}`,v,y,b,x,S;if(c.type===`number`&&(c.padding===`gap`||c.padding===`no-gap`)){var C=f[1]-f[0],w=1/0,T=c.categoricalDomain.sort(Ue);if(T.forEach(function(e,t){t>0&&(w=Math.min((e||0)-(T[t-1]||0),w))}),Number.isFinite(w)){var E=w/C,D=c.layout===`vertical`?n.height:n.width;if(c.padding===`gap`&&(v=E*D/2),c.padding===`no-gap`){var O=ze(e.barCategoryGap,E*D),k=E*D/2;v=k-O-(k-O)/D*O}}}y=r===`xAxis`?[n.left+(m.left||0)+(v||0),n.left+n.width-(m.right||0)-(v||0)]:r===`yAxis`?s===`horizontal`?[n.top+n.height-(m.bottom||0),n.top+(m.top||0)]:[n.top+(m.top||0)+(v||0),n.top+n.height-(m.bottom||0)-(v||0)]:c.range,g&&(y=[y[1],y[0]]);var A=Tg(c,i,d),j=A.scale,M=A.realScaleType;j.domain(f).range(y),Dg(j);var N=Ng(j,NT(NT({},c),{},{realScaleType:M}));r===`xAxis`?(S=l===`top`&&!h||l===`bottom`&&h,b=n.left,x=u[_]-S*c.height):r===`yAxis`&&(S=l===`left`&&!h||l===`right`&&h,b=u[_]-S*c.width,x=n.top);var P=NT(NT(NT({},c),N),{},{realScaleType:M,x:b,y:x,scale:j,width:r===`xAxis`?n.width:c.width,height:r===`yAxis`?n.height:c.height});return P.bandSize=Ug(P,N),!c.hide&&r===`xAxis`?u[_]+=(S?-1:1)*P.height:c.hide||(u[_]+=(S?-1:1)*P.width),NT(NT({},a),{},PT({},o,P))},{})},RT=function(e,t){var n=e.x,r=e.y,i=t.x,a=t.y;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},zT=function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return RT({x:t,y:n},{x:r,y:i})},BT=function(){function e(t){kT(this,e),this.scale=t}return jT(e,[{key:`domain`,get:function(){return this.scale.domain}},{key:`range`,get:function(){return this.scale.range}},{key:`rangeMin`,get:function(){return this.range()[0]}},{key:`rangeMax`,get:function(){return this.range()[1]}},{key:`bandwidth`,get:function(){return this.scale.bandwidth}},{key:`apply`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.bandAware,r=t.position;if(e!==void 0){if(r)switch(r){case`start`:return this.scale(e);case`middle`:var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case`end`:var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a;default:return this.scale(e)}if(n){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o}return this.scale(e)}}},{key:`isInRange`,value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],[{key:`create`,value:function(t){return new e(t)}}])}();PT(BT,`EPS`,1e-4);var VT=function(e){var t=Object.keys(e).reduce(function(t,n){return NT(NT({},t),{},PT({},n,BT.create(e[n])))},{});return NT(NT({},t),{},{apply:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.bandAware,i=n.position;return(0,Kw.default)(e,function(e,n){return t[n].apply(e,{bandAware:r,position:i})})},isInRange:function(e){return(0,qw.default)(e,function(e,n){return t[n].isInRange(e)})}})};function HT(e){return(e%180+180)%180}var UT=function(e){var t=e.width,n=e.height,r=HT(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)},WT=n(((e,t)=>{var n=na(),r=Mi(),i=Ni();function a(e){return function(t,a,o){var s=Object(t);if(!r(t)){var c=n(a,3);t=i(t),a=function(e){return c(s[e],e,s)}}var l=e(t,a,o);return l>-1?s[c?t[l]:l]:void 0}}t.exports=a})),GT=n(((e,t)=>{var n=sw();function r(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}t.exports=r})),KT=n(((e,t)=>{var n=ra(),r=na(),i=GT(),a=Math.max;function o(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var c=o==null?0:i(o);return c<0&&(c=a(s+c,0)),n(e,r(t,3),c)}t.exports=o})),qT=t(n(((e,t)=>{t.exports=WT()(KT())}))()),JT=(0,ao.default)(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return[`l`,e.left,`t`,e.top,`w`,e.width,`h`,e.height].join(``)}),YT=(0,F.createContext)(void 0),XT=(0,F.createContext)(void 0),ZT=(0,F.createContext)(void 0),QT=(0,F.createContext)({}),$T=(0,F.createContext)(void 0),eE=(0,F.createContext)(0),tE=(0,F.createContext)(0),nE=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,a=e.clipPathId,o=e.children,s=e.width,c=e.height,l=JT(i);return F.createElement(YT.Provider,{value:n},F.createElement(XT.Provider,{value:r},F.createElement(QT.Provider,{value:i},F.createElement(ZT.Provider,{value:l},F.createElement($T.Provider,{value:a},F.createElement(eE.Provider,{value:c},F.createElement(tE.Provider,{value:s},o)))))))},rE=function(){return(0,F.useContext)($T)},iE=function(e){var t=(0,F.useContext)(YT);t??bh(!1);var n=t[e];return n??bh(!1),n},aE=function(){return Be((0,F.useContext)(YT))},oE=function(){var e=(0,F.useContext)(XT);return(0,qT.default)(e,function(e){return(0,qw.default)(e.domain,Number.isFinite)})||Be(e)},sE=function(e){var t=(0,F.useContext)(XT);t??bh(!1);var n=t[e];return n??bh(!1),n},cE=function(){return(0,F.useContext)(ZT)},lE=function(){return(0,F.useContext)(QT)},uE=function(){return(0,F.useContext)(tE)},dE=function(){return(0,F.useContext)(eE)},fE=t(zw());function pE(e){"@babel/helpers - typeof";return pE=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pE(e)}function mE(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function hE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,DE(r.key),r)}}function gE(e,t,n){return t&&hE(e.prototype,t),n&&hE(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function _E(e,t,n){return t=xE(t),vE(e,bE()?Reflect.construct(t,n||[],xE(e).constructor):t.apply(e,n))}function vE(e,t){if(t&&(pE(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return yE(e)}function yE(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function bE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bE=function(){return!!e})()}function xE(e){return xE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xE(e)}function SE(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&CE(e,t)}function CE(e,t){return CE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},CE(e,t)}function wE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wE(Object(n),!0).forEach(function(t){EE(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EE(e,t,n){return t=DE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DE(e){var t=OE(e,`string`);return pE(t)==`symbol`?t:t+``}function OE(e,t){if(pE(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pE(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function kE(e,t){return PE(e)||NE(e,t)||jE(e,t)||AE()}function AE(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jE(e,t){if(e){if(typeof e==`string`)return ME(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ME(e,t)}}function ME(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function NE(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function PE(e){if(Array.isArray(e))return e}function FE(){return FE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FE.apply(this,arguments)}var IE=function(e,t){return F.isValidElement(e)?F.cloneElement(e,t):(0,B.default)(e)?e(t):F.createElement(`line`,FE({},t,{className:`recharts-reference-line-line`}))},LE=function(e,t,n,r,i,a,o,s,c){var l=i.x,u=i.y,d=i.width,f=i.height;if(n){var p=c.y,m=e.y.apply(p,{position:a});if(Bw(c,`discard`)&&!e.y.isInRange(m))return null;var h=[{x:l+d,y:m},{x:l,y:m}];return s===`left`?h.reverse():h}if(t){var g=c.x,_=e.x.apply(g,{position:a});if(Bw(c,`discard`)&&!e.x.isInRange(_))return null;var v=[{x:_,y:u+f},{x:_,y:u}];return o===`top`?v.reverse():v}if(r){var y=c.segment.map(function(t){return e.apply(t,{position:a})});return Bw(c,`discard`)&&(0,fE.default)(y,function(t){return!e.isInRange(t)})?null:y}return null};function RE(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,s=e.shape,c=e.className,l=e.alwaysShow,u=rE(),d=iE(i),f=sE(a),p=cE();if(!u||!p)return null;Pt(l===void 0,`The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.`);var m=LE(VT({x:d.scale,y:f.scale}),R(t),R(n),r&&r.length===2,p,e.position,d.orientation,f.orientation,e);if(!m)return null;var h=kE(m,2),g=h[0],_=g.x,v=g.y,y=h[1],b=y.x,x=y.y,S=TE(TE({clipPath:Bw(e,`hidden`)?`url(#${u})`:void 0},V(e,!0)),{},{x1:_,y1:v,x2:b,y2:x});return F.createElement(H,{className:o(`recharts-reference-line`,c)},IE(s,S),I_.renderCallByParent(e,zT({x1:_,y1:v,x2:b,y2:x})))}var zE=function(e){function t(){return mE(this,t),_E(this,t,arguments)}return SE(t,e),gE(t,[{key:`render`,value:function(){return F.createElement(RE,this.props)}}])}(F.Component);EE(zE,`displayName`,`ReferenceLine`),EE(zE,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,fill:`none`,stroke:`#ccc`,fillOpacity:1,strokeWidth:1,position:`middle`});function BE(){return BE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BE.apply(this,arguments)}function VE(e){"@babel/helpers - typeof";return VE=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},VE(e)}function HE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HE(Object(n),!0).forEach(function(t){eD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WE(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function GE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,tD(r.key),r)}}function KE(e,t,n){return t&&GE(e.prototype,t),n&&GE(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function qE(e,t,n){return t=ZE(t),JE(e,XE()?Reflect.construct(t,n||[],ZE(e).constructor):t.apply(e,n))}function JE(e,t){if(t&&(VE(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return YE(e)}function YE(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function XE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XE=function(){return!!e})()}function ZE(e){return ZE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZE(e)}function QE(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&$E(e,t)}function $E(e,t){return $E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$E(e,t)}function eD(e,t,n){return t=tD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tD(e){var t=nD(e,`string`);return VE(t)==`symbol`?t:t+``}function nD(e,t){if(VE(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(VE(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var rD=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,a=VT({x:r.scale,y:i.scale}),o=a.apply({x:t,y:n},{bandAware:!0});return Bw(e,`discard`)&&!a.isInRange(o)?null:o},iD=function(e){function t(){return WE(this,t),qE(this,t,arguments)}return QE(t,e),KE(t,[{key:`render`,value:function(){var e=this.props,n=e.x,r=e.y,i=e.r,a=e.alwaysShow,s=e.clipPathId,c=R(n),l=R(r);if(Pt(a===void 0,`The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.`),!c||!l)return null;var u=rD(this.props);if(!u)return null;var d=u.x,f=u.y,p=this.props,m=p.shape,h=p.className,g=UE(UE({clipPath:Bw(this.props,`hidden`)?`url(#${s})`:void 0},V(this.props,!0)),{},{cx:d,cy:f});return F.createElement(H,{className:o(`recharts-reference-dot`,h)},t.renderDot(m,g),I_.renderCallByParent(this.props,{x:d-i,y:f-i,width:2*i,height:2*i}))}}])}(F.Component);eD(iD,`displayName`,`ReferenceDot`),eD(iD,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,r:10,fill:`#fff`,stroke:`#ccc`,fillOpacity:1,strokeWidth:1}),eD(iD,`renderDot`,function(e,t){return F.isValidElement(e)?F.cloneElement(e,t):(0,B.default)(e)?e(t):F.createElement(Kx,BE({},t,{cx:t.cx,cy:t.cy,className:`recharts-reference-dot-dot`}))});function aD(){return aD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aD.apply(this,arguments)}function oD(e){"@babel/helpers - typeof";return oD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oD(e)}function sD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sD(Object(n),!0).forEach(function(t){yD(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lD(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function uD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,bD(r.key),r)}}function dD(e,t,n){return t&&uD(e.prototype,t),n&&uD(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function fD(e,t,n){return t=gD(t),pD(e,hD()?Reflect.construct(t,n||[],gD(e).constructor):t.apply(e,n))}function pD(e,t){if(t&&(oD(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return mD(e)}function mD(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function hD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hD=function(){return!!e})()}function gD(e){return gD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gD(e)}function _D(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&vD(e,t)}function vD(e,t){return vD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vD(e,t)}function yD(e,t,n){return t=bD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bD(e){var t=xD(e,`string`);return oD(t)==`symbol`?t:t+``}function xD(e,t){if(oD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(oD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var SD=function(e,t,n,r,i){var a=i.x1,o=i.x2,s=i.y1,c=i.y2,l=i.xAxis,u=i.yAxis;if(!l||!u)return null;var d=VT({x:l.scale,y:u.scale}),f={x:e?d.x.apply(a,{position:`start`}):d.x.rangeMin,y:n?d.y.apply(s,{position:`start`}):d.y.rangeMin},p={x:t?d.x.apply(o,{position:`end`}):d.x.rangeMax,y:r?d.y.apply(c,{position:`end`}):d.y.rangeMax};return Bw(i,`discard`)&&(!d.isInRange(f)||!d.isInRange(p))?null:RT(f,p)},CD=function(e){function t(){return lD(this,t),fD(this,t,arguments)}return _D(t,e),dD(t,[{key:`render`,value:function(){var e=this.props,n=e.x1,r=e.x2,i=e.y1,a=e.y2,s=e.className,c=e.alwaysShow,l=e.clipPathId;Pt(c===void 0,`The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.`);var u=R(n),d=R(r),f=R(i),p=R(a),m=this.props.shape;if(!u&&!d&&!f&&!p&&!m)return null;var h=SD(u,d,f,p,this.props);if(!h&&!m)return null;var g=Bw(this.props,`hidden`)?`url(#${l})`:void 0;return F.createElement(H,{className:o(`recharts-reference-area`,s)},t.renderRect(m,cD(cD({clipPath:g},V(this.props,!0)),h)),I_.renderCallByParent(this.props,h))}}])}(F.Component);yD(CD,`displayName`,`ReferenceArea`),yD(CD,`defaultProps`,{isFront:!1,ifOverflow:`discard`,xAxisId:0,yAxisId:0,r:10,fill:`#ccc`,fillOpacity:.5,stroke:`none`,strokeWidth:1}),yD(CD,`renderRect`,function(e,t){return F.isValidElement(e)?F.cloneElement(e,t):(0,B.default)(e)?e(t):F.createElement(kx,aD({},t,{className:`recharts-reference-area-rect`}))});function wD(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)if(n===void 0||n(e[i])===!0)r.push(e[i]);else return;return r}function TD(e,t,n){return UT({width:e.width+t.width,height:e.height+t.height},n)}function ED(e,t,n){var r=n===`width`,i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function DD(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function OD(e,t){return wD(e,t+1)}function kD(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:wD(r,l)};var a=c,d,f=function(){return d===void 0&&(d=n(t,a)),d},p=t.coordinate,m=c===0||DD(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function AD(e){"@babel/helpers - typeof";return AD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},AD(e)}function jD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jD(Object(n),!0).forEach(function(t){ND(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ND(e,t,n){return t=PD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PD(e){var t=FD(e,`string`);return AD(t)==`symbol`?t:t+``}function FD(e,t){if(AD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(AD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ID(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,s=t.start,c=t.end,l=function(t){var r=a[t],l,u=function(){return l===void 0&&(l=n(r,t)),l};if(t===o-1){var d=e*(r.coordinate+e*u()/2-c);a[t]=r=MD(MD({},r),{},{tickCoord:d>0?r.coordinate-d*e:r.coordinate})}else a[t]=r=MD(MD({},r),{},{tickCoord:r.coordinate});DD(e,r.tickCoord,u,s,c)&&(c=r.tickCoord-e*(u()/2+i),a[t]=MD(MD({},r),{},{isShow:!0}))},u=o-1;u>=0;u--)l(u);return a}function LD(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,c=t.start,l=t.end;if(a){var u=r[s-1],d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=MD(MD({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),DD(e,u.tickCoord,function(){return d},c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=MD(MD({},u),{},{isShow:!0}))}for(var p=a?s-1:s,m=function(t){var r=o[t],a,s=function(){return a===void 0&&(a=n(r,t)),a};if(t===0){var u=e*(r.coordinate-e*s()/2-c);o[t]=r=MD(MD({},r),{},{tickCoord:u<0?r.coordinate-u*e:r.coordinate})}else o[t]=r=MD(MD({},r),{},{tickCoord:r.coordinate});DD(e,r.tickCoord,s,c,l)&&(c=r.tickCoord+e*(s()/2+i),o[t]=MD(MD({},r),{},{isShow:!0}))},h=0;h<p;h++)m(h);return o}function RD(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(L(c)||Zo.isSsr)return OD(i,typeof c==`number`&&L(c)?c:0);var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?Js(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=function(e,r){var i=(0,B.default)(l)?l(e.value,r):e.value;return p===`width`?TD(Js(i,{fontSize:t,letterSpacing:n}),m,d):Js(i,{fontSize:t,letterSpacing:n})[p]},g=i.length>=2?Pe(i[1].coordinate-i[0].coordinate):1,_=ED(a,g,p);return c===`equidistantPreserveStart`?kD(g,_,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?LD(g,_,h,i,o,c===`preserveStartEnd`):ID(g,_,h,i,o),f.filter(function(e){return e.isShow}))}var zD=[`viewBox`],BD=[`viewBox`],VD=[`ticks`];function HD(e){"@babel/helpers - typeof";return HD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},HD(e)}function UD(){return UD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UD.apply(this,arguments)}function WD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WD(Object(n),!0).forEach(function(t){iO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KD(e,t){if(e==null)return{};var n=qD(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qD(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function JD(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function YD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,aO(r.key),r)}}function XD(e,t,n){return t&&YD(e.prototype,t),n&&YD(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function ZD(e,t,n){return t=tO(t),QD(e,eO()?Reflect.construct(t,n||[],tO(e).constructor):t.apply(e,n))}function QD(e,t){if(t&&(HD(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return $D(e)}function $D(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function eO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eO=function(){return!!e})()}function tO(e){return tO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tO(e)}function nO(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&rO(e,t)}function rO(e,t){return rO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rO(e,t)}function iO(e,t,n){return t=aO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aO(e){var t=oO(e,`string`);return HD(t)==`symbol`?t:t+``}function oO(e,t){if(HD(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(HD(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var sO=function(e){function t(e){var n;return JD(this,t),n=ZD(this,t,[e]),n.state={fontSize:``,letterSpacing:``},n}return nO(t,e),XD(t,[{key:`shouldComponentUpdate`,value:function(e,t){var n=e.viewBox,r=KD(e,zD),i=this.props,a=i.viewBox,o=KD(i,BD);return!Ke(n,a)||!Ke(r,o)||!Ke(t,this.state)}},{key:`componentDidMount`,value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`)[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:`getTickLineCoord`,value:function(e){var t=this.props,n=t.x,r=t.y,i=t.width,a=t.height,o=t.orientation,s=t.tickSize,c=t.mirror,l=t.tickMargin,u,d,f,p,m,h,g=c?-1:1,_=e.tickSize||s,v=L(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case`top`:u=d=e.coordinate,p=r+ +!c*a,f=p-g*_,h=f-g*l,m=v;break;case`left`:f=p=e.coordinate,d=n+ +!c*i,u=d-g*_,m=u-g*l,h=v;break;case`right`:f=p=e.coordinate,d=n+ +c*i,u=d+g*_,m=u+g*l,h=v;break;default:u=d=e.coordinate,p=r+ +c*a,f=p+g*_,h=f+g*l,m=v;break}return{line:{x1:u,y1:f,x2:d,y2:p},tick:{x:m,y:h}}}},{key:`getTickTextAnchor`,value:function(){var e=this.props,t=e.orientation,n=e.mirror,r;switch(t){case`left`:r=n?`start`:`end`;break;case`right`:r=n?`end`:`start`;break;default:r=`middle`;break}return r}},{key:`getTickVerticalAnchor`,value:function(){var e=this.props,t=e.orientation,n=e.mirror,r=`end`;switch(t){case`left`:case`right`:r=`middle`;break;case`top`:r=n?`start`:`end`;break;default:r=n?`end`:`start`;break}return r}},{key:`renderAxisLine`,value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,l=GD(GD(GD({},V(this.props,!1)),V(c,!1)),{},{fill:`none`});if(a===`top`||a===`bottom`){var u=+(a===`top`&&!s||a===`bottom`&&s);l=GD(GD({},l),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(a===`left`&&!s||a===`right`&&s);l=GD(GD({},l),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return F.createElement(`line`,UD({},l,{className:o(`recharts-cartesian-axis-line`,(0,Me.default)(c,`className`))}))}},{key:`renderTicks`,value:function(e,n,r){var i=this,a=this.props,s=a.tickLine,c=a.stroke,l=a.tick,u=a.tickFormatter,d=a.unit,f=RD(GD(GD({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),h=V(this.props,!1),g=V(l,!1),_=GD(GD({},h),{},{fill:`none`},V(s,!1)),v=f.map(function(e,n){var r=i.getTickLineCoord(e),a=r.line,v=r.tick,y=GD(GD(GD(GD({textAnchor:p,verticalAnchor:m},h),{},{stroke:`none`,fill:c},g),v),{},{index:n,payload:e,visibleTicksCount:f.length,tickFormatter:u});return F.createElement(H,UD({className:`recharts-cartesian-axis-tick`,key:`tick-${e.value}-${e.coordinate}-${e.tickCoord}`},tt(i.props,e,n)),s&&F.createElement(`line`,UD({},_,a,{className:o(`recharts-cartesian-axis-tick-line`,(0,Me.default)(s,`className`))})),l&&t.renderTickItem(l,y,`${(0,B.default)(u)?u(e.value,n):e.value}${d||``}`))});return F.createElement(`g`,{className:`recharts-cartesian-axis-ticks`},v)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,s=t.className;if(t.hide)return null;var c=this.props,l=c.ticks,u=KD(c,VD),d=l;return(0,B.default)(a)&&(d=l&&l.length>0?a(this.props):a(u)),r<=0||i<=0||!d||!d.length?null:F.createElement(H,{className:o(`recharts-cartesian-axis`,s),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),I_.renderCallByParent(this.props))}}],[{key:`renderTickItem`,value:function(e,t,n){var r,i=o(t.className,`recharts-cartesian-axis-tick-value`);return r=F.isValidElement(e)?F.cloneElement(e,GD(GD({},t),{},{className:i})):(0,B.default)(e)?e(GD(GD({},t),{},{className:i})):F.createElement(Bc,UD({},t,{className:`recharts-cartesian-axis-tick-value`}),n),r}}])}(F.Component);iO(sO,`displayName`,`CartesianAxis`),iO(sO,`defaultProps`,{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`});var cO=[`x1`,`y1`,`x2`,`y2`,`key`],lO=[`offset`];function uO(e){"@babel/helpers - typeof";return uO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uO(e)}function dO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dO(Object(n),!0).forEach(function(t){pO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pO(e,t,n){return t=mO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mO(e){var t=hO(e,`string`);return uO(t)==`symbol`?t:t+``}function hO(e,t){if(uO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gO(){return gO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gO.apply(this,arguments)}function _O(e,t){if(e==null)return{};var n=vO(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vO(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var yO=function(e){var t=e.fill;if(!t||t===`none`)return null;var n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.ry;return F.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function bO(e,t){var n;if(F.isValidElement(e))n=F.cloneElement(e,t);else if((0,B.default)(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,c=V(_O(t,cO),!1);c.offset;var l=_O(c,lO);n=F.createElement(`line`,gO({},l,{x1:r,y1:i,x2:a,y2:o,fill:`none`,key:s}))}return n}function xO(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(r,a){return bO(i,fO(fO({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:`line-${a}`,index:a}))});return F.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},o)}function SO(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(r,a){return bO(i,fO(fO({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:`line-${a}`,index:a}))});return F.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},o)}function CO(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal;if(!(c===void 0||c)||!t||!t.length)return null;var l=s.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==l[0]&&l.unshift(0);var u=l.map(function(e,s){var c=l[s+1]?l[s+1]-e:i+o-e;if(c<=0)return null;var u=s%t.length;return F.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:c,width:a,stroke:`none`,fill:t[u],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return F.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function wO(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,l=e.verticalPoints;if(!n||!r||!r.length)return null;var u=l.map(function(e){return Math.round(e+a-a)}).sort(function(e,t){return e-t});a!==u[0]&&u.unshift(0);var d=u.map(function(e,t){var n=u[t+1]?u[t+1]-e:a+s-e;if(n<=0)return null;var l=t%r.length;return F.createElement(`rect`,{key:`react-${t}`,x:e,y:o,width:n,height:c,stroke:`none`,fill:r[l],fillOpacity:i,className:`recharts-cartesian-grid-bg`})});return F.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},d)}var TO=function(e,t){var n=e.xAxis,r=e.width,i=e.height,a=e.offset;return xg(RD(fO(fO(fO({},sO.defaultProps),n),{},{ticks:Sg(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},EO=function(e,t){var n=e.yAxis,r=e.width,i=e.height,a=e.offset;return xg(RD(fO(fO(fO({},sO.defaultProps),n),{},{ticks:Sg(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},DO={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[]};function OO(e){var t=uE(),n=dE(),r=lE(),i=fO(fO({},e),{},{stroke:e.stroke??DO.stroke,fill:e.fill??DO.fill,horizontal:e.horizontal??DO.horizontal,horizontalFill:e.horizontalFill??DO.horizontalFill,vertical:e.vertical??DO.vertical,verticalFill:e.verticalFill??DO.verticalFill,x:L(e.x)?e.x:r.left,y:L(e.y)?e.y:r.top,width:L(e.width)?e.width:r.width,height:L(e.height)?e.height:r.height}),a=i.x,o=i.y,s=i.width,c=i.height,l=i.syncWithTicks,u=i.horizontalValues,d=i.verticalValues,f=aE(),p=oE();if(!L(s)||s<=0||!L(c)||c<=0||!L(a)||a!==+a||!L(o)||o!==+o)return null;var m=i.verticalCoordinatesGenerator||TO,h=i.horizontalCoordinatesGenerator||EO,g=i.horizontalPoints,_=i.verticalPoints;if((!g||!g.length)&&(0,B.default)(h)){var v=u&&u.length,y=h({yAxis:p?fO(fO({},p),{},{ticks:v?u:p.ticks}):void 0,width:t,height:n,offset:r},v?!0:l);Pt(Array.isArray(y),`horizontalCoordinatesGenerator should return Array but instead it returned [${uO(y)}]`),Array.isArray(y)&&(g=y)}if((!_||!_.length)&&(0,B.default)(m)){var b=d&&d.length,x=m({xAxis:f?fO(fO({},f),{},{ticks:b?d:f.ticks}):void 0,width:t,height:n,offset:r},b?!0:l);Pt(Array.isArray(x),`verticalCoordinatesGenerator should return Array but instead it returned [${uO(x)}]`),Array.isArray(x)&&(_=x)}return F.createElement(`g`,{className:`recharts-cartesian-grid`},F.createElement(yO,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),F.createElement(xO,gO({},i,{offset:r,horizontalPoints:g,xAxis:f,yAxis:p})),F.createElement(SO,gO({},i,{offset:r,verticalPoints:_,xAxis:f,yAxis:p})),F.createElement(CO,gO({},i,{horizontalPoints:g})),F.createElement(wO,gO({},i,{verticalPoints:_})))}OO.displayName=`CartesianGrid`;var kO=[`type`,`layout`,`connectNulls`,`ref`],AO=[`key`];function jO(e){"@babel/helpers - typeof";return jO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},jO(e)}function MO(e,t){if(e==null)return{};var n=NO(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NO(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function PO(){return PO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PO.apply(this,arguments)}function FO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?FO(Object(n),!0).forEach(function(t){$O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LO(e){return VO(e)||BO(e)||zO(e)||RO()}function RO(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zO(e,t){if(e){if(typeof e==`string`)return HO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HO(e,t)}}function BO(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function VO(e){if(Array.isArray(e))return HO(e)}function HO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function UO(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function WO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ek(r.key),r)}}function GO(e,t,n){return t&&WO(e.prototype,t),n&&WO(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function KO(e,t,n){return t=XO(t),qO(e,YO()?Reflect.construct(t,n||[],XO(e).constructor):t.apply(e,n))}function qO(e,t){if(t&&(jO(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return JO(e)}function JO(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function YO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YO=function(){return!!e})()}function XO(e){return XO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XO(e)}function ZO(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&QO(e,t)}function QO(e,t){return QO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QO(e,t)}function $O(e,t,n){return t=ek(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ek(e){var t=tk(e,`string`);return jO(t)==`symbol`?t:t+``}function tk(e,t){if(jO(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(jO(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nk=function(e){function t(){var e;UO(this,t);var n=[...arguments];return e=KO(this,t,[].concat(n)),$O(e,`state`,{isAnimationFinished:!0,totalLength:0}),$O(e,`generateSimpleStrokeDasharray`,function(e,t){return`${t}px ${e-t}px`}),$O(e,`getStrokeDasharray`,function(n,r,i){var a=i.reduce(function(e,t){return e+t});if(!a)return e.generateSimpleStrokeDasharray(r,n);for(var o=Math.floor(n/a),s=n%a,c=r-n,l=[],u=0,d=0;u<i.length;d+=i[u],++u)if(d+i[u]>s){l=[].concat(LO(i.slice(0,u)),[s-d]);break}var f=l.length%2==0?[0,c]:[c];return[].concat(LO(t.repeat(i,o)),LO(l),f).map(function(e){return`${e}px`}).join(`, `)}),$O(e,`id`,Re(`recharts-line-`)),$O(e,`pathRef`,function(t){e.mainCurve=t}),$O(e,`handleAnimationEnd`,function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()}),$O(e,`handleAnimationStart`,function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()}),e}return ZO(t,e),GO(t,[{key:`componentDidMount`,value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:`componentDidUpdate`,value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:`getTotalLength`,value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}},{key:`renderErrorBar`,value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,a=n.yAxis,o=n.layout,s=n.children,c=ft(s,Gh);if(!c)return null;var l=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:q(e.payload,t)}},u={clipPath:e?`url(#clipPath-${t})`:null};return F.createElement(H,u,c.map(function(e){return F.cloneElement(e,{key:`bar-${e.props.dataKey}`,data:r,xAxis:i,yAxis:a,layout:o,dataPointFormatter:l})}))}},{key:`renderDots`,value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,o=i.points,s=i.dataKey,c=V(this.props,!1),l=V(a,!0),u=o.map(function(e,n){var r=IO(IO(IO({key:`dot-${n}`,r:3},c),l),{},{index:n,cx:e.x,cy:e.y,value:e.value,dataKey:s,payload:e.payload,points:o});return t.renderDotItem(a,r)}),d={clipPath:e?`url(#clipPath-${n?``:`dots-`}${r})`:null};return F.createElement(H,PO({className:`recharts-line-dots`,key:`dots`},d),u)}},{key:`renderCurveStatically`,value:function(e,t,n,r){var i=this.props,a=i.type,o=i.layout,s=i.connectNulls;i.ref;var c=IO(IO(IO({},V(MO(i,kO),!0)),{},{fill:`none`,className:`recharts-line-curve`,clipPath:t?`url(#clipPath-${n})`:null,points:e},r),{},{type:a,layout:o,connectNulls:s});return F.createElement(Nv,PO({},c,{pathRef:this.pathRef}))}},{key:`renderCurveWithAnimation`,value:function(e,t){var n=this,r=this.props,i=r.points,a=r.strokeDasharray,o=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,l=r.animationEasing,u=r.animationId,d=r.animateNewValues,f=r.width,p=r.height,m=this.state,h=m.prevPoints,g=m.totalLength;return F.createElement(fx,{begin:s,duration:c,isActive:o,easing:l,from:{t:0},to:{t:1},key:`line-${u}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var o=r.t;if(h){var s=h.length/i.length,c=i.map(function(e,t){var n=Math.floor(t*s);if(h[n]){var r=h[n],i=z(r.x,e.x),a=z(r.y,e.y);return IO(IO({},e),{},{x:i(o),y:a(o)})}if(d){var c=z(f*2,e.x),l=z(p/2,e.y);return IO(IO({},e),{},{x:c(o),y:l(o)})}return IO(IO({},e),{},{x:e.x,y:e.y})});return n.renderCurveStatically(c,e,t)}var l=z(0,g)(o),u;if(a){var m=`${a}`.split(/[,\s]+/gim).map(function(e){return parseFloat(e)});u=n.getStrokeDasharray(l,g,m)}else u=n.generateSimpleStrokeDasharray(g,l);return n.renderCurveStatically(i,e,t,{strokeDasharray:u})})}},{key:`renderCurve`,value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,a=this.state,o=a.prevPoints,s=a.totalLength;return i&&r&&r.length&&(!o&&s>0||!(0,Nm.default)(o,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.xAxis,s=e.yAxis,c=e.top,l=e.left,u=e.width,d=e.height,f=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,h=r.length===1,g=o(`recharts-line`,i),_=a&&a.allowDataOverflow,v=s&&s.allowDataOverflow,y=_||v,b=(0,I.default)(p)?this.id:p,x=V(n,!1)??{r:3,strokeWidth:2},S=x.r,C=S===void 0?3:S,w=x.strokeWidth,T=w===void 0?2:w,E=(_t(n)?n:{}).clipDot,D=E===void 0?!0:E,O=C*2+T;return F.createElement(H,{className:g},_||v?F.createElement(`defs`,null,F.createElement(`clipPath`,{id:`clipPath-${b}`},F.createElement(`rect`,{x:_?l:l-u/2,y:v?c:c-d/2,width:_?u:u*2,height:v?d:d*2})),!D&&F.createElement(`clipPath`,{id:`clipPath-dots-${b}`},F.createElement(`rect`,{x:l-O/2,y:c-O/2,width:u+O,height:d+O}))):null,!h&&this.renderCurve(y,b),this.renderErrorBar(y,b),(h||n)&&this.renderDots(y,D,b),(!f||m)&&iv.renderCallByParent(this.props,r))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.points===t.curPoints?null:{curPoints:e.points}:{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}}},{key:`repeat`,value:function(e,t){for(var n=e.length%2==0?e:[].concat(LO(e),[0]),r=[],i=0;i<t;++i)r=[].concat(LO(r),LO(n));return r}},{key:`renderDotItem`,value:function(e,t){var n;if(F.isValidElement(e))n=F.cloneElement(e,t);else if((0,B.default)(e))n=e(t);else{var r=t.key,i=MO(t,AO),a=o(`recharts-line-dot`,typeof e==`boolean`?``:e.className);n=F.createElement(Kx,PO({key:r},i,{className:a}))}return n}}])}(F.PureComponent);$O(nk,`displayName`,`Line`),$O(nk,`defaultProps`,{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,fill:`#fff`,points:[],isAnimationActive:!Zo.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,hide:!1,label:!1}),$O(nk,`getComposedData`,function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,c=e.displayedData,l=e.offset,u=t.layout;return IO({points:c.map(function(e,t){var c=q(e,o);return u===`horizontal`?{x:Pg({axis:n,ticks:i,bandSize:s,entry:e,index:t}),y:(0,I.default)(c)?null:r.scale(c),value:c,payload:e}:{x:(0,I.default)(c)?null:n.scale(c),y:Pg({axis:r,ticks:a,bandSize:s,entry:e,index:t}),value:c,payload:e}}),layout:u},l)});var rk=[`layout`,`type`,`stroke`,`connectNulls`,`isRange`,`ref`],ik=[`key`],ak;function ok(e){"@babel/helpers - typeof";return ok=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ok(e)}function sk(e,t){if(e==null)return{};var n=ck(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ck(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lk(){return lk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lk.apply(this,arguments)}function uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uk(Object(n),!0).forEach(function(t){Sk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fk(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function pk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ck(r.key),r)}}function mk(e,t,n){return t&&pk(e.prototype,t),n&&pk(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function hk(e,t,n){return t=yk(t),gk(e,vk()?Reflect.construct(t,n||[],yk(e).constructor):t.apply(e,n))}function gk(e,t){if(t&&(ok(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return _k(e)}function _k(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function vk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vk=function(){return!!e})()}function yk(e){return yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yk(e)}function bk(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&xk(e,t)}function xk(e,t){return xk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xk(e,t)}function Sk(e,t,n){return t=Ck(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ck(e){var t=wk(e,`string`);return ok(t)==`symbol`?t:t+``}function wk(e,t){if(ok(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ok(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Tk=function(e){function t(){var e;fk(this,t);var n=[...arguments];return e=hk(this,t,[].concat(n)),Sk(e,`state`,{isAnimationFinished:!0}),Sk(e,`id`,Re(`recharts-area-`)),Sk(e,`handleAnimationEnd`,function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),(0,B.default)(t)&&t()}),Sk(e,`handleAnimationStart`,function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),(0,B.default)(t)&&t()}),e}return bk(t,e),mk(t,[{key:`renderDots`,value:function(e,n,r){var i=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(i&&!a)return null;var o=this.props,s=o.dot,c=o.points,l=o.dataKey,u=V(this.props,!1),d=V(s,!0),f=c.map(function(e,n){var r=dk(dk(dk({key:`dot-${n}`,r:3},u),d),{},{index:n,cx:e.x,cy:e.y,dataKey:l,value:e.value,payload:e.payload,points:c});return t.renderDotItem(s,r)}),p={clipPath:e?`url(#clipPath-${n?``:`dots-`}${r})`:null};return F.createElement(H,lk({className:`recharts-area-dots`},p),f)}},{key:`renderHorizontalRect`,value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].x,o=r[r.length-1].x,s=e*Math.abs(a-o),c=(0,Am.default)(r.map(function(e){return e.y||0}));return L(n)&&typeof n==`number`?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max((0,Am.default)(n.map(function(e){return e.y||0})),c)),L(c)?F.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}},{key:`renderVerticalRect`,value:function(e){var t=this.props,n=t.baseLine,r=t.points,i=t.strokeWidth,a=r[0].y,o=r[r.length-1].y,s=e*Math.abs(a-o),c=(0,Am.default)(r.map(function(e){return e.x||0}));return L(n)&&typeof n==`number`?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max((0,Am.default)(n.map(function(e){return e.x||0})),c)),L(c)?F.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}},{key:`renderClipRect`,value:function(e){return this.props.layout===`vertical`?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:`renderAreaStatically`,value:function(e,t,n,r){var i=this.props,a=i.layout,o=i.type,s=i.stroke,c=i.connectNulls,l=i.isRange;i.ref;var u=sk(i,rk);return F.createElement(H,{clipPath:n?`url(#clipPath-${r})`:null},F.createElement(Nv,lk({},V(u,!0),{points:e,connectNulls:c,type:o,baseLine:t,layout:a,stroke:`none`,className:`recharts-area-area`})),s!==`none`&&F.createElement(Nv,lk({},V(this.props,!1),{className:`recharts-area-curve`,layout:a,type:o,connectNulls:c,fill:`none`,points:e})),s!==`none`&&l&&F.createElement(Nv,lk({},V(this.props,!1),{className:`recharts-area-curve`,layout:a,type:o,connectNulls:c,fill:`none`,points:t})))}},{key:`renderAreaWithAnimation`,value:function(e,t){var n=this,r=this.props,i=r.points,a=r.baseLine,o=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,l=r.animationEasing,u=r.animationId,d=this.state,f=d.prevPoints,p=d.prevBaseLine;return F.createElement(fx,{begin:s,duration:c,isActive:o,easing:l,from:{t:0},to:{t:1},key:`area-${u}`,onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var o=r.t;if(f){var s=f.length/i.length,c=i.map(function(e,t){var n=Math.floor(t*s);if(f[n]){var r=f[n],i=z(r.x,e.x),a=z(r.y,e.y);return dk(dk({},e),{},{x:i(o),y:a(o)})}return e}),l=L(a)&&typeof a==`number`?z(p,a)(o):(0,I.default)(a)||(0,je.default)(a)?z(p,0)(o):a.map(function(e,t){var n=Math.floor(t*s);if(p[n]){var r=p[n],i=z(r.x,e.x),a=z(r.y,e.y);return dk(dk({},e),{},{x:i(o),y:a(o)})}return e});return n.renderAreaStatically(c,l,e,t)}return F.createElement(H,null,F.createElement(`defs`,null,F.createElement(`clipPath`,{id:`animationClipPath-${t}`},n.renderClipRect(o))),F.createElement(H,{clipPath:`url(#animationClipPath-${t})`},n.renderAreaStatically(i,a,e,t)))})}},{key:`renderArea`,value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,a=n.isAnimationActive,o=this.state,s=o.prevPoints,c=o.prevBaseLine,l=o.totalLength;return a&&r&&r.length&&(!s&&l>0||!(0,Nm.default)(s,r)||!(0,Nm.default)(c,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:`render`,value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,s=e.left,c=e.xAxis,l=e.yAxis,u=e.width,d=e.height,f=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,h=r.length===1,g=o(`recharts-area`,i),_=c&&c.allowDataOverflow,v=l&&l.allowDataOverflow,y=_||v,b=(0,I.default)(p)?this.id:p,x=V(n,!1)??{r:3,strokeWidth:2},S=x.r,C=S===void 0?3:S,w=x.strokeWidth,T=w===void 0?2:w,E=(_t(n)?n:{}).clipDot,D=E===void 0?!0:E,O=C*2+T;return F.createElement(H,{className:g},_||v?F.createElement(`defs`,null,F.createElement(`clipPath`,{id:`clipPath-${b}`},F.createElement(`rect`,{x:_?s:s-u/2,y:v?a:a-d/2,width:_?u:u*2,height:v?d:d*2})),!D&&F.createElement(`clipPath`,{id:`clipPath-dots-${b}`},F.createElement(`rect`,{x:s-O/2,y:a-O/2,width:u+O,height:d+O}))):null,h?null:this.renderArea(y,b),(n||h)&&this.renderDots(y,D,b),(!f||m)&&iv.renderCallByParent(this.props,r))}}],[{key:`getDerivedStateFromProps`,value:function(e,t){return e.animationId===t.prevAnimationId?e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null:{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}}}])}(F.PureComponent);ak=Tk,Sk(Tk,`displayName`,`Area`),Sk(Tk,`defaultProps`,{stroke:`#3182bd`,fill:`#3182bd`,fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:`line`,connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Zo.isSsr,animationBegin:0,animationDuration:1500,animationEasing:`ease`}),Sk(Tk,`getBaseValue`,function(e,t,n,r){var i=e.layout,a=e.baseValue,o=t.props.baseValue??a;if(L(o)&&typeof o==`number`)return o;var s=i===`horizontal`?r:n,c=s.scale.domain();if(s.type===`number`){var l=Math.max(c[0],c[1]),u=Math.min(c[0],c[1]);return o===`dataMin`?u:o===`dataMax`||l<0?l:Math.max(Math.min(c[0],c[1]),0)}return o===`dataMin`?c[0]:o===`dataMax`?c[1]:c[0]}),Sk(Tk,`getComposedData`,function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,c=e.dataKey,l=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=t.layout,m=l&&l.length,h=ak.getBaseValue(t,n,r,i),g=p===`horizontal`,_=!1,v=d.map(function(e,t){var n;m?n=l[u+t]:(n=q(e,c),Array.isArray(n)?_=!0:n=[h,n]);var d=n[1]==null||m&&q(e,c)==null;return g?{x:Pg({axis:r,ticks:a,bandSize:s,entry:e,index:t}),y:d?null:i.scale(n[1]),value:n,payload:e}:{x:d?null:r.scale(n[1]),y:Pg({axis:i,ticks:o,bandSize:s,entry:e,index:t}),value:n,payload:e}});return dk({points:v,baseLine:m||_?v.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:t!=null&&e.y!=null?i.scale(t):null}:{x:t==null?null:r.scale(t),y:e.y}}):g?i.scale(h):r.scale(h),layout:p,isRange:_},f)}),Sk(Tk,`renderDotItem`,function(e,t){var n;if(F.isValidElement(e))n=F.cloneElement(e,t);else if((0,B.default)(e))n=e(t);else{var r=o(`recharts-area-dot`,typeof e==`boolean`?``:e.className),i=t.key,a=sk(t,ik);n=F.createElement(Kx,lk({},a,{key:i,className:r}))}return n});function Ek(e){"@babel/helpers - typeof";return Ek=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ek(e)}function Dk(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ok(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Rk(r.key),r)}}function kk(e,t,n){return t&&Ok(e.prototype,t),n&&Ok(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Ak(e,t,n){return t=Pk(t),jk(e,Nk()?Reflect.construct(t,n||[],Pk(e).constructor):t.apply(e,n))}function jk(e,t){if(t&&(Ek(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Mk(e)}function Mk(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Nk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nk=function(){return!!e})()}function Pk(e){return Pk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pk(e)}function Fk(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Ik(e,t)}function Ik(e,t){return Ik=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ik(e,t)}function Lk(e,t,n){return t=Rk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rk(e){var t=zk(e,`string`);return Ek(t)==`symbol`?t:t+``}function zk(e,t){if(Ek(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ek(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Bk(){return Bk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bk.apply(this,arguments)}function Vk(e){var t=e.xAxisId,n=uE(),r=dE(),i=iE(t);return i==null?null:F.createElement(sO,Bk({},i,{className:o(`recharts-${i.axisType} ${i.axisType}`,i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return Sg(e,!0)}}))}var Hk=function(e){function t(){return Dk(this,t),Ak(this,t,arguments)}return Fk(t,e),kk(t,[{key:`render`,value:function(){return F.createElement(Vk,this.props)}}])}(F.Component);Lk(Hk,`displayName`,`XAxis`),Lk(Hk,`defaultProps`,{allowDecimals:!0,hide:!1,orientation:`bottom`,width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:`category`,padding:{left:0,right:0},allowDataOverflow:!1,scale:`auto`,reversed:!1,allowDuplicatedCategory:!0});function Uk(e){"@babel/helpers - typeof";return Uk=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Uk(e)}function Wk(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Gk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,tA(r.key),r)}}function Kk(e,t,n){return t&&Gk(e.prototype,t),n&&Gk(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function qk(e,t,n){return t=Zk(t),Jk(e,Xk()?Reflect.construct(t,n||[],Zk(e).constructor):t.apply(e,n))}function Jk(e,t){if(t&&(Uk(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Yk(e)}function Yk(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Xk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xk=function(){return!!e})()}function Zk(e){return Zk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zk(e)}function Qk(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&$k(e,t)}function $k(e,t){return $k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$k(e,t)}function eA(e,t,n){return t=tA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tA(e){var t=nA(e,`string`);return Uk(t)==`symbol`?t:t+``}function nA(e,t){if(Uk(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Uk(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function rA(){return rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rA.apply(this,arguments)}var iA=function(e){var t=e.yAxisId,n=uE(),r=dE(),i=sE(t);return i==null?null:F.createElement(sO,rA({},i,{className:o(`recharts-${i.axisType} ${i.axisType}`,i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return Sg(e,!0)}}))},aA=function(e){function t(){return Wk(this,t),qk(this,t,arguments)}return Qk(t,e),Kk(t,[{key:`render`,value:function(){return F.createElement(iA,this.props)}}])}(F.Component);eA(aA,`displayName`,`YAxis`),eA(aA,`defaultProps`,{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:`left`,width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:`number`,padding:{top:0,bottom:0},allowDataOverflow:!1,scale:`auto`,reversed:!1});function oA(e){return uA(e)||lA(e)||cA(e)||sA()}function sA(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cA(e,t){if(e){if(typeof e==`string`)return dA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dA(e,t)}}function lA(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function uA(e){if(Array.isArray(e))return dA(e)}function dA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var fA=function(e,t,n,r,i){var a=ft(e,zE),o=ft(e,iD),s=[].concat(oA(a),oA(o)),c=ft(e,CD),l=`${r}Id`,u=r[0],d=t;if(s.length&&(d=s.reduce(function(e,t){if(t.props[l]===n&&Bw(t.props,`extendDomain`)&&L(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},d)),c.length){var f=`${u}1`,p=`${u}2`;d=c.reduce(function(e,t){if(t.props[l]===n&&Bw(t.props,`extendDomain`)&&L(t.props[f])&&L(t.props[p])){var r=t.props[f],i=t.props[p];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e},d)}return i&&i.length&&(d=i.reduce(function(e,t){return L(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},pA=new(t(n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))())).default,mA=`recharts.syncMouseEvents`;function hA(e){"@babel/helpers - typeof";return hA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hA(e)}function gA(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,bA(r.key),r)}}function vA(e,t,n){return t&&_A(e.prototype,t),n&&_A(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function yA(e,t,n){return t=bA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bA(e){var t=xA(e,`string`);return hA(t)==`symbol`?t:t+``}function xA(e,t){if(hA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(hA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var SA=function(){function e(){gA(this,e),yA(this,`activeIndex`,0),yA(this,`coordinateList`,[]),yA(this,`layout`,`horizontal`)}return vA(e,[{key:`setDetails`,value:function(e){var t=e.coordinateList,n=t===void 0?null:t,r=e.container,i=r===void 0?null:r,a=e.layout,o=a===void 0?null:a,s=e.offset,c=s===void 0?null:s,l=e.mouseHandlerCallback,u=l===void 0?null:l;this.coordinateList=n??this.coordinateList??[],this.container=i??this.container,this.layout=o??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=u??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:`focus`,value:function(){this.spoofMouse()}},{key:`keyboardEvent`,value:function(e){if(this.coordinateList.length!==0)switch(e.key){case`ArrowRight`:if(this.layout!==`horizontal`)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case`ArrowLeft`:if(this.layout!==`horizontal`)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break;default:break}}},{key:`setIndex`,value:function(e){this.activeIndex=e}},{key:`spoofMouse`,value:function(){if(this.layout===`horizontal`&&this.coordinateList.length!==0){var e=this.container.getBoundingClientRect(),t=e.x,n=e.y,r=e.height,i=this.coordinateList[this.activeIndex].coordinate,a=window?.scrollX||0,o=window?.scrollY||0,s=t+i+a,c=n+this.offset.top+r/2+o;this.mouseHandlerCallback({pageX:s,pageY:c})}}}])}();function CA(e,t,n){if(n===`number`&&t===!0&&Array.isArray(e)){var r=e?.[0],i=e?.[1];if(r&&i&&L(r)&&L(i))return!0}return!1}function wA(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}function TA(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle;return{points:[J(t,n,r,i),J(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function EA(e,t,n){var r,i,a,o;if(e===`horizontal`)r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e===`vertical`)i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e===`centric`){var s=t.cx,c=t.cy,l=t.innerRadius,u=t.outerRadius,d=t.angle,f=J(s,c,l,d),p=J(s,c,u,d);r=f.x,i=f.y,a=p.x,o=p.y}else return TA(t);return[{x:r,y:i},{x:a,y:o}]}function DA(e){"@babel/helpers - typeof";return DA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},DA(e)}function OA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OA(Object(n),!0).forEach(function(t){AA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function AA(e,t,n){return t=jA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jA(e){var t=MA(e,`string`);return DA(t)==`symbol`?t:t+``}function MA(e,t){if(DA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(DA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function NA(e){var t=e.element,n=e.tooltipEventType,r=e.isActive,i=e.activeCoordinate,a=e.activePayload,s=e.offset,c=e.activeTooltipIndex,l=e.tooltipAxisBandSize,u=e.layout,d=e.chartName,f=t.props.cursor??t.type.defaultProps?.cursor;if(!t||!f||!r||!i||d!==`ScatterChart`&&n!==`axis`)return null;var p,m=Nv;if(d===`ScatterChart`)p=i,m=iS;else if(d===`BarChart`)p=wA(u,i,s,l),m=kx;else if(u===`radial`){var h=TA(i),g=h.cx,_=h.cy,v=h.radius;p={cx:g,cy:_,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},m=yv}else p={points:EA(u,i,s)},m=Nv;var y=kA(kA(kA(kA({stroke:`#ccc`,pointerEvents:`none`},s),p),V(f,!1)),{},{payload:a,payloadIndex:c,className:o(`recharts-tooltip-cursor`,f.className)});return(0,F.isValidElement)(f)?(0,F.cloneElement)(f,y):(0,F.createElement)(m,y)}var PA=[`item`],FA=[`children`,`className`,`width`,`height`,`style`,`compact`,`title`,`desc`];function IA(e){"@babel/helpers - typeof";return IA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},IA(e)}function LA(){return LA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LA.apply(this,arguments)}function RA(e,t){return VA(e)||BA(e,t)||nj(e,t)||zA()}function zA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
64
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function VA(e){if(Array.isArray(e))return e}function HA(e,t){if(e==null)return{};var n=UA(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UA(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function WA(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function GA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,sj(r.key),r)}}function KA(e,t,n){return t&&GA(e.prototype,t),n&&GA(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function qA(e,t,n){return t=ZA(t),JA(e,XA()?Reflect.construct(t,n||[],ZA(e).constructor):t.apply(e,n))}function JA(e,t){if(t&&(IA(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return YA(e)}function YA(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function XA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XA=function(){return!!e})()}function ZA(e){return ZA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZA(e)}function QA(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&$A(e,t)}function $A(e,t){return $A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$A(e,t)}function ej(e){return ij(e)||rj(e)||nj(e)||tj()}function tj(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
65
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nj(e,t){if(e){if(typeof e==`string`)return aj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aj(e,t)}}function rj(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ij(e){if(Array.isArray(e))return aj(e)}function aj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oj(Object(n),!0).forEach(function(t){$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(e,t,n){return t=sj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sj(e){var t=cj(e,`string`);return IA(t)==`symbol`?t:t+``}function cj(e,t){if(IA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(IA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var lj={xAxis:[`bottom`,`top`],yAxis:[`left`,`right`]},uj={width:`100%`,height:`100%`},dj={x:0,y:0};function fj(e){return e}var pj=function(e,t){return t===`horizontal`?e.x:t===`vertical`?e.y:t===`centric`?e.angle:e.radius},mj=function(e,t,n,r){var i=t.find(function(e){return e&&e.index===n});if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.y};if(e===`vertical`)return{x:r.x,y:i.coordinate};if(e===`centric`){var a=i.coordinate,o=r.radius;return Q(Q(Q({},r),J(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,c=r.angle;return Q(Q(Q({},r),J(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return dj},hj=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,i=t.dataEndIndex,a=(n??[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(ej(e),ej(n)):e},[]);return a.length>0?a:e&&e.length&&L(r)&&L(i)?e.slice(r,i+1):[]};function gj(e){return e===`number`?[0,`auto`]:void 0}var _j=function(e,t,n,r){var i=e.graphicalItems,a=e.tooltipAxis,o=hj(t,e);return n<0||!i||!i.length||n>=o.length?null:i.reduce(function(i,s){var c=s.props.data??t;c&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1));var l=a.dataKey&&!a.allowDuplicatedCategory?He(c===void 0?o:c,a.dataKey,r):c&&c[n]||o[n];return l?[].concat(ej(i),[Gg(s,l)]):i},[])},vj=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},a=pj(i,n),o=e.orderedTooltipTicks,s=e.tooltipAxis,c=e.tooltipTicks,l=dg(a,o,c,s);if(l>=0&&c){var u=c[l]&&c[l].value;return{activeTooltipIndex:l,activeLabel:u,activePayload:_j(e,t,l,u),activeCoordinate:mj(n,o,l,i)}}return null},yj=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,a=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,d=e.stackOffset,f=bg(l,i);return n.reduce(function(t,n){var p=n.type.defaultProps===void 0?n.props:Q(Q({},n.type.defaultProps),n.props),m=p.type,h=p.dataKey,g=p.allowDataOverflow,_=p.allowDuplicatedCategory,v=p.scale,y=p.ticks,b=p.includeHidden,x=p[a];if(t[x])return t;var S=hj(e.data,{graphicalItems:r.filter(function(e){return(a in e.props?e.props[a]:e.type.defaultProps?.[a])===x}),dataStartIndex:s,dataEndIndex:c}),C=S.length,w,T,E;CA(p.domain,g,m)&&(w=Hg(p.domain,null,g),f&&(m===`number`||v!==`auto`)&&(E=ug(S,h,`category`)));var D=gj(m);if(!w||w.length===0){var O=p.domain??D;if(h){if(w=ug(S,h,m),m===`category`&&f){var k=Ve(w);_&&k?(T=w,w=(0,lw.default)(0,C)):_||(w=Wg(O,w,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(ej(e),[t])},[]))}else if(m===`category`)w=_?w.filter(function(e){return e!==``&&!(0,I.default)(e)}):Wg(O,w,n).reduce(function(e,t){return e.indexOf(t)>=0||t===``||(0,I.default)(t)?e:[].concat(ej(e),[t])},[]);else if(m===`number`){var A=vg(S,r.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps?.[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps?.hide;return t===x&&(b||!n)}),h,i,l);A&&(w=A)}f&&(m===`number`||v!==`auto`)&&(E=ug(S,h,`category`))}else w=f?(0,lw.default)(0,C):o&&o[x]&&o[x].hasStack&&m===`number`?d===`expand`?[0,1]:zg(o[x].stackGroups,s,c):yg(S,r.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps.hide;return t===x&&(b||!n)}),m,l,!0);if(m===`number`)w=fA(u,w,x,i,y),O&&(w=Hg(O,w,g));else if(m===`category`&&O){var j=O;w.every(function(e){return j.indexOf(e)>=0})&&(w=j)}}return Q(Q({},t),{},$({},x,Q(Q({},p),{},{axisType:i,domain:w,categoricalDomain:E,duplicateDomain:T,originalDomain:p.domain??D,isCategorical:f,layout:l})))},{})},bj=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,a=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.layout,u=e.children,d=hj(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),f=d.length,p=bg(l,i),m=-1;return n.reduce(function(e,t){var h=(t.type.defaultProps===void 0?t.props:Q(Q({},t.type.defaultProps),t.props))[a],g=gj(`number`);if(!e[h]){m++;var _;return p?_=(0,lw.default)(0,f):o&&o[h]&&o[h].hasStack?(_=zg(o[h].stackGroups,s,c),_=fA(u,_,h,i)):(_=Hg(g,yg(d,n.filter(function(e){var t=a in e.props?e.props[a]:e.type.defaultProps?.[a],n=`hide`in e.props?e.props.hide:e.type.defaultProps?.hide;return t===h&&!n}),`number`,l),r.defaultProps.allowDataOverflow),_=fA(u,_,h,i)),Q(Q({},e),{},$({},h,Q(Q({axisType:i},r.defaultProps),{},{hide:!0,orientation:(0,Me.default)(lj,`${i}.${m%2}`,null),domain:_,originalDomain:g,isCategorical:p,layout:l})))}return e},{})},xj=function(e,t){var n=t.axisType,r=n===void 0?`xAxis`:n,i=t.AxisComp,a=t.graphicalItems,o=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,l=e.children,u=`${r}Id`,d=ft(l,i),f={};return d&&d.length?f=yj(e,{axes:d,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:c}):a&&a.length&&(f=bj(e,{Axis:i,graphicalItems:a,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:c})),f},Sj=function(e){var t=Be(e),n=Sg(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:(0,oo.default)(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:Ug(t,n)}},Cj=function(e){var t=e.children,n=e.defaultShowTooltip,r=pt(t,Lw),i=0,a=0;return e.data&&e.data.length!==0&&(a=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(a=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!n}},wj=function(e){return!e||!e.length?!1:e.some(function(e){var t=ct(e&&e.type);return t&&t.indexOf(`Bar`)>=0})},Tj=function(e){return e===`horizontal`?{numericAxisName:`yAxis`,cateAxisName:`xAxis`}:e===`vertical`?{numericAxisName:`xAxis`,cateAxisName:`yAxis`}:e===`centric`?{numericAxisName:`radiusAxis`,cateAxisName:`angleAxis`}:{numericAxisName:`angleAxis`,cateAxisName:`radiusAxis`}},Ej=function(e,t){var n=e.props,r=e.graphicalItems,i=e.xAxisMap,a=i===void 0?{}:i,o=e.yAxisMap,s=o===void 0?{}:o,c=n.width,l=n.height,u=n.children,d=n.margin||{},f=pt(u,Lw),p=pt(u,Ia),m=Object.keys(s).reduce(function(e,t){var n=s[t],r=n.orientation;return!n.mirror&&!n.hide?Q(Q({},e),{},$({},r,e[r]+n.width)):e},{left:d.left||0,right:d.right||0}),h=Q(Q({},Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return!n.mirror&&!n.hide?Q(Q({},e),{},$({},r,(0,Me.default)(e,`${r}`)+n.height)):e},{top:d.top||0,bottom:d.bottom||0})),m),g=h.bottom;f&&(h.bottom+=f.props.height||Lw.defaultProps.height),p&&t&&(h=hg(h,r,n,t));var _=c-h.left-h.right,v=l-h.top-h.bottom;return Q(Q({brushBottom:g},h),{},{width:Math.max(_,0),height:Math.max(v,0)})},Dj=function(e,t){if(t===`xAxis`)return e[t].width;if(t===`yAxis`)return e[t].height},Oj=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.defaultTooltipEventType,i=r===void 0?`axis`:r,a=e.validateTooltipEventTypes,s=a===void 0?[`axis`]:a,c=e.axisComponents,l=e.legendContent,u=e.formatAxisMap,d=e.defaultProps,f=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,a=t.updateId,o=t.dataStartIndex,s=t.dataEndIndex,l=e.barSize,u=e.layout,d=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,m=Tj(u),h=m.numericAxisName,g=m.cateAxisName,_=wj(n),v=[];return n.forEach(function(n,m){var y=hj(e.data,{graphicalItems:[n],dataStartIndex:o,dataEndIndex:s}),b=n.type.defaultProps===void 0?n.props:Q(Q({},n.type.defaultProps),n.props),x=b.dataKey,S=b.maxBarSize,C=b[`${h}Id`],w=b[`${g}Id`],T=c.reduce(function(e,n){var r=t[`${n.axisType}Map`],i=b[`${n.axisType}Id`];!(r&&r[i]||n.axisType===`zAxis`)&&bh(!1);var a=r[i];return Q(Q({},e),{},$($({},n.axisType,a),`${n.axisType}Ticks`,Sg(a)))},{}),E=T[g],D=T[`${g}Ticks`],O=r&&r[C]&&r[C].hasStack&&Lg(n,r[C].stackGroups),k=ct(n.type).indexOf(`Bar`)>=0,A=Ug(E,D),j=[],M=_&&pg({barSize:l,stackGroups:r,totalSize:Dj(T,g)});if(k){var N=(0,I.default)(S)?p:S,P=Ug(E,D,!0)??N??0;j=mg({barGap:d,barCategoryGap:f,bandSize:P===A?A:P,sizeList:M[w],maxBarSize:N}),P!==A&&(j=j.map(function(e){return Q(Q({},e),{},{position:Q(Q({},e.position),{},{offset:e.position.offset-P/2})})}))}var ee=n&&n.type&&n.type.getComposedData;ee&&v.push({props:Q(Q({},ee(Q(Q({},T),{},{displayedData:y,props:e,dataKey:x,item:n,bandSize:A,barPosition:j,offset:i,stackedData:O,layout:u,dataStartIndex:o,dataEndIndex:s}))),{},$($($({key:n.key||`item-${m}`},h,T[h]),g,T[g]),`animationId`,a)),childIndex:Ct(n,e.children),item:n})}),v},p=function(e,r){var i=e.props,a=e.dataStartIndex,o=e.dataEndIndex,s=e.updateId;if(!mt({props:i}))return null;var l=i.children,d=i.layout,p=i.stackOffset,m=i.data,h=i.reverseStackOrder,g=Tj(d),_=g.numericAxisName,v=g.cateAxisName,y=ft(l,n),b=Mg(m,y,`${_}Id`,`${v}Id`,p,h),x=c.reduce(function(e,t){var n=`${t.axisType}Map`;return Q(Q({},e),{},$({},n,xj(i,Q(Q({},t),{},{graphicalItems:y,stackGroups:t.axisType===_&&b,dataStartIndex:a,dataEndIndex:o}))))},{}),S=Ej(Q(Q({},x),{},{props:i,graphicalItems:y}),r?.legendBBox);Object.keys(x).forEach(function(e){x[e]=u(i,x[e],S,e.replace(`Map`,``),t)});var C=x[`${v}Map`],w=Sj(C);return Q(Q({formattedGraphicalItems:f(i,Q(Q({},x),{},{dataStartIndex:a,dataEndIndex:o,updateId:s,graphicalItems:y,stackGroups:b,offset:S})),graphicalItems:y,offset:S,stackGroups:b},w),x)},m=function(e){function n(e){var r;return WA(this,n),r=qA(this,n,[e]),$(r,`eventEmitterSymbol`,Symbol(`rechartsEventEmitter`)),$(r,`accessibilityManager`,new SA),$(r,`handleLegendBBoxUpdate`,function(e){if(e){var t=r.state,n=t.dataStartIndex,i=t.dataEndIndex,a=t.updateId;r.setState(Q({legendBBox:e},p({props:r.props,dataStartIndex:n,dataEndIndex:i,updateId:a},Q(Q({},r.state),{},{legendBBox:e}))))}}),$(r,`handleReceiveSyncEvent`,function(e,t,n){if(r.props.syncId===e){if(n===r.eventEmitterSymbol&&typeof r.props.syncMethod!=`function`)return;r.applySyncEvent(t)}}),$(r,`handleBrushChange`,function(e){var t=e.startIndex,n=e.endIndex;if(t!==r.state.dataStartIndex||n!==r.state.dataEndIndex){var i=r.state.updateId;r.setState(function(){return Q({dataStartIndex:t,dataEndIndex:n},p({props:r.props,dataStartIndex:t,dataEndIndex:n,updateId:i},r.state))}),r.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),$(r,`handleMouseEnter`,function(e){var t=r.getMouseInfo(e);if(t){var n=Q(Q({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var i=r.props.onMouseEnter;(0,B.default)(i)&&i(n,e)}}),$(r,`triggeredAfterMouseMove`,function(e){var t=r.getMouseInfo(e),n=t?Q(Q({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};r.setState(n),r.triggerSyncEvent(n);var i=r.props.onMouseMove;(0,B.default)(i)&&i(n,e)}),$(r,`handleItemMouseEnter`,function(e){r.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),$(r,`handleItemMouseLeave`,function(){r.setState(function(){return{isTooltipActive:!1}})}),$(r,`handleMouseMove`,function(e){e.persist(),r.throttleTriggeredAfterMouseMove(e)}),$(r,`handleMouseLeave`,function(e){r.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};r.setState(t),r.triggerSyncEvent(t);var n=r.props.onMouseLeave;(0,B.default)(n)&&n(t,e)}),$(r,`handleOuterEvent`,function(e){var t=St(e),n=(0,Me.default)(r.props,`${t}`);t&&(0,B.default)(n)&&n((/.*touch.*/i.test(t)?r.getMouseInfo(e.changedTouches[0]):r.getMouseInfo(e))??{},e)}),$(r,`handleClick`,function(e){var t=r.getMouseInfo(e);if(t){var n=Q(Q({},t),{},{isTooltipActive:!0});r.setState(n),r.triggerSyncEvent(n);var i=r.props.onClick;(0,B.default)(i)&&i(n,e)}}),$(r,`handleMouseDown`,function(e){var t=r.props.onMouseDown;(0,B.default)(t)&&t(r.getMouseInfo(e),e)}),$(r,`handleMouseUp`,function(e){var t=r.props.onMouseUp;(0,B.default)(t)&&t(r.getMouseInfo(e),e)}),$(r,`handleTouchMove`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),$(r,`handleTouchStart`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.handleMouseDown(e.changedTouches[0])}),$(r,`handleTouchEnd`,function(e){e.changedTouches!=null&&e.changedTouches.length>0&&r.handleMouseUp(e.changedTouches[0])}),$(r,`handleDoubleClick`,function(e){var t=r.props.onDoubleClick;(0,B.default)(t)&&t(r.getMouseInfo(e),e)}),$(r,`handleContextMenu`,function(e){var t=r.props.onContextMenu;(0,B.default)(t)&&t(r.getMouseInfo(e),e)}),$(r,`triggerSyncEvent`,function(e){r.props.syncId!==void 0&&pA.emit(mA,r.props.syncId,e,r.eventEmitterSymbol)}),$(r,`applySyncEvent`,function(e){var t=r.props,n=t.layout,i=t.syncMethod,a=r.state.updateId,o=e.dataStartIndex,s=e.dataEndIndex;if(e.dataStartIndex!==void 0||e.dataEndIndex!==void 0)r.setState(Q({dataStartIndex:o,dataEndIndex:s},p({props:r.props,dataStartIndex:o,dataEndIndex:s,updateId:a},r.state)));else if(e.activeTooltipIndex!==void 0){var c=e.chartX,l=e.chartY,u=e.activeTooltipIndex,d=r.state,f=d.offset,m=d.tooltipTicks;if(!f)return;if(typeof i==`function`)u=i(m,e);else if(i===`value`){u=-1;for(var h=0;h<m.length;h++)if(m[h].value===e.activeLabel){u=h;break}}var g=Q(Q({},f),{},{x:f.left,y:f.top}),_=Math.min(c,g.x+g.width),v=Math.min(l,g.y+g.height),y=m[u]&&m[u].value,b=_j(r.state,r.props.data,u),x=m[u]?{x:n===`horizontal`?m[u].coordinate:_,y:n===`horizontal`?v:m[u].coordinate}:dj;r.setState(Q(Q({},e),{},{activeLabel:y,activeCoordinate:x,activePayload:b,activeTooltipIndex:u}))}else r.setState(e)}),$(r,`renderCursor`,function(e){var n=r.state,i=n.isTooltipActive,a=n.activeCoordinate,o=n.activePayload,s=n.offset,c=n.activeTooltipIndex,l=n.tooltipAxisBandSize,u=r.getTooltipEventType(),d=e.props.active??i,f=r.props.layout,p=e.key||`_recharts-cursor`;return F.createElement(NA,{key:p,activeCoordinate:a,activePayload:o,activeTooltipIndex:c,chartName:t,element:e,isActive:d,layout:f,offset:s,tooltipAxisBandSize:l,tooltipEventType:u})}),$(r,`renderPolarAxis`,function(e,t,n){var i=(0,Me.default)(e,`type.axisType`),a=(0,Me.default)(r.state,`${i}Map`),s=e.type.defaultProps,c=s===void 0?e.props:Q(Q({},s),e.props),l=a&&a[c[`${i}Id`]];return(0,F.cloneElement)(e,Q(Q({},l),{},{className:o(i,l.className),key:e.key||`${t}-${n}`,ticks:Sg(l,!0)}))}),$(r,`renderPolarGrid`,function(e){var t=e.props,n=t.radialLines,i=t.polarAngles,a=t.polarRadius,o=r.state,s=o.radiusAxisMap,c=o.angleAxisMap,l=Be(s),u=Be(c),d=u.cx,f=u.cy,p=u.innerRadius,m=u.outerRadius;return(0,F.cloneElement)(e,{polarAngles:Array.isArray(i)?i:Sg(u,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(a)?a:Sg(l,!0).map(function(e){return e.coordinate}),cx:d,cy:f,innerRadius:p,outerRadius:m,key:e.key||`polar-grid`,radialLines:n})}),$(r,`renderLegend`,function(){var e=r.state.formattedGraphicalItems,t=r.props,n=t.children,i=t.width,a=t.height,o=r.props.margin||{},s=Qh({children:n,formattedGraphicalItems:e,legendWidth:i-(o.left||0)-(o.right||0),legendContent:l});if(!s)return null;var c=s.item;return(0,F.cloneElement)(c,Q(Q({},HA(s,PA)),{},{chartWidth:i,chartHeight:a,margin:o,onBBoxUpdate:r.handleLegendBBoxUpdate}))}),$(r,`renderTooltip`,function(){var e=r.props,t=e.children,n=e.accessibilityLayer,i=pt(t,gs);if(!i)return null;var a=r.state,o=a.isTooltipActive,s=a.activeCoordinate,c=a.activePayload,l=a.activeLabel,u=a.offset,d=i.props.active??o;return(0,F.cloneElement)(i,{viewBox:Q(Q({},u),{},{x:u.left,y:u.top}),active:d,label:l,payload:d?c:[],coordinate:s,accessibilityLayer:n})}),$(r,`renderBrush`,function(e){var t=r.props,n=t.margin,i=t.data,a=r.state,o=a.offset,s=a.dataStartIndex,c=a.dataEndIndex,l=a.updateId;return(0,F.cloneElement)(e,{key:e.key||`_recharts-brush`,onChange:wg(r.handleBrushChange,e.props.onChange),data:i,x:L(e.props.x)?e.props.x:o.left,y:L(e.props.y)?e.props.y:o.top+o.height+o.brushBottom-(n.bottom||0),width:L(e.props.width)?e.props.width:o.width,startIndex:s,endIndex:c,updateId:`brush-${l}`})}),$(r,`renderReferenceElement`,function(e,t,n){if(!e)return null;var i=r.clipPathId,a=r.state,o=a.xAxisMap,s=a.yAxisMap,c=a.offset,l=e.type.defaultProps||{},u=e.props,d=u.xAxisId,f=d===void 0?l.xAxisId:d,p=u.yAxisId,m=p===void 0?l.yAxisId:p;return(0,F.cloneElement)(e,{key:e.key||`${t}-${n}`,xAxis:o[f],yAxis:s[m],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})}),$(r,`renderActivePoints`,function(e){var t=e.item,r=e.activePoint,i=e.basePoint,a=e.childIndex,o=e.isRange,s=[],c=t.props.key,l=t.item.type.defaultProps===void 0?t.item.props:Q(Q({},t.item.type.defaultProps),t.item.props),u=l.activeDot,d=l.dataKey,f=Q(Q({index:a,dataKey:d,cx:r.x,cy:r.y,r:4,fill:fg(t.item),strokeWidth:2,stroke:`#fff`,payload:r.payload,value:r.value},V(u,!1)),$e(u));return s.push(n.renderActiveDot(u,f,`${c}-activePoint-${a}`)),i?s.push(n.renderActiveDot(u,Q(Q({},f),{},{cx:i.x,cy:i.y}),`${c}-basePoint-${a}`)):o&&s.push(null),s}),$(r,`renderGraphicChild`,function(e,t,n){var i=r.filterFormatItem(e,t,n);if(!i)return null;var a=r.getTooltipEventType(),o=r.state,s=o.isTooltipActive,c=o.tooltipAxis,l=o.activeTooltipIndex,u=o.activeLabel,d=r.props.children,f=pt(d,gs),p=i.props,m=p.points,h=p.isRange,g=p.baseLine,_=i.item.type.defaultProps===void 0?i.item.props:Q(Q({},i.item.type.defaultProps),i.item.props),v=_.activeDot,y=_.hide,b=_.activeBar,x=_.activeShape,S=!!(!y&&s&&f&&(v||b||x)),C={};a!==`axis`&&f&&f.props.trigger===`click`?C={onClick:wg(r.handleItemMouseEnter,e.props.onClick)}:a!==`axis`&&(C={onMouseLeave:wg(r.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:wg(r.handleItemMouseEnter,e.props.onMouseEnter)});var w=(0,F.cloneElement)(e,Q(Q({},i.props),C));function T(e){return typeof c.dataKey==`function`?c.dataKey(e.payload):null}if(S)if(l>=0){var E,D;if(c.dataKey&&!c.allowDuplicatedCategory){var O=typeof c.dataKey==`function`?T:`payload.${c.dataKey.toString()}`;E=He(m,O,u),D=h&&g&&He(g,O,u)}else E=m?.[l],D=h&&g&&g[l];if(x||b){var k=e.props.activeIndex===void 0?l:e.props.activeIndex;return[(0,F.cloneElement)(e,Q(Q(Q({},i.props),C),{},{activeIndex:k})),null,null]}if(!(0,I.default)(E))return[w].concat(ej(r.renderActivePoints({item:i,activePoint:E,basePoint:D,childIndex:l,isRange:h})))}else{var A=(r.getItemByXY(r.state.activeCoordinate)??{graphicalItem:w}).graphicalItem,j=A.item,M=j===void 0?e:j,N=A.childIndex;return[(0,F.cloneElement)(M,Q(Q(Q({},i.props),C),{},{activeIndex:N})),null,null]}return h?[w,null,null]:[w,null]}),$(r,`renderCustomized`,function(e,t,n){return(0,F.cloneElement)(e,Q(Q({key:`recharts-customized-${n}`},r.props),r.state))}),$(r,`renderMap`,{CartesianGrid:{handler:fj,once:!0},ReferenceArea:{handler:r.renderReferenceElement},ReferenceLine:{handler:fj},ReferenceDot:{handler:r.renderReferenceElement},XAxis:{handler:fj},YAxis:{handler:fj},Brush:{handler:r.renderBrush,once:!0},Bar:{handler:r.renderGraphicChild},Line:{handler:r.renderGraphicChild},Area:{handler:r.renderGraphicChild},Radar:{handler:r.renderGraphicChild},RadialBar:{handler:r.renderGraphicChild},Scatter:{handler:r.renderGraphicChild},Pie:{handler:r.renderGraphicChild},Funnel:{handler:r.renderGraphicChild},Tooltip:{handler:r.renderCursor,once:!0},PolarGrid:{handler:r.renderPolarGrid,once:!0},PolarAngleAxis:{handler:r.renderPolarAxis},PolarRadiusAxis:{handler:r.renderPolarAxis},Customized:{handler:r.renderCustomized}}),r.clipPathId=`${e.id??Re(`recharts`)}-clip`,r.throttleTriggeredAfterMouseMove=(0,Ss.default)(r.triggeredAfterMouseMove,e.throttleDelay??1e3/60),r.state={},r}return QA(n,e),KA(n,[{key:`componentDidMount`,value:function(){this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:this.props.margin.left??0,top:this.props.margin.top??0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:`displayDefaultTooltip`,value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,i=e.layout,a=pt(t,gs);if(a){var o=a.props.defaultIndex;if(!(typeof o!=`number`||o<0||o>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[o]&&this.state.tooltipTicks[o].value,c=_j(this.state,n,o,s),l=this.state.tooltipTicks[o].coordinate,u=(this.state.offset.top+r)/2,d=i===`horizontal`?{x:l,y:u}:{y:l,x:u},f=this.state.formattedGraphicalItems.find(function(e){return e.item.type.name===`Scatter`});f&&(d=Q(Q({},d),f.props.points[o].tooltipPosition),c=f.props.points[o].tooltipPayload);var p={activeTooltipIndex:o,isTooltipActive:!0,activeLabel:s,activePayload:c,activeCoordinate:d};this.setState(p),this.renderCursor(a),this.accessibilityManager.setIndex(o)}}}},{key:`getSnapshotBeforeUpdate`,value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:this.props.margin.left??0,top:this.props.margin.top??0}}),null):null}},{key:`componentDidUpdate`,value:function(e){yt([pt(e.children,gs)],[pt(this.props.children,gs)])||this.displayDefaultTooltip()}},{key:`componentWillUnmount`,value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:`getTooltipEventType`,value:function(){var e=pt(this.props.children,gs);if(e&&typeof e.props.shared==`boolean`){var t=e.props.shared?`axis`:`item`;return s.indexOf(t)>=0?t:i}return i}},{key:`getMouseInfo`,value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=Ys(n),i={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},a=n.width/t.offsetWidth||1,o=this.inRange(i.chartX,i.chartY,a);if(!o)return null;var s=this.state,c=s.xAxisMap,l=s.yAxisMap,u=this.getTooltipEventType(),d=vj(this.state,this.props.data,this.props.layout,o);if(u!==`axis`&&c&&l){var f=Be(c).scale,p=Be(l).scale,m=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return Q(Q({},i),{},{xValue:m,yValue:h},d)}return d?Q(Q({},i),d):null}},{key:`inRange`,value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=this.props.layout,i=e/n,a=t/n;if(r===`horizontal`||r===`vertical`){var o=this.state.offset;return i>=o.left&&i<=o.left+o.width&&a>=o.top&&a<=o.top+o.height?{x:i,y:a}:null}var s=this.state,c=s.angleAxisMap,l=s.radiusAxisMap;if(c&&l){var u=Be(c);return f_({x:i,y:a},u)}return null}},{key:`parseEventsOfWrapper`,value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=pt(e,gs),r={};return n&&t===`axis`&&(r=n.props.trigger===`click`?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),Q(Q({},$e(this.props,this.handleOuterEvent)),r)}},{key:`addListener`,value:function(){pA.on(mA,this.handleReceiveSyncEvent)}},{key:`removeListener`,value:function(){pA.removeListener(mA,this.handleReceiveSyncEvent)}},{key:`filterFormatItem`,value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,a=r.length;i<a;i++){var o=r[i];if(o.item===e||o.props.key===e.key||t===ct(o.item.type)&&n===o.childIndex)return o}return null}},{key:`renderClipPath`,value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return F.createElement(`defs`,null,F.createElement(`clipPath`,{id:e},F.createElement(`rect`,{x:n,y:r,height:i,width:a})))}},{key:`getXScales`,value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=RA(t,2),r=n[0],i=n[1];return Q(Q({},e),{},$({},r,i.scale))},{}):null}},{key:`getYScales`,value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=RA(t,2),r=n[0],i=n[1];return Q(Q({},e),{},$({},r,i.scale))},{}):null}},{key:`getXScaleByAxisId`,value:function(e){var t;return(t=this.state.xAxisMap)==null||(t=t[e])==null?void 0:t.scale}},{key:`getYScaleByAxisId`,value:function(e){var t;return(t=this.state.yAxisMap)==null||(t=t[e])==null?void 0:t.scale}},{key:`getItemByXY`,value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var i=0,a=n.length;i<a;i++){var o=n[i],s=o.props,c=o.item,l=c.type.defaultProps===void 0?c.props:Q(Q({},c.type.defaultProps),c.props),u=ct(c.type);if(u===`Bar`){var d=(s.data||[]).find(function(t){return Dx(e,t)});if(d)return{graphicalItem:o,payload:d}}else if(u===`RadialBar`){var f=(s.data||[]).find(function(t){return f_(e,t)});if(f)return{graphicalItem:o,payload:f}}else if(MC(o,r)||NC(o,r)||PC(o,r)){var p=VC({graphicalItem:o,activeTooltipItem:r,itemData:l.data}),m=l.activeIndex===void 0?p:l.activeIndex;return{graphicalItem:Q(Q({},o),{},{childIndex:m}),payload:PC(o,r)?l.data[p]:o.props.data[p]}}}return null}},{key:`render`,value:function(){var e=this;if(!mt(this))return null;var t=this.props,n=t.children,r=t.className,i=t.width,a=t.height,s=t.style,c=t.compact,l=t.title,u=t.desc,d=V(HA(t,FA),!1);if(c)return F.createElement(nE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},F.createElement(Ot,LA({},d,{width:i,height:a,title:l,desc:u}),this.renderClipPath(),xt(n,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=this.props.tabIndex??0,d.role=this.props.role??`application`,d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var f=this.parseEventsOfWrapper();return F.createElement(nE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},F.createElement(`div`,LA({className:o(`recharts-wrapper`,r),style:Q({position:`relative`,cursor:`default`,width:i,height:a},s)},f,{ref:function(t){e.container=t}}),F.createElement(Ot,LA({},d,{width:i,height:a,title:l,desc:u,style:uj}),this.renderClipPath(),xt(n,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(F.Component);$(m,`displayName`,t),$(m,`defaultProps`,Q({layout:`horizontal`,stackOffset:`none`,barCategoryGap:`10%`,barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:`index`},d)),$(m,`getDerivedStateFromProps`,function(e,t){var n=e.dataKey,r=e.data,i=e.children,a=e.width,o=e.height,s=e.layout,c=e.stackOffset,l=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(t.updateId===void 0){var f=Cj(e);return Q(Q(Q({},f),{},{updateId:0},p(Q(Q({props:e},f),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(n!==t.prevDataKey||r!==t.prevData||a!==t.prevWidth||o!==t.prevHeight||s!==t.prevLayout||c!==t.prevStackOffset||!Ke(l,t.prevMargin)){var m=Cj(e),h={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},g=Q(Q({},vj(t,r,s)),{},{updateId:t.updateId+1}),_=Q(Q(Q({},m),h),g);return Q(Q(Q({},_),p(Q({props:e},_),t)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:o,prevLayout:s,prevStackOffset:c,prevMargin:l,prevChildren:i})}if(!yt(i,t.prevChildren)){var v=pt(i,Lw),y=v?v.props?.startIndex??u:u,b=v?v.props?.endIndex??d:d,x=y!==u||b!==d,S=!(0,I.default)(r)&&!x?t.updateId:t.updateId+1;return Q(Q({updateId:S},p(Q(Q({props:e},t),{},{updateId:S,dataStartIndex:y,dataEndIndex:b}),t)),{},{prevChildren:i,dataStartIndex:y,dataEndIndex:b})}return null}),$(m,`renderActiveDot`,function(e,t,n){var r=(0,F.isValidElement)(e)?(0,F.cloneElement)(e,t):(0,B.default)(e)?e(t):F.createElement(Kx,t);return F.createElement(H,{className:`recharts-active-dot`,key:n},r)});var h=(0,F.forwardRef)(function(e,t){return F.createElement(m,LA({},e,{ref:t}))});return h.displayName=m.displayName,h},kj=Oj({chartName:`LineChart`,GraphicalChild:nk,axisComponents:[{axisType:`xAxis`,AxisComp:Hk},{axisType:`yAxis`,AxisComp:aA}],formatAxisMap:LT}),Aj=Oj({chartName:`BarChart`,GraphicalChild:DT,defaultTooltipEventType:`axis`,validateTooltipEventTypes:[`axis`,`item`],axisComponents:[{axisType:`xAxis`,AxisComp:Hk},{axisType:`yAxis`,AxisComp:aA}],formatAxisMap:LT}),jj=Oj({chartName:`PieChart`,GraphicalChild:aw,validateTooltipEventTypes:[`item`],defaultTooltipEventType:`item`,legendContent:`children`,axisComponents:[{axisType:`angleAxis`,AxisComp:XS},{axisType:`radiusAxis`,AxisComp:AS}],formatAxisMap:s_,defaultProps:{layout:`centric`,startAngle:0,endAngle:360,cx:`50%`,cy:`50%`,innerRadius:0,outerRadius:`80%`}}),Mj=Oj({chartName:`AreaChart`,GraphicalChild:Tk,axisComponents:[{axisType:`xAxis`,AxisComp:Hk},{axisType:`yAxis`,AxisComp:aA}],formatAxisMap:LT});export{i as _,aA as a,nk as c,aw as d,Is as f,o as g,Ia as h,kj as i,OO as l,gs as m,jj as n,Hk as o,Fs as p,Aj as r,Tk as s,Mj as t,DT as u};
|