|
Server : LiteSpeed System : Linux premium92.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : rbnsfqys ( 805) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/rbnsfqys/public_html/wp-content/plugins/surerank/build/vendor-4237c196/ |
"use strict";(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[5043],{3509:(t,e,r)=>{r.d(e,{v:()=>A});var n=r(51609),o=r.n(n),i=r(34164),a=r(39072),c=r(1882),l=r.n(c),u=r(23181),s=r.n(u),f=r(86069),p=r(20261),y=r(33964),d=r(59744),h=r(50357),v=r(94501);function b(t){return b="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},b(t)}function m(){return m=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},m.apply(this,arguments)}function g(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 O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach(function(e){S(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function w(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,k(n.key),n)}}function x(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(x=function(){return!!t})()}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function S(t,e,r){return(e=k(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function k(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}var E=function(t){return t.changedTouches&&!!t.changedTouches.length},A=function(t){function e(t){var r,n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),S((n=this,i=[t],o=j(o=e),r=function(t,e){if(e&&("object"===b(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)}(n,x()?Reflect.construct(o,i||[],j(n).constructor):o.apply(n,i))),"handleDrag",function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)}),S(r,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])}),S(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=r.props,e=t.onDragEnd;null===e||void 0===e||e({endIndex:t.endIndex,startIndex:t.startIndex})}),r.detachDragEndListener()}),S(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),S(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),S(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),S(r,"handleSlideDragStart",function(t){var e=E(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&&P(t,e)}(e,t),r=e,u=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,a=t.stroke,c=Math.floor(r+i/2)-1;return o().createElement(o().Fragment,null,o().createElement("rect",{x:e,y:r,width:n,height:i,fill:a,stroke:"none"}),o().createElement("line",{x1:e+1,y1:c,x2:e+n-1,y2:c,fill:"none",stroke:"#fff"}),o().createElement("line",{x1:e+1,y1:c+2,x2:e+n-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return o().isValidElement(t)?o().cloneElement(t,r):l()(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,c=t.updateId;if(r!==e.prevData||c!==e.prevUpdateId)return O({prevData:r,prevTravellerWidth:i,prevUpdateId:c,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,c=t.travellerWidth;if(!e||!e.length)return{};var l=e.length,u=(0,a.z)().domain(s()(0,l)).range([o,o+i-c]),f=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:f}}({data:r,width:n,x:o,travellerWidth:i,startIndex:t.startIndex,endIndex:t.endIndex}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:c,prevX:o,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 o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],(c=[{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,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,l=Math.min(r,n),u=Math.max(r,n),s=e.getIndexInRange(o,l),f=e.getIndexInRange(o,u);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.tickFormatter,n=(0,y.kr)(e.data[t],e.dataKey,t);return l()(r)?r(n,t):n}},{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.startX,n=e.endX,o=this.props,i=o.x,a=o.width,c=o.travellerWidth,l=o.startIndex,u=o.endIndex,s=o.onChange,f=t.pageX-e.slideMoveStartX;f>0?f=Math.min(f,i+a-c-n,i+a-c-r):f<0&&(f=Math.max(f,i-r,i-n));var p=this.getIndex({startX:r+f,endX:n+f});p.startIndex===l&&p.endIndex===u||!s||s(p),this.setState({startX:r+f,endX:n+f,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=E(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.movingTravellerId,n=e.endX,o=e.startX,i=this.state[r],a=this.props,c=a.x,l=a.onChange,u=a.gap,s=a.data,f={startX:this.state.startX,endX:this.state.endX},p=t.pageX-e.brushMoveStartX;p>0?p=Math.min(p,c+a.width-a.travellerWidth-i):p<0&&(p=Math.max(p,c-i)),f[r]=i+p;var y=this.getIndex(f),d=y.startIndex,h=y.endIndex;this.setState(S(S({},r,i+p),"brushMoveStartX",t.pageX),function(){l&&function(){var t=s.length-1;return"startX"===r&&(n>o?d%u===0:h%u===0)||n<o&&h===t||"endX"===r&&(n>o?h%u===0:d%u===0)||n>o&&h===t}()&&l(y)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=o.indexOf(this.state[e]);if(-1!==c){var l=c+t;if(!(-1===l||l>=o.length)){var u=o[l];"startX"===e&&u>=a||"endX"===e&&u<=i||this.setState(S({},e,u),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,a=t.fill,c=t.stroke;return o().createElement("rect",{stroke:c,fill:a,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,i=t.width,a=t.height,c=t.data,l=t.padding,u=n.Children.only(t.children);return u?o().cloneElement(u,{x:e,y:r,width:i,height:a,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,i,a=this,c=this.props,l=c.y,u=c.travellerWidth,s=c.height,p=c.traveller,y=c.ariaLabel,d=c.data,h=c.startIndex,b=c.endIndex,m=Math.max(t,this.props.x),g=O(O({},(0,v.J9)(this.props,!1)),{},{x:m,y:l,width:u,height:s}),w=y||"Min value: ".concat(null===(n=d[h])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=d[b])||void 0===i?void 0:i.name);return o().createElement(f.W,{tabIndex:0,role:"slider","aria-label":w,"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(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(p,g))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,a=r.stroke,c=r.travellerWidth,l=Math.min(t,e)+c,u=Math.max(Math.abs(e-t)-c,0);return o().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:l,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,a=t.travellerWidth,c=this.state,l=c.startX,u=c.endX,s={pointerEvents:"none",fill:t.stroke};return o().createElement(f.W,{className:"recharts-brush-texts"},o().createElement(p.E,m({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+i/2},s),this.getTextOfTick(e)),o().createElement(p.E,m({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+a+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,a=t.y,c=t.width,l=t.height,u=t.alwaysShowText,s=this.state,p=s.startX,y=s.endX,v=s.isTextActive,b=s.isSlideMoving,m=s.isTravellerMoving,g=s.isTravellerFocused;if(!e||!e.length||!(0,d.Et)(t.x)||!(0,d.Et)(a)||!(0,d.Et)(c)||!(0,d.Et)(l)||c<=0||l<=0)return null;var O=(0,i.A)("recharts-brush",r),w=1===o().Children.count(n),x=(0,h.t)("userSelect","none");return o().createElement(f.W,{className:O,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||b||m||g||u)&&this.renderText())}}])&&w(r.prototype,c),u&&w(r,u),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,c,u}(n.PureComponent);S(A,"displayName","Brush"),S(A,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1})},11386:(t,e,r)=>{r.d(e,{f:()=>y});var n=r(1882),o=r.n(n),i=r(59744),a=r(81636),c=r(59938),l=r(80771),u=r(39942);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 f(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 p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){var n,o,i;n=t,i=r[e],(o=function(t){var e=function(t){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==s(e)?e:e+""}(o=e))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(t,e,r){var n=t.ticks,s=t.viewBox,f=t.minTickGap,y=t.orientation,d=t.interval,h=t.tickFormatter,v=t.unit,b=t.angle;if(!n||!n.length||!t.tick)return[];if((0,i.Et)(d)||c.m.isSsr)return(0,l.pB)(n,"number"===typeof d&&(0,i.Et)(d)?d:0);var m=[],g="top"===y||"bottom"===y?"width":"height",O=v&&"width"===g?(0,a.Pu)(v,{fontSize:e,letterSpacing:r}):{width:0,height:0},w=function(t,n){var i=o()(h)?h(t.value,n):t.value;return"width"===g?(0,l.HX)((0,a.Pu)(i,{fontSize:e,letterSpacing:r}),O,b):(0,a.Pu)(i,{fontSize:e,letterSpacing:r})[g]},x=n.length>=2?(0,i.sA)(n[1].coordinate-n[0].coordinate):1,j=(0,l.y)(s,x,g);return"equidistantPreserveStart"===d?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,s=e.end,f=0,p=1,y=c,d=function(){var e=null===n||void 0===n?void 0:n[f];if(void 0===e)return{v:(0,u.B)(n,p)};var i,a=f,d=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,v=0===f||(0,l.zN)(t,h,d,y,s);v||(f=0,y=c,p+=1),v&&(y=h+t*(d()/2+o),f+=p)};p<=a.length;)if(i=d())return i.v;return[]}(x,j,w,n,f):(m="preserveStart"===d||"preserveStartEnd"===d?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,s=e.end;if(i){var f=n[c-1],y=r(f,c-1),d=t*(f.coordinate+t*y/2-s);a[c-1]=f=p(p({},f),{},{tickCoord:d>0?f.coordinate-d*t:f.coordinate}),(0,l.zN)(t,f.tickCoord,function(){return y},u,s)&&(s=f.tickCoord-t*(y/2+o),a[c-1]=p(p({},f),{},{isShow:!0}))}for(var h=i?c-1:c,v=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var f=t*(i.coordinate-t*c()/2-u);a[e]=i=p(p({},i),{},{tickCoord:f<0?i.coordinate-f*t:i.coordinate})}else a[e]=i=p(p({},i),{},{tickCoord:i.coordinate});(0,l.zN)(t,i.tickCoord,c,u,s)&&(u=i.tickCoord+t*(c()/2+o),a[e]=p(p({},i),{},{isShow:!0}))},b=0;b<h;b++)v(b);return a}(x,j,w,n,f,"preserveStartEnd"===d):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,s=function(e){var n,s=i[e],f=function(){return void 0===n&&(n=r(s,e)),n};if(e===a-1){var y=t*(s.coordinate+t*f()/2-u);i[e]=s=p(p({},s),{},{tickCoord:y>0?s.coordinate-y*t:s.coordinate})}else i[e]=s=p(p({},s),{},{tickCoord:s.coordinate});(0,l.zN)(t,s.tickCoord,f,c,u)&&(u=s.tickCoord-t*(f()/2+o),i[e]=p(p({},s),{},{isShow:!0}))},f=a-1;f>=0;f--)s(f);return i}(x,j,w,n,f),m.filter(function(t){return t.isShow}))}},15344:(t,e,r)=>{r.d(e,{y:()=>N});var n,o=r(51609),i=r.n(o),a=r(34164),c=r(87011),l=r(2404),u=r.n(l),s=r(69843),f=r.n(s),p=r(86069),y=r(51738),d=r(72050),h=r(5614),v=r(59744),b=r(94501),m=r(59938),g=r(33964),O=r(98940),w=r(69767),x=["value","background"];function j(t){return j="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},j(t)}function P(){return P=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},P.apply(this,arguments)}function S(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 k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach(function(e){I(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function E(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)}}function A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(A=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}function D(t,e){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},D(t,e)}function I(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){if("object"!=j(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==j(e)?e:e+""}var N=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return I((r=this,n=e,o=[].concat(a),n=T(n),t=function(t,e){if(e&&("object"===j(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)}(r,A()?Reflect.construct(n,o||[],T(r).constructor):n.apply(r,o))),"state",{isAnimationFinished:!1}),I(t,"id",(0,v.NF)("recharts-bar-")),I(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),I(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&&D(t,e)}(e,t),r=e,o=[{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=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,a=r.activeIndex,c=r.activeBar,l=(0,b.J9)(this.props,!1);return t&&t.map(function(t,r){var u=r===a,s=u?c:n,f=k(k(k({},l),t),{},{isActive:u,option:s,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return i().createElement(p.W,P({className:"recharts-bar-rectangle"},(0,O.XC)(e.props,t,r),{key:"rectangle-".concat(null===t||void 0===t?void 0:t.x,"-").concat(null===t||void 0===t?void 0:t.y,"-").concat(null===t||void 0===t?void 0:t.value,"-").concat(r)}),i().createElement(w.z,f))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,a=e.animationBegin,l=e.animationDuration,u=e.animationEasing,s=e.animationId,f=this.state.prevData;return i().createElement(c.Ay,{begin:a,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(e){var o=e.t,a=r.map(function(t,e){var r=f&&f[e];if(r){var i=(0,v.Dj)(r.x,t.x),a=(0,v.Dj)(r.y,t.y),c=(0,v.Dj)(r.width,t.width),l=(0,v.Dj)(r.height,t.height);return k(k({},t),{},{x:i(o),y:a(o),width:c(o),height:l(o)})}if("horizontal"===n){var u=(0,v.Dj)(0,t.height)(o);return k(k({},t),{},{y:t.y+t.height-u,height:u})}var s=(0,v.Dj)(0,t.width)(o);return k(k({},t),{},{width:s})});return i().createElement(p.W,null,t.renderRectanglesStatically(a))})}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=this.state.prevData;return!(t.isAnimationActive&&e&&e.length)||r&&u()(r,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,a=(0,b.J9)(this.props.background,!1);return r.map(function(e,r){var c=e.background,l=function(t,e){if(null==t)return{};var r,n,o=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 i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,x);if(!c)return null;var u=k(k(k(k(k({},l),{},{fill:"#eee"},c),a),(0,O.XC)(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return i().createElement(w.z,P({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},u))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,a=r.yAxis,c=r.layout,l=(0,b.aS)(r.children,y.u);if(!l)return null;var u="vertical"===c?n[0].height/2:n[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:(0,g.kr)(t,e)}},f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return i().createElement(p.W,f,l.map(function(t){return i().cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:a,layout:c,offset:u,dataPointFormatter:s})}))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.xAxis,n=t.yAxis,o=t.left,c=t.top,l=t.width,u=t.height,s=t.isAnimationActive,y=t.background,d=t.id;if(t.hide||!e||!e.length)return null;var v=this.state.isAnimationFinished,b=(0,a.A)("recharts-bar",t.className),m=r&&r.allowDataOverflow,g=n&&n.allowDataOverflow,O=m||g,w=f()(d)?this.id:d;return i().createElement(p.W,{className:b},m||g?i().createElement("defs",null,i().createElement("clipPath",{id:"clipPath-".concat(w)},i().createElement("rect",{x:m?o:o-l/2,y:g?c:c-u/2,width:m?l:2*l,height:g?u:2*u}))):null,i().createElement(p.W,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(w,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,w),(!s||v)&&h.Z.renderCallByParent(this.props,e))}}])&&E(r.prototype,n),o&&E(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(o.PureComponent);n=N,I(N,"displayName","Bar"),I(N,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!m.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),I(N,"getComposedData",function(t){var e=t.props,r=t.item,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,l=t.yAxisTicks,u=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,y=(0,g.xi)(t.barPosition,r);if(!y)return null;var h=e.layout,m=r.type.defaultProps,O=void 0!==m?k(k({},m),r.props):r.props,x=O.dataKey,j=O.children,P=O.minPointSize,S="horizontal"===h?a:i,E=u?S.scale.domain():null,A=(0,g.DW)({numericAxis:S}),T=(0,b.aS)(j,d.f),D=f.map(function(t,e){var f,p,d,b,m,O;u?f=(0,g._f)(u[s+e],E):(f=(0,g.kr)(t,x),Array.isArray(f)||(f=[A,f]));var j=(0,w.l)(P,n.defaultProps.minPointSize)(f[1],e);if("horizontal"===h){var S,D=[a.scale(f[0]),a.scale(f[1])],I=D[0],C=D[1];p=(0,g.y2)({axis:i,ticks:c,bandSize:o,offset:y.offset,entry:t,index:e}),d=null!==(S=null!==C&&void 0!==C?C:I)&&void 0!==S?S:void 0,b=y.size;var N=I-C;if(m=Number.isNaN(N)?0:N,O={x:p,y:a.y,width:b,height:a.height},Math.abs(j)>0&&Math.abs(m)<Math.abs(j)){var _=(0,v.sA)(m||j)*(Math.abs(j)-Math.abs(m));d-=_,m+=_}}else{var M=[i.scale(f[0]),i.scale(f[1])],R=M[0],B=M[1];p=R,d=(0,g.y2)({axis:a,ticks:l,bandSize:o,offset:y.offset,entry:t,index:e}),b=B-R,O={x:i.x,y:d,width:i.width,height:m=y.size},Math.abs(j)>0&&Math.abs(b)<Math.abs(j)&&(b+=(0,v.sA)(b||j)*(Math.abs(j)-Math.abs(b)))}return k(k(k({},t),{},{x:p,y:d,width:b,height:m,value:u?f:f[1],payload:t,background:O},T&&T[e]&&T[e].props),{},{tooltipPayload:[(0,g.zb)(r,t)],tooltipPosition:{x:p+b/2,y:d+m/2}})});return k({data:D,layout:h},p)})},23495:(t,e,r)=>{r.d(e,{h:()=>v});var n=r(51609),o=r(34164),i=r(19287),a=r(99582),c=r(33964);function l(t){return l="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},l(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(this,arguments)}var h=function(t){var e=t.yAxisId,r=(0,i.yi)(),l=(0,i.rY)(),u=(0,i.Nk)(e);return null==u?null:n.createElement(a.u,d({},u,{className:(0,o.A)("recharts-".concat(u.axisType," ").concat(u.axisType),u.className),viewBox:{x:0,y:0,width:r,height:l},ticksGenerator:function(t){return(0,c.Rh)(t,!0)}}))},v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=s(r=e),function(t,e){if(e&&("object"===l(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,u()?Reflect.construct(r,n||[],s(t).constructor):r.apply(t,n));var t,r,n}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&&f(t,e)}(e,t),r=e,(o=[{key:"render",value:function(){return n.createElement(h,this.props)}}])&&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,y(n.key),n)}}(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(n.Component);p(v,"displayName","YAxis"),p(v,"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})},45373:(t,e,r)=>{r.d(e,{r:()=>S});var n=r(51609),o=r.n(n),i=r(1882),a=r.n(i),c=r(34164),l=r(86069),u=r(66613),s=r(91706),f=r(59744),p=r(86347),y=r(15894),d=r(6634),h=r(94501);function v(){return v=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},v.apply(this,arguments)}function b(t){return b="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},b(t)}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 g(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){j(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 O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(O=function(){return!!t})()}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function x(t,e){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},x(t,e)}function j(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}var S=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=w(r=e),function(t,e){if(e&&("object"===b(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,O()?Reflect.construct(r,n||[],w(t).constructor):r.apply(t,n));var t,r,n}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&&x(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){var t=this.props,r=t.y,n=t.r,i=t.alwaysShow,a=t.clipPathId,u=(0,f.vh)(t.x),v=(0,f.vh)(r);if((0,d.R)(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!v)return null;var b=function(t){var e=t.x,r=t.y,n=(0,y.P2)({x:t.xAxis.scale,y:t.yAxis.scale}),o=n.apply({x:e,y:r},{bandAware:!0});return(0,p.R)(t,"discard")&&!n.isInRange(o)?null:o}(this.props);if(!b)return null;var m=b.x,O=b.y,w=this.props,x=w.shape,j=w.className,P=g(g({clipPath:(0,p.R)(this.props,"hidden")?"url(#".concat(a,")"):void 0},(0,h.J9)(this.props,!0)),{},{cx:m,cy:O});return o().createElement(l.W,{className:(0,c.A)("recharts-reference-dot",j)},e.renderDot(x,P),s.J.renderCallByParent(this.props,{x:m-n,y:O-n,width:2*n,height:2*n}))}}])&&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,P(n.key),n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(o().Component);j(S,"displayName","ReferenceDot"),j(S,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),j(S,"renderDot",function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):a()(t)?t(e):o().createElement(u.c,v({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))})},51738:(t,e,r)=>{r.d(e,{u:()=>b});var n=r(51609),o=r.n(n),i=r(11561),a=r(86069),c=r(94501),l=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(t){return u="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},u(t)}function s(){return s=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},s.apply(this,arguments)}function f(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 p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function v(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}var b=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=y(r=e),function(t,e){if(e&&("object"===u(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,p()?Reflect.construct(r,n||[],y(t).constructor):r.apply(t,n));var t,r,n}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&&d(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,n=t.width,u=t.dataKey,p=t.data,y=t.dataPointFormatter,d=t.xAxis,h=t.yAxis,v=function(t,e){if(null==t)return{};var r,n,o=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 i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,l),b=(0,c.J9)(v,!1);"x"===this.props.direction&&"number"!==d.type&&(0,i.A)(!1);var m=p.map(function(t){var i=y(t,u),c=i.x,l=i.y,p=i.value,v=i.errorVal;if(!v)return null;var m,g,O,w=[];if(Array.isArray(v)){var x=function(t){if(Array.isArray(t))return t}(O=v)||function(t){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,n,o,i,a=[],c=!0,l=!1;try{for(o=(e=e.call(t)).next,0;!(c=(r=o.call(e)).done)&&(a.push(r.value),2!==a.length);c=!0);}catch(t){l=!0,n=t}finally{try{if(!c&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(l)throw n}}return a}}(O)||function(t){if(t){if("string"===typeof t)return f(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?f(t,2):void 0}}(O)||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.")}();m=x[0],g=x[1]}else m=g=v;if("vertical"===r){var j=d.scale,P=l+e,S=P+n,k=P-n,E=j(p-m),A=j(p+g);w.push({x1:A,y1:S,x2:A,y2:k}),w.push({x1:E,y1:P,x2:A,y2:P}),w.push({x1:E,y1:S,x2:E,y2:k})}else if("horizontal"===r){var T=h.scale,D=c+e,I=D-n,C=D+n,N=T(p-m),_=T(p+g);w.push({x1:I,y1:_,x2:C,y2:_}),w.push({x1:D,y1:N,x2:D,y2:_}),w.push({x1:I,y1:N,x2:C,y2:N})}return o().createElement(a.W,s({className:"recharts-errorBar",key:"bar-".concat(w.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},b),w.map(function(t){return o().createElement("line",s({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return o().createElement(a.W,{className:"recharts-errorBars"},m)}}])&&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,v(n.key),n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(o().Component);h(b,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),h(b,"displayName","ErrorBar")},57158:(t,e,r)=>{r.d(e,{e:()=>T});var n=r(51609),o=r.n(n),i=r(1882),a=r.n(i),c=r(42426),l=r.n(c),u=r(34164),s=r(86069),f=r(91706),p=r(86347),y=r(59744),d=r(15894),h=r(6634),v=r(94501),b=r(19287);function m(t){return m="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},m(t)}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(g=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}function x(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?x(Object(r),!0).forEach(function(e){P(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function P(t,e,r){return(e=S(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t){var e=function(t){if("object"!=m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}function k(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 E(){return E=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},E.apply(this,arguments)}function A(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,c=t.yAxisId,m=t.shape,g=t.className,O=t.alwaysShow,w=(0,b.Yp)(),x=(0,b.AF)(i),P=(0,b.Nk)(c),S=(0,b.sk)();if(!w||!S)return null;(0,h.R)(void 0===O,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var A=function(t,e,r,n,o,i,a,c,u){var s=o.x,f=o.y,y=o.width,d=o.height;if(r){var h=t.y.apply(u.y,{position:i});if((0,p.R)(u,"discard")&&!t.y.isInRange(h))return null;var v=[{x:s+y,y:h},{x:s,y:h}];return"left"===c?v.reverse():v}if(e){var b=t.x.apply(u.x,{position:i});if((0,p.R)(u,"discard")&&!t.x.isInRange(b))return null;var m=[{x:b,y:f+d},{x:b,y:f}];return"top"===a?m.reverse():m}if(n){var g=u.segment.map(function(e){return t.apply(e,{position:i})});return(0,p.R)(u,"discard")&&l()(g,function(e){return!t.isInRange(e)})?null:g}return null}((0,d.P2)({x:x.scale,y:P.scale}),(0,y.vh)(e),(0,y.vh)(r),n&&2===n.length,S,t.position,x.orientation,P.orientation,t);if(!A)return null;var T,D=function(t){if(Array.isArray(t))return t}(T=A)||function(t){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,n,o,i,a=[],c=!0,l=!1;try{for(o=(e=e.call(t)).next,0;!(c=(r=o.call(e)).done)&&(a.push(r.value),2!==a.length);c=!0);}catch(t){l=!0,n=t}finally{try{if(!c&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(l)throw n}}return a}}(T)||function(t){if(t){if("string"===typeof t)return k(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?k(t,2):void 0}}(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.")}(),I=D[0],C=I.x,N=I.y,_=D[1],M=_.x,R=_.y,B=j(j({clipPath:(0,p.R)(t,"hidden")?"url(#".concat(w,")"):void 0},(0,v.J9)(t,!0)),{},{x1:C,y1:N,x2:M,y2:R});return o().createElement(s.W,{className:(0,u.A)("recharts-reference-line",g)},function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):a()(t)?t(e):o().createElement("line",E({},e,{className:"recharts-reference-line-line"}))}(m,B),f.J.renderCallByParent(t,(0,d.vh)({x1:C,y1:N,x2:M,y2:R})))}var T=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=O(r=e),function(t,e){if(e&&("object"===m(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,g()?Reflect.construct(r,n||[],O(t).constructor):r.apply(t,n));var t,r,n}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&&w(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){return o().createElement(A,this.props)}}])&&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,S(n.key),n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(o().Component);P(T,"displayName","ReferenceLine"),P(T,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"})},69107:(t,e,r)=>{r.d(e,{d:()=>D});var n=r(51609),o=r.n(n),i=r(1882),a=r.n(i),c=r(6634),l=r(59744),u=r(94501),s=r(33964),f=r(11386),p=r(99582),y=r(19287),d=["x1","y1","x2","y2","key"],h=["offset"];function v(t){return v="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},v(t)}function b(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 m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){var n,o,i;n=t,i=r[e],(o=function(t){var e=function(t){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}(o=e))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function g(){return g=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},g.apply(this,arguments)}function O(t,e){if(null==t)return{};var r,n,o=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 i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var w=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,n=t.x,i=t.y,a=t.width,c=t.height,l=t.ry;return o().createElement("rect",{x:n,y:i,ry:l,width:a,height:c,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function x(t,e){var r;if(o().isValidElement(t))r=o().cloneElement(t,e);else if(a()(t))r=t(e);else{var n=e.x1,i=e.y1,c=e.x2,l=e.y2,s=e.key,f=O(e,d),p=O((0,u.J9)(f,!1),h);r=o().createElement("line",g({},p,{x1:n,y1:i,x2:c,y2:l,fill:"none",key:s}))}return r}function j(t){var e=t.x,r=t.width,n=t.horizontal,i=void 0===n||n,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var c=a.map(function(n,o){var a=m(m({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(o),index:o});return x(i,a)});return o().createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function P(t){var e=t.y,r=t.height,n=t.vertical,i=void 0===n||n,a=t.verticalPoints;if(!i||!a||!a.length)return null;var c=a.map(function(n,o){var a=m(m({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(o),index:o});return x(i,a)});return o().createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function S(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,i=t.y,a=t.width,c=t.height,l=t.horizontal;if(void 0!==l&&!l||!e||!e.length)return null;var u=t.horizontalPoints.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==u[0]&&u.unshift(0);var s=u.map(function(t,l){var s=u[l+1]?u[l+1]-t:i+c-t;if(s<=0)return null;var f=l%e.length;return o().createElement("rect",{key:"react-".concat(l),y:t,x:n,height:s,width:a,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return o().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},s)}function k(t){var e=t.vertical,r=t.verticalFill,n=t.fillOpacity,i=t.x,a=t.y,c=t.width,l=t.height;if(void 0!==e&&!e||!r||!r.length)return null;var u=t.verticalPoints.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==u[0]&&u.unshift(0);var s=u.map(function(t,e){var s=u[e+1]?u[e+1]-t:i+c-t;if(s<=0)return null;var f=e%r.length;return o().createElement("rect",{key:"react-".concat(e),x:t,y:a,width:s,height:l,stroke:"none",fill:r[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return o().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},s)}var E=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return(0,s.PW)((0,f.f)(m(m(m({},p.u.defaultProps),r),{},{ticks:(0,s.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},A=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return(0,s.PW)((0,f.f)(m(m(m({},p.u.defaultProps),r),{},{ticks:(0,s.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},T={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function D(t){var e,r,n,i,u,s,f=(0,y.yi)(),p=(0,y.rY)(),d=(0,y.hj)(),h=m(m({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:T.stroke,fill:null!==(r=t.fill)&&void 0!==r?r:T.fill,horizontal:null!==(n=t.horizontal)&&void 0!==n?n:T.horizontal,horizontalFill:null!==(i=t.horizontalFill)&&void 0!==i?i:T.horizontalFill,vertical:null!==(u=t.vertical)&&void 0!==u?u:T.vertical,verticalFill:null!==(s=t.verticalFill)&&void 0!==s?s:T.verticalFill,x:(0,l.Et)(t.x)?t.x:d.left,y:(0,l.Et)(t.y)?t.y:d.top,width:(0,l.Et)(t.width)?t.width:d.width,height:(0,l.Et)(t.height)?t.height:d.height}),b=h.x,O=h.y,x=h.width,D=h.height,I=h.syncWithTicks,C=h.horizontalValues,N=h.verticalValues,_=(0,y.pj)(),M=(0,y.$G)();if(!(0,l.Et)(x)||x<=0||!(0,l.Et)(D)||D<=0||!(0,l.Et)(b)||b!==+b||!(0,l.Et)(O)||O!==+O)return null;var R=h.verticalCoordinatesGenerator||E,B=h.horizontalCoordinatesGenerator||A,z=h.horizontalPoints,X=h.verticalPoints;if((!z||!z.length)&&a()(B)){var W=C&&C.length,L=B({yAxis:M?m(m({},M),{},{ticks:W?C:M.ticks}):void 0,width:f,height:p,offset:d},!!W||I);(0,c.R)(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(v(L),"]")),Array.isArray(L)&&(z=L)}if((!X||!X.length)&&a()(R)){var F=N&&N.length,J=R({xAxis:_?m(m({},_),{},{ticks:F?N:_.ticks}):void 0,width:f,height:p,offset:d},!!F||I);(0,c.R)(Array.isArray(J),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(v(J),"]")),Array.isArray(J)&&(X=J)}return o().createElement("g",{className:"recharts-cartesian-grid"},o().createElement(w,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),o().createElement(j,g({},h,{offset:d,horizontalPoints:z,xAxis:_,yAxis:M})),o().createElement(P,g({},h,{offset:d,verticalPoints:X,xAxis:_,yAxis:M})),o().createElement(S,g({},h,{horizontalPoints:z})),o().createElement(k,g({},h,{verticalPoints:X})))}D.displayName="CartesianGrid"},77984:(t,e,r)=>{r.d(e,{W:()=>v});var n=r(51609),o=r(34164),i=r(19287),a=r(99582),c=r(33964);function l(t){return l="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},l(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t,e,r){return(e=y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(this,arguments)}function h(t){var e=t.xAxisId,r=(0,i.yi)(),l=(0,i.rY)(),u=(0,i.AF)(e);return null==u?null:n.createElement(a.u,d({},u,{className:(0,o.A)("recharts-".concat(u.axisType," ").concat(u.axisType),u.className),viewBox:{x:0,y:0,width:r,height:l},ticksGenerator:function(t){return(0,c.Rh)(t,!0)}}))}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=s(r=e),function(t,e){if(e&&("object"===l(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,u()?Reflect.construct(r,n||[],s(t).constructor):r.apply(t,n));var t,r,n}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&&f(t,e)}(e,t),r=e,(o=[{key:"render",value:function(){return n.createElement(h,this.props)}}])&&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,y(n.key),n)}}(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(n.Component);p(v,"displayName","XAxis"),p(v,"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})},86279:(t,e,r)=>{r.d(e,{N:()=>B});var n=r(51609),o=r.n(n),i=r(87011),a=r(1882),c=r.n(a),l=r(69843),u=r.n(l),s=r(2404),f=r.n(s),p=r(34164),y=r(45249),d=r(66613),h=r(86069),v=r(5614),b=r(51738),m=r(59744),g=r(94501),O=r(59938),w=r(33964),x=["type","layout","connectNulls","ref"],j=["key"];function P(t){return P="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},P(t)}function S(t,e){if(null==t)return{};var r,n,o=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 i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function k(){return k=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},k.apply(this,arguments)}function E(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 A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?E(Object(r),!0).forEach(function(e){M(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function T(t){return function(t){if(Array.isArray(t))return D(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){if("string"===typeof t)return D(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)?D(t,e):void 0}}(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 D(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 I(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,R(n.key),n)}}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(C=function(){return!!t})()}function N(t){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},N(t)}function _(t,e){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_(t,e)}function M(t,e,r){return(e=R(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function R(t){var e=function(t){if("object"!=P(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==P(e)?e:e+""}var B=function(t){function e(){var t,r,n,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return M((r=this,n=e,o=[].concat(a),n=N(n),t=function(t,e){if(e&&("object"===P(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)}(r,C()?Reflect.construct(n,o||[],N(r).constructor):n.apply(r,o))),"state",{isAnimationFinished:!0,totalLength:0}),M(t,"generateSimpleStrokeDasharray",function(t,e){return"".concat(e,"px ").concat(t-e,"px")}),M(t,"getStrokeDasharray",function(r,n,o){var i=o.reduce(function(t,e){return t+e});if(!i)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,l=n-r,u=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){u=[].concat(T(o.slice(0,s)),[c-f]);break}var p=u.length%2===0?[0,l]:[l];return[].concat(T(e.repeat(o,a)),T(u),p).map(function(t){return"".concat(t,"px")}).join(", ")}),M(t,"id",(0,m.NF)("recharts-line-")),M(t,"pathRef",function(e){t.mainCurve=e}),M(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),M(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&&_(t,e)}(e,t),r=e,a=[{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(T(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(T(n),T(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(o().isValidElement(t))r=o().cloneElement(t,e);else if(c()(t))r=t(e);else{var n=e.key,i=S(e,j),a=(0,p.A)("recharts-line-dot","boolean"!==typeof t?t.className:"");r=o().createElement(d.c,k({key:n},i,{className:a}))}return r}}],(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(e){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,a=r.yAxis,c=r.layout,l=(0,g.aS)(r.children,b.u);if(!l)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:(0,w.kr)(t.payload,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return o().createElement(h.W,s,l.map(function(t){return o().cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:a,layout:c,dataPointFormatter:u})}))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,c=i.points,l=i.dataKey,u=(0,g.J9)(this.props,!1),s=(0,g.J9)(a,!0),f=c.map(function(t,r){var n=A(A(A({key:"dot-".concat(r),r:3},u),s),{},{index:r,cx:t.x,cy:t.y,value:t.value,dataKey:l,payload:t.payload,points:c});return e.renderDotItem(a,n)}),p={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return o().createElement(h.W,k({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,a=i.type,c=i.layout,l=i.connectNulls,u=S(i,x),s=A(A(A({},(0,g.J9)(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:a,layout:c,connectNulls:l});return o().createElement(y.I,k({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,a=n.points,c=n.strokeDasharray,l=n.isAnimationActive,u=n.animationBegin,s=n.animationDuration,f=n.animationEasing,p=n.animationId,y=n.animateNewValues,d=n.width,h=n.height,v=this.state,b=v.prevPoints,g=v.totalLength;return o().createElement(i.Ay,{begin:u,duration:s,isActive:l,easing:f,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(n){var o=n.t;if(b){var i=b.length/a.length,l=a.map(function(t,e){var r=Math.floor(e*i);if(b[r]){var n=b[r],a=(0,m.Dj)(n.x,t.x),c=(0,m.Dj)(n.y,t.y);return A(A({},t),{},{x:a(o),y:c(o)})}if(y){var l=(0,m.Dj)(2*d,t.x),u=(0,m.Dj)(h/2,t.y);return A(A({},t),{},{x:l(o),y:u(o)})}return A(A({},t),{},{x:t.x,y:t.y})});return r.renderCurveStatically(l,t,e)}var u,s=(0,m.Dj)(0,g)(o);if(c){var f="".concat(c).split(/[,\s]+/gim).map(function(t){return parseFloat(t)});u=r.getStrokeDasharray(s,g,f)}else u=r.generateSimpleStrokeDasharray(g,s);return r.renderCurveStatically(a,t,e,{strokeDasharray:u})})}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=this.state,i=o.prevPoints;return r.isAnimationActive&&n&&n.length&&(!i&&o.totalLength>0||!f()(i,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.dot,n=e.points,i=e.xAxis,a=e.yAxis,c=e.top,l=e.left,s=e.width,f=e.height,y=e.isAnimationActive,d=e.id;if(e.hide||!n||!n.length)return null;var b=this.state.isAnimationFinished,m=1===n.length,O=(0,p.A)("recharts-line",e.className),w=i&&i.allowDataOverflow,x=a&&a.allowDataOverflow,j=w||x,P=u()(d)?this.id:d,S=null!==(t=(0,g.J9)(r,!1))&&void 0!==t?t:{r:3,strokeWidth:2},k=S.r,E=void 0===k?3:k,A=S.strokeWidth,T=void 0===A?2:A,D=((0,g.sT)(r)?r:{}).clipDot,I=void 0===D||D,C=2*E+T;return o().createElement(h.W,{className:O},w||x?o().createElement("defs",null,o().createElement("clipPath",{id:"clipPath-".concat(P)},o().createElement("rect",{x:w?l:l-s/2,y:x?c:c-f/2,width:w?s:2*s,height:x?f:2*f})),!I&&o().createElement("clipPath",{id:"clipPath-dots-".concat(P)},o().createElement("rect",{x:l-C/2,y:c-C/2,width:s+C,height:f+C}))):null,!m&&this.renderCurve(j,P),this.renderErrorBar(j,P),(m||r)&&this.renderDots(j,I,P),(!y||b)&&v.Z.renderCallByParent(this.props,n))}}])&&I(r.prototype,n),a&&I(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,a}(n.PureComponent);M(B,"displayName","Line"),M(B,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!O.m.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),M(B,"getComposedData",function(t){var e=t.xAxis,r=t.yAxis,n=t.xAxisTicks,o=t.yAxisTicks,i=t.dataKey,a=t.bandSize,c=t.offset,l=t.props.layout;return A({points:t.displayedData.map(function(t,c){var s=(0,w.kr)(t,i);return"horizontal"===l?{x:(0,w.nb)({axis:e,ticks:n,bandSize:a,entry:t,index:c}),y:u()(s)?null:r.scale(s),value:s,payload:t}:{x:u()(s)?null:e.scale(s),y:(0,w.nb)({axis:r,ticks:o,bandSize:a,entry:t,index:c}),value:s,payload:t}}),layout:l},c)})},88621:(t,e,r)=>{r.d(e,{T:()=>S});var n=r(51609),o=r.n(n),i=r(1882),a=r.n(i),c=r(34164),l=r(86069),u=r(91706),s=r(15894),f=r(86347),p=r(59744),y=r(6634),d=r(34723),h=r(94501);function v(){return v=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},v.apply(this,arguments)}function b(t){return b="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},b(t)}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 g(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){j(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 O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(O=function(){return!!t})()}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function x(t,e){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},x(t,e)}function j(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}var S=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n=arguments,r=w(r=e),function(t,e){if(e&&("object"===b(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,O()?Reflect.construct(r,n||[],w(t).constructor):r.apply(t,n));var t,r,n}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&&x(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,i=t.y1,a=t.y2,d=t.className,v=t.clipPathId;(0,y.R)(void 0===t.alwaysShow,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=(0,p.vh)(r),m=(0,p.vh)(n),O=(0,p.vh)(i),w=(0,p.vh)(a),x=this.props.shape;if(!b&&!m&&!O&&!w&&!x)return null;var j=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,l=o.y2,u=o.xAxis,p=o.yAxis;if(!u||!p)return null;var y=(0,s.P2)({x:u.scale,y:p.scale}),d={x:t?y.x.apply(i,{position:"start"}):y.x.rangeMin,y:r?y.y.apply(c,{position:"start"}):y.y.rangeMin},h={x:e?y.x.apply(a,{position:"end"}):y.x.rangeMax,y:n?y.y.apply(l,{position:"end"}):y.y.rangeMax};return!(0,f.R)(o,"discard")||y.isInRange(d)&&y.isInRange(h)?(0,s.sl)(d,h):null}(b,m,O,w,this.props);if(!j&&!x)return null;var P=(0,f.R)(this.props,"hidden")?"url(#".concat(v,")"):void 0;return o().createElement(l.W,{className:(0,c.A)("recharts-reference-area",d)},e.renderRect(x,g(g({clipPath:P},(0,h.J9)(this.props,!0)),j)),u.J.renderCallByParent(this.props,j))}}])&&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,P(n.key),n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(o().Component);j(S,"displayName","ReferenceArea"),j(S,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),j(S,"renderRect",function(t,e){return o().isValidElement(t)?o().cloneElement(t,e):a()(t)?t(e):o().createElement(d.M,v({},e,{className:"recharts-reference-area-rect"}))})},99582:(t,e,r)=>{r.d(e,{u:()=>C});var n=r(51609),o=r.n(n),i=r(1882),a=r.n(i),c=r(58156),l=r.n(c),u=r(34164),s=r(23521),f=r(86069),p=r(20261),y=r(91706),d=r(59744),h=r(98940),v=r(94501),b=r(11386),m=["viewBox"],g=["viewBox"],O=["ticks"];function w(t){return w="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},w(t)}function x(){return x=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},x.apply(this,arguments)}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach(function(e){D(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function S(t,e){if(null==t)return{};var r,n,o=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 i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function k(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,I(n.key),n)}}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(E=function(){return!!t})()}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}function D(t,e,r){return(e=I(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function I(t){var e=function(t){if("object"!=w(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==w(e)?e:e+""}var C=function(t){function e(t){var r,n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=this,o=e,i=[t],o=A(o),r=function(t,e){if(e&&("object"===w(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)}(n,E()?Reflect.construct(o,i||[],A(n).constructor):o.apply(n,i))).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&&T(t,e)}(e,t),r=e,i=[{key:"renderTickItem",value:function(t,e,r){var n=(0,u.A)(e.className,"recharts-cartesian-axis-tick-value");return o().isValidElement(t)?o().cloneElement(t,P(P({},e),{},{className:n})):a()(t)?t(P(P({},e),{},{className:n})):o().createElement(p.E,x({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],(n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=S(t,m),o=this.props,i=o.viewBox,a=S(o,g);return!(0,s.b)(r,i)||!(0,s.b)(n,a)||!(0,s.b)(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,o,i,a,c=this.props,l=c.x,u=c.y,s=c.width,f=c.height,p=c.orientation,y=c.mirror,h=c.tickMargin,v=y?-1:1,b=t.tickSize||c.tickSize,m=(0,d.Et)(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=u+ +!y*f)-v*b)-v*h,i=m;break;case"left":n=o=t.coordinate,i=(e=(r=l+ +!y*s)-v*b)-v*h,a=m;break;case"right":n=o=t.coordinate,i=(e=(r=l+ +y*s)+v*b)+v*h,a=m;break;default:e=r=t.coordinate,a=(n=(o=u+ +y*f)+v*b)+v*h,i=m}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.mirror;switch(e.orientation){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.mirror,r="end";switch(t.orientation){case"left":case"right":r="middle";break;case"top":r=e?"start":"end";break;default:r=e?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,a=t.orientation,c=t.mirror,s=t.axisLine,f=P(P(P({},(0,v.J9)(this.props,!1)),(0,v.J9)(s,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var p=+("top"===a&&!c||"bottom"===a&&c);f=P(P({},f),{},{x1:e,y1:r+p*i,x2:e+n,y2:r+p*i})}else{var y=+("left"===a&&!c||"right"===a&&c);f=P(P({},f),{},{x1:e+y*n,y1:r,x2:e+y*n,y2:r+i})}return o().createElement("line",x({},f,{className:(0,u.A)("recharts-cartesian-axis-line",l()(s,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,c=this.props,s=c.tickLine,p=c.stroke,y=c.tick,d=c.tickFormatter,m=c.unit,g=(0,b.f)(P(P({},this.props),{},{ticks:t}),r,n),O=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),j=(0,v.J9)(this.props,!1),S=(0,v.J9)(y,!1),k=P(P({},j),{},{fill:"none"},(0,v.J9)(s,!1)),E=g.map(function(t,r){var n=i.getTickLineCoord(t),c=n.line,v=n.tick,b=P(P(P(P({textAnchor:O,verticalAnchor:w},j),{},{stroke:"none",fill:p},S),v),{},{index:r,payload:t,visibleTicksCount:g.length,tickFormatter:d});return o().createElement(f.W,x({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},(0,h.XC)(i.props,t,r)),s&&o().createElement("line",x({},k,c,{className:(0,u.A)("recharts-cartesian-axis-tick-line",l()(s,"className"))})),y&&e.renderTickItem(y,b,"".concat(a()(d)?d(t.value,r):t.value).concat(m||"")))});return o().createElement("g",{className:"recharts-cartesian-axis-ticks"},E)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,c=e.ticksGenerator,l=e.className;if(e.hide)return null;var s=this.props,p=s.ticks,d=S(s,O),h=p;return a()(c)&&(h=c(p&&p.length>0?this.props:d)),n<=0||i<=0||!h||!h.length?null:o().createElement(f.W,{className:(0,u.A)("recharts-cartesian-axis",l),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(h,this.state.fontSize,this.state.letterSpacing),y.J.renderCallByParent(this.props))}}])&&k(r.prototype,n),i&&k(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(n.Component);D(C,"displayName","CartesianAxis"),D(C,"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"})}}]);