@cryptofi/core-ui 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ var Vr={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
28
28
  object-assign
29
29
  (c) Sindre Sorhus
30
30
  @license MIT
31
- */function W_(){if(E_)return C_;E_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return C_=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))e.call(o,u)&&(c[u]=o[u]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},C_}function Z_(){if(D_)return T_;D_=1;return T_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function q_(){return N_?I_:(N_=1,I_=Function.call.bind(Object.prototype.hasOwnProperty))}function Y_(){if(L_)return R_;L_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Z_(),r={},n=q_();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,l){if("production"!==process.env.NODE_ENV)for(var u in i)if(n(i,u)){var s;try{if("function"!=typeof i[u]){var f=Error((c||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[u](o,u,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=l?l():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},R_=i}function G_(){if(z_)return B_;z_=1;var t=U_(),e=W_(),r=Z_(),n=q_(),i=Y_(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),B_=function(c,l){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(a),arrayOf:function(t){return v((function(e,n,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new d("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<c.length;l++){var u=t(c,l,i,o,a+"["+l+"]",r);if(u instanceof Error)return u}return null}))},element:v((function(t,e,r,n,i){var o=t[e];return c(o)?null:new d("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:v((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return v((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+(((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `")+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:v((function(t,e,r,n,i){return m(t[e])?null:new d("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return v((function(e,i,o,a,c){if("function"!=typeof t)return new d("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],u=b(l);if("object"!==u)return new d("Invalid "+a+" `"+c+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var s in l)if(n(l,s)){var f=t(l,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return v((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(h(a,t[c]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return v((function(e,i,o,a,c){for(var l=[],u=0;u<t.length;u++){var s=(0,t[u])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&l.push(s.data.expectedType)}return new d("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return v((function(e,n,i,o,a){var c=e[n],l=b(c);if("object"!==l)return new d("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in t){var s=t[u];if("function"!=typeof s)return g(i,o,a,u,w(s));var f=s(c,u,i,o,a+"."+u,r);if(f)return f}return null}))},exact:function(t){return v((function(i,o,a,c,l){var u=i[o],s=b(u);if("object"!==s)return new d("Invalid "+c+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var h=t[p];if(n(t,p)&&"function"!=typeof h)return g(a,c,l,p,w(h));if(!h)return new d("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var v=h(u,p,a,c,l+"."+p,r);if(v)return v}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function v(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,u,s,p,h){if(u=u||f,p=p||c,h!==r){if(l){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=u+":"+c;!e[y]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[y]=!0,n++)}}return null==a[c]?i?null===a[c]?new d("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new d("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(a,c,u,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function y(t){return v((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){return new d((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||c(t))return!0;var e=function(t){var e=t&&(u&&t[u]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},B_}function X_(){if(H_)return $_;H_=1;var t=Z_();function e(){}function r(){}return r.resetWarningCache=e,$_=function(){function n(e,r,n,i,o,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}function K_(){if(F_)return j_.exports;if(F_=1,"production"!==process.env.NODE_ENV){var t=U_();j_.exports=G_()(t.isElement,true)}else j_.exports=X_()();return j_.exports}var J_=kr(K_()),Q_=Object.getOwnPropertyNames,tj=Object.getOwnPropertySymbols,ej=Object.prototype.hasOwnProperty;function rj(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function nj(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function ij(t){return Q_(t).concat(tj(t))}var oj=Object.hasOwn||function(t,e){return ej.call(t,e)};function aj(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var cj="_owner",lj=Object.getOwnPropertyDescriptor,uj=Object.keys;function sj(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function fj(t,e){return aj(t.getTime(),e.getTime())}function pj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var l=e.entries(),u=!1,s=0;(i=l.next())&&!i.done;){var f=n.value,p=f[0],h=f[1],d=i.value,v=d[0],y=d[1];u||o[s]||!(u=r.equals(p,v,c,s,t,e,r)&&r.equals(h,y,p,v,t,e,r))||(o[s]=!0),s++}if(!u)return!1;c++}return!0}function hj(t,e,r){var n,i=uj(t),o=i.length;if(uj(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===cj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!oj(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function dj(t,e,r){var n,i,o,a=ij(t),c=a.length;if(ij(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===cj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!oj(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=lj(t,n),o=lj(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function vj(t,e){return aj(t.valueOf(),e.valueOf())}function yj(t,e){return t.source===e.source&&t.flags===e.flags}function gj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),l=!1,u=0;(i=c.next())&&!i.done;)l||o[u]||!(l=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[u]=!0),u++;if(!l)return!1}return!0}function mj(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var bj="[object Arguments]",wj="[object Boolean]",xj="[object Date]",Oj="[object Map]",Sj="[object Number]",_j="[object Object]",jj="[object RegExp]",Pj="[object Set]",Aj="[object String]",Mj=Array.isArray,kj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Cj=Object.assign,Ej=Object.prototype.toString.call.bind(Object.prototype.toString);var Tj=Dj();function Dj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,l=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?dj:sj,areDatesEqual:fj,areMapsEqual:n?rj(pj,dj):pj,areObjectsEqual:n?dj:hj,arePrimitiveWrappersEqual:vj,areRegExpsEqual:yj,areSetsEqual:n?rj(gj,dj):gj,areTypedArraysEqual:n?dj:mj};if(r&&(i=Cj({},i,r(i))),e){var o=nj(i.areArraysEqual),a=nj(i.areMapsEqual),c=nj(i.areObjectsEqual),l=nj(i.areSetsEqual);i=Cj({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:l})}return i}(t),u=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,l=t.areTypedArraysEqual;return function(t,u,s){if(t===u)return!0;if(null==t||null==u||"object"!=typeof t||"object"!=typeof u)return t!=t&&u!=u;var f=t.constructor;if(f!==u.constructor)return!1;if(f===Object)return i(t,u,s);if(Mj(t))return e(t,u,s);if(null!=kj&&kj(t))return l(t,u,s);if(f===Date)return r(t,u,s);if(f===RegExp)return a(t,u,s);if(f===Map)return n(t,u,s);if(f===Set)return c(t,u,s);var p=Ej(t);return p===xj?r(t,u,s):p===jj?a(t,u,s):p===Oj?n(t,u,s):p===Pj?c(t,u,s):p===_j?"function"!=typeof t.then&&"function"!=typeof u.then&&i(t,u,s):p===bj?i(t,u,s):(p===wj||p===Sj||p===Aj)&&o(t,u,s)}}(l),s=i?i(u):(e=u,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),l=c.cache,u=void 0===l?e?new WeakMap:void 0:l,s=c.meta;return r(t,a,{cache:u,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:u,createState:o,equals:s,strict:c})}function Ij(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Nj(t){return Nj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nj(t)}function Rj(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Lj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lj(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Bj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=Rj(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Ij(r.bind(null,a),o):(r(o),void Ij(r.bind(null,a)))}"object"===Nj(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function zj(t){return zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zj(t)}function $j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Hj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$j(Object(r),!0).forEach((function(e){Fj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==zj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Dj({strict:!0}),Dj({circular:!0}),Dj({circular:!0,strict:!0}),Dj({createInternalComparator:function(){return aj}}),Dj({strict:!0,createInternalComparator:function(){return aj}}),Dj({circular:!0,createInternalComparator:function(){return aj}}),Dj({circular:!0,createInternalComparator:function(){return aj},strict:!0});var Vj=function(t){return t},Uj=function(t,e){return Object.keys(e).reduce((function(r,n){return Hj(Hj({},r),{},Fj({},n,t(n,e[n])))}),{})},Wj=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},Zj="production"!==process.env.NODE_ENV,qj=function(t,e,r,n,i,o,a,c){if(Zj&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,i,o,a,c],u=0;console.warn(e.replace(/%s/g,(function(){return l[u++]})))}};function Yj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||Xj(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gj(t){return function(t){if(Array.isArray(t))return Kj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xj(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xj(t,e){if(t){if("string"==typeof t)return Kj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kj(t,e):void 0}}function Kj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Jj=1e-4,Qj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},tP=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},eP=function(t,e){return function(r){var n=Qj(t,e);return tP(n,r)}},rP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),u=Yj(l,4);n=u[0],i=u[1],o=u[2],a=u[3]}else qj(!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)}qj([n,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=eP(n,o),h=eP(i,a),d=(s=n,f=o,function(t){var e=Qj(s,f),r=[].concat(Gj(e.map((function(t,e){return t*e})).slice(1)),[0]);return tP(r,t)}),v=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=d(n);if(Math.abs(o-r)<Jj||a<Jj)return h(n);n=(e=n-o/a)>1?1:e<0?0:e}return h(n)};return v.isStepper=!1,v},nP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return rP(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Jj&&Math.abs(o)<Jj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return rP(n);qj(!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"function"==typeof n?n:(qj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function iP(t){return iP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iP(t)}function oP(t){return function(t){if(Array.isArray(t))return fP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||sP(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aP(Object(r),!0).forEach((function(e){lP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==iP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==iP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===iP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||sP(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sP(t,e){if(t){if("string"==typeof t)return fP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fP(t,e):void 0}}function fP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var pP=function(t,e,r){return t+(e-t)*r},hP=function(t){return t.from!==t.to},dP=function t(e,r,n){var i=Uj((function(t,r){if(hP(r)){var n=uP(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return cP(cP({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Uj((function(t,e){return hP(e)?cP(cP({},e),{},{velocity:pP(e.velocity,i[t].velocity,n),from:pP(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},vP=function(t,e,r,n,i){var o,a,c,l,u=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=u.reduce((function(r,n){return cP(cP({},r),{},lP({},n,[t[n],e[n]]))}),{}),f=u.reduce((function(r,n){return cP(cP({},r),{},lP({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=dP(r,f,o),i(cP(cP(cP({},t),e),Uj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(hP).length&&(p=requestAnimationFrame(h))}:function(o){l||(l=o);var a=(o-l)/n,c=Uj((function(t,e){return pP.apply(void 0,oP(e).concat([r(a)]))}),s);if(i(cP(cP(cP({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var u=Uj((function(t,e){return pP.apply(void 0,oP(e).concat([r(1)]))}),s);i(cP(cP(cP({},t),e),u))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function yP(t){return yP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yP(t)}var gP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function mP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function bP(t){return function(t){if(Array.isArray(t))return wP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return wP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wP(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function OP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xP(Object(r),!0).forEach((function(e){SP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function SP(t,e,r){return(e=jP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _P(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function jP(t){var e=function(t,e){if("object"!==yP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==yP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===yP(e)?e:String(e)}function PP(t,e){return PP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},PP(t,e)}function AP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=CP(t);if(e){var i=CP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return MP(this,r)}}function MP(t,e){if(e&&("object"===yP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return kP(t)}function kP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CP(t){return CP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},CP(t)}var EP=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&PP(t,e)}(r,dt);var e=AP(r);function r(t,n){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=(i=e.call(this,t,n)).props,a=o.isActive,c=o.attributeName,l=o.from,u=o.to,s=o.steps,f=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(kP(i)),i.changeStyle=i.changeStyle.bind(kP(i)),!a||p<=0)return i.state={style:{}},"function"==typeof f&&(i.state={style:u}),MP(i);if(s&&s.length)i.state={style:s[0].style};else if(l){if("function"==typeof f)return i.state={style:l},MP(i);i.state={style:c?SP({},c,l):l}}else i.state={style:{}};return i}return _P(r,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,l=this.state.style;if(n)if(r){if(!(Tj(t.to,a)&&t.canBegin&&t.isActive)){var u=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=u||o?c:t.to;if(this.state&&l){var f={style:i?SP({},i,s):s};(i&&l[i]!==s||!i&&l!==s)&&this.setState(f)}this.runAnimation(OP(OP({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?SP({},i,a):a};this.state&&l&&(i&&l[i]!==a||!i&&l!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,l=t.onAnimationStart,u=vP(r,n,nP(o),i,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=u()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,l=void 0===c?0:c;return this.manager.start([i].concat(bP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,l=n.style,u=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=u||Object.keys(l);if("function"==typeof c||"spring"===c)return[].concat(bP(t),[e.runJSAnimation.bind(e,{from:f.style,to:l,duration:o,easing:c}),o]);var h=Wj(p,o,c),d=OP(OP(OP({},f.style),l),{},{transition:h});return[].concat(bP(t),[d,o,s]).filter(Vj)}),[a,Math.max(l,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Bj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,l=t.steps,u=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof u&&"spring"!==o)if(l.length>1)this.runStepAnimation(t);else{var f=n?SP({},n,i):i,p=Wj(Object.keys(f),r,o);s.start([a,e,OP(OP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=mP(t,gP),o=ht.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return Ot(t,OP(OP({},i),{},{style:OP(OP({},n),a),className:o}))};return 1===o?c(ht.only(e)):ft.createElement("div",null,ht.map(e,(function(t){return c(t)})))}}]),r}();function TP(t){return TP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TP(t)}function DP(){return DP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},DP.apply(this,arguments)}function IP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return NP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function RP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function LP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?RP(Object(r),!0).forEach((function(e){BP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=TP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=TP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==TP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}EP.displayName="Animate",EP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},EP.propTypes={from:J_.oneOfType([J_.object,J_.string]),to:J_.oneOfType([J_.object,J_.string]),attributeName:J_.string,duration:J_.number,begin:J_.number,easing:J_.oneOfType([J_.string,J_.func]),steps:J_.arrayOf(J_.shape({duration:J_.number.isRequired,style:J_.object.isRequired,easing:J_.oneOfType([J_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),J_.func]),properties:J_.arrayOf("string"),onAnimationEnd:J_.func})),children:J_.oneOfType([J_.node,J_.func]),isActive:J_.bool,canBegin:J_.bool,onAnimationEnd:J_.func,shouldReAnimate:J_.bool,onAnimationStart:J_.func,onAnimationReStart:J_.func};var zP=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,l=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(u,",").concat(t+l*s[0],",").concat(e)),o+="L ".concat(t+r-l*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(u,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(u,",\n ").concat(t+r-l*s[2],",").concat(e+n)),o+="L ".concat(t+l*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(u,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(e,"\n L ").concat(t+r-l*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r-l*p,",").concat(e+n,"\n L ").concat(t+l*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(e+n-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},$P=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=l&&r<=u&&n>=s&&n<=f}return!1},HP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},FP=function(t){var e=LP(LP({},HP),t),r=yt(),n=IP(mt(-1),2),i=n[0],o=n[1];wt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.width,u=e.height,s=e.radius,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,v=e.isAnimationActive,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var g=Gn("recharts-rectangle",f);return y?ft.createElement(EP,{canBegin:i>0,from:{width:l,height:u,x:a,y:c},to:{width:l,height:u,x:a,y:c},duration:h,animationEasing:p,isActive:y},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return ft.createElement(EP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:v,easing:p},ft.createElement("path",DP({},Pc(e,!0),{className:g,d:zP(a,c,n,o,s),ref:r})))})):ft.createElement("path",DP({},Pc(e,!0),{className:g,d:zP(a,c,l,u,s)}))};function VP(){return VP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},VP.apply(this,arguments)}var UP=function(t){var e=t.cx,r=t.cy,n=t.r,i=Gn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?ft.createElement("circle",VP({},Pc(t,!1),sc(t),{className:i,cx:e,cy:r,r:n})):null};function WP(t){return WP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WP(t)}var ZP=["x","y","top","left","width","height","className"];function qP(){return qP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qP.apply(this,arguments)}function YP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function GP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=WP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=WP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==WP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var KP,JP,QP,tA,eA=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},rA=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,l=void 0===c?0:c,u=t.width,s=void 0===u?0:u,f=t.height,p=void 0===f?0:f,h=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?YP(Object(r),!0).forEach((function(e){GP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:l,width:s,height:p},XP(t,ZP));return Ga(r)&&Ga(i)&&Ga(s)&&Ga(p)&&Ga(a)&&Ga(l)?ft.createElement("path",qP({},Pc(d,!0),{className:Gn("recharts-cross",h),d:eA(r,i,s,p,a,l)})):null};var nA,iA,oA=function(){if(tA)return QP;tA=1;var t=Ko(),e=function(){if(JP)return KP;JP=1;var t=Tp()(Object.getPrototypeOf,Object);return KP=t}(),r=Jo(),n=Function.prototype,i=Object.prototype,o=n.toString,a=i.hasOwnProperty,c=o.call(Object);return QP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var i=e(n);if(null===i)return!0;var l=a.call(i,"constructor")&&i.constructor;return"function"==typeof l&&l instanceof l&&o.call(l)==c}}(),aA=kr(oA);var cA=kr(function(){if(iA)return nA;iA=1;var t=Ko(),e=Jo();return nA=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function lA(t){return lA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lA(t)}function uA(){return uA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uA.apply(this,arguments)}function sA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return fA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fA(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pA(Object(r),!0).forEach((function(e){dA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=lA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=lA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var vA,yA,gA,mA,bA,wA,xA,OA,SA=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},_A={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jA=function(t){var e=hA(hA({},_A),t),r=yt(),n=sA(mt(-1),2),i=n[0],o=n[1];wt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.upperWidth,u=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||s!==+s||0===l&&0===u||0===s)return null;var y=Gn("recharts-trapezoid",f);return v?ft.createElement(EP,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:l,lowerWidth:u,height:s,x:a,y:c},duration:h,animationEasing:p,isActive:v},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,l=t.y;return ft.createElement(EP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,easing:p},ft.createElement("path",uA({},Pc(e,!0),{className:y,d:SA(c,l,n,o,a),ref:r})))})):ft.createElement("g",null,ft.createElement("path",uA({},Pc(e,!0),{className:y,d:SA(a,c,l,u,s)})))},PA=["option","shapeType","propTransformer","activeClassName","isActive"];function AA(t){return AA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AA(t)}function MA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function kA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function CA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kA(Object(r),!0).forEach((function(e){EA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function EA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=AA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=AA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==AA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TA(t,e){return CA(CA({},e),t)}function DA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return ft.createElement(FP,r);case"trapezoid":return ft.createElement(jA,r);case"sector":return ft.createElement(p_,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return ft.createElement(wu,r);break;default:return null}}function IA(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?TA:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,l=t.isActive,u=MA(t,PA);if(pt(r))e=Ot(r,CA(CA({},u),function(t){return pt(t)?t.props:t}(r)));else if(Ea(r))e=r(u);else if(aA(r)&&!cA(r)){var s=o(r,u);e=ft.createElement(DA,{shapeType:n,elementProps:s})}else{var f=u;e=ft.createElement(DA,{shapeType:n,elementProps:f})}return l?ft.createElement(Qc,{className:c},e):e}function NA(t,e){return null!=e&&"trapezoids"in t.props}function RA(t,e){return null!=e&&"sectors"in t.props}function LA(t,e){return null!=e&&"points"in t.props}function BA(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function zA(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function $A(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function HA(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return NA(t,e)?r="trapezoids":RA(t,e)?r="sectors":LA(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return NA(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:RA(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:LA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=mx(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return NA(t,e)?r=BA:RA(t,e)?r=zA:LA(t,e)&&(r=$A),r}(r,e);return n(t,e)})),l=r.props[i].indexOf(c[c.length-1]);return a&&n===l}));return n.indexOf(a[a.length-1])}function FA(){if(mA)return gA;mA=1;var t=gv(),e=1/0;return gA=function(r){return r?(r=t(r))===e||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function VA(){if(wA)return bA;wA=1;var t=function(){if(yA)return vA;yA=1;var t=Math.ceil,e=Math.max;return vA=function(r,n,i,o){for(var a=-1,c=e(t((n-r)/(i||1)),0),l=Array(c);c--;)l[o?c:++a]=r,r+=i;return l}}(),e=yd(),r=FA();return bA=function(n){return function(i,o,a){return a&&"number"!=typeof a&&e(i,o,a)&&(o=a=void 0),i=r(i),void 0===o?(o=i,i=0):o=r(o),a=void 0===a?i<o?1:-1:r(a),t(i,o,a,n)}}}var UA=function(){if(OA)return xA;OA=1;var t=VA()();return xA=t}(),WA=kr(UA);function ZA(t){return ZA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZA(t)}function qA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function YA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qA(Object(r),!0).forEach((function(e){GA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function GA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ZA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ZA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ZA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var XA=["Webkit","Moz","O","ms"];function KA(t){return KA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},KA(t)}function JA(){return JA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},JA.apply(this,arguments)}function QA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?QA(Object(r),!0).forEach((function(e){aM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function eM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cM(n.key),n)}}function rM(t,e,r){return e=iM(e),function(t,e){if(e&&("object"===KA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,nM()?Reflect.construct(e,r||[],iM(t).constructor):e.apply(t,r))}function nM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nM=function(){return!!t})()}function iM(t){return iM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},iM(t)}function oM(t,e){return oM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oM(t,e)}function aM(t,e,r){return(e=cM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cM(t){var e=function(t,e){if("object"!=KA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=KA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==KA(e)?e:e+""}var lM,uM,sM,fM,pM=function(t){return t.changedTouches&&!!t.changedTouches.length},hM=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),aM(r=rM(this,e,[t]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),aM(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),aM(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),aM(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),aM(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),aM(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),aM(r,"handleSlideDragStart",(function(t){var e=pM(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oM(t,e)}(e,dt),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,l=Math.min(r,n),u=Math.max(r,n),s=e.getIndexInRange(i,l),f=e.getIndexInRange(i,u);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=GO(r[t],i,t);return Ea(n)?n(o,t):o}},{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(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,l=o.travellerWidth,u=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-l-i,a+c-l-n):p<0&&(p=Math.max(p,a-n,a-i));var h=this.getIndex({startX:n+p,endX:i+p});h.startIndex===u&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=pM(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],c=this.props,l=c.x,u=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,d={startX:this.state.startX,endX:this.state.endX},v=t.pageX-r;v>0?v=Math.min(v,l+u-s-a):v<0&&(v=Math.max(v,l-a)),d[n]=a+v;var y=this.getIndex(d),g=y.startIndex,m=y.endIndex;this.setState(aM(aM({},n,a+v),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(i>o?g%p==0:m%p==0)||i<o&&m===t||"endX"===n&&(i>o?m%p==0:g%p==0)||i>o&&m===t)&&f(y))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],l=i.indexOf(c);if(-1!==l){var u=l+t;if(!(-1===u||u>=i.length)){var s=i[u];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(aM({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return ft.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,l=ht.only(a);return l?ft.cloneElement(l,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,i,o=this,a=this.props,c=a.y,l=a.travellerWidth,u=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,h=a.startIndex,d=a.endIndex,v=Math.max(t,this.props.x),y=tM(tM({},Pc(this.props,!1)),{},{x:v,y:c,width:l,height:u}),g=f||"Min value: ".concat(null===(n=p[h])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[d])||void 0===i?void 0:i.name);return ft.createElement(Qc,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,y))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,l=Math.max(Math.abs(e-t)-a,0);return ft.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,l=c.startX,u=c.endX,s={pointerEvents:"none",fill:a};return ft.createElement(Qc,{className:"recharts-brush-texts"},ft.createElement(fy,JA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+i/2},s),this.getTextOfTick(e)),ft.createElement(fy,JA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,l=t.alwaysShowText,u=this.state,s=u.startX,f=u.endX,p=u.isTextActive,h=u.isSlideMoving,d=u.isTravellerMoving,v=u.isTravellerFocused;if(!e||!e.length||!Ga(i)||!Ga(o)||!Ga(a)||!Ga(c)||a<=0||c<=0)return null;var y,g,m,b,w=Gn("recharts-brush",r),x=1===ft.Children.count(n),O=(g="none",m=(y="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=XA.reduce((function(t,e){return YA(YA({},t),{},GA({},e+m,g))}),{}))[y]=g,b);return ft.createElement(Qc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||v||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return ft.createElement(ft.Fragment,null,ft.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),ft.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),ft.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return ft.isValidElement(t)?ft.cloneElement(t,r):Ea(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,l=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return tM({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,l=$y().domain(WA(0,c)).range([i,i+o-a]),u=l.domain().map((function(t){return l(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:u}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var u=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&eM(r.prototype,n),i&&eM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();aM(hM,"displayName","Brush"),aM(hM,"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 dM,vM,yM,gM,mM=function(){if(fM)return sM;fM=1;var t=ks(),e=qp(),r=function(){if(uM)return lM;uM=1;var t=ld();return lM=function(e,r){var n;return t(e,(function(t,e,i){return!(n=r(t,e,i))})),!!n}}(),n=qo(),i=yd();return sM=function(o,a,c){var l=n(o)?t:r;return c&&i(o,a,c)&&(a=void 0),l(o,e(a,3))}}(),bM=kr(mM),wM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var xM,OM,SM,_M,jM,PM,AM=function(){if(gM)return yM;gM=1;var t=function(){if(vM)return dM;vM=1;var t=hd();return dM=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},dM}(),e=cd(),r=qp();return yM=function(n,i){var o={};return i=r(i,3),e(n,(function(e,r,n){t(o,r,i(e,r,n))})),o},yM}(),MM=kr(AM);var kM=function(){if(PM)return jM;PM=1;var t=(OM||(OM=1,xM=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}),xM),e=function(){if(_M)return SM;_M=1;var t=ld();return SM=function(e,r){var n=!0;return t(e,(function(t,e,i){return n=!!r(t,e,i)})),n}}(),r=qp(),n=qo(),i=yd();return jM=function(o,a,c){var l=n(o)?t:e;return c&&i(o,a,c)&&(a=void 0),l(o,r(a,3))}}(),CM=kr(kM),EM=["x","y"];function TM(t){return TM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TM(t)}function DM(){return DM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},DM.apply(this,arguments)}function IM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function NM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?IM(Object(r),!0).forEach((function(e){RM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function RM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=TM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=TM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==TM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function LM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function BM(t,e){var r=t.x,n=t.y,i=LM(t,EM),o="".concat(r),a=parseInt(o,10),c="".concat(n),l=parseInt(c,10),u="".concat(e.height||i.height),s=parseInt(u,10),f="".concat(e.width||i.width),p=parseInt(f,10);return NM(NM(NM(NM(NM({},e),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function zM(t){return ft.createElement(IA,DM({shapeType:"rectangle",propTransformer:BM,activeClassName:"recharts-active-bar"},t))}var $M,HM=["value","background"];function FM(t){return FM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FM(t)}function VM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function UM(){return UM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},UM.apply(this,arguments)}function WM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ZM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WM(Object(r),!0).forEach((function(e){JM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,QM(n.key),n)}}function YM(t,e,r){return e=XM(e),function(t,e){if(e&&("object"===FM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,GM()?Reflect.construct(e,r||[],XM(t).constructor):e.apply(t,r))}function GM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(GM=function(){return!!t})()}function XM(t){return XM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},XM(t)}function KM(t,e){return KM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},KM(t,e)}function JM(t,e,r){return(e=QM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QM(t){var e=function(t,e){if("object"!=FM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=FM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==FM(e)?e:e+""}var tk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return JM(t=YM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),JM(t,"id",Ja("recharts-bar-")),JM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),JM(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&KM(t,e)}(e,dt),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=Pc(this.props,!1);return t&&t.map((function(t,r){var l=r===o,u=l?a:n,s=ZM(ZM(ZM({},c),t),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return ft.createElement(Qc,UM({className:"recharts-bar-rectangle"},fc(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(r)}),ft.createElement(zM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,l=e.animationId,u=this.state.prevData;return ft.createElement(EP,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=u&&u[e];if(r){var o=ec(r.x,t.x),a=ec(r.y,t.y),c=ec(r.width,t.width),l=ec(r.height,t.height);return ZM(ZM({},t),{},{x:o(i),y:a(i),width:c(i),height:l(i)})}if("horizontal"===n){var s=ec(0,t.height)(i);return ZM(ZM({},t),{},{y:t.y+t.height-s,height:s})}var f=ec(0,t.width)(i);return ZM(ZM({},t),{},{width:f})}));return ft.createElement(Qc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&mx(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=Pc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=VM(e,HM);if(!a)return null;var l=ZM(ZM(ZM(ZM(ZM({},c),{},{fill:"#eee"},a),o),fc(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return ft.createElement(zM,UM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=xc(r.children,LO);if(!c)return null;var l="vertical"===a?n[0].height/2:n[0].width/2,u=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:GO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return ft.createElement(Qc,s,c.map((function(t){return ft.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,l=t.width,u=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=Gn("recharts-bar",n),v=i&&i.allowDataOverflow,y=o&&o.allowDataOverflow,g=v||y,m=Aa(p)?this.id:p;return ft.createElement(Qc,{className:d},v||y?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(m)},ft.createElement("rect",{x:v?a:a-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,ft.createElement(Qc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||h)&&n_.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&qM(r.prototype,n),i&&qM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function ek(t){return ek="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ek(t)}function rk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ak(n.key),n)}}function nk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ik(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nk(Object(r),!0).forEach((function(e){ok(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ok(t,e,r){return(e=ak(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ak(t){var e=function(t,e){if("object"!=ek(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ek(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ek(e)?e:e+""}$M=tk,JM(tk,"displayName","Bar"),JM(tk,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Wd,animationBegin:0,animationDuration:400,animationEasing:"ease"}),JM(tk,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,l=t.yAxisTicks,u=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var d=e.layout,v=r.type.defaultProps,y=void 0!==v?ZM(ZM({},v),r.props):r.props,g=y.dataKey,m=y.children,b=y.minPointSize,w="horizontal"===d?a:o,x=u?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:w}),S=xc(m,Mv),_=f.map((function(t,e){var n,f,p,v,y,m;u?n=function(t,e){if(!e||2!==e.length||!Ga(e[0])||!Ga(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Ga(t[0])||t[0]<r)&&(i[0]=r),(!Ga(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(u[s+e],x):(n=GO(t,g),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?SO(0,"minPointSize callback function received a value with type of ".concat(TM(r),". Currently only numbers are supported.")):SO()),e)}}(b,$M.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var _,j=[a.scale(n[0]),a.scale(n[1])],P=j[0],A=j[1];f=lS({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,v=h.size;var M=P-A;if(y=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:v,height:a.height},Math.abs(w)>0&&Math.abs(y)<Math.abs(w)){var k=qa(y||w)*(Math.abs(w)-Math.abs(y));p-=k,y+=k}}else{var C=[o.scale(n[0]),o.scale(n[1])],E=C[0],T=C[1];if(f=E,p=lS({axis:a,ticks:l,bandSize:i,offset:h.offset,entry:t,index:e}),v=T-E,y=h.size,m={x:o.x,y:p,width:o.width,height:y},Math.abs(w)>0&&Math.abs(v)<Math.abs(w))v+=qa(v||w)*(Math.abs(w)-Math.abs(v))}return ZM(ZM(ZM({},t),{},{x:f,y:p,width:v,height:y,value:u?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[vS(r,t)],tooltipPosition:{x:f+v/2,y:p+y/2}})}));return ZM({data:_,layout:d},p)}));var ck=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,l=t.children,u=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!Oc(l,tk);return u.reduce((function(o,a){var l,u,p,h,d,v=e[a],y=v.orientation,g=v.domain,m=v.padding,b=void 0===m?{}:m,w=v.mirror,x=v.reversed,O="".concat(y).concat(w?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=g[1]-g[0],_=1/0,j=v.categoricalDomain.sort(nc);if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(l=P*A/2),"no-gap"===v.padding){var M=Qa(t.barCategoryGap,P*A),k=P*A/2;l=k-M-(k-M)/A*M}}}u="xAxis"===n?[r.left+(b.left||0)+(l||0),r.left+r.width-(b.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(l||0),r.top+r.height-(b.bottom||0)-(l||0)]:v.range,x&&(u=[u[1],u[0]]);var C=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:By(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:lm(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:$y(),realScaleType:"point"}:"category"===i?{scale:By(),realScaleType:"band"}:{scale:lm(),realScaleType:"linear"};if(Ca(n)){var c="scale".concat(al(n));return{scale:(Qw[c]||$y)(),realScaleType:Qw[c]?c:"point"}}return Ea(n)?{scale:n}:{scale:$y(),realScaleType:"point"}}(v,i,f),E=C.scale,T=C.realScaleType;E.domain(g).range(u),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-iS,o=Math.max(n[0],n[1])+iS,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(E);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var l=t.domain();if(!l.length)return null;var u=bO(l,i,a);return t.domain([px(u),ax(u)]),{niceTicks:u}}if(i&&"number"===n){var s=t.domain();return{niceTicks:wO(s,i,a)}}return null}(E,ik(ik({},v),{},{realScaleType:T}));"xAxis"===n?(d="top"===y&&!w||"bottom"===y&&w,p=r.left,h=s[O]-d*v.height):"yAxis"===n&&(d="left"===y&&!w||"right"===y&&w,p=s[O]-d*v.width,h=r.top);var I=ik(ik(ik({},v),D),{},{realScaleType:T,x:p,y:h,scale:E,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return I.bandSize=hS(I,D),v.hide||"xAxis"!==n?v.hide||(s[O]+=(d?-1:1)*I.width):s[O]+=(d?-1:1)*I.height,ik(ik({},o),{},ok({},a,I))}),{})},lk=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},uk=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{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(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&rk(e.prototype,r),n&&rk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();ok(uk,"EPS",1e-4);var sk=function(t){var e=Object.keys(t).reduce((function(e,r){return ik(ik({},e),{},ok({},r,uk.create(t[r])))}),{});return ik(ik({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return MM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return CM(t,(function(t,r){return e[r].isInRange(t)}))}})};var fk,pk,hk,dk,vk,yk,gk,mk,bk=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function wk(){if(yk)return vk;yk=1;var t=Yp(),e=qp(),r=function(){if(dk)return hk;dk=1;var t=FA();return hk=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return vk=function(i,o,a){var c=null==i?0:i.length;if(!c)return-1;var l=null==a?0:r(a);return l<0&&(l=n(c+l,0)),t(i,e(o,3),l)},vk}!function(){if(mk)return gk;mk=1;var t=function(){if(pk)return fk;pk=1;var t=qp(),e=Ip(),r=Np();return fk=function(n){return function(i,o,a){var c=Object(i);if(!e(i)){var l=t(o,3);i=r(i),o=function(t){return l(c[t],t,c)}}var u=n(i,o,a);return u>-1?c[l?i[u]:u]:void 0}}}(),e=t(wk());gk=e}();var xk=kr(da())((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function Ok(t){return Ok="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ok(t)}var Sk=jt(void 0),_k=jt(void 0),jk=jt(void 0),Pk=jt({}),Ak=jt(void 0),Mk=jt(0),kk=jt(0),Ck=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,l=t.height,u=xk(i);return ft.createElement(Sk.Provider,{value:r},ft.createElement(_k.Provider,{value:n},ft.createElement(Pk.Provider,{value:i},ft.createElement(jk.Provider,{value:u},ft.createElement(Ak.Provider,{value:o},ft.createElement(Mk.Provider,{value:l},ft.createElement(kk.Provider,{value:c},a)))))))};function Ek(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var Tk=function(t){var e=_t(Sk);null==e&&("production"!==process.env.NODE_ENV?SO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):SO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?SO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(Ok(t),"]. ").concat(Ek(e))):SO()),r},Dk=function(t){var e=_t(_k);null==e&&("production"!==process.env.NODE_ENV?SO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):SO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?SO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(Ok(t),"]. ").concat(Ek(e))):SO()),r},Ik=function(){return _t(kk)},Nk=function(){return _t(Mk)};function Rk(t){return Rk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rk(t)}function Lk(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Wk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bk(t,e,r){return e=$k(e),function(t,e){if(e&&("object"===Rk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,zk()?Reflect.construct(e,r||[],$k(t).constructor):e.apply(t,r))}function zk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zk=function(){return!!t})()}function $k(t){return $k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$k(t)}function Hk(t,e){return Hk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hk(t,e)}function Fk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fk(Object(r),!0).forEach((function(e){Uk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Uk(t,e,r){return(e=Wk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wk(t){var e=function(t,e){if("object"!=Rk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Rk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Rk(e)?e:e+""}function Zk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return qk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qk(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yk(){return Yk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yk.apply(this,arguments)}function Gk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,l=t.alwaysShow,u=_t(Ak),s=Tk(i),f=Dk(o),p=_t(jk);if(!u||!p)return null;el(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(t,e,r,n,i,o,a,c,l){var u=i.x,s=i.y,f=i.width,p=i.height;if(r){var h=l.y,d=t.y.apply(h,{position:o});if(wM(l,"discard")&&!t.y.isInRange(d))return null;var v=[{x:u+f,y:d},{x:u,y:d}];return"left"===c?v.reverse():v}if(e){var y=l.x,g=t.x.apply(y,{position:o});if(wM(l,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:s+p},{x:g,y:s}];return"top"===a?m.reverse():m}if(n){var b=l.segment.map((function(e){return t.apply(e,{position:o})}));return wM(l,"discard")&&bM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(sk({x:s.scale,y:f.scale}),Xa(e),Xa(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!h)return null;var d=Zk(h,2),v=d[0],y=v.x,g=v.y,m=d[1],b=m.x,w=m.y,x=Vk(Vk({clipPath:wM(t,"hidden")?"url(#".concat(u,")"):void 0},Pc(t,!0)),{},{x1:y,y1:g,x2:b,y2:w});return ft.createElement(Qc,{className:Gn("recharts-reference-line",c)},function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ea(t)?t(e):ft.createElement("line",Yk({},e,{className:"recharts-reference-line-line"}))}(a,x),$S.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return lk({x:e,y:r},{x:n,y:i})}({x1:y,y1:g,x2:b,y2:w})))}var Xk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Bk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hk(t,e)}(e,ft.Component),Lk(e,[{key:"render",value:function(){return ft.createElement(Gk,this.props)}}])}();function Kk(){return Kk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Kk.apply(this,arguments)}function Jk(t){return Jk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jk(t)}function Qk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qk(Object(r),!0).forEach((function(e){aC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function eC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function rC(t,e,r){return e=iC(e),function(t,e){if(e&&("object"===Jk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,nC()?Reflect.construct(e,r||[],iC(t).constructor):e.apply(t,r))}function nC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nC=function(){return!!t})()}function iC(t){return iC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},iC(t)}function oC(t,e){return oC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oC(t,e)}function aC(t,e,r){return(e=cC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cC(t){var e=function(t,e){if("object"!=Jk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Jk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Jk(e)?e:e+""}Uk(Xk,"displayName","ReferenceLine"),Uk(Xk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var lC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),rC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oC(t,e)}(e,ft.Component),eC(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=Xa(r),l=Xa(n);if(el(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var u=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=sk({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return wM(t,"discard")&&!o.isInRange(a)?null:a}(this.props);if(!u)return null;var s=u.x,f=u.y,p=this.props,h=p.shape,d=p.className,v=tC(tC({clipPath:wM(this.props,"hidden")?"url(#".concat(a,")"):void 0},Pc(this.props,!0)),{},{cx:s,cy:f});return ft.createElement(Qc,{className:Gn("recharts-reference-dot",d)},e.renderDot(h,v),$S.renderCallByParent(this.props,{x:s-i,y:f-i,width:2*i,height:2*i}))}}])}();function uC(){return uC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uC.apply(this,arguments)}function sC(t){return sC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sC(t)}function fC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fC(Object(r),!0).forEach((function(e){mC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function dC(t,e,r){return e=yC(e),function(t,e){if(e&&("object"===sC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,vC()?Reflect.construct(e,r||[],yC(t).constructor):e.apply(t,r))}function vC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vC=function(){return!!t})()}function yC(t){return yC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yC(t)}function gC(t,e){return gC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gC(t,e)}function mC(t,e,r){return(e=bC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bC(t){var e=function(t,e){if("object"!=sC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==sC(e)?e:e+""}aC(lC,"displayName","ReferenceDot"),aC(lC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),aC(lC,"renderDot",(function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ea(t)?t(e):ft.createElement(UP,Kk({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var wC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),dC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gC(t,e)}(e,ft.Component),hC(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,l=t.clipPathId;el(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Xa(r),s=Xa(n),f=Xa(i),p=Xa(o),h=this.props.shape;if(!(u||s||f||p||h))return null;var d=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,l=i.y2,u=i.xAxis,s=i.yAxis;if(!u||!s)return null;var f=sk({x:u.scale,y:s.scale}),p={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!wM(i,"discard")||f.isInRange(p)&&f.isInRange(h)?lk(p,h):null}(u,s,f,p,this.props);if(!d&&!h)return null;var v=wM(this.props,"hidden")?"url(#".concat(l,")"):void 0;return ft.createElement(Qc,{className:Gn("recharts-reference-area",a)},e.renderRect(h,pC(pC({clipPath:v},Pc(this.props,!0)),d)),$S.renderCallByParent(this.props,d))}}])}();function xC(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function OC(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function SC(t){return SC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},SC(t)}function _C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_C(Object(r),!0).forEach((function(e){PC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_C(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function PC(t,e,r){return e=function(t){var e=function(t,e){if("object"!=SC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=SC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==SC(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AC(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,l=t.interval,u=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(Ga(l)||Wd)return function(t,e){return xC(t,e+1)}(i,"number"==typeof l&&Ga(l)?l:0);var p=[],h="top"===c||"bottom"===c?"width":"height",d=s&&"width"===h?Rv(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},v=function(t,n){var i=Ea(u)?u(t.value,n):t.value;return"width"===h?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return bk(n,r)}(Rv(i,{fontSize:e,letterSpacing:r}),d,f):Rv(i,{fontSize:e,letterSpacing:r})[h]},y=i.length>=2?qa(i[1].coordinate-i[0].coordinate):1,g=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,y,h);return"equidistantPreserveStart"===l?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,l=e.end,u=0,s=1,f=c,p=function(){var e=null==n?void 0:n[u];if(void 0===e)return{v:xC(n,s)};var o,a=u,p=function(){return void 0===o&&(o=r(e,a)),o},h=e.coordinate,d=0===u||OC(t,h,p,f,l);d||(u=0,f=c,s+=1),d&&(f=h+t*(p()/2+i),u+=s)};s<=a.length;)if(o=p())return o.v;return[]}(y,g,v,i,a):(p="preserveStart"===l||"preserveStartEnd"===l?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,l=e.start,u=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-u);a[c-1]=s=jC(jC({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),OC(t,s.tickCoord,(function(){return f}),l,u)&&(u=s.tickCoord-t*(f/2+i),a[c-1]=jC(jC({},s),{},{isShow:!0}))}for(var h=o?c-1:c,d=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-l);a[e]=o=jC(jC({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=jC(jC({},o),{},{tickCoord:o.coordinate});OC(t,o.tickCoord,c,l,u)&&(l=o.tickCoord+t*(c()/2+i),a[e]=jC(jC({},o),{},{isShow:!0}))},v=0;v<h;v++)d(v);return a}(y,g,v,i,a,"preserveStartEnd"===l):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,l=e.end,u=function(e){var n,u=o[e],s=function(){return void 0===n&&(n=r(u,e)),n};if(e===a-1){var f=t*(u.coordinate+t*s()/2-l);o[e]=u=jC(jC({},u),{},{tickCoord:f>0?u.coordinate-f*t:u.coordinate})}else o[e]=u=jC(jC({},u),{},{tickCoord:u.coordinate});OC(t,u.tickCoord,s,c,l)&&(l=u.tickCoord-t*(s()/2+i),o[e]=jC(jC({},u),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return o}(y,g,v,i,a),p.filter((function(t){return t.isShow})))}mC(wC,"displayName","ReferenceArea"),mC(wC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),mC(wC,"renderRect",(function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ea(t)?t(e):ft.createElement(FP,uC({},e,{className:"recharts-reference-area-rect"}))}));var MC=["viewBox"],kC=["viewBox"],CC=["ticks"];function EC(t){return EC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},EC(t)}function TC(){return TC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},TC.apply(this,arguments)}function DC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function IC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DC(Object(r),!0).forEach((function(e){HC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function NC(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function RC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,FC(n.key),n)}}function LC(t,e,r){return e=zC(e),function(t,e){if(e&&("object"===EC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,BC()?Reflect.construct(e,r||[],zC(t).constructor):e.apply(t,r))}function BC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(BC=function(){return!!t})()}function zC(t){return zC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zC(t)}function $C(t,e){return $C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$C(t,e)}function HC(t,e,r){return(e=FC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FC(t){var e=function(t,e){if("object"!=EC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=EC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==EC(e)?e:e+""}var VC=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=LC(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$C(t,e)}(e,Pt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=NC(t,MC),i=this.props,o=i.viewBox,a=NC(i,kC);return!ic(r,o)||!ic(n,a)||!ic(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,i,o,a,c=this.props,l=c.x,u=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,v=c.tickMargin,y=d?-1:1,g=t.tickSize||h,m=Ga(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=u+ +!d*f)-y*g)-y*v,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=l+ +!d*s)-y*g)-y*v,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=l+ +d*s)+y*g)+y*v,a=m;break;default:e=r=t.coordinate,a=(n=(i=u+ +d*f)+y*g)+y*v,o=m}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,l=IC(IC(IC({},Pc(this.props,!1)),Pc(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!a||"bottom"===o&&a);l=IC(IC({},l),{},{x1:e,y1:r+u*i,x2:e+n,y2:r+u*i})}else{var s=+("left"===o&&!a||"right"===o&&a);l=IC(IC({},l),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return ft.createElement("line",TC({},l,{className:Gn("recharts-cartesian-axis-line",_a(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,l=o.tick,u=o.tickFormatter,s=o.unit,f=AC(IC(IC({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=Pc(this.props,!1),v=Pc(l,!1),y=IC(IC({},d),{},{fill:"none"},Pc(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=IC(IC(IC(IC({textAnchor:p,verticalAnchor:h},d),{},{stroke:"none",fill:c},v),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:u});return ft.createElement(Qc,TC({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},fc(i.props,t,r)),a&&ft.createElement("line",TC({},y,o,{className:Gn("recharts-cartesian-axis-tick-line",_a(a,"className"))})),l&&e.renderTickItem(l,m,"".concat(Ea(u)?u(t.value,r):t.value).concat(s||"")))}));return ft.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,l=c.ticks,u=NC(c,CC),s=l;return Ea(o)&&(s=l&&l.length>0?o(this.props):o(u)),n<=0||i<=0||!s||!s.length?null:ft.createElement(Qc,{className:Gn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),$S.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return ft.isValidElement(t)?ft.cloneElement(t,e):Ea(t)?t(e):ft.createElement(fy,TC({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&RC(r.prototype,n),i&&RC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();HC(VC,"displayName","CartesianAxis"),HC(VC,"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 UC=["type","layout","connectNulls","ref"],WC=["key"];function ZC(t){return ZC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZC(t)}function qC(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function YC(){return YC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},YC.apply(this,arguments)}function GC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function XC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?GC(Object(r),!0).forEach((function(e){iE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function KC(t){return function(t){if(Array.isArray(t))return JC(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return JC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return JC(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JC(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function QC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oE(n.key),n)}}function tE(t,e,r){return e=rE(e),function(t,e){if(e&&("object"===ZC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,eE()?Reflect.construct(e,r||[],rE(t).constructor):e.apply(t,r))}function eE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(eE=function(){return!!t})()}function rE(t){return rE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rE(t)}function nE(t,e){return nE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nE(t,e)}function iE(t,e,r){return(e=oE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oE(t){var e=function(t,e){if("object"!=ZC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ZC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==ZC(e)?e:e+""}var aE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return iE(t=tE(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),iE(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),iE(t,"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,l=n-r,u=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){u=[].concat(KC(i.slice(0,s)),[c-f]);break}var p=u.length%2==0?[0,l]:[l];return[].concat(KC(e.repeat(i,a)),KC(u),p).map((function(t){return"".concat(t,"px")})).join(", ")})),iE(t,"id",Ja("recharts-line-")),iE(t,"pathRef",(function(e){t.mainCurve=e})),iE(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),iE(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nE(t,e)}(e,dt),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=xc(r.children,LO);if(!c)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:GO(t.payload,e)}},u={clipPath:t?"url(#clipPath-".concat(e,")"):null};return ft.createElement(Qc,u,c.map((function(t){return ft.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,l=Pc(this.props,!1),u=Pc(o,!0),s=a.map((function(t,r){var n=XC(XC(XC({key:"dot-".concat(r),r:3},l),u),{},{index:r,cx:t.x,cy:t.y,value:t.value,dataKey:c,payload:t.payload,points:a});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return ft.createElement(Qc,YC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var l=qC(i,UC),u=XC(XC(XC({},Pc(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return ft.createElement(__,YC({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,h=n.height,d=this.state,v=d.prevPoints,y=d.totalLength;return ft.createElement(EP,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(v){var c=v.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=ec(n.x,t.x),o=ec(n.y,t.y);return XC(XC({},t),{},{x:i(a),y:o(a)})}if(f){var l=ec(2*p,t.x),u=ec(h/2,t.y);return XC(XC({},t),{},{x:l(a),y:u(a)})}return XC(XC({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(l,t,e)}var u,s=ec(0,y)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));u=r.getStrokeDasharray(s,y,d)}else u=r.generateSimpleStrokeDasharray(y,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!mx(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,l=e.top,u=e.left,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,v=1===i.length,y=Gn("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=Aa(h)?this.id:h,x=null!==(t=Pc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(jc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return ft.createElement(Qc,{className:y},g||m?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(w)},ft.createElement("rect",{x:g?u:u-s/2,y:m?l:l-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&ft.createElement("clipPath",{id:"clipPath-dots-".concat(w)},ft.createElement("rect",{x:u-M/2,y:l-M/2,width:s+M,height:f+M}))):null,!v&&this.renderCurve(b,w),this.renderErrorBar(b,w),(v||n)&&this.renderDots(b,A,w),(!p||d)&&n_.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(KC(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(KC(n),KC(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(ft.isValidElement(t))r=ft.cloneElement(t,e);else if(Ea(t))r=t(e);else{var n=e.key,i=qC(e,WC),o=Gn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=ft.createElement(UP,YC({key:n},i,{className:o}))}return r}}],n&&QC(r.prototype,n),i&&QC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();iE(aE,"displayName","Line"),iE(aE,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Wd,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),iE(aE,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,l=t.displayedData,u=t.offset,s=e.layout;return XC({points:l.map((function(t,e){var l=GO(t,a);return"horizontal"===s?{x:cS({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:Aa(l)?null:n.scale(l),value:l,payload:t}:{x:Aa(l)?null:r.scale(l),y:cS({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:l,payload:t}})),layout:s},u)}));var cE,lE=["layout","type","stroke","connectNulls","isRange","ref"],uE=["key"];function sE(t){return sE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sE(t)}function fE(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function pE(){return pE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pE.apply(this,arguments)}function hE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hE(Object(r),!0).forEach((function(e){wE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xE(n.key),n)}}function yE(t,e,r){return e=mE(e),function(t,e){if(e&&("object"===sE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,gE()?Reflect.construct(e,r||[],mE(t).constructor):e.apply(t,r))}function gE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(gE=function(){return!!t})()}function mE(t){return mE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mE(t)}function bE(t,e){return bE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bE(t,e)}function wE(t,e,r){return(e=xE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xE(t){var e=function(t,e){if("object"!=sE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==sE(e)?e:e+""}var OE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return wE(t=yE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),wE(t,"id",Ja("recharts-area-")),wE(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ea(e)&&e()})),wE(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ea(e)&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bE(t,e)}(e,dt),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,l=a.points,u=a.dataKey,s=Pc(this.props,!1),f=Pc(c,!0),p=l.map((function(t,r){var n=dE(dE(dE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:u,value:t.value,payload:t.payload,points:l});return e.renderDotItem(c,n)})),h={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return ft.createElement(Qc,pE({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),l=ax(n.map((function(t){return t.y||0})));return Ga(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(ax(r.map((function(t){return t.y||0}))),l)),Ga(l)?ft.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),l=ax(n.map((function(t){return t.x||0})));return Ga(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(ax(r.map((function(t){return t.x||0}))),l)),Ga(l)?ft.createElement("rect",{x:0,y:o<a?o:o-c,width:l+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,l=i.connectNulls,u=i.isRange;i.ref;var s=fE(i,lE);return ft.createElement(Qc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},ft.createElement(__,pE({},Pc(s,!0),{points:t,connectNulls:l,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&ft.createElement(__,pE({},Pc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:t})),"none"!==c&&u&&ft.createElement(__,pE({},Pc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,h=f.prevBaseLine;return ft.createElement(EP,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,l=p.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*l);if(p[r]){var n=p[r],i=ec(n.x,t.x),o=ec(n.y,t.y);return dE(dE({},t),{},{x:i(a),y:o(a)})}return t}));return c=Ga(o)&&"number"==typeof o?ec(h,o)(a):Aa(o)||Wa(o)?ec(h,0)(a):o.map((function(t,e){var r=Math.floor(e*l);if(h[r]){var n=h[r],i=ec(n.x,t.x),o=ec(n.y,t.y);return dE(dE({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(u,c,t,e)}return ft.createElement(Qc,null,ft.createElement("defs",null,ft.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),ft.createElement(Qc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,l=a.prevBaseLine,u=a.totalLength;return o&&n&&n.length&&(!c&&u>0||!mx(c,n)||!mx(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,l=e.xAxis,u=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,v=1===i.length,y=Gn("recharts-area",o),g=l&&l.allowDataOverflow,m=u&&u.allowDataOverflow,b=g||m,w=Aa(h)?this.id:h,x=null!==(t=Pc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(jc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return ft.createElement(Qc,{className:y},g||m?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(w)},ft.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&ft.createElement("clipPath",{id:"clipPath-dots-".concat(w)},ft.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,v?null:this.renderArea(b,w),(n||v)&&this.renderDots(b,A,w),(!p||d)&&n_.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&vE(r.prototype,n),i&&vE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function SE(t){return SE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},SE(t)}function _E(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,CE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function jE(t,e,r){return e=AE(e),function(t,e){if(e&&("object"===SE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,PE()?Reflect.construct(e,r||[],AE(t).constructor):e.apply(t,r))}function PE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(PE=function(){return!!t})()}function AE(t){return AE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},AE(t)}function ME(t,e){return ME=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ME(t,e)}function kE(t,e,r){return(e=CE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CE(t){var e=function(t,e){if("object"!=SE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=SE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==SE(e)?e:e+""}function EE(){return EE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},EE.apply(this,arguments)}function TE(t){var e=t.xAxisId,r=Ik(),n=Nk(),i=Tk(e);return null==i?null:ft.createElement(VC,EE({},i,{className:Gn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return eS(t,!0)}}))}cE=OE,wE(OE,"displayName","Area"),wE(OE,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Wd,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),wE(OE,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Ga(c)&&"number"==typeof c)return c;var l="horizontal"===i?n:r,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]})),wE(OE,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,l=t.bandSize,u=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,h=t.offset,d=r.layout,v=s&&s.length,y=cE.getBaseValue(r,n,i,o),g="horizontal"===d,m=!1,b=p.map((function(t,e){var r;v?r=s[f+e]:(r=GO(t,u),Array.isArray(r)?m=!0:r=[y,r]);var n=null==r[1]||v&&null==GO(t,u);return g?{x:cS({axis:i,ticks:a,bandSize:l,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:cS({axis:o,ticks:c,bandSize:l,entry:t,index:e}),value:r,payload:t}}));return e=v||m?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return g?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):g?o.scale(y):i.scale(y),dE({points:b,baseLine:e,layout:d,isRange:m},h)})),wE(OE,"renderDotItem",(function(t,e){var r;if(ft.isValidElement(t))r=ft.cloneElement(t,e);else if(Ea(t))r=t(e);else{var n=Gn("recharts-area-dot","boolean"!=typeof t?t.className:""),i=e.key,o=fE(e,uE);r=ft.createElement(UP,pE({},o,{key:i,className:n}))}return r}));var DE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),jE(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ME(t,e)}(e,ft.Component),_E(e,[{key:"render",value:function(){return ft.createElement(TE,this.props)}}])}();function IE(t){return IE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IE(t)}function NE(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function RE(t,e,r){return e=BE(e),function(t,e){if(e&&("object"===IE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,LE()?Reflect.construct(e,r||[],BE(t).constructor):e.apply(t,r))}function LE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(LE=function(){return!!t})()}function BE(t){return BE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},BE(t)}function zE(t,e){return zE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zE(t,e)}function $E(t,e,r){return(e=HE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function HE(t){var e=function(t,e){if("object"!=IE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=IE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==IE(e)?e:e+""}function FE(){return FE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},FE.apply(this,arguments)}kE(DE,"displayName","XAxis"),kE(DE,"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});var VE=function(t){var e=t.yAxisId,r=Ik(),n=Nk(),i=Dk(e);return null==i?null:ft.createElement(VC,FE({},i,{className:Gn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return eS(t,!0)}}))},UE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),RE(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zE(t,e)}(e,ft.Component),NE(e,[{key:"render",value:function(){return ft.createElement(VE,this.props)}}])}();function WE(t){return function(t){if(Array.isArray(t))return ZE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ZE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZE(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}$E(UE,"displayName","YAxis"),$E(UE,"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});var qE,YE=function(t,e,r,n,i){var o=xc(t,Xk),a=xc(t,lC),c=[].concat(WE(o),WE(a)),l=xc(t,wC),u="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[u]===r&&wM(e.props,"extendDomain")&&Ga(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),l.length){var p="".concat(s,"1"),h="".concat(s,"2");f=l.reduce((function(t,e){if(e.props[u]===r&&wM(e.props,"extendDomain")&&Ga(e.props[p])&&Ga(e.props[h])){var n=e.props[p],i=e.props[h];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return Ga(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},GE={exports:{}};var XE=(qE||(qE=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],c]:t._events[l].push(c):(t._events[l]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var l,u,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];s.fn.apply(s.context,l)}else{var p,h=s.length;for(u=0;u<h;u++)switch(s[u].once&&this.removeListener(t,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,e);break;case 3:s[u].fn.call(s[u].context,e,n);break;case 4:s[u].fn.call(s[u].context,e,n,i);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];s[u].fn.apply(s[u].context,l)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var l=0,u=[],s=c.length;l<s;l++)(c[l].fn!==e||i&&!c[l].once||n&&c[l].context!==n)&&u.push(c[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(GE)),GE.exports),KE=new(kr(XE)),JE="recharts.syncMouseEvents";function QE(t){return QE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QE(t)}function tT(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function eT(t,e,r){return(e=rT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rT(t){var e=function(t,e){if("object"!=QE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=QE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==QE(e)?e:e+""}var nT=function(){return tT((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),eT(this,"activeIndex",0),eT(this,"coordinateList",[]),eT(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,l=t.offset,u=void 0===l?null:l,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=f?f: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(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,l=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,u=n+a+c,s=i+this.offset.top+o/2+l;this.mouseHandlerCallback({pageX:u,pageY:s})}}}])}();function iT(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[OS(e,r,n,i),OS(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function oT(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return iT(e);var c=e.cx,l=e.cy,u=e.innerRadius,s=e.outerRadius,f=e.angle,p=OS(c,l,u,f),h=OS(c,l,s,f);n=p.x,i=p.y,o=h.x,a=h.y}return[{x:n,y:i},{x:o,y:a}]}function aT(t){return aT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aT(t)}function cT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cT(Object(r),!0).forEach((function(e){uT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uT(t,e,r){return e=function(t){var e=function(t,e){if("object"!=aT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=aT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==aT(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sT(t){var e,r,n,i=t.element,o=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,l=t.activePayload,u=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,h=t.chartName,d=null!==(e=i.props.cursor)&&void 0!==e?e:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!d||!a||!c||"ScatterChart"!==h&&"axis"!==o)return null;var v=__;if("ScatterChart"===h)n=c,v=rA;else if("BarChart"===h)n=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,c,u,f),v=FP;else if("radial"===p){var y=iT(c),g=y.cx,m=y.cy,b=y.radius;n={cx:g,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},v=p_}else n={points:oT(p,c,u)},v=__;var w=lT(lT(lT(lT({stroke:"#ccc",pointerEvents:"none"},u),n),Pc(d,!1)),{},{payload:l,payloadIndex:s,className:Gn("recharts-tooltip-cursor",d.className)});return pt(d)?Ot(d,w):St(v,w)}var fT=["item"],pT=["children","className","width","height","style","compact","title","desc"];function hT(t){return hT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hT(t)}function dT(){return dT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dT.apply(this,arguments)}function vT(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||ST(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function gT(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function mT(t,e,r){return e=wT(e),function(t,e){if(e&&("object"===hT(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,bT()?Reflect.construct(e,r||[],wT(t).constructor):e.apply(t,r))}function bT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bT=function(){return!!t})()}function wT(t){return wT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wT(t)}function xT(t,e){return xT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xT(t,e)}function OT(t){return function(t){if(Array.isArray(t))return _T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ST(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ST(t,e){if(t){if("string"==typeof t)return _T(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_T(t,e):void 0}}function _T(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function PT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jT(Object(r),!0).forEach((function(e){AT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function AT(t,e,r){return(e=MT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function MT(t){var e=function(t,e){if("object"!=hT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=hT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hT(e)?e:e+""}var kT={xAxis:["bottom","top"],yAxis:["left","right"]},CT={width:"100%",height:"100%"},ET={x:0,y:0};function TT(t){return t}var DT=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(OT(t),OT(r)):t}),[]);return o.length>0?o:t&&t.length&&Ga(n)&&Ga(i)?t.slice(n,i+1):[]};function IT(t){return"number"===t?[0,"auto"]:void 0}var NT=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=DT(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var l,u,s=null!==(l=c.props.data)&&void 0!==l?l:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?u=rc(void 0===s?a:s,o.dataKey,n):u=s&&s[r]||a[r];return u?[].concat(OT(i),[vS(c,u)]):i}),[])},RT=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,u=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,l=0;l<a;l++){var u=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(qa(s-u)!==qa(f-s)){var h=[];if(qa(f-s)===qa(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+u)/2),h[1]=Math.max(d,(d+u)/2)}else{p=u;var v=f+c[1]-c[0];h[0]=Math.min(s,(v+s)/2),h[1]=Math.max(s,(v+s)/2)}var y=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>y[0]&&t<=y[1]||t>=h[0]&&t<=h[1]){o=n[l].index;break}}else{var g=Math.min(u,f),m=Math.max(u,f);if(t>(g+s)/2&&t<=(m+s)/2){o=n[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,l,c);if(u>=0&&l){var s=l[u]&&l[u].value,f=NT(t,e,u,s),p=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return PT(PT(PT({},n),OS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,l=n.angle;return PT(PT(PT({},n),OS(n.cx,n.cy,c,l)),{},{angle:l,radius:c})}return ET}(r,a,u,i);return{activeTooltipIndex:u,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},LT=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=t.stackOffset,p=tS(u,i);return r.reduce((function(e,r){var h,d=void 0!==r.type.defaultProps?PT(PT({},r.type.defaultProps),r.props):r.props,v=d.type,y=d.dataKey,g=d.allowDataOverflow,m=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=d[o];if(e[O])return e;var S,_,j,P=DT(t.data,{graphicalItems:n.filter((function(t){var e;return(o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o])===O})),dataStartIndex:c,dataEndIndex:l}),A=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&Ga(n)&&Ga(i))return!0}return!1})(d.domain,g,v)&&(S=pS(d.domain,null,g),!p||"number"!==v&&"auto"===b||(j=XO(P,y,"category")));var M=IT(v);if(!S||0===S.length){var k,C=null!==(k=d.domain)&&void 0!==k?k:M;if(y){if(S=XO(P,y,v),"category"===v&&p){var E=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);m&&E?(_=S,S=WA(0,A)):m||(S=dS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(OT(t),[e])}),[]))}else if("category"===v)S=m?S.filter((function(t){return""!==t&&!Aa(t)})):dS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Aa(e)?t:[].concat(OT(t),[e])}),[]);else if("number"===v){var T=function(t,e,r,n,i){var o=e.map((function(e){return JO(t,e,r,i,n)})).filter((function(t){return!Aa(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!i)})),y,i,u);T&&(S=T)}!p||"number"!==v&&"auto"===b||(j=XO(P,y,"category"))}else S=p?WA(0,A):a&&a[O]&&a[O].hasStack&&"number"===v?"expand"===f?[0,1]:uS(a[O].stackGroups,c,l):QO(P,n.filter((function(t){var e=o in t.props?t.props[o]:t.type.defaultProps[o],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),v,u,!0);if("number"===v)S=YE(s,S,O,i,w),C&&(S=pS(C,S,g));else if("category"===v&&C){var D=C;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return PT(PT({},e),{},AT({},O,PT(PT({},d),{},{axisType:i,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(h=d.domain)&&void 0!==h?h:M,isCategorical:p,layout:u})))}),{})},BT=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.children,s="".concat(n,"Id"),f=xc(u,i),p={};return f&&f.length?p=LT(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=DT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),p=f.length,h=tS(u,i),d=-1;return r.reduce((function(t,e){var v,y=(void 0!==e.type.defaultProps?PT(PT({},e.type.defaultProps),e.props):e.props)[o],g=IT("number");return t[y]?t:(d++,h?v=WA(0,p):a&&a[y]&&a[y].hasStack?(v=uS(a[y].stackGroups,c,l),v=YE(s,v,y,i)):(v=pS(g,QO(f,r.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===y&&!i})),"number",u),n.defaultProps.allowDataOverflow),v=YE(s,v,y,i)),PT(PT({},t),{},AT({},y,PT(PT({axisType:i},n.defaultProps),{},{hide:!0,orientation:_a(kT,"".concat(i,".").concat(d%2),null),domain:v,originalDomain:g,isCategorical:h,layout:u}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),p},zT=function(t){var e=t.children,r=t.defaultShowTooltip,n=Oc(e,hM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},$T=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},HT=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,l=r.height,u=r.children,s=r.margin||{},f=Oc(u,hM),p=Oc(u,id),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:PT(PT({},t),{},AT({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:PT(PT({},t),{},AT({},n,_a(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),v=PT(PT({},d),h),y=v.bottom;f&&(v.bottom+=f.props.height||hM.defaultProps.height),p&&e&&(v=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),l=FO({children:i,legendWidth:c});if(l){var u=n||{},s=u.width,f=u.height,p=l.align,h=l.verticalAlign,d=l.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&Ga(t[p]))return qO(qO({},t),{},YO({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&Ga(t[h]))return qO(qO({},t),{},YO({},h,t[h]+(f||0)))}return t}(v,0,r,e));var g=c-v.left-v.right,m=l-v.top-v.bottom;return PT(PT({brushBottom:y},v),{},{width:Math.max(g,0),height:Math.max(m,0)})},FT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},VT=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,i=void 0===n?"axis":n,o=t.validateTooltipEventTypes,a=void 0===o?["axis"]:o,c=t.axisComponents,l=t.legendContent,u=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,l=e.dataEndIndex,u=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=$T(s),v=d.numericAxisName,y=d.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=gc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,d){var b=DT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:l}),w=void 0!==r.type.defaultProps?PT(PT({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(v,"Id")],_=w["".concat(y,"Id")],j=c.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?SO(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):SO());var l=a[c];return PT(PT({},t),{},AT(AT({},n.axisType,l),"".concat(n.axisType,"Ticks"),eS(l)))}),{}),P=j[y],A=j["".concat(y,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?qO(qO({},t.type.defaultProps),t.props):t.props).stackId;if(Xa(n)){var i=e[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null}(r,n[S].stackGroups),k=gc(r.type).indexOf("Bar")>=0,C=hS(P,A),E=[],T=g&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,i=void 0===n?{}:n;if(!i)return{};for(var o={},a=Object.keys(i),c=0,l=a.length;c<l;c++)for(var u=i[a[c]].stackGroups,s=Object.keys(u),f=0,p=s.length;f<p;f++){var h=u[s[f]],d=h.items,v=h.cateAxisId,y=d.filter((function(t){return gc(t.type).indexOf("Bar")>=0}));if(y&&y.length){var g=y[0].type.defaultProps,m=void 0!==g?qO(qO({},g),y[0].props):y[0].props,b=m.barSize,w=m[v];o[w]||(o[w]=[]);var x=Aa(b)?e:b;o[w].push({item:y[0],stackList:y.slice(1),barSize:Aa(x)?void 0:Qa(x,r,0)})}}return o}({barSize:u,stackGroups:n,totalSize:FT(j,y)});if(k){var D,I,N=Aa(O)?h:O,R=null!==(D=null!==(I=hS(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;E=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var l,u=Qa(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,h=o.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*u)>=n&&(h-=(c-1)*u,u=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var d={offset:((n-h)/2|0)-u,size:0};l=o.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+u,size:f?p:e.barSize}},n=[].concat(UO(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var v=Qa(r,n,0,!0);n-2*v-(c-1)*u<=0&&(u=0);var y=(n-2*v-(c-1)*u)/c;y>1&&(y>>=0);var g=a===+a?Math.min(y,a):y;l=o.reduce((function(t,e,r){var n=[].concat(UO(t),[{item:e.item,position:{offset:v+(y+u)*r+(y-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return l}({barGap:f,barCategoryGap:p,bandSize:R!==C?R:C,sizeList:T[_],maxBarSize:N}),R!==C&&(E=E.map((function(t){return PT(PT({},t),{},{position:PT(PT({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:PT(PT({},z(PT(PT({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:C,barPosition:E,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:l}))),{},AT(AT(AT({key:r.key||"item-".concat(d)},v,j[v]),y,j[y]),"animationId",o)),childIndex:(L=r,B=t.children,wc(B).indexOf(L)),item:r})})),m},p=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,l=t.updateId;if(!Sc({props:i}))return null;var s=i.children,p=i.layout,h=i.stackOffset,d=i.data,v=i.reverseStackOrder,y=$T(p),g=y.numericAxisName,m=y.cateAxisName,b=xc(s,r),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i,o=null!==(i=e.type)&&void 0!==i&&i.defaultProps?qO(qO({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var c=o[r],l=t[c]||{hasStack:!1,stackGroups:{}};if(Xa(a)){var u=l.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),l.hasStack=!0,l.stackGroups[a]=u}else l.stackGroups[Ja("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return qO(qO({},t),{},YO({},c,l))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return qO(qO({},e),{},YO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:aS(t,a.items,i)}))}),{})),qO(qO({},e),{},YO({},o,c))}),{})}(d,b,"".concat(g,"Id"),"".concat(m,"Id"),h,v),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return PT(PT({},t),{},AT({},r,BT(i,PT(PT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=HT(PT(PT({},x),{},{props:i,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=u(i,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=tc(j),{tooltipTicks:_=eS(S,!1,!0),orderedTooltipTicks:md(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:hS(S,_)}),A=f(i,PT(PT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:O}));return PT(PT({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},h=function(t){function r(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),AT(o=mT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),AT(o,"accessibilityManager",new nT),AT(o,"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(PT({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},PT(PT({},o.state),{},{legendBBox:t}))))}})),AT(o,"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),AT(o,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return PT({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),AT(o,"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=PT(PT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;Ea(n)&&n(r,t)}})),AT(o,"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?PT(PT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;Ea(n)&&n(r,t)})),AT(o,"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),AT(o,"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),AT(o,"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),AT(o,"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;Ea(r)&&r(e,t)})),AT(o,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&yc[e]?yc[e]:null}(t),n=_a(o.props,"".concat(r));r&&Ea(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),AT(o,"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=PT(PT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;Ea(n)&&n(r,t)}})),AT(o,"handleMouseDown",(function(t){var e=o.props.onMouseDown;Ea(e)&&e(o.getMouseInfo(t),t)})),AT(o,"handleMouseUp",(function(t){var e=o.props.onMouseUp;Ea(e)&&e(o.getMouseInfo(t),t)})),AT(o,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),AT(o,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),AT(o,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),AT(o,"handleDoubleClick",(function(t){var e=o.props.onDoubleClick;Ea(e)&&e(o.getMouseInfo(t),t)})),AT(o,"handleContextMenu",(function(t){var e=o.props.onContextMenu;Ea(e)&&e(o.getMouseInfo(t),t)})),AT(o,"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&KE.emit(JE,o.props.syncId,t,o.eventEmitterSymbol)})),AT(o,"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(PT({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var l=t.chartX,u=t.chartY,s=t.activeTooltipIndex,f=o.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var v=0;v<d.length;v++)if(d[v].value===t.activeLabel){s=v;break}}var y=PT(PT({},h),{},{x:h.left,y:h.top}),g=Math.min(l,y.x+y.width),m=Math.min(u,y.y+y.height),b=d[s]&&d[s].value,w=NT(o.state,o.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:g,y:"horizontal"===r?m:d[s].coordinate}:ET;o.setState(PT(PT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),AT(o,"renderCursor",(function(t){var r,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,l=n.offset,u=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:i,h=o.props.layout,d=t.key||"_recharts-cursor";return ft.createElement(sT,{key:d,activeCoordinate:a,activePayload:c,activeTooltipIndex:u,chartName:e,element:t,isActive:p,layout:h,offset:l,tooltipAxisBandSize:s,tooltipEventType:f})})),AT(o,"renderPolarAxis",(function(t,e,r){var n=_a(t,"type.axisType"),i=_a(o.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?PT(PT({},a),t.props):t.props,l=i&&i[c["".concat(n,"Id")]];return Ot(t,PT(PT({},l),{},{className:Gn(n,l.className),key:t.key||"".concat(e,"-").concat(r),ticks:eS(l,!0)}))})),AT(o,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,l=a.angleAxisMap,u=tc(c),s=tc(l),f=s.cx,p=s.cy,h=s.innerRadius,d=s.outerRadius;return Ot(t,{polarAngles:Array.isArray(n)?n:eS(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:eS(u,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),AT(o,"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),u=FO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=yT(u,fT);return Ot(s,PT(PT({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),AT(o,"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=Oc(r,vv);if(!i)return null;var a=o.state,c=a.isTooltipActive,l=a.activeCoordinate,u=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return Ot(i,{viewBox:PT(PT({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?u:[],coordinate:l,accessibilityLayer:n})})),AT(o,"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return Ot(t,{key:t.key||"_recharts-brush",onChange:nS(o.handleBrushChange,t.props.onChange),data:n,x:Ga(t.props.x)?t.props.x:a.left,y:Ga(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Ga(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),AT(o,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=o.clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?u.xAxisId:f,h=s.yAxisId,d=void 0===h?u.yAxisId:h;return Ot(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),AT(o,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],l=e.props.key,u=void 0!==e.item.type.defaultProps?PT(PT({},e.item.type.defaultProps),e.item.props):e.item.props,s=u.activeDot,f=PT(PT({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:KO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Pc(s,!1)),sc(s));return c.push(r.renderActiveDot(s,f,"".concat(l,"-activePoint-").concat(o))),i?c.push(r.renderActiveDot(s,PT(PT({},f),{},{cx:i.x,cy:i.y}),"".concat(l,"-basePoint-").concat(o))):a&&c.push(null),c})),AT(o,"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,l=a.tooltipAxis,u=a.activeTooltipIndex,s=a.activeLabel,f=Oc(o.props.children,vv),p=n.props,h=p.points,d=p.isRange,v=p.baseLine,y=void 0!==n.item.type.defaultProps?PT(PT({},n.item.type.defaultProps),n.item.props):n.item.props,g=y.activeDot,m=y.hide,b=y.activeBar,w=y.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:nS(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:nS(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:nS(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=Ot(t,PT(PT({},n.props),O));if(x){if(!(u>=0)){var _,j=(null!==(_=o.getItemByXY(o.state.activeCoordinate))&&void 0!==_?_:{graphicalItem:S}).graphicalItem,P=j.item,A=void 0===P?t:P,M=j.childIndex,k=PT(PT(PT({},n.props),O),{},{activeIndex:M});return[Ot(A,k),null,null]}var C,E;if(l.dataKey&&!l.allowDuplicatedCategory){var T="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());C=rc(h,T,s),E=d&&v&&rc(v,T,s)}else C=null==h?void 0:h[u],E=d&&v&&v[u];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:u;return[Ot(t,PT(PT(PT({},n.props),O),{},{activeIndex:D})),null,null]}if(!Aa(C))return[S].concat(OT(o.renderActivePoints({item:n,activePoint:C,basePoint:E,childIndex:u,isRange:d})))}return d?[S,null,null]:[S,null]})),AT(o,"renderCustomized",(function(t,e,r){return Ot(t,PT(PT({key:"recharts-customized-".concat(r)},o.props),o.state))})),AT(o,"renderMap",{CartesianGrid:{handler:TT,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:TT},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:TT},YAxis:{handler:TT},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Ja("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=wv(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xT(t,e)}(r,Pt),gT(r,[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=Oc(e,vv);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=NT(this.state,r,a,c),u=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:u,y:s}:{y:u,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=PT(PT({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:l,activeCoordinate:f};this.setState(h),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}});return null}},{key:"componentDidUpdate",value:function(t){Ac([Oc(t.children,vv)],[Oc(this.props.children,vv)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Oc(this.props.children,vv);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:i}return i}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap,f=this.getTooltipEventType(),p=RT(this.state,this.props.data,this.props.layout,c);if("axis"!==f&&u&&s){var h=tc(u).scale,d=tc(s).scale,v=h&&h.invert?h.invert(o.chartX):null,y=d&&d.invert?d.invert(o.chartY):null;return PT(PT({},o),{},{xValue:v,yValue:y},p)}return p?PT(PT({},o),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,l=c.angleAxisMap,u=c.radiusAxisMap;if(l&&u){var s=tc(l);return jS({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Oc(t,vv),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{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}),PT(PT({},sc(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){KE.on(JE,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){KE.removeListener(JE,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===gc(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return ft.createElement("defs",null,ft.createElement("clipPath",{id:t},ft.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=vT(e,2),n=r[0],i=r[1];return PT(PT({},t),{},AT({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=vT(e,2),n=r[0],i=r[1];return PT(PT({},t),{},AT({},n,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,l=a.item,u=void 0!==l.type.defaultProps?PT(PT({},l.type.defaultProps),l.props):l.props,s=gc(l.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return $P(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return jS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(NA(a,n)||RA(a,n)||LA(a,n)){var h=HA({graphicalItem:a,activeTooltipItem:n,itemData:u.data}),d=void 0===u.activeIndex?h:u.activeIndex;return{graphicalItem:PT(PT({},a),{},{childIndex:d}),payload:LA(a,n)?u.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!Sc(this))return null;var e,r,n=this.props,i=n.children,o=n.className,a=n.width,c=n.height,l=n.style,u=n.compact,s=n.title,f=n.desc,p=yT(n,pT),h=Pc(p,!1);if(u)return ft.createElement(Ck,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ft.createElement(Dc,dT({},h,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),kc(i,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,h.role=null!==(r=this.props.role)&&void 0!==r?r:"application",h.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},h.onFocus=function(){t.accessibilityManager.focus()});var d=this.parseEventsOfWrapper();return ft.createElement(Ck,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ft.createElement("div",dT({className:Gn("recharts-wrapper",o),style:PT({position:"relative",cursor:"default",width:a,height:c},l)},d,{ref:function(e){t.container=e}}),ft.createElement(Dc,dT({},h,{width:a,height:c,title:s,desc:f,style:CT}),this.renderClipPath(),kc(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();AT(h,"displayName",e),AT(h,"defaultProps",PT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),AT(h,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,l=t.stackOffset,u=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var h=zT(t);return PT(PT(PT({},h),{},{updateId:0},p(PT(PT({props:t},h),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||l!==e.prevStackOffset||!ic(u,e.prevMargin)){var d=zT(t),v={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},y=PT(PT({},RT(e,n,c)),{},{updateId:e.updateId+1}),g=PT(PT(PT({},d),v),y);return PT(PT(PT({},g),p(PT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(!Ac(i,e.prevChildren)){var m,b,w,x,O=Oc(i,hM),S=O&&null!==(m=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,_=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,j=S!==s||_!==f,P=!Aa(n)&&!j?e.updateId:e.updateId+1;return PT(PT({updateId:P},p(PT(PT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:_})}return null})),AT(h,"renderActiveDot",(function(t,e,r){var n;return n=pt(t)?Ot(t,e):Ea(t)?t(e):ft.createElement(UP,e),ft.createElement(Qc,{className:"recharts-active-dot",key:r},n)}));var d=vt((function(t,e){return ft.createElement(h,dT({},t,{ref:e}))}));return d.displayName=h.displayName,d},UT=VT({chartName:"LineChart",GraphicalChild:aE,axisComponents:[{axisType:"xAxis",AxisComp:DE},{axisType:"yAxis",AxisComp:UE}],formatAxisMap:ck}),WT=VT({chartName:"AreaChart",GraphicalChild:OE,axisComponents:[{axisType:"xAxis",AxisComp:DE},{axisType:"yAxis",AxisComp:UE}],formatAxisMap:ck});const ZT=({formatter:n,labelFormatter:i,payload:o,cx:a,cy:c})=>{const l=100;return Number.isFinite(o.value)?t("svg",{x:a-50,y:c-60,width:l,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[i&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:nn.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:i(0,[{payload:o}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(o.value||0):o.value}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:nn.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),e("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:nn.coolElegance(),strokeWidth:"2"})]}):e(r,{})},qT=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Kr({data:r,dataKey:n}),h=qn(),d=qn(),v=s?en({arr:r||[],n:s}):r;let y,g;v?.length?(g=p?nn.mint():nn.coolElegance(),y=v?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=nn.coolElegance(),y=[{[n]:1},{[n]:1}]);const m={cursor:v?.length?"crosshair":"default",...f};return e(Av,{width:i,minHeight:o,id:h,children:t(WT,{data:y,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:g,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:g,stopOpacity:0})]})}),e(UE,{domain:v?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(OE,{type:a,dataKey:n,stroke:g,fill:`url(#${d})`,isAnimationActive:c,activeDot:t=>ZT({labelFormatter:u,formatter:l,...t}),dot:!1}),v?.length&&e(vv,{cursor:!1,content:()=>null})]})})},YT=({isCloseable:t,onClick:r})=>{const n=u({ssr:!1});return e(s,{children:e(f,{label:t?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:e(p,{onClick:r,cursor:t?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:nn.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},GT=({children:t,...r})=>e(h,{border:"solid 1px",borderColor:nn.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),XT=({isSelected:t,children:r,...n})=>e(d,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":nn.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),KT=({children:t,...r})=>e(v,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:nn.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),JT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=mt(0);return n.length>=1&&e(KT,{children:t(y,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(y,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Bt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(g,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(zt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},QT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ft,{...i}):r?e(we,{...i}):null},tD=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,name:l,register:u,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:h,onClick:d,...v}=r,g=u?u(l):void 0;return t(m,{as:y,flexDir:"column",isInvalid:Boolean(s),isDisabled:i,isReadOnly:o,isRequired:a,children:[t(y,{onClick:d,w:"full",alignItems:"center",justifyContent:h?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:e(QT,{}),isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...v}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(y,{w:"full",children:s&&e(x,{size:n,children:s})})]})},eD=O(((t,r)=>{const{children:n,uiColor:i,...o}=t;return e(d,{py:"1",px:"2",height:"auto",ref:r,size:"xs",bgColor:`${i}.500 !important`,color:"black",transition:"background-color 0.25s",sx:{"&:not(:disabled):hover, &:not(:disabled):focus, &:not(:disabled)[data-active]":{bgColor:`${i}.300 !important`}},fontSize:"12px",...o,children:n})})),rD=({uiColor:r,isLocalDev:n,enableRefetch:i,setEnableRefetch:o,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[l,u]=mt(!1),[s,f]=mt(!1),[p,h]=mt(!1);wt((()=>{document.body.classList.contains("show-outlines")&&u(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");h(Boolean(t))}),[o]);const d={width:{base:"full",md:"auto"},uiColor:r};return t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t(eD,{onClick:()=>{if(document.querySelector(".tsqd-queries-container")){const t=document.querySelector(".tsqd-minimize-btn");t?.click(),h(!1)}else{const t=document.querySelector(".tsqd-open-btn");t?.click(),h(!0)}},isDisabled:!n,...d,children:[p?"Hide":"Show"," React Query console"]}),t(eD,{onClick:()=>{i?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),o(!i),window.location.reload()},position:"relative",...d,_after:i?{}:{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1",content:'""'},children:[i?"Disable":"Enable"," refetch intervals"]}),e(eD,{onClick:()=>{c(),a(!0)},...d,children:"Show breakpoint debugger"}),t(eD,{onClick:()=>{u(!l),document.body.classList.toggle("show-outlines")},...d,children:[l?"Hide":"Show"," outlines"]}),t(eD,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...d,children:[s?"Hide":"Show"," error boundaries"]})]})]})},nD=({data:r,heading:n,uiColor:i,buttons:o})=>t(y,{flexDir:"column",children:[t(y,{borderBottom:"solid 1px",borderColor:`${i}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(y,{ml:"auto",mb:"5px",gap:"2",flexWrap:"wrap",children:o})]}),0===r.length&&e(p,{w:"full",textAlign:"center",children:"No data"}),e(j,{columns:2,gap:1,children:r.map((r=>t(At,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),iD=({children:n,footer:i,consoleButton:o,isLocalDev:a})=>{const{isOpen:c,onOpen:l,onClose:u}=P(),[s,f]=mt(!1),p=a?"green":"yellow";return wt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?u():l())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,u,l]),wt((()=>{const t=t=>{t.ctrlKey&&"j"===t.key&&f(!s)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[s,f]),t(r,{children:[t(A,{isOpen:c,placement:"right",onClose:u,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(C,{}),e(E,{children:e(y,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"xs",children:e(y,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:u})})}),i({uiColor:p})]})]}),o({uiColor:p,onClose:u,isOpen:c,hideButton:s,onOpen:l})]})},oD=({hideButton:n,enableRefetch:i,onOpen:o,uiColor:a,hasSystemOverride:c,hasFiOverride:l,authBypassEnabled:u})=>{const h=!i||c||l||u,[v,g]=mt(!1);return wt((()=>{window.location.hostname.startsWith("sales-demo-dev.")&&g(!0)}),[]),e(s,{children:!n&&t(D,{position:"fixed",top:"4",right:"4",zIndex:"1000",bgColor:"blackAlpha.800",borderRadius:"md",transition:"background-color 0.25s",className:"dev-console",_hover:{bgColor:"blackAlpha.900"},children:[h&&e(D,{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1"}),e(f,{label:t(y,{flexDir:"column",gap:"0.5",padding:"1",fontFamily:"mono",fontSize:"12px",children:[u&&e(p,{children:"• Auth bypass enabled"}),c&&e(p,{children:"• System override applied"}),l&&e(p,{children:"• FI config override applied"}),!i&&e(p,{children:"• Refetch intervals disabled"}),!h&&t(r,{children:[e(p,{children:"• Open console (ctrl+d)"}),e(p,{children:"• Hide button (ctrl+j)"})]})]}),hasArrow:!0,children:e(d,{"aria-label":"Open",size:"sm",onClick:o,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:v?"☆":"⚙"})})]})})},aD=({uiColor:r})=>t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Links"}),t(I,{listStyleType:"disc",listStylePosition:"inside",children:[e(N,{children:e(R,{href:"https://api.cryptofi-dev.com/v2/docs",target:"api-docs",textTransform:"uppercase",children:"CWS API Documentation"})}),e(N,{children:e(R,{href:"https://cryptofi-core-ui.vercel.app/?path=/docs/intro--docs",target:"storybook",textTransform:"uppercase",children:"Core UI Storybook"})})]})]}),cD=({enableRefetch:t,status:r})=>{let n="inherit";return!1===t&&r?n="gray.500":r||(n="red.600"),e(f,{label:t?null:"Refetch disabled",hasArrow:!0,children:e(D,{width:"fit-content",as:"span",children:e(p,{as:"span",color:n,fontFamily:"body",children:r?"✔":"✘"})})})},lD=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var uD=function(){return uD=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},uD.apply(this,arguments)};function sD(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function fD(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var pD=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},hD={k:1e3,m:1e6,b:1e9},dD=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,l=t.decimalsLimit,u=void 0===l?2:l,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,h=void 0!==p&&p,d=t.prefix,v=void 0===d?"":d,y=t.transformRawValue,g=(void 0===y?function(t){return t}:y)(e);if("-"===g)return g;var m=h?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(pD(v),")")).test(g),w=RegExp("(\\d+)-?".concat(pD(v))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(pD(e),"g");return t.replace(r,"")}(v?x?g.replace(x,"").concat(O):g.replace(v,""):g,n),_=function(t,e){var r=pD(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,fD([n,o],m,!0)),j=_;if(!h){if(m.some((function(t){return t===_.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(pD(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=hD[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(_,o);P&&(j=String(P))}var A=b&&f?"-":"";if(o&&j.includes(o)){var M=_.split(o),k=M[0],C=M[1],E=u&&C?C.slice(0,u):C,T=c?"".concat(o).concat(E):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},vD=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(pD(n)).concat(pD(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},yD=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,l=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var u=new RegExp("^\\d?-".concat(a?"".concat(pD(a),"?"):"","\\d")).test(e),s="."!==r?gD(e,r,u):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f=n||{},p=f.locale,h=f.currency,d=sD(f,["locale","currency"]),v=uD(uD({},d),{minimumFractionDigits:i||0,maximumFractionDigits:20}),y=(n?new Intl.NumberFormat(p,uD(uD({},v),h&&{style:"currency",currency:h})):new Intl.NumberFormat(void 0,v)).formatToParts(Number(s)),g=mD(y,t),m=vD(g,uD({},t)),b=e.slice(-1)===r?r:"",w=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&w&&r&&(g=g.includes(r)?g.replace(RegExp("(\\d+)(".concat(pD(r),")(\\d+)"),"g"),"$1$2".concat(w)):m&&!l?g.replace(m,"".concat(r).concat(w).concat(m)):"".concat(g).concat(r).concat(w)),l&&b?"".concat(g).concat(b).concat(l):m&&b?g.replace(m,"".concat(b).concat(m)):m&&l?g.replace(m,"".concat(b).concat(l)):[g,b,l].join("")},gD=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(pD(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},mD=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var l=e.type,u=e.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?fD(fD([],t,!0),[r],!1):[r,u]:"currency"===l?r?t:fD(fD([],t,!0),[u],!1):"group"===l?c?t:fD(fD([],t,!0),[void 0!==n?n:u],!1):"decimal"===l?void 0!==o&&0===o?t:fD(fD([],t,!0),[void 0!==i?i:u],!1):fD(fD([],t,!0),"fraction"===l?[void 0!==o?u.slice(0,o):u]:[u],!1)}),[""]).join("")},bD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},wD=function(t){return RegExp(/\d/,"gi").test(t)},xD=vt((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,l=t.className,u=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,h=void 0!==p&&p,d=t.maxLength,v=t.value,y=t.onValueChange,g=t.fixedDecimalLength,m=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,_=t.min,j=t.max,P=t.disableGroupSeparators,A=void 0!==P&&P,M=t.disableAbbreviations,k=void 0!==M&&M,C=t.decimalSeparator,E=t.groupSeparator,T=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,R=t.onKeyUp,L=t.transformRawValue,B=t.formatValueOnBlur,z=void 0===B||B,$=sD(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(C&&wD(C))throw new Error("decimalSeparator cannot be a number");if(E&&wD(E))throw new Error("groupSeparator cannot be a number");var H=xt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency,i=sD(e,["locale","currency"]);return(r?new Intl.NumberFormat(r,uD(uD({},i),n&&{currency:n,style:"currency"})):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?uD(uD({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?uD(uD({},t),{groupSeparator:e.value}):"decimal"===e.type?uD(uD({},t),{decimalSeparator:e.value}):t}),bD)}(O)}),[O]),F=C||H.decimalSeparator||"",V=E||H.groupSeparator||"";if(F&&V&&F===V&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var U={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:V,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=mt((function(){return null!=f?yD(uD(uD({},U),{decimalScale:b,value:String(f)})):null!=v?yD(uD(uD({},U),{decimalScale:b,value:String(v)})):""})),q=Z[0],Y=Z[1],G=mt(!1),X=G[0],K=G[1],J=mt(0),Q=J[0],tt=J[1],et=mt(0),rt=et[0],nt=et[1],it=mt(null),ot=it[0],at=it[1],ct=yt(null);gt(e,(function(){return ct.current}));var lt=function(t,e){K(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var l=r.split("");return"Backspace"===n&&i[a]===o&&(l.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(l.splice(a,1),a+=1),{modifiedValue:c=l.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ot,stateValue:q,groupSeparator:V}),n=r.modifiedValue,i=r.cursorPosition,o=dD(uD({value:n},W));if(!(d&&o.replace(/-/g,"").length>d)){if(""===o||"-"===o||o===F)return y&&y(void 0,c,{float:null,formatted:"",value:""}),Y(o),void tt(1);var a=F?o.replace(F,"."):o,l=parseFloat(a),u=yD(uD({value:o},U));if(null!=i){var s=i+(u.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(u),y)y(o,c,{float:l,formatted:u,value:o})}};wt((function(){null==v&&null==f&&Y("")}),[f,v]),wt((function(){X&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,X,rt]);var ut=uD({type:"text",inputMode:"decimal",id:a,name:c,className:l,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;lt(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=dD(uD({value:e},W));if("-"===r||r===F||!r)return Y(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,F,g),i=function(t,e,r){if(void 0===r||""===e||void 0===e||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,F,void 0!==b?b:g),o=F?i.replace(F,"."):i,a=parseFloat(o),l=yD(uD(uD({},U),{value:i}));y&&z&&y(i,c,{float:a,formatted:l,value:i}),Y(l),I&&I(t)},onFocus:function(t){return D&&D(t),q?q.length:0},onKeyDown:function(t){var e=t.key;if(at(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),tt(q.length);var r=null!=v?String(v):void 0,n=F&&r?r.replace(F,"."):r,i=parseFloat(null!=n?n:dD(uD({value:q},W)))||0,a="ArrowUp"===e?i+S:i-S;if(void 0!==_&&a<Number(_)||!o&&a<0)return;if(void 0!==j&&a>Number(j))return;var c=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;lt(String(c?a.toFixed(c):a).replace(".",F))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==q){var n=vD(q,{groupSeparator:V,decimalSeparator:F});if(n&&r&&r>q.length-n.length&&ct.current){var i=q.length-n.length;ct.current.setSelectionRange(i,i)}}R&&R(t)},placeholder:m,disabled:h,value:null==v||"-"===q||F&&q===F?q:yD(uD(uD({},U),{decimalScale:X?void 0:b,value:String(v)})),ref:ct},$);if(u){var st=u;return ft.createElement(st,uD({},ut))}return ft.createElement("input",uD({},ut))}));xD.displayName="CurrencyInput";const OD=O(((r,n)=>{const{size:i,isDisabled:o,isReadOnly:a,isRequired:c,spellCheck:l=!1,name:u,label:s,register:f,errorMessage:p,helperText:h,leftAddon:d,leftElement:v,rightAddon:y,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Jr(i),j=f?f(u):void 0,P="currency"===w?{as:xD,placeholder:"$0.00",prefix:"$",allowNegativeValue:!1,disableAbbreviations:!0}:{};return t(m,{isInvalid:Boolean(p),isDisabled:o,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{size:i,children:s}),t(L,{size:i,children:[d&&e(B,{children:d}),v&&e(z,{w:"auto",ml:"1em",children:v}),e($,{size:i,spellCheck:l,paddingLeft:v&&"2.5em",paddingRight:g&&"2.5em",type:"currency"===w?"text":w,...j,...P,...S,ref:n||j?.ref}),g&&e(H,{w:"auto",mr:"1em",children:g}),y&&e(F,{children:y})]}),p&&e(x,{size:i,children:p}),h&&e(V,{fontSize:_,children:h})]})}));var SD=t=>null==t;var _D=t=>!SD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),jD=t=>{const e=t.constructor&&t.constructor.prototype;return _D(e)&&e.hasOwnProperty("isPrototypeOf")},PD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function AD(t){let e;const r=Array.isArray(t),n="undefined"!=typeof FileList&&t instanceof FileList;if(t instanceof Date)e=new Date(t);else{if(PD&&(t instanceof Blob||n)||!r&&!_D(t))return t;if(e=r?[]:{},r||jD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=AD(t[r]));else e=t}return e}var MD=t=>/^\w*$/.test(t),kD=t=>void 0===t,CD=t=>Array.isArray(t)?t.filter(Boolean):[],ED=t=>CD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),TD=(t,e,r)=>{if(!e||!_D(t))return r;const n=(MD(e)?[e]:ED(e)).reduce(((t,e)=>SD(t)?t:t[e]),t);return kD(n)||n===t?kD(t[e])?r:t[e]:n},DD=t=>"boolean"==typeof t,ID=(t,e,r)=>{let n=-1;const i=MD(e)?[e]:ED(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=_D(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=o,t=t[e]}};const ND="onBlur",RD="onChange",LD="onSubmit",BD="onTouched",zD="all",$D="max",HD="min",FD="maxLength",VD="minLength",UD="pattern",WD="required",ZD="validate",qD=ft.createContext(null);qD.displayName="HookFormContext";const YD="undefined"!=typeof window?st.useLayoutEffect:st.useEffect;var GD=t=>"string"==typeof t,XD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},KD=t=>Array.isArray(t)?t:[t],JD=t=>_D(t)&&!Object.keys(t).length;function QD(t,e){const r=Array.isArray(e)?e:MD(e)?[e]:ED(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=kD(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(_D(n)&&JD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!kD(t[e]))return!1;return!0}(n))&&QD(t,r.slice(0,-1)),t}var tI=t=>t instanceof RegExp,eI=t=>({isOnSubmit:!t||t===LD,isOnBlur:t===ND,isOnChange:t===RD,isOnAll:t===zD,isOnTouch:t===BD});const rI=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=TD(t,r);if(n){const{_f:t,...i}=n;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],r))return!0;if(t.ref&&e(t.ref,t.name))return!0;if(rI(i,e))break}else if(_D(i)&&rI(i,e))break}}};var nI=(t,e,r)=>{const n=KD(TD(t,r));return ID(n,"root",e[r]),ID(t,r,n),t},iI=t=>GD(t);function oI(t,e,r="validate"){if(iI(t)||Array.isArray(t)&&t.every(iI)||DD(t)&&!t)return{type:r,message:iI(t)?t:"",ref:e}}var aI=t=>_D(t)&&!tI(t)?t:{value:t,message:""},cI=async(t,e,r,n,i,o)=>{const{ref:a,refs:c,required:l,maxLength:u,minLength:s,min:f,max:p,pattern:h,validate:d,name:v,valueAsNumber:y,mount:g}=t._f,m=TD(r,v);if(!g||e.has(v))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(DD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(y||(t=>"file"===t.type)(a))&&kD(a.value)&&kD(m)||(t=>{if(!PD)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(a)&&""===a.value||""===m||Array.isArray(m)&&!m.length,S=XD.bind(null,v,n,x),_=(t,e,r,n=FD,i=VD)=>{const o=t?e:r;x[v]={type:t?n:i,message:o,ref:a,...S(t?n:i,o)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=iI(l)?{value:!!l,message:l}:aI(l);if(t&&(x[v]={type:WD,message:e,ref:b,...S(WD,e)},!n))return w(e),x}if(!(O||SD(f)&&SD(p))){let t,e;const r=aI(p),i=aI(f);if(SD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),o=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,l="week"==a.type;GD(r.value)&&m&&(t=c?o(m)>o(r.value):l?m>r.value:n>new Date(r.value)),GD(i.value)&&m&&(e=c?o(m)<o(i.value):l?m<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(m?+m:m);SD(r.value)||(t=n>r.value),SD(i.value)||(e=n<i.value)}if((t||e)&&(_(!!t,r.message,i.message,$D,HD),!n))return w(x[v].message),x}if((u||s)&&!O&&(GD(m)||Array.isArray(m))){const t=aI(u),e=aI(s),r=!SD(t.value)&&m.length>+t.value,i=!SD(e.value)&&m.length<+e.value;if((r||i)&&(_(r,t.message,e.message),!n))return w(x[v].message),x}if(h&&!O&&GD(m)){const{value:t,message:e}=aI(h);if(tI(t)&&!m.match(t)&&(x[v]={type:UD,message:e,ref:a,...S(UD,e)},!n))return w(e),x}if(d)if("function"==typeof d){const t=oI(await d(m,r),b);if(t&&(x[v]={...t,...S(ZD,t.message)},!n))return w(t.message),x}else if(_D(d)){let t={};for(const e in d){if(!JD(t)&&!n)break;const i=oI(await d[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[v]=t))}if(!JD(t)&&(x[v]={ref:b,...t},!n))return x}return w(!0),x},lI=()=>{if("undefined"!=typeof crypto&&crypto.randomUUID)return crypto.randomUUID();const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},uI=(t,e,r={})=>r.shouldFocus||kD(r.shouldFocus)?r.focusName||`${t}.${kD(r.focusIndex)?e:r.focusIndex}.`:"",sI=(t,e)=>[...t,...KD(e)],fI=t=>Array.isArray(t)?t.map((()=>{})):void 0;function pI(t,e,r){return[...t.slice(0,e),...KD(r),...t.slice(e)]}var hI=(t,e,r)=>Array.isArray(t)?(kD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],dI=(t,e)=>[...KD(e),...KD(t)];var vI=(t,e)=>kD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return CD(n).length?n:[]}(t,KD(e).sort(((t,e)=>t-e))),yI=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},gI=(t,e,r)=>(t[e]=r,t);function mI(t){const e=ft.useContext(qD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,l]=ft.useState(r._getFieldArray(n)),u=ft.useRef(r._getFieldArray(n).map(lI)),s=ft.useRef(c),f=ft.useRef(n),p=ft.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),YD((()=>r._subjects.array.subscribe({next:({values:t,name:e})=>{if(e===f.current||!e){const e=TD(t,f.current);Array.isArray(e)&&(l(e),u.current=e.map(lI))}}}).unsubscribe),[r]);const h=ft.useCallback((t=>{p.current=!0,r._setFieldArray(n,t)}),[r,n]);return ft.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!eI(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!eI(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([n]).then((t=>{const e=TD(t.errors,n),i=TD(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?ID(r._formState.errors,n,e):QD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=TD(r._fields,n);!t||!t._f||eI(r._options.reValidateMode).isOnSubmit&&eI(r._options.mode).isOnSubmit||cI(t,r._names.disabled,r._formValues,r._options.criteriaMode===zD,r._options.shouldUseNativeValidation).then((t=>!JD(t)&&r._subjects.state.next({errors:nI(r._formState.errors,t,n)})))}r._subjects.state.next({name:n,values:AD(r._formValues)}),r._names.focus&&rI(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._setValid(),p.current=!1}),[c,n,r]),ft.useEffect((()=>(!TD(r._formValues,n)&&r._setFieldArray(n),()=>{r._options.shouldUnregister||o?r.unregister(n):((t,e)=>{const n=TD(r._fields,t);n&&n._f&&(n._f.mount=e)})(n,!1)})),[n,r,i,o]),{swap:ft.useCallback(((t,e)=>{const i=r._getFieldArray(n);yI(i,t,e),yI(u.current,t,e),h(i),l(i),r._setFieldArray(n,i,yI,{argA:t,argB:e},!1)}),[h,n,r]),move:ft.useCallback(((t,e)=>{const i=r._getFieldArray(n);hI(i,t,e),hI(u.current,t,e),h(i),l(i),r._setFieldArray(n,i,hI,{argA:t,argB:e},!1)}),[h,n,r]),prepend:ft.useCallback(((t,e)=>{const i=KD(AD(t)),o=dI(r._getFieldArray(n),i);r._names.focus=uI(n,0,e),u.current=dI(u.current,i.map(lI)),h(o),l(o),r._setFieldArray(n,o,dI,{argA:fI(t)})}),[h,n,r]),append:ft.useCallback(((t,e)=>{const i=KD(AD(t)),o=sI(r._getFieldArray(n),i);r._names.focus=uI(n,o.length-1,e),u.current=sI(u.current,i.map(lI)),h(o),l(o),r._setFieldArray(n,o,sI,{argA:fI(t)})}),[h,n,r]),remove:ft.useCallback((t=>{const e=vI(r._getFieldArray(n),t);u.current=vI(u.current,t),h(e),l(e),!Array.isArray(TD(r._fields,n))&&ID(r._fields,n,void 0),r._setFieldArray(n,e,vI,{argA:t})}),[h,n,r]),insert:ft.useCallback(((t,e,i)=>{const o=KD(AD(e)),a=pI(r._getFieldArray(n),t,o);r._names.focus=uI(n,t,i),u.current=pI(u.current,t,o.map(lI)),h(a),l(a),r._setFieldArray(n,a,pI,{argA:t,argB:fI(e)})}),[h,n,r]),update:ft.useCallback(((t,e)=>{const i=AD(e),o=gI(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:lI())),h(o),l([...o]),r._setFieldArray(n,o,gI,{argA:t,argB:i},!0,!1)}),[h,n,r]),replace:ft.useCallback((t=>{const e=KD(AD(t));u.current=e.map(lI),h([...e]),l([...e]),r._setFieldArray(n,[...e],(t=>t),{},!0,!1)}),[h,n,r]),fields:ft.useMemo((()=>c.map(((t,e)=>({...t,[i]:u.current[e]||lI()})))),[c,i])}}const bI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=mI({control:n,name:r}),p=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(D,{children:[l.map(((n,o)=>e(D,{children:t(D,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(OD,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(d,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(d,{size:"sm",onClick:()=>{u(p),a&&a(p)},ml:"auto",children:"+"})})]})},wI=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Kr({data:r,dataKey:n}),h=qn(),d=s?en({arr:r||[],n:s}):r;let v,y;d?.length?(y=p?nn.mint():nn.heroicRed(),v=d?.map((t=>({...t,[n]:Number(t[n])||0})))):(y=nn.coolElegance(),v=[{[n]:0},{[n]:0}]);const g={cursor:d?.length?"crosshair":"default",...f};return e(Av,{width:i,minHeight:o,id:h,children:t(UT,{data:v,style:g,children:[e(UE,{domain:["dataMin","dataMax"],hide:!0}),e(aE,{isAnimationActive:c,type:a,dataKey:n,stroke:y,strokeWidth:"2",activeDot:t=>ZT({labelFormatter:u,formatter:l,...t}),dot:!1,scale:"threshold"}),d?.length&&e(vv,{cursor:!1,content:()=>null})]})})},xI=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:l={base:"md",md:"xl"},isDisabledCloseButton:u,bodyProps:s={},contentProps:f={},...p})=>{const h={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},d={...{minWidth:cn},...f};return t(U,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:l,trapFocus:!Qr(),...p,children:[e(W,{}),t(Z,{...d,children:[e(q,{children:i}),e(Y,{isDisabled:u}),e(G,{...h,children:a}),o&&e(X,{borderTop:"solid 1px",borderColor:nn.coolElegance(),justifyContent:"flex-start",children:o})]})]})},OI=t=>{const{isActive:r,children:n,href:i,...o}=t;return e(R,{display:"flex",as:R,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${nn.black(.08)}`:"none",href:i,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&nn.coolElegance(),textDecoration:"none"},...o,children:n},i)};var SI,_I={exports:{}};var jI,PI=(SI||(SI=1,jI=_I,function(t,e){jI.exports=e(ft)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:e=>{e.exports=t}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),o=n.n(r);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}var c=function(t){var r=t.pageClassName,n=t.pageLinkClassName,i=t.page,o=t.selected,c=t.activeClassName,l=t.activeLinkClassName,u=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,h=t.pageLabelBuilder,d=t.rel,v=t.ariaLabel||"Page "+i+(p?" "+p:""),y=null;return o&&(y="page",v=t.ariaLabel||"Page "+i+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==l&&(n=n+" "+l):n=l),e().createElement("li",{className:r},e().createElement("a",a({rel:d,role:f?void 0:"button",className:n,href:f,tabIndex:o?"-1":"0","aria-label":v,"aria-current":y,onKeyPress:s},u(s)),h(i)))};c.propTypes={pageSelectedHandler:o().func.isRequired,selected:o().bool.isRequired,pageClassName:o().string,pageLinkClassName:o().string,activeClassName:o().string,activeLinkClassName:o().string,extraAriaContext:o().string,href:o().string,ariaLabel:o().string,page:o().number.isRequired,getEventListener:o().func.isRequired,pageLabelBuilder:o().func.isRequired,rel:o().string};const l=c;function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,i=t.breakClassName,o=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,l=i||"break";return e().createElement("li",{className:l},e().createElement("a",u({className:o,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabel:o().string,breakClassName:o().string,breakLinkClassName:o().string,breakHandler:o().func.isRequired,getEventListener:o().func.isRequired};const f=s;function p(t){return null!=t?t:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(this,arguments)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(c,t);var r,n,i,o,a=(i=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=g(i);if(o){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}(this,t)});function c(t){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),m(y(r=a.call(this,t)),"handlePreviousPage",(function(t){var e=r.state.selected;r.handleClick(t,null,e>0?e-1:void 0,{isPrevious:!0})})),m(y(r),"handleNextPage",(function(t){var e=r.state.selected,n=r.props.pageCount;r.handleClick(t,null,e<n-1?e+1:void 0,{isNext:!0})})),m(y(r),"handlePageSelected",(function(t,e){if(r.state.selected===t)return r.callActiveCallback(t),void r.handleClick(e,null,void 0,{isActive:!0});r.handleClick(e,null,t)})),m(y(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(y(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(y(r),"handleClick",(function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.isPrevious,a=void 0!==o&&o,c=i.isNext,l=void 0!==c&&c,u=i.isBreak,s=void 0!==u&&u,f=i.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var h=r.state.selected,d=r.props.onClick,v=n;if(d){var y=d({index:e,selected:h,nextSelectedPage:n,event:t,isPrevious:a,isNext:l,isBreak:s,isActive:p});if(!1===y)return;Number.isInteger(y)&&(v=y)}void 0!==v&&r.handlePageChange(v)})),m(y(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(y(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(y(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(y(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,i=n.nextPageRel,o=n.prevPageRel,a=n.selectedPageRel;return e-1===t?o:e===t?a:e+1===t?i:void 0})),m(y(r),"pagination",(function(){var t=[],n=r.props,i=n.pageRangeDisplayed,o=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,l=n.breakClassName,u=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(o<=i)for(var h=0;h<o;h++)t.push(r.getPageElement(h));else{var d=i/2,v=i-d;p>o-i/2?d=i-(v=o-p):p<i/2&&(v=i-(d=p));var y,g,m=function(t){return r.getPageElement(t)},b=[];for(y=0;y<o;y++){var w=y+1;if(w<=a)b.push({type:"page",index:y,display:m(y)});else if(w>o-a)b.push({type:"page",index:y,display:m(y)});else if(y>=p-d&&y<=p+(0===p&&i>1?v-1:v))b.push({type:"page",index:y,display:m(y)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(i>0||a>0)){var x=y<p?s.backward:s.forward;g=e().createElement(f,{key:y,breakAriaLabel:x,breakLabel:c,breakClassName:l,breakLinkClassName:u,breakHandler:r.handleBreakClick.bind(null,y),getEventListener:r.getEventListener}),b.push({type:"break",index:y,display:g})}}b.forEach((function(e,r){var n=e;"break"===e.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:e.index,display:m(e.index)}),t.push(n.display)}))}return t})),void 0!==t.initialPage&&void 0!==t.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(t.initialPage,") and forcePage (").concat(t.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=t.initialPage?t.initialPage:t.forcePage?t.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.initialPage,r=t.disableInitialCallback,n=t.extraAriaContext,i=t.pageCount,o=t.forcePage;void 0===e||r||this.callCallback(e),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(i)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(i,"). Did you forget a Math.ceil()?")),void 0!==e&&e>i-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(i-1,").")),void 0!==o&&o>i-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(o," > ").concat(i-1,")."))}},{key:"componentDidUpdate",value:function(t){void 0!==this.props.forcePage&&this.props.forcePage!==t.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(t.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var t=this.state.selected,e=this.props,r=e.pageCount,n=t+e.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var t=this.state.selected-this.props.pageRangeDisplayed;return t<0?0:t}},{key:"getElementHref",value:function(t){var e=this.props,r=e.hrefBuilder,n=e.pageCount,i=e.hrefAllControls;if(r)return i||t>=0&&t<n?r(t+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(t){var e=t===this.state.selected;if(this.props.ariaLabelBuilder&&t>=0&&t<this.props.pageCount){var r=this.props.ariaLabelBuilder(t+1,e);return this.props.extraAriaContext&&!e&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(t){var r=this.state.selected,n=this.props,i=n.pageClassName,o=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,u=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(l,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:i,pageLinkClassName:o,activeClassName:a,activeLinkClassName:c,extraAriaContext:u,href:this.getElementHref(t),ariaLabel:this.ariaLabelBuilder(t),page:t+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var t=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==t)return t?t(this.props):t;var r=this.props,n=r.disabledClassName,i=r.disabledLinkClassName,o=r.pageCount,a=r.className,c=r.containerClassName,l=r.previousLabel,u=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,h=r.prevRel,v=r.nextLabel,y=r.nextClassName,g=r.nextLinkClassName,m=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===o-1,S="".concat(p(u)).concat(x?" ".concat(p(n)):""),_="".concat(p(y)).concat(O?" ".concat(p(n)):""),j="".concat(p(s)).concat(x?" ".concat(p(i)):""),P="".concat(p(g)).concat(O?" ".concat(p(i)):""),A=x?"true":"false",M=O?"true":"false";return e().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},e().createElement("li",{className:S},e().createElement("a",d({className:j,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:h},this.getEventListener(this.handlePreviousPage)),l)),this.pagination(),e().createElement("li",{className:_},e().createElement("a",d({className:P,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":M,"aria-label":m,rel:b},this.getEventListener(this.handleNextPage)),v)))}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t.Component);m(b,"propTypes",{pageCount:o().number.isRequired,pageRangeDisplayed:o().number,marginPagesDisplayed:o().number,previousLabel:o().node,previousAriaLabel:o().string,prevPageRel:o().string,prevRel:o().string,nextLabel:o().node,nextAriaLabel:o().string,nextPageRel:o().string,nextRel:o().string,breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabels:o().shape({forward:o().string,backward:o().string}),hrefBuilder:o().func,hrefAllControls:o().bool,onPageChange:o().func,onPageActive:o().func,onClick:o().func,initialPage:o().number,forcePage:o().number,disableInitialCallback:o().bool,containerClassName:o().string,className:o().string,pageClassName:o().string,pageLinkClassName:o().string,pageLabelBuilder:o().func,activeClassName:o().string,activeLinkClassName:o().string,previousClassName:o().string,nextClassName:o().string,previousLinkClassName:o().string,nextLinkClassName:o().string,disabledClassName:o().string,disabledLinkClassName:o().string,breakClassName:o().string,breakLinkClassName:o().string,extraAriaContext:o().string,ariaLabelBuilder:o().func,eventListener:o().string,renderOnZeroPageCount:o().func,selectedPageRel:o().string}),m(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(t){return t},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),i})()))),_I.exports);const AI=n(kr(PI)),MI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:i,forcePage:o,...a})=>{const c=Math.ceil(t/r);return e(y,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(AI,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:i,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:o,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:nn.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},kI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,l]=mt([]),[u,s]=mt(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(d,{onClick:()=>{if(2===u)return i(void 0),l([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),l((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===u,children:"Previous"}),e(d,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),l((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},CI=({children:t,isEnabled:r=!0,...n})=>{const i=r?Mt`
31
+ */function W_(){if(E_)return C_;E_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return C_=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))e.call(o,u)&&(c[u]=o[u]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},C_}function Z_(){if(D_)return T_;D_=1;return T_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function q_(){return N_?I_:(N_=1,I_=Function.call.bind(Object.prototype.hasOwnProperty))}function Y_(){if(L_)return R_;L_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Z_(),r={},n=q_();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,l){if("production"!==process.env.NODE_ENV)for(var u in i)if(n(i,u)){var s;try{if("function"!=typeof i[u]){var f=Error((c||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[u](o,u,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=l?l():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},R_=i}function G_(){if(z_)return B_;z_=1;var t=U_(),e=W_(),r=Z_(),n=q_(),i=Y_(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),B_=function(c,l){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(a),arrayOf:function(t){return v((function(e,n,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new d("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<c.length;l++){var u=t(c,l,i,o,a+"["+l+"]",r);if(u instanceof Error)return u}return null}))},element:v((function(t,e,r,n,i){var o=t[e];return c(o)?null:new d("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:v((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return v((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+(((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `")+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:v((function(t,e,r,n,i){return m(t[e])?null:new d("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return v((function(e,i,o,a,c){if("function"!=typeof t)return new d("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],u=b(l);if("object"!==u)return new d("Invalid "+a+" `"+c+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var s in l)if(n(l,s)){var f=t(l,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return v((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(h(a,t[c]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return v((function(e,i,o,a,c){for(var l=[],u=0;u<t.length;u++){var s=(0,t[u])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&l.push(s.data.expectedType)}return new d("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return v((function(e,n,i,o,a){var c=e[n],l=b(c);if("object"!==l)return new d("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in t){var s=t[u];if("function"!=typeof s)return g(i,o,a,u,w(s));var f=s(c,u,i,o,a+"."+u,r);if(f)return f}return null}))},exact:function(t){return v((function(i,o,a,c,l){var u=i[o],s=b(u);if("object"!==s)return new d("Invalid "+c+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var h=t[p];if(n(t,p)&&"function"!=typeof h)return g(a,c,l,p,w(h));if(!h)return new d("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var v=h(u,p,a,c,l+"."+p,r);if(v)return v}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function v(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,u,s,p,h){if(u=u||f,p=p||c,h!==r){if(l){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=u+":"+c;!e[y]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[y]=!0,n++)}}return null==a[c]?i?null===a[c]?new d("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new d("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(a,c,u,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function y(t){return v((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){return new d((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||c(t))return!0;var e=function(t){var e=t&&(u&&t[u]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},B_}function X_(){if(H_)return $_;H_=1;var t=Z_();function e(){}function r(){}return r.resetWarningCache=e,$_=function(){function n(e,r,n,i,o,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}function K_(){if(F_)return j_.exports;if(F_=1,"production"!==process.env.NODE_ENV){var t=U_();j_.exports=G_()(t.isElement,true)}else j_.exports=X_()();return j_.exports}var J_=kr(K_()),Q_=Object.getOwnPropertyNames,tj=Object.getOwnPropertySymbols,ej=Object.prototype.hasOwnProperty;function rj(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function nj(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function ij(t){return Q_(t).concat(tj(t))}var oj=Object.hasOwn||function(t,e){return ej.call(t,e)};function aj(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var cj="_owner",lj=Object.getOwnPropertyDescriptor,uj=Object.keys;function sj(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function fj(t,e){return aj(t.getTime(),e.getTime())}function pj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var l=e.entries(),u=!1,s=0;(i=l.next())&&!i.done;){var f=n.value,p=f[0],h=f[1],d=i.value,v=d[0],y=d[1];u||o[s]||!(u=r.equals(p,v,c,s,t,e,r)&&r.equals(h,y,p,v,t,e,r))||(o[s]=!0),s++}if(!u)return!1;c++}return!0}function hj(t,e,r){var n,i=uj(t),o=i.length;if(uj(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===cj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!oj(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function dj(t,e,r){var n,i,o,a=ij(t),c=a.length;if(ij(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===cj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!oj(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=lj(t,n),o=lj(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function vj(t,e){return aj(t.valueOf(),e.valueOf())}function yj(t,e){return t.source===e.source&&t.flags===e.flags}function gj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),l=!1,u=0;(i=c.next())&&!i.done;)l||o[u]||!(l=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[u]=!0),u++;if(!l)return!1}return!0}function mj(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var bj="[object Arguments]",wj="[object Boolean]",xj="[object Date]",Oj="[object Map]",Sj="[object Number]",_j="[object Object]",jj="[object RegExp]",Pj="[object Set]",Aj="[object String]",Mj=Array.isArray,kj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Cj=Object.assign,Ej=Object.prototype.toString.call.bind(Object.prototype.toString);var Tj=Dj();function Dj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,l=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?dj:sj,areDatesEqual:fj,areMapsEqual:n?rj(pj,dj):pj,areObjectsEqual:n?dj:hj,arePrimitiveWrappersEqual:vj,areRegExpsEqual:yj,areSetsEqual:n?rj(gj,dj):gj,areTypedArraysEqual:n?dj:mj};if(r&&(i=Cj({},i,r(i))),e){var o=nj(i.areArraysEqual),a=nj(i.areMapsEqual),c=nj(i.areObjectsEqual),l=nj(i.areSetsEqual);i=Cj({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:l})}return i}(t),u=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,l=t.areTypedArraysEqual;return function(t,u,s){if(t===u)return!0;if(null==t||null==u||"object"!=typeof t||"object"!=typeof u)return t!=t&&u!=u;var f=t.constructor;if(f!==u.constructor)return!1;if(f===Object)return i(t,u,s);if(Mj(t))return e(t,u,s);if(null!=kj&&kj(t))return l(t,u,s);if(f===Date)return r(t,u,s);if(f===RegExp)return a(t,u,s);if(f===Map)return n(t,u,s);if(f===Set)return c(t,u,s);var p=Ej(t);return p===xj?r(t,u,s):p===jj?a(t,u,s):p===Oj?n(t,u,s):p===Pj?c(t,u,s):p===_j?"function"!=typeof t.then&&"function"!=typeof u.then&&i(t,u,s):p===bj?i(t,u,s):(p===wj||p===Sj||p===Aj)&&o(t,u,s)}}(l),s=i?i(u):(e=u,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),l=c.cache,u=void 0===l?e?new WeakMap:void 0:l,s=c.meta;return r(t,a,{cache:u,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:u,createState:o,equals:s,strict:c})}function Ij(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Nj(t){return Nj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nj(t)}function Rj(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Lj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lj(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Bj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=Rj(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Ij(r.bind(null,a),o):(r(o),void Ij(r.bind(null,a)))}"object"===Nj(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function zj(t){return zj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zj(t)}function $j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Hj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$j(Object(r),!0).forEach((function(e){Fj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==zj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Dj({strict:!0}),Dj({circular:!0}),Dj({circular:!0,strict:!0}),Dj({createInternalComparator:function(){return aj}}),Dj({strict:!0,createInternalComparator:function(){return aj}}),Dj({circular:!0,createInternalComparator:function(){return aj}}),Dj({circular:!0,createInternalComparator:function(){return aj},strict:!0});var Vj=function(t){return t},Uj=function(t,e){return Object.keys(e).reduce((function(r,n){return Hj(Hj({},r),{},Fj({},n,t(n,e[n])))}),{})},Wj=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},Zj="production"!==process.env.NODE_ENV,qj=function(t,e,r,n,i,o,a,c){if(Zj&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,i,o,a,c],u=0;console.warn(e.replace(/%s/g,(function(){return l[u++]})))}};function Yj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||Xj(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gj(t){return function(t){if(Array.isArray(t))return Kj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xj(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xj(t,e){if(t){if("string"==typeof t)return Kj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kj(t,e):void 0}}function Kj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Jj=1e-4,Qj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},tP=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},eP=function(t,e){return function(r){var n=Qj(t,e);return tP(n,r)}},rP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),u=Yj(l,4);n=u[0],i=u[1],o=u[2],a=u[3]}else qj(!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)}qj([n,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=eP(n,o),h=eP(i,a),d=(s=n,f=o,function(t){var e=Qj(s,f),r=[].concat(Gj(e.map((function(t,e){return t*e})).slice(1)),[0]);return tP(r,t)}),v=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=d(n);if(Math.abs(o-r)<Jj||a<Jj)return h(n);n=(e=n-o/a)>1?1:e<0?0:e}return h(n)};return v.isStepper=!1,v},nP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return rP(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Jj&&Math.abs(o)<Jj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return rP(n);qj(!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"function"==typeof n?n:(qj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function iP(t){return iP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iP(t)}function oP(t){return function(t){if(Array.isArray(t))return fP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||sP(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aP(Object(r),!0).forEach((function(e){lP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==iP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==iP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===iP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||sP(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sP(t,e){if(t){if("string"==typeof t)return fP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fP(t,e):void 0}}function fP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var pP=function(t,e,r){return t+(e-t)*r},hP=function(t){return t.from!==t.to},dP=function t(e,r,n){var i=Uj((function(t,r){if(hP(r)){var n=uP(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return cP(cP({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Uj((function(t,e){return hP(e)?cP(cP({},e),{},{velocity:pP(e.velocity,i[t].velocity,n),from:pP(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},vP=function(t,e,r,n,i){var o,a,c,l,u=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=u.reduce((function(r,n){return cP(cP({},r),{},lP({},n,[t[n],e[n]]))}),{}),f=u.reduce((function(r,n){return cP(cP({},r),{},lP({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=dP(r,f,o),i(cP(cP(cP({},t),e),Uj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(hP).length&&(p=requestAnimationFrame(h))}:function(o){l||(l=o);var a=(o-l)/n,c=Uj((function(t,e){return pP.apply(void 0,oP(e).concat([r(a)]))}),s);if(i(cP(cP(cP({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var u=Uj((function(t,e){return pP.apply(void 0,oP(e).concat([r(1)]))}),s);i(cP(cP(cP({},t),e),u))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function yP(t){return yP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yP(t)}var gP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function mP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function bP(t){return function(t){if(Array.isArray(t))return wP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return wP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wP(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function OP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xP(Object(r),!0).forEach((function(e){SP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function SP(t,e,r){return(e=jP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _P(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function jP(t){var e=function(t,e){if("object"!==yP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==yP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===yP(e)?e:String(e)}function PP(t,e){return PP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},PP(t,e)}function AP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=CP(t);if(e){var i=CP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return MP(this,r)}}function MP(t,e){if(e&&("object"===yP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return kP(t)}function kP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CP(t){return CP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},CP(t)}var EP=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&PP(t,e)}(r,dt);var e=AP(r);function r(t,n){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=(i=e.call(this,t,n)).props,a=o.isActive,c=o.attributeName,l=o.from,u=o.to,s=o.steps,f=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(kP(i)),i.changeStyle=i.changeStyle.bind(kP(i)),!a||p<=0)return i.state={style:{}},"function"==typeof f&&(i.state={style:u}),MP(i);if(s&&s.length)i.state={style:s[0].style};else if(l){if("function"==typeof f)return i.state={style:l},MP(i);i.state={style:c?SP({},c,l):l}}else i.state={style:{}};return i}return _P(r,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,l=this.state.style;if(n)if(r){if(!(Tj(t.to,a)&&t.canBegin&&t.isActive)){var u=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=u||o?c:t.to;if(this.state&&l){var f={style:i?SP({},i,s):s};(i&&l[i]!==s||!i&&l!==s)&&this.setState(f)}this.runAnimation(OP(OP({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?SP({},i,a):a};this.state&&l&&(i&&l[i]!==a||!i&&l!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,l=t.onAnimationStart,u=vP(r,n,nP(o),i,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=u()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,l=void 0===c?0:c;return this.manager.start([i].concat(bP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,l=n.style,u=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=u||Object.keys(l);if("function"==typeof c||"spring"===c)return[].concat(bP(t),[e.runJSAnimation.bind(e,{from:f.style,to:l,duration:o,easing:c}),o]);var h=Wj(p,o,c),d=OP(OP(OP({},f.style),l),{},{transition:h});return[].concat(bP(t),[d,o,s]).filter(Vj)}),[a,Math.max(l,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Bj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,l=t.steps,u=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof u&&"spring"!==o)if(l.length>1)this.runStepAnimation(t);else{var f=n?SP({},n,i):i,p=Wj(Object.keys(f),r,o);s.start([a,e,OP(OP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=mP(t,gP),o=ht.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return Ot(t,OP(OP({},i),{},{style:OP(OP({},n),a),className:o}))};return 1===o?c(ht.only(e)):ft.createElement("div",null,ht.map(e,(function(t){return c(t)})))}}]),r}();function TP(t){return TP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TP(t)}function DP(){return DP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},DP.apply(this,arguments)}function IP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return NP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function RP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function LP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?RP(Object(r),!0).forEach((function(e){BP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=TP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=TP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==TP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}EP.displayName="Animate",EP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},EP.propTypes={from:J_.oneOfType([J_.object,J_.string]),to:J_.oneOfType([J_.object,J_.string]),attributeName:J_.string,duration:J_.number,begin:J_.number,easing:J_.oneOfType([J_.string,J_.func]),steps:J_.arrayOf(J_.shape({duration:J_.number.isRequired,style:J_.object.isRequired,easing:J_.oneOfType([J_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),J_.func]),properties:J_.arrayOf("string"),onAnimationEnd:J_.func})),children:J_.oneOfType([J_.node,J_.func]),isActive:J_.bool,canBegin:J_.bool,onAnimationEnd:J_.func,shouldReAnimate:J_.bool,onAnimationStart:J_.func,onAnimationReStart:J_.func};var zP=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,l=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(u,",").concat(t+l*s[0],",").concat(e)),o+="L ".concat(t+r-l*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(u,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(u,",\n ").concat(t+r-l*s[2],",").concat(e+n)),o+="L ".concat(t+l*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(u,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(e,"\n L ").concat(t+r-l*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+r-l*p,",").concat(e+n,"\n L ").concat(t+l*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(e+n-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},$P=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=l&&r<=u&&n>=s&&n<=f}return!1},HP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},FP=function(t){var e=LP(LP({},HP),t),r=yt(),n=IP(mt(-1),2),i=n[0],o=n[1];wt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.width,u=e.height,s=e.radius,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,v=e.isAnimationActive,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var g=Gn("recharts-rectangle",f);return y?ft.createElement(EP,{canBegin:i>0,from:{width:l,height:u,x:a,y:c},to:{width:l,height:u,x:a,y:c},duration:h,animationEasing:p,isActive:y},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return ft.createElement(EP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:v,easing:p},ft.createElement("path",DP({},Pc(e,!0),{className:g,d:zP(a,c,n,o,s),ref:r})))})):ft.createElement("path",DP({},Pc(e,!0),{className:g,d:zP(a,c,l,u,s)}))};function VP(){return VP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},VP.apply(this,arguments)}var UP=function(t){var e=t.cx,r=t.cy,n=t.r,i=Gn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?ft.createElement("circle",VP({},Pc(t,!1),sc(t),{className:i,cx:e,cy:r,r:n})):null};function WP(t){return WP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WP(t)}var ZP=["x","y","top","left","width","height","className"];function qP(){return qP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qP.apply(this,arguments)}function YP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function GP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=WP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=WP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==WP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var KP,JP,QP,tA,eA=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},rA=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,l=void 0===c?0:c,u=t.width,s=void 0===u?0:u,f=t.height,p=void 0===f?0:f,h=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?YP(Object(r),!0).forEach((function(e){GP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:l,width:s,height:p},XP(t,ZP));return Ga(r)&&Ga(i)&&Ga(s)&&Ga(p)&&Ga(a)&&Ga(l)?ft.createElement("path",qP({},Pc(d,!0),{className:Gn("recharts-cross",h),d:eA(r,i,s,p,a,l)})):null};var nA,iA,oA=function(){if(tA)return QP;tA=1;var t=Ko(),e=function(){if(JP)return KP;JP=1;var t=Tp()(Object.getPrototypeOf,Object);return KP=t}(),r=Jo(),n=Function.prototype,i=Object.prototype,o=n.toString,a=i.hasOwnProperty,c=o.call(Object);return QP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var i=e(n);if(null===i)return!0;var l=a.call(i,"constructor")&&i.constructor;return"function"==typeof l&&l instanceof l&&o.call(l)==c}}(),aA=kr(oA);var cA=kr(function(){if(iA)return nA;iA=1;var t=Ko(),e=Jo();return nA=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function lA(t){return lA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lA(t)}function uA(){return uA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uA.apply(this,arguments)}function sA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return fA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fA(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pA(Object(r),!0).forEach((function(e){dA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=lA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=lA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var vA,yA,gA,mA,bA,wA,xA,OA,SA=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},_A={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jA=function(t){var e=hA(hA({},_A),t),r=yt(),n=sA(mt(-1),2),i=n[0],o=n[1];wt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.upperWidth,u=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||s!==+s||0===l&&0===u||0===s)return null;var y=Gn("recharts-trapezoid",f);return v?ft.createElement(EP,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:l,lowerWidth:u,height:s,x:a,y:c},duration:h,animationEasing:p,isActive:v},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,l=t.y;return ft.createElement(EP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,easing:p},ft.createElement("path",uA({},Pc(e,!0),{className:y,d:SA(c,l,n,o,a),ref:r})))})):ft.createElement("g",null,ft.createElement("path",uA({},Pc(e,!0),{className:y,d:SA(a,c,l,u,s)})))},PA=["option","shapeType","propTransformer","activeClassName","isActive"];function AA(t){return AA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AA(t)}function MA(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function kA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function CA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kA(Object(r),!0).forEach((function(e){EA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function EA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=AA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=AA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==AA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TA(t,e){return CA(CA({},e),t)}function DA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return ft.createElement(FP,r);case"trapezoid":return ft.createElement(jA,r);case"sector":return ft.createElement(p_,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return ft.createElement(wu,r);break;default:return null}}function IA(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?TA:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,l=t.isActive,u=MA(t,PA);if(pt(r))e=Ot(r,CA(CA({},u),function(t){return pt(t)?t.props:t}(r)));else if(Ea(r))e=r(u);else if(aA(r)&&!cA(r)){var s=o(r,u);e=ft.createElement(DA,{shapeType:n,elementProps:s})}else{var f=u;e=ft.createElement(DA,{shapeType:n,elementProps:f})}return l?ft.createElement(Qc,{className:c},e):e}function NA(t,e){return null!=e&&"trapezoids"in t.props}function RA(t,e){return null!=e&&"sectors"in t.props}function LA(t,e){return null!=e&&"points"in t.props}function BA(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function zA(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function $A(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function HA(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return NA(t,e)?r="trapezoids":RA(t,e)?r="sectors":LA(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return NA(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:RA(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:LA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=mx(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return NA(t,e)?r=BA:RA(t,e)?r=zA:LA(t,e)&&(r=$A),r}(r,e);return n(t,e)})),l=r.props[i].indexOf(c[c.length-1]);return a&&n===l}));return n.indexOf(a[a.length-1])}function FA(){if(mA)return gA;mA=1;var t=gv(),e=1/0;return gA=function(r){return r?(r=t(r))===e||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function VA(){if(wA)return bA;wA=1;var t=function(){if(yA)return vA;yA=1;var t=Math.ceil,e=Math.max;return vA=function(r,n,i,o){for(var a=-1,c=e(t((n-r)/(i||1)),0),l=Array(c);c--;)l[o?c:++a]=r,r+=i;return l}}(),e=yd(),r=FA();return bA=function(n){return function(i,o,a){return a&&"number"!=typeof a&&e(i,o,a)&&(o=a=void 0),i=r(i),void 0===o?(o=i,i=0):o=r(o),a=void 0===a?i<o?1:-1:r(a),t(i,o,a,n)}}}var UA=function(){if(OA)return xA;OA=1;var t=VA()();return xA=t}(),WA=kr(UA);function ZA(t){return ZA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZA(t)}function qA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function YA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qA(Object(r),!0).forEach((function(e){GA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function GA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ZA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ZA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ZA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var XA=["Webkit","Moz","O","ms"];function KA(t){return KA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},KA(t)}function JA(){return JA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},JA.apply(this,arguments)}function QA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?QA(Object(r),!0).forEach((function(e){aM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function eM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cM(n.key),n)}}function rM(t,e,r){return e=iM(e),function(t,e){if(e&&("object"===KA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,nM()?Reflect.construct(e,r||[],iM(t).constructor):e.apply(t,r))}function nM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nM=function(){return!!t})()}function iM(t){return iM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},iM(t)}function oM(t,e){return oM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oM(t,e)}function aM(t,e,r){return(e=cM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cM(t){var e=function(t,e){if("object"!=KA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=KA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==KA(e)?e:e+""}var lM,uM,sM,fM,pM=function(t){return t.changedTouches&&!!t.changedTouches.length},hM=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),aM(r=rM(this,e,[t]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),aM(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),aM(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),aM(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),aM(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),aM(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),aM(r,"handleSlideDragStart",(function(t){var e=pM(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oM(t,e)}(e,dt),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,l=Math.min(r,n),u=Math.max(r,n),s=e.getIndexInRange(i,l),f=e.getIndexInRange(i,u);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=GO(r[t],i,t);return Ea(n)?n(o,t):o}},{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(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,l=o.travellerWidth,u=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-l-i,a+c-l-n):p<0&&(p=Math.max(p,a-n,a-i));var h=this.getIndex({startX:n+p,endX:i+p});h.startIndex===u&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=pM(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],c=this.props,l=c.x,u=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,d={startX:this.state.startX,endX:this.state.endX},v=t.pageX-r;v>0?v=Math.min(v,l+u-s-a):v<0&&(v=Math.max(v,l-a)),d[n]=a+v;var y=this.getIndex(d),g=y.startIndex,m=y.endIndex;this.setState(aM(aM({},n,a+v),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(i>o?g%p==0:m%p==0)||i<o&&m===t||"endX"===n&&(i>o?m%p==0:g%p==0)||i>o&&m===t)&&f(y))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],l=i.indexOf(c);if(-1!==l){var u=l+t;if(!(-1===u||u>=i.length)){var s=i[u];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(aM({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return ft.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,l=ht.only(a);return l?ft.cloneElement(l,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,i,o=this,a=this.props,c=a.y,l=a.travellerWidth,u=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,h=a.startIndex,d=a.endIndex,v=Math.max(t,this.props.x),y=tM(tM({},Pc(this.props,!1)),{},{x:v,y:c,width:l,height:u}),g=f||"Min value: ".concat(null===(n=p[h])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[d])||void 0===i?void 0:i.name);return ft.createElement(Qc,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,y))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,l=Math.max(Math.abs(e-t)-a,0);return ft.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,l=c.startX,u=c.endX,s={pointerEvents:"none",fill:a};return ft.createElement(Qc,{className:"recharts-brush-texts"},ft.createElement(fy,JA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+i/2},s),this.getTextOfTick(e)),ft.createElement(fy,JA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,l=t.alwaysShowText,u=this.state,s=u.startX,f=u.endX,p=u.isTextActive,h=u.isSlideMoving,d=u.isTravellerMoving,v=u.isTravellerFocused;if(!e||!e.length||!Ga(i)||!Ga(o)||!Ga(a)||!Ga(c)||a<=0||c<=0)return null;var y,g,m,b,w=Gn("recharts-brush",r),x=1===ft.Children.count(n),O=(g="none",m=(y="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=XA.reduce((function(t,e){return YA(YA({},t),{},GA({},e+m,g))}),{}))[y]=g,b);return ft.createElement(Qc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||v||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return ft.createElement(ft.Fragment,null,ft.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),ft.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),ft.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return ft.isValidElement(t)?ft.cloneElement(t,r):Ea(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,l=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return tM({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,l=$y().domain(WA(0,c)).range([i,i+o-a]),u=l.domain().map((function(t){return l(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:u}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var u=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&eM(r.prototype,n),i&&eM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();aM(hM,"displayName","Brush"),aM(hM,"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 dM,vM,yM,gM,mM=function(){if(fM)return sM;fM=1;var t=ks(),e=qp(),r=function(){if(uM)return lM;uM=1;var t=ld();return lM=function(e,r){var n;return t(e,(function(t,e,i){return!(n=r(t,e,i))})),!!n}}(),n=qo(),i=yd();return sM=function(o,a,c){var l=n(o)?t:r;return c&&i(o,a,c)&&(a=void 0),l(o,e(a,3))}}(),bM=kr(mM),wM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var xM,OM,SM,_M,jM,PM,AM=function(){if(gM)return yM;gM=1;var t=function(){if(vM)return dM;vM=1;var t=hd();return dM=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},dM}(),e=cd(),r=qp();return yM=function(n,i){var o={};return i=r(i,3),e(n,(function(e,r,n){t(o,r,i(e,r,n))})),o},yM}(),MM=kr(AM);var kM=function(){if(PM)return jM;PM=1;var t=(OM||(OM=1,xM=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}),xM),e=function(){if(_M)return SM;_M=1;var t=ld();return SM=function(e,r){var n=!0;return t(e,(function(t,e,i){return n=!!r(t,e,i)})),n}}(),r=qp(),n=qo(),i=yd();return jM=function(o,a,c){var l=n(o)?t:e;return c&&i(o,a,c)&&(a=void 0),l(o,r(a,3))}}(),CM=kr(kM),EM=["x","y"];function TM(t){return TM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TM(t)}function DM(){return DM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},DM.apply(this,arguments)}function IM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function NM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?IM(Object(r),!0).forEach((function(e){RM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function RM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=TM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=TM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==TM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function LM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function BM(t,e){var r=t.x,n=t.y,i=LM(t,EM),o="".concat(r),a=parseInt(o,10),c="".concat(n),l=parseInt(c,10),u="".concat(e.height||i.height),s=parseInt(u,10),f="".concat(e.width||i.width),p=parseInt(f,10);return NM(NM(NM(NM(NM({},e),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function zM(t){return ft.createElement(IA,DM({shapeType:"rectangle",propTransformer:BM,activeClassName:"recharts-active-bar"},t))}var $M,HM=["value","background"];function FM(t){return FM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FM(t)}function VM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function UM(){return UM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},UM.apply(this,arguments)}function WM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ZM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WM(Object(r),!0).forEach((function(e){JM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,QM(n.key),n)}}function YM(t,e,r){return e=XM(e),function(t,e){if(e&&("object"===FM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,GM()?Reflect.construct(e,r||[],XM(t).constructor):e.apply(t,r))}function GM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(GM=function(){return!!t})()}function XM(t){return XM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},XM(t)}function KM(t,e){return KM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},KM(t,e)}function JM(t,e,r){return(e=QM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QM(t){var e=function(t,e){if("object"!=FM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=FM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==FM(e)?e:e+""}var tk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return JM(t=YM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),JM(t,"id",Ja("recharts-bar-")),JM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),JM(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&KM(t,e)}(e,dt),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=Pc(this.props,!1);return t&&t.map((function(t,r){var l=r===o,u=l?a:n,s=ZM(ZM(ZM({},c),t),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return ft.createElement(Qc,UM({className:"recharts-bar-rectangle"},fc(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(r)}),ft.createElement(zM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,l=e.animationId,u=this.state.prevData;return ft.createElement(EP,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=u&&u[e];if(r){var o=ec(r.x,t.x),a=ec(r.y,t.y),c=ec(r.width,t.width),l=ec(r.height,t.height);return ZM(ZM({},t),{},{x:o(i),y:a(i),width:c(i),height:l(i)})}if("horizontal"===n){var s=ec(0,t.height)(i);return ZM(ZM({},t),{},{y:t.y+t.height-s,height:s})}var f=ec(0,t.width)(i);return ZM(ZM({},t),{},{width:f})}));return ft.createElement(Qc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&mx(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=Pc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=VM(e,HM);if(!a)return null;var l=ZM(ZM(ZM(ZM(ZM({},c),{},{fill:"#eee"},a),o),fc(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return ft.createElement(zM,UM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=xc(r.children,LO);if(!c)return null;var l="vertical"===a?n[0].height/2:n[0].width/2,u=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:GO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return ft.createElement(Qc,s,c.map((function(t){return ft.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,l=t.width,u=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=Gn("recharts-bar",n),v=i&&i.allowDataOverflow,y=o&&o.allowDataOverflow,g=v||y,m=Aa(p)?this.id:p;return ft.createElement(Qc,{className:d},v||y?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(m)},ft.createElement("rect",{x:v?a:a-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,ft.createElement(Qc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||h)&&n_.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&qM(r.prototype,n),i&&qM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function ek(t){return ek="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ek(t)}function rk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ak(n.key),n)}}function nk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ik(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nk(Object(r),!0).forEach((function(e){ok(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ok(t,e,r){return(e=ak(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ak(t){var e=function(t,e){if("object"!=ek(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ek(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ek(e)?e:e+""}$M=tk,JM(tk,"displayName","Bar"),JM(tk,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Wd,animationBegin:0,animationDuration:400,animationEasing:"ease"}),JM(tk,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,l=t.yAxisTicks,u=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var d=e.layout,v=r.type.defaultProps,y=void 0!==v?ZM(ZM({},v),r.props):r.props,g=y.dataKey,m=y.children,b=y.minPointSize,w="horizontal"===d?a:o,x=u?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:w}),S=xc(m,Mv),_=f.map((function(t,e){var n,f,p,v,y,m;u?n=function(t,e){if(!e||2!==e.length||!Ga(e[0])||!Ga(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Ga(t[0])||t[0]<r)&&(i[0]=r),(!Ga(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(u[s+e],x):(n=GO(t,g),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?SO(0,"minPointSize callback function received a value with type of ".concat(TM(r),". Currently only numbers are supported.")):SO()),e)}}(b,$M.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var _,j=[a.scale(n[0]),a.scale(n[1])],P=j[0],A=j[1];f=lS({axis:o,ticks:c,bandSize:i,offset:h.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,v=h.size;var M=P-A;if(y=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:v,height:a.height},Math.abs(w)>0&&Math.abs(y)<Math.abs(w)){var k=qa(y||w)*(Math.abs(w)-Math.abs(y));p-=k,y+=k}}else{var C=[o.scale(n[0]),o.scale(n[1])],E=C[0],T=C[1];if(f=E,p=lS({axis:a,ticks:l,bandSize:i,offset:h.offset,entry:t,index:e}),v=T-E,y=h.size,m={x:o.x,y:p,width:o.width,height:y},Math.abs(w)>0&&Math.abs(v)<Math.abs(w))v+=qa(v||w)*(Math.abs(w)-Math.abs(v))}return ZM(ZM(ZM({},t),{},{x:f,y:p,width:v,height:y,value:u?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[vS(r,t)],tooltipPosition:{x:f+v/2,y:p+y/2}})}));return ZM({data:_,layout:d},p)}));var ck=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,l=t.children,u=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!Oc(l,tk);return u.reduce((function(o,a){var l,u,p,h,d,v=e[a],y=v.orientation,g=v.domain,m=v.padding,b=void 0===m?{}:m,w=v.mirror,x=v.reversed,O="".concat(y).concat(w?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=g[1]-g[0],_=1/0,j=v.categoricalDomain.sort(nc);if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(l=P*A/2),"no-gap"===v.padding){var M=Qa(t.barCategoryGap,P*A),k=P*A/2;l=k-M-(k-M)/A*M}}}u="xAxis"===n?[r.left+(b.left||0)+(l||0),r.left+r.width-(b.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(l||0),r.top+r.height-(b.bottom||0)-(l||0)]:v.range,x&&(u=[u[1],u[0]]);var C=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:By(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:lm(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:$y(),realScaleType:"point"}:"category"===i?{scale:By(),realScaleType:"band"}:{scale:lm(),realScaleType:"linear"};if(Ca(n)){var c="scale".concat(al(n));return{scale:(Qw[c]||$y)(),realScaleType:Qw[c]?c:"point"}}return Ea(n)?{scale:n}:{scale:$y(),realScaleType:"point"}}(v,i,f),E=C.scale,T=C.realScaleType;E.domain(g).range(u),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-iS,o=Math.max(n[0],n[1])+iS,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(E);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var l=t.domain();if(!l.length)return null;var u=bO(l,i,a);return t.domain([px(u),ax(u)]),{niceTicks:u}}if(i&&"number"===n){var s=t.domain();return{niceTicks:wO(s,i,a)}}return null}(E,ik(ik({},v),{},{realScaleType:T}));"xAxis"===n?(d="top"===y&&!w||"bottom"===y&&w,p=r.left,h=s[O]-d*v.height):"yAxis"===n&&(d="left"===y&&!w||"right"===y&&w,p=s[O]-d*v.width,h=r.top);var I=ik(ik(ik({},v),D),{},{realScaleType:T,x:p,y:h,scale:E,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return I.bandSize=hS(I,D),v.hide||"xAxis"!==n?v.hide||(s[O]+=(d?-1:1)*I.width):s[O]+=(d?-1:1)*I.height,ik(ik({},o),{},ok({},a,I))}),{})},lk=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},uk=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{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(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&rk(e.prototype,r),n&&rk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();ok(uk,"EPS",1e-4);var sk=function(t){var e=Object.keys(t).reduce((function(e,r){return ik(ik({},e),{},ok({},r,uk.create(t[r])))}),{});return ik(ik({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return MM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return CM(t,(function(t,r){return e[r].isInRange(t)}))}})};var fk,pk,hk,dk,vk,yk,gk,mk,bk=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function wk(){if(yk)return vk;yk=1;var t=Yp(),e=qp(),r=function(){if(dk)return hk;dk=1;var t=FA();return hk=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return vk=function(i,o,a){var c=null==i?0:i.length;if(!c)return-1;var l=null==a?0:r(a);return l<0&&(l=n(c+l,0)),t(i,e(o,3),l)},vk}!function(){if(mk)return gk;mk=1;var t=function(){if(pk)return fk;pk=1;var t=qp(),e=Ip(),r=Np();return fk=function(n){return function(i,o,a){var c=Object(i);if(!e(i)){var l=t(o,3);i=r(i),o=function(t){return l(c[t],t,c)}}var u=n(i,o,a);return u>-1?c[l?i[u]:u]:void 0}}}(),e=t(wk());gk=e}();var xk=kr(da())((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function Ok(t){return Ok="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ok(t)}var Sk=jt(void 0),_k=jt(void 0),jk=jt(void 0),Pk=jt({}),Ak=jt(void 0),Mk=jt(0),kk=jt(0),Ck=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,l=t.height,u=xk(i);return ft.createElement(Sk.Provider,{value:r},ft.createElement(_k.Provider,{value:n},ft.createElement(Pk.Provider,{value:i},ft.createElement(jk.Provider,{value:u},ft.createElement(Ak.Provider,{value:o},ft.createElement(Mk.Provider,{value:l},ft.createElement(kk.Provider,{value:c},a)))))))};function Ek(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var Tk=function(t){var e=_t(Sk);null==e&&("production"!==process.env.NODE_ENV?SO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):SO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?SO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(Ok(t),"]. ").concat(Ek(e))):SO()),r},Dk=function(t){var e=_t(_k);null==e&&("production"!==process.env.NODE_ENV?SO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):SO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?SO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(Ok(t),"]. ").concat(Ek(e))):SO()),r},Ik=function(){return _t(kk)},Nk=function(){return _t(Mk)};function Rk(t){return Rk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rk(t)}function Lk(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Wk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bk(t,e,r){return e=$k(e),function(t,e){if(e&&("object"===Rk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,zk()?Reflect.construct(e,r||[],$k(t).constructor):e.apply(t,r))}function zk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zk=function(){return!!t})()}function $k(t){return $k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$k(t)}function Hk(t,e){return Hk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hk(t,e)}function Fk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fk(Object(r),!0).forEach((function(e){Uk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Uk(t,e,r){return(e=Wk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wk(t){var e=function(t,e){if("object"!=Rk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Rk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Rk(e)?e:e+""}function Zk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return qk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qk(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yk(){return Yk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yk.apply(this,arguments)}function Gk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,l=t.alwaysShow,u=_t(Ak),s=Tk(i),f=Dk(o),p=_t(jk);if(!u||!p)return null;el(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(t,e,r,n,i,o,a,c,l){var u=i.x,s=i.y,f=i.width,p=i.height;if(r){var h=l.y,d=t.y.apply(h,{position:o});if(wM(l,"discard")&&!t.y.isInRange(d))return null;var v=[{x:u+f,y:d},{x:u,y:d}];return"left"===c?v.reverse():v}if(e){var y=l.x,g=t.x.apply(y,{position:o});if(wM(l,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:s+p},{x:g,y:s}];return"top"===a?m.reverse():m}if(n){var b=l.segment.map((function(e){return t.apply(e,{position:o})}));return wM(l,"discard")&&bM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(sk({x:s.scale,y:f.scale}),Xa(e),Xa(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!h)return null;var d=Zk(h,2),v=d[0],y=v.x,g=v.y,m=d[1],b=m.x,w=m.y,x=Vk(Vk({clipPath:wM(t,"hidden")?"url(#".concat(u,")"):void 0},Pc(t,!0)),{},{x1:y,y1:g,x2:b,y2:w});return ft.createElement(Qc,{className:Gn("recharts-reference-line",c)},function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ea(t)?t(e):ft.createElement("line",Yk({},e,{className:"recharts-reference-line-line"}))}(a,x),$S.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return lk({x:e,y:r},{x:n,y:i})}({x1:y,y1:g,x2:b,y2:w})))}var Xk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Bk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hk(t,e)}(e,ft.Component),Lk(e,[{key:"render",value:function(){return ft.createElement(Gk,this.props)}}])}();function Kk(){return Kk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Kk.apply(this,arguments)}function Jk(t){return Jk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jk(t)}function Qk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qk(Object(r),!0).forEach((function(e){aC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function eC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function rC(t,e,r){return e=iC(e),function(t,e){if(e&&("object"===Jk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,nC()?Reflect.construct(e,r||[],iC(t).constructor):e.apply(t,r))}function nC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nC=function(){return!!t})()}function iC(t){return iC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},iC(t)}function oC(t,e){return oC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oC(t,e)}function aC(t,e,r){return(e=cC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cC(t){var e=function(t,e){if("object"!=Jk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Jk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Jk(e)?e:e+""}Uk(Xk,"displayName","ReferenceLine"),Uk(Xk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var lC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),rC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oC(t,e)}(e,ft.Component),eC(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=Xa(r),l=Xa(n);if(el(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var u=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=sk({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return wM(t,"discard")&&!o.isInRange(a)?null:a}(this.props);if(!u)return null;var s=u.x,f=u.y,p=this.props,h=p.shape,d=p.className,v=tC(tC({clipPath:wM(this.props,"hidden")?"url(#".concat(a,")"):void 0},Pc(this.props,!0)),{},{cx:s,cy:f});return ft.createElement(Qc,{className:Gn("recharts-reference-dot",d)},e.renderDot(h,v),$S.renderCallByParent(this.props,{x:s-i,y:f-i,width:2*i,height:2*i}))}}])}();function uC(){return uC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uC.apply(this,arguments)}function sC(t){return sC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sC(t)}function fC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fC(Object(r),!0).forEach((function(e){mC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function dC(t,e,r){return e=yC(e),function(t,e){if(e&&("object"===sC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,vC()?Reflect.construct(e,r||[],yC(t).constructor):e.apply(t,r))}function vC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vC=function(){return!!t})()}function yC(t){return yC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yC(t)}function gC(t,e){return gC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gC(t,e)}function mC(t,e,r){return(e=bC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bC(t){var e=function(t,e){if("object"!=sC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==sC(e)?e:e+""}aC(lC,"displayName","ReferenceDot"),aC(lC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),aC(lC,"renderDot",(function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ea(t)?t(e):ft.createElement(UP,Kk({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var wC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),dC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gC(t,e)}(e,ft.Component),hC(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,l=t.clipPathId;el(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Xa(r),s=Xa(n),f=Xa(i),p=Xa(o),h=this.props.shape;if(!(u||s||f||p||h))return null;var d=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,l=i.y2,u=i.xAxis,s=i.yAxis;if(!u||!s)return null;var f=sk({x:u.scale,y:s.scale}),p={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!wM(i,"discard")||f.isInRange(p)&&f.isInRange(h)?lk(p,h):null}(u,s,f,p,this.props);if(!d&&!h)return null;var v=wM(this.props,"hidden")?"url(#".concat(l,")"):void 0;return ft.createElement(Qc,{className:Gn("recharts-reference-area",a)},e.renderRect(h,pC(pC({clipPath:v},Pc(this.props,!0)),d)),$S.renderCallByParent(this.props,d))}}])}();function xC(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function OC(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function SC(t){return SC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},SC(t)}function _C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_C(Object(r),!0).forEach((function(e){PC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_C(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function PC(t,e,r){return e=function(t){var e=function(t,e){if("object"!=SC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=SC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==SC(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AC(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,l=t.interval,u=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(Ga(l)||Wd)return function(t,e){return xC(t,e+1)}(i,"number"==typeof l&&Ga(l)?l:0);var p=[],h="top"===c||"bottom"===c?"width":"height",d=s&&"width"===h?Rv(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},v=function(t,n){var i=Ea(u)?u(t.value,n):t.value;return"width"===h?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return bk(n,r)}(Rv(i,{fontSize:e,letterSpacing:r}),d,f):Rv(i,{fontSize:e,letterSpacing:r})[h]},y=i.length>=2?qa(i[1].coordinate-i[0].coordinate):1,g=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,y,h);return"equidistantPreserveStart"===l?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,l=e.end,u=0,s=1,f=c,p=function(){var e=null==n?void 0:n[u];if(void 0===e)return{v:xC(n,s)};var o,a=u,p=function(){return void 0===o&&(o=r(e,a)),o},h=e.coordinate,d=0===u||OC(t,h,p,f,l);d||(u=0,f=c,s+=1),d&&(f=h+t*(p()/2+i),u+=s)};s<=a.length;)if(o=p())return o.v;return[]}(y,g,v,i,a):(p="preserveStart"===l||"preserveStartEnd"===l?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,l=e.start,u=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-u);a[c-1]=s=jC(jC({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),OC(t,s.tickCoord,(function(){return f}),l,u)&&(u=s.tickCoord-t*(f/2+i),a[c-1]=jC(jC({},s),{},{isShow:!0}))}for(var h=o?c-1:c,d=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-l);a[e]=o=jC(jC({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=jC(jC({},o),{},{tickCoord:o.coordinate});OC(t,o.tickCoord,c,l,u)&&(l=o.tickCoord+t*(c()/2+i),a[e]=jC(jC({},o),{},{isShow:!0}))},v=0;v<h;v++)d(v);return a}(y,g,v,i,a,"preserveStartEnd"===l):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,l=e.end,u=function(e){var n,u=o[e],s=function(){return void 0===n&&(n=r(u,e)),n};if(e===a-1){var f=t*(u.coordinate+t*s()/2-l);o[e]=u=jC(jC({},u),{},{tickCoord:f>0?u.coordinate-f*t:u.coordinate})}else o[e]=u=jC(jC({},u),{},{tickCoord:u.coordinate});OC(t,u.tickCoord,s,c,l)&&(l=u.tickCoord-t*(s()/2+i),o[e]=jC(jC({},u),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return o}(y,g,v,i,a),p.filter((function(t){return t.isShow})))}mC(wC,"displayName","ReferenceArea"),mC(wC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),mC(wC,"renderRect",(function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ea(t)?t(e):ft.createElement(FP,uC({},e,{className:"recharts-reference-area-rect"}))}));var MC=["viewBox"],kC=["viewBox"],CC=["ticks"];function EC(t){return EC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},EC(t)}function TC(){return TC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},TC.apply(this,arguments)}function DC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function IC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DC(Object(r),!0).forEach((function(e){HC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function NC(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function RC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,FC(n.key),n)}}function LC(t,e,r){return e=zC(e),function(t,e){if(e&&("object"===EC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,BC()?Reflect.construct(e,r||[],zC(t).constructor):e.apply(t,r))}function BC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(BC=function(){return!!t})()}function zC(t){return zC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zC(t)}function $C(t,e){return $C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$C(t,e)}function HC(t,e,r){return(e=FC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FC(t){var e=function(t,e){if("object"!=EC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=EC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==EC(e)?e:e+""}var VC=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=LC(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$C(t,e)}(e,Pt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=NC(t,MC),i=this.props,o=i.viewBox,a=NC(i,kC);return!ic(r,o)||!ic(n,a)||!ic(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,i,o,a,c=this.props,l=c.x,u=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,v=c.tickMargin,y=d?-1:1,g=t.tickSize||h,m=Ga(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=u+ +!d*f)-y*g)-y*v,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=l+ +!d*s)-y*g)-y*v,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=l+ +d*s)+y*g)+y*v,a=m;break;default:e=r=t.coordinate,a=(n=(i=u+ +d*f)+y*g)+y*v,o=m}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,l=IC(IC(IC({},Pc(this.props,!1)),Pc(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!a||"bottom"===o&&a);l=IC(IC({},l),{},{x1:e,y1:r+u*i,x2:e+n,y2:r+u*i})}else{var s=+("left"===o&&!a||"right"===o&&a);l=IC(IC({},l),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return ft.createElement("line",TC({},l,{className:Gn("recharts-cartesian-axis-line",_a(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,l=o.tick,u=o.tickFormatter,s=o.unit,f=AC(IC(IC({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=Pc(this.props,!1),v=Pc(l,!1),y=IC(IC({},d),{},{fill:"none"},Pc(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=IC(IC(IC(IC({textAnchor:p,verticalAnchor:h},d),{},{stroke:"none",fill:c},v),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:u});return ft.createElement(Qc,TC({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},fc(i.props,t,r)),a&&ft.createElement("line",TC({},y,o,{className:Gn("recharts-cartesian-axis-tick-line",_a(a,"className"))})),l&&e.renderTickItem(l,m,"".concat(Ea(u)?u(t.value,r):t.value).concat(s||"")))}));return ft.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,l=c.ticks,u=NC(c,CC),s=l;return Ea(o)&&(s=l&&l.length>0?o(this.props):o(u)),n<=0||i<=0||!s||!s.length?null:ft.createElement(Qc,{className:Gn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),$S.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return ft.isValidElement(t)?ft.cloneElement(t,e):Ea(t)?t(e):ft.createElement(fy,TC({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&RC(r.prototype,n),i&&RC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();HC(VC,"displayName","CartesianAxis"),HC(VC,"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 UC=["type","layout","connectNulls","ref"],WC=["key"];function ZC(t){return ZC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZC(t)}function qC(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function YC(){return YC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},YC.apply(this,arguments)}function GC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function XC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?GC(Object(r),!0).forEach((function(e){iE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function KC(t){return function(t){if(Array.isArray(t))return JC(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return JC(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return JC(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JC(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function QC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oE(n.key),n)}}function tE(t,e,r){return e=rE(e),function(t,e){if(e&&("object"===ZC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,eE()?Reflect.construct(e,r||[],rE(t).constructor):e.apply(t,r))}function eE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(eE=function(){return!!t})()}function rE(t){return rE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rE(t)}function nE(t,e){return nE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nE(t,e)}function iE(t,e,r){return(e=oE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oE(t){var e=function(t,e){if("object"!=ZC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ZC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==ZC(e)?e:e+""}var aE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return iE(t=tE(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),iE(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),iE(t,"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,l=n-r,u=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){u=[].concat(KC(i.slice(0,s)),[c-f]);break}var p=u.length%2==0?[0,l]:[l];return[].concat(KC(e.repeat(i,a)),KC(u),p).map((function(t){return"".concat(t,"px")})).join(", ")})),iE(t,"id",Ja("recharts-line-")),iE(t,"pathRef",(function(e){t.mainCurve=e})),iE(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),iE(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nE(t,e)}(e,dt),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=xc(r.children,LO);if(!c)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:GO(t.payload,e)}},u={clipPath:t?"url(#clipPath-".concat(e,")"):null};return ft.createElement(Qc,u,c.map((function(t){return ft.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,l=Pc(this.props,!1),u=Pc(o,!0),s=a.map((function(t,r){var n=XC(XC(XC({key:"dot-".concat(r),r:3},l),u),{},{index:r,cx:t.x,cy:t.y,value:t.value,dataKey:c,payload:t.payload,points:a});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return ft.createElement(Qc,YC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var l=qC(i,UC),u=XC(XC(XC({},Pc(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return ft.createElement(__,YC({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,h=n.height,d=this.state,v=d.prevPoints,y=d.totalLength;return ft.createElement(EP,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(v){var c=v.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=ec(n.x,t.x),o=ec(n.y,t.y);return XC(XC({},t),{},{x:i(a),y:o(a)})}if(f){var l=ec(2*p,t.x),u=ec(h/2,t.y);return XC(XC({},t),{},{x:l(a),y:u(a)})}return XC(XC({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(l,t,e)}var u,s=ec(0,y)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));u=r.getStrokeDasharray(s,y,d)}else u=r.generateSimpleStrokeDasharray(y,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!mx(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,l=e.top,u=e.left,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,v=1===i.length,y=Gn("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=Aa(h)?this.id:h,x=null!==(t=Pc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(jc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return ft.createElement(Qc,{className:y},g||m?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(w)},ft.createElement("rect",{x:g?u:u-s/2,y:m?l:l-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&ft.createElement("clipPath",{id:"clipPath-dots-".concat(w)},ft.createElement("rect",{x:u-M/2,y:l-M/2,width:s+M,height:f+M}))):null,!v&&this.renderCurve(b,w),this.renderErrorBar(b,w),(v||n)&&this.renderDots(b,A,w),(!p||d)&&n_.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(KC(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(KC(n),KC(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(ft.isValidElement(t))r=ft.cloneElement(t,e);else if(Ea(t))r=t(e);else{var n=e.key,i=qC(e,WC),o=Gn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=ft.createElement(UP,YC({key:n},i,{className:o}))}return r}}],n&&QC(r.prototype,n),i&&QC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();iE(aE,"displayName","Line"),iE(aE,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Wd,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),iE(aE,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,l=t.displayedData,u=t.offset,s=e.layout;return XC({points:l.map((function(t,e){var l=GO(t,a);return"horizontal"===s?{x:cS({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:Aa(l)?null:n.scale(l),value:l,payload:t}:{x:Aa(l)?null:r.scale(l),y:cS({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:l,payload:t}})),layout:s},u)}));var cE,lE=["layout","type","stroke","connectNulls","isRange","ref"],uE=["key"];function sE(t){return sE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sE(t)}function fE(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function pE(){return pE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pE.apply(this,arguments)}function hE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hE(Object(r),!0).forEach((function(e){wE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xE(n.key),n)}}function yE(t,e,r){return e=mE(e),function(t,e){if(e&&("object"===sE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,gE()?Reflect.construct(e,r||[],mE(t).constructor):e.apply(t,r))}function gE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(gE=function(){return!!t})()}function mE(t){return mE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mE(t)}function bE(t,e){return bE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bE(t,e)}function wE(t,e,r){return(e=xE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xE(t){var e=function(t,e){if("object"!=sE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==sE(e)?e:e+""}var OE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return wE(t=yE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),wE(t,"id",Ja("recharts-area-")),wE(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ea(e)&&e()})),wE(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ea(e)&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bE(t,e)}(e,dt),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,l=a.points,u=a.dataKey,s=Pc(this.props,!1),f=Pc(c,!0),p=l.map((function(t,r){var n=dE(dE(dE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:u,value:t.value,payload:t.payload,points:l});return e.renderDotItem(c,n)})),h={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return ft.createElement(Qc,pE({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),l=ax(n.map((function(t){return t.y||0})));return Ga(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(ax(r.map((function(t){return t.y||0}))),l)),Ga(l)?ft.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),l=ax(n.map((function(t){return t.x||0})));return Ga(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(ax(r.map((function(t){return t.x||0}))),l)),Ga(l)?ft.createElement("rect",{x:0,y:o<a?o:o-c,width:l+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,l=i.connectNulls,u=i.isRange;i.ref;var s=fE(i,lE);return ft.createElement(Qc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},ft.createElement(__,pE({},Pc(s,!0),{points:t,connectNulls:l,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&ft.createElement(__,pE({},Pc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:t})),"none"!==c&&u&&ft.createElement(__,pE({},Pc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,h=f.prevBaseLine;return ft.createElement(EP,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,l=p.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*l);if(p[r]){var n=p[r],i=ec(n.x,t.x),o=ec(n.y,t.y);return dE(dE({},t),{},{x:i(a),y:o(a)})}return t}));return c=Ga(o)&&"number"==typeof o?ec(h,o)(a):Aa(o)||Wa(o)?ec(h,0)(a):o.map((function(t,e){var r=Math.floor(e*l);if(h[r]){var n=h[r],i=ec(n.x,t.x),o=ec(n.y,t.y);return dE(dE({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(u,c,t,e)}return ft.createElement(Qc,null,ft.createElement("defs",null,ft.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),ft.createElement(Qc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,l=a.prevBaseLine,u=a.totalLength;return o&&n&&n.length&&(!c&&u>0||!mx(c,n)||!mx(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,l=e.xAxis,u=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,v=1===i.length,y=Gn("recharts-area",o),g=l&&l.allowDataOverflow,m=u&&u.allowDataOverflow,b=g||m,w=Aa(h)?this.id:h,x=null!==(t=Pc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(jc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return ft.createElement(Qc,{className:y},g||m?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(w)},ft.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&ft.createElement("clipPath",{id:"clipPath-dots-".concat(w)},ft.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,v?null:this.renderArea(b,w),(n||v)&&this.renderDots(b,A,w),(!p||d)&&n_.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&vE(r.prototype,n),i&&vE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function SE(t){return SE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},SE(t)}function _E(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,CE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function jE(t,e,r){return e=AE(e),function(t,e){if(e&&("object"===SE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,PE()?Reflect.construct(e,r||[],AE(t).constructor):e.apply(t,r))}function PE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(PE=function(){return!!t})()}function AE(t){return AE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},AE(t)}function ME(t,e){return ME=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ME(t,e)}function kE(t,e,r){return(e=CE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CE(t){var e=function(t,e){if("object"!=SE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=SE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==SE(e)?e:e+""}function EE(){return EE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},EE.apply(this,arguments)}function TE(t){var e=t.xAxisId,r=Ik(),n=Nk(),i=Tk(e);return null==i?null:ft.createElement(VC,EE({},i,{className:Gn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return eS(t,!0)}}))}cE=OE,wE(OE,"displayName","Area"),wE(OE,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Wd,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),wE(OE,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Ga(c)&&"number"==typeof c)return c;var l="horizontal"===i?n:r,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]})),wE(OE,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,l=t.bandSize,u=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,h=t.offset,d=r.layout,v=s&&s.length,y=cE.getBaseValue(r,n,i,o),g="horizontal"===d,m=!1,b=p.map((function(t,e){var r;v?r=s[f+e]:(r=GO(t,u),Array.isArray(r)?m=!0:r=[y,r]);var n=null==r[1]||v&&null==GO(t,u);return g?{x:cS({axis:i,ticks:a,bandSize:l,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:cS({axis:o,ticks:c,bandSize:l,entry:t,index:e}),value:r,payload:t}}));return e=v||m?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return g?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):g?o.scale(y):i.scale(y),dE({points:b,baseLine:e,layout:d,isRange:m},h)})),wE(OE,"renderDotItem",(function(t,e){var r;if(ft.isValidElement(t))r=ft.cloneElement(t,e);else if(Ea(t))r=t(e);else{var n=Gn("recharts-area-dot","boolean"!=typeof t?t.className:""),i=e.key,o=fE(e,uE);r=ft.createElement(UP,pE({},o,{key:i,className:n}))}return r}));var DE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),jE(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ME(t,e)}(e,ft.Component),_E(e,[{key:"render",value:function(){return ft.createElement(TE,this.props)}}])}();function IE(t){return IE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IE(t)}function NE(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function RE(t,e,r){return e=BE(e),function(t,e){if(e&&("object"===IE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,LE()?Reflect.construct(e,r||[],BE(t).constructor):e.apply(t,r))}function LE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(LE=function(){return!!t})()}function BE(t){return BE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},BE(t)}function zE(t,e){return zE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zE(t,e)}function $E(t,e,r){return(e=HE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function HE(t){var e=function(t,e){if("object"!=IE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=IE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==IE(e)?e:e+""}function FE(){return FE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},FE.apply(this,arguments)}kE(DE,"displayName","XAxis"),kE(DE,"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});var VE=function(t){var e=t.yAxisId,r=Ik(),n=Nk(),i=Dk(e);return null==i?null:ft.createElement(VC,FE({},i,{className:Gn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return eS(t,!0)}}))},UE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),RE(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zE(t,e)}(e,ft.Component),NE(e,[{key:"render",value:function(){return ft.createElement(VE,this.props)}}])}();function WE(t){return function(t){if(Array.isArray(t))return ZE(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ZE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZE(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZE(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}$E(UE,"displayName","YAxis"),$E(UE,"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});var qE,YE=function(t,e,r,n,i){var o=xc(t,Xk),a=xc(t,lC),c=[].concat(WE(o),WE(a)),l=xc(t,wC),u="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[u]===r&&wM(e.props,"extendDomain")&&Ga(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),l.length){var p="".concat(s,"1"),h="".concat(s,"2");f=l.reduce((function(t,e){if(e.props[u]===r&&wM(e.props,"extendDomain")&&Ga(e.props[p])&&Ga(e.props[h])){var n=e.props[p],i=e.props[h];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return Ga(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},GE={exports:{}};var XE=(qE||(qE=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],c]:t._events[l].push(c):(t._events[l]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var l,u,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];s.fn.apply(s.context,l)}else{var p,h=s.length;for(u=0;u<h;u++)switch(s[u].once&&this.removeListener(t,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,e);break;case 3:s[u].fn.call(s[u].context,e,n);break;case 4:s[u].fn.call(s[u].context,e,n,i);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];s[u].fn.apply(s[u].context,l)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var l=0,u=[],s=c.length;l<s;l++)(c[l].fn!==e||i&&!c[l].once||n&&c[l].context!==n)&&u.push(c[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(GE)),GE.exports),KE=new(kr(XE)),JE="recharts.syncMouseEvents";function QE(t){return QE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QE(t)}function tT(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function eT(t,e,r){return(e=rT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rT(t){var e=function(t,e){if("object"!=QE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=QE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==QE(e)?e:e+""}var nT=function(){return tT((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),eT(this,"activeIndex",0),eT(this,"coordinateList",[]),eT(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,l=t.offset,u=void 0===l?null:l,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=f?f: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(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,l=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,u=n+a+c,s=i+this.offset.top+o/2+l;this.mouseHandlerCallback({pageX:u,pageY:s})}}}])}();function iT(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[OS(e,r,n,i),OS(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function oT(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return iT(e);var c=e.cx,l=e.cy,u=e.innerRadius,s=e.outerRadius,f=e.angle,p=OS(c,l,u,f),h=OS(c,l,s,f);n=p.x,i=p.y,o=h.x,a=h.y}return[{x:n,y:i},{x:o,y:a}]}function aT(t){return aT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aT(t)}function cT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cT(Object(r),!0).forEach((function(e){uT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uT(t,e,r){return e=function(t){var e=function(t,e){if("object"!=aT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=aT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==aT(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sT(t){var e,r,n,i=t.element,o=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,l=t.activePayload,u=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,h=t.chartName,d=null!==(e=i.props.cursor)&&void 0!==e?e:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!d||!a||!c||"ScatterChart"!==h&&"axis"!==o)return null;var v=__;if("ScatterChart"===h)n=c,v=rA;else if("BarChart"===h)n=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,c,u,f),v=FP;else if("radial"===p){var y=iT(c),g=y.cx,m=y.cy,b=y.radius;n={cx:g,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},v=p_}else n={points:oT(p,c,u)},v=__;var w=lT(lT(lT(lT({stroke:"#ccc",pointerEvents:"none"},u),n),Pc(d,!1)),{},{payload:l,payloadIndex:s,className:Gn("recharts-tooltip-cursor",d.className)});return pt(d)?Ot(d,w):St(v,w)}var fT=["item"],pT=["children","className","width","height","style","compact","title","desc"];function hT(t){return hT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hT(t)}function dT(){return dT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dT.apply(this,arguments)}function vT(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||ST(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function gT(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function mT(t,e,r){return e=wT(e),function(t,e){if(e&&("object"===hT(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,bT()?Reflect.construct(e,r||[],wT(t).constructor):e.apply(t,r))}function bT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bT=function(){return!!t})()}function wT(t){return wT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wT(t)}function xT(t,e){return xT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xT(t,e)}function OT(t){return function(t){if(Array.isArray(t))return _T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ST(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ST(t,e){if(t){if("string"==typeof t)return _T(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_T(t,e):void 0}}function _T(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function PT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jT(Object(r),!0).forEach((function(e){AT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function AT(t,e,r){return(e=MT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function MT(t){var e=function(t,e){if("object"!=hT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=hT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hT(e)?e:e+""}var kT={xAxis:["bottom","top"],yAxis:["left","right"]},CT={width:"100%",height:"100%"},ET={x:0,y:0};function TT(t){return t}var DT=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(OT(t),OT(r)):t}),[]);return o.length>0?o:t&&t.length&&Ga(n)&&Ga(i)?t.slice(n,i+1):[]};function IT(t){return"number"===t?[0,"auto"]:void 0}var NT=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=DT(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var l,u,s=null!==(l=c.props.data)&&void 0!==l?l:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?u=rc(void 0===s?a:s,o.dataKey,n):u=s&&s[r]||a[r];return u?[].concat(OT(i),[vS(c,u)]):i}),[])},RT=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,u=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,l=0;l<a;l++){var u=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(qa(s-u)!==qa(f-s)){var h=[];if(qa(f-s)===qa(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+u)/2),h[1]=Math.max(d,(d+u)/2)}else{p=u;var v=f+c[1]-c[0];h[0]=Math.min(s,(v+s)/2),h[1]=Math.max(s,(v+s)/2)}var y=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>y[0]&&t<=y[1]||t>=h[0]&&t<=h[1]){o=n[l].index;break}}else{var g=Math.min(u,f),m=Math.max(u,f);if(t>(g+s)/2&&t<=(m+s)/2){o=n[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,l,c);if(u>=0&&l){var s=l[u]&&l[u].value,f=NT(t,e,u,s),p=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return PT(PT(PT({},n),OS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,l=n.angle;return PT(PT(PT({},n),OS(n.cx,n.cy,c,l)),{},{angle:l,radius:c})}return ET}(r,a,u,i);return{activeTooltipIndex:u,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},LT=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=t.stackOffset,p=tS(u,i);return r.reduce((function(e,r){var h,d=void 0!==r.type.defaultProps?PT(PT({},r.type.defaultProps),r.props):r.props,v=d.type,y=d.dataKey,g=d.allowDataOverflow,m=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=d[o];if(e[O])return e;var S,_,j,P=DT(t.data,{graphicalItems:n.filter((function(t){var e;return(o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o])===O})),dataStartIndex:c,dataEndIndex:l}),A=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&Ga(n)&&Ga(i))return!0}return!1})(d.domain,g,v)&&(S=pS(d.domain,null,g),!p||"number"!==v&&"auto"===b||(j=XO(P,y,"category")));var M=IT(v);if(!S||0===S.length){var k,C=null!==(k=d.domain)&&void 0!==k?k:M;if(y){if(S=XO(P,y,v),"category"===v&&p){var E=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);m&&E?(_=S,S=WA(0,A)):m||(S=dS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(OT(t),[e])}),[]))}else if("category"===v)S=m?S.filter((function(t){return""!==t&&!Aa(t)})):dS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Aa(e)?t:[].concat(OT(t),[e])}),[]);else if("number"===v){var T=function(t,e,r,n,i){var o=e.map((function(e){return JO(t,e,r,i,n)})).filter((function(t){return!Aa(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!i)})),y,i,u);T&&(S=T)}!p||"number"!==v&&"auto"===b||(j=XO(P,y,"category"))}else S=p?WA(0,A):a&&a[O]&&a[O].hasStack&&"number"===v?"expand"===f?[0,1]:uS(a[O].stackGroups,c,l):QO(P,n.filter((function(t){var e=o in t.props?t.props[o]:t.type.defaultProps[o],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),v,u,!0);if("number"===v)S=YE(s,S,O,i,w),C&&(S=pS(C,S,g));else if("category"===v&&C){var D=C;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return PT(PT({},e),{},AT({},O,PT(PT({},d),{},{axisType:i,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(h=d.domain)&&void 0!==h?h:M,isCategorical:p,layout:u})))}),{})},BT=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.children,s="".concat(n,"Id"),f=xc(u,i),p={};return f&&f.length?p=LT(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=DT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),p=f.length,h=tS(u,i),d=-1;return r.reduce((function(t,e){var v,y=(void 0!==e.type.defaultProps?PT(PT({},e.type.defaultProps),e.props):e.props)[o],g=IT("number");return t[y]?t:(d++,h?v=WA(0,p):a&&a[y]&&a[y].hasStack?(v=uS(a[y].stackGroups,c,l),v=YE(s,v,y,i)):(v=pS(g,QO(f,r.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===y&&!i})),"number",u),n.defaultProps.allowDataOverflow),v=YE(s,v,y,i)),PT(PT({},t),{},AT({},y,PT(PT({axisType:i},n.defaultProps),{},{hide:!0,orientation:_a(kT,"".concat(i,".").concat(d%2),null),domain:v,originalDomain:g,isCategorical:h,layout:u}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),p},zT=function(t){var e=t.children,r=t.defaultShowTooltip,n=Oc(e,hM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},$T=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},HT=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,l=r.height,u=r.children,s=r.margin||{},f=Oc(u,hM),p=Oc(u,id),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:PT(PT({},t),{},AT({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:PT(PT({},t),{},AT({},n,_a(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),v=PT(PT({},d),h),y=v.bottom;f&&(v.bottom+=f.props.height||hM.defaultProps.height),p&&e&&(v=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),l=FO({children:i,legendWidth:c});if(l){var u=n||{},s=u.width,f=u.height,p=l.align,h=l.verticalAlign,d=l.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&Ga(t[p]))return qO(qO({},t),{},YO({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&Ga(t[h]))return qO(qO({},t),{},YO({},h,t[h]+(f||0)))}return t}(v,0,r,e));var g=c-v.left-v.right,m=l-v.top-v.bottom;return PT(PT({brushBottom:y},v),{},{width:Math.max(g,0),height:Math.max(m,0)})},FT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},VT=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,i=void 0===n?"axis":n,o=t.validateTooltipEventTypes,a=void 0===o?["axis"]:o,c=t.axisComponents,l=t.legendContent,u=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,l=e.dataEndIndex,u=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=$T(s),v=d.numericAxisName,y=d.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=gc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,d){var b=DT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:l}),w=void 0!==r.type.defaultProps?PT(PT({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(v,"Id")],_=w["".concat(y,"Id")],j=c.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?SO(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):SO());var l=a[c];return PT(PT({},t),{},AT(AT({},n.axisType,l),"".concat(n.axisType,"Ticks"),eS(l)))}),{}),P=j[y],A=j["".concat(y,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?qO(qO({},t.type.defaultProps),t.props):t.props).stackId;if(Xa(n)){var i=e[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null}(r,n[S].stackGroups),k=gc(r.type).indexOf("Bar")>=0,C=hS(P,A),E=[],T=g&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,i=void 0===n?{}:n;if(!i)return{};for(var o={},a=Object.keys(i),c=0,l=a.length;c<l;c++)for(var u=i[a[c]].stackGroups,s=Object.keys(u),f=0,p=s.length;f<p;f++){var h=u[s[f]],d=h.items,v=h.cateAxisId,y=d.filter((function(t){return gc(t.type).indexOf("Bar")>=0}));if(y&&y.length){var g=y[0].type.defaultProps,m=void 0!==g?qO(qO({},g),y[0].props):y[0].props,b=m.barSize,w=m[v];o[w]||(o[w]=[]);var x=Aa(b)?e:b;o[w].push({item:y[0],stackList:y.slice(1),barSize:Aa(x)?void 0:Qa(x,r,0)})}}return o}({barSize:u,stackGroups:n,totalSize:FT(j,y)});if(k){var D,I,N=Aa(O)?h:O,R=null!==(D=null!==(I=hS(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;E=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var l,u=Qa(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,h=o.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*u)>=n&&(h-=(c-1)*u,u=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var d={offset:((n-h)/2|0)-u,size:0};l=o.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+u,size:f?p:e.barSize}},n=[].concat(UO(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var v=Qa(r,n,0,!0);n-2*v-(c-1)*u<=0&&(u=0);var y=(n-2*v-(c-1)*u)/c;y>1&&(y>>=0);var g=a===+a?Math.min(y,a):y;l=o.reduce((function(t,e,r){var n=[].concat(UO(t),[{item:e.item,position:{offset:v+(y+u)*r+(y-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return l}({barGap:f,barCategoryGap:p,bandSize:R!==C?R:C,sizeList:T[_],maxBarSize:N}),R!==C&&(E=E.map((function(t){return PT(PT({},t),{},{position:PT(PT({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:PT(PT({},z(PT(PT({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:C,barPosition:E,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:l}))),{},AT(AT(AT({key:r.key||"item-".concat(d)},v,j[v]),y,j[y]),"animationId",o)),childIndex:(L=r,B=t.children,wc(B).indexOf(L)),item:r})})),m},p=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,l=t.updateId;if(!Sc({props:i}))return null;var s=i.children,p=i.layout,h=i.stackOffset,d=i.data,v=i.reverseStackOrder,y=$T(p),g=y.numericAxisName,m=y.cateAxisName,b=xc(s,r),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i,o=null!==(i=e.type)&&void 0!==i&&i.defaultProps?qO(qO({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var c=o[r],l=t[c]||{hasStack:!1,stackGroups:{}};if(Xa(a)){var u=l.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),l.hasStack=!0,l.stackGroups[a]=u}else l.stackGroups[Ja("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return qO(qO({},t),{},YO({},c,l))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return qO(qO({},e),{},YO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:aS(t,a.items,i)}))}),{})),qO(qO({},e),{},YO({},o,c))}),{})}(d,b,"".concat(g,"Id"),"".concat(m,"Id"),h,v),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return PT(PT({},t),{},AT({},r,BT(i,PT(PT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=HT(PT(PT({},x),{},{props:i,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=u(i,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=tc(j),{tooltipTicks:_=eS(S,!1,!0),orderedTooltipTicks:md(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:hS(S,_)}),A=f(i,PT(PT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:O}));return PT(PT({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},h=function(t){function r(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),AT(o=mT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),AT(o,"accessibilityManager",new nT),AT(o,"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(PT({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},PT(PT({},o.state),{},{legendBBox:t}))))}})),AT(o,"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),AT(o,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return PT({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),AT(o,"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=PT(PT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;Ea(n)&&n(r,t)}})),AT(o,"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?PT(PT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;Ea(n)&&n(r,t)})),AT(o,"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),AT(o,"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),AT(o,"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),AT(o,"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;Ea(r)&&r(e,t)})),AT(o,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&yc[e]?yc[e]:null}(t),n=_a(o.props,"".concat(r));r&&Ea(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),AT(o,"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=PT(PT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;Ea(n)&&n(r,t)}})),AT(o,"handleMouseDown",(function(t){var e=o.props.onMouseDown;Ea(e)&&e(o.getMouseInfo(t),t)})),AT(o,"handleMouseUp",(function(t){var e=o.props.onMouseUp;Ea(e)&&e(o.getMouseInfo(t),t)})),AT(o,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),AT(o,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),AT(o,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),AT(o,"handleDoubleClick",(function(t){var e=o.props.onDoubleClick;Ea(e)&&e(o.getMouseInfo(t),t)})),AT(o,"handleContextMenu",(function(t){var e=o.props.onContextMenu;Ea(e)&&e(o.getMouseInfo(t),t)})),AT(o,"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&KE.emit(JE,o.props.syncId,t,o.eventEmitterSymbol)})),AT(o,"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(PT({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var l=t.chartX,u=t.chartY,s=t.activeTooltipIndex,f=o.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var v=0;v<d.length;v++)if(d[v].value===t.activeLabel){s=v;break}}var y=PT(PT({},h),{},{x:h.left,y:h.top}),g=Math.min(l,y.x+y.width),m=Math.min(u,y.y+y.height),b=d[s]&&d[s].value,w=NT(o.state,o.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:g,y:"horizontal"===r?m:d[s].coordinate}:ET;o.setState(PT(PT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),AT(o,"renderCursor",(function(t){var r,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,l=n.offset,u=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:i,h=o.props.layout,d=t.key||"_recharts-cursor";return ft.createElement(sT,{key:d,activeCoordinate:a,activePayload:c,activeTooltipIndex:u,chartName:e,element:t,isActive:p,layout:h,offset:l,tooltipAxisBandSize:s,tooltipEventType:f})})),AT(o,"renderPolarAxis",(function(t,e,r){var n=_a(t,"type.axisType"),i=_a(o.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?PT(PT({},a),t.props):t.props,l=i&&i[c["".concat(n,"Id")]];return Ot(t,PT(PT({},l),{},{className:Gn(n,l.className),key:t.key||"".concat(e,"-").concat(r),ticks:eS(l,!0)}))})),AT(o,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,l=a.angleAxisMap,u=tc(c),s=tc(l),f=s.cx,p=s.cy,h=s.innerRadius,d=s.outerRadius;return Ot(t,{polarAngles:Array.isArray(n)?n:eS(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:eS(u,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),AT(o,"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),u=FO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=yT(u,fT);return Ot(s,PT(PT({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),AT(o,"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=Oc(r,vv);if(!i)return null;var a=o.state,c=a.isTooltipActive,l=a.activeCoordinate,u=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return Ot(i,{viewBox:PT(PT({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?u:[],coordinate:l,accessibilityLayer:n})})),AT(o,"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return Ot(t,{key:t.key||"_recharts-brush",onChange:nS(o.handleBrushChange,t.props.onChange),data:n,x:Ga(t.props.x)?t.props.x:a.left,y:Ga(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Ga(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),AT(o,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=o.clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?u.xAxisId:f,h=s.yAxisId,d=void 0===h?u.yAxisId:h;return Ot(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[d],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),AT(o,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],l=e.props.key,u=void 0!==e.item.type.defaultProps?PT(PT({},e.item.type.defaultProps),e.item.props):e.item.props,s=u.activeDot,f=PT(PT({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:KO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Pc(s,!1)),sc(s));return c.push(r.renderActiveDot(s,f,"".concat(l,"-activePoint-").concat(o))),i?c.push(r.renderActiveDot(s,PT(PT({},f),{},{cx:i.x,cy:i.y}),"".concat(l,"-basePoint-").concat(o))):a&&c.push(null),c})),AT(o,"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,l=a.tooltipAxis,u=a.activeTooltipIndex,s=a.activeLabel,f=Oc(o.props.children,vv),p=n.props,h=p.points,d=p.isRange,v=p.baseLine,y=void 0!==n.item.type.defaultProps?PT(PT({},n.item.type.defaultProps),n.item.props):n.item.props,g=y.activeDot,m=y.hide,b=y.activeBar,w=y.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:nS(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:nS(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:nS(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=Ot(t,PT(PT({},n.props),O));if(x){if(!(u>=0)){var _,j=(null!==(_=o.getItemByXY(o.state.activeCoordinate))&&void 0!==_?_:{graphicalItem:S}).graphicalItem,P=j.item,A=void 0===P?t:P,M=j.childIndex,k=PT(PT(PT({},n.props),O),{},{activeIndex:M});return[Ot(A,k),null,null]}var C,E;if(l.dataKey&&!l.allowDuplicatedCategory){var T="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());C=rc(h,T,s),E=d&&v&&rc(v,T,s)}else C=null==h?void 0:h[u],E=d&&v&&v[u];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:u;return[Ot(t,PT(PT(PT({},n.props),O),{},{activeIndex:D})),null,null]}if(!Aa(C))return[S].concat(OT(o.renderActivePoints({item:n,activePoint:C,basePoint:E,childIndex:u,isRange:d})))}return d?[S,null,null]:[S,null]})),AT(o,"renderCustomized",(function(t,e,r){return Ot(t,PT(PT({key:"recharts-customized-".concat(r)},o.props),o.state))})),AT(o,"renderMap",{CartesianGrid:{handler:TT,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:TT},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:TT},YAxis:{handler:TT},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Ja("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=wv(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xT(t,e)}(r,Pt),gT(r,[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=Oc(e,vv);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=NT(this.state,r,a,c),u=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:u,y:s}:{y:u,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=PT(PT({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:l,activeCoordinate:f};this.setState(h),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}});return null}},{key:"componentDidUpdate",value:function(t){Ac([Oc(t.children,vv)],[Oc(this.props.children,vv)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Oc(this.props.children,vv);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:i}return i}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap,f=this.getTooltipEventType(),p=RT(this.state,this.props.data,this.props.layout,c);if("axis"!==f&&u&&s){var h=tc(u).scale,d=tc(s).scale,v=h&&h.invert?h.invert(o.chartX):null,y=d&&d.invert?d.invert(o.chartY):null;return PT(PT({},o),{},{xValue:v,yValue:y},p)}return p?PT(PT({},o),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,l=c.angleAxisMap,u=c.radiusAxisMap;if(l&&u){var s=tc(l);return jS({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Oc(t,vv),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{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}),PT(PT({},sc(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){KE.on(JE,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){KE.removeListener(JE,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===gc(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return ft.createElement("defs",null,ft.createElement("clipPath",{id:t},ft.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=vT(e,2),n=r[0],i=r[1];return PT(PT({},t),{},AT({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=vT(e,2),n=r[0],i=r[1];return PT(PT({},t),{},AT({},n,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,l=a.item,u=void 0!==l.type.defaultProps?PT(PT({},l.type.defaultProps),l.props):l.props,s=gc(l.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return $P(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return jS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(NA(a,n)||RA(a,n)||LA(a,n)){var h=HA({graphicalItem:a,activeTooltipItem:n,itemData:u.data}),d=void 0===u.activeIndex?h:u.activeIndex;return{graphicalItem:PT(PT({},a),{},{childIndex:d}),payload:LA(a,n)?u.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!Sc(this))return null;var e,r,n=this.props,i=n.children,o=n.className,a=n.width,c=n.height,l=n.style,u=n.compact,s=n.title,f=n.desc,p=yT(n,pT),h=Pc(p,!1);if(u)return ft.createElement(Ck,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ft.createElement(Dc,dT({},h,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),kc(i,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,h.role=null!==(r=this.props.role)&&void 0!==r?r:"application",h.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},h.onFocus=function(){t.accessibilityManager.focus()});var d=this.parseEventsOfWrapper();return ft.createElement(Ck,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ft.createElement("div",dT({className:Gn("recharts-wrapper",o),style:PT({position:"relative",cursor:"default",width:a,height:c},l)},d,{ref:function(e){t.container=e}}),ft.createElement(Dc,dT({},h,{width:a,height:c,title:s,desc:f,style:CT}),this.renderClipPath(),kc(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();AT(h,"displayName",e),AT(h,"defaultProps",PT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),AT(h,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,l=t.stackOffset,u=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var h=zT(t);return PT(PT(PT({},h),{},{updateId:0},p(PT(PT({props:t},h),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||l!==e.prevStackOffset||!ic(u,e.prevMargin)){var d=zT(t),v={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},y=PT(PT({},RT(e,n,c)),{},{updateId:e.updateId+1}),g=PT(PT(PT({},d),v),y);return PT(PT(PT({},g),p(PT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(!Ac(i,e.prevChildren)){var m,b,w,x,O=Oc(i,hM),S=O&&null!==(m=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,_=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,j=S!==s||_!==f,P=!Aa(n)&&!j?e.updateId:e.updateId+1;return PT(PT({updateId:P},p(PT(PT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:_})}return null})),AT(h,"renderActiveDot",(function(t,e,r){var n;return n=pt(t)?Ot(t,e):Ea(t)?t(e):ft.createElement(UP,e),ft.createElement(Qc,{className:"recharts-active-dot",key:r},n)}));var d=vt((function(t,e){return ft.createElement(h,dT({},t,{ref:e}))}));return d.displayName=h.displayName,d},UT=VT({chartName:"LineChart",GraphicalChild:aE,axisComponents:[{axisType:"xAxis",AxisComp:DE},{axisType:"yAxis",AxisComp:UE}],formatAxisMap:ck}),WT=VT({chartName:"AreaChart",GraphicalChild:OE,axisComponents:[{axisType:"xAxis",AxisComp:DE},{axisType:"yAxis",AxisComp:UE}],formatAxisMap:ck});const ZT=({formatter:n,labelFormatter:i,payload:o,cx:a,cy:c})=>{const l=100;return Number.isFinite(o.value)?t("svg",{x:a-50,y:c-60,width:l,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[i&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:nn.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:i(0,[{payload:o}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(o.value||0):o.value}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:nn.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),e("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:nn.coolElegance(),strokeWidth:"2"})]}):e(r,{})},qT=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Kr({data:r,dataKey:n}),h=qn(),d=qn(),v=s?en({arr:r||[],n:s}):r;let y,g;v?.length?(g=p?nn.mint():nn.coolElegance(),y=v?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=nn.coolElegance(),y=[{[n]:1},{[n]:1}]);const m={cursor:v?.length?"crosshair":"default",...f};return e(Av,{width:i,minHeight:o,id:h,children:t(WT,{data:y,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:g,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:g,stopOpacity:0})]})}),e(UE,{domain:v?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(OE,{type:a,dataKey:n,stroke:g,fill:`url(#${d})`,isAnimationActive:c,activeDot:t=>ZT({labelFormatter:u,formatter:l,...t}),dot:!1}),v?.length&&e(vv,{cursor:!1,content:()=>null})]})})},YT=({isCloseable:t,onClick:r})=>{const n=u({ssr:!1});return e(s,{children:e(f,{label:t?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:e(p,{onClick:r,cursor:t?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:nn.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},GT=({children:t,...r})=>e(h,{border:"solid 1px",borderColor:nn.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),XT=({isSelected:t,children:r,...n})=>e(d,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":nn.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),KT=({children:t,...r})=>e(v,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:nn.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),JT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=mt(0);return n.length>=1&&t(y,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(y,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Bt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(g,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(zt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})},QT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ft,{...i}):r?e(we,{...i}):null},tD=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,name:l,register:u,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:h,onClick:d,...v}=r,g=u?u(l):void 0;return t(m,{as:y,flexDir:"column",isInvalid:Boolean(s),isDisabled:i,isReadOnly:o,isRequired:a,children:[t(y,{onClick:d,w:"full",alignItems:"center",justifyContent:h?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:e(QT,{}),isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...v}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(y,{w:"full",children:s&&e(x,{size:n,children:s})})]})},eD=O(((t,r)=>{const{children:n,uiColor:i,...o}=t;return e(d,{py:"1",px:"2",height:"auto",ref:r,size:"xs",bgColor:`${i}.500 !important`,color:"black",transition:"background-color 0.25s",sx:{"&:not(:disabled):hover, &:not(:disabled):focus, &:not(:disabled)[data-active]":{bgColor:`${i}.300 !important`}},fontSize:"12px",...o,children:n})})),rD=({uiColor:r,isLocalDev:n,enableRefetch:i,setEnableRefetch:o,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[l,u]=mt(!1),[s,f]=mt(!1),[p,h]=mt(!1);wt((()=>{document.body.classList.contains("show-outlines")&&u(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");h(Boolean(t))}),[o]);const d={width:{base:"full",md:"auto"},uiColor:r};return t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t(eD,{onClick:()=>{if(document.querySelector(".tsqd-queries-container")){const t=document.querySelector(".tsqd-minimize-btn");t?.click(),h(!1)}else{const t=document.querySelector(".tsqd-open-btn");t?.click(),h(!0)}},isDisabled:!n,...d,children:[p?"Hide":"Show"," React Query console"]}),t(eD,{onClick:()=>{i?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),o(!i),window.location.reload()},position:"relative",...d,_after:i?{}:{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1",content:'""'},children:[i?"Disable":"Enable"," refetch intervals"]}),e(eD,{onClick:()=>{c(),a(!0)},...d,children:"Show breakpoint debugger"}),t(eD,{onClick:()=>{u(!l),document.body.classList.toggle("show-outlines")},...d,children:[l?"Hide":"Show"," outlines"]}),t(eD,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...d,children:[s?"Hide":"Show"," error boundaries"]})]})]})},nD=({data:r,heading:n,uiColor:i,buttons:o})=>t(y,{flexDir:"column",children:[t(y,{borderBottom:"solid 1px",borderColor:`${i}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(y,{ml:"auto",mb:"5px",gap:"2",flexWrap:"wrap",children:o})]}),0===r.length&&e(p,{w:"full",textAlign:"center",children:"No data"}),e(j,{columns:2,gap:1,children:r.map((r=>t(At,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),iD=({children:n,footer:i,consoleButton:o,isLocalDev:a})=>{const{isOpen:c,onOpen:l,onClose:u}=P(),[s,f]=mt(!1),p=a?"green":"yellow";return wt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?u():l())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,u,l]),wt((()=>{const t=t=>{t.ctrlKey&&"j"===t.key&&f(!s)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[s,f]),t(r,{children:[t(A,{isOpen:c,placement:"right",onClose:u,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(C,{}),e(E,{children:e(y,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"xs",children:e(y,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:u})})}),i({uiColor:p})]})]}),o({uiColor:p,onClose:u,isOpen:c,hideButton:s,onOpen:l})]})},oD=({hideButton:n,enableRefetch:i,onOpen:o,uiColor:a,hasSystemOverride:c,hasFiOverride:l,authBypassEnabled:u})=>{const h=!i||c||l||u,[v,g]=mt(!1);return wt((()=>{window.location.hostname.startsWith("sales-demo-dev.")&&g(!0)}),[]),e(s,{children:!n&&t(D,{position:"fixed",top:"4",right:"4",zIndex:"1000",bgColor:"blackAlpha.800",borderRadius:"md",transition:"background-color 0.25s",className:"dev-console",_hover:{bgColor:"blackAlpha.900"},children:[h&&e(D,{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1"}),e(f,{label:t(y,{flexDir:"column",gap:"0.5",padding:"1",fontFamily:"mono",fontSize:"12px",children:[u&&e(p,{children:"• Auth bypass enabled"}),c&&e(p,{children:"• System override applied"}),l&&e(p,{children:"• FI config override applied"}),!i&&e(p,{children:"• Refetch intervals disabled"}),!h&&t(r,{children:[e(p,{children:"• Open console (ctrl+d)"}),e(p,{children:"• Hide button (ctrl+j)"})]})]}),hasArrow:!0,children:e(d,{"aria-label":"Open",size:"sm",onClick:o,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:v?"☆":"⚙"})})]})})},aD=({uiColor:r})=>t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Links"}),t(I,{listStyleType:"disc",listStylePosition:"inside",children:[e(N,{children:e(R,{href:"https://api.cryptofi-dev.com/v2/docs",target:"api-docs",textTransform:"uppercase",children:"CWS API Documentation"})}),e(N,{children:e(R,{href:"https://cryptofi-core-ui.vercel.app/?path=/docs/intro--docs",target:"storybook",textTransform:"uppercase",children:"Core UI Storybook"})})]})]}),cD=({enableRefetch:t,status:r})=>{let n="inherit";return!1===t&&r?n="gray.500":r||(n="red.600"),e(f,{label:t?null:"Refetch disabled",hasArrow:!0,children:e(D,{width:"fit-content",as:"span",children:e(p,{as:"span",color:n,fontFamily:"body",children:r?"✔":"✘"})})})},lD=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var uD=function(){return uD=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},uD.apply(this,arguments)};function sD(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function fD(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var pD=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},hD={k:1e3,m:1e6,b:1e9},dD=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,l=t.decimalsLimit,u=void 0===l?2:l,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,h=void 0!==p&&p,d=t.prefix,v=void 0===d?"":d,y=t.transformRawValue,g=(void 0===y?function(t){return t}:y)(e);if("-"===g)return g;var m=h?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(pD(v),")")).test(g),w=RegExp("(\\d+)-?".concat(pD(v))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(pD(e),"g");return t.replace(r,"")}(v?x?g.replace(x,"").concat(O):g.replace(v,""):g,n),_=function(t,e){var r=pD(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,fD([n,o],m,!0)),j=_;if(!h){if(m.some((function(t){return t===_.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(pD(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=hD[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(_,o);P&&(j=String(P))}var A=b&&f?"-":"";if(o&&j.includes(o)){var M=_.split(o),k=M[0],C=M[1],E=u&&C?C.slice(0,u):C,T=c?"".concat(o).concat(E):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},vD=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(pD(n)).concat(pD(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},yD=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,l=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var u=new RegExp("^\\d?-".concat(a?"".concat(pD(a),"?"):"","\\d")).test(e),s="."!==r?gD(e,r,u):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f=n||{},p=f.locale,h=f.currency,d=sD(f,["locale","currency"]),v=uD(uD({},d),{minimumFractionDigits:i||0,maximumFractionDigits:20}),y=(n?new Intl.NumberFormat(p,uD(uD({},v),h&&{style:"currency",currency:h})):new Intl.NumberFormat(void 0,v)).formatToParts(Number(s)),g=mD(y,t),m=vD(g,uD({},t)),b=e.slice(-1)===r?r:"",w=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&w&&r&&(g=g.includes(r)?g.replace(RegExp("(\\d+)(".concat(pD(r),")(\\d+)"),"g"),"$1$2".concat(w)):m&&!l?g.replace(m,"".concat(r).concat(w).concat(m)):"".concat(g).concat(r).concat(w)),l&&b?"".concat(g).concat(b).concat(l):m&&b?g.replace(m,"".concat(b).concat(m)):m&&l?g.replace(m,"".concat(b).concat(l)):[g,b,l].join("")},gD=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(pD(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},mD=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var l=e.type,u=e.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?fD(fD([],t,!0),[r],!1):[r,u]:"currency"===l?r?t:fD(fD([],t,!0),[u],!1):"group"===l?c?t:fD(fD([],t,!0),[void 0!==n?n:u],!1):"decimal"===l?void 0!==o&&0===o?t:fD(fD([],t,!0),[void 0!==i?i:u],!1):fD(fD([],t,!0),"fraction"===l?[void 0!==o?u.slice(0,o):u]:[u],!1)}),[""]).join("")},bD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},wD=function(t){return RegExp(/\d/,"gi").test(t)},xD=vt((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,l=t.className,u=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,h=void 0!==p&&p,d=t.maxLength,v=t.value,y=t.onValueChange,g=t.fixedDecimalLength,m=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,_=t.min,j=t.max,P=t.disableGroupSeparators,A=void 0!==P&&P,M=t.disableAbbreviations,k=void 0!==M&&M,C=t.decimalSeparator,E=t.groupSeparator,T=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,R=t.onKeyUp,L=t.transformRawValue,B=t.formatValueOnBlur,z=void 0===B||B,$=sD(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(C&&wD(C))throw new Error("decimalSeparator cannot be a number");if(E&&wD(E))throw new Error("groupSeparator cannot be a number");var H=xt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency,i=sD(e,["locale","currency"]);return(r?new Intl.NumberFormat(r,uD(uD({},i),n&&{currency:n,style:"currency"})):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?uD(uD({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?uD(uD({},t),{groupSeparator:e.value}):"decimal"===e.type?uD(uD({},t),{decimalSeparator:e.value}):t}),bD)}(O)}),[O]),F=C||H.decimalSeparator||"",V=E||H.groupSeparator||"";if(F&&V&&F===V&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var U={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:V,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=mt((function(){return null!=f?yD(uD(uD({},U),{decimalScale:b,value:String(f)})):null!=v?yD(uD(uD({},U),{decimalScale:b,value:String(v)})):""})),q=Z[0],Y=Z[1],G=mt(!1),X=G[0],K=G[1],J=mt(0),Q=J[0],tt=J[1],et=mt(0),rt=et[0],nt=et[1],it=mt(null),ot=it[0],at=it[1],ct=yt(null);gt(e,(function(){return ct.current}));var lt=function(t,e){K(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var l=r.split("");return"Backspace"===n&&i[a]===o&&(l.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(l.splice(a,1),a+=1),{modifiedValue:c=l.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ot,stateValue:q,groupSeparator:V}),n=r.modifiedValue,i=r.cursorPosition,o=dD(uD({value:n},W));if(!(d&&o.replace(/-/g,"").length>d)){if(""===o||"-"===o||o===F)return y&&y(void 0,c,{float:null,formatted:"",value:""}),Y(o),void tt(1);var a=F?o.replace(F,"."):o,l=parseFloat(a),u=yD(uD({value:o},U));if(null!=i){var s=i+(u.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(u),y)y(o,c,{float:l,formatted:u,value:o})}};wt((function(){null==v&&null==f&&Y("")}),[f,v]),wt((function(){X&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,X,rt]);var ut=uD({type:"text",inputMode:"decimal",id:a,name:c,className:l,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;lt(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=dD(uD({value:e},W));if("-"===r||r===F||!r)return Y(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,F,g),i=function(t,e,r){if(void 0===r||""===e||void 0===e||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,F,void 0!==b?b:g),o=F?i.replace(F,"."):i,a=parseFloat(o),l=yD(uD(uD({},U),{value:i}));y&&z&&y(i,c,{float:a,formatted:l,value:i}),Y(l),I&&I(t)},onFocus:function(t){return D&&D(t),q?q.length:0},onKeyDown:function(t){var e=t.key;if(at(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),tt(q.length);var r=null!=v?String(v):void 0,n=F&&r?r.replace(F,"."):r,i=parseFloat(null!=n?n:dD(uD({value:q},W)))||0,a="ArrowUp"===e?i+S:i-S;if(void 0!==_&&a<Number(_)||!o&&a<0)return;if(void 0!==j&&a>Number(j))return;var c=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;lt(String(c?a.toFixed(c):a).replace(".",F))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==q){var n=vD(q,{groupSeparator:V,decimalSeparator:F});if(n&&r&&r>q.length-n.length&&ct.current){var i=q.length-n.length;ct.current.setSelectionRange(i,i)}}R&&R(t)},placeholder:m,disabled:h,value:null==v||"-"===q||F&&q===F?q:yD(uD(uD({},U),{decimalScale:X?void 0:b,value:String(v)})),ref:ct},$);if(u){var st=u;return ft.createElement(st,uD({},ut))}return ft.createElement("input",uD({},ut))}));xD.displayName="CurrencyInput";const OD=O(((r,n)=>{const{size:i,isDisabled:o,isReadOnly:a,isRequired:c,spellCheck:l=!1,name:u,label:s,register:f,errorMessage:p,helperText:h,leftAddon:d,leftElement:v,rightAddon:y,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Jr(i),j=f?f(u):void 0,P="currency"===w?{as:xD,placeholder:"$0.00",prefix:"$",allowNegativeValue:!1,disableAbbreviations:!0}:{};return t(m,{isInvalid:Boolean(p),isDisabled:o,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{size:i,children:s}),t(L,{size:i,children:[d&&e(B,{children:d}),v&&e(z,{w:"auto",ml:"1em",children:v}),e($,{size:i,spellCheck:l,paddingLeft:v&&"2.5em",paddingRight:g&&"2.5em",type:"currency"===w?"text":w,...j,...P,...S,ref:n||j?.ref}),g&&e(H,{w:"auto",mr:"1em",children:g}),y&&e(F,{children:y})]}),p&&e(x,{size:i,children:p}),h&&e(V,{fontSize:_,children:h})]})}));var SD=t=>null==t;var _D=t=>!SD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),jD=t=>{const e=t.constructor&&t.constructor.prototype;return _D(e)&&e.hasOwnProperty("isPrototypeOf")},PD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function AD(t){let e;const r=Array.isArray(t),n="undefined"!=typeof FileList&&t instanceof FileList;if(t instanceof Date)e=new Date(t);else{if(PD&&(t instanceof Blob||n)||!r&&!_D(t))return t;if(e=r?[]:{},r||jD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=AD(t[r]));else e=t}return e}var MD=t=>/^\w*$/.test(t),kD=t=>void 0===t,CD=t=>Array.isArray(t)?t.filter(Boolean):[],ED=t=>CD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),TD=(t,e,r)=>{if(!e||!_D(t))return r;const n=(MD(e)?[e]:ED(e)).reduce(((t,e)=>SD(t)?t:t[e]),t);return kD(n)||n===t?kD(t[e])?r:t[e]:n},DD=t=>"boolean"==typeof t,ID=(t,e,r)=>{let n=-1;const i=MD(e)?[e]:ED(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=_D(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=o,t=t[e]}};const ND="onBlur",RD="onChange",LD="onSubmit",BD="onTouched",zD="all",$D="max",HD="min",FD="maxLength",VD="minLength",UD="pattern",WD="required",ZD="validate",qD=ft.createContext(null);qD.displayName="HookFormContext";const YD="undefined"!=typeof window?st.useLayoutEffect:st.useEffect;var GD=t=>"string"==typeof t,XD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},KD=t=>Array.isArray(t)?t:[t],JD=t=>_D(t)&&!Object.keys(t).length;function QD(t,e){const r=Array.isArray(e)?e:MD(e)?[e]:ED(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=kD(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(_D(n)&&JD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!kD(t[e]))return!1;return!0}(n))&&QD(t,r.slice(0,-1)),t}var tI=t=>t instanceof RegExp,eI=t=>({isOnSubmit:!t||t===LD,isOnBlur:t===ND,isOnChange:t===RD,isOnAll:t===zD,isOnTouch:t===BD});const rI=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=TD(t,r);if(n){const{_f:t,...i}=n;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],r))return!0;if(t.ref&&e(t.ref,t.name))return!0;if(rI(i,e))break}else if(_D(i)&&rI(i,e))break}}};var nI=(t,e,r)=>{const n=KD(TD(t,r));return ID(n,"root",e[r]),ID(t,r,n),t},iI=t=>GD(t);function oI(t,e,r="validate"){if(iI(t)||Array.isArray(t)&&t.every(iI)||DD(t)&&!t)return{type:r,message:iI(t)?t:"",ref:e}}var aI=t=>_D(t)&&!tI(t)?t:{value:t,message:""},cI=async(t,e,r,n,i,o)=>{const{ref:a,refs:c,required:l,maxLength:u,minLength:s,min:f,max:p,pattern:h,validate:d,name:v,valueAsNumber:y,mount:g}=t._f,m=TD(r,v);if(!g||e.has(v))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(DD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(y||(t=>"file"===t.type)(a))&&kD(a.value)&&kD(m)||(t=>{if(!PD)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(a)&&""===a.value||""===m||Array.isArray(m)&&!m.length,S=XD.bind(null,v,n,x),_=(t,e,r,n=FD,i=VD)=>{const o=t?e:r;x[v]={type:t?n:i,message:o,ref:a,...S(t?n:i,o)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=iI(l)?{value:!!l,message:l}:aI(l);if(t&&(x[v]={type:WD,message:e,ref:b,...S(WD,e)},!n))return w(e),x}if(!(O||SD(f)&&SD(p))){let t,e;const r=aI(p),i=aI(f);if(SD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),o=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,l="week"==a.type;GD(r.value)&&m&&(t=c?o(m)>o(r.value):l?m>r.value:n>new Date(r.value)),GD(i.value)&&m&&(e=c?o(m)<o(i.value):l?m<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(m?+m:m);SD(r.value)||(t=n>r.value),SD(i.value)||(e=n<i.value)}if((t||e)&&(_(!!t,r.message,i.message,$D,HD),!n))return w(x[v].message),x}if((u||s)&&!O&&(GD(m)||Array.isArray(m))){const t=aI(u),e=aI(s),r=!SD(t.value)&&m.length>+t.value,i=!SD(e.value)&&m.length<+e.value;if((r||i)&&(_(r,t.message,e.message),!n))return w(x[v].message),x}if(h&&!O&&GD(m)){const{value:t,message:e}=aI(h);if(tI(t)&&!m.match(t)&&(x[v]={type:UD,message:e,ref:a,...S(UD,e)},!n))return w(e),x}if(d)if("function"==typeof d){const t=oI(await d(m,r),b);if(t&&(x[v]={...t,...S(ZD,t.message)},!n))return w(t.message),x}else if(_D(d)){let t={};for(const e in d){if(!JD(t)&&!n)break;const i=oI(await d[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[v]=t))}if(!JD(t)&&(x[v]={ref:b,...t},!n))return x}return w(!0),x},lI=()=>{if("undefined"!=typeof crypto&&crypto.randomUUID)return crypto.randomUUID();const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},uI=(t,e,r={})=>r.shouldFocus||kD(r.shouldFocus)?r.focusName||`${t}.${kD(r.focusIndex)?e:r.focusIndex}.`:"",sI=(t,e)=>[...t,...KD(e)],fI=t=>Array.isArray(t)?t.map((()=>{})):void 0;function pI(t,e,r){return[...t.slice(0,e),...KD(r),...t.slice(e)]}var hI=(t,e,r)=>Array.isArray(t)?(kD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],dI=(t,e)=>[...KD(e),...KD(t)];var vI=(t,e)=>kD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return CD(n).length?n:[]}(t,KD(e).sort(((t,e)=>t-e))),yI=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},gI=(t,e,r)=>(t[e]=r,t);function mI(t){const e=ft.useContext(qD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,l]=ft.useState(r._getFieldArray(n)),u=ft.useRef(r._getFieldArray(n).map(lI)),s=ft.useRef(c),f=ft.useRef(n),p=ft.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),YD((()=>r._subjects.array.subscribe({next:({values:t,name:e})=>{if(e===f.current||!e){const e=TD(t,f.current);Array.isArray(e)&&(l(e),u.current=e.map(lI))}}}).unsubscribe),[r]);const h=ft.useCallback((t=>{p.current=!0,r._setFieldArray(n,t)}),[r,n]);return ft.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!eI(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!eI(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([n]).then((t=>{const e=TD(t.errors,n),i=TD(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?ID(r._formState.errors,n,e):QD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=TD(r._fields,n);!t||!t._f||eI(r._options.reValidateMode).isOnSubmit&&eI(r._options.mode).isOnSubmit||cI(t,r._names.disabled,r._formValues,r._options.criteriaMode===zD,r._options.shouldUseNativeValidation).then((t=>!JD(t)&&r._subjects.state.next({errors:nI(r._formState.errors,t,n)})))}r._subjects.state.next({name:n,values:AD(r._formValues)}),r._names.focus&&rI(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._setValid(),p.current=!1}),[c,n,r]),ft.useEffect((()=>(!TD(r._formValues,n)&&r._setFieldArray(n),()=>{r._options.shouldUnregister||o?r.unregister(n):((t,e)=>{const n=TD(r._fields,t);n&&n._f&&(n._f.mount=e)})(n,!1)})),[n,r,i,o]),{swap:ft.useCallback(((t,e)=>{const i=r._getFieldArray(n);yI(i,t,e),yI(u.current,t,e),h(i),l(i),r._setFieldArray(n,i,yI,{argA:t,argB:e},!1)}),[h,n,r]),move:ft.useCallback(((t,e)=>{const i=r._getFieldArray(n);hI(i,t,e),hI(u.current,t,e),h(i),l(i),r._setFieldArray(n,i,hI,{argA:t,argB:e},!1)}),[h,n,r]),prepend:ft.useCallback(((t,e)=>{const i=KD(AD(t)),o=dI(r._getFieldArray(n),i);r._names.focus=uI(n,0,e),u.current=dI(u.current,i.map(lI)),h(o),l(o),r._setFieldArray(n,o,dI,{argA:fI(t)})}),[h,n,r]),append:ft.useCallback(((t,e)=>{const i=KD(AD(t)),o=sI(r._getFieldArray(n),i);r._names.focus=uI(n,o.length-1,e),u.current=sI(u.current,i.map(lI)),h(o),l(o),r._setFieldArray(n,o,sI,{argA:fI(t)})}),[h,n,r]),remove:ft.useCallback((t=>{const e=vI(r._getFieldArray(n),t);u.current=vI(u.current,t),h(e),l(e),!Array.isArray(TD(r._fields,n))&&ID(r._fields,n,void 0),r._setFieldArray(n,e,vI,{argA:t})}),[h,n,r]),insert:ft.useCallback(((t,e,i)=>{const o=KD(AD(e)),a=pI(r._getFieldArray(n),t,o);r._names.focus=uI(n,t,i),u.current=pI(u.current,t,o.map(lI)),h(a),l(a),r._setFieldArray(n,a,pI,{argA:t,argB:fI(e)})}),[h,n,r]),update:ft.useCallback(((t,e)=>{const i=AD(e),o=gI(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:lI())),h(o),l([...o]),r._setFieldArray(n,o,gI,{argA:t,argB:i},!0,!1)}),[h,n,r]),replace:ft.useCallback((t=>{const e=KD(AD(t));u.current=e.map(lI),h([...e]),l([...e]),r._setFieldArray(n,[...e],(t=>t),{},!0,!1)}),[h,n,r]),fields:ft.useMemo((()=>c.map(((t,e)=>({...t,[i]:u.current[e]||lI()})))),[c,i])}}const bI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=mI({control:n,name:r}),p=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(D,{children:[l.map(((n,o)=>e(D,{children:t(D,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(OD,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(d,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(d,{size:"sm",onClick:()=>{u(p),a&&a(p)},ml:"auto",children:"+"})})]})},wI=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Kr({data:r,dataKey:n}),h=qn(),d=s?en({arr:r||[],n:s}):r;let v,y;d?.length?(y=p?nn.mint():nn.heroicRed(),v=d?.map((t=>({...t,[n]:Number(t[n])||0})))):(y=nn.coolElegance(),v=[{[n]:0},{[n]:0}]);const g={cursor:d?.length?"crosshair":"default",...f};return e(Av,{width:i,minHeight:o,id:h,children:t(UT,{data:v,style:g,children:[e(UE,{domain:["dataMin","dataMax"],hide:!0}),e(aE,{isAnimationActive:c,type:a,dataKey:n,stroke:y,strokeWidth:"2",activeDot:t=>ZT({labelFormatter:u,formatter:l,...t}),dot:!1,scale:"threshold"}),d?.length&&e(vv,{cursor:!1,content:()=>null})]})})},xI=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:l={base:"md",md:"xl"},isDisabledCloseButton:u,bodyProps:s={},contentProps:f={},...p})=>{const h={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},d={...{minWidth:cn},...f};return t(U,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:l,trapFocus:!Qr(),...p,children:[e(W,{}),t(Z,{...d,children:[e(q,{children:i}),e(Y,{isDisabled:u}),e(G,{...h,children:a}),o&&e(X,{borderTop:"solid 1px",borderColor:nn.coolElegance(),justifyContent:"flex-start",children:o})]})]})},OI=t=>{const{isActive:r,children:n,href:i,...o}=t;return e(R,{display:"flex",as:R,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${nn.black(.08)}`:"none",href:i,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&nn.coolElegance(),textDecoration:"none"},...o,children:n},i)};var SI,_I={exports:{}};var jI,PI=(SI||(SI=1,jI=_I,function(t,e){jI.exports=e(ft)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:e=>{e.exports=t}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),o=n.n(r);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}var c=function(t){var r=t.pageClassName,n=t.pageLinkClassName,i=t.page,o=t.selected,c=t.activeClassName,l=t.activeLinkClassName,u=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,h=t.pageLabelBuilder,d=t.rel,v=t.ariaLabel||"Page "+i+(p?" "+p:""),y=null;return o&&(y="page",v=t.ariaLabel||"Page "+i+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==l&&(n=n+" "+l):n=l),e().createElement("li",{className:r},e().createElement("a",a({rel:d,role:f?void 0:"button",className:n,href:f,tabIndex:o?"-1":"0","aria-label":v,"aria-current":y,onKeyPress:s},u(s)),h(i)))};c.propTypes={pageSelectedHandler:o().func.isRequired,selected:o().bool.isRequired,pageClassName:o().string,pageLinkClassName:o().string,activeClassName:o().string,activeLinkClassName:o().string,extraAriaContext:o().string,href:o().string,ariaLabel:o().string,page:o().number.isRequired,getEventListener:o().func.isRequired,pageLabelBuilder:o().func.isRequired,rel:o().string};const l=c;function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,i=t.breakClassName,o=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,l=i||"break";return e().createElement("li",{className:l},e().createElement("a",u({className:o,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabel:o().string,breakClassName:o().string,breakLinkClassName:o().string,breakHandler:o().func.isRequired,getEventListener:o().func.isRequired};const f=s;function p(t){return null!=t?t:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(this,arguments)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(c,t);var r,n,i,o,a=(i=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=g(i);if(o){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return y(t)}(this,t)});function c(t){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),m(y(r=a.call(this,t)),"handlePreviousPage",(function(t){var e=r.state.selected;r.handleClick(t,null,e>0?e-1:void 0,{isPrevious:!0})})),m(y(r),"handleNextPage",(function(t){var e=r.state.selected,n=r.props.pageCount;r.handleClick(t,null,e<n-1?e+1:void 0,{isNext:!0})})),m(y(r),"handlePageSelected",(function(t,e){if(r.state.selected===t)return r.callActiveCallback(t),void r.handleClick(e,null,void 0,{isActive:!0});r.handleClick(e,null,t)})),m(y(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(y(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(y(r),"handleClick",(function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.isPrevious,a=void 0!==o&&o,c=i.isNext,l=void 0!==c&&c,u=i.isBreak,s=void 0!==u&&u,f=i.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var h=r.state.selected,d=r.props.onClick,v=n;if(d){var y=d({index:e,selected:h,nextSelectedPage:n,event:t,isPrevious:a,isNext:l,isBreak:s,isActive:p});if(!1===y)return;Number.isInteger(y)&&(v=y)}void 0!==v&&r.handlePageChange(v)})),m(y(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(y(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(y(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(y(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,i=n.nextPageRel,o=n.prevPageRel,a=n.selectedPageRel;return e-1===t?o:e===t?a:e+1===t?i:void 0})),m(y(r),"pagination",(function(){var t=[],n=r.props,i=n.pageRangeDisplayed,o=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,l=n.breakClassName,u=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(o<=i)for(var h=0;h<o;h++)t.push(r.getPageElement(h));else{var d=i/2,v=i-d;p>o-i/2?d=i-(v=o-p):p<i/2&&(v=i-(d=p));var y,g,m=function(t){return r.getPageElement(t)},b=[];for(y=0;y<o;y++){var w=y+1;if(w<=a)b.push({type:"page",index:y,display:m(y)});else if(w>o-a)b.push({type:"page",index:y,display:m(y)});else if(y>=p-d&&y<=p+(0===p&&i>1?v-1:v))b.push({type:"page",index:y,display:m(y)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(i>0||a>0)){var x=y<p?s.backward:s.forward;g=e().createElement(f,{key:y,breakAriaLabel:x,breakLabel:c,breakClassName:l,breakLinkClassName:u,breakHandler:r.handleBreakClick.bind(null,y),getEventListener:r.getEventListener}),b.push({type:"break",index:y,display:g})}}b.forEach((function(e,r){var n=e;"break"===e.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:e.index,display:m(e.index)}),t.push(n.display)}))}return t})),void 0!==t.initialPage&&void 0!==t.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(t.initialPage,") and forcePage (").concat(t.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=t.initialPage?t.initialPage:t.forcePage?t.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.initialPage,r=t.disableInitialCallback,n=t.extraAriaContext,i=t.pageCount,o=t.forcePage;void 0===e||r||this.callCallback(e),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(i)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(i,"). Did you forget a Math.ceil()?")),void 0!==e&&e>i-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(i-1,").")),void 0!==o&&o>i-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(o," > ").concat(i-1,")."))}},{key:"componentDidUpdate",value:function(t){void 0!==this.props.forcePage&&this.props.forcePage!==t.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(t.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var t=this.state.selected,e=this.props,r=e.pageCount,n=t+e.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var t=this.state.selected-this.props.pageRangeDisplayed;return t<0?0:t}},{key:"getElementHref",value:function(t){var e=this.props,r=e.hrefBuilder,n=e.pageCount,i=e.hrefAllControls;if(r)return i||t>=0&&t<n?r(t+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(t){var e=t===this.state.selected;if(this.props.ariaLabelBuilder&&t>=0&&t<this.props.pageCount){var r=this.props.ariaLabelBuilder(t+1,e);return this.props.extraAriaContext&&!e&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(t){var r=this.state.selected,n=this.props,i=n.pageClassName,o=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,u=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(l,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:i,pageLinkClassName:o,activeClassName:a,activeLinkClassName:c,extraAriaContext:u,href:this.getElementHref(t),ariaLabel:this.ariaLabelBuilder(t),page:t+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var t=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==t)return t?t(this.props):t;var r=this.props,n=r.disabledClassName,i=r.disabledLinkClassName,o=r.pageCount,a=r.className,c=r.containerClassName,l=r.previousLabel,u=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,h=r.prevRel,v=r.nextLabel,y=r.nextClassName,g=r.nextLinkClassName,m=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===o-1,S="".concat(p(u)).concat(x?" ".concat(p(n)):""),_="".concat(p(y)).concat(O?" ".concat(p(n)):""),j="".concat(p(s)).concat(x?" ".concat(p(i)):""),P="".concat(p(g)).concat(O?" ".concat(p(i)):""),A=x?"true":"false",M=O?"true":"false";return e().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},e().createElement("li",{className:S},e().createElement("a",d({className:j,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:h},this.getEventListener(this.handlePreviousPage)),l)),this.pagination(),e().createElement("li",{className:_},e().createElement("a",d({className:P,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":M,"aria-label":m,rel:b},this.getEventListener(this.handleNextPage)),v)))}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t.Component);m(b,"propTypes",{pageCount:o().number.isRequired,pageRangeDisplayed:o().number,marginPagesDisplayed:o().number,previousLabel:o().node,previousAriaLabel:o().string,prevPageRel:o().string,prevRel:o().string,nextLabel:o().node,nextAriaLabel:o().string,nextPageRel:o().string,nextRel:o().string,breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabels:o().shape({forward:o().string,backward:o().string}),hrefBuilder:o().func,hrefAllControls:o().bool,onPageChange:o().func,onPageActive:o().func,onClick:o().func,initialPage:o().number,forcePage:o().number,disableInitialCallback:o().bool,containerClassName:o().string,className:o().string,pageClassName:o().string,pageLinkClassName:o().string,pageLabelBuilder:o().func,activeClassName:o().string,activeLinkClassName:o().string,previousClassName:o().string,nextClassName:o().string,previousLinkClassName:o().string,nextLinkClassName:o().string,disabledClassName:o().string,disabledLinkClassName:o().string,breakClassName:o().string,breakLinkClassName:o().string,extraAriaContext:o().string,ariaLabelBuilder:o().func,eventListener:o().string,renderOnZeroPageCount:o().func,selectedPageRel:o().string}),m(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(t){return t},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),i})()))),_I.exports);const AI=n(kr(PI)),MI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:i,forcePage:o,...a})=>{const c=Math.ceil(t/r);return e(y,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(AI,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:i,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:o,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:nn.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},kI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,l]=mt([]),[u,s]=mt(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(d,{onClick:()=>{if(2===u)return i(void 0),l([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),l((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===u,children:"Previous"}),e(d,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),l((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},CI=({children:t,isEnabled:r=!0,...n})=>{const i=r?Mt`
32
32
  text-wrap: balance;
33
33
  text-wrap: pretty;
34
34
  `:void 0;return e(D,{css:i,...n,children:t})},EI=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:l,register:u,errorMessage:s,helperText:f,label:p,...h}=r,d=Jr(i),v=u?u(l):void 0;return t(m,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[p&&e(b,{size:i,children:p}),e(K,{icon:e(Lt,{}),size:i,...v,...h,children:n}),s&&e(x,{size:i,children:s}),f&&e(V,{fontSize:d,children:f})]})},TI=kt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),DI=({boxSize:t=8,color:r="brand",...n})=>{const i="neutral"===r?nn.sonicSilver():"brand.500";return e(y,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(y,{width:t,height:t,animation:`${TI} 2000ms infinite linear`,children:e(Ce,{boxSize:t,__css:{path:{fill:i}}})})})},II=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[l,u]=mt(!0);return l?t(J,{className:"cf-tag",...c,children:[o&&e(Q,{as:o}),e(tt,{children:n}),i&&e(et,{as:i}),a&&e(rt,{onClick:()=>{a(),u(!1)}})]}):null},NI=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,l;switch(a){case"error":l=Ct;break;case"success":l=Ft;break;case"warning":l=ue,c="yellow";break;case"loading":c="brand",l=lt;break;default:c="brand",l=ue}return t(nt,{as:y,colorScheme:c,justifyContent:"space-between",status:a,children:[t(y,{alignItems:"center",mr:"4",children:[e(it,{children:e(l,{size:"sm"})}),t(D,{children:[e(ot,{children:n}),e(at,{children:r})]})]}),o&&e(ct,{onClick:i})]})},RI=({icon:r,header:n,coloredText:i,values:o,children:a,useCard:c=!0})=>{const l=t(y,{gap:4,alignItems:"flex-start",justifyContent:"space-between",children:[t(y,{gap:4,alignItems:"flex-start",children:[r&&e(y,{backgroundColor:nn.lighthouse(),borderRadius:"md",padding:2,alignItems:"center",justifyContent:"center",height:"fit-content",children:e(r,{boxSize:3})}),t(y,{direction:"column",flex:"1",children:[t(y,{alignItems:"center",marginY:1,children:[e(p,{fontWeight:"500",fontSize:"sm",marginRight:2,children:n}),i&&e(p,{fontSize:"sm",children:i})]}),e(y,{gap:4,children:o.map(((r,n)=>t(y,{direction:"column",children:[e(p,{fontSize:"lg",fontWeight:"600",children:r.value}),r.description&&e(p,{fontSize:"xs",color:"#6e6e6e",children:r.description})]},n)))})]})]}),a]});return c?e(KT,{padding:3,children:l}):l},LI=({children:t,label:r})=>{const n=r?e(y,{padding:"1",flexDir:"column",gap:"2",lineHeight:"normal",fontSize:"sm",children:r}):null;return e(f,{label:n,hasArrow:!0,children:t})},BI=()=>{const t=u({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}};var zI,$I={exports:{}},HI=$I.exports;