@cryptofi/core-ui 2.0.2 → 2.0.4
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 +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var Ar={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
|
|
|
28
28
|
object-assign
|
|
29
29
|
(c) Sindre Sorhus
|
|
30
30
|
@license MIT
|
|
31
|
-
*/function M_(){if(h_)return d_;h_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return d_=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),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))e.call(o,l)&&(c[l]=o[l]);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},d_}function k_(){if(v_)return y_;v_=1;return y_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function E_(){return m_?g_:(m_=1,g_=Function.call.bind(Object.prototype.hasOwnProperty))}function C_(){if(w_)return b_;w_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=k_(),r={},n=E_();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,u){if("production"!==process.env.NODE_ENV)for(var l in i)if(n(i,l)){var s;try{if("function"!=typeof i[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[l](o,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` 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=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},b_=i}function T_(){if(O_)return x_;O_=1;var t=A_(),e=M_(),r=k_(),n=E_(),i=C_(),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){}}),x_=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,n,i,o,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,i,o,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:y((function(t,e,r,n,i){var o=t[e];return c(o)?null:new h("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new h("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:y((function(t,e,r,n,i){return m(t[e])?null:new h("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,i,o,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=e[i],l=b(u);if("object"!==l)return new h("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,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 y((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")}))},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 y((function(e,i,o,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,i,o,a){var c=e[n],u=b(c);if("object"!==u)return new h("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return g(i,o,a,l,w(s));var f=s(c,l,i,o,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return y((function(i,o,a,c,u){var l=i[o],s=b(l);if("object"!==s)return new h("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return g(a,c,u,p,w(d));if(!d)return new h("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=d(l,p,a,c,u+"."+p,r);if(y)return y}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,l,s,p,d){if(l=l||f,p=p||c,d!==r){if(u){var y=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 y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. 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[v]=!0,n++)}}return null==a[c]?i?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function v(t){return y((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new h("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){return new h((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&&(l&&t[l]||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 h.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},x_}function D_(){if(__)return S_;__=1;var t=k_();function e(){}function r(){}return r.resetWarningCache=e,S_=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 I_(){if(j_)return u_.exports;if(j_=1,"production"!==process.env.NODE_ENV){var t=A_();u_.exports=T_()(t.isElement,true)}else u_.exports=D_()();return u_.exports}var N_=dr(I_()),R_=Object.getOwnPropertyNames,L_=Object.getOwnPropertySymbols,B_=Object.prototype.hasOwnProperty;function z_(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function $_(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 H_(t){return R_(t).concat(L_(t))}var F_=Object.hasOwn||function(t,e){return B_.call(t,e)};function U_(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var V_="_owner",W_=Object.getOwnPropertyDescriptor,Z_=Object.keys;function q_(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 Y_(t,e){return U_(t.getTime(),e.getTime())}function X_(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 u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=n.value,p=f[0],d=f[1],h=i.value,y=h[0],v=h[1];l||o[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(d,v,p,y,t,e,r))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function K_(t,e,r){var n,i=Z_(t),o=i.length;if(Z_(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===V_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!F_(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function G_(t,e,r){var n,i,o,a=H_(t),c=a.length;if(H_(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===V_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!F_(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=W_(t,n),o=W_(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function J_(t,e){return U_(t.valueOf(),e.valueOf())}function Q_(t,e){return t.source===e.source&&t.flags===e.flags}function tj(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(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[l]=!0),l++;if(!u)return!1}return!0}function ej(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 rj="[object Arguments]",nj="[object Boolean]",ij="[object Date]",oj="[object Map]",aj="[object Number]",cj="[object Object]",uj="[object RegExp]",lj="[object Set]",sj="[object String]",fj=Array.isArray,pj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,dj=Object.assign,hj=Object.prototype.toString.call.bind(Object.prototype.toString);var yj=vj();function vj(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,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?G_:q_,areDatesEqual:Y_,areMapsEqual:n?z_(X_,G_):X_,areObjectsEqual:n?G_:K_,arePrimitiveWrappersEqual:J_,areRegExpsEqual:Q_,areSetsEqual:n?z_(tj,G_):tj,areTypedArraysEqual:n?G_:ej};if(r&&(i=dj({},i,r(i))),e){var o=$_(i.areArraysEqual),a=$_(i.areMapsEqual),c=$_(i.areObjectsEqual),u=$_(i.areSetsEqual);i=dj({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return i(t,l,s);if(fj(t))return e(t,l,s);if(null!=pj&&pj(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=hj(t);return p===ij?r(t,l,s):p===uj?a(t,l,s):p===oj?n(t,l,s):p===lj?c(t,l,s):p===cj?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):p===rj?i(t,l,s):(p===nj||p===aj||p===sj)&&o(t,l,s)}}(u),s=i?i(l):(e=l,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(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,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:l,createState:o,equals:s,strict:c})}function gj(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 mj(t){return mj="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},mj(t)}function bj(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 wj(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 wj(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 wj(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 xj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=bj(n),o=i[0],a=i.slice(1);return"number"==typeof o?void gj(r.bind(null,a),o):(r(o),void gj(r.bind(null,a)))}"object"===mj(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 Oj(t){return Oj="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},Oj(t)}function Sj(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 _j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sj(Object(r),!0).forEach((function(e){jj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Oj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Oj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Oj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}vj({strict:!0}),vj({circular:!0}),vj({circular:!0,strict:!0}),vj({createInternalComparator:function(){return U_}}),vj({strict:!0,createInternalComparator:function(){return U_}}),vj({circular:!0,createInternalComparator:function(){return U_}}),vj({circular:!0,createInternalComparator:function(){return U_},strict:!0});var Pj=function(t){return t},Aj=function(t,e){return Object.keys(e).reduce((function(r,n){return _j(_j({},r),{},jj({},n,t(n,e[n])))}),{})},Mj=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(",")},kj="production"!==process.env.NODE_ENV,Ej=function(t,e,r,n,i,o,a,c){if(kj&&"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 u=[r,n,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Cj(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||Dj(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 Tj(t){return function(t){if(Array.isArray(t))return Ij(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Dj(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 Dj(t,e){if(t){if("string"==typeof t)return Ij(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)?Ij(t,e):void 0}}function Ij(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 Nj=1e-4,Rj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Lj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Bj=function(t,e){return function(r){var n=Rj(t,e);return Lj(n,r)}},zj=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 u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Cj(u,4);n=l[0],i=l[1],o=l[2],a=l[3]}else Ej(!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)}Ej([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=Bj(n,o),d=Bj(i,a),h=(s=n,f=o,function(t){var e=Rj(s,f),r=[].concat(Tj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Lj(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=h(n);if(Math.abs(o-r)<Nj||a<Nj)return d(n);n=(e=n-o/a)>1?1:e<0?0:e}return d(n)};return y.isStepper=!1,y},$j=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 zj(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)<Nj&&Math.abs(o)<Nj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return zj(n);Ej(!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:(Ej(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Hj(t){return Hj="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},Hj(t)}function Fj(t){return function(t){if(Array.isArray(t))return Yj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||qj(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 Uj(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 Vj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uj(Object(r),!0).forEach((function(e){Wj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Hj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Hj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Hj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zj(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||qj(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 qj(t,e){if(t){if("string"==typeof t)return Yj(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)?Yj(t,e):void 0}}function Yj(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 Xj=function(t,e,r){return t+(e-t)*r},Kj=function(t){return t.from!==t.to},Gj=function t(e,r,n){var i=Aj((function(t,r){if(Kj(r)){var n=Zj(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return Vj(Vj({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Aj((function(t,e){return Kj(e)?Vj(Vj({},e),{},{velocity:Xj(e.velocity,i[t].velocity,n),from:Xj(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},Jj=function(t,e,r,n,i){var o,a,c,u,l=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Vj(Vj({},r),{},Wj({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Vj(Vj({},r),{},Wj({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=Gj(r,f,o),i(Vj(Vj(Vj({},t),e),Aj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(Kj).length&&(p=requestAnimationFrame(d))}:function(o){u||(u=o);var a=(o-u)/n,c=Aj((function(t,e){return Xj.apply(void 0,Fj(e).concat([r(a)]))}),s);if(i(Vj(Vj(Vj({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var l=Aj((function(t,e){return Xj.apply(void 0,Fj(e).concat([r(1)]))}),s);i(Vj(Vj(Vj({},t),e),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function Qj(t){return Qj="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},Qj(t)}var tP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function eP(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 rP(t){return function(t){if(Array.isArray(t))return nP(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 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)||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 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 iP(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?iP(Object(r),!0).forEach((function(e){aP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aP(t,e,r){return(e=uP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cP(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,uP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uP(t){var e=function(t,e){if("object"!==Qj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Qj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qj(e)?e:String(e)}function lP(t,e){return lP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lP(t,e)}function sP(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=dP(t);if(e){var i=dP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return fP(this,r)}}function fP(t,e){if(e&&("object"===Qj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pP(t)}function pP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dP(t){return dP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dP(t)}var hP=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&&lP(t,e)}(r,dt);var e=sP(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,u=o.from,l=o.to,s=o.steps,f=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(pP(i)),i.changeStyle=i.changeStyle.bind(pP(i)),!a||p<=0)return i.state={style:{}},"function"==typeof f&&(i.state={style:l}),fP(i);if(s&&s.length)i.state={style:s[0].style};else if(u){if("function"==typeof f)return i.state={style:u},fP(i);i.state={style:c?aP({},c,u):u}}else i.state={style:{}};return i}return cP(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,u=this.state.style;if(n)if(r){if(!(yj(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||o?c:t.to;if(this.state&&u){var f={style:i?aP({},i,s):s};(i&&u[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(oP(oP({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?aP({},i,a):a};this.state&&u&&(i&&u[i]!==a||!i&&u!==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,u=t.onAnimationStart,l=Jj(r,n,$j(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},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,u=void 0===c?0:c;return this.manager.start([i].concat(rP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(rP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var d=Mj(p,o,c),h=oP(oP(oP({},f.style),u),{},{transition:d});return[].concat(rP(t),[h,o,s]).filter(Pj)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=xj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=n?aP({},n,i):i,p=Mj(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=eP(t,tP),o=pt.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 xt(t,oP(oP({},i),{},{style:oP(oP({},n),a),className:o}))};return 1===o?c(pt.only(e)):st.createElement("div",null,pt.map(e,(function(t){return c(t)})))}}]),r}();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)}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)}function gP(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return mP(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 mP(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 mP(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 bP(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 wP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bP(Object(r),!0).forEach((function(e){xP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=yP(t)||!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:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}hP.displayName="Animate",hP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},hP.propTypes={from:N_.oneOfType([N_.object,N_.string]),to:N_.oneOfType([N_.object,N_.string]),attributeName:N_.string,duration:N_.number,begin:N_.number,easing:N_.oneOfType([N_.string,N_.func]),steps:N_.arrayOf(N_.shape({duration:N_.number.isRequired,style:N_.object.isRequired,easing:N_.oneOfType([N_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),N_.func]),properties:N_.arrayOf("string"),onAnimationEnd:N_.func})),children:N_.oneOfType([N_.node,N_.func]),isActive:N_.bool,canBegin:N_.bool,onAnimationEnd:N_.func,shouldReAnimate:N_.bool,onAnimationStart:N_.func,onAnimationReStart:N_.func};var OP=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=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(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\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(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),o+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\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(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").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(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").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},SP=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 u=Math.min(i,i+a),l=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},_P={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jP=function(t){var e=wP(wP({},_P),t),r=yt(),n=gP(gt(-1),2),i=n[0],o=n[1];bt((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,u=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var g=Dn("recharts-rectangle",f);return v?st.createElement(hP,{canBegin:i>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return st.createElement(hP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:y,easing:p},st.createElement("path",vP({},lc(e,!0),{className:g,d:OP(a,c,n,o,s),ref:r})))})):st.createElement("path",vP({},lc(e,!0),{className:g,d:OP(a,c,u,l,s)}))};function PP(){return PP=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},PP.apply(this,arguments)}var AP=function(t){var e=t.cx,r=t.cy,n=t.r,i=Dn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?st.createElement("circle",PP({},lc(t,!1),qa(t),{className:i,cx:e,cy:r,r:n})):null};function MP(t){return MP="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},MP(t)}var kP=["x","y","top","left","width","height","className"];function EP(){return EP=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},EP.apply(this,arguments)}function CP(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 TP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=MP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=MP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==MP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DP(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 IP,NP,RP,LP,BP=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},zP=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,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,d=t.className,h=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?CP(Object(r),!0).forEach((function(e){TP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:u,width:s,height:p},DP(t,kP));return Da(r)&&Da(i)&&Da(s)&&Da(p)&&Da(a)&&Da(u)?st.createElement("path",EP({},lc(h,!0),{className:Dn("recharts-cross",d),d:BP(r,i,s,p,a,u)})):null};var $P,HP,FP=function(){if(LP)return RP;LP=1;var t=No(),e=function(){if(NP)return IP;NP=1;var t=yp()(Object.getPrototypeOf,Object);return IP=t}(),r=Ro(),n=Function.prototype,i=Object.prototype,o=n.toString,a=i.hasOwnProperty,c=o.call(Object);return RP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var i=e(n);if(null===i)return!0;var u=a.call(i,"constructor")&&i.constructor;return"function"==typeof u&&u instanceof u&&o.call(u)==c}}(),UP=dr(FP);var VP=dr(function(){if(HP)return $P;HP=1;var t=No(),e=Ro();return $P=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());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)}function ZP(){return ZP=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},ZP.apply(this,arguments)}function qP(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return YP(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 YP(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 YP(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 KP(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){GP(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 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}var JP,QP,tA,eA,rA,nA,iA,oA,aA=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")},cA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uA=function(t){var e=KP(KP({},cA),t),r=yt(),n=qP(gt(-1),2),i=n[0],o=n[1];bt((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,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=Dn("recharts-trapezoid",f);return y?st.createElement(hP,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return st.createElement(hP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},st.createElement("path",ZP({},lc(e,!0),{className:v,d:aA(c,u,n,o,a),ref:r})))})):st.createElement("g",null,st.createElement("path",ZP({},lc(e,!0),{className:v,d:aA(a,c,u,l,s)})))},lA=["option","shapeType","propTransformer","activeClassName","isActive"];function sA(t){return sA="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},sA(t)}function fA(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 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 dA(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){hA(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 hA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=sA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yA(t,e){return dA(dA({},e),t)}function vA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return st.createElement(jP,r);case"trapezoid":return st.createElement(uA,r);case"sector":return st.createElement(XS,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return st.createElement(nl,r);break;default:return null}}function gA(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?yA:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=fA(t,lA);if(ft(r))e=xt(r,dA(dA({},l),function(t){return ft(t)?t.props:t}(r)));else if(ya(r))e=r(l);else if(UP(r)&&!VP(r)){var s=o(r,l);e=st.createElement(vA,{shapeType:n,elementProps:s})}else{var f=l;e=st.createElement(vA,{shapeType:n,elementProps:f})}return u?st.createElement(Rc,{className:c},e):e}function mA(t,e){return null!=e&&"trapezoids"in t.props}function bA(t,e){return null!=e&&"sectors"in t.props}function wA(t,e){return null!=e&&"points"in t.props}function xA(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 OA(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function SA(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function _A(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return mA(t,e)?r="trapezoids":bA(t,e)?r="sectors":wA(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return mA(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:bA(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:wA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=ex(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return mA(t,e)?r=xA:bA(t,e)?r=OA:wA(t,e)&&(r=SA),r}(r,e);return n(t,e)})),u=r.props[i].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function jA(){if(eA)return tA;eA=1;var t=ty(),e=1/0;return tA=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 PA(){if(nA)return rA;nA=1;var t=function(){if(QP)return JP;QP=1;var t=Math.ceil,e=Math.max;return JP=function(r,n,i,o){for(var a=-1,c=e(t((n-r)/(i||1)),0),u=Array(c);c--;)u[o?c:++a]=r,r+=i;return u}}(),e=Qd(),r=jA();return rA=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 AA=function(){if(oA)return iA;oA=1;var t=PA()();return iA=t}(),MA=dr(AA);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 EA(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?EA(Object(r),!0).forEach((function(e){TA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):EA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function TA(t,e,r){return e=function(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"===e?String:Number)(t)}(t,"string");return"symbol"==kA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var DA=["Webkit","Moz","O","ms"];function IA(t){return IA="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},IA(t)}function NA(){return NA=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},NA.apply(this,arguments)}function RA(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 LA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?RA(Object(r),!0).forEach((function(e){UA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BA(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,VA(n.key),n)}}function zA(t,e,r){return e=HA(e),function(t,e){if(e&&("object"===IA(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,$A()?Reflect.construct(e,r||[],HA(t).constructor):e.apply(t,r))}function $A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($A=function(){return!!t})()}function HA(t){return HA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},HA(t)}function FA(t,e){return FA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},FA(t,e)}function UA(t,e,r){return(e=VA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VA(t){var e=function(t,e){if("object"!=IA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=IA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==IA(e)?e:e+""}var WA,ZA,qA,YA,XA=function(t){return t.changedTouches&&!!t.changedTouches.length},KA=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),UA(r=zA(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)})),UA(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),UA(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()})),UA(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),UA(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),UA(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),UA(r,"handleSlideDragStart",(function(t){var e=XA(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&&FA(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,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(i,u),f=e.getIndexInRange(i,l);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=TO(r[t],i,t);return ya(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,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-i,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-i));var d=this.getIndex({startX:n+p,endX:i+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=XA(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,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),h[n]=a+y;var v=this.getIndex(h),g=v.startIndex,m=v.endIndex;this.setState(UA(UA({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.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(v))}))}},{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],u=i.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(UA({},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 st.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,u=pt.only(a);return u?st.cloneElement(u,{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,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,y=Math.max(t,this.props.x),v=LA(LA({},lc(this.props,!1)),{},{x:y,y:c,width:u,height:l}),g=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[h])||void 0===i?void 0:i.name);return st.createElement(Rc,{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,v))}},{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,u=Math.max(Math.abs(e-t)-a,0);return st.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:u,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,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return st.createElement(Rc,{className:"recharts-brush-texts"},st.createElement(Yy,NA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+i/2},s),this.getTextOfTick(e)),st.createElement(Yy,NA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+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,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,d=l.isSlideMoving,h=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!Da(i)||!Da(o)||!Da(a)||!Da(c)||a<=0||c<=0)return null;var v,g,m,b,w=Dn("recharts-brush",r),x=1===st.Children.count(n),O=(g="none",m=(v="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=DA.reduce((function(t,e){return CA(CA({},t),{},TA({},e+m,g))}),{}))[v]=g,b);return st.createElement(Rc,{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||d||h||y||u)&&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 st.createElement(st.Fragment,null,st.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),st.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),st.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 st.isValidElement(t)?st.cloneElement(t,r):ya(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,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return LA({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,u=Sv().domain(MA(0,c)).range([i,i+o-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=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:l}}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&&BA(r.prototype,n),i&&BA(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();UA(KA,"displayName","Brush"),UA(KA,"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 GA,JA,QA,tM,eM=function(){if(YA)return qA;YA=1;var t=ps(),e=Ep(),r=function(){if(ZA)return WA;ZA=1;var t=Wd();return WA=function(e,r){var n;return t(e,(function(t,e,i){return!(n=r(t,e,i))})),!!n}}(),n=Co(),i=Qd();return qA=function(o,a,c){var u=n(o)?t:r;return c&&i(o,a,c)&&(a=void 0),u(o,e(a,3))}}(),rM=dr(eM),nM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var iM,oM,aM,cM,uM,lM,sM=function(){if(tM)return QA;tM=1;var t=function(){if(JA)return GA;JA=1;var t=Kd();return GA=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},GA}(),e=Vd(),r=Ep();return QA=function(n,i){var o={};return i=r(i,3),e(n,(function(e,r,n){t(o,r,i(e,r,n))})),o},QA}(),fM=dr(sM);var pM=function(){if(lM)return uM;lM=1;var t=(oM||(oM=1,iM=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}),iM),e=function(){if(cM)return aM;cM=1;var t=Wd();return aM=function(e,r){var n=!0;return t(e,(function(t,e,i){return n=!!r(t,e,i)})),n}}(),r=Ep(),n=Co(),i=Qd();return uM=function(o,a,c){var u=n(o)?t:e;return c&&i(o,a,c)&&(a=void 0),u(o,r(a,3))}}(),dM=dr(pM),hM=["x","y"];function yM(t){return yM="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},yM(t)}function vM(){return vM=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},vM.apply(this,arguments)}function gM(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 mM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gM(Object(r),!0).forEach((function(e){bM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=yM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=yM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wM(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 xM(t,e){var r=t.x,n=t.y,i=wM(t,hM),o="".concat(r),a=parseInt(o,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||i.height),s=parseInt(l,10),f="".concat(e.width||i.width),p=parseInt(f,10);return mM(mM(mM(mM(mM({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function OM(t){return st.createElement(gA,vM({shapeType:"rectangle",propTransformer:xM,activeClassName:"recharts-active-bar"},t))}var SM,_M=["value","background"];function jM(t){return jM="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},jM(t)}function PM(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 AM(){return AM=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},AM.apply(this,arguments)}function MM(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 kM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?MM(Object(r),!0).forEach((function(e){NM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):MM(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,RM(n.key),n)}}function CM(t,e,r){return e=DM(e),function(t,e){if(e&&("object"===jM(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,TM()?Reflect.construct(e,r||[],DM(t).constructor):e.apply(t,r))}function TM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(TM=function(){return!!t})()}function DM(t){return DM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},DM(t)}function IM(t,e){return IM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},IM(t,e)}function NM(t,e,r){return(e=RM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RM(t){var e=function(t,e){if("object"!=jM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=jM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==jM(e)?e:e+""}var LM=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 NM(t=CM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),NM(t,"id",Ra("recharts-bar-")),NM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),NM(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&&IM(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=lc(this.props,!1);return t&&t.map((function(t,r){var u=r===o,l=u?a:n,s=kM(kM(kM({},c),t),{},{isActive:u,option:l,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return st.createElement(Rc,AM({className:"recharts-bar-rectangle"},Ya(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)}),st.createElement(OM,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,u=e.animationId,l=this.state.prevData;return st.createElement(hP,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=l&&l[e];if(r){var o=za(r.x,t.x),a=za(r.y,t.y),c=za(r.width,t.width),u=za(r.height,t.height);return kM(kM({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=za(0,t.height)(i);return kM(kM({},t),{},{y:t.y+t.height-s,height:s})}var f=za(0,t.width)(i);return kM(kM({},t),{},{width:f})}));return st.createElement(Rc,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&&ex(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=lc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=PM(e,_M);if(!a)return null;var u=kM(kM(kM(kM(kM({},c),{},{fill:"#eee"},a),o),Ya(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return st.createElement(OM,AM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},u))}))}},{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=ic(r.children,wO);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:TO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Rc,s,c.map((function(t){return st.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{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,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=Dn("recharts-bar",n),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,g=y||v,m=fa(p)?this.id:p;return st.createElement(Rc,{className:h},y||v?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(m)},st.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,st.createElement(Rc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||d)&&$S.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&&EM(r.prototype,n),i&&EM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function BM(t){return BM="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},BM(t)}function zM(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,UM(n.key),n)}}function $M(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 HM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$M(Object(r),!0).forEach((function(e){FM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$M(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function FM(t,e,r){return(e=UM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UM(t){var e=function(t,e){if("object"!=BM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=BM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==BM(e)?e:e+""}SM=LM,NM(LM,"displayName","Bar"),NM(LM,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Mh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),NM(LM,"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,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,d=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(!d)return null;var h=e.layout,y=r.type.defaultProps,v=void 0!==y?kM(kM({},y),r.props):r.props,g=v.dataKey,m=v.children,b=v.minPointSize,w="horizontal"===h?a:o,x=l?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=ic(m,fy),_=f.map((function(t,e){var n,f,p,y,v,m;l?n=function(t,e){if(!e||2!==e.length||!Da(e[0])||!Da(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(!Da(t[0])||t[0]<r)&&(i[0]=r),(!Da(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(l[s+e],x):(n=TO(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?aO(0,"minPointSize callback function received a value with type of ".concat(yM(r),". Currently only numbers are supported.")):aO()),e)}}(b,SM.defaultProps.minPointSize)(n[1],e);if("horizontal"===h){var _,j=[a.scale(n[0]),a.scale(n[1])],P=j[0],A=j[1];f=WO({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,y=d.size;var M=P-A;if(v=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var k=Ca(v||w)*(Math.abs(w)-Math.abs(v));p-=k,v+=k}}else{var E=[o.scale(n[0]),o.scale(n[1])],C=E[0],T=E[1];if(f=C,p=WO({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:t,index:e}),y=T-C,v=d.size,m={x:o.x,y:p,width:o.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=Ca(y||w)*(Math.abs(w)-Math.abs(y))}return kM(kM(kM({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[JO(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return kM({data:_,layout:h},p)}));var VM=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=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(u,LM);return l.reduce((function(o,a){var u,l,p,d,h,y=e[a],v=y.orientation,g=y.domain,m=y.padding,b=void 0===m?{}:m,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=g[1]-g[0],_=1/0,j=y.categoricalDomain.sort();if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=P*A/2),"no-gap"===y.padding){var M=La(t.barCategoryGap,P*A),k=P*A/2;u=k-M-(k-M)/A*M}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var E=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:xv(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Wg(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Sv(),realScaleType:"point"}:"category"===i?{scale:xv(),realScaleType:"band"}:{scale:Wg(),realScaleType:"linear"};if(ha(n)){var c="scale".concat(Uc(n));return{scale:(Rw[c]||Sv)(),realScaleType:Rw[c]?c:"point"}}return ya(n)?{scale:n}:{scale:Sv(),realScaleType:"point"}}(y,i,f),C=E.scale,T=E.realScaleType;C.domain(g).range(l),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])-HO,o=Math.max(n[0],n[1])+HO,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(C);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 u=t.domain();if(!u.length)return null;var l=rO(u,i,a);return t.domain([Xw(l),Uw(l)]),{niceTicks:l}}if(i&&"number"===n){var s=t.domain();return{niceTicks:nO(s,i,a)}}return null}(C,HM(HM({},y),{},{realScaleType:T}));"xAxis"===n?(h="top"===v&&!w||"bottom"===v&&w,p=r.left,d=s[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!w||"right"===v&&w,p=s[O]-h*y.width,d=r.top);var I=HM(HM(HM({},y),D),{},{realScaleType:T,x:p,y:d,scale:C,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=KO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,HM(HM({},o),{},FM({},a,I))}),{})},WM=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)}},ZM=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&&zM(e.prototype,r),n&&zM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();FM(ZM,"EPS",1e-4);var qM=function(t){var e=Object.keys(t).reduce((function(e,r){return HM(HM({},e),{},FM({},r,ZM.create(t[r])))}),{});return HM(HM({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return fM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return dM(t,(function(t,r){return e[r].isInRange(t)}))}})};var YM,XM,KM,GM,JM,QM,tk,ek,rk=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 nk(){if(QM)return JM;QM=1;var t=Cp(),e=Ep(),r=function(){if(GM)return KM;GM=1;var t=jA();return KM=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return JM=function(i,o,a){var c=null==i?0:i.length;if(!c)return-1;var u=null==a?0:r(a);return u<0&&(u=n(c+u,0)),t(i,e(o,3),u)},JM}!function(){if(ek)return tk;ek=1;var t=function(){if(XM)return YM;XM=1;var t=Ep(),e=gp(),r=mp();return YM=function(n){return function(i,o,a){var c=Object(i);if(!e(i)){var u=t(o,3);i=r(i),o=function(t){return u(c[t],t,c)}}var l=n(i,o,a);return l>-1?c[u?i[l]:l]:void 0}}}(),e=t(nk());tk=e}();var ik=dr(Jo())((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 ak=_t(void 0),ck=_t(void 0),uk=_t(void 0),lk=_t({}),sk=_t(void 0),fk=_t(0),pk=_t(0),dk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,u=t.height,l=ik(i);return st.createElement(ak.Provider,{value:r},st.createElement(ck.Provider,{value:n},st.createElement(lk.Provider,{value:i},st.createElement(uk.Provider,{value:l},st.createElement(sk.Provider,{value:o},st.createElement(fk.Provider,{value:u},st.createElement(pk.Provider,{value:c},a)))))))};function hk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var yk=function(t){var e=St(ak);null==e&&("production"!==process.env.NODE_ENV?aO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(ok(t),"]. ").concat(hk(e))):aO()),r},vk=function(t){var e=St(ck);null==e&&("production"!==process.env.NODE_ENV?aO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(ok(t),"]. ").concat(hk(e))):aO()),r},gk=function(){return St(pk)},mk=function(){return St(fk)};function bk(t){return bk="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},bk(t)}function wk(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,Mk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xk(t,e,r){return e=Sk(e),function(t,e){if(e&&("object"===bk(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,Ok()?Reflect.construct(e,r||[],Sk(t).constructor):e.apply(t,r))}function Ok(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ok=function(){return!!t})()}function Sk(t){return Sk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sk(t)}function _k(t,e){return _k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_k(t,e)}function jk(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 Pk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jk(Object(r),!0).forEach((function(e){Ak(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ak(t,e,r){return(e=Mk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mk(t){var e=function(t,e){if("object"!=bk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==bk(e)?e:e+""}function kk(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ek(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 Ek(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 Ek(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 Ck(){return Ck=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},Ck.apply(this,arguments)}function Tk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=St(sk),s=yk(i),f=vk(o),p=St(uk);if(!l||!p)return null;Bc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,i,o,a,c,u){var l=i.x,s=i.y,f=i.width,p=i.height;if(r){var d=u.y,h=t.y.apply(d,{position:o});if(nM(u,"discard")&&!t.y.isInRange(h))return null;var y=[{x:l+f,y:h},{x:l,y:h}];return"left"===c?y.reverse():y}if(e){var v=u.x,g=t.x.apply(v,{position:o});if(nM(u,"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=u.segment.map((function(e){return t.apply(e,{position:o})}));return nM(u,"discard")&&rM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(qM({x:s.scale,y:f.scale}),Ia(e),Ia(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=kk(d,2),y=h[0],v=y.x,g=y.y,m=h[1],b=m.x,w=m.y,x=Pk(Pk({clipPath:nM(t,"hidden")?"url(#".concat(l,")"):void 0},lc(t,!0)),{},{x1:v,y1:g,x2:b,y2:w});return st.createElement(Rc,{className:Dn("recharts-reference-line",c)},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement("line",Ck({},e,{className:"recharts-reference-line-line"}))}(a,x),SS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return WM({x:e,y:r},{x:n,y:i})}({x1:v,y1:g,x2:b,y2:w})))}var Dk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),xk(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&&_k(t,e)}(e,st.Component),wk(e,[{key:"render",value:function(){return st.createElement(Tk,this.props)}}])}();function Ik(){return Ik=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},Ik.apply(this,arguments)}function Nk(t){return Nk="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},Nk(t)}function Rk(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 Lk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rk(Object(r),!0).forEach((function(e){Uk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bk(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,Vk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function zk(t,e,r){return e=Hk(e),function(t,e){if(e&&("object"===Nk(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,$k()?Reflect.construct(e,r||[],Hk(t).constructor):e.apply(t,r))}function $k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($k=function(){return!!t})()}function Hk(t){return Hk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hk(t)}function Fk(t,e){return Fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fk(t,e)}function Uk(t,e,r){return(e=Vk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vk(t){var e=function(t,e){if("object"!=Nk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Nk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Nk(e)?e:e+""}Ak(Dk,"displayName","ReferenceLine"),Ak(Dk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Wk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),zk(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&&Fk(t,e)}(e,st.Component),Bk(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=Ia(r),u=Ia(n);if(Bc(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=qM({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return nM(t,"discard")&&!o.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,d=p.shape,h=p.className,y=Lk(Lk({clipPath:nM(this.props,"hidden")?"url(#".concat(a,")"):void 0},lc(this.props,!0)),{},{cx:s,cy:f});return st.createElement(Rc,{className:Dn("recharts-reference-dot",h)},e.renderDot(d,y),SS.renderCallByParent(this.props,{x:s-i,y:f-i,width:2*i,height:2*i}))}}])}();function Zk(){return Zk=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},Zk.apply(this,arguments)}function qk(t){return qk="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},qk(t)}function Yk(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 Xk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yk(Object(r),!0).forEach((function(e){eE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Kk(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,rE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gk(t,e,r){return e=Qk(e),function(t,e){if(e&&("object"===qk(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,Jk()?Reflect.construct(e,r||[],Qk(t).constructor):e.apply(t,r))}function Jk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jk=function(){return!!t})()}function Qk(t){return Qk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qk(t)}function tE(t,e){return tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tE(t,e)}function eE(t,e,r){return(e=rE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rE(t){var e=function(t,e){if("object"!=qk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=qk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==qk(e)?e:e+""}Uk(Wk,"displayName","ReferenceDot"),Uk(Wk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),Uk(Wk,"renderDot",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement(AP,Ik({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var nE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Gk(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&&tE(t,e)}(e,st.Component),Kk(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,u=t.clipPathId;Bc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Ia(r),s=Ia(n),f=Ia(i),p=Ia(o),d=this.props.shape;if(!(l||s||f||p||d))return null;var h=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,l=i.xAxis,s=i.yAxis;if(!l||!s)return null;var f=qM({x:l.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},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!nM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?WM(p,d):null}(l,s,f,p,this.props);if(!h&&!d)return null;var y=nM(this.props,"hidden")?"url(#".concat(u,")"):void 0;return st.createElement(Rc,{className:Dn("recharts-reference-area",a)},e.renderRect(d,Xk(Xk({clipPath:y},lc(this.props,!0)),h)),SS.renderCallByParent(this.props,h))}}])}();function iE(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 oE(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 aE(t){return aE="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},aE(t)}function cE(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 uE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cE(Object(r),!0).forEach((function(e){lE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=aE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=aE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==aE(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sE(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(Da(u)||Mh)return function(t,e){return iE(t,e+1)}(i,"number"==typeof u&&Da(u)?u:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?by(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var i=ya(l)?l(t.value,n):t.value;return"width"===d?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return rk(n,r)}(by(i,{fontSize:e,letterSpacing:r}),h,f):by(i,{fontSize:e,letterSpacing:r})[d]},v=i.length>=2?Ca(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,v,d);return"equidistantPreserveStart"===u?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:iE(n,s)};var o,a=l,p=function(){return void 0===o&&(o=r(e,a)),o},d=e.coordinate,h=0===l||oE(t,d,p,f,u);h||(l=0,f=c,s+=1),h&&(f=d+t*(p()/2+i),l+=s)};s<=a.length;)if(o=p())return o.v;return[]}(v,g,y,i,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=uE(uE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),oE(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=uE(uE({},s),{},{isShow:!0}))}for(var d=o?c-1:c,h=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-u);a[e]=o=uE(uE({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=uE(uE({},o),{},{tickCoord:o.coordinate});oE(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=uE(uE({},o),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(v,g,y,i,a,"preserveStartEnd"===u):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var n,l=o[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=uE(uE({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=uE(uE({},l),{},{tickCoord:l.coordinate});oE(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=uE(uE({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(v,g,y,i,a),p.filter((function(t){return t.isShow})))}eE(nE,"displayName","ReferenceArea"),eE(nE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),eE(nE,"renderRect",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement(jP,Zk({},e,{className:"recharts-reference-area-rect"}))}));var fE=["viewBox"],pE=["viewBox"],dE=["ticks"];function hE(t){return hE="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},hE(t)}function yE(){return yE=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},yE.apply(this,arguments)}function vE(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 gE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vE(Object(r),!0).forEach((function(e){_E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mE(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 bE(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,jE(n.key),n)}}function wE(t,e,r){return e=OE(e),function(t,e){if(e&&("object"===hE(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,xE()?Reflect.construct(e,r||[],OE(t).constructor):e.apply(t,r))}function xE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xE=function(){return!!t})()}function OE(t){return OE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},OE(t)}function SE(t,e){return SE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},SE(t,e)}function _E(t,e,r){return(e=jE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jE(t){var e=function(t,e){if("object"!=hE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=hE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==hE(e)?e:e+""}var PE=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=wE(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&&SE(t,e)}(e,jt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=mE(t,fE),i=this.props,o=i.viewBox,a=mE(i,pE);return!Ha(r,o)||!Ha(n,a)||!Ha(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,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,y=c.tickMargin,v=h?-1:1,g=t.tickSize||d,m=Da(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=l+ +!h*f)-v*g)-v*y,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=u+ +!h*s)-v*g)-v*y,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=u+ +h*s)+v*g)+v*y,a=m;break;default:e=r=t.coordinate,a=(n=(i=l+ +h*f)+v*g)+v*y,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,u=gE(gE(gE({},lc(this.props,!1)),lc(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=gE(gE({},u),{},{x1:e,y1:r+l*i,x2:e+n,y2:r+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=gE(gE({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return st.createElement("line",yE({},u,{className:Dn("recharts-cartesian-axis-line",ua(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,s=o.unit,f=sE(gE(gE({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=lc(this.props,!1),y=lc(u,!1),v=gE(gE({},h),{},{fill:"none"},lc(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=gE(gE(gE(gE({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},y),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return st.createElement(Rc,yE({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Ya(i.props,t,r)),a&&st.createElement("line",yE({},v,o,{className:Dn("recharts-cartesian-axis-tick-line",ua(a,"className"))})),u&&e.renderTickItem(u,m,"".concat(ya(l)?l(t.value,r):t.value).concat(s||"")))}));return st.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,u=c.ticks,l=mE(c,dE),s=u;return ya(o)&&(s=u&&u.length>0?o(this.props):o(l)),n<=0||i<=0||!s||!s.length?null:st.createElement(Rc,{className:Dn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),SS.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement(Yy,yE({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&bE(r.prototype,n),i&&bE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();_E(PE,"displayName","CartesianAxis"),_E(PE,"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 AE=["type","layout","connectNulls","ref"],ME=["key"];function kE(t){return kE="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},kE(t)}function EE(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 CE(){return CE=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},CE.apply(this,arguments)}function TE(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?TE(Object(r),!0).forEach((function(e){HE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IE(t){return function(t){if(Array.isArray(t))return NE(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 NE(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 NE(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 NE(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 RE(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,FE(n.key),n)}}function LE(t,e,r){return e=zE(e),function(t,e){if(e&&("object"===kE(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,BE()?Reflect.construct(e,r||[],zE(t).constructor):e.apply(t,r))}function BE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(BE=function(){return!!t})()}function zE(t){return zE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zE(t)}function $E(t,e){return $E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$E(t,e)}function HE(t,e,r){return(e=FE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FE(t){var e=function(t,e){if("object"!=kE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==kE(e)?e:e+""}var UE=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 HE(t=LE(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),HE(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),HE(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,u=n-r,l=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){l=[].concat(IE(i.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(IE(e.repeat(i,a)),IE(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),HE(t,"id",Ra("recharts-line-")),HE(t,"pathRef",(function(e){t.mainCurve=e})),HE(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),HE(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&&$E(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=ic(r.children,wO);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:TO(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Rc,l,c.map((function(t){return st.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{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,u=lc(this.props,!1),l=lc(o,!0),s=a.map((function(t,r){var n=DE(DE(DE({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Rc,CE({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 u=EE(i,AE),l=DE(DE(DE({},lc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return st.createElement(c_,CE({},l,{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,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,y=h.prevPoints,v=h.totalLength;return st.createElement(hP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],i=za(n.x,t.x),o=za(n.y,t.y);return DE(DE({},t),{},{x:i(a),y:o(a)})}if(f){var u=za(2*p,t.x),l=za(d/2,t.y);return DE(DE({},t),{},{x:u(a),y:l(a)})}return DE(DE({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=za(0,v)(a);if(o){var h="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,h)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{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||!ex(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,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,y=1===i.length,v=Dn("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=fa(d)?this.id:d,x=null!==(t=lc(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=(uc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Rc,{className:v},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?l:l-s/2,y:m?u:u-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:l-M/2,y:u-M/2,width:s+M,height:f+M}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,A,w),(!p||h)&&$S.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(IE(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(IE(n),IE(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(ya(t))r=t(e);else{var n=e.key,i=EE(e,ME),o=Dn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=st.createElement(AP,CE({key:n},i,{className:o}))}return r}}],n&&RE(r.prototype,n),i&&RE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();HE(UE,"displayName","Line"),HE(UE,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Mh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),HE(UE,"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,u=t.displayedData,l=t.offset,s=e.layout;return DE({points:u.map((function(t,e){var u=TO(t,a);return"horizontal"===s?{x:VO({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:fa(u)?null:n.scale(u),value:u,payload:t}:{x:fa(u)?null:r.scale(u),y:VO({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var VE,WE=["layout","type","stroke","connectNulls","isRange","ref"],ZE=["key"];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 YE(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 XE(){return XE=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},XE.apply(this,arguments)}function KE(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 GE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?KE(Object(r),!0).forEach((function(e){nC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function JE(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,iC(n.key),n)}}function QE(t,e,r){return e=eC(e),function(t,e){if(e&&("object"===qE(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,tC()?Reflect.construct(e,r||[],eC(t).constructor):e.apply(t,r))}function tC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tC=function(){return!!t})()}function eC(t){return eC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eC(t)}function rC(t,e){return rC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rC(t,e)}function nC(t,e,r){return(e=iC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iC(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 oC=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 nC(t=QE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),nC(t,"id",Ra("recharts-area-")),nC(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),ya(e)&&e()})),nC(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),ya(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&&rC(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,u=a.points,l=a.dataKey,s=lc(this.props,!1),f=lc(c,!0),p=u.map((function(t,r){var n=GE(GE(GE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:u});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Rc,XE({className:"recharts-area-dots"},d),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),u=Uw(n.map((function(t){return t.y||0})));return Da(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Uw(r.map((function(t){return t.y||0}))),u)),Da(u)?st.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(u+(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),u=Uw(n.map((function(t){return t.x||0})));return Da(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Uw(r.map((function(t){return t.x||0}))),u)),Da(u)?st.createElement("rect",{x:0,y:o<a?o:o-c,width:u+(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,u=i.connectNulls,l=i.isRange;i.ref;var s=YE(i,WE);return st.createElement(Rc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},st.createElement(c_,XE({},lc(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&st.createElement(c_,XE({},lc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&st.createElement(c_,XE({},lc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,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,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return st.createElement(hP,{begin:c,duration:u,isActive:a,easing:l,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,u=p.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],i=za(n.x,t.x),o=za(n.y,t.y);return GE(GE({},t),{},{x:i(a),y:o(a)})}return t}));return c=Da(o)&&"number"==typeof o?za(d,o)(a):fa(o)||ka(o)?za(d,0)(a):o.map((function(t,e){var r=Math.floor(e*u);if(d[r]){var n=d[r],i=za(n.x,t.x),o=za(n.y,t.y);return GE(GE({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return st.createElement(Rc,null,st.createElement("defs",null,st.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),st.createElement(Rc,{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,u=a.prevBaseLine,l=a.totalLength;return o&&n&&n.length&&(!c&&l>0||!ex(c,n)||!ex(u,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,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,y=1===i.length,v=Dn("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=fa(d)?this.id:d,x=null!==(t=lc(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=(uc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Rc,{className:v},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.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&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,A,w),(!p||h)&&$S.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&&JE(r.prototype,n),i&&JE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function aC(t){return aC="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},aC(t)}function cC(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,dC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uC(t,e,r){return e=sC(e),function(t,e){if(e&&("object"===aC(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,lC()?Reflect.construct(e,r||[],sC(t).constructor):e.apply(t,r))}function lC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lC=function(){return!!t})()}function sC(t){return sC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sC(t)}function fC(t,e){return fC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fC(t,e)}function pC(t,e,r){return(e=dC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dC(t){var e=function(t,e){if("object"!=aC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=aC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==aC(e)?e:e+""}function hC(){return hC=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},hC.apply(this,arguments)}function yC(t){var e=t.xAxisId,r=gk(),n=mk(),i=yk(e);return null==i?null:st.createElement(PE,hC({},i,{className:Dn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return BO(t,!0)}}))}VE=oC,nC(oC,"displayName","Area"),nC(oC,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Mh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),nC(oC,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Da(c)&&"number"==typeof c)return c;var u="horizontal"===i?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),nC(oC,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,y=s&&s.length,v=VE.getBaseValue(r,n,i,o),g="horizontal"===h,m=!1,b=p.map((function(t,e){var r;y?r=s[f+e]:(r=TO(t,l),Array.isArray(r)?m=!0:r=[v,r]);var n=null==r[1]||y&&null==TO(t,l);return g?{x:VO({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:VO({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||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(v):i.scale(v),GE({points:b,baseLine:e,layout:h,isRange:m},d)})),nC(oC,"renderDotItem",(function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(ya(t))r=t(e);else{var n=Dn("recharts-area-dot","boolean"!=typeof t?t.className:""),i=e.key,o=YE(e,ZE);r=st.createElement(AP,XE({},o,{key:i,className:n}))}return r}));var vC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),uC(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&&fC(t,e)}(e,st.Component),cC(e,[{key:"render",value:function(){return st.createElement(yC,this.props)}}])}();function gC(t){return gC="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},gC(t)}function mC(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,_C(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function bC(t,e,r){return e=xC(e),function(t,e){if(e&&("object"===gC(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,wC()?Reflect.construct(e,r||[],xC(t).constructor):e.apply(t,r))}function wC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wC=function(){return!!t})()}function xC(t){return xC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xC(t)}function OC(t,e){return OC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},OC(t,e)}function SC(t,e,r){return(e=_C(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _C(t){var e=function(t,e){if("object"!=gC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=gC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==gC(e)?e:e+""}function jC(){return jC=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},jC.apply(this,arguments)}pC(vC,"displayName","XAxis"),pC(vC,"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 PC=function(t){var e=t.yAxisId,r=gk(),n=mk(),i=vk(e);return null==i?null:st.createElement(PE,jC({},i,{className:Dn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return BO(t,!0)}}))},AC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),bC(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,st.Component),mC(e,[{key:"render",value:function(){return st.createElement(PC,this.props)}}])}();function MC(t){return function(t){if(Array.isArray(t))return kC(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 kC(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 kC(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 kC(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}SC(AC,"displayName","YAxis"),SC(AC,"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 EC,CC=function(t,e,r,n,i){var o=ic(t,Dk),a=ic(t,Wk),c=[].concat(MC(o),MC(a)),u=ic(t,nE),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&nM(e.props,"extendDomain")&&Da(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),d="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&nM(e.props,"extendDomain")&&Da(e.props[p])&&Da(e.props[d])){var n=e.props[p],i=e.props[d];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 Da(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},TC={exports:{}};var DC=(EC||(EC=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),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=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 u,l,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(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,d=s.length;for(l=0;l<d;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,i);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}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 u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[o]=1===l.length?l[0]:l: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}(TC)),TC.exports),IC=new(dr(DC)),NC="recharts.syncMouseEvents";function RC(t){return RC="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},RC(t)}function LC(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,zC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function BC(t,e,r){return(e=zC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zC(t){var e=function(t,e){if("object"!=RC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=RC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==RC(e)?e:e+""}var $C=function(){return LC((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),BC(this,"activeIndex",0),BC(this,"coordinateList",[]),BC(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,u=t.offset,l=void 0===u?null:u,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!=l?l: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,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])}();function HC(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 FC(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 HC(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=oS(c,u,l,f),d=oS(c,u,s,f);n=p.x,i=p.y,o=d.x,a=d.y}return[{x:n,y:i},{x:o,y:a}]}function UC(t){return UC="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},UC(t)}function VC(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 WC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VC(Object(r),!0).forEach((function(e){ZC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ZC(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=UC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UC(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qC(t){var e,r,n,i=t.element,o=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=i.props.cursor)&&void 0!==e?e:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!h||!a||!c||"ScatterChart"!==d&&"axis"!==o)return null;var y=c_;if("ScatterChart"===d)n=c,y=zP;else if("BarChart"===d)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,l,f),y=jP;else if("radial"===p){var v=HC(c),g=v.cx,m=v.cy,b=v.radius;n={cx:g,cy:m,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=XS}else n={points:FC(p,c,l)},y=c_;var w=WC(WC(WC(WC({stroke:"#ccc",pointerEvents:"none"},l),n),lc(h,!1)),{},{payload:u,payloadIndex:s,className:Dn("recharts-tooltip-cursor",h.className)});return ft(h)?xt(h,w):Ot(y,w)}var YC=["item"],XC=["children","className","width","height","style","compact","title","desc"];function KC(t){return KC="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},KC(t)}function GC(){return GC=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},GC.apply(this,arguments)}function JC(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||aT(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 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 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,fT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function eT(t,e,r){return e=nT(e),function(t,e){if(e&&("object"===KC(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,rT()?Reflect.construct(e,r||[],nT(t).constructor):e.apply(t,r))}function rT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(rT=function(){return!!t})()}function nT(t){return nT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nT(t)}function iT(t,e){return iT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},iT(t,e)}function oT(t){return function(t){if(Array.isArray(t))return cT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||aT(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 aT(t,e){if(t){if("string"==typeof t)return cT(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)?cT(t,e):void 0}}function cT(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 uT(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?uT(Object(r),!0).forEach((function(e){sT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sT(t,e,r){return(e=fT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fT(t){var e=function(t,e){if("object"!=KC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=KC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==KC(e)?e:e+""}var pT={xAxis:["bottom","top"],yAxis:["left","right"]},dT={width:"100%",height:"100%"},hT={x:0,y:0};function yT(t){return t}var vT=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&&Da(n)&&Da(i)?t.slice(n,i+1):[]};function gT(t){return"number"===t?[0,"auto"]:void 0}var mT=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=vT(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?l=$a(void 0===s?a:s,o.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(oT(i),[JO(c,l)]):i}),[])},bT=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,u=t.tooltipTicks,l=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,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(Ca(s-l)!==Ca(f-s)){var d=[];if(Ca(f-s)===Ca(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var y=f+c[1]-c[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=d[0]&&t<=d[1]){o=n[u].index;break}}else{var g=Math.min(l,f),m=Math.max(l,f);if(t>(g+s)/2&&t<=(m+s)/2){o=n[u].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,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=mT(t,e,l,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 lT(lT(lT({},n),oS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return lT(lT(lT({},n),oS(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return hT}(r,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},wT=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=LO(l,i);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?lT(lT({},r.type.defaultProps),r.props):r.props,y=h.type,v=h.dataKey,g=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[o];if(e[O])return e;var S,_,j,P=vT(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:u}),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&&Da(n)&&Da(i))return!0}return!1})(h.domain,g,y)&&(S=XO(h.domain,null,g),!p||"number"!==y&&"auto"===b||(j=DO(P,v,"category")));var M=gT(y);if(!S||0===S.length){var k,E=null!==(k=h.domain)&&void 0!==k?k:M;if(v){if(S=DO(P,v,y),"category"===y&&p){var C=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&&C?(_=S,S=MA(0,A)):m||(S=GO(E,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(oT(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!fa(t)})):GO(E,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||fa(e)?t:[].concat(oT(t),[e])}),[]);else if("number"===y){var T=function(t,e,r,n,i){var o=e.map((function(e){return NO(t,e,r,i,n)})).filter((function(t){return!fa(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)})),v,i,l);T&&(S=T)}!p||"number"!==y&&"auto"===b||(j=DO(P,v,"category"))}else S=p?MA(0,A):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:ZO(a[O].stackGroups,c,u):RO(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)})),y,l,!0);if("number"===y)S=CC(s,S,O,i,w),E&&(S=XO(E,S,g));else if("category"===y&&E){var D=E;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return lT(lT({},e),{},sT({},O,lT(lT({},h),{},{axisType:i,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(d=h.domain)&&void 0!==d?d:M,isCategorical:p,layout:l})))}),{})},xT=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,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=ic(l,i),p={};return f&&f.length?p=wT(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):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,u=e.dataEndIndex,l=t.layout,s=t.children,f=vT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=LO(l,i),h=-1;return r.reduce((function(t,e){var y,v=(void 0!==e.type.defaultProps?lT(lT({},e.type.defaultProps),e.props):e.props)[o],g=gT("number");return t[v]?t:(h++,d?y=MA(0,p):a&&a[v]&&a[v].hasStack?(y=ZO(a[v].stackGroups,c,u),y=CC(s,y,v,i)):(y=XO(g,RO(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===v&&!i})),"number",l),n.defaultProps.allowDataOverflow),y=CC(s,y,v,i)),lT(lT({},t),{},sT({},v,lT(lT({axisType:i},n.defaultProps),{},{hide:!0,orientation:ua(pT,"".concat(i,".").concat(h%2),null),domain:y,originalDomain:g,isCategorical:d,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},OT=function(t){var e=t.children,r=t.defaultShowTooltip,n=oc(e,KA),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)}},ST=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"}},_T=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,u=r.height,l=r.children,s=r.margin||{},f=oc(l,KA),p=oc(l,Hd),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:lT(lT({},t),{},sT({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:lT(lT({},t),{},sT({},n,ua(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=lT(lT({},h),d),v=y.bottom;f&&(y.bottom+=f.props.height||KA.defaultProps.height),p&&e&&(y=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=jO({children:i,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&Da(t[p]))return EO(EO({},t),{},CO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&Da(t[d]))return EO(EO({},t),{},CO({},d,t[d]+(f||0)))}return t}(y,0,r,e));var g=c-y.left-y.right,m=u-y.top-y.bottom;return lT(lT({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},jT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},PT=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,u=t.legendContent,l=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,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=ST(s),y=h.numericAxisName,v=h.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=tc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,h){var b=vT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),w=void 0!==r.type.defaultProps?lT(lT({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(y,"Id")],_=w["".concat(v,"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?aO(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:"")):aO());var u=a[c];return lT(lT({},t),{},sT(sT({},n.axisType,u),"".concat(n.axisType,"Ticks"),BO(u)))}),{}),P=j[v],A=j["".concat(v,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?EO(EO({},t.type.defaultProps),t.props):t.props).stackId;if(Ia(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=tc(r.type).indexOf("Bar")>=0,E=KO(P,A),C=[],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,u=a.length;c<u;c++)for(var l=i[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var d=l[s[f]],h=d.items,y=d.cateAxisId,v=h.filter((function(t){return tc(t.type).indexOf("Bar")>=0}));if(v&&v.length){var g=v[0].type.defaultProps,m=void 0!==g?EO(EO({},g),v[0].props):v[0].props,b=m.barSize,w=m[y];o[w]||(o[w]=[]);var x=fa(b)?e:b;o[w].push({item:v[0],stackList:v.slice(1),barSize:fa(x)?void 0:La(x,r,0)})}}return o}({barSize:l,stackGroups:n,totalSize:jT(j,v)});if(k){var D,I,N=fa(O)?d:O,R=null!==(D=null!==(I=KO(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;C=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 u,l=La(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,d=o.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*l)>=n&&(d-=(c-1)*l,l=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-l,size:0};u=o.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+l,size:f?p:e.barSize}},n=[].concat(AO(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),s)}else{var y=La(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var g=a===+a?Math.min(v,a):v;u=o.reduce((function(t,e,r){var n=[].concat(AO(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-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 u}({barGap:f,barCategoryGap:p,bandSize:R!==E?R:E,sizeList:T[_],maxBarSize:N}),R!==E&&(C=C.map((function(t){return lT(lT({},t),{},{position:lT(lT({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:lT(lT({},z(lT(lT({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:E,barPosition:C,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},sT(sT(sT({key:r.key||"item-".concat(h)},y,j[y]),v,j[v]),"animationId",o)),childIndex:(L=r,B=t.children,nc(B).indexOf(L)),item:r})})),m},p=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!ac({props:i}))return null;var s=i.children,p=i.layout,d=i.stackOffset,h=i.data,y=i.reverseStackOrder,v=ST(p),g=v.numericAxisName,m=v.cateAxisName,b=ic(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?EO(EO({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var c=o[r],u=t[c]||{hasStack:!1,stackGroups:{}};if(Ia(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[Ra("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return EO(EO({},t),{},CO({},c,u))}),{});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 EO(EO({},e),{},CO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:UO(t,a.items,i)}))}),{})),EO(EO({},e),{},CO({},o,c))}),{})}(h,b,"".concat(g,"Id"),"".concat(m,"Id"),d,y),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return lT(lT({},t),{},sT({},r,xT(i,lT(lT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=_T(lT(lT({},x),{},{props:i,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=l(i,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=Ba(j),{tooltipTicks:_=BO(S,!1,!0),orderedTooltipTicks:eh(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:KO(S,_)}),A=f(i,lT(lT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return lT(lT({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},d=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),sT(o=eT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),sT(o,"accessibilityManager",new $C),sT(o,"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(lT({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},lT(lT({},o.state),{},{legendBBox:t}))))}})),sT(o,"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),sT(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 lT({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),sT(o,"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=lT(lT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;ya(n)&&n(r,t)}})),sT(o,"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?lT(lT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;ya(n)&&n(r,t)})),sT(o,"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),sT(o,"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),sT(o,"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),sT(o,"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;ya(r)&&r(e,t)})),sT(o,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&Qa[e]?Qa[e]:null}(t),n=ua(o.props,"".concat(r));r&&ya(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),sT(o,"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=lT(lT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;ya(n)&&n(r,t)}})),sT(o,"handleMouseDown",(function(t){var e=o.props.onMouseDown;ya(e)&&e(o.getMouseInfo(t),t)})),sT(o,"handleMouseUp",(function(t){var e=o.props.onMouseUp;ya(e)&&e(o.getMouseInfo(t),t)})),sT(o,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),sT(o,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),sT(o,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),sT(o,"handleDoubleClick",(function(t){var e=o.props.onDoubleClick;ya(e)&&e(o.getMouseInfo(t),t)})),sT(o,"handleContextMenu",(function(t){var e=o.props.onContextMenu;ya(e)&&e(o.getMouseInfo(t),t)})),sT(o,"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&IC.emit(NC,o.props.syncId,t,o.eventEmitterSymbol)})),sT(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(lT({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=o.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var v=lT(lT({},d),{},{x:d.left,y:d.top}),g=Math.min(u,v.x+v.width),m=Math.min(l,v.y+v.height),b=h[s]&&h[s].value,w=mT(o.state,o.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:g,y:"horizontal"===r?m:h[s].coordinate}:hT;o.setState(lT(lT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),sT(o,"renderCursor",(function(t){var r,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:i,d=o.props.layout,h=t.key||"_recharts-cursor";return st.createElement(qC,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:d,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),sT(o,"renderPolarAxis",(function(t,e,r){var n=ua(t,"type.axisType"),i=ua(o.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?lT(lT({},a),t.props):t.props,u=i&&i[c["".concat(n,"Id")]];return xt(t,lT(lT({},u),{},{className:Dn(n,u.className),key:t.key||"".concat(e,"-").concat(r),ticks:BO(u,!0)}))})),sT(o,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=Ba(c),s=Ba(u),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return xt(t,{polarAngles:Array.isArray(n)?n:BO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:BO(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),sT(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),l=jO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=QC(l,YC);return xt(s,lT(lT({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),sT(o,"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=oc(r,Jh);if(!i)return null;var a=o.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return xt(i,{viewBox:lT(lT({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:u,accessibilityLayer:n})})),sT(o,"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,l=i.updateId;return xt(t,{key:t.key||"_recharts-brush",onChange:$O(o.handleBrushChange,t.props.onChange),data:n,x:Da(t.props.x)?t.props.x:a.left,y:Da(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Da(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),sT(o,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=o.clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,d=s.yAxisId,h=void 0===d?l.yAxisId:d;return xt(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),sT(o,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?lT(lT({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=lT(lT({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:IO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},lc(s,!1)),qa(s));return c.push(r.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(o))),i?c.push(r.renderActiveDot(s,lT(lT({},f),{},{cx:i.x,cy:i.y}),"".concat(u,"-basePoint-").concat(o))):a&&c.push(null),c})),sT(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,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=oc(o.props.children,Jh),p=n.props,d=p.points,h=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?lT(lT({},n.item.type.defaultProps),n.item.props):n.item.props,g=v.activeDot,m=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:$O(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:$O(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:$O(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=xt(t,lT(lT({},n.props),O));if(x){if(!(l>=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=lT(lT(lT({},n.props),O),{},{activeIndex:M});return[xt(A,k),null,null]}var E,C;if(u.dataKey&&!u.allowDuplicatedCategory){var T="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());E=$a(d,T,s),C=h&&y&&$a(y,T,s)}else E=null==d?void 0:d[l],C=h&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[xt(t,lT(lT(lT({},n.props),O),{},{activeIndex:D})),null,null]}if(!fa(E))return[S].concat(oT(o.renderActivePoints({item:n,activePoint:E,basePoint:C,childIndex:l,isRange:h})))}return h?[S,null,null]:[S,null]})),sT(o,"renderCustomized",(function(t,e,r){return xt(t,lT(lT({key:"recharts-customized-".concat(r)},o.props),o.state))})),sT(o,"renderMap",{CartesianGrid:{handler:yT,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:yT},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:yT},YAxis:{handler:yT},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:Ra("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=ny(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&&iT(t,e)}(r,jt),tT(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,Jh);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,u=mT(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=lT(lT({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(d),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){sc([oc(t.children,Jh)],[oc(this.props.children,Jh)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=oc(this.props.children,Jh);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 u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=Ba(l).scale,p=Ba(s).scale,d=f&&f.invert?f.invert(o.chartX):null,h=p&&p.invert?p.invert(o.chartY):null;return lT(lT({},o),{},{xValue:d,yValue:h})}var y=bT(this.state,this.props.data,this.props.layout,c);return y?lT(lT({},o),y):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,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=Ba(u);return uS({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=oc(t,Jh),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}),lT(lT({},qa(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){IC.on(NC,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){IC.removeListener(NC,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===tc(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 st.createElement("defs",null,st.createElement("clipPath",{id:t},st.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=JC(e,2),n=r[0],i=r[1];return lT(lT({},t),{},sT({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=JC(e,2),n=r[0],i=r[1];return lT(lT({},t),{},sT({},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,u=a.item,l=void 0!==u.type.defaultProps?lT(lT({},u.type.defaultProps),u.props):u.props,s=tc(u.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return SP(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return uS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(mA(a,n)||bA(a,n)||wA(a,n)){var d=_A({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),h=void 0===l.activeIndex?d:l.activeIndex;return{graphicalItem:lT(lT({},a),{},{childIndex:h}),payload:wA(a,n)?l.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!ac(this))return null;var e,r,n=this.props,i=n.children,o=n.className,a=n.width,c=n.height,u=n.style,l=n.compact,s=n.title,f=n.desc,p=QC(n,XC),d=lc(p,!1);if(l)return st.createElement(dk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement(vc,GC({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),pc(i,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return st.createElement(dk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement("div",GC({className:Dn("recharts-wrapper",o),style:lT({position:"relative",cursor:"default",width:a,height:c},u)},h,{ref:function(e){t.container=e}}),st.createElement(vc,GC({},d,{width:a,height:c,title:s,desc:f,style:dT}),this.renderClipPath(),pc(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();sT(d,"displayName",e),sT(d,"defaultProps",lT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),sT(d,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=OT(t);return lT(lT(lT({},d),{},{updateId:0},p(lT(lT({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!Ha(l,e.prevMargin)){var h=OT(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=lT(lT({},bT(e,n,c)),{},{updateId:e.updateId+1}),g=lT(lT(lT({},h),y),v);return lT(lT(lT({},g),p(lT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!sc(i,e.prevChildren)){var m,b,w,x,O=oc(i,KA),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=!fa(n)&&!j?e.updateId:e.updateId+1;return lT(lT({updateId:P},p(lT(lT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:_})}return null})),sT(d,"renderActiveDot",(function(t,e,r){var n;return n=ft(t)?xt(t,e):ya(t)?t(e):st.createElement(AP,e),st.createElement(Rc,{className:"recharts-active-dot",key:r},n)}));var h=ht((function(t,e){return st.createElement(d,GC({},t,{ref:e}))}));return h.displayName=d.displayName,h},AT=PT({chartName:"LineChart",GraphicalChild:UE,axisComponents:[{axisType:"xAxis",AxisComp:vC},{axisType:"yAxis",AxisComp:AC}],formatAxisMap:VM}),MT=PT({chartName:"AreaChart",GraphicalChild:oC,axisComponents:[{axisType:"xAxis",AxisComp:vC},{axisType:"yAxis",AxisComp:AC}],formatAxisMap:VM});const kT=({formatter:n,labelFormatter:i,payload:o,cx:a,cy:c})=>{const u=100;return Number.isFinite(o.value)?t("svg",{x:a-50,y:c-60,width:u,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:Hr.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:Hr.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:Hr.coolElegance(),strokeWidth:"2"})]}):e(r,{})},ET=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Nr({data:r,dataKey:n}),d=Cn(),h=Cn(),y=s?zr({arr:r||[],n:s}):r;let v,g;y?.length?(g=p?Hr.mint():Hr.coolElegance(),v=y?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=Hr.coolElegance(),v=[{[n]:1},{[n]:1}]);const m={cursor:y?.length?"crosshair":"default",...f};return e(sy,{width:i,minHeight:o,id:d,children:t(MT,{data:v,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:h,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(AC,{domain:y?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(oC,{type:a,dataKey:n,stroke:g,fill:`url(#${h})`,isAnimationActive:c,activeDot:t=>kT({labelFormatter:l,formatter:u,...t}),dot:!1}),y?.length&&e(Jh,{cursor:!1,content:()=>null})]})})},CT=({isCloseable:t,onClick:r})=>{const n=l({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:Hr.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},TT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:Hr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),DT=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":Hr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),IT=({children:t,...r})=>e(y,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Hr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),NT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=gt(0);return n.length>=1&&e(IT,{children:t(v,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(v,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Lt,{}),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(Bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},RT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ht,{...i}):r?e(ve,{...i}):null},LT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,name:u,register:l,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...y}=r,g=l?l(u):void 0;return t(m,{as:v,flexDir:"column",isInvalid:Boolean(s),isDisabled:i,isReadOnly:o,isRequired:a,children:[t(v,{onClick:h,w:"full",alignItems:"center",justifyContent:d?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:e(RT,{}),isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...y}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(v,{w:"full",children:s&&e(x,{size:n,children:s})})]})},BT=O(((t,r)=>{const{children:n,uiColor:i,...o}=t;return e(h,{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})})),zT=({uiColor:r,isLocalDev:n,enableRefetch:i,setEnableRefetch:o,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[u,l]=gt(!1),[s,f]=gt(!1),[p,d]=gt(!1);bt((()=>{document.body.classList.contains("show-outlines")&&l(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");d(Boolean(t))}),[o]);const h={width:{base:"full",md:"auto"},uiColor:r};return t(v,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t(BT,{onClick:()=>{if(document.querySelector(".tsqd-queries-container")){const t=document.querySelector(".tsqd-minimize-btn");t?.click(),d(!1)}else{const t=document.querySelector(".tsqd-open-btn");t?.click(),d(!0)}},isDisabled:!n,...h,children:[p?"Hide":"Show"," React Query console"]}),t(BT,{onClick:()=>{i?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),o(!i),window.location.reload()},position:"relative",...h,_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(BT,{onClick:()=>{c(),a(!0)},...h,children:"Show breakpoint debugger"}),t(BT,{onClick:()=>{l(!u),document.body.classList.toggle("show-outlines")},...h,children:[u?"Hide":"Show"," outlines"]}),t(BT,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...h,children:[s?"Hide":"Show"," error boundaries"]})]})]})},$T=({data:r,heading:n,uiColor:i,buttons:o})=>t(v,{flexDir:"column",children:[t(v,{borderBottom:"solid 1px",borderColor:`${i}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(v,{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(Pt,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),HT=({children:n,footer:i,consoleButton:o,isLocalDev:a})=>{const{isOpen:c,onOpen:u,onClose:l}=P(),[s,f]=gt(!1),p=a?"green":"yellow";return bt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?l():u())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,l,u]),bt((()=>{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:l,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(E,{}),e(C,{children:e(v,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"11px",children:e(v,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:l})})}),i({uiColor:p})]})]}),o({uiColor:p,onClose:l,isOpen:c,hideButton:s,onOpen:u})]})},FT=({hideButton:n,enableRefetch:i,onOpen:o,uiColor:a,hasSystemOverride:c,authBypassEnabled:u})=>{const l=!i||c||u;return 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:[l&&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(v,{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"}),!i&&e(p,{children:"• Refetch intervals disabled"}),!l&&t(r,{children:[e(p,{children:"• Open console (ctrl+d)"}),e(p,{children:"• Hide button (ctrl+j)"})]})]}),hasArrow:!0,children:e(h,{"aria-label":"Open",size:"sm",onClick:o,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:"☆"})})]})})},UT=({uiColor:r})=>t(v,{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"})})]})]}),VT=({enableRefetch:t,status:r})=>e(f,{label:t?null:"Refetch disabled",hasArrow:!0,children:e(D,{width:"fit-content",as:"span",children:e(p,{as:"span",color:r&&t?"inherit":"gray.500",fontFamily:"body",children:r?"✔":"✘"})})}),WT=({children:t,onSubmit:r,...n})=>e(v,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var ZT=function(){return ZT=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},ZT.apply(this,arguments)};function qT(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 YT(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 XT=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},KT={k:1e3,m:1e6,b:1e9},GT=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,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,y=void 0===h?"":h,v=t.transformRawValue,g=(void 0===v?function(t){return t}:v)(e);if("-"===g)return g;var m=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(XT(y),")")).test(g),w=RegExp("(\\d+)-?".concat(XT(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(XT(e),"g");return t.replace(r,"")}(y?x?g.replace(x,"").concat(O):g.replace(y,""):g,n),_=function(t,e){var r=XT(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,YT([n,o],m,!0)),j=_;if(!d){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(XT(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=KT[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],E=M[1],C=l&&E?E.slice(0,l):E,T=c?"".concat(o).concat(C):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},JT=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(XT(n)).concat(XT(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},QT=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,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(XT(a),"?"):"","\\d")).test(e),s="."!==r?tD(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f=n||{},p=f.locale,d=f.currency,h=qT(f,["locale","currency"]),y=ZT(ZT({},h),{minimumFractionDigits:i||0,maximumFractionDigits:20}),v=(n?new Intl.NumberFormat(p,ZT(ZT({},y),d&&{style:"currency",currency:d})):new Intl.NumberFormat(void 0,y)).formatToParts(Number(s)),g=eD(v,t),m=JT(g,ZT({},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(XT(r),")(\\d+)"),"g"),"$1$2".concat(w)):m&&!u?g.replace(m,"".concat(r).concat(w).concat(m)):"".concat(g).concat(r).concat(w)),u&&b?"".concat(g).concat(b).concat(u):m&&b?g.replace(m,"".concat(b).concat(m)):m&&u?g.replace(m,"".concat(b).concat(u)):[g,b,u].join("")},tD=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(XT(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},eD=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 u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?YT(YT([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:YT(YT([],t,!0),[l],!1):"group"===u?c?t:YT(YT([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==o&&0===o?t:YT(YT([],t,!0),[void 0!==i?i:l],!1):YT(YT([],t,!0),"fraction"===u?[void 0!==o?l.slice(0,o):l]:[l],!1)}),[""]).join("")},rD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},nD=function(t){return RegExp(/\d/,"gi").test(t)},iD=ht((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,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,y=t.value,v=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,E=t.decimalSeparator,C=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,$=qT(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(E&&nD(E))throw new Error("decimalSeparator cannot be a number");if(C&&nD(C))throw new Error("groupSeparator cannot be a number");var H=wt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency,i=qT(e,["locale","currency"]);return(r?new Intl.NumberFormat(r,ZT(ZT({},i),n&&{currency:n,style:"currency"})):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?ZT(ZT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?ZT(ZT({},t),{groupSeparator:e.value}):"decimal"===e.type?ZT(ZT({},t),{decimalSeparator:e.value}):t}),rD)}(O)}),[O]),F=E||H.decimalSeparator||"",U=C||H.groupSeparator||"";if(F&&U&&F===U&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:U,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:U,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=gt((function(){return null!=f?QT(ZT(ZT({},V),{decimalScale:b,value:String(f)})):null!=y?QT(ZT(ZT({},V),{decimalScale:b,value:String(y)})):""})),q=Z[0],Y=Z[1],X=gt(!1),K=X[0],G=X[1],J=gt(0),Q=J[0],tt=J[1],et=gt(0),rt=et[0],nt=et[1],it=gt(null),ot=it[0],at=it[1],ct=yt(null);vt(e,(function(){return ct.current}));var ut=function(t,e){G(!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 u=r.split("");return"Backspace"===n&&i[a]===o&&(u.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ot,stateValue:q,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=GT(ZT({value:n},W));if(!(h&&o.replace(/-/g,"").length>h)){if(""===o||"-"===o||o===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),Y(o),void tt(1);var a=F?o.replace(F,"."):o,u=parseFloat(a),l=QT(ZT({value:o},V));if(null!=i){var s=i+(l.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(l),v)v(o,c,{float:u,formatted:l,value:o})}};bt((function(){null==y&&null==f&&Y("")}),[f,y]),bt((function(){K&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,K,rt]);var lt=ZT({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;ut(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=GT(ZT({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),u=QT(ZT(ZT({},V),{value:i}));v&&z&&v(i,c,{float:a,formatted:u,value:i}),Y(u),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!=y?String(y):void 0,n=F&&r?r.replace(F,"."):r,i=parseFloat(null!=n?n:GT(ZT({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;ut(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=JT(q,{groupSeparator:U,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:d,value:null==y||"-"===q||F&&q===F?q:QT(ZT(ZT({},V),{decimalScale:K?void 0:b,value:String(y)})),ref:ct},$);if(l){var ft=l;return st.createElement(ft,ZT({},lt))}return st.createElement("input",ZT({},lt))}));iD.displayName="CurrencyInput";const oD=O(((r,n)=>{const{size:i,isDisabled:o,isReadOnly:a,isRequired:c,spellCheck:u=!1,name:l,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:y,rightAddon:v,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Rr(i),j=f?f(l):void 0,P="currency"===w?{as:iD,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:[h&&e(B,{children:h}),y&&e(z,{w:"auto",ml:"1em",children:y}),e($,{size:i,spellCheck:u,paddingLeft:y&&"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}),v&&e(F,{children:v})]}),p&&e(x,{size:i,children:p}),d&&e(U,{fontSize:_,children:d})]})}));var aD=t=>null==t;var cD=t=>!aD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),uD=t=>{const e=t.constructor&&t.constructor.prototype;return cD(e)&&e.hasOwnProperty("isPrototypeOf")},lD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function sD(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(t instanceof Set)e=new Set(t);else{if(lD&&(t instanceof Blob||n)||!r&&!cD(t))return t;if(e=r?[]:{},r||uD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=sD(t[r]));else e=t}return e}var fD=t=>Array.isArray(t)?t.filter(Boolean):[],pD=t=>void 0===t,dD=(t,e,r)=>{if(!e||!cD(t))return r;const n=fD(e.split(/[,[\].]+?/)).reduce(((t,e)=>aD(t)?t:t[e]),t);return pD(n)||n===t?pD(t[e])?r:t[e]:n},hD=t=>"boolean"==typeof t,yD=t=>/^\w*$/.test(t),vD=t=>fD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),gD=(t,e,r)=>{let n=-1;const i=yD(e)?[e]:vD(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=cD(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=o,t=t[e]}return t};const mD="onBlur",bD="onChange",wD="onSubmit",xD="onTouched",OD="all",SD="max",_D="min",jD="maxLength",PD="minLength",AD="pattern",MD="required",kD="validate",ED=st.createContext(null);var CD=t=>cD(t)&&!Object.keys(t).length,TD=t=>Array.isArray(t)?t:[t];var DD=t=>"string"==typeof t,ID=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},ND=()=>{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)}))},RD=(t,e,r={})=>r.shouldFocus||pD(r.shouldFocus)?r.focusName||`${t}.${pD(r.focusIndex)?e:r.focusIndex}.`:"",LD=t=>({isOnSubmit:!t||t===wD,isOnBlur:t===mD,isOnChange:t===bD,isOnAll:t===OD,isOnTouch:t===xD});const BD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=dD(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(BD(i,e))break}else if(cD(i)&&BD(i,e))break}}};var zD=(t,e,r)=>{const n=TD(dD(t,r));return gD(n,"root",e[r]),gD(t,r,n),t},$D=t=>DD(t),HD=t=>t instanceof RegExp;function FD(t,e,r="validate"){if($D(t)||Array.isArray(t)&&t.every($D)||hD(t)&&!t)return{type:r,message:$D(t)?t:"",ref:e}}var UD=t=>cD(t)&&!HD(t)?t:{value:t,message:""},VD=async(t,e,r,n,i,o)=>{const{ref:a,refs:c,required:u,maxLength:l,minLength:s,min:f,max:p,pattern:d,validate:h,name:y,valueAsNumber:v,mount:g}=t._f,m=dD(r,y);if(!g||e.has(y))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(hD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(v||(t=>"file"===t.type)(a))&&pD(a.value)&&pD(m)||(t=>{if(!lD)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=ID.bind(null,y,n,x),_=(t,e,r,n=jD,i=PD)=>{const o=t?e:r;x[y]={type:t?n:i,message:o,ref:a,...S(t?n:i,o)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=$D(u)?{value:!!u,message:u}:UD(u);if(t&&(x[y]={type:MD,message:e,ref:b,...S(MD,e)},!n))return w(e),x}if(!(O||aD(f)&&aD(p))){let t,e;const r=UD(p),i=UD(f);if(aD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),o=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,u="week"==a.type;DD(r.value)&&m&&(t=c?o(m)>o(r.value):u?m>r.value:n>new Date(r.value)),DD(i.value)&&m&&(e=c?o(m)<o(i.value):u?m<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(m?+m:m);aD(r.value)||(t=n>r.value),aD(i.value)||(e=n<i.value)}if((t||e)&&(_(!!t,r.message,i.message,SD,_D),!n))return w(x[y].message),x}if((l||s)&&!O&&(DD(m)||Array.isArray(m))){const t=UD(l),e=UD(s),r=!aD(t.value)&&m.length>+t.value,i=!aD(e.value)&&m.length<+e.value;if((r||i)&&(_(r,t.message,e.message),!n))return w(x[y].message),x}if(d&&!O&&DD(m)){const{value:t,message:e}=UD(d);if(HD(t)&&!m.match(t)&&(x[y]={type:AD,message:e,ref:a,...S(AD,e)},!n))return w(e),x}if(h)if("function"==typeof h){const t=FD(await h(m,r),b);if(t&&(x[y]={...t,...S(kD,t.message)},!n))return w(t.message),x}else if(cD(h)){let t={};for(const e in h){if(!CD(t)&&!n)break;const i=FD(await h[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[y]=t))}if(!CD(t)&&(x[y]={ref:b,...t},!n))return x}return w(!0),x},WD=(t,e)=>[...t,...TD(e)],ZD=t=>Array.isArray(t)?t.map((()=>{})):void 0;function qD(t,e,r){return[...t.slice(0,e),...TD(r),...t.slice(e)]}var YD=(t,e,r)=>Array.isArray(t)?(pD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],XD=(t,e)=>[...TD(e),...TD(t)];var KD=(t,e)=>pD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return fD(n).length?n:[]}(t,TD(e).sort(((t,e)=>t-e))),GD=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function JD(t,e){const r=Array.isArray(e)?e:yD(e)?[e]:vD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=pD(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(cD(n)&&CD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!pD(t[e]))return!1;return!0}(n))&&JD(t,r.slice(0,-1)),t}var QD=(t,e,r)=>(t[e]=r,t);function tI(t){const e=st.useContext(ED),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,u]=st.useState(r._getFieldArray(n)),l=st.useRef(r._getFieldArray(n).map(ND)),s=st.useRef(c),f=st.useRef(n),p=st.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),function(t){const e=st.useRef(t);e.current=t,st.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===f.current||!e){const e=dD(t,f.current);Array.isArray(e)&&(u(e),l.current=e.map(ND))}},subject:r._subjects.array});const d=st.useCallback((t=>{p.current=!0,r._updateFieldArray(n,t)}),[r,n]);return st.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&&(!LD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=dD(t.errors,n),i=dD(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?gD(r._formState.errors,n,e):JD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=dD(r._fields,n);!t||!t._f||LD(r._options.reValidateMode).isOnSubmit&&LD(r._options.mode).isOnSubmit||VD(t,r._names.disabled,r._formValues,r._options.criteriaMode===OD,r._options.shouldUseNativeValidation).then((t=>!CD(t)&&r._subjects.state.next({errors:zD(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&BD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),p.current=!1}),[c,n,r]),st.useEffect((()=>(!dD(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)})),[n,r,i,o]),{swap:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);GD(i,t,e),GD(l.current,t,e),d(i),u(i),r._updateFieldArray(n,i,GD,{argA:t,argB:e},!1)}),[d,n,r]),move:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);YD(i,t,e),YD(l.current,t,e),d(i),u(i),r._updateFieldArray(n,i,YD,{argA:t,argB:e},!1)}),[d,n,r]),prepend:st.useCallback(((t,e)=>{const i=TD(sD(t)),o=XD(r._getFieldArray(n),i);r._names.focus=RD(n,0,e),l.current=XD(l.current,i.map(ND)),d(o),u(o),r._updateFieldArray(n,o,XD,{argA:ZD(t)})}),[d,n,r]),append:st.useCallback(((t,e)=>{const i=TD(sD(t)),o=WD(r._getFieldArray(n),i);r._names.focus=RD(n,o.length-1,e),l.current=WD(l.current,i.map(ND)),d(o),u(o),r._updateFieldArray(n,o,WD,{argA:ZD(t)})}),[d,n,r]),remove:st.useCallback((t=>{const e=KD(r._getFieldArray(n),t);l.current=KD(l.current,t),d(e),u(e),!Array.isArray(dD(r._fields,n))&&gD(r._fields,n,void 0),r._updateFieldArray(n,e,KD,{argA:t})}),[d,n,r]),insert:st.useCallback(((t,e,i)=>{const o=TD(sD(e)),a=qD(r._getFieldArray(n),t,o);r._names.focus=RD(n,t,i),l.current=qD(l.current,t,o.map(ND)),d(a),u(a),r._updateFieldArray(n,a,qD,{argA:t,argB:ZD(e)})}),[d,n,r]),update:st.useCallback(((t,e)=>{const i=sD(e),o=QD(r._getFieldArray(n),t,i);l.current=[...o].map(((e,r)=>e&&r!==t?l.current[r]:ND())),d(o),u([...o]),r._updateFieldArray(n,o,QD,{argA:t,argB:i},!0,!1)}),[d,n,r]),replace:st.useCallback((t=>{const e=TD(sD(t));l.current=e.map(ND),d([...e]),u([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:st.useMemo((()=>c.map(((t,e)=>({...t,[i]:l.current[e]||ND()})))),[c,i])}}const eI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=tI({control:n,name:r}),p=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(D,{children:[u.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(v,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(v,{children:e(h,{size:"sm",onClick:()=>{l(p),a&&a(p)},ml:"auto",children:"+"})})]})},rI=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Nr({data:r,dataKey:n}),d=Cn(),h=s?zr({arr:r||[],n:s}):r;let y,v;h?.length?(v=p?Hr.mint():Hr.heroicRed(),y=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(v=Hr.coolElegance(),y=[{[n]:0},{[n]:0}]);const g={cursor:h?.length?"crosshair":"default",...f};return e(sy,{width:i,minHeight:o,id:d,children:t(AT,{data:y,style:g,children:[e(AC,{domain:["dataMin","dataMax"],hide:!0}),e(UE,{isAnimationActive:c,type:a,dataKey:n,stroke:v,strokeWidth:"2",activeDot:t=>kT({labelFormatter:l,formatter:u,...t}),dot:!1,scale:"threshold"}),h?.length&&e(Jh,{cursor:!1,content:()=>null})]})})},nI=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},isDisabledCloseButton:l,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},h={...{minWidth:Vr},...f};return t(V,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:u,trapFocus:!Lr(),...p,children:[e(W,{}),t(Z,{...h,children:[e(q,{children:i}),e(Y,{isDisabled:l}),e(X,{...d,children:a}),o&&e(K,{borderTop:"solid 1px",borderColor:Hr.coolElegance(),justifyContent:"flex-start",children:o})]})]})},iI=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 ${Hr.black(.08)}`:"none",href:i,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&Hr.coolElegance(),textDecoration:"none"},...o,children:n},i)};var oI,aI={exports:{}};var cI,uI=(oI||(oI=1,cI=aI,function(t,e){cI.exports=e(st)}(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,u=t.activeLinkClassName,l=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,y=t.ariaLabel||"Page "+i+(p?" "+p:""),v=null;return o&&(v="page",y=t.ariaLabel||"Page "+i+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==u&&(n=n+" "+u):n=u),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:o?"-1":"0","aria-label":y,"aria-current":v,onKeyPress:s},l(s)),d(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 u=c;function l(){return l=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},l.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,u=i||"break";return e().createElement("li",{className:u},e().createElement("a",l({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 d(t){return d="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},d(t)}function h(){return h=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},h.apply(this,arguments)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(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&&y(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"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(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(v(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(v(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(v(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(v(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(v(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(v(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,u=void 0!==c&&c,l=i.isBreak,s=void 0!==l&&l,f=i.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,y=n;if(h){var v=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:u,isBreak:s,isActive:p});if(!1===v)return;Number.isInteger(v)&&(y=v)}void 0!==y&&r.handlePageChange(y)})),m(v(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(v(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(v(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(v(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(v(r),"pagination",(function(){var t=[],n=r.props,i=n.pageRangeDisplayed,o=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,u=n.breakClassName,l=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(o<=i)for(var d=0;d<o;d++)t.push(r.getPageElement(d));else{var h=i/2,y=i-h;p>o-i/2?h=i-(y=o-p):p<i/2&&(y=i-(h=p));var v,g,m=function(t){return r.getPageElement(t)},b=[];for(v=0;v<o;v++){var w=v+1;if(w<=a)b.push({type:"page",index:v,display:m(v)});else if(w>o-a)b.push({type:"page",index:v,display:m(v)});else if(v>=p-h&&v<=p+(0===p&&i>1?y-1:y))b.push({type:"page",index:v,display:m(v)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(i>0||a>0)){var x=v<p?s.backward:s.forward;g=e().createElement(f,{key:v,breakAriaLabel:x,breakLabel:c,breakClassName:u,breakLinkClassName:l,breakHandler:r.handleBreakClick.bind(null,v),getEventListener:r.getEventListener}),b.push({type:"break",index:v,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,l=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(u,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:i,pageLinkClassName:o,activeClassName:a,activeLinkClassName:c,extraAriaContext:l,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,u=r.previousLabel,l=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,y=r.nextLabel,v=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(l)).concat(x?" ".concat(p(n)):""),_="".concat(p(v)).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",h({className:j,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),u)),this.pagination(),e().createElement("li",{className:_},e().createElement("a",h({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)),y)))}}])&&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})()))),aI.exports);const lI=n(dr(uI)),sI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:i,forcePage:o,...a})=>{const c=Math.ceil(t/r);return e(v,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(lI,{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:Hr.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"}}})})},fI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,u]=gt([]),[l,s]=gt(1);return t(v,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return i(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===l,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),u((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},pI=({children:t,isEnabled:r=!0,...n})=>{const i=r?At`
|
|
31
|
+
*/function M_(){if(h_)return d_;h_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return d_=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),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))e.call(o,l)&&(c[l]=o[l]);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},d_}function k_(){if(v_)return y_;v_=1;return y_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function E_(){return m_?g_:(m_=1,g_=Function.call.bind(Object.prototype.hasOwnProperty))}function C_(){if(w_)return b_;w_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=k_(),r={},n=E_();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,u){if("production"!==process.env.NODE_ENV)for(var l in i)if(n(i,l)){var s;try{if("function"!=typeof i[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[l](o,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` 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=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},b_=i}function T_(){if(O_)return x_;O_=1;var t=A_(),e=M_(),r=k_(),n=E_(),i=C_(),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){}}),x_=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,n,i,o,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,i,o,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:y((function(t,e,r,n,i){var o=t[e];return c(o)?null:new h("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new h("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:y((function(t,e,r,n,i){return m(t[e])?null:new h("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,i,o,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=e[i],l=b(u);if("object"!==l)return new h("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,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 y((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")}))},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 y((function(e,i,o,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,i,o,a){var c=e[n],u=b(c);if("object"!==u)return new h("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return g(i,o,a,l,w(s));var f=s(c,l,i,o,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return y((function(i,o,a,c,u){var l=i[o],s=b(l);if("object"!==s)return new h("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return g(a,c,u,p,w(d));if(!d)return new h("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=d(l,p,a,c,u+"."+p,r);if(y)return y}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,l,s,p,d){if(l=l||f,p=p||c,d!==r){if(u){var y=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 y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. 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[v]=!0,n++)}}return null==a[c]?i?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function v(t){return y((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new h("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){return new h((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&&(l&&t[l]||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 h.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},x_}function D_(){if(__)return S_;__=1;var t=k_();function e(){}function r(){}return r.resetWarningCache=e,S_=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 I_(){if(j_)return u_.exports;if(j_=1,"production"!==process.env.NODE_ENV){var t=A_();u_.exports=T_()(t.isElement,true)}else u_.exports=D_()();return u_.exports}var N_=dr(I_()),R_=Object.getOwnPropertyNames,L_=Object.getOwnPropertySymbols,B_=Object.prototype.hasOwnProperty;function z_(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function $_(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 H_(t){return R_(t).concat(L_(t))}var F_=Object.hasOwn||function(t,e){return B_.call(t,e)};function U_(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var V_="_owner",W_=Object.getOwnPropertyDescriptor,Z_=Object.keys;function q_(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 Y_(t,e){return U_(t.getTime(),e.getTime())}function X_(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 u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=n.value,p=f[0],d=f[1],h=i.value,y=h[0],v=h[1];l||o[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(d,v,p,y,t,e,r))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function K_(t,e,r){var n,i=Z_(t),o=i.length;if(Z_(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===V_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!F_(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function G_(t,e,r){var n,i,o,a=H_(t),c=a.length;if(H_(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===V_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!F_(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=W_(t,n),o=W_(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function J_(t,e){return U_(t.valueOf(),e.valueOf())}function Q_(t,e){return t.source===e.source&&t.flags===e.flags}function tj(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(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[l]=!0),l++;if(!u)return!1}return!0}function ej(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 rj="[object Arguments]",nj="[object Boolean]",ij="[object Date]",oj="[object Map]",aj="[object Number]",cj="[object Object]",uj="[object RegExp]",lj="[object Set]",sj="[object String]",fj=Array.isArray,pj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,dj=Object.assign,hj=Object.prototype.toString.call.bind(Object.prototype.toString);var yj=vj();function vj(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,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?G_:q_,areDatesEqual:Y_,areMapsEqual:n?z_(X_,G_):X_,areObjectsEqual:n?G_:K_,arePrimitiveWrappersEqual:J_,areRegExpsEqual:Q_,areSetsEqual:n?z_(tj,G_):tj,areTypedArraysEqual:n?G_:ej};if(r&&(i=dj({},i,r(i))),e){var o=$_(i.areArraysEqual),a=$_(i.areMapsEqual),c=$_(i.areObjectsEqual),u=$_(i.areSetsEqual);i=dj({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return i(t,l,s);if(fj(t))return e(t,l,s);if(null!=pj&&pj(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=hj(t);return p===ij?r(t,l,s):p===uj?a(t,l,s):p===oj?n(t,l,s):p===lj?c(t,l,s):p===cj?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):p===rj?i(t,l,s):(p===nj||p===aj||p===sj)&&o(t,l,s)}}(u),s=i?i(l):(e=l,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(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,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:l,createState:o,equals:s,strict:c})}function gj(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 mj(t){return mj="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},mj(t)}function bj(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 wj(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 wj(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 wj(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 xj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=bj(n),o=i[0],a=i.slice(1);return"number"==typeof o?void gj(r.bind(null,a),o):(r(o),void gj(r.bind(null,a)))}"object"===mj(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 Oj(t){return Oj="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},Oj(t)}function Sj(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 _j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sj(Object(r),!0).forEach((function(e){jj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Oj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Oj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Oj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}vj({strict:!0}),vj({circular:!0}),vj({circular:!0,strict:!0}),vj({createInternalComparator:function(){return U_}}),vj({strict:!0,createInternalComparator:function(){return U_}}),vj({circular:!0,createInternalComparator:function(){return U_}}),vj({circular:!0,createInternalComparator:function(){return U_},strict:!0});var Pj=function(t){return t},Aj=function(t,e){return Object.keys(e).reduce((function(r,n){return _j(_j({},r),{},jj({},n,t(n,e[n])))}),{})},Mj=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(",")},kj="production"!==process.env.NODE_ENV,Ej=function(t,e,r,n,i,o,a,c){if(kj&&"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 u=[r,n,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Cj(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||Dj(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 Tj(t){return function(t){if(Array.isArray(t))return Ij(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Dj(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 Dj(t,e){if(t){if("string"==typeof t)return Ij(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)?Ij(t,e):void 0}}function Ij(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 Nj=1e-4,Rj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Lj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Bj=function(t,e){return function(r){var n=Rj(t,e);return Lj(n,r)}},zj=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 u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Cj(u,4);n=l[0],i=l[1],o=l[2],a=l[3]}else Ej(!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)}Ej([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=Bj(n,o),d=Bj(i,a),h=(s=n,f=o,function(t){var e=Rj(s,f),r=[].concat(Tj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Lj(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=h(n);if(Math.abs(o-r)<Nj||a<Nj)return d(n);n=(e=n-o/a)>1?1:e<0?0:e}return d(n)};return y.isStepper=!1,y},$j=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 zj(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)<Nj&&Math.abs(o)<Nj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return zj(n);Ej(!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:(Ej(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Hj(t){return Hj="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},Hj(t)}function Fj(t){return function(t){if(Array.isArray(t))return Yj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||qj(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 Uj(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 Vj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uj(Object(r),!0).forEach((function(e){Wj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Hj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Hj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Hj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zj(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||qj(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 qj(t,e){if(t){if("string"==typeof t)return Yj(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)?Yj(t,e):void 0}}function Yj(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 Xj=function(t,e,r){return t+(e-t)*r},Kj=function(t){return t.from!==t.to},Gj=function t(e,r,n){var i=Aj((function(t,r){if(Kj(r)){var n=Zj(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return Vj(Vj({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Aj((function(t,e){return Kj(e)?Vj(Vj({},e),{},{velocity:Xj(e.velocity,i[t].velocity,n),from:Xj(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},Jj=function(t,e,r,n,i){var o,a,c,u,l=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Vj(Vj({},r),{},Wj({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Vj(Vj({},r),{},Wj({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=Gj(r,f,o),i(Vj(Vj(Vj({},t),e),Aj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(Kj).length&&(p=requestAnimationFrame(d))}:function(o){u||(u=o);var a=(o-u)/n,c=Aj((function(t,e){return Xj.apply(void 0,Fj(e).concat([r(a)]))}),s);if(i(Vj(Vj(Vj({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var l=Aj((function(t,e){return Xj.apply(void 0,Fj(e).concat([r(1)]))}),s);i(Vj(Vj(Vj({},t),e),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function Qj(t){return Qj="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},Qj(t)}var tP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function eP(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 rP(t){return function(t){if(Array.isArray(t))return nP(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 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)||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 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 iP(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?iP(Object(r),!0).forEach((function(e){aP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aP(t,e,r){return(e=uP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cP(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,uP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uP(t){var e=function(t,e){if("object"!==Qj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Qj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qj(e)?e:String(e)}function lP(t,e){return lP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lP(t,e)}function sP(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=dP(t);if(e){var i=dP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return fP(this,r)}}function fP(t,e){if(e&&("object"===Qj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pP(t)}function pP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dP(t){return dP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dP(t)}var hP=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&&lP(t,e)}(r,dt);var e=sP(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,u=o.from,l=o.to,s=o.steps,f=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(pP(i)),i.changeStyle=i.changeStyle.bind(pP(i)),!a||p<=0)return i.state={style:{}},"function"==typeof f&&(i.state={style:l}),fP(i);if(s&&s.length)i.state={style:s[0].style};else if(u){if("function"==typeof f)return i.state={style:u},fP(i);i.state={style:c?aP({},c,u):u}}else i.state={style:{}};return i}return cP(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,u=this.state.style;if(n)if(r){if(!(yj(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||o?c:t.to;if(this.state&&u){var f={style:i?aP({},i,s):s};(i&&u[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(oP(oP({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?aP({},i,a):a};this.state&&u&&(i&&u[i]!==a||!i&&u!==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,u=t.onAnimationStart,l=Jj(r,n,$j(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},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,u=void 0===c?0:c;return this.manager.start([i].concat(rP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(rP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var d=Mj(p,o,c),h=oP(oP(oP({},f.style),u),{},{transition:d});return[].concat(rP(t),[h,o,s]).filter(Pj)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=xj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=n?aP({},n,i):i,p=Mj(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=eP(t,tP),o=pt.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 xt(t,oP(oP({},i),{},{style:oP(oP({},n),a),className:o}))};return 1===o?c(pt.only(e)):st.createElement("div",null,pt.map(e,(function(t){return c(t)})))}}]),r}();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)}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)}function gP(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return mP(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 mP(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 mP(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 bP(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 wP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bP(Object(r),!0).forEach((function(e){xP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=yP(t)||!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:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}hP.displayName="Animate",hP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},hP.propTypes={from:N_.oneOfType([N_.object,N_.string]),to:N_.oneOfType([N_.object,N_.string]),attributeName:N_.string,duration:N_.number,begin:N_.number,easing:N_.oneOfType([N_.string,N_.func]),steps:N_.arrayOf(N_.shape({duration:N_.number.isRequired,style:N_.object.isRequired,easing:N_.oneOfType([N_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),N_.func]),properties:N_.arrayOf("string"),onAnimationEnd:N_.func})),children:N_.oneOfType([N_.node,N_.func]),isActive:N_.bool,canBegin:N_.bool,onAnimationEnd:N_.func,shouldReAnimate:N_.bool,onAnimationStart:N_.func,onAnimationReStart:N_.func};var OP=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=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(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\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(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),o+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\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(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").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(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").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},SP=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 u=Math.min(i,i+a),l=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},_P={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jP=function(t){var e=wP(wP({},_P),t),r=yt(),n=gP(gt(-1),2),i=n[0],o=n[1];bt((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,u=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var g=Dn("recharts-rectangle",f);return v?st.createElement(hP,{canBegin:i>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return st.createElement(hP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:y,easing:p},st.createElement("path",vP({},lc(e,!0),{className:g,d:OP(a,c,n,o,s),ref:r})))})):st.createElement("path",vP({},lc(e,!0),{className:g,d:OP(a,c,u,l,s)}))};function PP(){return PP=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},PP.apply(this,arguments)}var AP=function(t){var e=t.cx,r=t.cy,n=t.r,i=Dn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?st.createElement("circle",PP({},lc(t,!1),qa(t),{className:i,cx:e,cy:r,r:n})):null};function MP(t){return MP="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},MP(t)}var kP=["x","y","top","left","width","height","className"];function EP(){return EP=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},EP.apply(this,arguments)}function CP(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 TP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=MP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=MP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==MP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DP(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 IP,NP,RP,LP,BP=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},zP=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,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,d=t.className,h=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?CP(Object(r),!0).forEach((function(e){TP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:u,width:s,height:p},DP(t,kP));return Da(r)&&Da(i)&&Da(s)&&Da(p)&&Da(a)&&Da(u)?st.createElement("path",EP({},lc(h,!0),{className:Dn("recharts-cross",d),d:BP(r,i,s,p,a,u)})):null};var $P,HP,FP=function(){if(LP)return RP;LP=1;var t=No(),e=function(){if(NP)return IP;NP=1;var t=yp()(Object.getPrototypeOf,Object);return IP=t}(),r=Ro(),n=Function.prototype,i=Object.prototype,o=n.toString,a=i.hasOwnProperty,c=o.call(Object);return RP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var i=e(n);if(null===i)return!0;var u=a.call(i,"constructor")&&i.constructor;return"function"==typeof u&&u instanceof u&&o.call(u)==c}}(),UP=dr(FP);var VP=dr(function(){if(HP)return $P;HP=1;var t=No(),e=Ro();return $P=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());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)}function ZP(){return ZP=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},ZP.apply(this,arguments)}function qP(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return YP(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 YP(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 YP(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 KP(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){GP(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 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}var JP,QP,tA,eA,rA,nA,iA,oA,aA=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")},cA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uA=function(t){var e=KP(KP({},cA),t),r=yt(),n=qP(gt(-1),2),i=n[0],o=n[1];bt((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,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=Dn("recharts-trapezoid",f);return y?st.createElement(hP,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return st.createElement(hP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},st.createElement("path",ZP({},lc(e,!0),{className:v,d:aA(c,u,n,o,a),ref:r})))})):st.createElement("g",null,st.createElement("path",ZP({},lc(e,!0),{className:v,d:aA(a,c,u,l,s)})))},lA=["option","shapeType","propTransformer","activeClassName","isActive"];function sA(t){return sA="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},sA(t)}function fA(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 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 dA(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){hA(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 hA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=sA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yA(t,e){return dA(dA({},e),t)}function vA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return st.createElement(jP,r);case"trapezoid":return st.createElement(uA,r);case"sector":return st.createElement(XS,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return st.createElement(nl,r);break;default:return null}}function gA(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?yA:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=fA(t,lA);if(ft(r))e=xt(r,dA(dA({},l),function(t){return ft(t)?t.props:t}(r)));else if(ya(r))e=r(l);else if(UP(r)&&!VP(r)){var s=o(r,l);e=st.createElement(vA,{shapeType:n,elementProps:s})}else{var f=l;e=st.createElement(vA,{shapeType:n,elementProps:f})}return u?st.createElement(Rc,{className:c},e):e}function mA(t,e){return null!=e&&"trapezoids"in t.props}function bA(t,e){return null!=e&&"sectors"in t.props}function wA(t,e){return null!=e&&"points"in t.props}function xA(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 OA(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function SA(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function _A(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return mA(t,e)?r="trapezoids":bA(t,e)?r="sectors":wA(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return mA(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:bA(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:wA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=ex(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return mA(t,e)?r=xA:bA(t,e)?r=OA:wA(t,e)&&(r=SA),r}(r,e);return n(t,e)})),u=r.props[i].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function jA(){if(eA)return tA;eA=1;var t=ty(),e=1/0;return tA=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 PA(){if(nA)return rA;nA=1;var t=function(){if(QP)return JP;QP=1;var t=Math.ceil,e=Math.max;return JP=function(r,n,i,o){for(var a=-1,c=e(t((n-r)/(i||1)),0),u=Array(c);c--;)u[o?c:++a]=r,r+=i;return u}}(),e=Qd(),r=jA();return rA=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 AA=function(){if(oA)return iA;oA=1;var t=PA()();return iA=t}(),MA=dr(AA);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 EA(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?EA(Object(r),!0).forEach((function(e){TA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):EA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function TA(t,e,r){return e=function(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"===e?String:Number)(t)}(t,"string");return"symbol"==kA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var DA=["Webkit","Moz","O","ms"];function IA(t){return IA="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},IA(t)}function NA(){return NA=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},NA.apply(this,arguments)}function RA(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 LA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?RA(Object(r),!0).forEach((function(e){UA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BA(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,VA(n.key),n)}}function zA(t,e,r){return e=HA(e),function(t,e){if(e&&("object"===IA(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,$A()?Reflect.construct(e,r||[],HA(t).constructor):e.apply(t,r))}function $A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($A=function(){return!!t})()}function HA(t){return HA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},HA(t)}function FA(t,e){return FA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},FA(t,e)}function UA(t,e,r){return(e=VA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VA(t){var e=function(t,e){if("object"!=IA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=IA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==IA(e)?e:e+""}var WA,ZA,qA,YA,XA=function(t){return t.changedTouches&&!!t.changedTouches.length},KA=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),UA(r=zA(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)})),UA(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),UA(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()})),UA(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),UA(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),UA(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),UA(r,"handleSlideDragStart",(function(t){var e=XA(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&&FA(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,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(i,u),f=e.getIndexInRange(i,l);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=TO(r[t],i,t);return ya(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,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-i,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-i));var d=this.getIndex({startX:n+p,endX:i+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=XA(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,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),h[n]=a+y;var v=this.getIndex(h),g=v.startIndex,m=v.endIndex;this.setState(UA(UA({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.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(v))}))}},{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],u=i.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(UA({},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 st.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,u=pt.only(a);return u?st.cloneElement(u,{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,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,y=Math.max(t,this.props.x),v=LA(LA({},lc(this.props,!1)),{},{x:y,y:c,width:u,height:l}),g=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[h])||void 0===i?void 0:i.name);return st.createElement(Rc,{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,v))}},{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,u=Math.max(Math.abs(e-t)-a,0);return st.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:u,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,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return st.createElement(Rc,{className:"recharts-brush-texts"},st.createElement(Yy,NA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+i/2},s),this.getTextOfTick(e)),st.createElement(Yy,NA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+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,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,d=l.isSlideMoving,h=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!Da(i)||!Da(o)||!Da(a)||!Da(c)||a<=0||c<=0)return null;var v,g,m,b,w=Dn("recharts-brush",r),x=1===st.Children.count(n),O=(g="none",m=(v="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=DA.reduce((function(t,e){return CA(CA({},t),{},TA({},e+m,g))}),{}))[v]=g,b);return st.createElement(Rc,{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||d||h||y||u)&&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 st.createElement(st.Fragment,null,st.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),st.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),st.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 st.isValidElement(t)?st.cloneElement(t,r):ya(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,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return LA({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,u=Sv().domain(MA(0,c)).range([i,i+o-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=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:l}}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&&BA(r.prototype,n),i&&BA(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();UA(KA,"displayName","Brush"),UA(KA,"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 GA,JA,QA,tM,eM=function(){if(YA)return qA;YA=1;var t=ps(),e=Ep(),r=function(){if(ZA)return WA;ZA=1;var t=Wd();return WA=function(e,r){var n;return t(e,(function(t,e,i){return!(n=r(t,e,i))})),!!n}}(),n=Co(),i=Qd();return qA=function(o,a,c){var u=n(o)?t:r;return c&&i(o,a,c)&&(a=void 0),u(o,e(a,3))}}(),rM=dr(eM),nM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var iM,oM,aM,cM,uM,lM,sM=function(){if(tM)return QA;tM=1;var t=function(){if(JA)return GA;JA=1;var t=Kd();return GA=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},GA}(),e=Vd(),r=Ep();return QA=function(n,i){var o={};return i=r(i,3),e(n,(function(e,r,n){t(o,r,i(e,r,n))})),o},QA}(),fM=dr(sM);var pM=function(){if(lM)return uM;lM=1;var t=(oM||(oM=1,iM=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}),iM),e=function(){if(cM)return aM;cM=1;var t=Wd();return aM=function(e,r){var n=!0;return t(e,(function(t,e,i){return n=!!r(t,e,i)})),n}}(),r=Ep(),n=Co(),i=Qd();return uM=function(o,a,c){var u=n(o)?t:e;return c&&i(o,a,c)&&(a=void 0),u(o,r(a,3))}}(),dM=dr(pM),hM=["x","y"];function yM(t){return yM="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},yM(t)}function vM(){return vM=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},vM.apply(this,arguments)}function gM(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 mM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gM(Object(r),!0).forEach((function(e){bM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=yM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=yM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wM(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 xM(t,e){var r=t.x,n=t.y,i=wM(t,hM),o="".concat(r),a=parseInt(o,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||i.height),s=parseInt(l,10),f="".concat(e.width||i.width),p=parseInt(f,10);return mM(mM(mM(mM(mM({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function OM(t){return st.createElement(gA,vM({shapeType:"rectangle",propTransformer:xM,activeClassName:"recharts-active-bar"},t))}var SM,_M=["value","background"];function jM(t){return jM="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},jM(t)}function PM(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 AM(){return AM=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},AM.apply(this,arguments)}function MM(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 kM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?MM(Object(r),!0).forEach((function(e){NM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):MM(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,RM(n.key),n)}}function CM(t,e,r){return e=DM(e),function(t,e){if(e&&("object"===jM(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,TM()?Reflect.construct(e,r||[],DM(t).constructor):e.apply(t,r))}function TM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(TM=function(){return!!t})()}function DM(t){return DM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},DM(t)}function IM(t,e){return IM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},IM(t,e)}function NM(t,e,r){return(e=RM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RM(t){var e=function(t,e){if("object"!=jM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=jM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==jM(e)?e:e+""}var LM=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 NM(t=CM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),NM(t,"id",Ra("recharts-bar-")),NM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),NM(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&&IM(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=lc(this.props,!1);return t&&t.map((function(t,r){var u=r===o,l=u?a:n,s=kM(kM(kM({},c),t),{},{isActive:u,option:l,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return st.createElement(Rc,AM({className:"recharts-bar-rectangle"},Ya(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)}),st.createElement(OM,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,u=e.animationId,l=this.state.prevData;return st.createElement(hP,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=l&&l[e];if(r){var o=za(r.x,t.x),a=za(r.y,t.y),c=za(r.width,t.width),u=za(r.height,t.height);return kM(kM({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=za(0,t.height)(i);return kM(kM({},t),{},{y:t.y+t.height-s,height:s})}var f=za(0,t.width)(i);return kM(kM({},t),{},{width:f})}));return st.createElement(Rc,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&&ex(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=lc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=PM(e,_M);if(!a)return null;var u=kM(kM(kM(kM(kM({},c),{},{fill:"#eee"},a),o),Ya(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return st.createElement(OM,AM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},u))}))}},{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=ic(r.children,wO);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:TO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Rc,s,c.map((function(t){return st.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{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,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=Dn("recharts-bar",n),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,g=y||v,m=fa(p)?this.id:p;return st.createElement(Rc,{className:h},y||v?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(m)},st.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,st.createElement(Rc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||d)&&$S.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&&EM(r.prototype,n),i&&EM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function BM(t){return BM="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},BM(t)}function zM(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,UM(n.key),n)}}function $M(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 HM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$M(Object(r),!0).forEach((function(e){FM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$M(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function FM(t,e,r){return(e=UM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UM(t){var e=function(t,e){if("object"!=BM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=BM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==BM(e)?e:e+""}SM=LM,NM(LM,"displayName","Bar"),NM(LM,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Mh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),NM(LM,"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,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,d=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(!d)return null;var h=e.layout,y=r.type.defaultProps,v=void 0!==y?kM(kM({},y),r.props):r.props,g=v.dataKey,m=v.children,b=v.minPointSize,w="horizontal"===h?a:o,x=l?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=ic(m,fy),_=f.map((function(t,e){var n,f,p,y,v,m;l?n=function(t,e){if(!e||2!==e.length||!Da(e[0])||!Da(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(!Da(t[0])||t[0]<r)&&(i[0]=r),(!Da(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(l[s+e],x):(n=TO(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?aO(0,"minPointSize callback function received a value with type of ".concat(yM(r),". Currently only numbers are supported.")):aO()),e)}}(b,SM.defaultProps.minPointSize)(n[1],e);if("horizontal"===h){var _,j=[a.scale(n[0]),a.scale(n[1])],P=j[0],A=j[1];f=WO({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,y=d.size;var M=P-A;if(v=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var k=Ca(v||w)*(Math.abs(w)-Math.abs(v));p-=k,v+=k}}else{var E=[o.scale(n[0]),o.scale(n[1])],C=E[0],T=E[1];if(f=C,p=WO({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:t,index:e}),y=T-C,v=d.size,m={x:o.x,y:p,width:o.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=Ca(y||w)*(Math.abs(w)-Math.abs(y))}return kM(kM(kM({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[JO(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return kM({data:_,layout:h},p)}));var VM=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=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(u,LM);return l.reduce((function(o,a){var u,l,p,d,h,y=e[a],v=y.orientation,g=y.domain,m=y.padding,b=void 0===m?{}:m,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=g[1]-g[0],_=1/0,j=y.categoricalDomain.sort();if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=P*A/2),"no-gap"===y.padding){var M=La(t.barCategoryGap,P*A),k=P*A/2;u=k-M-(k-M)/A*M}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var E=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:xv(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Wg(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Sv(),realScaleType:"point"}:"category"===i?{scale:xv(),realScaleType:"band"}:{scale:Wg(),realScaleType:"linear"};if(ha(n)){var c="scale".concat(Uc(n));return{scale:(Rw[c]||Sv)(),realScaleType:Rw[c]?c:"point"}}return ya(n)?{scale:n}:{scale:Sv(),realScaleType:"point"}}(y,i,f),C=E.scale,T=E.realScaleType;C.domain(g).range(l),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])-HO,o=Math.max(n[0],n[1])+HO,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(C);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 u=t.domain();if(!u.length)return null;var l=rO(u,i,a);return t.domain([Xw(l),Uw(l)]),{niceTicks:l}}if(i&&"number"===n){var s=t.domain();return{niceTicks:nO(s,i,a)}}return null}(C,HM(HM({},y),{},{realScaleType:T}));"xAxis"===n?(h="top"===v&&!w||"bottom"===v&&w,p=r.left,d=s[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!w||"right"===v&&w,p=s[O]-h*y.width,d=r.top);var I=HM(HM(HM({},y),D),{},{realScaleType:T,x:p,y:d,scale:C,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=KO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,HM(HM({},o),{},FM({},a,I))}),{})},WM=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)}},ZM=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&&zM(e.prototype,r),n&&zM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();FM(ZM,"EPS",1e-4);var qM=function(t){var e=Object.keys(t).reduce((function(e,r){return HM(HM({},e),{},FM({},r,ZM.create(t[r])))}),{});return HM(HM({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return fM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return dM(t,(function(t,r){return e[r].isInRange(t)}))}})};var YM,XM,KM,GM,JM,QM,tk,ek,rk=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 nk(){if(QM)return JM;QM=1;var t=Cp(),e=Ep(),r=function(){if(GM)return KM;GM=1;var t=jA();return KM=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return JM=function(i,o,a){var c=null==i?0:i.length;if(!c)return-1;var u=null==a?0:r(a);return u<0&&(u=n(c+u,0)),t(i,e(o,3),u)},JM}!function(){if(ek)return tk;ek=1;var t=function(){if(XM)return YM;XM=1;var t=Ep(),e=gp(),r=mp();return YM=function(n){return function(i,o,a){var c=Object(i);if(!e(i)){var u=t(o,3);i=r(i),o=function(t){return u(c[t],t,c)}}var l=n(i,o,a);return l>-1?c[u?i[l]:l]:void 0}}}(),e=t(nk());tk=e}();var ik=dr(Jo())((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 ak=_t(void 0),ck=_t(void 0),uk=_t(void 0),lk=_t({}),sk=_t(void 0),fk=_t(0),pk=_t(0),dk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,u=t.height,l=ik(i);return st.createElement(ak.Provider,{value:r},st.createElement(ck.Provider,{value:n},st.createElement(lk.Provider,{value:i},st.createElement(uk.Provider,{value:l},st.createElement(sk.Provider,{value:o},st.createElement(fk.Provider,{value:u},st.createElement(pk.Provider,{value:c},a)))))))};function hk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var yk=function(t){var e=St(ak);null==e&&("production"!==process.env.NODE_ENV?aO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(ok(t),"]. ").concat(hk(e))):aO()),r},vk=function(t){var e=St(ck);null==e&&("production"!==process.env.NODE_ENV?aO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(ok(t),"]. ").concat(hk(e))):aO()),r},gk=function(){return St(pk)},mk=function(){return St(fk)};function bk(t){return bk="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},bk(t)}function wk(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,Mk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xk(t,e,r){return e=Sk(e),function(t,e){if(e&&("object"===bk(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,Ok()?Reflect.construct(e,r||[],Sk(t).constructor):e.apply(t,r))}function Ok(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ok=function(){return!!t})()}function Sk(t){return Sk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sk(t)}function _k(t,e){return _k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_k(t,e)}function jk(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 Pk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jk(Object(r),!0).forEach((function(e){Ak(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ak(t,e,r){return(e=Mk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mk(t){var e=function(t,e){if("object"!=bk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==bk(e)?e:e+""}function kk(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ek(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 Ek(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 Ek(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 Ck(){return Ck=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},Ck.apply(this,arguments)}function Tk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=St(sk),s=yk(i),f=vk(o),p=St(uk);if(!l||!p)return null;Bc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,i,o,a,c,u){var l=i.x,s=i.y,f=i.width,p=i.height;if(r){var d=u.y,h=t.y.apply(d,{position:o});if(nM(u,"discard")&&!t.y.isInRange(h))return null;var y=[{x:l+f,y:h},{x:l,y:h}];return"left"===c?y.reverse():y}if(e){var v=u.x,g=t.x.apply(v,{position:o});if(nM(u,"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=u.segment.map((function(e){return t.apply(e,{position:o})}));return nM(u,"discard")&&rM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(qM({x:s.scale,y:f.scale}),Ia(e),Ia(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=kk(d,2),y=h[0],v=y.x,g=y.y,m=h[1],b=m.x,w=m.y,x=Pk(Pk({clipPath:nM(t,"hidden")?"url(#".concat(l,")"):void 0},lc(t,!0)),{},{x1:v,y1:g,x2:b,y2:w});return st.createElement(Rc,{className:Dn("recharts-reference-line",c)},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement("line",Ck({},e,{className:"recharts-reference-line-line"}))}(a,x),SS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return WM({x:e,y:r},{x:n,y:i})}({x1:v,y1:g,x2:b,y2:w})))}var Dk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),xk(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&&_k(t,e)}(e,st.Component),wk(e,[{key:"render",value:function(){return st.createElement(Tk,this.props)}}])}();function Ik(){return Ik=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},Ik.apply(this,arguments)}function Nk(t){return Nk="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},Nk(t)}function Rk(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 Lk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rk(Object(r),!0).forEach((function(e){Uk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bk(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,Vk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function zk(t,e,r){return e=Hk(e),function(t,e){if(e&&("object"===Nk(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,$k()?Reflect.construct(e,r||[],Hk(t).constructor):e.apply(t,r))}function $k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($k=function(){return!!t})()}function Hk(t){return Hk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hk(t)}function Fk(t,e){return Fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fk(t,e)}function Uk(t,e,r){return(e=Vk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vk(t){var e=function(t,e){if("object"!=Nk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Nk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Nk(e)?e:e+""}Ak(Dk,"displayName","ReferenceLine"),Ak(Dk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Wk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),zk(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&&Fk(t,e)}(e,st.Component),Bk(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=Ia(r),u=Ia(n);if(Bc(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=qM({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return nM(t,"discard")&&!o.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,d=p.shape,h=p.className,y=Lk(Lk({clipPath:nM(this.props,"hidden")?"url(#".concat(a,")"):void 0},lc(this.props,!0)),{},{cx:s,cy:f});return st.createElement(Rc,{className:Dn("recharts-reference-dot",h)},e.renderDot(d,y),SS.renderCallByParent(this.props,{x:s-i,y:f-i,width:2*i,height:2*i}))}}])}();function Zk(){return Zk=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},Zk.apply(this,arguments)}function qk(t){return qk="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},qk(t)}function Yk(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 Xk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yk(Object(r),!0).forEach((function(e){eE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Kk(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,rE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gk(t,e,r){return e=Qk(e),function(t,e){if(e&&("object"===qk(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,Jk()?Reflect.construct(e,r||[],Qk(t).constructor):e.apply(t,r))}function Jk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jk=function(){return!!t})()}function Qk(t){return Qk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qk(t)}function tE(t,e){return tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tE(t,e)}function eE(t,e,r){return(e=rE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rE(t){var e=function(t,e){if("object"!=qk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=qk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==qk(e)?e:e+""}Uk(Wk,"displayName","ReferenceDot"),Uk(Wk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),Uk(Wk,"renderDot",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement(AP,Ik({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var nE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Gk(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&&tE(t,e)}(e,st.Component),Kk(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,u=t.clipPathId;Bc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Ia(r),s=Ia(n),f=Ia(i),p=Ia(o),d=this.props.shape;if(!(l||s||f||p||d))return null;var h=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,l=i.xAxis,s=i.yAxis;if(!l||!s)return null;var f=qM({x:l.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},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!nM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?WM(p,d):null}(l,s,f,p,this.props);if(!h&&!d)return null;var y=nM(this.props,"hidden")?"url(#".concat(u,")"):void 0;return st.createElement(Rc,{className:Dn("recharts-reference-area",a)},e.renderRect(d,Xk(Xk({clipPath:y},lc(this.props,!0)),h)),SS.renderCallByParent(this.props,h))}}])}();function iE(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 oE(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 aE(t){return aE="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},aE(t)}function cE(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 uE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cE(Object(r),!0).forEach((function(e){lE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=aE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=aE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==aE(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sE(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(Da(u)||Mh)return function(t,e){return iE(t,e+1)}(i,"number"==typeof u&&Da(u)?u:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?by(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var i=ya(l)?l(t.value,n):t.value;return"width"===d?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return rk(n,r)}(by(i,{fontSize:e,letterSpacing:r}),h,f):by(i,{fontSize:e,letterSpacing:r})[d]},v=i.length>=2?Ca(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,v,d);return"equidistantPreserveStart"===u?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:iE(n,s)};var o,a=l,p=function(){return void 0===o&&(o=r(e,a)),o},d=e.coordinate,h=0===l||oE(t,d,p,f,u);h||(l=0,f=c,s+=1),h&&(f=d+t*(p()/2+i),l+=s)};s<=a.length;)if(o=p())return o.v;return[]}(v,g,y,i,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=uE(uE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),oE(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=uE(uE({},s),{},{isShow:!0}))}for(var d=o?c-1:c,h=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-u);a[e]=o=uE(uE({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=uE(uE({},o),{},{tickCoord:o.coordinate});oE(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=uE(uE({},o),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(v,g,y,i,a,"preserveStartEnd"===u):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var n,l=o[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=uE(uE({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=uE(uE({},l),{},{tickCoord:l.coordinate});oE(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=uE(uE({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(v,g,y,i,a),p.filter((function(t){return t.isShow})))}eE(nE,"displayName","ReferenceArea"),eE(nE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),eE(nE,"renderRect",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement(jP,Zk({},e,{className:"recharts-reference-area-rect"}))}));var fE=["viewBox"],pE=["viewBox"],dE=["ticks"];function hE(t){return hE="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},hE(t)}function yE(){return yE=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},yE.apply(this,arguments)}function vE(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 gE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vE(Object(r),!0).forEach((function(e){_E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mE(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 bE(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,jE(n.key),n)}}function wE(t,e,r){return e=OE(e),function(t,e){if(e&&("object"===hE(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,xE()?Reflect.construct(e,r||[],OE(t).constructor):e.apply(t,r))}function xE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xE=function(){return!!t})()}function OE(t){return OE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},OE(t)}function SE(t,e){return SE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},SE(t,e)}function _E(t,e,r){return(e=jE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jE(t){var e=function(t,e){if("object"!=hE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=hE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==hE(e)?e:e+""}var PE=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=wE(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&&SE(t,e)}(e,jt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=mE(t,fE),i=this.props,o=i.viewBox,a=mE(i,pE);return!Ha(r,o)||!Ha(n,a)||!Ha(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,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,y=c.tickMargin,v=h?-1:1,g=t.tickSize||d,m=Da(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=l+ +!h*f)-v*g)-v*y,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=u+ +!h*s)-v*g)-v*y,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=u+ +h*s)+v*g)+v*y,a=m;break;default:e=r=t.coordinate,a=(n=(i=l+ +h*f)+v*g)+v*y,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,u=gE(gE(gE({},lc(this.props,!1)),lc(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=gE(gE({},u),{},{x1:e,y1:r+l*i,x2:e+n,y2:r+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=gE(gE({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return st.createElement("line",yE({},u,{className:Dn("recharts-cartesian-axis-line",ua(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,s=o.unit,f=sE(gE(gE({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=lc(this.props,!1),y=lc(u,!1),v=gE(gE({},h),{},{fill:"none"},lc(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=gE(gE(gE(gE({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},y),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return st.createElement(Rc,yE({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Ya(i.props,t,r)),a&&st.createElement("line",yE({},v,o,{className:Dn("recharts-cartesian-axis-tick-line",ua(a,"className"))})),u&&e.renderTickItem(u,m,"".concat(ya(l)?l(t.value,r):t.value).concat(s||"")))}));return st.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,u=c.ticks,l=mE(c,dE),s=u;return ya(o)&&(s=u&&u.length>0?o(this.props):o(l)),n<=0||i<=0||!s||!s.length?null:st.createElement(Rc,{className:Dn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),SS.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement(Yy,yE({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&bE(r.prototype,n),i&&bE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();_E(PE,"displayName","CartesianAxis"),_E(PE,"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 AE=["type","layout","connectNulls","ref"],ME=["key"];function kE(t){return kE="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},kE(t)}function EE(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 CE(){return CE=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},CE.apply(this,arguments)}function TE(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?TE(Object(r),!0).forEach((function(e){HE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IE(t){return function(t){if(Array.isArray(t))return NE(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 NE(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 NE(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 NE(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 RE(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,FE(n.key),n)}}function LE(t,e,r){return e=zE(e),function(t,e){if(e&&("object"===kE(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,BE()?Reflect.construct(e,r||[],zE(t).constructor):e.apply(t,r))}function BE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(BE=function(){return!!t})()}function zE(t){return zE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zE(t)}function $E(t,e){return $E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$E(t,e)}function HE(t,e,r){return(e=FE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FE(t){var e=function(t,e){if("object"!=kE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==kE(e)?e:e+""}var UE=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 HE(t=LE(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),HE(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),HE(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,u=n-r,l=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){l=[].concat(IE(i.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(IE(e.repeat(i,a)),IE(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),HE(t,"id",Ra("recharts-line-")),HE(t,"pathRef",(function(e){t.mainCurve=e})),HE(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),HE(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&&$E(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=ic(r.children,wO);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:TO(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Rc,l,c.map((function(t){return st.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{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,u=lc(this.props,!1),l=lc(o,!0),s=a.map((function(t,r){var n=DE(DE(DE({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Rc,CE({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 u=EE(i,AE),l=DE(DE(DE({},lc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return st.createElement(c_,CE({},l,{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,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,y=h.prevPoints,v=h.totalLength;return st.createElement(hP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],i=za(n.x,t.x),o=za(n.y,t.y);return DE(DE({},t),{},{x:i(a),y:o(a)})}if(f){var u=za(2*p,t.x),l=za(d/2,t.y);return DE(DE({},t),{},{x:u(a),y:l(a)})}return DE(DE({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=za(0,v)(a);if(o){var h="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,h)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{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||!ex(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,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,y=1===i.length,v=Dn("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=fa(d)?this.id:d,x=null!==(t=lc(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=(uc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Rc,{className:v},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?l:l-s/2,y:m?u:u-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:l-M/2,y:u-M/2,width:s+M,height:f+M}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,A,w),(!p||h)&&$S.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(IE(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(IE(n),IE(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(ya(t))r=t(e);else{var n=e.key,i=EE(e,ME),o=Dn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=st.createElement(AP,CE({key:n},i,{className:o}))}return r}}],n&&RE(r.prototype,n),i&&RE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();HE(UE,"displayName","Line"),HE(UE,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Mh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),HE(UE,"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,u=t.displayedData,l=t.offset,s=e.layout;return DE({points:u.map((function(t,e){var u=TO(t,a);return"horizontal"===s?{x:VO({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:fa(u)?null:n.scale(u),value:u,payload:t}:{x:fa(u)?null:r.scale(u),y:VO({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var VE,WE=["layout","type","stroke","connectNulls","isRange","ref"],ZE=["key"];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 YE(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 XE(){return XE=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},XE.apply(this,arguments)}function KE(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 GE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?KE(Object(r),!0).forEach((function(e){nC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function JE(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,iC(n.key),n)}}function QE(t,e,r){return e=eC(e),function(t,e){if(e&&("object"===qE(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,tC()?Reflect.construct(e,r||[],eC(t).constructor):e.apply(t,r))}function tC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tC=function(){return!!t})()}function eC(t){return eC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eC(t)}function rC(t,e){return rC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rC(t,e)}function nC(t,e,r){return(e=iC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iC(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 oC=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 nC(t=QE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),nC(t,"id",Ra("recharts-area-")),nC(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),ya(e)&&e()})),nC(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),ya(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&&rC(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,u=a.points,l=a.dataKey,s=lc(this.props,!1),f=lc(c,!0),p=u.map((function(t,r){var n=GE(GE(GE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:u});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Rc,XE({className:"recharts-area-dots"},d),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),u=Uw(n.map((function(t){return t.y||0})));return Da(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Uw(r.map((function(t){return t.y||0}))),u)),Da(u)?st.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(u+(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),u=Uw(n.map((function(t){return t.x||0})));return Da(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Uw(r.map((function(t){return t.x||0}))),u)),Da(u)?st.createElement("rect",{x:0,y:o<a?o:o-c,width:u+(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,u=i.connectNulls,l=i.isRange;i.ref;var s=YE(i,WE);return st.createElement(Rc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},st.createElement(c_,XE({},lc(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&st.createElement(c_,XE({},lc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&st.createElement(c_,XE({},lc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,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,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return st.createElement(hP,{begin:c,duration:u,isActive:a,easing:l,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,u=p.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],i=za(n.x,t.x),o=za(n.y,t.y);return GE(GE({},t),{},{x:i(a),y:o(a)})}return t}));return c=Da(o)&&"number"==typeof o?za(d,o)(a):fa(o)||ka(o)?za(d,0)(a):o.map((function(t,e){var r=Math.floor(e*u);if(d[r]){var n=d[r],i=za(n.x,t.x),o=za(n.y,t.y);return GE(GE({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return st.createElement(Rc,null,st.createElement("defs",null,st.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),st.createElement(Rc,{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,u=a.prevBaseLine,l=a.totalLength;return o&&n&&n.length&&(!c&&l>0||!ex(c,n)||!ex(u,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,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,y=1===i.length,v=Dn("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=fa(d)?this.id:d,x=null!==(t=lc(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=(uc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Rc,{className:v},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.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&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,A,w),(!p||h)&&$S.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&&JE(r.prototype,n),i&&JE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function aC(t){return aC="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},aC(t)}function cC(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,dC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uC(t,e,r){return e=sC(e),function(t,e){if(e&&("object"===aC(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,lC()?Reflect.construct(e,r||[],sC(t).constructor):e.apply(t,r))}function lC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lC=function(){return!!t})()}function sC(t){return sC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sC(t)}function fC(t,e){return fC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fC(t,e)}function pC(t,e,r){return(e=dC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dC(t){var e=function(t,e){if("object"!=aC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=aC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==aC(e)?e:e+""}function hC(){return hC=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},hC.apply(this,arguments)}function yC(t){var e=t.xAxisId,r=gk(),n=mk(),i=yk(e);return null==i?null:st.createElement(PE,hC({},i,{className:Dn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return BO(t,!0)}}))}VE=oC,nC(oC,"displayName","Area"),nC(oC,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Mh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),nC(oC,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Da(c)&&"number"==typeof c)return c;var u="horizontal"===i?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),nC(oC,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,y=s&&s.length,v=VE.getBaseValue(r,n,i,o),g="horizontal"===h,m=!1,b=p.map((function(t,e){var r;y?r=s[f+e]:(r=TO(t,l),Array.isArray(r)?m=!0:r=[v,r]);var n=null==r[1]||y&&null==TO(t,l);return g?{x:VO({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:VO({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||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(v):i.scale(v),GE({points:b,baseLine:e,layout:h,isRange:m},d)})),nC(oC,"renderDotItem",(function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(ya(t))r=t(e);else{var n=Dn("recharts-area-dot","boolean"!=typeof t?t.className:""),i=e.key,o=YE(e,ZE);r=st.createElement(AP,XE({},o,{key:i,className:n}))}return r}));var vC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),uC(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&&fC(t,e)}(e,st.Component),cC(e,[{key:"render",value:function(){return st.createElement(yC,this.props)}}])}();function gC(t){return gC="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},gC(t)}function mC(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,_C(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function bC(t,e,r){return e=xC(e),function(t,e){if(e&&("object"===gC(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,wC()?Reflect.construct(e,r||[],xC(t).constructor):e.apply(t,r))}function wC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wC=function(){return!!t})()}function xC(t){return xC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xC(t)}function OC(t,e){return OC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},OC(t,e)}function SC(t,e,r){return(e=_C(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _C(t){var e=function(t,e){if("object"!=gC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=gC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==gC(e)?e:e+""}function jC(){return jC=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},jC.apply(this,arguments)}pC(vC,"displayName","XAxis"),pC(vC,"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 PC=function(t){var e=t.yAxisId,r=gk(),n=mk(),i=vk(e);return null==i?null:st.createElement(PE,jC({},i,{className:Dn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return BO(t,!0)}}))},AC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),bC(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,st.Component),mC(e,[{key:"render",value:function(){return st.createElement(PC,this.props)}}])}();function MC(t){return function(t){if(Array.isArray(t))return kC(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 kC(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 kC(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 kC(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}SC(AC,"displayName","YAxis"),SC(AC,"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 EC,CC=function(t,e,r,n,i){var o=ic(t,Dk),a=ic(t,Wk),c=[].concat(MC(o),MC(a)),u=ic(t,nE),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&nM(e.props,"extendDomain")&&Da(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),d="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&nM(e.props,"extendDomain")&&Da(e.props[p])&&Da(e.props[d])){var n=e.props[p],i=e.props[d];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 Da(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},TC={exports:{}};var DC=(EC||(EC=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),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=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 u,l,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(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,d=s.length;for(l=0;l<d;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,i);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}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 u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[o]=1===l.length?l[0]:l: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}(TC)),TC.exports),IC=new(dr(DC)),NC="recharts.syncMouseEvents";function RC(t){return RC="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},RC(t)}function LC(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,zC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function BC(t,e,r){return(e=zC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zC(t){var e=function(t,e){if("object"!=RC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=RC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==RC(e)?e:e+""}var $C=function(){return LC((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),BC(this,"activeIndex",0),BC(this,"coordinateList",[]),BC(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,u=t.offset,l=void 0===u?null:u,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!=l?l: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,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])}();function HC(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 FC(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 HC(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=oS(c,u,l,f),d=oS(c,u,s,f);n=p.x,i=p.y,o=d.x,a=d.y}return[{x:n,y:i},{x:o,y:a}]}function UC(t){return UC="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},UC(t)}function VC(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 WC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VC(Object(r),!0).forEach((function(e){ZC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ZC(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=UC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UC(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qC(t){var e,r,n,i=t.element,o=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=i.props.cursor)&&void 0!==e?e:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!h||!a||!c||"ScatterChart"!==d&&"axis"!==o)return null;var y=c_;if("ScatterChart"===d)n=c,y=zP;else if("BarChart"===d)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,l,f),y=jP;else if("radial"===p){var v=HC(c),g=v.cx,m=v.cy,b=v.radius;n={cx:g,cy:m,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=XS}else n={points:FC(p,c,l)},y=c_;var w=WC(WC(WC(WC({stroke:"#ccc",pointerEvents:"none"},l),n),lc(h,!1)),{},{payload:u,payloadIndex:s,className:Dn("recharts-tooltip-cursor",h.className)});return ft(h)?xt(h,w):Ot(y,w)}var YC=["item"],XC=["children","className","width","height","style","compact","title","desc"];function KC(t){return KC="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},KC(t)}function GC(){return GC=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},GC.apply(this,arguments)}function JC(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=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||aT(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 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 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,fT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function eT(t,e,r){return e=nT(e),function(t,e){if(e&&("object"===KC(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,rT()?Reflect.construct(e,r||[],nT(t).constructor):e.apply(t,r))}function rT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(rT=function(){return!!t})()}function nT(t){return nT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nT(t)}function iT(t,e){return iT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},iT(t,e)}function oT(t){return function(t){if(Array.isArray(t))return cT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||aT(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 aT(t,e){if(t){if("string"==typeof t)return cT(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)?cT(t,e):void 0}}function cT(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 uT(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?uT(Object(r),!0).forEach((function(e){sT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sT(t,e,r){return(e=fT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fT(t){var e=function(t,e){if("object"!=KC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=KC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==KC(e)?e:e+""}var pT={xAxis:["bottom","top"],yAxis:["left","right"]},dT={width:"100%",height:"100%"},hT={x:0,y:0};function yT(t){return t}var vT=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&&Da(n)&&Da(i)?t.slice(n,i+1):[]};function gT(t){return"number"===t?[0,"auto"]:void 0}var mT=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=vT(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?l=$a(void 0===s?a:s,o.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(oT(i),[JO(c,l)]):i}),[])},bT=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,u=t.tooltipTicks,l=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,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(Ca(s-l)!==Ca(f-s)){var d=[];if(Ca(f-s)===Ca(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var y=f+c[1]-c[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=d[0]&&t<=d[1]){o=n[u].index;break}}else{var g=Math.min(l,f),m=Math.max(l,f);if(t>(g+s)/2&&t<=(m+s)/2){o=n[u].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,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=mT(t,e,l,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 lT(lT(lT({},n),oS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return lT(lT(lT({},n),oS(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return hT}(r,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},wT=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=LO(l,i);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?lT(lT({},r.type.defaultProps),r.props):r.props,y=h.type,v=h.dataKey,g=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[o];if(e[O])return e;var S,_,j,P=vT(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:u}),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&&Da(n)&&Da(i))return!0}return!1})(h.domain,g,y)&&(S=XO(h.domain,null,g),!p||"number"!==y&&"auto"===b||(j=DO(P,v,"category")));var M=gT(y);if(!S||0===S.length){var k,E=null!==(k=h.domain)&&void 0!==k?k:M;if(v){if(S=DO(P,v,y),"category"===y&&p){var C=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&&C?(_=S,S=MA(0,A)):m||(S=GO(E,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(oT(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!fa(t)})):GO(E,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||fa(e)?t:[].concat(oT(t),[e])}),[]);else if("number"===y){var T=function(t,e,r,n,i){var o=e.map((function(e){return NO(t,e,r,i,n)})).filter((function(t){return!fa(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)})),v,i,l);T&&(S=T)}!p||"number"!==y&&"auto"===b||(j=DO(P,v,"category"))}else S=p?MA(0,A):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:ZO(a[O].stackGroups,c,u):RO(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)})),y,l,!0);if("number"===y)S=CC(s,S,O,i,w),E&&(S=XO(E,S,g));else if("category"===y&&E){var D=E;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return lT(lT({},e),{},sT({},O,lT(lT({},h),{},{axisType:i,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(d=h.domain)&&void 0!==d?d:M,isCategorical:p,layout:l})))}),{})},xT=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,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=ic(l,i),p={};return f&&f.length?p=wT(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):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,u=e.dataEndIndex,l=t.layout,s=t.children,f=vT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=LO(l,i),h=-1;return r.reduce((function(t,e){var y,v=(void 0!==e.type.defaultProps?lT(lT({},e.type.defaultProps),e.props):e.props)[o],g=gT("number");return t[v]?t:(h++,d?y=MA(0,p):a&&a[v]&&a[v].hasStack?(y=ZO(a[v].stackGroups,c,u),y=CC(s,y,v,i)):(y=XO(g,RO(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===v&&!i})),"number",l),n.defaultProps.allowDataOverflow),y=CC(s,y,v,i)),lT(lT({},t),{},sT({},v,lT(lT({axisType:i},n.defaultProps),{},{hide:!0,orientation:ua(pT,"".concat(i,".").concat(h%2),null),domain:y,originalDomain:g,isCategorical:d,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},OT=function(t){var e=t.children,r=t.defaultShowTooltip,n=oc(e,KA),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)}},ST=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"}},_T=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,u=r.height,l=r.children,s=r.margin||{},f=oc(l,KA),p=oc(l,Hd),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:lT(lT({},t),{},sT({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:lT(lT({},t),{},sT({},n,ua(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=lT(lT({},h),d),v=y.bottom;f&&(y.bottom+=f.props.height||KA.defaultProps.height),p&&e&&(y=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=jO({children:i,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&Da(t[p]))return EO(EO({},t),{},CO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&Da(t[d]))return EO(EO({},t),{},CO({},d,t[d]+(f||0)))}return t}(y,0,r,e));var g=c-y.left-y.right,m=u-y.top-y.bottom;return lT(lT({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},jT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},PT=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,u=t.legendContent,l=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,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=ST(s),y=h.numericAxisName,v=h.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=tc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,h){var b=vT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),w=void 0!==r.type.defaultProps?lT(lT({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(y,"Id")],_=w["".concat(v,"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?aO(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:"")):aO());var u=a[c];return lT(lT({},t),{},sT(sT({},n.axisType,u),"".concat(n.axisType,"Ticks"),BO(u)))}),{}),P=j[v],A=j["".concat(v,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?EO(EO({},t.type.defaultProps),t.props):t.props).stackId;if(Ia(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=tc(r.type).indexOf("Bar")>=0,E=KO(P,A),C=[],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,u=a.length;c<u;c++)for(var l=i[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var d=l[s[f]],h=d.items,y=d.cateAxisId,v=h.filter((function(t){return tc(t.type).indexOf("Bar")>=0}));if(v&&v.length){var g=v[0].type.defaultProps,m=void 0!==g?EO(EO({},g),v[0].props):v[0].props,b=m.barSize,w=m[y];o[w]||(o[w]=[]);var x=fa(b)?e:b;o[w].push({item:v[0],stackList:v.slice(1),barSize:fa(x)?void 0:La(x,r,0)})}}return o}({barSize:l,stackGroups:n,totalSize:jT(j,v)});if(k){var D,I,N=fa(O)?d:O,R=null!==(D=null!==(I=KO(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;C=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 u,l=La(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,d=o.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*l)>=n&&(d-=(c-1)*l,l=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-l,size:0};u=o.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+l,size:f?p:e.barSize}},n=[].concat(AO(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),s)}else{var y=La(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var g=a===+a?Math.min(v,a):v;u=o.reduce((function(t,e,r){var n=[].concat(AO(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-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 u}({barGap:f,barCategoryGap:p,bandSize:R!==E?R:E,sizeList:T[_],maxBarSize:N}),R!==E&&(C=C.map((function(t){return lT(lT({},t),{},{position:lT(lT({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:lT(lT({},z(lT(lT({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:E,barPosition:C,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},sT(sT(sT({key:r.key||"item-".concat(h)},y,j[y]),v,j[v]),"animationId",o)),childIndex:(L=r,B=t.children,nc(B).indexOf(L)),item:r})})),m},p=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!ac({props:i}))return null;var s=i.children,p=i.layout,d=i.stackOffset,h=i.data,y=i.reverseStackOrder,v=ST(p),g=v.numericAxisName,m=v.cateAxisName,b=ic(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?EO(EO({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var c=o[r],u=t[c]||{hasStack:!1,stackGroups:{}};if(Ia(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[Ra("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return EO(EO({},t),{},CO({},c,u))}),{});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 EO(EO({},e),{},CO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:UO(t,a.items,i)}))}),{})),EO(EO({},e),{},CO({},o,c))}),{})}(h,b,"".concat(g,"Id"),"".concat(m,"Id"),d,y),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return lT(lT({},t),{},sT({},r,xT(i,lT(lT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=_T(lT(lT({},x),{},{props:i,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=l(i,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=Ba(j),{tooltipTicks:_=BO(S,!1,!0),orderedTooltipTicks:eh(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:KO(S,_)}),A=f(i,lT(lT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return lT(lT({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},d=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),sT(o=eT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),sT(o,"accessibilityManager",new $C),sT(o,"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(lT({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},lT(lT({},o.state),{},{legendBBox:t}))))}})),sT(o,"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),sT(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 lT({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),sT(o,"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=lT(lT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;ya(n)&&n(r,t)}})),sT(o,"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?lT(lT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;ya(n)&&n(r,t)})),sT(o,"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),sT(o,"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),sT(o,"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),sT(o,"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;ya(r)&&r(e,t)})),sT(o,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&Qa[e]?Qa[e]:null}(t),n=ua(o.props,"".concat(r));r&&ya(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),sT(o,"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=lT(lT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;ya(n)&&n(r,t)}})),sT(o,"handleMouseDown",(function(t){var e=o.props.onMouseDown;ya(e)&&e(o.getMouseInfo(t),t)})),sT(o,"handleMouseUp",(function(t){var e=o.props.onMouseUp;ya(e)&&e(o.getMouseInfo(t),t)})),sT(o,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),sT(o,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),sT(o,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),sT(o,"handleDoubleClick",(function(t){var e=o.props.onDoubleClick;ya(e)&&e(o.getMouseInfo(t),t)})),sT(o,"handleContextMenu",(function(t){var e=o.props.onContextMenu;ya(e)&&e(o.getMouseInfo(t),t)})),sT(o,"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&IC.emit(NC,o.props.syncId,t,o.eventEmitterSymbol)})),sT(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(lT({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=o.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var v=lT(lT({},d),{},{x:d.left,y:d.top}),g=Math.min(u,v.x+v.width),m=Math.min(l,v.y+v.height),b=h[s]&&h[s].value,w=mT(o.state,o.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:g,y:"horizontal"===r?m:h[s].coordinate}:hT;o.setState(lT(lT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),sT(o,"renderCursor",(function(t){var r,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:i,d=o.props.layout,h=t.key||"_recharts-cursor";return st.createElement(qC,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:d,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),sT(o,"renderPolarAxis",(function(t,e,r){var n=ua(t,"type.axisType"),i=ua(o.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?lT(lT({},a),t.props):t.props,u=i&&i[c["".concat(n,"Id")]];return xt(t,lT(lT({},u),{},{className:Dn(n,u.className),key:t.key||"".concat(e,"-").concat(r),ticks:BO(u,!0)}))})),sT(o,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=Ba(c),s=Ba(u),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return xt(t,{polarAngles:Array.isArray(n)?n:BO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:BO(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),sT(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),l=jO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=QC(l,YC);return xt(s,lT(lT({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),sT(o,"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=oc(r,Jh);if(!i)return null;var a=o.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return xt(i,{viewBox:lT(lT({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:u,accessibilityLayer:n})})),sT(o,"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,l=i.updateId;return xt(t,{key:t.key||"_recharts-brush",onChange:$O(o.handleBrushChange,t.props.onChange),data:n,x:Da(t.props.x)?t.props.x:a.left,y:Da(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Da(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),sT(o,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=o.clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,d=s.yAxisId,h=void 0===d?l.yAxisId:d;return xt(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),sT(o,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?lT(lT({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=lT(lT({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:IO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},lc(s,!1)),qa(s));return c.push(r.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(o))),i?c.push(r.renderActiveDot(s,lT(lT({},f),{},{cx:i.x,cy:i.y}),"".concat(u,"-basePoint-").concat(o))):a&&c.push(null),c})),sT(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,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=oc(o.props.children,Jh),p=n.props,d=p.points,h=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?lT(lT({},n.item.type.defaultProps),n.item.props):n.item.props,g=v.activeDot,m=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:$O(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:$O(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:$O(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=xt(t,lT(lT({},n.props),O));if(x){if(!(l>=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=lT(lT(lT({},n.props),O),{},{activeIndex:M});return[xt(A,k),null,null]}var E,C;if(u.dataKey&&!u.allowDuplicatedCategory){var T="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());E=$a(d,T,s),C=h&&y&&$a(y,T,s)}else E=null==d?void 0:d[l],C=h&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[xt(t,lT(lT(lT({},n.props),O),{},{activeIndex:D})),null,null]}if(!fa(E))return[S].concat(oT(o.renderActivePoints({item:n,activePoint:E,basePoint:C,childIndex:l,isRange:h})))}return h?[S,null,null]:[S,null]})),sT(o,"renderCustomized",(function(t,e,r){return xt(t,lT(lT({key:"recharts-customized-".concat(r)},o.props),o.state))})),sT(o,"renderMap",{CartesianGrid:{handler:yT,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:yT},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:yT},YAxis:{handler:yT},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:Ra("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=ny(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&&iT(t,e)}(r,jt),tT(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,Jh);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,u=mT(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=lT(lT({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(d),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){sc([oc(t.children,Jh)],[oc(this.props.children,Jh)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=oc(this.props.children,Jh);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 u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=Ba(l).scale,p=Ba(s).scale,d=f&&f.invert?f.invert(o.chartX):null,h=p&&p.invert?p.invert(o.chartY):null;return lT(lT({},o),{},{xValue:d,yValue:h})}var y=bT(this.state,this.props.data,this.props.layout,c);return y?lT(lT({},o),y):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,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=Ba(u);return uS({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=oc(t,Jh),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}),lT(lT({},qa(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){IC.on(NC,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){IC.removeListener(NC,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===tc(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 st.createElement("defs",null,st.createElement("clipPath",{id:t},st.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=JC(e,2),n=r[0],i=r[1];return lT(lT({},t),{},sT({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=JC(e,2),n=r[0],i=r[1];return lT(lT({},t),{},sT({},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,u=a.item,l=void 0!==u.type.defaultProps?lT(lT({},u.type.defaultProps),u.props):u.props,s=tc(u.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return SP(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return uS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(mA(a,n)||bA(a,n)||wA(a,n)){var d=_A({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),h=void 0===l.activeIndex?d:l.activeIndex;return{graphicalItem:lT(lT({},a),{},{childIndex:h}),payload:wA(a,n)?l.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!ac(this))return null;var e,r,n=this.props,i=n.children,o=n.className,a=n.width,c=n.height,u=n.style,l=n.compact,s=n.title,f=n.desc,p=QC(n,XC),d=lc(p,!1);if(l)return st.createElement(dk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement(vc,GC({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),pc(i,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return st.createElement(dk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement("div",GC({className:Dn("recharts-wrapper",o),style:lT({position:"relative",cursor:"default",width:a,height:c},u)},h,{ref:function(e){t.container=e}}),st.createElement(vc,GC({},d,{width:a,height:c,title:s,desc:f,style:dT}),this.renderClipPath(),pc(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();sT(d,"displayName",e),sT(d,"defaultProps",lT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),sT(d,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=OT(t);return lT(lT(lT({},d),{},{updateId:0},p(lT(lT({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!Ha(l,e.prevMargin)){var h=OT(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=lT(lT({},bT(e,n,c)),{},{updateId:e.updateId+1}),g=lT(lT(lT({},h),y),v);return lT(lT(lT({},g),p(lT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!sc(i,e.prevChildren)){var m,b,w,x,O=oc(i,KA),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=!fa(n)&&!j?e.updateId:e.updateId+1;return lT(lT({updateId:P},p(lT(lT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:_})}return null})),sT(d,"renderActiveDot",(function(t,e,r){var n;return n=ft(t)?xt(t,e):ya(t)?t(e):st.createElement(AP,e),st.createElement(Rc,{className:"recharts-active-dot",key:r},n)}));var h=ht((function(t,e){return st.createElement(d,GC({},t,{ref:e}))}));return h.displayName=d.displayName,h},AT=PT({chartName:"LineChart",GraphicalChild:UE,axisComponents:[{axisType:"xAxis",AxisComp:vC},{axisType:"yAxis",AxisComp:AC}],formatAxisMap:VM}),MT=PT({chartName:"AreaChart",GraphicalChild:oC,axisComponents:[{axisType:"xAxis",AxisComp:vC},{axisType:"yAxis",AxisComp:AC}],formatAxisMap:VM});const kT=({formatter:n,labelFormatter:i,payload:o,cx:a,cy:c})=>{const u=100;return Number.isFinite(o.value)?t("svg",{x:a-50,y:c-60,width:u,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:Hr.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:Hr.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:Hr.coolElegance(),strokeWidth:"2"})]}):e(r,{})},ET=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Nr({data:r,dataKey:n}),d=Cn(),h=Cn(),y=s?zr({arr:r||[],n:s}):r;let v,g;y?.length?(g=p?Hr.mint():Hr.coolElegance(),v=y?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=Hr.coolElegance(),v=[{[n]:1},{[n]:1}]);const m={cursor:y?.length?"crosshair":"default",...f};return e(sy,{width:i,minHeight:o,id:d,children:t(MT,{data:v,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:h,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(AC,{domain:y?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(oC,{type:a,dataKey:n,stroke:g,fill:`url(#${h})`,isAnimationActive:c,activeDot:t=>kT({labelFormatter:l,formatter:u,...t}),dot:!1}),y?.length&&e(Jh,{cursor:!1,content:()=>null})]})})},CT=({isCloseable:t,onClick:r})=>{const n=l({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:Hr.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},TT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:Hr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),DT=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":Hr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),IT=({children:t,...r})=>e(y,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Hr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),NT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=gt(0);return n.length>=1&&e(IT,{children:t(v,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(v,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Lt,{}),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(Bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},RT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ht,{...i}):r?e(ve,{...i}):null},LT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,name:u,register:l,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...y}=r,g=l?l(u):void 0;return t(m,{as:v,flexDir:"column",isInvalid:Boolean(s),isDisabled:i,isReadOnly:o,isRequired:a,children:[t(v,{onClick:h,w:"full",alignItems:"center",justifyContent:d?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:e(RT,{}),isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...y}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(v,{w:"full",children:s&&e(x,{size:n,children:s})})]})},BT=O(((t,r)=>{const{children:n,uiColor:i,...o}=t;return e(h,{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})})),zT=({uiColor:r,isLocalDev:n,enableRefetch:i,setEnableRefetch:o,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[u,l]=gt(!1),[s,f]=gt(!1),[p,d]=gt(!1);bt((()=>{document.body.classList.contains("show-outlines")&&l(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");d(Boolean(t))}),[o]);const h={width:{base:"full",md:"auto"},uiColor:r};return t(v,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t(BT,{onClick:()=>{if(document.querySelector(".tsqd-queries-container")){const t=document.querySelector(".tsqd-minimize-btn");t?.click(),d(!1)}else{const t=document.querySelector(".tsqd-open-btn");t?.click(),d(!0)}},isDisabled:!n,...h,children:[p?"Hide":"Show"," React Query console"]}),t(BT,{onClick:()=>{i?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),o(!i),window.location.reload()},position:"relative",...h,_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(BT,{onClick:()=>{c(),a(!0)},...h,children:"Show breakpoint debugger"}),t(BT,{onClick:()=>{l(!u),document.body.classList.toggle("show-outlines")},...h,children:[u?"Hide":"Show"," outlines"]}),t(BT,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...h,children:[s?"Hide":"Show"," error boundaries"]})]})]})},$T=({data:r,heading:n,uiColor:i,buttons:o})=>t(v,{flexDir:"column",children:[t(v,{borderBottom:"solid 1px",borderColor:`${i}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(v,{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(Pt,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),HT=({children:n,footer:i,consoleButton:o,isLocalDev:a})=>{const{isOpen:c,onOpen:u,onClose:l}=P(),[s,f]=gt(!1),p=a?"green":"yellow";return bt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?l():u())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,l,u]),bt((()=>{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:l,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(E,{}),e(C,{children:e(v,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"xs",children:e(v,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:l})})}),i({uiColor:p})]})]}),o({uiColor:p,onClose:l,isOpen:c,hideButton:s,onOpen:u})]})},FT=({hideButton:n,enableRefetch:i,onOpen:o,uiColor:a,hasSystemOverride:c,authBypassEnabled:u})=>{const l=!i||c||u,[d,y]=gt(!1);return bt((()=>{window.location.hostname.startsWith("sales-demo-dev.")&&y(!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:[l&&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(v,{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"}),!i&&e(p,{children:"• Refetch intervals disabled"}),!l&&t(r,{children:[e(p,{children:"• Open console (ctrl+d)"}),e(p,{children:"• Hide button (ctrl+j)"})]})]}),hasArrow:!0,children:e(h,{"aria-label":"Open",size:"sm",onClick:o,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:d?"☆":"⚙"})})]})})},UT=({uiColor:r})=>t(v,{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"})})]})]}),VT=({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?"✔":"✘"})})})},WT=({children:t,onSubmit:r,...n})=>e(v,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var ZT=function(){return ZT=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},ZT.apply(this,arguments)};function qT(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 YT(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 XT=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},KT={k:1e3,m:1e6,b:1e9},GT=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,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,y=void 0===h?"":h,v=t.transformRawValue,g=(void 0===v?function(t){return t}:v)(e);if("-"===g)return g;var m=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(XT(y),")")).test(g),w=RegExp("(\\d+)-?".concat(XT(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(XT(e),"g");return t.replace(r,"")}(y?x?g.replace(x,"").concat(O):g.replace(y,""):g,n),_=function(t,e){var r=XT(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,YT([n,o],m,!0)),j=_;if(!d){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(XT(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=KT[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],E=M[1],C=l&&E?E.slice(0,l):E,T=c?"".concat(o).concat(C):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},JT=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(XT(n)).concat(XT(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},QT=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,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(XT(a),"?"):"","\\d")).test(e),s="."!==r?tD(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f=n||{},p=f.locale,d=f.currency,h=qT(f,["locale","currency"]),y=ZT(ZT({},h),{minimumFractionDigits:i||0,maximumFractionDigits:20}),v=(n?new Intl.NumberFormat(p,ZT(ZT({},y),d&&{style:"currency",currency:d})):new Intl.NumberFormat(void 0,y)).formatToParts(Number(s)),g=eD(v,t),m=JT(g,ZT({},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(XT(r),")(\\d+)"),"g"),"$1$2".concat(w)):m&&!u?g.replace(m,"".concat(r).concat(w).concat(m)):"".concat(g).concat(r).concat(w)),u&&b?"".concat(g).concat(b).concat(u):m&&b?g.replace(m,"".concat(b).concat(m)):m&&u?g.replace(m,"".concat(b).concat(u)):[g,b,u].join("")},tD=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(XT(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},eD=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 u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?YT(YT([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:YT(YT([],t,!0),[l],!1):"group"===u?c?t:YT(YT([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==o&&0===o?t:YT(YT([],t,!0),[void 0!==i?i:l],!1):YT(YT([],t,!0),"fraction"===u?[void 0!==o?l.slice(0,o):l]:[l],!1)}),[""]).join("")},rD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},nD=function(t){return RegExp(/\d/,"gi").test(t)},iD=ht((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,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,y=t.value,v=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,E=t.decimalSeparator,C=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,$=qT(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(E&&nD(E))throw new Error("decimalSeparator cannot be a number");if(C&&nD(C))throw new Error("groupSeparator cannot be a number");var H=wt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency,i=qT(e,["locale","currency"]);return(r?new Intl.NumberFormat(r,ZT(ZT({},i),n&&{currency:n,style:"currency"})):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?ZT(ZT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?ZT(ZT({},t),{groupSeparator:e.value}):"decimal"===e.type?ZT(ZT({},t),{decimalSeparator:e.value}):t}),rD)}(O)}),[O]),F=E||H.decimalSeparator||"",U=C||H.groupSeparator||"";if(F&&U&&F===U&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:U,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:U,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=gt((function(){return null!=f?QT(ZT(ZT({},V),{decimalScale:b,value:String(f)})):null!=y?QT(ZT(ZT({},V),{decimalScale:b,value:String(y)})):""})),q=Z[0],Y=Z[1],X=gt(!1),K=X[0],G=X[1],J=gt(0),Q=J[0],tt=J[1],et=gt(0),rt=et[0],nt=et[1],it=gt(null),ot=it[0],at=it[1],ct=yt(null);vt(e,(function(){return ct.current}));var ut=function(t,e){G(!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 u=r.split("");return"Backspace"===n&&i[a]===o&&(u.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ot,stateValue:q,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=GT(ZT({value:n},W));if(!(h&&o.replace(/-/g,"").length>h)){if(""===o||"-"===o||o===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),Y(o),void tt(1);var a=F?o.replace(F,"."):o,u=parseFloat(a),l=QT(ZT({value:o},V));if(null!=i){var s=i+(l.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(l),v)v(o,c,{float:u,formatted:l,value:o})}};bt((function(){null==y&&null==f&&Y("")}),[f,y]),bt((function(){K&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,K,rt]);var lt=ZT({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;ut(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=GT(ZT({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),u=QT(ZT(ZT({},V),{value:i}));v&&z&&v(i,c,{float:a,formatted:u,value:i}),Y(u),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!=y?String(y):void 0,n=F&&r?r.replace(F,"."):r,i=parseFloat(null!=n?n:GT(ZT({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;ut(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=JT(q,{groupSeparator:U,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:d,value:null==y||"-"===q||F&&q===F?q:QT(ZT(ZT({},V),{decimalScale:K?void 0:b,value:String(y)})),ref:ct},$);if(l){var ft=l;return st.createElement(ft,ZT({},lt))}return st.createElement("input",ZT({},lt))}));iD.displayName="CurrencyInput";const oD=O(((r,n)=>{const{size:i,isDisabled:o,isReadOnly:a,isRequired:c,spellCheck:u=!1,name:l,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:y,rightAddon:v,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Rr(i),j=f?f(l):void 0,P="currency"===w?{as:iD,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:[h&&e(B,{children:h}),y&&e(z,{w:"auto",ml:"1em",children:y}),e($,{size:i,spellCheck:u,paddingLeft:y&&"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}),v&&e(F,{children:v})]}),p&&e(x,{size:i,children:p}),d&&e(U,{fontSize:_,children:d})]})}));var aD=t=>null==t;var cD=t=>!aD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),uD=t=>{const e=t.constructor&&t.constructor.prototype;return cD(e)&&e.hasOwnProperty("isPrototypeOf")},lD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function sD(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(t instanceof Set)e=new Set(t);else{if(lD&&(t instanceof Blob||n)||!r&&!cD(t))return t;if(e=r?[]:{},r||uD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=sD(t[r]));else e=t}return e}var fD=t=>Array.isArray(t)?t.filter(Boolean):[],pD=t=>void 0===t,dD=(t,e,r)=>{if(!e||!cD(t))return r;const n=fD(e.split(/[,[\].]+?/)).reduce(((t,e)=>aD(t)?t:t[e]),t);return pD(n)||n===t?pD(t[e])?r:t[e]:n},hD=t=>"boolean"==typeof t,yD=t=>/^\w*$/.test(t),vD=t=>fD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),gD=(t,e,r)=>{let n=-1;const i=yD(e)?[e]:vD(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=cD(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=o,t=t[e]}return t};const mD="onBlur",bD="onChange",wD="onSubmit",xD="onTouched",OD="all",SD="max",_D="min",jD="maxLength",PD="minLength",AD="pattern",MD="required",kD="validate",ED=st.createContext(null);var CD=t=>cD(t)&&!Object.keys(t).length,TD=t=>Array.isArray(t)?t:[t];var DD=t=>"string"==typeof t,ID=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},ND=()=>{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)}))},RD=(t,e,r={})=>r.shouldFocus||pD(r.shouldFocus)?r.focusName||`${t}.${pD(r.focusIndex)?e:r.focusIndex}.`:"",LD=t=>({isOnSubmit:!t||t===wD,isOnBlur:t===mD,isOnChange:t===bD,isOnAll:t===OD,isOnTouch:t===xD});const BD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=dD(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(BD(i,e))break}else if(cD(i)&&BD(i,e))break}}};var zD=(t,e,r)=>{const n=TD(dD(t,r));return gD(n,"root",e[r]),gD(t,r,n),t},$D=t=>DD(t),HD=t=>t instanceof RegExp;function FD(t,e,r="validate"){if($D(t)||Array.isArray(t)&&t.every($D)||hD(t)&&!t)return{type:r,message:$D(t)?t:"",ref:e}}var UD=t=>cD(t)&&!HD(t)?t:{value:t,message:""},VD=async(t,e,r,n,i,o)=>{const{ref:a,refs:c,required:u,maxLength:l,minLength:s,min:f,max:p,pattern:d,validate:h,name:y,valueAsNumber:v,mount:g}=t._f,m=dD(r,y);if(!g||e.has(y))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(hD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(v||(t=>"file"===t.type)(a))&&pD(a.value)&&pD(m)||(t=>{if(!lD)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=ID.bind(null,y,n,x),_=(t,e,r,n=jD,i=PD)=>{const o=t?e:r;x[y]={type:t?n:i,message:o,ref:a,...S(t?n:i,o)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=$D(u)?{value:!!u,message:u}:UD(u);if(t&&(x[y]={type:MD,message:e,ref:b,...S(MD,e)},!n))return w(e),x}if(!(O||aD(f)&&aD(p))){let t,e;const r=UD(p),i=UD(f);if(aD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),o=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,u="week"==a.type;DD(r.value)&&m&&(t=c?o(m)>o(r.value):u?m>r.value:n>new Date(r.value)),DD(i.value)&&m&&(e=c?o(m)<o(i.value):u?m<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(m?+m:m);aD(r.value)||(t=n>r.value),aD(i.value)||(e=n<i.value)}if((t||e)&&(_(!!t,r.message,i.message,SD,_D),!n))return w(x[y].message),x}if((l||s)&&!O&&(DD(m)||Array.isArray(m))){const t=UD(l),e=UD(s),r=!aD(t.value)&&m.length>+t.value,i=!aD(e.value)&&m.length<+e.value;if((r||i)&&(_(r,t.message,e.message),!n))return w(x[y].message),x}if(d&&!O&&DD(m)){const{value:t,message:e}=UD(d);if(HD(t)&&!m.match(t)&&(x[y]={type:AD,message:e,ref:a,...S(AD,e)},!n))return w(e),x}if(h)if("function"==typeof h){const t=FD(await h(m,r),b);if(t&&(x[y]={...t,...S(kD,t.message)},!n))return w(t.message),x}else if(cD(h)){let t={};for(const e in h){if(!CD(t)&&!n)break;const i=FD(await h[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[y]=t))}if(!CD(t)&&(x[y]={ref:b,...t},!n))return x}return w(!0),x},WD=(t,e)=>[...t,...TD(e)],ZD=t=>Array.isArray(t)?t.map((()=>{})):void 0;function qD(t,e,r){return[...t.slice(0,e),...TD(r),...t.slice(e)]}var YD=(t,e,r)=>Array.isArray(t)?(pD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],XD=(t,e)=>[...TD(e),...TD(t)];var KD=(t,e)=>pD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return fD(n).length?n:[]}(t,TD(e).sort(((t,e)=>t-e))),GD=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function JD(t,e){const r=Array.isArray(e)?e:yD(e)?[e]:vD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=pD(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(cD(n)&&CD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!pD(t[e]))return!1;return!0}(n))&&JD(t,r.slice(0,-1)),t}var QD=(t,e,r)=>(t[e]=r,t);function tI(t){const e=st.useContext(ED),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,u]=st.useState(r._getFieldArray(n)),l=st.useRef(r._getFieldArray(n).map(ND)),s=st.useRef(c),f=st.useRef(n),p=st.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),function(t){const e=st.useRef(t);e.current=t,st.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===f.current||!e){const e=dD(t,f.current);Array.isArray(e)&&(u(e),l.current=e.map(ND))}},subject:r._subjects.array});const d=st.useCallback((t=>{p.current=!0,r._updateFieldArray(n,t)}),[r,n]);return st.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&&(!LD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=dD(t.errors,n),i=dD(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?gD(r._formState.errors,n,e):JD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=dD(r._fields,n);!t||!t._f||LD(r._options.reValidateMode).isOnSubmit&&LD(r._options.mode).isOnSubmit||VD(t,r._names.disabled,r._formValues,r._options.criteriaMode===OD,r._options.shouldUseNativeValidation).then((t=>!CD(t)&&r._subjects.state.next({errors:zD(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&BD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),p.current=!1}),[c,n,r]),st.useEffect((()=>(!dD(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)})),[n,r,i,o]),{swap:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);GD(i,t,e),GD(l.current,t,e),d(i),u(i),r._updateFieldArray(n,i,GD,{argA:t,argB:e},!1)}),[d,n,r]),move:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);YD(i,t,e),YD(l.current,t,e),d(i),u(i),r._updateFieldArray(n,i,YD,{argA:t,argB:e},!1)}),[d,n,r]),prepend:st.useCallback(((t,e)=>{const i=TD(sD(t)),o=XD(r._getFieldArray(n),i);r._names.focus=RD(n,0,e),l.current=XD(l.current,i.map(ND)),d(o),u(o),r._updateFieldArray(n,o,XD,{argA:ZD(t)})}),[d,n,r]),append:st.useCallback(((t,e)=>{const i=TD(sD(t)),o=WD(r._getFieldArray(n),i);r._names.focus=RD(n,o.length-1,e),l.current=WD(l.current,i.map(ND)),d(o),u(o),r._updateFieldArray(n,o,WD,{argA:ZD(t)})}),[d,n,r]),remove:st.useCallback((t=>{const e=KD(r._getFieldArray(n),t);l.current=KD(l.current,t),d(e),u(e),!Array.isArray(dD(r._fields,n))&&gD(r._fields,n,void 0),r._updateFieldArray(n,e,KD,{argA:t})}),[d,n,r]),insert:st.useCallback(((t,e,i)=>{const o=TD(sD(e)),a=qD(r._getFieldArray(n),t,o);r._names.focus=RD(n,t,i),l.current=qD(l.current,t,o.map(ND)),d(a),u(a),r._updateFieldArray(n,a,qD,{argA:t,argB:ZD(e)})}),[d,n,r]),update:st.useCallback(((t,e)=>{const i=sD(e),o=QD(r._getFieldArray(n),t,i);l.current=[...o].map(((e,r)=>e&&r!==t?l.current[r]:ND())),d(o),u([...o]),r._updateFieldArray(n,o,QD,{argA:t,argB:i},!0,!1)}),[d,n,r]),replace:st.useCallback((t=>{const e=TD(sD(t));l.current=e.map(ND),d([...e]),u([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:st.useMemo((()=>c.map(((t,e)=>({...t,[i]:l.current[e]||ND()})))),[c,i])}}const eI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=tI({control:n,name:r}),p=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(D,{children:[u.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(v,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(v,{children:e(h,{size:"sm",onClick:()=>{l(p),a&&a(p)},ml:"auto",children:"+"})})]})},rI=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Nr({data:r,dataKey:n}),d=Cn(),h=s?zr({arr:r||[],n:s}):r;let y,v;h?.length?(v=p?Hr.mint():Hr.heroicRed(),y=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(v=Hr.coolElegance(),y=[{[n]:0},{[n]:0}]);const g={cursor:h?.length?"crosshair":"default",...f};return e(sy,{width:i,minHeight:o,id:d,children:t(AT,{data:y,style:g,children:[e(AC,{domain:["dataMin","dataMax"],hide:!0}),e(UE,{isAnimationActive:c,type:a,dataKey:n,stroke:v,strokeWidth:"2",activeDot:t=>kT({labelFormatter:l,formatter:u,...t}),dot:!1,scale:"threshold"}),h?.length&&e(Jh,{cursor:!1,content:()=>null})]})})},nI=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},isDisabledCloseButton:l,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},h={...{minWidth:Vr},...f};return t(V,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:u,trapFocus:!Lr(),...p,children:[e(W,{}),t(Z,{...h,children:[e(q,{children:i}),e(Y,{isDisabled:l}),e(X,{...d,children:a}),o&&e(K,{borderTop:"solid 1px",borderColor:Hr.coolElegance(),justifyContent:"flex-start",children:o})]})]})},iI=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 ${Hr.black(.08)}`:"none",href:i,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&Hr.coolElegance(),textDecoration:"none"},...o,children:n},i)};var oI,aI={exports:{}};var cI,uI=(oI||(oI=1,cI=aI,function(t,e){cI.exports=e(st)}(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,u=t.activeLinkClassName,l=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,y=t.ariaLabel||"Page "+i+(p?" "+p:""),v=null;return o&&(v="page",y=t.ariaLabel||"Page "+i+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==u&&(n=n+" "+u):n=u),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:o?"-1":"0","aria-label":y,"aria-current":v,onKeyPress:s},l(s)),d(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 u=c;function l(){return l=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},l.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,u=i||"break";return e().createElement("li",{className:u},e().createElement("a",l({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 d(t){return d="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},d(t)}function h(){return h=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},h.apply(this,arguments)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(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&&y(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"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(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(v(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(v(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(v(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(v(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(v(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(v(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,u=void 0!==c&&c,l=i.isBreak,s=void 0!==l&&l,f=i.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,y=n;if(h){var v=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:u,isBreak:s,isActive:p});if(!1===v)return;Number.isInteger(v)&&(y=v)}void 0!==y&&r.handlePageChange(y)})),m(v(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(v(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(v(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(v(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(v(r),"pagination",(function(){var t=[],n=r.props,i=n.pageRangeDisplayed,o=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,u=n.breakClassName,l=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(o<=i)for(var d=0;d<o;d++)t.push(r.getPageElement(d));else{var h=i/2,y=i-h;p>o-i/2?h=i-(y=o-p):p<i/2&&(y=i-(h=p));var v,g,m=function(t){return r.getPageElement(t)},b=[];for(v=0;v<o;v++){var w=v+1;if(w<=a)b.push({type:"page",index:v,display:m(v)});else if(w>o-a)b.push({type:"page",index:v,display:m(v)});else if(v>=p-h&&v<=p+(0===p&&i>1?y-1:y))b.push({type:"page",index:v,display:m(v)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(i>0||a>0)){var x=v<p?s.backward:s.forward;g=e().createElement(f,{key:v,breakAriaLabel:x,breakLabel:c,breakClassName:u,breakLinkClassName:l,breakHandler:r.handleBreakClick.bind(null,v),getEventListener:r.getEventListener}),b.push({type:"break",index:v,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,l=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(u,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:i,pageLinkClassName:o,activeClassName:a,activeLinkClassName:c,extraAriaContext:l,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,u=r.previousLabel,l=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,y=r.nextLabel,v=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(l)).concat(x?" ".concat(p(n)):""),_="".concat(p(v)).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",h({className:j,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),u)),this.pagination(),e().createElement("li",{className:_},e().createElement("a",h({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)),y)))}}])&&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})()))),aI.exports);const lI=n(dr(uI)),sI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:i,forcePage:o,...a})=>{const c=Math.ceil(t/r);return e(v,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(lI,{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:Hr.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"}}})})},fI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,u]=gt([]),[l,s]=gt(1);return t(v,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return i(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===l,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),u((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},pI=({children:t,isEnabled:r=!0,...n})=>{const i=r?At`
|
|
32
32
|
text-wrap: balance;
|
|
33
33
|
text-wrap: pretty;
|
|
34
34
|
`:void 0;return e(D,{css:i,...n,children:t})},dI=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:p,...d}=r,h=Rr(i),y=l?l(u):void 0;return t(m,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[p&&e(b,{size:i,children:p}),e(G,{icon:e(Rt,{}),size:i,...y,...d,children:n}),s&&e(x,{size:i,children:s}),f&&e(U,{fontSize:h,children:f})]})},hI=Mt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),yI=({boxSize:t=8,color:r="brand",...n})=>{const i="neutral"===r?Hr.sonicSilver():"brand.500";return e(v,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(v,{width:t,height:t,animation:`${hI} 2000ms infinite linear`,children:e(Pe,{boxSize:t,__css:{path:{fill:i}}})})})},vI=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[u,l]=gt(!0);return u?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(),l(!1)}})]}):null},gI=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,u;switch(a){case"error":u=kt;break;case"success":u=Ht;break;case"warning":u=ae,c="yellow";break;case"loading":c="brand",u=ut;break;default:c="brand",u=ae}return t(nt,{as:v,colorScheme:c,justifyContent:"space-between",status:a,children:[t(v,{alignItems:"center",mr:"4",children:[e(it,{children:e(u,{size:"sm"})}),t(D,{children:[e(ot,{children:n}),e(at,{children:r})]})]}),o&&e(ct,{onClick:i})]})},mI=({icon:r,header:n,coloredText:i,values:o,children:a,useCard:c=!0})=>{const u=t(v,{gap:4,alignItems:"flex-start",justifyContent:"space-between",children:[t(v,{gap:4,alignItems:"flex-start",children:[r&&e(v,{backgroundColor:Hr.lighthouse(),borderRadius:"md",padding:2,alignItems:"center",justifyContent:"center",height:"fit-content",children:e(r,{boxSize:3})}),t(v,{direction:"column",flex:"1",children:[t(v,{alignItems:"center",marginY:1,children:[e(p,{fontWeight:"500",fontSize:"sm",marginRight:2,children:n}),i&&e(p,{fontSize:"sm",children:i})]}),e(v,{gap:4,children:o.map(((r,n)=>t(v,{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(IT,{padding:3,children:u}):u},bI=({children:t,label:r})=>{const n=r?e(v,{padding:"1",flexDir:"column",gap:"2",lineHeight:"normal",fontSize:"sm",children:r}):null;return e(f,{label:n,hasArrow:!0,children:t})},wI=()=>{const t=l({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 xI,OI={exports:{}},SI=OI.exports;
|