Files
object-browser/portal-ui/build/static/js/137.08d76dda.chunk.js
Daniel Valdivia d41f6e57d2 Release v0.18.0 (#2076)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
2022-06-02 15:36:22 -07:00

2 lines
38 KiB
JavaScript

"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[137],{23688:function(t,e,n){function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function i(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function o(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,c=null;if("function"===typeof e.componentWillMount?n="componentWillMount":"function"===typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof e.componentWillUpdate?c="componentWillUpdate":"function"===typeof e.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==c){var s=t.displayName||t.name,u="function"===typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==c?"\n "+c:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=i),"function"===typeof e.getSnapshotBeforeUpdate){if("function"!==typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}n.r(e),n.d(e,{polyfill:function(){return a}}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},17719:function(t,e,n){var r=n(90474),i=n(72791),o=n(54164);function a(t){return t&&"object"===typeof t&&"default"in t?t:{default:t}}function c(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var s=a(r),u=c(i),l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)};function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var h=function(){return h=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},h.apply(this,arguments)};function p(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}var d="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var y=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},v="object"==typeof d&&d&&d.Object===Object&&d,m="object"==typeof self&&self&&self.Object===Object&&self,b=v||m||Function("return this")(),g=b,O=function(){return g.Date.now()},w=/\s/;var _=function(t){for(var e=t.length;e--&&w.test(t.charAt(e)););return e},E=/^\s+/;var x=function(t){return t?t.slice(0,_(t)+1).replace(E,""):t},j=b.Symbol,P=j,A=Object.prototype,S=A.hasOwnProperty,k=A.toString,M=P?P.toStringTag:void 0;var R=function(t){var e=S.call(t,M),n=t[M];try{t[M]=void 0;var r=!0}catch(o){}var i=k.call(t);return r&&(e?t[M]=n:delete t[M]),i},D=Object.prototype.toString;var T=R,z=function(t){return D.call(t)},W=j?j.toStringTag:void 0;var H=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":W&&W in Object(t)?T(t):z(t)},N=function(t){return null!=t&&"object"==typeof t};var L=x,C=y,F=function(t){return"symbol"==typeof t||N(t)&&"[object Symbol]"==H(t)},I=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,U=/^0o[0-7]+$/i,V=parseInt;var Z=y,G=O,q=function(t){if("number"==typeof t)return t;if(F(t))return NaN;if(C(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=C(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=L(t);var n=B.test(t);return n||U.test(t)?V(t.slice(2),n?2:8):I.test(t)?NaN:+t},K=Math.max,$=Math.min;var X=function(t,e,n){var r,i,o,a,c,s,u=0,l=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=r,o=i;return r=i=void 0,u=e,a=t.apply(o,n)}function d(t){return u=t,c=setTimeout(v,e),l?p(t):a}function y(t){var n=t-s;return void 0===s||n>=e||n<0||f&&t-u>=o}function v(){var t=G();if(y(t))return m(t);c=setTimeout(v,function(t){var n=e-(t-s);return f?$(n,o-(t-u)):n}(t))}function m(t){return c=void 0,h&&r?p(t):(r=i=void 0,a)}function b(){var t=G(),n=y(t);if(r=arguments,i=this,s=t,n){if(void 0===c)return d(s);if(f)return clearTimeout(c),c=setTimeout(v,e),p(s)}return void 0===c&&(c=setTimeout(v,e)),a}return e=q(e)||0,Z(n)&&(l=!!n.leading,o=(f="maxWait"in n)?K(q(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==c&&clearTimeout(c),u=0,r=s=i=c=void 0},b.flush=function(){return void 0===c?a:m(G())},b},Y=X,J=y;var Q=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return J(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Y(t,e,{leading:r,maxWait:e,trailing:i})},tt=function(t,e,n,r){switch(e){case"debounce":return X(t,n,r);case"throttle":return Q(t,n,r);default:return t}},et=function(t){return"function"===typeof t},nt=function(){return"undefined"===typeof window},rt=function(t){return t instanceof Element||t instanceof HTMLDocument},it=function(t,e,n,r){return function(i){var o=i.width,a=i.height;e((function(e){return e.width===o&&e.height===a||e.width===o&&!r||e.height===a&&!n?e:(t&&et(t)&&t(o,a),{width:o,height:a})}))}},ot=function(t){function e(e){var n=t.call(this,e)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var t=n.props,e=t.targetRef,r=t.observerOptions;if(!nt()){e&&e.current&&(n.targetRef.current=e.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var t=n.props,e=t.querySelector,r=t.targetDomEl;if(nt())return null;if(e)return document.querySelector(e);if(r&&rt(r))return r;if(n.targetRef&&rt(n.targetRef.current))return n.targetRef.current;var i=o.findDOMNode(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(t){var e=n.props,r=e.handleWidth,i=void 0===r||r,o=e.handleHeight,a=void 0===o||o,c=e.onResize;if(i||a){var s=it(c,n.setState.bind(n),i,a);t.forEach((function(t){var e=t&&t.contentRect||{},r=e.width,i=e.height;!n.skipOnMount&&!nt()&&s({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var t=n.props,e=t.render,r=t.children;return et(e)?"renderProp":et(r)?"childFunction":i.isValidElement(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=e.skipOnMount,a=e.refreshMode,c=e.refreshRate,u=void 0===c?1e3:c,l=e.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=i.createRef(),n.observableElement=null,nt()||(n.resizeHandler=tt(n.createResizeHandler,a,u,l),n.resizeObserver=new s.default(n.resizeHandler)),n}return f(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){nt()||(this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t,e=this.props,n=e.render,r=e.children,o=e.nodeType,a=void 0===o?"div":o,c=this.state,s={width:c.width,height:c.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(s);case"childFunction":return(t=r)(s);case"child":if((t=r).type&&"string"===typeof t.type){var l=p(s,["targetRef"]);return i.cloneElement(t,l)}return i.cloneElement(t,s);case"childArray":return(t=r).map((function(t){return!!t&&i.cloneElement(t,s)}));default:return u.createElement(a,null)}},e}(i.PureComponent);var at=nt()?i.useEffect:i.useLayoutEffect;e.ZP=ot},18602:function(t,e,n){n.d(e,{u:function(){return I}});var r=n(18111),i=n.n(r),o=n(82066),a=n.n(o),c=n(29627),s=n.n(c),u=n(74786),l=n.n(u),f=n(26181),h=n.n(f),p=n(42854),d=n.n(p),y=n(93629),v=n.n(y),m=n(72791),b=n(81694),g=n.n(b),O=n(35195),w=n(57139),_=n(39718),E=n(46044),x=n(87970),j=n(36768),P=n(70587),A=n(56926),S=n(57241);function k(t){return k="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},k(t)}function M(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function R(){return R=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},R.apply(this,arguments)}function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function W(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N(t,e){return N=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},N(t,e)}function L(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 n,r=F(t);if(e){var i=F(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==k(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}var I=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}}),e&&N(t,e)}(c,t);var e,n,r,o=L(c);function c(){var t;W(this,c);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))).state={isAnimationFinished:!0},t.id=(0,P.EL)("recharts-area-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),l()(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),l()(e)&&e()},t}return e=c,r=[{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=[{key:"renderDots",value:function(t,e){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var i=this.props,o=i.dot,a=i.points,s=i.dataKey,u=(0,S.L6)(this.props),l=(0,S.L6)(o,!0),f=a.map((function(t,e){var n=T(T(T({key:"dot-".concat(e),r:3},u),l),{},{dataKey:s,cx:t.x,cy:t.y,index:e,value:t.value,payload:t.payload});return c.renderDotItem(o,n)})),h={clipPath:t?"url(#clipPath-".concat(e,")"):null};return m.createElement(E.m,R({className:"recharts-area-dots"},h),f)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,i=e.strokeWidth,o=r[0].x,a=r[r.length-1].x,c=t*Math.abs(o-a),u=s()(r.map((function(t){return t.y||0})));return(0,P.hj)(n)&&"number"===typeof n?u=Math.max(n,u):n&&v()(n)&&n.length&&(u=Math.max(s()(n.map((function(t){return t.y||0}))),u)),(0,P.hj)(u)?m.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,n=e.baseLine,r=e.points,i=e.strokeWidth,o=r[0].y,a=r[r.length-1].y,c=t*Math.abs(o-a),u=s()(r.map((function(t){return t.x||0})));return(0,P.hj)(n)&&"number"===typeof n?u=Math.max(n,u):n&&v()(n)&&n.length&&(u=Math.max(s()(n.map((function(t){return t.x||0}))),u)),(0,P.hj)(u)?m.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,n,r){var i=this.props,o=i.layout,a=i.type,c=i.stroke,s=i.connectNulls,u=i.isRange,l=(i.ref,M(i,["layout","type","stroke","connectNulls","isRange","ref"]));return m.createElement(E.m,{clipPath:n?"url(#clipPath-".concat(r,")"):null},m.createElement(w.H,R({},(0,S.L6)(l,!0),{points:t,connectNulls:s,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&m.createElement(w.H,R({},(0,S.L6)(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:s,fill:"none",points:t})),"none"!==c&&u&&m.createElement(w.H,R({},(0,S.L6)(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:s,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.baseLine,c=r.isAnimationActive,s=r.animationBegin,u=r.animationDuration,l=r.animationEasing,f=r.animationId,h=this.state,p=h.prevPoints,y=h.prevBaseLine;return m.createElement(O.ZP,{begin:s,duration:u,isActive:c,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var c=r.t;if(p){var s,u=p.length/i.length,l=i.map((function(t,e){var n=Math.floor(e*u);if(p[n]){var r=p[n],i=(0,P.k4)(r.x,t.x),o=(0,P.k4)(r.y,t.y);return T(T({},t),{},{x:i(c),y:o(c)})}return t}));return s=(0,P.hj)(o)&&"number"===typeof o?(0,P.k4)(y,o)(c):d()(o)||a()(o)?(0,P.k4)(y,0)(c):o.map((function(t,e){var n=Math.floor(e*u);if(y[n]){var r=y[n],i=(0,P.k4)(r.x,t.x),o=(0,P.k4)(r.y,t.y);return T(T({},t),{},{x:i(c),y:o(c)})}return t})),n.renderAreaStatically(l,s,t,e)}return m.createElement(E.m,null,m.createElement("defs",null,m.createElement("clipPath",{id:"animationClipPath-".concat(e)},n.renderClipRect(c))),m.createElement(E.m,{clipPath:"url(#animationClipPath-".concat(e,")")},n.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var n=this.props,r=n.points,o=n.baseLine,a=n.isAnimationActive,c=this.state,s=c.prevPoints,u=c.prevBaseLine,l=c.totalLength;return a&&r&&r.length&&(!s&&l>0||!i()(s,r)||!i()(u,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,o,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,i=t.className,o=t.top,a=t.left,c=t.xAxis,s=t.yAxis,u=t.width,l=t.height,f=t.isAnimationActive,h=t.id;if(e||!r||!r.length)return null;var p=this.state.isAnimationFinished,y=1===r.length,v=g()("recharts-area",i),b=c&&c.allowDataOverflow||s&&s.allowDataOverflow,O=d()(h)?this.id:h;return m.createElement(E.m,{className:v},b?m.createElement("defs",null,m.createElement("clipPath",{id:"clipPath-".concat(O)},m.createElement("rect",{x:a,y:o,width:u,height:Math.floor(l)}))):null,y?null:this.renderArea(b,O),(n||y)&&this.renderDots(b,O),(!f||p)&&x.e.renderCallByParent(this.props,r))}}])&&H(e.prototype,n),r&&H(e,r),c}(m.PureComponent);I.displayName="Area",I.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!j.x.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},I.getBaseValue=function(t,e,n){var r=t.layout,i=t.baseValue;if((0,P.hj)(i)&&"number"===typeof i)return i;var o="horizontal"===r?n:e,a=o.scale.domain();if("number"===o.type){var c=Math.max(a[0],a[1]),s=Math.min(a[0],a[1]);return"dataMin"===i?s:"dataMax"===i||c<0?c:Math.max(Math.min(a[0],a[1]),0)}return"dataMin"===i?a[0]:"dataMax"===i?a[1]:a[0]},I.getComposedData=function(t){var e,n=t.props,r=t.xAxis,i=t.yAxis,o=t.xAxisTicks,a=t.yAxisTicks,c=t.bandSize,s=t.dataKey,u=t.stackedData,l=t.dataStartIndex,f=t.displayedData,p=t.offset,y=n.layout,m=u&&u.length,b=I.getBaseValue(n,r,i),g=!1,O=f.map((function(t,e){var n,f=(0,A.F$)(t,s);m?n=u[l+e]:(n=f,v()(n)?g=!0:n=[b,n]);var h=d()(n[1])||m&&d()(f);return"horizontal"===y?{x:(0,A.Hv)({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:h?null:i.scale(n[1]),value:n,payload:t}:{x:h?null:r.scale(n[1]),y:(0,A.Hv)({axis:i,ticks:a,bandSize:c,entry:t,index:e}),value:n,payload:t}}));return e=m||g?O.map((function(t){return"horizontal"===y?{x:t.x,y:d()(h()(t,"value[0]"))||d()(h()(t,"y"))?null:i.scale(h()(t,"value[0]"))}:{x:d()(h()(t,"value[0]"))?null:r.scale(h()(t,"value[0]")),y:t.y}})):"horizontal"===y?i.scale(b):r.scale(b),T({points:O,baseLine:e,layout:y,isRange:g},p)},I.renderDotItem=function(t,e){return m.isValidElement(t)?m.cloneElement(t,e):l()(t)?t(e):m.createElement(_.o,R({},e,{className:"recharts-area-dot"}))}},82839:function(t,e,n){n.d(e,{q:function(){return O}});var r=n(74786),i=n.n(r),o=n(72791),a=n(70587),c=n(57241);function s(t){return s="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},s(t)}function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function l(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function m(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 n,r=g(t);if(e){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var O=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}}),e&&v(t,e)}(f,t);var e,n,r,s=m(f);function f(){return d(this,f),s.apply(this,arguments)}return e=f,r=[{key:"renderLineItem",value:function(t,e){var n;if(o.isValidElement(t))n=o.cloneElement(t,e);else if(i()(t))n=t(e);else{var r=e.x1,a=e.y1,s=e.x2,f=e.y2,h=e.key,p=l(e,["x1","y1","x2","y2","key"]);n=o.createElement("line",u({},(0,c.L6)(p),{x1:r,y1:a,x2:s,y2:f,fill:"none",key:h}))}return n}}],(n=[{key:"renderHorizontal",value:function(t){var e=this,n=this.props,r=n.x,i=n.width,a=n.horizontal;if(!t||!t.length)return null;var c=t.map((function(t,n){var o=h(h({},e.props),{},{x1:r,y1:t,x2:r+i,y2:t,key:"line-".concat(n),index:n});return f.renderLineItem(a,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(t){var e=this,n=this.props,r=n.y,i=n.height,a=n.vertical;if(!t||!t.length)return null;var c=t.map((function(t,n){var o=h(h({},e.props),{},{x1:t,y1:r,x2:t,y2:r+i,key:"line-".concat(n),index:n});return f.renderLineItem(a,o)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(t){var e=this.props.verticalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,c=n.width,s=n.height,u=t.slice().sort((function(t,e){return t-e}));i!==u[0]&&u.unshift(0);var l=u.map((function(t,n){var l=u[n+1]?u[n+1]-t:i+c-t;if(l<=0)return null;var f=n%e.length;return o.createElement("rect",{key:"react-".concat(n),x:Math.round(t+i-i),y:a,width:l,height:s,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(t){var e=this.props.horizontalFill;if(!e||!e.length)return null;var n=this.props,r=n.fillOpacity,i=n.x,a=n.y,c=n.width,s=n.height,u=t.slice().sort((function(t,e){return t-e}));a!==u[0]&&u.unshift(0);var l=u.map((function(t,n){var l=u[n+1]?u[n+1]-t:a+s-t;if(l<=0)return null;var f=n%e.length;return o.createElement("rect",{key:"react-".concat(n),y:Math.round(t+a-a),x:i,height:l,width:c,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var e=this.props,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,c=e.height;return o.createElement("rect",{x:r,y:i,width:a,height:c,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,c=t.height,s=t.horizontal,u=t.vertical,l=t.horizontalCoordinatesGenerator,f=t.verticalCoordinatesGenerator,h=t.xAxis,p=t.yAxis,d=t.offset,y=t.chartWidth,v=t.chartHeight;if(!(0,a.hj)(r)||r<=0||!(0,a.hj)(c)||c<=0||!(0,a.hj)(e)||e!==+e||!(0,a.hj)(n)||n!==+n)return null;var m=this.props,b=m.horizontalPoints,g=m.verticalPoints;return b&&b.length||!i()(l)||(b=l({yAxis:p,width:y,height:v,offset:d})),g&&g.length||!i()(f)||(g=f({xAxis:h,width:y,height:v,offset:d})),o.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),s&&this.renderHorizontal(b),u&&this.renderVertical(g),s&&this.renderHorizontalStripes(b),u&&this.renderVerticalStripes(g))}}])&&y(e.prototype,n),r&&y(e,r),f}(o.PureComponent);O.displayName="CartesianGrid",O.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]}},90466:function(t,e,n){n.d(e,{K:function(){return r}});var r=function(){return null};r.displayName="XAxis",r.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},12891:function(t,e,n){n.d(e,{B:function(){return r}});var r=function(){return null};r.displayName="YAxis",r.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},28265:function(t,e,n){n.d(e,{T:function(){return s}});var r=n(19649),i=n(18602),o=n(90466),a=n(12891),c=n(93137),s=(0,r.z)({chartName:"AreaChart",GraphicalChild:i.u,axisComponents:[{axisType:"xAxis",AxisComp:o.K},{axisType:"yAxis",AxisComp:a.B}],formatAxisMap:c.t9})},19913:function(t,e,n){n.d(e,{h:function(){return d}});var r=n(48573),i=n.n(r),o=n(81694),a=n.n(o),c=n(72791),s=n(17719),u=n(70587),l=n(15303);function f(){return f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f.apply(this,arguments)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d=(0,c.forwardRef)((function(t,e){var n=t.aspect,r=t.width,o=void 0===r?"100%":r,p=t.height,d=void 0===p?"100%":p,y=t.minWidth,v=t.minHeight,m=t.maxHeight,b=t.children,g=t.debounce,O=void 0===g?0:g,w=t.id,_=t.className,E=h((0,c.useState)({containerWidth:-1,containerHeight:-1}),2),x=E[0],j=E[1],P=(0,c.useRef)(null);(0,c.useImperativeHandle)(e,(function(){return P}),[P]);var A=h((0,c.useState)(!1),2),S=A[0],k=A[1],M=function(){return P.current?{containerWidth:P.current.clientWidth,containerHeight:P.current.clientHeight}:null},R=function(){if(S){var t=M();if(t){var e=x.containerWidth,n=x.containerHeight,r=t.containerWidth,i=t.containerHeight;r===e&&i===n||j({containerWidth:r,containerHeight:i})}}},D=O>0?i()(R,O):R;(0,c.useEffect)((function(){if(S){var t=M();t&&j(t)}}),[S]),(0,c.useEffect)((function(){k(!0)}),[]);var T={width:o,height:d,minWidth:y,minHeight:v,maxHeight:m};return c.createElement(s.ZP,{handleWidth:!0,handleHeight:!0,onResize:D,targetRef:P},c.createElement("div",f({},null!=w?{id:"".concat(w)}:{},{className:a()("recharts-responsive-container",_),style:T,ref:P}),function(){var t=x.containerWidth,e=x.containerHeight;if(t<0||e<0)return null;(0,l.Z)((0,u.hU)(o)||(0,u.hU)(d),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",o,d),(0,l.Z)(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=(0,u.hU)(o)?t:o,i=(0,u.hU)(d)?e:d;return n&&n>0&&(r?i=r/n:i&&(r=i*n),m&&i>m&&(i=m)),(0,l.Z)(r>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,i,o,d,y,v,n),(0,c.cloneElement)(b,{width:r,height:i})}()))}))},90474:function(t,e,n){n.r(e);var r=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),a="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],s="undefined"!==typeof MutationObserver,u=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&s()}function c(){a(o)}function s(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(c,e);i=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||o},h=b(0,0,0,0);function p(t){return parseFloat(t)||0}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+p(t["border-"+n+"-width"])}),0)}function y(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return h;var r=f(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=p(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,c=p(r.width),s=p(r.height);if("border-box"===r.boxSizing&&(Math.round(c+o)!==e&&(c-=d(r,"left","right")+o),Math.round(s+a)!==n&&(s-=d(r,"top","bottom")+a)),!function(t){return t===f(t).document.documentElement}(t)){var u=Math.round(c+o)-e,l=Math.round(s+a)-n;1!==Math.abs(u)&&(c-=u),1!==Math.abs(l)&&(s-=l)}return b(i.left,i.top,c,s)}var v="undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"===typeof t.getBBox};function m(t){return i?v(t)?function(t){var e=t.getBBox();return b(0,0,e.width,e.height)}(t):y(t):h}function b(t,e,n,r){return{x:t,y:e,width:n,height:r}}var g=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=m(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),O=function(t,e){var n=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return l(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}(e);l(this,{target:t,contentRect:n})},w=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new g(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new O(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),_="undefined"!==typeof WeakMap?new WeakMap:new r,E=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new w(e,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){E.prototype[t]=function(){var e;return(e=_.get(this))[t].apply(e,arguments)}}));var x="undefined"!==typeof o.ResizeObserver?o.ResizeObserver:E;e.default=x},61120:function(t,e,n){function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,{Z:function(){return r}})},60136:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(89611);function i(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&&(0,r.Z)(t,e)}},82963:function(t,e,n){n.d(e,{Z:function(){return o}});var r=n(71002),i=n(97326);function o(t,e){if(e&&("object"===(0,r.Z)(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(t)}}}]);
//# sourceMappingURL=137.08d76dda.chunk.js.map