(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[987],{BOeY:function(e,t,r){"use strict";r.d(t,{C:function(){return a}});var n=r("+OUp"),o=r.n(n);let a=(0,n.forwardRef)(function(e,t){return o().createElement("circle",Object.assign({},e,{ref:t}),o().createElement("animate",{attributeName:"r",values:"4;8;4",dur:"2s",begin:"0s",repeatCount:"indefinite"}))})},"+GCU":function(e,t,r){"use strict";r.d(t,{Eu:function(){return formatHealthTool},Qd:function(){return getDynamicHealthTool},ke:function(){return getDynamicHealthToolWithCache}});var n=r("vEfc"),o=r("8TMT"),a=r("mfhO");let formatHealthTool=(e,t)=>{var r,n;if(!e)return{};let o="tl-PH"===t?"/fil":"";return{id:e.id,isSubot:e.is_subot,template:e.template,icon:e.icon,link:(null===(r=e.link)||void 0===r?void 0:r.startsWith("http"))?e.link:`${o}/health-tools`+(null===(n=e.link)||void 0===n?void 0:n.replace(`/${o}/`,"/").replace("/health-tools/","/")),subtitle:e.subtitle,title:e.title}},getDynamicHealthTool=e=>(0,n._)(void 0,void 0,void 0,function*(){var t,r;try{let n="tl-PH"===e?"lang=fil":"",a=[],i=e.endsWith("_MB");try{let l=yield fetch((0,o.e)((0,o.e)(`${(0,o.c)(e)}/wp-json/api/${i?"health-tools":"healthtools"}?ismenu=0${n?"&"+n:""}`))).then(e=>e.json());a=(null===(r=null===(t=null==l?void 0:l.data)||void 0===t?void 0:t.map)||void 0===r?void 0:r.call(t,t=>formatHealthTool(t,e)))||[]}catch(e){}return a}catch(e){console.error(e)}}),getDynamicHealthToolWithCache=e=>(0,n._)(void 0,void 0,void 0,function*(){return(yield(0,a.g)("all-health-tools",()=>getDynamicHealthTool(e||"en-PH"),e=>!!(null==e?void 0:e.length),6e4))||[]})},soWg:function(e,t,r){"use strict";r.d(t,{u:function(){return useHealthToolsCache}});var n=r("vEfc"),o=r("+OUp"),a=r("+GCU");let useHealthToolsCache=e=>{let[t,r]=(0,o.useState)([]);(0,o.useEffect)(()=>{(0,n._)(void 0,void 0,void 0,function*(){let t=yield(0,a.ke)(e);r(t)})},[a.ke,e]);let i=(0,o.useCallback)(e=>{var r;return(null===(r=t.find(t=>t.template===e))||void 0===r?void 0:r.link)||""},[t]);return{allTools:t,getHealthToolLink:i}}},eS7H:function(e,t){"use strict";let r=Math.PI,n=2*r,o=n-1e-6;function Path(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function path(){return new Path}Path.prototype=path.prototype={constructor:Path,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,o,a){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(e,t,n,o,a){e=+e,t=+t,n=+n,o=+o,a=+a;var i=this._x1,l=this._y1,f=n-e,p=o-t,h=i-e,d=l-t,y=h*h+d*d;if(a<0)throw Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(y>1e-6){if(Math.abs(d*f-p*h)>1e-6&&a){var g=n-i,m=o-l,v=f*f+p*p,b=Math.sqrt(v),_=Math.sqrt(y),x=a*Math.tan((r-Math.acos((v+y-(g*g+m*m))/(2*b*_)))/2),O=x/_,S=x/b;Math.abs(O-1)>1e-6&&(this._+="L"+(e+O*h)+","+(t+O*d)),this._+="A"+a+","+a+",0,0,"+ +(d*g>h*m)+","+(this._x1=e+S*f)+","+(this._y1=t+S*p)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,a,i,l,f){e=+e,t=+t,a=+a,f=!!f;var p=a*Math.cos(i),h=a*Math.sin(i),d=e+p,y=t+h,g=1^f,m=f?i-l:l-i;if(a<0)throw Error("negative radius: "+a);null===this._x1?this._+="M"+d+","+y:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-y)>1e-6)&&(this._+="L"+d+","+y),a&&(m<0&&(m=m%n+n),m>o?this._+="A"+a+","+a+",0,1,"+g+","+(e-p)+","+(t-h)+"A"+a+","+a+",0,1,"+g+","+(this._x1=d)+","+(this._y1=y):m>1e-6&&(this._+="A"+a+","+a+",0,"+ +(m>=r)+","+g+","+(this._x1=e+a*Math.cos(l))+","+(this._y1=t+a*Math.sin(l))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}},t.A=path},DD13:function(e,t,r){"use strict";r.d(t,{A:function(){return band},z:function(){return point}});var n=r("v2Ii"),o=r("NZtL");function band(){var e,t,r=(0,o.A)().unknown(void 0),a=r.domain,i=r.range,l=0,f=1,p=!1,h=0,d=0,y=.5;function rescale(){var r=a().length,n=f=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["x1","y1","x2","y2","key"]);r=i().createElement("line",_extends({},(0,f.J9)(d),{x1:n,y1:a,x2:l,y2:p,fill:"none",key:h}))}return r}}],r&&_defineProperties(CartesianGrid.prototype,r),n&&_defineProperties(CartesianGrid,n),CartesianGrid}(a.PureComponent);p.displayName="CartesianGrid",p.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]}},AUe2:function(e,t,r){"use strict";r.d(t,{r:function(){return ReferenceDot}});var n=r("lSCD"),o=r.n(n),a=r("+OUp"),i=r.n(a),l=r("xXM3"),f=r.n(l),p=r("NU3x"),h=r("Yk7H"),d=r("nrgz"),y=r("CAr5"),g=r("Paif"),m=r("t+7A"),v=r("UlYG"),b=r("clxZ");function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t180),",").concat(+(a>f),",\n ").concat(h.x,",").concat(h.y,"\n ");if(n>0){var y=(0,U.IZ)(t,r,n,a),g=(0,U.IZ)(t,r,n,f);d+="L ".concat(g.x,",").concat(g.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(a<=f),",\n ").concat(y.x,",").concat(y.y," Z")}else d+="L ".concat(t,",").concat(r," Z");return d},getSectorWithCorner=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,i=e.forceCornerRadius,l=e.cornerIsExternal,f=e.startAngle,p=e.endAngle,h=(0,R.sA)(p-f),d=getTangentCircle({cx:t,cy:r,radius:o,angle:f,sign:h,cornerRadius:a,cornerIsExternal:l}),y=d.circleTangency,g=d.lineTangency,m=d.theta,v=getTangentCircle({cx:t,cy:r,radius:o,angle:p,sign:-h,cornerRadius:a,cornerIsExternal:l}),b=v.circleTangency,_=v.lineTangency,x=v.theta,O=l?Math.abs(f-p):Math.abs(f-p)-m-x;if(O<0)return i?"M ".concat(g.x,",").concat(g.y,"\n a").concat(a,",").concat(a,",0,0,1,").concat(2*a,",0\n a").concat(a,",").concat(a,",0,0,1,").concat(-(2*a),",0\n "):getSectorPath({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:f,endAngle:p});var S="M ".concat(g.x,",").concat(g.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(y.x,",").concat(y.y,"\n A").concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(h<0),",").concat(b.x,",").concat(b.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(_.x,",").concat(_.y,"\n ");if(n>0){var C=getTangentCircle({cx:t,cy:r,radius:n,angle:f,sign:h,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),w=C.circleTangency,A=C.lineTangency,E=C.theta,j=getTangentCircle({cx:t,cy:r,radius:n,angle:p,sign:-h,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),P=j.circleTangency,k=j.lineTangency,T=j.theta,M=l?Math.abs(f-p):Math.abs(f-p)-E-T;if(M<0&&0===a)return"".concat(S,"L").concat(t,",").concat(r,"Z");S+="L".concat(k.x,",").concat(k.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(h>0),",").concat(w.x,",").concat(w.y,"\n A").concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(A.x,",").concat(A.y,"Z")}else S+="L".concat(t,",").concat(r,"Z");return S},B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sector_setPrototypeOf(e,t)}(Sector,e);var t,r,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r,n=Sector_getPrototypeOf(Sector);if(t){var o=Sector_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(e=r)&&("object"===Sector_typeof(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function Sector(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Sector),o.apply(this,arguments)}return r=[{key:"render",value:function(){var e,t=this.props,r=t.cx,n=t.cy,o=t.innerRadius,a=t.outerRadius,i=t.cornerRadius,l=t.forceCornerRadius,f=t.cornerIsExternal,p=t.startAngle,h=t.endAngle,d=t.className;if(a0&&360>Math.abs(p-h)?getSectorWithCorner({cx:r,cy:n,innerRadius:o,outerRadius:a,cornerRadius:Math.min(m,g/2),forceCornerRadius:l,cornerIsExternal:f,startAngle:p,endAngle:h}):getSectorPath({cx:r,cy:n,innerRadius:o,outerRadius:a,startAngle:p,endAngle:h}),E().createElement("path",Sector_extends({},(0,L.J9)(this.props,!0),{className:y,d:e}))}}],Sector_defineProperties(Sector.prototype,r),n&&Sector_defineProperties(Sector,n),Sector}(A.PureComponent);B.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var q=r("Yk7H"),W=r("CRfU");function Rectangle_typeof(e){return(Rectangle_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rectangle_extends(){return(Rectangle_extends=Object.assign||function(e){for(var t=1;t=0?1:-1,f=r>=0?1:-1,p=n>=0&&r>=0||n<0&&r<0?1:0;if(i>0&&o instanceof Array){for(var h=[0,0,0,0],d=0;d<4;d++)h[d]=o[d]>i?i:o[d];a="M".concat(e,",").concat(t+l*h[0]),h[0]>0&&(a+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(p,",").concat(e+f*h[0],",").concat(t)),a+="L ".concat(e+r-f*h[1],",").concat(t),h[1]>0&&(a+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(p,",\n ").concat(e+r,",").concat(t+l*h[1])),a+="L ".concat(e+r,",").concat(t+n-l*h[2]),h[2]>0&&(a+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(p,",\n ").concat(e+r-f*h[2],",").concat(t+n)),a+="L ".concat(e+f*h[3],",").concat(t+n),h[3]>0&&(a+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(p,",\n ").concat(e,",").concat(t+n-l*h[3])),a+="Z"}else if(i>0&&o===+o&&o>0){var y=Math.min(i,o);a="M ".concat(e,",").concat(t+l*y,"\n A ").concat(y,",").concat(y,",0,0,").concat(p,",").concat(e+f*y,",").concat(t,"\n L ").concat(e+r-f*y,",").concat(t,"\n A ").concat(y,",").concat(y,",0,0,").concat(p,",").concat(e+r,",").concat(t+l*y,"\n L ").concat(e+r,",").concat(t+n-l*y,"\n A ").concat(y,",").concat(y,",0,0,").concat(p,",").concat(e+r-f*y,",").concat(t+n,"\n L ").concat(e+f*y,",").concat(t+n,"\n A ").concat(y,",").concat(y,",0,0,").concat(p,",").concat(e,",").concat(t+n-l*y," Z")}else a="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return a},isInRectangle=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,o=t.x,a=t.y,i=t.width,l=t.height;return!!(Math.abs(i)>0&&Math.abs(l)>0)&&r>=Math.min(o,o+i)&&r<=Math.max(o,o+i)&&n>=Math.min(a,a+l)&&n<=Math.max(a,a+l)},F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rectangle_setPrototypeOf(e,t)}(Rectangle,e);var t,r,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r,n=Rectangle_getPrototypeOf(Rectangle);if(t){var o=Rectangle_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(e=r)&&("object"===Rectangle_typeof(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function Rectangle(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Rectangle);for(var t=arguments.length,r=Array(t),n=0;n0,from:{width:o,height:a,x:r,y:n},to:{width:o,height:a,x:r,y:n},duration:d,animationEasing:h,isActive:m},function(t){var r=t.width,n=t.height,o=t.x,a=t.y;return E().createElement(W.Ay,{canBegin:f>0,from:"0px ".concat(-1===f?1:f,"px"),to:"".concat(f,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:d,isActive:g,easing:h},E().createElement("path",Rectangle_extends({},(0,L.J9)(e.props,!0),{className:v,d:getRectanglePath(o,a,r,n,i),ref:function(t){e.node=t}})))}):E().createElement("path",Rectangle_extends({},(0,L.J9)(this.props,!0),{className:v,d:getRectanglePath(r,n,o,a,i)}))}}],Rectangle_defineProperties(Rectangle.prototype,r),n&&Rectangle_defineProperties(Rectangle,n),Rectangle}(A.PureComponent);F.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var z=r("iiMn"),V=r("sWrY"),G=r("WQvK"),H=r("8/8d"),K=r("nrgz"),X=r("MII3");function CartesianAxis_typeof(e){return(CartesianAxis_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function CartesianAxis_extends(){return(CartesianAxis_extends=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function CartesianAxis_defineProperties(e,t){for(var r=0;r0?this.props:p)),r<=0||n<=0||!h||!h.length)?null:E().createElement(T.W,{className:P()("recharts-cartesian-axis",a)},t&&this.renderAxisLine(),this.renderTicks(h),K.J.renderCallByParent(this.props))}}],n=[{key:"getTicks",value:function(e){var t=e.tick,r=e.ticks,n=e.viewBox,o=e.minTickGap,a=e.orientation,i=e.interval,l=e.tickFormatter,f=e.unit;return r&&r.length&&t?(0,R.Et)(i)||X.m.isSsr?CartesianAxis.getNumberIntervalTicks(r,"number"==typeof i&&(0,R.Et)(i)?i:0):"preserveStartEnd"===i?CartesianAxis.getTicksStart({ticks:r,tickFormatter:l,viewBox:n,orientation:a,minTickGap:o,unit:f},!0):"preserveStart"===i?CartesianAxis.getTicksStart({ticks:r,tickFormatter:l,viewBox:n,orientation:a,minTickGap:o,unit:f}):CartesianAxis.getTicksEnd({ticks:r,tickFormatter:l,viewBox:n,orientation:a,minTickGap:o,unit:f}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter(function(e,r){return r%(t+1)==0})}},{key:"getTicksStart",value:function(e,t){var r,n,o=e.ticks,a=e.tickFormatter,i=e.viewBox,l=e.orientation,p=e.minTickGap,h=e.unit,d=i.x,y=i.y,g=i.width,m=i.height,v="top"===l||"bottom"===l?"width":"height",b=(o||[]).slice(),_=h&&"width"===v?(0,G.Pu)(h)[v]:0,x=b.length,O=x>=2?(0,R.sA)(b[1].coordinate-b[0].coordinate):1;if(1===O?(r="width"===v?d:y,n="width"===v?d+g:y+m):(r="width"===v?d+g:y+m,n="width"===v?d:y),t){var S=o[x-1],C=f()(a)?a(S.value,x-1):S.value,w=(0,G.Pu)(C)[v]+_,A=O*(S.coordinate+O*w/2-n);b[x-1]=S=_objectSpread(_objectSpread({},S),{},{tickCoord:A>0?S.coordinate-A*O:S.coordinate}),O*(S.tickCoord-O*w/2-r)>=0&&O*(S.tickCoord+O*w/2-n)<=0&&(n=S.tickCoord-O*(w/2+p),b[x-1]=_objectSpread(_objectSpread({},S),{},{isShow:!0}))}for(var E=t?x-1:x,j=0;j=0&&O*(P.tickCoord+O*T/2-n)<=0&&(r=P.tickCoord+O*(T/2+p),b[j]=_objectSpread(_objectSpread({},P),{},{isShow:!0}))}return b.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t,r,n=e.ticks,o=e.tickFormatter,a=e.viewBox,i=e.orientation,l=e.minTickGap,p=e.unit,h=a.x,d=a.y,y=a.width,g=a.height,m="top"===i||"bottom"===i?"width":"height",v=p&&"width"===m?(0,G.Pu)(p)[m]:0,b=(n||[]).slice(),_=b.length,x=_>=2?(0,R.sA)(b[1].coordinate-b[0].coordinate):1;1===x?(t="width"===m?h:d,r="width"===m?h+y:d+g):(t="width"===m?h+y:d+g,r="width"===m?h:d);for(var O=_-1;O>=0;O--){var S=b[O],C=f()(o)?o(S.value,_-O-1):S.value,w=(0,G.Pu)(C)[m]+v;if(O===_-1){var A=x*(S.coordinate+x*w/2-r);b[O]=S=_objectSpread(_objectSpread({},S),{},{tickCoord:A>0?S.coordinate-A*x:S.coordinate})}else b[O]=S=_objectSpread(_objectSpread({},S),{},{tickCoord:S.coordinate});x*(S.tickCoord-x*w/2-t)>=0&&x*(S.tickCoord+x*w/2-r)<=0&&(r=S.tickCoord-x*(w/2+l),b[O]=_objectSpread(_objectSpread({},S),{},{isShow:!0}))}return b.filter(function(e){return e.isShow})}},{key:"renderTickItem",value:function(e,t,r){return E().isValidElement(e)?E().cloneElement(e,t):f()(e)?e(t):E().createElement(H.E,CartesianAxis_extends({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&CartesianAxis_defineProperties(CartesianAxis.prototype,r),n&&CartesianAxis_defineProperties(CartesianAxis,n),CartesianAxis}(A.Component);Y.displayName="CartesianAxis",Y.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var Z=r("DD13"),J=r("aQSm");function CssPrefixUtils_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function CssPrefixUtils_objectSpread(e){for(var t=1;t0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var r=isTouch(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(Brush_assertThisInitialized(t),"startX"),endX:t.handleTravellerDragStart.bind(Brush_assertThisInitialized(t),"endX")},t.state={},t}return r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,n=this.state.scaleValues,o=this.props,a=o.gap,i=o.data.length-1,l=Brush.getIndexInRange(n,Math.min(t,r)),f=Brush.getIndexInRange(n,Math.max(t,r));return{startIndex:l-l%a,endIndex:f===i?i:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,o=t.dataKey,a=(0,J.kr)(r[e],o,e);return f()(n)?n(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,o=t.endX,a=this.props,i=a.x,l=a.width,f=a.travellerWidth,p=a.startIndex,h=a.endIndex,d=a.onChange,y=e.pageX-r;y>0?y=Math.min(y,i+l-f-o,i+l-f-n):y<0&&(y=Math.max(y,i-n,i-o));var g=this.getIndex({startX:n+y,endX:o+y});(g.startIndex!==p||g.endIndex!==h)&&d&&d(g),this.setState({startX:n+y,endX:o+y,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=isTouch(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,r=this.state,n=r.brushMoveStartX,o=r.movingTravellerId,a=r.endX,i=r.startX,l=this.state[o],f=this.props,p=f.x,h=f.width,d=f.travellerWidth,y=f.onChange,g=f.gap,m=f.data,v={startX:this.state.startX,endX:this.state.endX},b=e.pageX-n;b>0?b=Math.min(b,p+h-d-l):b<0&&(b=Math.max(b,p-l)),v[o]=l+b;var _=this.getIndex(v),x=_.startIndex,O=_.endIndex,isFullGap=function(){var e=m.length-1;return"startX"===o&&(a>i?x%g==0:O%g==0)||ai?O%g==0:x%g==0)||a>i&&O===e};this.setState((Brush_defineProperty(t={},o,l+b),Brush_defineProperty(t,"brushMoveStartX",e.pageX),t),function(){y&&isFullGap()&&y(_)})}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,a=e.fill,i=e.stroke;return E().createElement("rect",{stroke:i,fill:a,x:t,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,o=e.height,a=e.data,i=e.children,l=e.padding,f=A.Children.only(i);return f?E().cloneElement(f,{x:t,y:r,width:n,height:o,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var r=this.props,n=r.y,o=r.travellerWidth,a=r.height,i=r.traveller,l=Math.max(e,this.props.x),f=Brush_objectSpread(Brush_objectSpread({},(0,L.J9)(this.props)),{},{x:l,y:n,width:o,height:a});return E().createElement(T.W,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},Brush.renderTraveller(i,f))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,o=r.height,a=r.stroke,i=r.travellerWidth;return E().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:Math.min(e,t)+i,y:n,width:Math.max(Math.abs(t-e)-i,0),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,o=e.height,a=e.travellerWidth,i=e.stroke,l=this.state,f=l.startX,p=l.endX,h={pointerEvents:"none",fill:i};return E().createElement(T.W,{className:"recharts-brush-texts"},E().createElement(H.E,Brush_extends({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,p)-5,y:n+o/2},h),this.getTextOfTick(t)),E().createElement(H.E,Brush_extends({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,p)+a+5,y:n+o/2},h),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,o=e.x,a=e.y,i=e.width,l=e.height,f=e.alwaysShowText,p=this.state,h=p.startX,d=p.endX,y=p.isTextActive,g=p.isSlideMoving,m=p.isTravellerMoving;if(!t||!t.length||!(0,R.Et)(o)||!(0,R.Et)(a)||!(0,R.Et)(i)||!(0,R.Et)(l)||i<=0||l<=0)return null;var v=P()("recharts-brush",r),b=1===E().Children.count(n),_=generatePrefixStyle("userSelect","none");return E().createElement(T.W,{className:v,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(h,d),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(d,"endX"),(y||g||m||f)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,o=e.height,a=e.stroke,i=Math.floor(r+o/2)-1;return E().createElement(E().Fragment,null,E().createElement("rect",{x:t,y:r,width:n,height:o,fill:a,stroke:"none"}),E().createElement("line",{x1:t+1,y1:i,x2:t+n-1,y2:i,fill:"none",stroke:"#fff"}),E().createElement("line",{x1:t+1,y1:i+2,x2:t+n-1,y2:i+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return E().isValidElement(e)?E().cloneElement(e,t):f()(e)?e(t):Brush.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,o=e.x,a=e.travellerWidth,i=e.updateId,l=e.startIndex,f=e.endIndex;if(r!==t.prevData||i!==t.prevUpdateId)return Brush_objectSpread({prevData:r,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:n},r&&r.length?createScale({data:r,width:n,x:o,travellerWidth:a,startIndex:l,endIndex:f}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||o!==t.prevX||a!==t.prevTravellerWidth)){t.scale.range([o,o+n-a]);var p=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:r,prevTravellerWidth:a,prevUpdateId:i,prevX:o,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=e.length,n=0,o=r-1;o-n>1;){var a=Math.floor((n+o)/2);e[a]>t?o=a:n=a}return t>=e[o]?o:n}}],r&&Brush_defineProperties(Brush.prototype,r),n&&Brush_defineProperties(Brush,n),Brush}(A.PureComponent);Q.displayName="Brush",Q.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var ee=r("AUe2"),et=r("MJIl"),er=r.n(et),en=r("Paif"),eo=r("t+7A"),ea=r("UlYG");function ReferenceLine_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ReferenceLine_objectSpread(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function generateCategoricalChart_defineProperties(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r0?i:r&&r.props&&r.props.data&&r.props.data.length>0?r.props.data:e&&e.length&&(0,R.Et)(o)&&(0,R.Et)(a)?e.slice(o,a+1):[]},getTooltipContent=function(e,t,r,n){var o=e.graphicalItems,a=e.tooltipAxis,i=getDisplayedData(t,e);return r<0||!o||!o.length||r>=i.length?null:o.reduce(function(e,t){if(t.props.hide)return e;var o,l=t.props.data;if(a.dataKey&&!a.allowDuplicatedCategory){var f=void 0===l?i:l;o=(0,R.eP)(f,a.dataKey,n)}else o=l&&l[r]||i[r];return o?[].concat(_toConsumableArray(e),[(0,J.zb)(t,o)]):e},[])},getTooltipData=function(e,t,r,n){var o=n||{x:e.chartX,y:e.chartY},a="horizontal"===r?o.x:"vertical"===r?o.y:"centric"===r?o.angle:o.radius,i=e.orderedTooltipTicks,l=e.tooltipAxis,f=e.tooltipTicks,p=(0,J.gH)(a,i,f,l);if(p>=0&&f){var h=f[p]&&f[p].value,d=getTooltipContent(e,t,p,h),y=getActiveCoordinate(r,i,p,o);return{activeTooltipIndex:p,activeLabel:h,activePayload:d,activeCoordinate:y}}return null},getAxisMapByAxes=function(e,t){var r=t.axes,n=t.graphicalItems,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,f=t.dataEndIndex,p=e.layout,h=e.children,d=e.stackOffset,y=(0,J._L)(p,o);return r.reduce(function(t,r){var g,m,v,_=r.props,O=_.type,S=_.dataKey,C=_.allowDataOverflow,w=_.allowDuplicatedCategory,A=_.scale,E=_.ticks,j=r.props[a],P=getDisplayedData(e.data,{graphicalItems:n.filter(function(e){return e.props[a]===j}),dataStartIndex:l,dataEndIndex:f}),k=P.length;if(!t[j]){if(S){if(g=(0,J.Ay)(P,S,O),"category"===O&&y){var T=(0,R.CG)(g);w&&T?(m=g,g=b()(0,k)):w||(g=(0,J.KC)(r.props.domain,g,r).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(_toConsumableArray(e),[t])},[]))}else if("category"===O)g=w?g.filter(function(e){return""!==e&&!x()(e)}):(0,J.KC)(r.props.domain,g,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||x()(t)?e:[].concat(_toConsumableArray(e),[t])},[]);else if("number"===O){var M=(0,J.A1)(P,n.filter(function(e){return e.props[a]===j&&!e.props.hide}),S,o);M&&(g=M)}y&&("number"===O||"auto"!==A)&&(v=(0,J.Ay)(P,S,"category"))}else g=y?b()(0,k):i&&i[j]&&i[j].hasStack&&"number"===O?"expand"===d?[0,1]:(0,J.Mk)(i[j].stackGroups,l,f):(0,J.vf)(P,n.filter(function(e){return e.props[a]===j&&!e.props.hide}),O,!0);if("number"===O)g=detectReferenceElementsDomain(h,g,j,o,E),r.props.domain&&(g=(0,J.AQ)(r.props.domain,g,C));else if("category"===O&&r.props.domain){var I=r.props.domain;g.every(function(e){return I.indexOf(e)>=0})&&(g=I)}return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t),{},generateCategoricalChart_defineProperty({},j,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},r.props),{},{axisType:o,domain:g,categoricalDomain:v,duplicateDomain:m,originalDomain:r.props.domain,isCategorical:y,layout:p})))}return t},{})},getAxisMapByItems=function(e,t){var r=t.graphicalItems,n=t.Axis,o=t.axisType,a=t.axisIdKey,i=t.stackGroups,l=t.dataStartIndex,f=t.dataEndIndex,p=e.layout,h=e.children,d=getDisplayedData(e.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:f}),y=d.length,g=(0,J._L)(p,o),v=-1;return r.reduce(function(e,t){var _,x=t.props[a];return e[x]?e:(v++,_=g?b()(0,y):i&&i[x]&&i[x].hasStack?detectReferenceElementsDomain(h,_=(0,J.Mk)(i[x].stackGroups,l,f),x,o):detectReferenceElementsDomain(h,_=(0,J.AQ)(n.defaultProps.domain,(0,J.vf)(d,r.filter(function(e){return e.props[a]===x&&!e.props.hide}),"number"),n.defaultProps.allowDataOverflow),x,o),generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},x,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({axisType:o},n.defaultProps),{},{hide:!0,orientation:m()(es,"".concat(o,".").concat(v%2),null),domain:_,originalDomain:n.defaultProps.domain,isCategorical:g,layout:p}))))},{})},getAxisMap=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,o=t.AxisComp,a=t.graphicalItems,i=t.stackGroups,l=t.dataStartIndex,f=t.dataEndIndex,p=e.children,h="".concat(n,"Id"),d=(0,z.aS)(p,o),y={};return d&&d.length?y=getAxisMapByAxes(e,{axes:d,graphicalItems:a,axisType:n,axisIdKey:h,stackGroups:i,dataStartIndex:l,dataEndIndex:f}):a&&a.length&&(y=getAxisMapByItems(e,{Axis:o,graphicalItems:a,axisType:n,axisIdKey:h,stackGroups:i,dataStartIndex:l,dataEndIndex:f})),y},tooltipTicksGenerator=function(e){var t=(0,R.lX)(e),r=(0,J.Rh)(t,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:y()(r,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:(0,J.Hj)(t,r)}},createDefaultState=function(e){var t=e.children,r=e.defaultShowTooltip,n=(0,z.BU)(t,Q.displayName);return{chartX:0,chartY:0,dataStartIndex:n&&n.props&&n.props.startIndex||0,dataEndIndex:n&&n.props&&n.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!x()(r)&&r}},getAxisNameByLayout=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},calculateOffset=function(e,t){var r=e.props,n=e.graphicalItems,o=e.xAxisMap,a=void 0===o?{}:o,i=e.yAxisMap,l=void 0===i?{}:i,f=r.width,p=r.height,h=r.children,d=r.margin||{},y=(0,z.BU)(h,Q.displayName),g=(0,z.BU)(h,I.s.displayName),v=Object.keys(l).reduce(function(e,t){var r=l[t],n=r.orientation;return r.mirror||r.hide?e:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},n,e[n]+r.width))},{left:d.left||0,right:d.right||0}),b=Object.keys(a).reduce(function(e,t){var r=a[t],n=r.orientation;return r.mirror||r.hide?e:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},n,m()(e,"".concat(n))+r.height))},{top:d.top||0,bottom:d.bottom||0}),_=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},b),v),x=_.bottom;return y&&(_.bottom+=y.props.height||Q.defaultProps.height),g&&t&&(_=(0,J.s0)(_,n,r,t)),generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({brushBottom:x},_),{},{width:f-_.left-_.right,height:p-_.top-_.bottom})},generateCategoricalChart=function(e){var t,r,n=e.chartName,a=e.GraphicalChild,l=e.defaultTooltipEventType,p=void 0===l?"axis":l,d=e.validateTooltipEventTypes,y=void 0===d?["axis"]:d,g=e.axisComponents,v=e.legendContent,b=e.formatAxisMap,_=e.defaultProps,getFormatItems=function(e,t){var r=t.graphicalItems,n=t.stackGroups,o=t.offset,a=t.updateId,i=t.dataStartIndex,l=t.dataEndIndex,f=e.barSize,p=e.layout,h=e.barGap,d=e.barCategoryGap,y=e.maxBarSize,m=getAxisNameByLayout(p),v=m.numericAxisName,b=m.cateAxisName,_=!!r&&!!r.length&&r.some(function(e){var t=(0,z.Mn)(e&&e.type);return t&&t.indexOf("Bar")>=0})&&(0,J.tA)({barSize:f,stackGroups:n}),O=[];return r.forEach(function(r,f){var m,S=getDisplayedData(e.data,{dataStartIndex:i,dataEndIndex:l},r),C=r.props,w=C.dataKey,A=C.maxBarSize,E=r.props["".concat(v,"Id")],j=r.props["".concat(b,"Id")],P=g.reduce(function(e,n){var o,a=t["".concat(n.axisType,"Map")],i=r.props["".concat(n.axisType,"Id")],l=a&&a[i];return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},(generateCategoricalChart_defineProperty(o={},n.axisType,l),generateCategoricalChart_defineProperty(o,"".concat(n.axisType,"Ticks"),(0,J.Rh)(l)),o))},{}),k=P[b],T=P["".concat(b,"Ticks")],M=n&&n[E]&&n[E].hasStack&&(0,J.kA)(r,n[E].stackGroups),I=(0,z.Mn)(r.type).indexOf("Bar")>=0,D=(0,J.Hj)(k,T),R=[];if(I){var L,N,U=x()(A)?y:A,B=null!==(L=null!==(N=(0,J.Hj)(k,T,!0))&&void 0!==N?N:U)&&void 0!==L?L:0;R=(0,J.BX)({barGap:h,barCategoryGap:d,bandSize:B!==D?B:D,sizeList:_[j],maxBarSize:U}),B!==D&&(R=R.map(function(e){return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},{position:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e.position),{},{offset:e.position.offset-B/2})})}))}var q=r&&r.type&&r.type.getComposedData;q&&O.push({props:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},q(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},P),{},{displayedData:S,props:e,dataKey:w,item:r,bandSize:D,barPosition:R,offset:o,stackedData:M,layout:p,dataStartIndex:i,dataEndIndex:l}))),{},(generateCategoricalChart_defineProperty(m={key:r.key||"item-".concat(f)},v,P[v]),generateCategoricalChart_defineProperty(m,b,P[b]),generateCategoricalChart_defineProperty(m,"animationId",a),m)),childIndex:(0,z.AW)(r,e.children),item:r})}),O},updateStateOfAxisMapsOffsetAndStackGroups=function(e,t){var r=e.props,o=e.dataStartIndex,i=e.dataEndIndex,l=e.updateId;if(!(0,z.Me)({props:r}))return null;var f=r.children,p=r.layout,h=r.stackOffset,d=r.data,y=r.reverseStackOrder,m=getAxisNameByLayout(p),v=m.numericAxisName,_=m.cateAxisName,x=(0,z.aS)(f,a),O=(0,J.Mn)(d,x,"".concat(v,"Id"),"".concat(_,"Id"),h,y),S=g.reduce(function(e,t){var n="".concat(t.axisType,"Map");return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},n,getAxisMap(r,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t),{},{graphicalItems:x,stackGroups:t.axisType===v&&O,dataStartIndex:o,dataEndIndex:i}))))},{}),C=calculateOffset(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},S),{},{props:r,graphicalItems:x}),null==t?void 0:t.legendBBox);Object.keys(S).forEach(function(e){S[e]=b(r,S[e],C,e.replace("Map",""),n)});var w=tooltipTicksGenerator(S["".concat(_,"Map")]),A=getFormatItems(r,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},S),{},{dataStartIndex:o,dataEndIndex:i,updateId:l,graphicalItems:x,stackGroups:O,offset:C}));return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({formattedGraphicalItems:A,graphicalItems:x,offset:C,stackGroups:O},w),S)};return r=t=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&generateCategoricalChart_setPrototypeOf(e,t)})(CategoricalChartWrapper,e);var t,r,a,l=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r,n=generateCategoricalChart_getPrototypeOf(CategoricalChartWrapper);if(t){var o=generateCategoricalChart_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(e=r)&&("object"===generateCategoricalChart_typeof(e)||"function"==typeof e)?e:generateCategoricalChart_assertThisInitialized(this)});function CategoricalChartWrapper(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,CategoricalChartWrapper),(t=l.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!x()(t.deferId)&&eh&&eh(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e){var r=t.state,n=r.dataStartIndex,o=r.dataEndIndex,a=r.updateId;t.setState(generateCategoricalChart_objectSpread({legendBBox:e},updateStateOfAxisMapsOffsetAndStackGroups({props:t.props,dataStartIndex:n,dataEndIndex:o,updateId:a},generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,r,n){t.props.syncId===e&&r!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=ep&&ep(t.applySyncEvent.bind(generateCategoricalChart_assertThisInitialized(t),n)))},t.handleBrushChange=function(e){var r=e.startIndex,n=e.endIndex;if(r!==t.state.dataStartIndex||n!==t.state.dataEndIndex){var o=t.state.updateId;t.setState(function(){return generateCategoricalChart_objectSpread({dataStartIndex:r,dataEndIndex:n},updateStateOfAxisMapsOffsetAndStackGroups({props:t.props,dataStartIndex:r,dataEndIndex:n,updateId:o},t.state))}),t.triggerSyncEvent({dataStartIndex:r,dataEndIndex:n})}},t.handleMouseEnter=function(e){var r=t.props.onMouseEnter,n=t.getMouseInfo(e);if(n){var o=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},n),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),f()(r)&&r(o,e)}},t.triggeredAfterMouseMove=function(e){var r=t.props.onMouseMove,n=t.getMouseInfo(e),o=n?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},n),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(o),t.triggerSyncEvent(o),f()(r)&&r(o,e)},t.handleItemMouseEnter=function(e){t.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})},t.handleItemMouseLeave=function(){t.setState(function(){return{isTooltipActive:!1}})},t.handleMouseMove=function(e){e&&f()(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var r=t.props.onMouseLeave,n={isTooltipActive:!1};t.setState(n),t.triggerSyncEvent(n),f()(r)&&r(n,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var r=(0,z.X_)(e),n=m()(t.props,"".concat(r));r&&f()(n)&&n(/.*touch.*/i.test(r)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var r=t.props.onClick,n=t.getMouseInfo(e);if(n){var o=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},n),{},{isTooltipActive:!0});t.setState(o),t.triggerSyncEvent(o),f()(r)&&r(o,e)}},t.handleMouseDown=function(e){var r=t.props.onMouseDown;f()(r)&&r(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var r=t.props.onMouseUp;f()(r)&&r(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,r=e.width,n=e.height,o=e.offset;return(0,J.PW)(Y.getTicks(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},Y.defaultProps),t),{},{ticks:(0,J.Rh)(t,!0),viewBox:{x:0,y:0,width:r,height:n}})),o.left,o.left+o.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,r=e.width,n=e.height,o=e.offset;return(0,J.PW)(Y.getTicks(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},Y.defaultProps),t),{},{ticks:(0,J.Rh)(t,!0),viewBox:{x:0,y:0,width:r,height:n}})),o.top,o.top+o.height)},t.axesTicksGenerator=function(e){return(0,J.Rh)(e,!0)},t.renderCursor=function(e){var r,o=t.state,a=o.isTooltipActive,i=o.activeCoordinate,l=o.activePayload,f=o.offset,p=o.activeTooltipIndex,h=t.getTooltipEventType();if(!e||!e.props.cursor||!a||!i||"ScatterChart"!==n&&"axis"!==h)return null;var d=t.props.layout,y=D.I;if("ScatterChart"===n)r=i,y=N;else if("BarChart"===n)r=t.getCursorRectangle(),y=F;else if("radial"===d){var g=t.getCursorPoints(),m=g.cx,v=g.cy,b=g.radius;r={cx:m,cy:v,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:b,outerRadius:b},y=B}else r={points:t.getCursorPoints()},y=D.I;var _=e.key||"_recharts-cursor",x=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({stroke:"#ccc",pointerEvents:"none"},f),r),(0,L.J9)(e.props.cursor)),{},{payload:l,payloadIndex:p,key:_,className:"recharts-tooltip-cursor"});return(0,A.isValidElement)(e.props.cursor)?(0,A.cloneElement)(e.props.cursor,x):(0,A.createElement)(y,x)},t.renderPolarAxis=function(e,r,n){var o=m()(e,"type.axisType"),a=m()(t.state,"".concat(o,"Map"))[e.props["".concat(o,"Id")]];return(0,A.cloneElement)(e,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},a),{},{className:o,key:e.key||"".concat(r,"-").concat(n),ticks:(0,J.Rh)(a,!0)}))},t.renderXAxis=function(e,r,n){var o=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(o,e,r,n)},t.renderYAxis=function(e,r,n){var o=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(o,e,r,n)},t.renderGrid=function(e){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,l=r.offset,f=t.props,p=f.width,h=f.height,d=(0,R.lX)(n),y=i()(a,function(e){return o()(e.domain,ef)})||(0,R.lX)(a),g=e.props||{};return(0,A.cloneElement)(e,{key:e.key||"grid",x:(0,R.Et)(g.x)?g.x:l.left,y:(0,R.Et)(g.y)?g.y:l.top,width:(0,R.Et)(g.width)?g.width:l.width,height:(0,R.Et)(g.height)?g.height:l.height,xAxis:d,yAxis:y,offset:l,chartWidth:p,chartHeight:h,verticalCoordinatesGenerator:g.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:g.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var r=e.props,n=r.radialLines,o=r.polarAngles,a=r.polarRadius,i=t.state,l=i.radiusAxisMap,f=i.angleAxisMap,p=(0,R.lX)(l),h=(0,R.lX)(f),d=h.cx,y=h.cy,g=h.innerRadius,m=h.outerRadius;return(0,A.cloneElement)(e,{polarAngles:w()(o)?o:(0,J.Rh)(h,!0).map(function(e){return e.coordinate}),polarRadius:w()(a)?a:(0,J.Rh)(p,!0).map(function(e){return e.coordinate}),cx:d,cy:y,innerRadius:g,outerRadius:m,key:e.key||"polar-grid",radialLines:n})},t.renderLegend=function(){var e=t.state.formattedGraphicalItems,r=t.props,n=r.children,o=r.width,a=r.height,i=t.props.margin||{},l=o-(i.left||0)-(i.right||0),f=(0,J.g1)({children:n,formattedGraphicalItems:e,legendWidth:l,legendContent:v});if(!f)return null;var p=f.item,h=generateCategoricalChart_objectWithoutProperties(f,["item"]);return(0,A.cloneElement)(p,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},h),{},{chartWidth:o,chartHeight:a,margin:i,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,r=(0,z.BU)(e,M.m.displayName);if(!r)return null;var n=t.state,o=n.isTooltipActive,a=n.activeCoordinate,i=n.activePayload,l=n.activeLabel,f=n.offset;return(0,A.cloneElement)(r,{viewBox:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},f),{},{x:f.left,y:f.top}),active:o,label:l,payload:o?i:[],coordinate:a})},t.renderBrush=function(e){var r=t.props,n=r.margin,o=r.data,a=t.state,i=a.offset,l=a.dataStartIndex,f=a.dataEndIndex,p=a.updateId;return(0,A.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:(0,J.HQ)(t.handleBrushChange,null,e.props.onChange),data:o,x:(0,R.Et)(e.props.x)?e.props.x:i.left,y:(0,R.Et)(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(n.bottom||0),width:(0,R.Et)(e.props.width)?e.props.width:i.width,startIndex:l,endIndex:f,updateId:"brush-".concat(p)})},t.renderReferenceElement=function(e,r,n){if(!e)return null;var o=generateCategoricalChart_assertThisInitialized(t).clipPathId,a=t.state,i=a.xAxisMap,l=a.yAxisMap,f=a.offset,p=e.props,h=p.xAxisId,d=p.yAxisId;return(0,A.cloneElement)(e,{key:e.key||"".concat(r,"-").concat(n),xAxis:i[h],yAxis:l[d],viewBox:{x:f.left,y:f.top,width:f.width,height:f.height},clipPathId:o})},t.renderActivePoints=function(e){var t=e.item,r=e.activePoint,n=e.basePoint,o=e.childIndex,a=e.isRange,i=[],l=t.props.key,f=t.item.props,p=f.activeDot,h=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({index:o,dataKey:f.dataKey,cx:r.x,cy:r.y,r:4,fill:(0,J.Ps)(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(l,"-activePoint-").concat(o)},(0,L.J9)(p)),(0,L._U)(p));return i.push(CategoricalChartWrapper.renderActiveDot(p,h)),n?i.push(CategoricalChartWrapper.renderActiveDot(p,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},h),{},{cx:n.x,cy:n.y,key:"".concat(l,"-basePoint-").concat(o)}))):a&&i.push(null),i},t.renderGraphicChild=function(e,r,n){var o,a,i=t.filterFormatItem(e,r,n);if(!i)return null;var l=t.getTooltipEventType(),f=t.state,p=f.isTooltipActive,h=f.tooltipAxis,d=f.activeTooltipIndex,y=f.activeLabel,g=t.props.children,m=(0,z.BU)(g,M.m.displayName),v=i.props,b=v.points,_=v.isRange,O=v.baseLine,S=i.item.props,C=S.activeDot,w=S.hide,E={};"axis"!==l&&m&&"click"===m.props.trigger?E={onClick:(0,J.HQ)(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==l&&(E={onMouseLeave:(0,J.HQ)(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:(0,J.HQ)(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var j=(0,A.cloneElement)(e,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},i.props),E));if(!w&&p&&m&&C&&d>=0){if(h.dataKey&&!h.allowDuplicatedCategory){var P="function"==typeof h.dataKey?function(e){return"function"==typeof h.dataKey?h.dataKey(e.payload):null}:"payload.".concat(h.dataKey.toString());o=(0,R.eP)(b,P,y),a=_&&O&&(0,R.eP)(O,P,y)}else o=b[d],a=_&&O&&O[d];if(!x()(o))return[j].concat(_toConsumableArray(t.renderActivePoints({item:i,activePoint:o,basePoint:a,childIndex:d,isRange:_})))}return _?[j,null,null]:[j,null]},t.renderCustomized=function(e,r,n){return(0,A.cloneElement)(e,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({key:"recharts-customized-".concat(n)},t.props),t.state))},t.uniqueChartId=x()(e.id)?(0,R.NF)("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=h()(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return r=[{key:"componentDidMount",value:function(){x()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){x()(e.syncId)&&!x()(this.props.syncId)&&this.addListener(),!x()(e.syncId)&&x()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),x()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=(0,z.BU)(this.props.children,M.m.displayName);if(e&&S()(e.props.shared)){var t=e.props.shared?"axis":"item";return y.indexOf(t)>=0?t:p}return p}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=(0,G.A3)(this.container),r=(0,G.Xk)(e,t),n=this.inRange(r.chartX,r.chartY);if(!n)return null;var o=this.state,a=o.xAxisMap,i=o.yAxisMap;if("axis"!==this.getTooltipEventType()&&a&&i){var l=(0,R.lX)(a).scale,f=(0,R.lX)(i).scale,p=l&&l.invert?l.invert(r.chartX):null,h=f&&f.invert?f.invert(r.chartY):null;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},r),{},{xValue:p,yValue:h})}var d=getTooltipData(this.state,this.props.data,this.props.layout,n);return d?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},r),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,r=t.activeCoordinate,n=t.offset,o=t.tooltipAxisBandSize,a=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?r.x-a:n.left+.5,y:"horizontal"===e?n.top+.5:r.y-a,width:"horizontal"===e?o:n.width-1,height:"horizontal"===e?n.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,r,n,o=this.props.layout,a=this.state,i=a.activeCoordinate,l=a.offset;if("horizontal"===o)r=e=i.x,t=l.top,n=l.top+l.height;else if("vertical"===o)n=t=i.y,e=l.left,r=l.left+l.width;else if(!x()(i.cx)||!x()(i.cy)){if("centric"===o){var f=i.cx,p=i.cy,h=i.innerRadius,d=i.outerRadius,y=i.angle,g=(0,U.IZ)(f,p,h,y),m=(0,U.IZ)(f,p,d,y);e=g.x,t=g.y,r=m.x,n=m.y}else{var v=i.cx,b=i.cy,_=i.radius,O=i.startAngle,S=i.endAngle;return{points:[(0,U.IZ)(v,b,_,O),(0,U.IZ)(v,b,_,S)],cx:v,cy:b,radius:_,startAngle:O,endAngle:S}}}return[{x:e,y:t},{x:r,y:n}]}},{key:"inRange",value:function(e,t){var r=this.props.layout;if("horizontal"===r||"vertical"===r){var n=this.state.offset;return e>=n.left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height?{x:e,y:t}:null}var o=this.state,a=o.angleAxisMap,i=o.radiusAxisMap;if(a&&i){var l=(0,R.lX)(a);return(0,U.yy)({x:e,y:t},l)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=(0,z.BU)(e,M.m.displayName),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},(0,L._U)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){ec.on(eu,this.handleReceiveSyncEvent),ec.setMaxListeners&&ec._maxListeners&&ec.setMaxListeners(ec._maxListeners+1)}},{key:"removeListener",value:function(){ec.removeListener(eu,this.handleReceiveSyncEvent),ec.setMaxListeners&&ec._maxListeners&&ec.setMaxListeners(ec._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;x()(t)||ec.emit(eu,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,r=t.layout,n=t.syncMethod,o=this.state.updateId,a=e.dataStartIndex,i=e.dataEndIndex;if(x()(e.dataStartIndex)&&x()(e.dataEndIndex)){if(x()(e.activeTooltipIndex))this.setState(e);else{var l=e.chartX,f=e.chartY,p=e.activeTooltipIndex,h=this.state,d=h.offset,y=h.tooltipTicks;if(!d)return;if("function"==typeof n)p=n(y,e);else if("value"===n){p=-1;for(var g=0;ge.length)&&(t=e.length);for(var r=0,n=Array(t);r=0?1:-1;"insideStart"===a?(n=x+A*l,o=S):"insideEnd"===a?(n=O-A*l,o=!S):"end"===a&&(n=O+A*l,o=S),o=w<=0?o:!o;var E=(0,b.IZ)(d,g,C,n),j=(0,b.IZ)(d,g,C,n+(o?1:-1)*359),P="M".concat(E.x,",").concat(E.y,"\n A").concat(C,",").concat(C,",0,1,").concat(o?0:1,",\n ").concat(j.x,",").concat(j.y),k=f()(e.id)?(0,v.NF)("recharts-radial-line-"):e.id;return h().createElement("text",_extends({},r,{dominantBaseline:"central",className:y()("recharts-radial-bar-label",p)}),h().createElement("defs",null,h().createElement("path",{id:k,d:P})),h().createElement("textPath",{xlinkHref:"#".concat(k)},t))},getAttrsOfPolarLabel=function(e){var t=e.viewBox,r=e.offset,n=e.position,o=t.cx,a=t.cy,i=t.innerRadius,l=t.outerRadius,f=(t.startAngle+t.endAngle)/2;if("outside"===n){var p=(0,b.IZ)(o,a,l+r,f),h=p.x;return{x:h,y:p.y,textAnchor:h>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=(i+l)/2,y=(0,b.IZ)(o,a,d,f);return{x:y.x,y:y.y,textAnchor:"middle",verticalAnchor:"middle"}},getAttrsOfCartesianLabel=function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,a=e.position,i=t.x,l=t.y,f=t.width,p=t.height,h=p>=0?1:-1,d=h*n,y=h>0?"end":"start",g=h>0?"start":"end",m=f>=0?1:-1,b=m*n,_=m>0?"end":"start",x=m>0?"start":"end";if("top"===a)return _objectSpread(_objectSpread({},{x:i+f/2,y:l-h*n,textAnchor:"middle",verticalAnchor:y}),r?{height:Math.max(l-r.y,0),width:f}:{});if("bottom"===a)return _objectSpread(_objectSpread({},{x:i+f/2,y:l+p+d,textAnchor:"middle",verticalAnchor:g}),r?{height:Math.max(r.y+r.height-(l+p),0),width:f}:{});if("left"===a){var O={x:i-b,y:l+p/2,textAnchor:_,verticalAnchor:"middle"};return _objectSpread(_objectSpread({},O),r?{width:Math.max(O.x-r.x,0),height:p}:{})}if("right"===a){var S={x:i+f+b,y:l+p/2,textAnchor:x,verticalAnchor:"middle"};return _objectSpread(_objectSpread({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:p}:{})}var C=r?{width:f,height:p}:{};return"insideLeft"===a?_objectSpread({x:i+b,y:l+p/2,textAnchor:x,verticalAnchor:"middle"},C):"insideRight"===a?_objectSpread({x:i+f-b,y:l+p/2,textAnchor:_,verticalAnchor:"middle"},C):"insideTop"===a?_objectSpread({x:i+f/2,y:l+d,textAnchor:"middle",verticalAnchor:g},C):"insideBottom"===a?_objectSpread({x:i+f/2,y:l+p-d,textAnchor:"middle",verticalAnchor:y},C):"insideTopLeft"===a?_objectSpread({x:i+b,y:l+d,textAnchor:x,verticalAnchor:g},C):"insideTopRight"===a?_objectSpread({x:i+f-b,y:l+d,textAnchor:_,verticalAnchor:g},C):"insideBottomLeft"===a?_objectSpread({x:i+b,y:l+p-d,textAnchor:x,verticalAnchor:y},C):"insideBottomRight"===a?_objectSpread({x:i+f-b,y:l+p-d,textAnchor:_,verticalAnchor:y},C):o()(a)&&((0,v.Et)(a.x)||(0,v._3)(a.x))&&((0,v.Et)(a.y)||(0,v._3)(a.y))?_objectSpread({x:i+(0,v.F4)(a.x,f),y:l+(0,v.F4)(a.y,p),textAnchor:"end",verticalAnchor:"end"},C):_objectSpread({x:i+f/2,y:l+p/2,textAnchor:"middle",verticalAnchor:"middle"},C)};function Label(e){var t,r=e.viewBox,n=e.position,o=e.value,a=e.children,l=e.content,d=e.className,m=void 0===d?"":d,b=e.textBreakAll;if(!r||f()(o)&&f()(a)&&!(0,p.isValidElement)(l)&&!i()(l))return null;if((0,p.isValidElement)(l))return(0,p.cloneElement)(l,e);if(i()(l)){if(t=(0,p.createElement)(l,e),(0,p.isValidElement)(t))return t}else t=getLabel(e);var x=(0,v.Et)(r.cx),O=(0,_.J9)(e,!0);if(x&&("insideStart"===n||"insideEnd"===n||"end"===n))return renderRadialLabel(e,t,O);var S=x?getAttrsOfPolarLabel(e):getAttrsOfCartesianLabel(e);return h().createElement(g.E,_extends({className:y()("recharts-label",m)},O,S,{breakAll:b}),t)}Label.displayName="Label",Label.defaultProps={offset:5};var parseViewBox=function(e){var t=e.cx,r=e.cy,n=e.angle,o=e.startAngle,a=e.endAngle,i=e.r,l=e.radius,f=e.innerRadius,p=e.outerRadius,h=e.x,d=e.y,y=e.top,g=e.left,m=e.width,b=e.height,_=e.clockWise,x=e.labelViewBox;if(x)return x;if((0,v.Et)(m)&&(0,v.Et)(b)){if((0,v.Et)(h)&&(0,v.Et)(d))return{x:h,y:d,width:m,height:b};if((0,v.Et)(y)&&(0,v.Et)(g))return{x:y,y:g,width:m,height:b}}return(0,v.Et)(h)&&(0,v.Et)(d)?{x:h,y:d,width:0,height:0}:(0,v.Et)(t)&&(0,v.Et)(r)?{cx:t,cy:r,startAngle:o||n||0,endAngle:a||n||0,innerRadius:f||0,outerRadius:p||l||i||0,clockWise:_}:e.viewBox?e.viewBox:{}};Label.parseViewBox=parseViewBox,Label.renderCallByParent=function(e,t){var r,n,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&a&&!e.label)return null;var l=e.children,f=parseViewBox(e),d=(0,m.aS)(l,Label.displayName).map(function(e,r){return(0,p.cloneElement)(e,{viewBox:t||f,key:"label-".concat(r)})});return a?[(r=e.label,n=t||f,r?!0===r?h().createElement(Label,{key:"label-implicit",viewBox:n}):(0,v.vh)(r)?h().createElement(Label,{key:"label-implicit",viewBox:n,value:r}):(0,p.isValidElement)(r)?r.type===Label?(0,p.cloneElement)(r,{key:"label-implicit",viewBox:n}):h().createElement(Label,{key:"label-implicit",content:r,viewBox:n}):i()(r)?h().createElement(Label,{key:"label-implicit",content:r,viewBox:n}):o()(r)?h().createElement(Label,_extends({viewBox:n},r,{key:"label-implicit"})):null:null)].concat(function(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(d)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(d)||function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}(d)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):d}},jhI9:function(e,t,r){"use strict";r.d(t,{Z:function(){return LabelList}});var n=r("GoyQ"),o=r.n(n),a=r("lSCD"),i=r.n(a),l=r("J2iB"),f=r.n(l),p=r("RBan"),h=r.n(p),d=r("Z0cm"),y=r.n(d),g=r("+OUp"),m=r.n(g),v=r("nrgz"),b=r("NU3x"),_=r("iiMn"),x=r("aQSm"),O=r("clxZ");function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?m().createElement(b.W,{className:"recharts-label-list"},t.map(function(e,t){var p=f()(n)?r(e,t):(0,x.kr)(e&&e.payload,n),h=f()(a)?{}:{id:"".concat(a,"-").concat(t)};return m().createElement(v.J,_extends({},(0,O.J9)(e,!0),l,h,{parentViewBox:e.parentViewBox,index:t,value:p,textBreakAll:i,viewBox:v.J.parseViewBox(f()(o)?e:_objectSpread(_objectSpread({},e),{},{clockWise:o})),key:"label-".concat(t)}))})):null}LabelList.displayName="LabelList",LabelList.renderCallByParent=function(e,t){var r,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var a=e.children,l=(0,_.aS)(a,LabelList.displayName).map(function(e,r){return(0,g.cloneElement)(e,{data:t,key:"labelList-".concat(r)})});return n?[(r=e.label)?!0===r?m().createElement(LabelList,{key:"labelList-implicit",data:t}):m().isValidElement(r)||i()(r)?m().createElement(LabelList,{key:"labelList-implicit",data:t,content:r}):o()(r)?m().createElement(LabelList,_extends({data:t},r,{key:"labelList-implicit"})):null:null].concat(function(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(l)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}(l)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):l},LabelList.defaultProps={valueAccessor:function(e){return y()(e.value)?h()(e.value):e.value}}},ZdXk:function(e,t,r){"use strict";r.d(t,{s:function(){return N}});var n=r("lSCD"),o=r.n(n),a=r("qPyV"),i=r.n(a),l=r("+OUp"),f=r.n(l),p=r("xXM3"),h=r.n(p),d=r("XYQy"),y=r("gQMU"),g=r.n(y),m=Math.PI,v=2*m,b={draw:function(e,t){var r=Math.sqrt(t/m);e.moveTo(r,0),e.arc(0,0,r,0,v)}},_=Math.sqrt(1/3),x=2*_,O=Math.sin(m/10)/Math.sin(7*m/10),S=Math.sin(v/10)*O,C=-Math.cos(v/10)*O,w=Math.sqrt(3),A=Math.sqrt(3)/2,E=1/Math.sqrt(12),j=(E/2+1)*3,P=r("eS7H"),k=r("9ErO"),T=r("clxZ");function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0&&r>=0?{width:t,height:r}:null}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,o=n.layout,a=n.align,i=n.verticalAlign,l=n.margin,f=n.chartWidth,p=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===a&&"vertical"===o?{left:((f||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===a?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===i?{top:((p||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===i?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),Legend_objectSpread(Legend_objectSpread({},t),r)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight,n=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-r)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},function(){n&&n(o)})}else(-1!==t||-1!==r)&&this.setState({boxWidth:-1,boxHeight:-1},function(){n&&n(null)})}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,n=t.width,a=t.height,l=t.wrapperStyle,p=t.payloadUniqBy,h=t.payload,d=Legend_objectSpread(Legend_objectSpread({position:"absolute",width:n||"auto",height:a||"auto"},this.getDefaultPosition(l)),l);return f().createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(t){e.wrapperNode=t}},function(e,t){if(f().isValidElement(e))return f().cloneElement(e,t);if(o()(e))return f().createElement(e,t);t.ref;var r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["ref"]);return f().createElement(R,r)}(r,Legend_objectSpread(Legend_objectSpread({},this.props),{},{payload:!0===p?i()(h,defaultUniqBy):o()(p)?i()(h,p):h})))}}],n=[{key:"getWithHeight",value:function(e,t){var r=e.props.layout;return"vertical"===r&&(0,L.Et)(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],r&&Legend_defineProperties(Legend.prototype,r),n&&Legend_defineProperties(Legend,n),Legend}(l.PureComponent);N.displayName="Legend",N.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}},S8lT:function(e,t,r){"use strict";r.d(t,{u:function(){return L}});var n=r("sEfC"),o=r.n(n),a=r("xXM3"),i=r.n(a),l=r("+OUp"),f=r.n(l),p=r("xzYA"),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},isObject_1=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},d="object"==typeof h&&h&&h.Object===Object&&h,y="object"==typeof self&&self&&self.Object===Object&&self,g=d||y||Function("return this")(),m=/\s/,trimmedEndIndex=function(e){for(var t=e.length;t--&&m.test(e.charAt(t)););return t},v=/^\s+/,b=g.Symbol,_=Object.prototype,x=_.hasOwnProperty,O=_.toString,S=b?b.toStringTag:void 0,C=Object.prototype.toString,getRawTag=function(e){var t=x.call(e,S),r=e[S];try{e[S]=void 0;var n=!0}catch(e){}var o=O.call(e);return n&&(t?e[S]=r:delete e[S]),o},w=b?b.toStringTag:void 0,isSymbol=function(e){var t;return"symbol"==typeof e||null!=e&&"object"==typeof e&&"[object Symbol]"==(null==(t=e)?void 0===t?"[object Undefined]":"[object Null]":w&&w in Object(t)?getRawTag(t):C.call(t))},A=0/0,E=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,P=/^0o[0-7]+$/i,k=parseInt,now=function(){return g.Date.now()},toNumber=function(e){if("number"==typeof e)return e;if(isSymbol(e))return A;if(isObject_1(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=isObject_1(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,trimmedEndIndex(t)+1).replace(v,""):t;var n=j.test(e);return n||P.test(e)?k(e.slice(2),n?2:8):E.test(e)?A:+e},T=Math.max,M=Math.min,debounce_1=function(e,t,r){var n,o,a,i,l,f,p=0,h=!1,d=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function invokeFunc(t){var r=n,a=o;return n=o=void 0,p=t,i=e.apply(a,r)}function shouldInvoke(e){var r=e-f,n=e-p;return void 0===f||r>=t||r<0||d&&n>=a}function timerExpired(){var e,r,n,o=now();if(shouldInvoke(o))return trailingEdge(o);l=setTimeout(timerExpired,(e=o-f,r=o-p,n=t-e,d?M(n,a-r):n))}function trailingEdge(e){return(l=void 0,y&&n)?invokeFunc(e):(n=o=void 0,i)}function debounced(){var e,r=now(),a=shouldInvoke(r);if(n=arguments,o=this,f=r,a){if(void 0===l)return p=e=f,l=setTimeout(timerExpired,t),h?invokeFunc(e):i;if(d)return clearTimeout(l),l=setTimeout(timerExpired,t),invokeFunc(f)}return void 0===l&&(l=setTimeout(timerExpired,t)),i}return t=toNumber(t)||0,isObject_1(r)&&(h=!!r.leading,a=(d="maxWait"in r)?T(toNumber(r.maxWait)||0,t):a,y="trailing"in r?!!r.trailing:y),debounced.cancel=function(){void 0!==l&&clearTimeout(l),p=0,n=f=o=l=void 0},debounced.flush=function(){return void 0===l?i:trailingEdge(now())},debounced},throttle_1=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return isObject_1(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),debounce_1(e,t,{leading:n,maxWait:t,trailing:o})},patchResizeHandler=function(e,t,r,n){switch(t){case"debounce":return debounce_1(e,r,n);case"throttle":return throttle_1(e,r,n);default:return e}},isFunction=function(e){return"function"==typeof e},isSSR=function(){return"undefined"==typeof window},isDOMElement=function(e){return e instanceof Element||e instanceof HTMLDocument},I=function(e){function ResizeDetector(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!isSSR()){t&&t.current&&(r.targetRef.current=t.current);var o=r.getElement();o&&(!r.observableElement||r.observableElement!==o)&&(r.observableElement=o,r.resizeObserver.observe(o,n))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(isSSR())return null;if(t)return document.querySelector(t);if(n&&isDOMElement(n))return n;if(r.targetRef&&isDOMElement(r.targetRef.current))return r.targetRef.current;var o=(0,p.findDOMNode)(r);if(!o)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,o=void 0===n||n,a=t.handleHeight,i=void 0===a||a,l=t.onResize;if(o||i){var f,p=(f=r.setState.bind(r),function(e){var t=e.width,r=e.height;f(function(e){return(e.width!==t||e.height!==r)&&(e.width!==t||i)&&(e.height!==r||o)?(l&&isFunction(l)&&l(t,r),{width:t,height:r}):e})});e.forEach(function(e){var t=e&&e.contentRect||{},n=t.width,o=t.height;r.skipOnMount||isSSR()||p({width:n,height:o}),r.skipOnMount=!1})}},r.getRenderType=function(){var e=r.props,t=e.render,n=e.children;return isFunction(t)?"renderProp":isFunction(n)?"childFunction":(0,l.isValidElement)(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=t.skipOnMount,o=t.refreshMode,a=t.refreshRate,i=void 0===a?1e3:a,f=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=(0,l.createRef)(),r.observableElement=null,isSSR()||(r.resizeHandler=patchResizeHandler(r.createResizeHandler,o,i,f),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}(ResizeDetector,e),ResizeDetector.prototype.componentDidMount=function(){this.attachObserver()},ResizeDetector.prototype.componentDidUpdate=function(){this.attachObserver()},ResizeDetector.prototype.componentWillUnmount=function(){isSSR()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},ResizeDetector.prototype.render=function(){var e,t=this.props,r=t.render,n=t.children,o=t.nodeType,a=void 0===o?"div":o,i=this.state,f={width:i.width,height:i.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(f);case"childFunction":return(e=n)(f);case"child":if((e=n).type&&"string"==typeof e.type){f.targetRef;var p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}(f,["targetRef"]);return(0,l.cloneElement)(e,p)}return(0,l.cloneElement)(e,f);case"childArray":return(e=n).map(function(e){return!!e&&(0,l.cloneElement)(e,f)});default:return l.createElement(a,null)}},ResizeDetector}(l.PureComponent);isSSR()?l.useEffect:l.useLayoutEffect;var D=r("CAr5"),R=r("UlYG");function _extends(){return(_extends=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?o()(updateDimensionsImmediate,b):updateDimensionsImmediate;return(0,l.useEffect)(function(){if(E){var e=getContainerSize();e&&C(e)}},[E]),(0,l.useEffect)(function(){j(!0)},[]),f().createElement(I,{handleWidth:!0,handleHeight:!0,onResize:P,targetRef:w},f().createElement("div",_extends({},null!=_?{id:"".concat(_)}:{},{className:i()("recharts-responsive-container",x),style:{width:a,height:h,minWidth:d,minHeight:y,maxHeight:g},ref:w}),function(){var e=S.containerWidth,t=S.containerHeight;if(e<0||t<0)return null;(0,R.R)((0,D._3)(a)||(0,D._3)(h),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,h),(0,R.R)(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=(0,D._3)(a)?e:a,o=(0,D._3)(h)?t:h;return r&&r>0&&(n?o=n/r:o&&(n=o*r),g&&o>g&&(o=g)),(0,R.R)(n>0||o>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.",n,o,a,h,d,y,r),(0,l.cloneElement)(m,{width:n,height:o})}()))})},"8/8d":function(e,t,r){"use strict";r.d(t,{E:function(){return b}});var n=r("J2iB"),o=r.n(n),a=r("+OUp"),i=r.n(a),l=r("LfJQ"),f=r.n(l),p=r("xXM3"),h=r.n(p),d=r("CAr5"),y=r("MII3"),g=r("clxZ"),m=r("WQvK");function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var a=t.word,i=t.width,l=e[e.length-1];return l&&(null==n||o||l.width+i+re.maxLines||o.reduce(function(e,t){return e.width>t.width?e:t}).width>n,o]},p=0,h=l.length-1,y=0;p<=h&&y<=l.length-1;){var g=Math.floor((p+h)/2),m=_slicedToArray(checkOverflow(g-1),2),v=m[0],b=m[1],_=_slicedToArray(checkOverflow(g),1)[0];if(v||_||(p=g+1),v&&_&&(h=g-1),!v&&_){a=b;break}y++}return a||f},getWordsWithoutCalculate=function(e){return[{words:o()(e)?[]:e.toString().split(v)}]},getWordsByLines=function(e,t){if((e.width||e.scaleToFit)&&!y.m.isSsr&&t){var r=calculateWordWidths(e);return r?calculateWordsByLines(e,r.wordsWithComputedWidth,r.spaceWidth,e.width,e.scaleToFit):getWordsWithoutCalculate(e.children)}return getWordsWithoutCalculate(e.children)},b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}(Text,e);var t,r,n,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r,n=_getPrototypeOf(Text);if(t){var o=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(e=r)&&("object"===_typeof(e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function Text(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Text);for(var t=arguments.length,r=Array(t),n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),x=this.state.wordsByLines;if(!(0,d.vh)(_.x)||!(0,d.vh)(_.y))return null;var O=_.x+((0,d.Et)(r)?r:0),S=_.y+((0,d.Et)(n)?n:0);switch(a){case"start":e=f()("calc(".concat(m,")"));break;case"middle":e=f()("calc(".concat((x.length-1)/2," * -").concat(y," + (").concat(m," / 2))"));break;default:e=f()("calc(".concat(x.length-1," * -").concat(y,")"))}var C=[];if(l){var w=x[0].width,A=this.props.width;C.push("scale(".concat(((0,d.Et)(A)?A/w:1)/w,")"))}return p&&C.push("rotate(".concat(p,", ").concat(O,", ").concat(S,")")),C.length&&(_.transform=C.join(" ")),i().createElement("text",_extends({},(0,g.J9)(_,!0),{x:O,y:S,className:h()("recharts-text",v),textAnchor:o}),x.map(function(t,r){return i().createElement("tspan",{x:O,dy:0===r?e:y,key:r},t.words.join(b?"":" "))}))}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var r=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:getWordsByLines(e,r)}}return null}}],r&&_defineProperties(Text.prototype,r),n&&_defineProperties(Text,n),Text}(a.Component);b.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"}},vsDy:function(e,t,r){"use strict";r.d(t,{m:function(){return w}});var n=r("J2iB"),o=r.n(n),a=r("lSCD"),i=r.n(a),l=r("qPyV"),f=r.n(l),p=r("+OUp"),h=r.n(p),d=r("CRfU"),y=r("xXM3"),g=r.n(y),m=r("xweI"),v=r.n(m),b=r("Z0cm"),_=r.n(b),x=r("CAr5");function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rh[r]+o?Math.max(d,h[r]):Math.max(y,h[r])},e}return r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-t)>1||Math.abs(n.height-r)>1)&&this.setState({boxWidth:n.width,boxHeight:n.height})}else(-1!==t||-1!==r)&&this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,r,n,a,l,p=this,y=this.props,m=y.payload,v=y.isAnimationActive,b=y.animationDuration,_=y.animationEasing,S=y.filterNull,w=(e=y.payloadUniqBy,t=S&&m&&m.length?m.filter(function(e){return!o()(e.value)}):m,!0===e?f()(t,defaultUniqBy):i()(e)?f()(t,e):t),A=w&&w.length,E=this.props,j=E.content,P=E.viewBox,k=E.coordinate,T=E.position,M=E.active,I=Tooltip_objectSpread({pointerEvents:"none",visibility:M&&A?"visible":"hidden",position:"absolute",top:0,left:0},E.wrapperStyle);if(T&&(0,x.Et)(T.x)&&(0,x.Et)(T.y))n=T.x,a=T.y;else{var D=this.state,R=D.boxWidth,L=D.boxHeight;R>0&&L>0&&k?(n=this.getTranslate({key:"x",tooltipDimension:R,viewBoxDimension:P.width}),a=this.getTranslate({key:"y",tooltipDimension:L,viewBoxDimension:P.height})):I.visibility="hidden"}I=Tooltip_objectSpread(Tooltip_objectSpread({},(0,d.g6)({transform:this.props.useTranslate3d?"translate3d(".concat(n,"px, ").concat(a,"px, 0)"):"translate(".concat(n,"px, ").concat(a,"px)")})),I),v&&M&&(I=Tooltip_objectSpread(Tooltip_objectSpread({},(0,d.g6)({transition:"transform ".concat(b,"ms ").concat(_)})),I));var N=g()(C,(Tooltip_defineProperty(l={},"".concat(C,"-right"),(0,x.Et)(n)&&k&&(0,x.Et)(k.x)&&n>=k.x),Tooltip_defineProperty(l,"".concat(C,"-left"),(0,x.Et)(n)&&k&&(0,x.Et)(k.x)&&n=k.y),Tooltip_defineProperty(l,"".concat(C,"-top"),(0,x.Et)(a)&&k&&(0,x.Et)(k.y)&&a=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children","className"]),a=i()("recharts-layer",r);return o().createElement("g",_extends({className:a},(0,l.J9)(n,!0)),t)}},XYQy:function(e,t,r){"use strict";r.d(t,{u:function(){return Surface}});var n=r("+OUp"),o=r.n(n),a=r("xXM3"),i=r.n(a),l=r("clxZ");function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children","width","height","viewBox","className","style"]),d=a||{width:r,height:n,x:0,y:0},y=i()("recharts-surface",f);return o().createElement("svg",_extends({},(0,l.J9)(h,!0,!0),{className:y,width:r,height:n,style:p,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),version:"1.1"}),t)}},R2OS:function(e,t,r){"use strict";r.d(t,{I:function(){return O}});var n=r("Z0cm"),o=r.n(n),a=r("gQMU"),i=r.n(a),l=r("lSCD"),f=r.n(l),p=r("+OUp"),h=r.n(p);function noop(){}function point(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Basis(e){this._context=e}function BasisClosed(e){this._context=e}function BasisOpen(e){this._context=e}function LinearClosed(e){this._context=e}function Linear(e){this._context=e}function linear(e){return new Linear(e)}function slope3(e,t,r){var n=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(n||o<0&&-0),i=(r-e._y1)/(o||n<0&&-0);return((a<0?-1:1)+(i<0?-1:1))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs((a*o+i*n)/(n+o)))||0}function slope2(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function monotone_point(e,t,r){var n=e._x0,o=e._y0,a=e._x1,i=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,o+l*t,a-l,i-l*r,a,i)}function MonotoneX(e){this._context=e}function MonotoneY(e){this._context=new ReflectContext(e)}function ReflectContext(e){this._context=e}function Natural(e){this._context=e}function controlPoints(e){var t,r,n=e.length-1,o=Array(n),a=Array(n),i=Array(n);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(t=0,a[n-1]=(e[n]+o[n-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var d=r("eS7H"),y=r("yYJV"),g=r("9ErO");function point_x(e){return e[0]}function point_y(e){return e[1]}function line(e,t){var r=(0,g.A)(!0),n=null,o=linear,a=null;function line(i){var l,f,p,h=(i=(0,y.A)(i)).length,g=!1;for(null==n&&(a=o(p=(0,d.A)())),l=0;l<=h;++l)!(l=h;--g)l.point(x[g],O[g]);l.lineEnd(),l.areaEnd()}}_&&(x[p]=+e(m,p,f),O[p]=+t(m,p,f),l.point(n?+n(m,p,f):x[p],r?+r(m,p,f):O[p]))}if(v)return l=null,v+""||null}function arealine(){return line().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?point_x:(0,g.A)(+e),t="function"==typeof t?t:void 0===t?(0,g.A)(0):(0,g.A)(+t),r="function"==typeof r?r:void 0===r?point_y:(0,g.A)(+r),area.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,g.A)(+t),n=null,area):e},area.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,g.A)(+t),area):e},area.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,g.A)(+e),area):n},area.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,g.A)(+e),r=null,area):t},area.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,g.A)(+e),area):t},area.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,g.A)(+e),area):r},area.lineX0=area.lineY0=function(){return arealine().x(e).y(t)},area.lineY1=function(){return arealine().x(e).y(r)},area.lineX1=function(){return arealine().x(n).y(t)},area.defined=function(e){return arguments.length?(o="function"==typeof e?e:(0,g.A)(!!e),area):o},area.curve=function(e){return arguments.length?(i=e,null!=a&&(l=i(a)),area):i},area.context=function(e){return arguments.length?(null==e?a=l=null:l=i(a=e),area):a},area}var m=r("xXM3"),v=r.n(m),b=r("clxZ"),_=r("CAr5");function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t0&&(P=Math.min((e||0)-(k[t-1]||0),P))});var T=P/j,M="vertical"===_.layout?r.height:r.width;if("gap"===_.padding&&(f=T*M/2),"no-gap"===_.padding){var I=(0,p.F4)(e.barCategoryGap,T*M),D=T*M/2;f=D-I-(D-I)/M*I}}d="xAxis"===n?[r.left+(C.left||0)+(f||0),r.left+r.width-(C.right||0)-(f||0)]:"yAxis"===n?"horizontal"===h?[r.top+r.height-(C.bottom||0),r.top+(C.top||0)]:[r.top+(C.top||0)+(f||0),r.top+r.height-(C.bottom||0)-(f||0)]:_.range,A&&(d=[d[1],d[0]]);var R=(0,l.W7)(_,o,m),L=R.scale,N=R.realScaleType;L.domain(O).range(d),(0,l.YB)(L);var U=(0,l.w7)(L,_objectSpread(_objectSpread({},_),{},{realScaleType:N}));"xAxis"===n?(b="top"===x&&!w||"bottom"===x&&w,y=r.left,v=g[E]-b*_.height):"yAxis"===n&&(b="left"===x&&!w||"right"===x&&w,y=g[E]-b*_.width,v=r.top);var B=_objectSpread(_objectSpread(_objectSpread({},_),U),{},{realScaleType:N,x:y,y:v,scale:L,width:"xAxis"===n?r.width:_.width,height:"yAxis"===n?r.height:_.height});return B.bandSize=(0,l.Hj)(B,U),_.hide||"xAxis"!==n?_.hide||(g[E]+=(b?-1:1)*B.width):g[E]+=(b?-1:1)*B.height,_objectSpread(_objectSpread({},a),{},_defineProperty({},i,B))},{})},rectWithPoints=function(e,t){var r=e.x,n=e.y,o=t.x,a=t.y;return{x:Math.min(r,o),y:Math.min(n,a),width:Math.abs(o-r),height:Math.abs(a-n)}},rectWithCoords=function(e){return rectWithPoints({x:e.x1,y:e.y1},{x:e.x2,y:e.y2})},h=function(){var e,t;function ScaleHelper(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,ScaleHelper),this.scale=void 0,this.scale=e}return e=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var a=this.bandwidth?this.bandwidth():0;return this.scale(e)+a}if(r){var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}],t=[{key:"create",value:function(e){return new ScaleHelper(e)}}],e&&_defineProperties(ScaleHelper.prototype,e),t&&_defineProperties(ScaleHelper,t),ScaleHelper}();h.EPS=1e-4;var createLabeledScales=function(e){var t=Object.keys(e).reduce(function(t,r){return _objectSpread(_objectSpread({},t),{},_defineProperty({},r,h.create(e[r])))},{});return _objectSpread(_objectSpread({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return i()(e,function(e,r){return t[r].apply(e,{bandAware:n,position:o})})},isInRange:function(e){return o()(e,function(e,r){return t[r].isInRange(e)})}})}},aQSm:function(e,t,r){"use strict";r.d(t,{s0:function(){return appendOffsetOfLegend},gH:function(){return calculateActiveTickIndex},YB:function(){return checkDomainOfScale},HQ:function(){return combineEventHandlers},Hj:function(){return getBandSizeOfAxis},BX:function(){return getBarPosition},tA:function(){return getBarSizeList},nb:function(){return getCateCoordinateOfLine},PW:function(){return getCoordinatesOfGrid},Ay:function(){return getDomainOfDataByKey},vf:function(){return getDomainOfItemsWithSameAxis},Mk:function(){return getDomainOfStackGroups},g1:function(){return getLegendProps},Ps:function(){return getMainColorOfGraphicItem},Mn:function(){return getStackGroupsByAxisId},kA:function(){return getStackedDataOfItem},Rh:function(){return getTicksOfAxis},w7:function(){return getTicksOfScale},zb:function(){return getTooltipItem},kr:function(){return getValueByDataKey},_L:function(){return isCategoricalAxis},KC:function(){return parseDomainOfCategoryAxis},A1:function(){return parseErrorBarsOfAxis},W7:function(){return parseScale},AQ:function(){return parseSpecifiedDomain}});var n,o,a,i,l,f,p,h={};r.r(h),r.d(h,{scaleBand:function(){return G.A},scaleDiverging:function(){return function diverging(){var e=linearish(diverging_transformer()(continuous_identity));return e.copy=function(){return sequential_copy(e,diverging())},ep.K.apply(e,arguments)}},scaleDivergingLog:function(){return function divergingLog(){var e=loggish(diverging_transformer()).domain([.1,1,10]);return e.copy=function(){return sequential_copy(e,divergingLog()).base(e.base())},ep.K.apply(e,arguments)}},scaleDivergingPow:function(){return divergingPow},scaleDivergingSqrt:function(){return divergingSqrt},scaleDivergingSymlog:function(){return function divergingSymlog(){var e=symlogish(diverging_transformer());return e.copy=function(){return sequential_copy(e,divergingSymlog()).constant(e.constant())},ep.K.apply(e,arguments)}},scaleIdentity:function(){return function identity_identity(e){var t;function scale(e){return null==e||isNaN(e=+e)?t:e}return scale.invert=scale,scale.domain=scale.range=function(t){return arguments.length?(e=Array.from(t,number_number),scale):e.slice()},scale.unknown=function(e){return arguments.length?(t=e,scale):t},scale.copy=function(){return identity_identity(e).unknown(t)},e=arguments.length?Array.from(e,number_number):[0,1],linearish(scale)}},scaleImplicit:function(){return em.h},scaleLinear:function(){return linear_linear},scaleLog:function(){return function log(){var e=loggish(transformer()).domain([1,10]);return e.copy=function(){return copy(e,log()).base(e.base())},ep.C.apply(e,arguments),e}},scaleOrdinal:function(){return em.A},scalePoint:function(){return G.z},scalePow:function(){return pow},scaleQuantile:function(){return function quantile_quantile(){var e,t=[],r=[],n=[];function rescale(){var e=0,o=Math.max(1,r.length);for(n=Array(o-1);++e=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,a=Math.floor(o),i=+r(e[a],a,e);return i+(+r(e[a+1],a+1,e)-i)*(o-a)}}(t,e/o);return scale}function scale(t){return null==t||isNaN(t=+t)?e:r[Z(n,t)]}return scale.invertExtent=function(e){var o=r.indexOf(e);return o<0?[NaN,NaN]:[o>0?n[o-1]:t[0],o=n?[o[n-1],r]:[o[i-1],o[i]]},scale.unknown=function(t){return arguments.length&&(e=t),scale},scale.thresholds=function(){return o.slice()},scale.copy=function(){return quantize().domain([t,r]).range(a).unknown(e)},ep.C.apply(linearish(scale),arguments)}},scaleRadial:function(){return function radial(){var e,t=continuous(),r=[0,1],n=!1;function scale(r){var o,a=Math.sign(o=t(r))*Math.sqrt(Math.abs(o));return isNaN(a)?e:n?Math.round(a):a}return scale.invert=function(e){return t.invert(square(e))},scale.domain=function(e){return arguments.length?(t.domain(e),scale):t.domain()},scale.range=function(e){return arguments.length?(t.range((r=Array.from(e,number_number)).map(square)),scale):r.slice()},scale.rangeRound=function(e){return scale.range(e).round(!0)},scale.round=function(e){return arguments.length?(n=!!e,scale):n},scale.clamp=function(e){return arguments.length?(t.clamp(e),scale):t.clamp()},scale.unknown=function(t){return arguments.length?(e=t,scale):e},scale.copy=function(){return radial(t.domain(),r).round(n).clamp(t.clamp()).unknown(e)},ep.C.apply(scale,arguments),linearish(scale)}},scaleSequential:function(){return function sequential(){var e=linearish(sequential_transformer()(continuous_identity));return e.copy=function(){return sequential_copy(e,sequential())},ep.K.apply(e,arguments)}},scaleSequentialLog:function(){return function sequentialLog(){var e=loggish(sequential_transformer()).domain([1,10]);return e.copy=function(){return sequential_copy(e,sequentialLog()).base(e.base())},ep.K.apply(e,arguments)}},scaleSequentialPow:function(){return sequentialPow},scaleSequentialQuantile:function(){return function sequentialQuantile(){var e=[],t=continuous_identity;function scale(r){if(null!=r&&!isNaN(r=+r))return t((Z(e,r,1)-1)/(e.length-1))}return scale.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r=+r)||e.push(r);return e.sort(ascending),scale},scale.interpolator=function(e){return arguments.length?(t=e,scale):t},scale.range=function(){return e.map((r,n)=>t(n/(e.length-1)))},scale.quantiles=function(t){return Array.from({length:t+1},(r,n)=>(function(e,t,r){if(n=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}(e,void 0))).length){if((t=+t)<=0||n<2)return min_min(e);if(t>=1)return max_max(e);var n,o=(n-1)*t,a=Math.floor(o),i=max_max((function quickselect(e,t,r=0,n=e.length-1,o=ascending){for(;n>r;){if(n-r>600){let a=n-r+1,i=t-r+1,l=Math.log(a),f=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*f*(a-f)/a)*(i-a/2<0?-1:1),h=Math.max(r,Math.floor(t-i*f/a+p)),d=Math.min(n,Math.floor(t+(a-i)*f/a+p));quickselect(e,t,h,d,o)}let a=e[t],i=r,l=n;for(swap(e,r,t),o(e[n],a)>0&&swap(e,r,n);io(e[i],a);)++i;for(;o(e[l],a)>0;)--l}0===o(e[r],a)?swap(e,r,l):swap(e,++l,n),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e})(e,a).subarray(0,a+1));return i+(min_min(e.subarray(a+1))-i)*(o-a)}})(e,n/t))},scale.copy=function(){return sequentialQuantile(t).domain(e)},ep.K.apply(scale,arguments)}},scaleSequentialSqrt:function(){return sequentialSqrt},scaleSequentialSymlog:function(){return function sequentialSymlog(){var e=symlogish(sequential_transformer());return e.copy=function(){return sequential_copy(e,sequentialSymlog()).constant(e.constant())},ep.K.apply(e,arguments)}},scaleSqrt:function(){return sqrt},scaleSymlog:function(){return function symlog(){var e=symlogish(transformer());return e.copy=function(){return copy(e,symlog()).constant(e.constant())},ep.C.apply(e,arguments)}},scaleThreshold:function(){return function threshold(){var e,t=[.5],r=[0,1],n=1;function scale(o){return null!=o&&o<=o?r[Z(t,o,0,n)]:e}return scale.domain=function(e){return arguments.length?(n=Math.min((t=Array.from(e)).length,r.length-1),scale):t.slice()},scale.range=function(e){return arguments.length?(r=Array.from(e),n=Math.min(t.length,r.length-1),scale):r.slice()},scale.invertExtent=function(e){var n=r.indexOf(e);return[t[n-1],t[n]]},scale.unknown=function(t){return arguments.length?(e=t,scale):e},scale.copy=function(){return threshold().domain(t).range(r).unknown(e)},ep.C.apply(scale,arguments)}},scaleTime:function(){return time},scaleUtc:function(){return utcTime},tickFormat:function(){return tickFormat}});var d=r("Y+p1"),y=r.n(d),g=r("xweI"),m=r.n(g),v=r("GODc"),b=r.n(v),_=r("gQMU"),x=r.n(_),O=r("4qC0"),S=r.n(O),C=r("Z0cm"),w=r.n(C),A=r("q92V"),E=r.n(A),j=r("AE40"),P=r.n(j),k=r("6ajc"),T=r.n(k),M=r("lSCD"),I=r.n(M),D=r("mwIZ"),R=r.n(D),L=r("J2iB"),N=r.n(L),U=r("haXk"),B=r.n(U);function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e?t.apply(void 0,n):curryN(e-a,curry0(function(){for(var e=arguments.length,r=Array(e),o=0;oe.length)&&(t=e.length);for(var r=0,n=Array(t);rn&&(o=n,a=r),[o,a]}function getFormatStep(e,t,r){if(e.lte(0))return new(B())(0);var n=F.getDigitCount(e.toNumber()),o=new(B())(10).pow(n),a=e.div(o),i=1!==n?.05:.1,l=new(B())(Math.ceil(a.div(i).toNumber())).add(r).mul(i).mul(o);return t?l:new(B())(Math.ceil(l))}function getTickOfSingleValue(e,t,r){var n=1,o=new(B())(e);if(!o.isint()&&r){var a=Math.abs(e);a<1?(n=new(B())(10).pow(F.getDigitCount(e)-1),o=new(B())(Math.floor(o.div(n).toNumber())).mul(n)):a>1&&(o=new(B())(Math.floor(e)))}else 0===e?o=new(B())(Math.floor((t-1)/2)):r||(o=new(B())(Math.floor(e)));var i=Math.floor((t-1)/2);return compose(W(function(e){return o.add(new(B())(e-i).mul(n)).toNumber()}),range)(0,t)}var z=memoize(function(e){var t=_slicedToArray(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=_slicedToArray(getValidInterval([r,n]),2),f=l[0],p=l[1];if(f===-1/0||p===1/0){var h=p===1/0?[f].concat(getNiceTickValues_toConsumableArray(range(0,o-1).map(function(){return 1/0}))):[].concat(getNiceTickValues_toConsumableArray(range(0,o-1).map(function(){return-1/0})),[p]);return r>n?reverse(h):h}if(f===p)return getTickOfSingleValue(f,o,a);var d=function calculateStep(e,t,r,n){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new(B())(0),tickMin:new(B())(0),tickMax:new(B())(0)};var i=getFormatStep(new(B())(t).sub(e).div(r-1),n,a),l=Math.ceil((o=e<=0&&t>=0?new(B())(0):(o=new(B())(e).add(t).div(2)).sub(new(B())(o).mod(i))).sub(e).div(i).toNumber()),f=Math.ceil(new(B())(t).sub(o).div(i).toNumber()),p=l+f+1;return p>r?calculateStep(e,t,r,n,a+1):(p0?f+(r-p):f,l=t>0?l:l+(r-p)),{step:i,tickMin:o.sub(new(B())(l).mul(i)),tickMax:o.add(new(B())(f).mul(i))})}(f,p,i,a),y=d.step,g=d.tickMin,m=d.tickMax,v=F.rangeStep(g,m.add(new(B())(.1).mul(y)),y);return r>n?reverse(v):v});memoize(function(e){var t=_slicedToArray(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=Math.max(o,2),l=_slicedToArray(getValidInterval([r,n]),2),f=l[0],p=l[1];if(f===-1/0||p===1/0)return[r,n];if(f===p)return getTickOfSingleValue(f,o,a);var h=getFormatStep(new(B())(p).sub(f).div(i-1),a,0),d=compose(W(function(e){return new(B())(f).add(new(B())(e).mul(h)).toNumber()}),range)(0,i).filter(function(e){return e>=f&&e<=p});return r>n?reverse(d):d});var V=memoize(function(e,t){var r=_slicedToArray(e,2),n=r[0],o=r[1],a=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=_slicedToArray(getValidInterval([n,o]),2),l=i[0],f=i[1];if(l===-1/0||f===1/0)return[n,o];if(l===f)return[l];var p=getFormatStep(new(B())(f).sub(l).div(Math.max(t,2)-1),a,0),h=[].concat(getNiceTickValues_toConsumableArray(F.rangeStep(new(B())(l),new(B())(f).sub(new(B())(.99).mul(p)),p)),[f]);return n>o?reverse(h):h}),G=r("DD13"),H=Math.sqrt(50),K=Math.sqrt(10),X=Math.sqrt(2);function ticks(e,t,r){var n,o,a,i,l=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t0){let r=Math.round(e/i),n=Math.round(t/i);for(r*it&&--n,a=Array(o=n-r+1);++lt&&--n,a=Array(o=n-r+1);++l=0?(a>=H?10:a>=K?5:a>=X?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=H?10:a>=K?5:a>=X?2:1)}function tickStep(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),o=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/o;return a>=H?o*=10:a>=K?o*=5:a>=X&&(o*=2),tt?1:e>=t?0:NaN}function bisector(e){let t=e,r=e;function left(e,t,n,o){for(null==n&&(n=0),null==o&&(o=e.length);n>>1;0>r(e[a],t)?n=a+1:o=a}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=(t,r)=>ascending(e(t),r)),{left,center:function(e,r,n,o){null==n&&(n=0),null==o&&(o=e.length);let a=left(e,r,n,o-1);return a>n&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,o){for(null==n&&(n=0),null==o&&(o=e.length);n>>1;r(e[a],t)>0?o=a:n=a+1}return n}}}function number(e){return null===e?NaN:+e}let Y=bisector(ascending),Z=Y.right;function src_define(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function extend(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Color(){}Y.left,bisector(number).center;var J="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Q="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ee=/^#([0-9a-f]{3,8})$/,et=RegExp("^rgb\\("+[J,J,J]+"\\)$"),er=RegExp("^rgb\\("+[Q,Q,Q]+"\\)$"),en=RegExp("^rgba\\("+[J,J,J,$]+"\\)$"),eo=RegExp("^rgba\\("+[Q,Q,Q,$]+"\\)$"),ea=RegExp("^hsl\\("+[$,Q,Q]+"\\)$"),ei=RegExp("^hsla\\("+[$,Q,Q,$]+"\\)$"),ec={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function color_formatHex(){return this.rgb().formatHex()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ee.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?rgbn(t):3===r?new Rgb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?rgba(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?rgba(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=et.exec(e))?new Rgb(t[1],t[2],t[3],1):(t=er.exec(e))?new Rgb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=en.exec(e))?rgba(t[1],t[2],t[3],t[4]):(t=eo.exec(e))?rgba(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ea.exec(e))?hsla(t[1],t[2]/100,t[3]/100,1):(t=ei.exec(e))?hsla(t[1],t[2]/100,t[3]/100,t[4]):ec.hasOwnProperty(e)?rgbn(ec[e]):"transparent"===e?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,255&e,1)}function rgba(e,t,r,n){return n<=0&&(e=t=r=NaN),new Rgb(e,t,r,n)}function color_rgb(e,t,r,n){var o;return 1==arguments.length?((o=e)instanceof Color||(o=color(o)),o)?(o=o.rgb(),new Rgb(o.r,o.g,o.b,o.opacity)):new Rgb:new Rgb(e,t,r,null==n?1:n)}function Rgb(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function rgb_formatHex(){return"#"+hex(this.r)+hex(this.g)+hex(this.b)}function rgb_formatRgb(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function hex(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function hsla(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl(e,t,r,n)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),i=NaN,l=a-o,f=(a+o)/2;return l?(i=t===a?(r-n)/l+(r0&&f<1?0:i,new Hsl(i,l,f,e.opacity)}function Hsl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function hsl2rgb(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function basis(e,t,r,n,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*r+(1+3*e+3*a-3*i)*n+i*o)/6}src_define(Color,color,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHsl:function(){return hslConvert(this).formatHsl()},formatRgb:color_formatRgb,toString:color_formatRgb}),src_define(Rgb,color_rgb,extend(Color,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),src_define(Hsl,function(e,t,r,n){return 1==arguments.length?hslConvert(e):new Hsl(e,t,r,null==n?1:n)},extend(Color,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Rgb(hsl2rgb(e>=240?e-240:e+120,o,n),hsl2rgb(e,o,n),hsl2rgb(e<120?e+240:e-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var src_constant=e=>()=>e;function nogamma(e,t){var r=t-e;return r?function(t){return e+t*r}:src_constant(isNaN(e)?t:e)}var eu=function rgbGamma(e){var t,r=1==(t=+(t=e))?nogamma:function(e,r){var n,o,a;return r-e?(n=e,o=r,n=Math.pow(n,a=t),o=Math.pow(o,a)-n,a=1/a,function(e){return Math.pow(n+e*o,a)}):src_constant(isNaN(e)?r:e)};function rgb(e,t){var n=r((e=color_rgb(e)).r,(t=color_rgb(t)).r),o=r(e.g,t.g),a=r(e.b,t.b),i=nogamma(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return rgb.gamma=rgbGamma,rgb}(1);function rgbSpline(e){return function(t){var r,n,o=t.length,a=Array(o),i=Array(o),l=Array(o);for(r=0;r=1?(r=1,t-1):Math.floor(r*t),o=e[n],a=e[n+1],i=n>0?e[n-1]:2*o-a,l=nl&&(i=t.slice(l,i),p[f]?p[f]+=i:p[++f]=i),(o=o[0])===(a=a[0])?p[f]?p[f]+=a:p[++f]=a:(p[++f]=null,h.push({i:f,x:src_number(o,a)})),l=el.lastIndex;return lt&&(r=e,e=t,t=r),p=function(r){return Math.max(e,Math.min(t,r))}),n=f>2?polymap:bimap,o=a=null,scale}function scale(t){return null==t||isNaN(t=+t)?r:(o||(o=n(i.map(e),l,f)))(e(p(t)))}return scale.invert=function(r){return p(t((a||(a=n(l,i.map(e),src_number)))(r)))},scale.domain=function(e){return arguments.length?(i=Array.from(e,number_number),rescale()):i.slice()},scale.range=function(e){return arguments.length?(l=Array.from(e),rescale()):l.slice()},scale.rangeRound=function(e){return l=Array.from(e),f=round,rescale()},scale.clamp=function(e){return arguments.length?(p=!!e||continuous_identity,rescale()):p!==continuous_identity},scale.interpolate=function(e){return arguments.length?(f=e,rescale()):f},scale.unknown=function(e){return arguments.length?(r=e,scale):r},function(r,n){return e=r,t=n,rescale()}}function continuous(){return transformer()(continuous_identity,continuous_identity)}var ep=r("v2Ii"),eh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){var t;if(!(t=eh.exec(e)))throw Error("invalid format: "+e);return new FormatSpecifier({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function FormatSpecifier(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function formatDecimalParts(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function exponent(e){return(e=formatDecimalParts(Math.abs(e)))?e[1]:NaN}function formatRounded(e,t){var r=formatDecimalParts(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+Array(o-n.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ed={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>formatRounded(100*e,t),r:formatRounded,s:function(e,t){var r=formatDecimalParts(e,t);if(!r)return e+"";var o=r[0],a=r[1],i=a-(n=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,l=o.length;return i===l?o:i>l?o+Array(i-l+1).join("0"):i>0?o.slice(0,i)+"."+o.slice(i):"0."+Array(1-i).join("0")+formatDecimalParts(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function src_identity(e){return e}var ey=Array.prototype.map,eg=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tickFormat(e,t,r,n){var o,l,f=tickStep(e,t,r);switch((n=formatSpecifier(null==n?",f":n)).type){case"s":var p=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(l=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(exponent(p)/3)))-exponent(Math.abs(f))))||(n.precision=l),i(n,p);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(l=Math.max(0,exponent(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(o=Math.abs(o=f)))-exponent(o))+1)||(n.precision=l-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(l=Math.max(0,-exponent(Math.abs(f))))||(n.precision=l-("%"===n.type)*2)}return a(n)}function linearish(e){var t=e.domain;return e.ticks=function(e){var r=t();return ticks(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return tickFormat(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,o,a=t(),i=0,l=a.length-1,f=a[i],p=a[l],h=10;for(p0;){if((o=tickIncrement(f,p,r))===n)return a[i]=f,a[l]=p,t(a);if(o>0)f=Math.floor(f/o)*o,p=Math.ceil(p/o)*o;else if(o<0)f=Math.ceil(f*o)/o,p=Math.floor(p*o)/o;else break;n=o}return e},e}function linear_linear(){var e=continuous();return e.copy=function(){return copy(e,linear_linear())},ep.C.apply(e,arguments),linearish(e)}function nice(e,t){e=e.slice();var r,n=0,o=e.length-1,a=e[n],i=e[o];return i0){for(;y<=g;++y)for(h=1,p=r(y);hf)break;v.push(d)}}else for(;y<=g;++y)for(h=i-1,p=r(y);h>=1;--h)if(!((d=p*h)f)break;v.push(d)}2*v.length0&&l>0&&(f+l+1>n&&(l=Math.max(1,n-f)),a.push(e.substring(o-=l,o+l)),!((f+=l+1)>n));)l=t[i=(i+1)%t.length];return a.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",l=void 0===e.currency?"":e.currency[1]+"",f=void 0===e.decimal?".":e.decimal+"",p=void 0===e.numerals?src_identity:(o=ey.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return o[+e]})}),h=void 0===e.percent?"%":e.percent+"",d=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function newFormat(e){var t=(e=formatSpecifier(e)).fill,r=e.align,o=e.sign,g=e.symbol,m=e.zero,v=e.width,b=e.comma,_=e.precision,x=e.trim,O=e.type;"n"===O?(b=!0,O="g"):ed[O]||(void 0===_&&(_=12),x=!0,O="g"),(m||"0"===t&&"="===r)&&(m=!0,t="0",r="=");var S="$"===g?i:"#"===g&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",C="$"===g?l:/[%p]/.test(O)?h:"",w=ed[O],A=/[defgprs%]/.test(O);function format(e){var i,l,h,g=S,E=C;if("c"===O)E=w(e)+E,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:w(Math.abs(e),_),x&&(e=function(e){e:for(var t,r=e.length,n=1,o=-1;n0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),j&&0==+e&&"+"!==o&&(j=!1),g=(j?"("===o?o:d:"-"===o||"("===o?"":o)+g,E=("s"===O?eg[8+n/3]:"")+E+(j&&"("===o?")":""),A){for(i=-1,l=e.length;++i(h=e.charCodeAt(i))||h>57){E=(46===h?f+e.slice(i+1):e.slice(i))+E,e=e.slice(0,i);break}}}b&&!m&&(e=a(e,1/0));var P=g.length+e.length+E.length,k=P>1)+g+e+E+k.slice(P);break;default:e=k+g+e+E}return p(e)}return _=void 0===_?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),format.toString=function(){return e+""},format}return{format:newFormat,formatPrefix:function(e,t){var r=newFormat(((e=formatSpecifier(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3))),o=Math.pow(10,-n),a=eg[8+n/3];return function(e){return r(o*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,i=o.formatPrefix;var em=r("NZtL");function transformPow(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function transformSqrt(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function transformSquare(e){return e<0?-e*e:e*e}function powish(e){var t=e(continuous_identity,continuous_identity),r=1;return t.exponent=function(t){return arguments.length?1==(r=+t)?e(continuous_identity,continuous_identity):.5===r?e(transformSqrt,transformSquare):e(transformPow(r),transformPow(1/r)):r},linearish(t)}function pow(){var e=powish(transformer());return e.copy=function(){return copy(e,pow()).exponent(e.exponent())},ep.C.apply(e,arguments),e}function sqrt(){return pow.apply(null,arguments).exponent(.5)}function square(e){return Math.sign(e)*e*e}function max_max(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r=o)&&(r=o)}return r}function min_min(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function swap(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}let ev=864e5,eb=7*ev,e_=30*ev,ex=365*ev;var eO=new Date,eS=new Date;function newInterval(e,t,r,n){function interval(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return interval.floor=function(t){return e(t=new Date(+t)),t},interval.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},interval.round=function(e){var t=interval(e),r=interval.ceil(e);return e-t0))return i;do i.push(a=new Date(+r)),t(r,o),e(r);while(a=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,n){if(e>=e){if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}})},r&&(interval.count=function(t,n){return eO.setTime(+t),eS.setTime(+n),e(eO),e(eS),Math.floor(r(eO,eS))},interval.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?interval.filter(n?function(t){return n(t)%e==0}:function(t){return interval.count(0,t)%e==0}):interval:null}),interval}var eC=newInterval(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});eC.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?newInterval(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):eC:null},eC.range;var ew=newInterval(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});ew.range;var eA=newInterval(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});eA.range;var eE=newInterval(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});eE.range;var ej=newInterval(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/ev,e=>e.getDate()-1);function weekday(e){return newInterval(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/eb})}ej.range;var eP=weekday(0),ek=weekday(1),eT=weekday(2),eM=weekday(3),eI=weekday(4),eD=weekday(5),eR=weekday(6);eP.range,ek.range,eT.range,eM.range,eI.range,eD.range,eR.range;var eL=newInterval(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});eL.range;var eN=newInterval(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});eN.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},eN.range;var eU=newInterval(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});eU.range;var eB=newInterval(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});eB.range;var eq=newInterval(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/ev},function(e){return e.getUTCDate()-1});function utcWeekday(e){return newInterval(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/eb})}eq.range;var eW=utcWeekday(0),eF=utcWeekday(1),ez=utcWeekday(2),eV=utcWeekday(3),eG=utcWeekday(4),eH=utcWeekday(5),eK=utcWeekday(6);eW.range,eF.range,ez.range,eV.range,eG.range,eH.range,eK.range;var eX=newInterval(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});eX.range;var eY=newInterval(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function ticker(e,t,r,n,o,a){let i=[[ew,1,1e3],[ew,5,5e3],[ew,15,15e3],[ew,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,ev],[n,2,2*ev],[r,1,eb],[t,1,e_],[t,3,3*e_],[e,1,ex]];function tickInterval(t,r,n){let o=Math.abs(r-t)/n,a=bisector(([,,e])=>e).right(i,o);if(a===i.length)return e.every(tickStep(t/ex,r/ex,n));if(0===a)return eC.every(Math.max(tickStep(t,r,n),1));let[l,f]=i[o/i[a-1][2]0?newInterval(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},eY.range;let[eZ,eJ]=ticker(eY,eX,eW,eq,eB,eU),[e$,eQ]=ticker(eN,eL,eP,ej,eE,eA);function localDate(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function utcDate(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function newDate(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var e0={"-":"",_:" ",0:"0"},e1=/^\s*\d+/,e2=/^%/,e3=/[\\^$*+?|[\]().{}]/g;function pad(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",a=o.length;return n+(a[e.toLowerCase(),t]))}function parseWeekdayNumberSunday(e,t,r){var n=e1.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function parseWeekdayNumberMonday(e,t,r){var n=e1.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function parseWeekNumberSunday(e,t,r){var n=e1.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function parseWeekNumberISO(e,t,r){var n=e1.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function parseWeekNumberMonday(e,t,r){var n=e1.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function parseFullYear(e,t,r){var n=e1.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function parseYear(e,t,r){var n=e1.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function parseZone(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function parseQuarter(e,t,r){var n=e1.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function parseMonthNumber(e,t,r){var n=e1.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function parseDayOfMonth(e,t,r){var n=e1.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function parseDayOfYear(e,t,r){var n=e1.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function parseHour24(e,t,r){var n=e1.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function parseMinutes(e,t,r){var n=e1.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function parseSeconds(e,t,r){var n=e1.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function parseMilliseconds(e,t,r){var n=e1.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function parseMicroseconds(e,t,r){var n=e1.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function parseLiteralPercent(e,t,r){var n=e2.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function parseUnixTimestamp(e,t,r){var n=e1.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function parseUnixTimestampSeconds(e,t,r){var n=e1.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function formatDayOfMonth(e,t){return pad(e.getDate(),t,2)}function formatHour24(e,t){return pad(e.getHours(),t,2)}function formatHour12(e,t){return pad(e.getHours()%12||12,t,2)}function formatDayOfYear(e,t){return pad(1+ej.count(eN(e),e),t,3)}function formatMilliseconds(e,t){return pad(e.getMilliseconds(),t,3)}function formatMicroseconds(e,t){return formatMilliseconds(e,t)+"000"}function formatMonthNumber(e,t){return pad(e.getMonth()+1,t,2)}function formatMinutes(e,t){return pad(e.getMinutes(),t,2)}function formatSeconds(e,t){return pad(e.getSeconds(),t,2)}function formatWeekdayNumberMonday(e){var t=e.getDay();return 0===t?7:t}function formatWeekNumberSunday(e,t){return pad(eP.count(eN(e)-1,e),t,2)}function dISO(e){var t=e.getDay();return t>=4||0===t?eI(e):eI.ceil(e)}function formatWeekNumberISO(e,t){return e=dISO(e),pad(eI.count(eN(e),e)+(4===eN(e).getDay()),t,2)}function formatWeekdayNumberSunday(e){return e.getDay()}function formatWeekNumberMonday(e,t){return pad(ek.count(eN(e)-1,e),t,2)}function formatYear(e,t){return pad(e.getFullYear()%100,t,2)}function formatYearISO(e,t){return pad((e=dISO(e)).getFullYear()%100,t,2)}function formatFullYear(e,t){return pad(e.getFullYear()%1e4,t,4)}function formatFullYearISO(e,t){var r=e.getDay();return pad((e=r>=4||0===r?eI(e):eI.ceil(e)).getFullYear()%1e4,t,4)}function formatZone(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad(t/60|0,"0",2)+pad(t%60,"0",2)}function formatUTCDayOfMonth(e,t){return pad(e.getUTCDate(),t,2)}function formatUTCHour24(e,t){return pad(e.getUTCHours(),t,2)}function formatUTCHour12(e,t){return pad(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear(e,t){return pad(1+eq.count(eY(e),e),t,3)}function formatUTCMilliseconds(e,t){return pad(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds(e,t){return formatUTCMilliseconds(e,t)+"000"}function formatUTCMonthNumber(e,t){return pad(e.getUTCMonth()+1,t,2)}function formatUTCMinutes(e,t){return pad(e.getUTCMinutes(),t,2)}function formatUTCSeconds(e,t){return pad(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday(e){var t=e.getUTCDay();return 0===t?7:t}function formatUTCWeekNumberSunday(e,t){return pad(eW.count(eY(e)-1,e),t,2)}function UTCdISO(e){var t=e.getUTCDay();return t>=4||0===t?eG(e):eG.ceil(e)}function formatUTCWeekNumberISO(e,t){return e=UTCdISO(e),pad(eG.count(eY(e),e)+(4===eY(e).getUTCDay()),t,2)}function formatUTCWeekdayNumberSunday(e){return e.getUTCDay()}function formatUTCWeekNumberMonday(e,t){return pad(eF.count(eY(e)-1,e),t,2)}function formatUTCYear(e,t){return pad(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO(e,t){return pad((e=UTCdISO(e)).getUTCFullYear()%100,t,2)}function formatUTCFullYear(e,t){return pad(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO(e,t){var r=e.getUTCDay();return pad((e=r>=4||0===r?eG(e):eG.ceil(e)).getUTCFullYear()%1e4,t,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(e){return+e}function formatUnixTimestampSeconds(e){return Math.floor(+e/1e3)}function time_date(e){return new Date(e)}function time_number(e){return e instanceof Date?+e:+new Date(+e)}function calendar(e,t,r,n,o,a,i,l,f,p){var h=continuous(),d=h.invert,y=h.domain,g=p(".%L"),m=p(":%S"),v=p("%I:%M"),b=p("%I %p"),_=p("%a %d"),x=p("%b %d"),O=p("%B"),S=p("%Y");function tickFormat(e){return(f(e)1)for(var r,n,o,a=1,i=e[t[0]],l=i.length;a=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},S={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return f[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},C={a:function(e,t,r){var n=g.exec(t.slice(r));return n?(e.w=m.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=y.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=_.exec(t.slice(r));return n?(e.m=x.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=v.exec(t.slice(r));return n?(e.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return parseSpecifier(e,t,r,n)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.p=h.get(n[0].toLowerCase()),r+n[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(e,t,n){return parseSpecifier(e,r,t,n)},X:function(e,t,r){return parseSpecifier(e,n,t,r)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function newFormat(e,t){return function(r){var n,o,a,i=[],l=-1,f=0,p=e.length;for(r instanceof Date||(r=new Date(+r));++l53)return null;"w"in a||(a.w=1),"Z"in a?(n=(o=(n=utcDate(newDate(a.y,0,1))).getUTCDay())>4||0===o?eF.ceil(n):eF(n),n=eq.offset(n,(a.V-1)*7),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(n=(o=(n=localDate(newDate(a.y,0,1))).getDay())>4||0===o?ek.ceil(n):ek(n),n=ej.offset(n,(a.V-1)*7),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?utcDate(newDate(a.y,0,1)).getUTCDay():localDate(newDate(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,utcDate(a)):localDate(a)}}function parseSpecifier(e,t,r,n){for(var o,a,i=0,l=t.length,f=r.length;i=f)return -1;if(37===(o=t.charCodeAt(i++))){if(!(a=C[(o=t.charAt(i++))in e0?t.charAt(i++):o])||(n=a(e,r,n))<0)return -1}else if(o!=r.charCodeAt(n++))return -1}return n}return O.x=newFormat(r,O),O.X=newFormat(n,O),O.c=newFormat(t,O),S.x=newFormat(r,S),S.X=newFormat(n,S),S.c=newFormat(t,S),{format:function(e){var t=newFormat(e+="",O);return t.toString=function(){return e},t},parse:function(e){var t=newParse(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=newFormat(e+="",S);return t.toString=function(){return e},t},utcParse:function(e){var t=newParse(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,l.parse,p=l.utcFormat,l.utcParse;var e5=r("yYJV"),e4=r("9ErO");function order_none(e){for(var t=e.length,r=Array(t);--t>=0;)r[t]=t;return r}function stackValue(e,t){return e[t]}function stackSeries(e){let t=[];return t.key=e,t}var e6=r("CAr5"),e8=r("ZdXk"),e7=r("iiMn"),e9=r("clxZ");function ChartUtils_toConsumableArray(e){return function(e){if(Array.isArray(e))return ChartUtils_arrayLikeToArray(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ChartUtils_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ChartUtils_arrayLikeToArray(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ChartUtils_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,i=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;if(i>1){if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var l=o.range,f=0;f0?n[f-1].coordinate:n[i-1].coordinate,h=n[f].coordinate,d=f>=i-1?n[0].coordinate:n[f+1].coordinate,y=void 0;if((0,e6.sA)(h-p)!==(0,e6.sA)(d-h)){var g=[];if((0,e6.sA)(d-h)===(0,e6.sA)(l[1]-l[0])){y=d;var m=h+l[1]-l[0];g[0]=Math.min(m,(m+p)/2),g[1]=Math.max(m,(m+p)/2)}else{y=p;var v=d+l[1]-l[0];g[0]=Math.min(h,(v+h)/2),g[1]=Math.max(h,(v+h)/2)}var b=[Math.min(h,(y+h)/2),Math.max(h,(y+h)/2)];if(e>b[0]&&e<=b[1]||e>=g[0]&&e<=g[1]){a=n[f].index;break}}else{var _=Math.min(p,d),x=Math.max(p,d);if(e>(_+h)/2&&e<=(x+h)/2){a=n[f].index;break}}}else for(var O=0;O0&&O(r[O].coordinate+r[O-1].coordinate)/2&&e<=(r[O].coordinate+r[O+1].coordinate)/2||O===i-1&&e>(r[O].coordinate+r[O-1].coordinate)/2){a=r[O].index;break}}else a=0;return a},getMainColorOfGraphicItem=function(e){var t,r=e.type.displayName,n=e.props,o=n.stroke,a=n.fill;switch(r){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:a;break;default:t=a}return t},getLegendProps=function(e){var t,r=e.children,n=e.formattedGraphicalItems,o=e.legendWidth,a=e.legendContent,i=(0,e7.BU)(r,e8.s.displayName);return i?(t=i.props&&i.props.payload?i.props&&i.props.payload:"children"===a?(n||[]).reduce(function(e,t){var r=t.item,n=t.props,o=n.sectors||n.data||[];return e.concat(o.map(function(e){return{type:i.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(n||[]).map(function(e){var t=e.item,r=t.props,n=r.dataKey,o=r.name,a=r.legendType;return{inactive:r.hide,dataKey:n,type:i.props.iconType||a||"square",color:getMainColorOfGraphicItem(t),value:o||n,payload:t.props}}),_objectSpread(_objectSpread(_objectSpread({},i.props),e8.s.getWithHeight(i,o)),{},{payload:t,item:i})):null},getBarSizeList=function(e){var t=e.barSize,r=e.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var o={},a=Object.keys(n),i=0,l=a.length;i=0});if(v&&v.length){var b=v[0].props.barSize,_=v[0].props[m];o[_]||(o[_]=[]),o[_].push({item:v[0],stackList:v.slice(1),barSize:N()(b)?t:b})}}return o},getBarPosition=function(e){var t,r=e.barGap,n=e.barCategoryGap,o=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,l=e.maxBarSize,f=i.length;if(f<1)return null;var p=(0,e6.F4)(r,o,0,!0);if(i[0].barSize===+i[0].barSize){var h=!1,d=o/f,y=i.reduce(function(e,t){return e+t.barSize||0},0);(y+=(f-1)*p)>=o&&(y-=(f-1)*p,p=0),y>=o&&d>0&&(h=!0,d*=.9,y=f*d);var g={offset:((o-y)/2>>0)-p,size:0};t=i.reduce(function(e,t){var r=[].concat(ChartUtils_toConsumableArray(e),[{item:t.item,position:{offset:g.offset+g.size+p,size:h?d:t.barSize}}]);return g=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:g})}),r},[])}else{var m=(0,e6.F4)(n,o,0,!0);o-2*m-(f-1)*p<=0&&(p=0);var v=(o-2*m-(f-1)*p)/f;v>1&&(v>>=0);var b=l===+l?Math.min(v,l):v;t=i.reduce(function(e,t,r){var n=[].concat(ChartUtils_toConsumableArray(e),[{item:t.item,position:{offset:m+(v+p)*r+(v-b)/2,size:b}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:n[n.length-1].position})}),n},[])}return t},appendOffsetOfLegend=function(e,t,r,n){var o=r.children,a=r.width,i=r.margin,l=getLegendProps({children:o,legendWidth:a-(i.left||0)-(i.right||0)}),f=e;if(l){var p=n||{},h=l.align,d=l.verticalAlign,y=l.layout;("vertical"===y||"horizontal"===y&&"center"===d)&&(0,e6.Et)(e[h])&&(f=_objectSpread(_objectSpread({},e),{},_defineProperty({},h,f[h]+(p.width||0)))),("horizontal"===y||"vertical"===y&&"center"===h)&&(0,e6.Et)(e[d])&&(f=_objectSpread(_objectSpread({},e),{},_defineProperty({},d,f[d]+(p.height||0))))}return f},getDomainOfErrorBars=function(e,t,r,n){var o=t.props.children,a=(0,e7.aS)(o,"ErrorBar").filter(function(e){var t=e.props.direction;return!!(N()(t)||N()(n))||n.indexOf(t)>=0});if(a&&a.length){var i=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var n=getValueByDataKey(t,r,0),o=w()(n)?[P()(n),E()(n)]:[n,n],a=i.reduce(function(e,r){var n=getValueByDataKey(t,r,0),a=o[0]-Math.abs(w()(n)?n[0]:n),i=o[1]+Math.abs(w()(n)?n[1]:n);return[Math.min(a,e[0]),Math.max(i,e[1])]},[1/0,-1/0]);return[Math.min(a[0],e[0]),Math.max(a[1],e[1])]},[1/0,-1/0])}return null},parseErrorBarsOfAxis=function(e,t,r,n){var o=t.map(function(t){return getDomainOfErrorBars(e,t,r,n)}).filter(function(e){return!N()(e)});return o&&o.length?o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},getDomainOfItemsWithSameAxis=function(e,t,r,n){var o=t.map(function(t){var o=t.props.dataKey;return"number"===r&&o&&getDomainOfErrorBars(e,t,o)||getDomainOfDataByKey(e,o,r,n)});if("number"===r)return o.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var a={};return o.reduce(function(e,t){for(var r=0,n=t.length;r=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:G.z(),realScaleType:"point"}:"category"===o?{scale:G.A(),realScaleType:"band"}:{scale:linear_linear(),realScaleType:"linear"};if(S()(n)){var l="scale".concat(x()(n));return{scale:(h[l]||G.z)(),realScaleType:h[l]?l:"point"}}return I()(n)?{scale:n}:{scale:G.z(),realScaleType:"point"}},checkDomainOfScale=function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),o=Math.min(n[0],n[1])-1e-4,a=Math.max(n[0],n[1])+1e-4,i=e(t[0]),l=e(t[r-1]);(ia||la)&&e.domain([t[0],t[r-1]])}},te={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r=0?(e[i][r][0]=o,e[i][r][1]=o+l,o=e[i][r][1]):(e[i][r][0]=a,e[i][r][1]=a+l,a=e[i][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,o,a=0,i=e[0].length;a0){for(var r,n=0,o=e[t[0]],a=o.length;n0&&(n=(r=e[t[0]]).length)>0){for(var r,n,o,a=0,i=1;i=0?(e[a][r][0]=o,e[a][r][1]=o+i,o=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}}},getStackedData=function(e,t,r){var n=t.map(function(e){return e.props.dataKey});return(function(){var e=(0,e4.A)([]),t=order_none,r=none,n=stackValue;function stack(o){var a,i,l=Array.from(e.apply(this,arguments),stackSeries),f=l.length,p=-1;for(let e of o)for(a=0,++p;a=0?n.stackedData[o]:null}}return null},getDomainOfStackGroups=function(e,t,r){return Object.keys(e).reduce(function(n,o){var a=e[o].stackedData.reduce(function(e,n){var o=n.slice(t,r+1).reduce(function(e,t){return[P()(t.concat([e[0]]).filter(e6.Et)),E()(t.concat([e[1]]).filter(e6.Et))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(a[0],n[0]),Math.max(a[1],n[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},tt=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tr=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,parseSpecifiedDomain=function(e,t,r){if(I()(e))return e(t,r);if(!w()(e))return t;var n=[];if((0,e6.Et)(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(tt.test(e[0])){var o=+tt.exec(e[0])[1];n[0]=t[0]-o}else I()(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if((0,e6.Et)(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(tr.test(e[1])){var a=+tr.exec(e[1])[1];n[1]=t[1]+a}else I()(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},getBandSizeOfAxis=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=m()(t,function(e){return e.coordinate}),a=1/0,i=1,l=o.length;ie.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||n.m.isSsr)return{width:0,height:0};var r="".concat(e),f=Object.keys(t).reduce(function(e,r){var n;return"".concat(e).concat(r.split("").reduce(function(e,t){return t===t.toUpperCase()?[].concat(_toConsumableArray(e),["-",t.toLowerCase()]):[].concat(_toConsumableArray(e),[t])},[]).join(""),":").concat((n=t[r],i.indexOf(r)>=0&&n===+n?"".concat(n,"px"):n),";")},""),p="".concat(r,"-").concat(f);if(o.widthCache[p])return o.widthCache[p];try{var h=document.getElementById(l);h||((h=document.createElement("span")).setAttribute("id",l),h.setAttribute("aria-hidden","true"),document.body.appendChild(h));var d=_objectSpread(_objectSpread({},a),t);Object.keys(d).map(function(e){return h.style[e]=d[e],e}),h.textContent=r;var y=h.getBoundingClientRect(),g={width:y.width,height:y.height};return o.widthCache[p]=g,++o.cacheCount>2e3&&(o.cacheCount=0,o.widthCache={}),g}catch(e){return{width:0,height:0}}},getOffset=function(e){var t=e.ownerDocument.documentElement,r={top:0,left:0};return void 0!==e.getBoundingClientRect&&(r=e.getBoundingClientRect()),{top:r.top+window.pageYOffset-t.clientTop,left:r.left+window.pageXOffset-t.clientLeft}},calculateChartCoordinate=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},CAr5:function(e,t,r){"use strict";r.d(t,{CG:function(){return hasDuplicate},Dj:function(){return interpolateNumber},Et:function(){return isNumber},F4:function(){return getPercentValue},NF:function(){return uniqueId},_3:function(){return isPercent},eP:function(){return findEntryInArray},lX:function(){return getAnyElementOfObject},sA:function(){return mathSign},vh:function(){return isNumOrStr}});var n=r("mwIZ"),o=r.n(n),a=r("Z0cm"),i=r.n(a),l=r("GODc"),f=r.n(l),p=r("UB5X"),h=r.n(p),d=r("4qC0"),y=r.n(d),mathSign=function(e){return 0===e?0:e>0?1:-1},isPercent=function(e){return y()(e)&&e.indexOf("%")===e.length-1},isNumber=function(e){return h()(e)&&!f()(e)},isNumOrStr=function(e){return isNumber(e)||y()(e)},g=0,uniqueId=function(e){var t=++g;return"".concat(e||"").concat(t)},getPercentValue=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!isNumber(e)&&!y()(e))return n;if(isPercent(e)){var a=e.indexOf("%");r=t*parseFloat(e.slice(0,a))/100}else r=+e;return f()(r)&&(r=n),o&&r>t&&(r=t),r},getAnyElementOfObject=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},hasDuplicate=function(e){if(!i()(e))return!1;for(var t=e.length,r={},n=0;n2?r-2:0),o=2;oa&&(l=2*Math.PI-l),{radius:i,angle:180*l/Math.PI,angleInRadian:l}},formatAngleOfSector=function(e){var t=e.startAngle,r=e.endAngle,n=Math.min(Math.floor(t/360),Math.floor(r/360));return{startAngle:t-360*n,endAngle:r-360*n}},inRangeOfSector=function(e,t){var r,n=getAngleOfPoint({x:e.x,y:e.y},t),o=n.radius,a=n.angle,i=t.innerRadius,l=t.outerRadius;if(ol)return!1;if(0===o)return!0;var f=formatAngleOfSector(t),p=f.startAngle,h=f.endAngle,d=a;if(p<=h){for(;d>h;)d-=360;for(;d=p&&d<=h}else{for(;d>p;)d-=360;for(;d=h&&d<=p}return r?_objectSpread(_objectSpread({},t),{},{radius:o,angle:d+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null}},iiMn:function(e,t,r){"use strict";r.d(t,{AW:function(){return parseChildIndex},BU:function(){return findChildByType},Me:function(){return validateWidthHeight},Mn:function(){return getDisplayName},OV:function(){return isChildrenEqual},X_:function(){return getReactEventByType},aS:function(){return findAllByType},ee:function(){return renderByOrder}});var n=r("4qC0"),o=r.n(n),a=r("mwIZ"),i=r.n(a),l=r("J2iB"),f=r.n(l),p=r("Z0cm"),h=r.n(p),d=r("+OUp"),y=r("fEE5"),g=r("CAr5"),m=r("sWrY");function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var v={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},getDisplayName=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},b=null,_=null,toArray=function toArray(e){if(e===b&&h()(_))return _;var t=[];return d.Children.forEach(e,function(e){f()(e)||((0,y.isFragment)(e)?t=t.concat(toArray(e.props.children)):t.push(e))}),_=t,b=e,t},findAllByType=function(e,t){var r=[],n=[];return n=h()(t)?t.map(function(e){return getDisplayName(e)}):[getDisplayName(t)],toArray(e).forEach(function(e){var t=i()(e,"type.displayName")||i()(e,"type.name");-1!==n.indexOf(t)&&r.push(e)}),r},findChildByType=function(e,t){var r=findAllByType(e,t);return r&&r[0]},validateWidthHeight=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!!(0,g.Et)(r)&&!(r<=0)&&!!(0,g.Et)(n)&&!(n<=0)},x=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],isChildrenEqual=function isChildrenEqual(e,t){if(e===t)return!0;var r=d.Children.count(e);if(r!==d.Children.count(t))return!1;if(0===r)return!0;if(1===r)return isSingleChildEqual(h()(e)?e[0]:e,h()(t)?t[0]:t);for(var n=0;n=0)r.push(e);else if(e){var i=getDisplayName(e.type),l=t[i]||{},f=l.handler,p=l.once;if(f&&(!p||!n[i])){var h=f(e,i,a);r.push(h),n[i]=!0}}}),r},getReactEventByType=function(e){var t=e&&e.type;return t&&v[t]?v[t]:null},parseChildIndex=function(e,t){return toArray(t).indexOf(e)}},sWrY:function(e,t,r){"use strict";function shallowEqual(e,t){for(var r in e)if(({}).hasOwnProperty.call(e,r)&&(!({}).hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if(({}).hasOwnProperty.call(t,n)&&!({}).hasOwnProperty.call(e,n))return!1;return!0}r.d(t,{b:function(){return shallowEqual}})},clxZ:function(e,t,r){"use strict";r.d(t,{J9:function(){return filterProps},XC:function(){return adaptEventsOfChild},_U:function(){return adaptEventHandlers}});var n=r("GoyQ"),o=r.n(n),a=r("+OUp");function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=["viewBox","children"],l=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],f=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],filterProps=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,a.isValidElement)(e)&&(n=e.props),!o()(n))return null;var p={};return Object.keys(n).forEach(function(e){(l.includes(e)||r&&i.includes(e)||t&&f.includes(e))&&(p[e]=n[e])}),p},adaptEventHandlers=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,a.isValidElement)(e)&&(r=e.props),!o()(r))return null;var n={};return Object.keys(r).forEach(function(e){f.includes(e)&&(n[e]=t||function(t){return r[e](r,t)})}),n},adaptEventsOfChild=function(e,t,r){if(!o()(e)||"object"!==_typeof(e))return null;var n=null;return Object.keys(e).forEach(function(o){var a=e[o];f.includes(o)&&"function"==typeof a&&(n||(n={}),n[o]=function(e){return a(t,r,e),null})}),n}},csQJ:function(e){var t={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:.0625,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};e.exports=function(e,r,n,o){if(!t.hasOwnProperty(n))throw Error("Cannot convert to "+n);if(!t[n].hasOwnProperty(r))throw Error("Cannot convert from "+r+" to "+n);var a=t[n][r]*e;return!1!==o?Math.round(a*(o=Math.pow(10,parseInt(o)||5)))/o:a}},ycFn:function(e,t,r){"use strict";var n=r("JMD1");t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=n(r("yD6e"));e.exports=t.default},yD6e:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},VOcB:function(e){"use strict";function replaceClassName(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=replaceClassName(e.className,t):e.setAttribute("class",replaceClassName(e.className&&e.className.baseVal||"",t))}},heNW:function(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},ZirO:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r-1}},"Xt/L":function(e){e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n0&&r(p)?t>1?baseFlatten(p,t-1,r,a,i):n(i,p):a||(i[i.length]=p)}return i}},V9xz:function(e){e.exports=function(e,t){return e>t}},"R/W3":function(e,t,r){var n=r("KwMD"),o=r("2ajD"),a=r("CZoQ");e.exports=function(e,t,r){return t==t?a(e,t,r):n(e,o,r)}},"2ajD":function(e){e.exports=function(e){return e!=e}},jSBL:function(e){e.exports=function(e,t){return eo?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n=200){var v=t?null:l(e);if(v)return f(v);y=!1,h=i,m=new n}else m=t?[]:g;t:for(;++p=o?e:n(e,t,r)}},yue5:function(e,t,r){var n=r("/9aa");e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,a=e==e,i=n(e),l=void 0!==t,f=null===t,p=t==t,h=n(t);if(!f&&!h&&!i&&e>t||i&&l&&p&&!f&&!h||o&&l&&p||!r&&p||!a)return 1;if(!o&&!i&&!h&&e=f)return p;return p*("desc"==r[o]?-1:1)}}return e.index-t.index}},lQqw:function(e,t,r){var n=r("MMmD");e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var a=r.length,i=t?a:-1,l=Object(r);(t?i--:++i-1?l[f?t[p]:p]:void 0}}},HLqC:function(e,t,r){var n=r("R5Y4"),o=r("mv/X"),a=r("ZCgT");e.exports=function(e){return function(t,r,i){return i&&"number"!=typeof i&&o(t,r,i)&&(r=i=void 0),t=a(t),void 0===r?(r=t,t=0):r=a(r),i=void 0===i?t0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},CZoQ:function(e){e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n1&&i(e,t[0],t[1])?t=[]:r>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,n(t,1),[])});e.exports=l},ZCgT:function(e,t,r){var n=r("tLB3"),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},Sxd8:function(e,t,r){var n=r("ZCgT");e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},qPyV:function(e,t,r){var n=r("ut/Y"),o=r("LGYb");e.exports=function(e,t){return e&&e.length?o(e,n(t,2)):[]}},gQMU:function(e,t,r){var n=r("0ZTe")("toUpperCase");e.exports=n},"6nK8":function(e,t,r){var n=r("dVn5"),o=r("fo6e"),a=r("dt0z"),i=r("9NmV");e.exports=function(e,t,r){return(e=a(e),void 0===(t=r?void 0:t))?o(e)?i(e):n(e):e.match(t)||[]}},VCL8:function(e,t,r){"use strict";function componentWillMount(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function componentWillReceiveProps(e){this.setState((function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}).bind(this))}function componentWillUpdate(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function polyfill(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,n=null,o=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?n="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(n="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==r||null!==n||null!==o)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=componentWillMount,t.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=componentWillUpdate;var a=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;a.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:function(){return polyfill}}),componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0},CRfU:function(e,t,r){"use strict";r.d(t,{Ay:function(){return E},g6:function(){return translateStyle}});var n=r("+OUp"),o=r.n(n),a=r("17x9"),i=r.n(a);let{getOwnPropertyNames:l,getOwnPropertySymbols:f}=Object,{hasOwnProperty:p}=Object.prototype;function combineComparators(e,t){return function(r,n,o){return e(r,n,o)&&t(r,n,o)}}function createIsCircular(e){return function(t,r,n){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,n);let{cache:o}=n,a=o.get(t),i=o.get(r);if(a&&i)return a===r&&i===t;o.set(t,r),o.set(r,t);let l=e(t,r,n);return o.delete(t),o.delete(r),l}}function getStrictProperties(e){return l(e).concat(f(e))}let h=Object.hasOwn||((e,t)=>p.call(e,t));function sameValueZeroEqual(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let{getOwnPropertyDescriptor:d,keys:y}=Object;function areArrayBuffersEqual(e,t){return e.byteLength===t.byteLength&&areTypedArraysEqual(new Uint8Array(e),new Uint8Array(t))}function areArraysEqual(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function areDataViewsEqual(e,t){return e.byteLength===t.byteLength&&areTypedArraysEqual(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function areDatesEqual(e,t){return sameValueZeroEqual(e.getTime(),t.getTime())}function areErrorsEqual(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function areFunctionsEqual(e,t){return e===t}function areMapsEqual(e,t,r){let n,o;let a=e.size;if(a!==t.size)return!1;if(!a)return!0;let i=Array(a),l=e.entries(),f=0;for(;(n=l.next())&&!n.done;){let a=t.entries(),l=!1,p=0;for(;(o=a.next())&&!o.done;){if(i[p]){p++;continue}let a=n.value,h=o.value;if(r.equals(a[0],h[0],f,p,e,t,r)&&r.equals(a[1],h[1],a[0],h[0],e,t,r)){l=i[p]=!0;break}p++}if(!l)return!1;f++}return!0}function areObjectsEqual(e,t,r){let n=y(e),o=n.length;if(y(t).length!==o)return!1;for(;o-- >0;)if(!isPropertyEqual(e,t,r,n[o]))return!1;return!0}function areObjectsEqualStrict(e,t,r){let n,o,a;let i=getStrictProperties(e),l=i.length;if(getStrictProperties(t).length!==l)return!1;for(;l-- >0;)if(!isPropertyEqual(e,t,r,n=i[l])||(o=d(e,n),a=d(t,n),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable)))return!1;return!0}function arePrimitiveWrappersEqual(e,t){return sameValueZeroEqual(e.valueOf(),t.valueOf())}function areRegExpsEqual(e,t){return e.source===t.source&&e.flags===t.flags}function areSetsEqual(e,t,r){let n,o;let a=e.size;if(a!==t.size)return!1;if(!a)return!0;let i=Array(a),l=e.values();for(;(n=l.next())&&!n.done;){let a=t.values(),l=!1,f=0;for(;(o=a.next())&&!o.done;){if(!i[f]&&r.equals(n.value,o.value,n.value,o.value,e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1}return!0}function areTypedArraysEqual(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function areUrlsEqual(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function isPropertyEqual(e,t,r,n){return("_owner"===n||"__o"===n||"__v"===n)&&(!!e.$$typeof||!!t.$$typeof)||h(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}let g={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},m=Object.prototype.toString,v=createCustomEqual();function createCustomEqual(e={}){let{circular:t=!1,createInternalComparator:r,createState:n,strict:o=!1}=e,a=function({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual,areArraysEqual:r?areObjectsEqualStrict:areArraysEqual,areDataViewsEqual,areDatesEqual:areDatesEqual,areErrorsEqual:areErrorsEqual,areFunctionsEqual:areFunctionsEqual,areMapsEqual:r?combineComparators(areMapsEqual,areObjectsEqualStrict):areMapsEqual,areNumbersEqual:sameValueZeroEqual,areObjectsEqual:r?areObjectsEqualStrict:areObjectsEqual,arePrimitiveWrappersEqual:arePrimitiveWrappersEqual,areRegExpsEqual:areRegExpsEqual,areSetsEqual:r?combineComparators(areSetsEqual,areObjectsEqualStrict):areSetsEqual,areTypedArraysEqual:r?combineComparators(areTypedArraysEqual,areObjectsEqualStrict):areTypedArraysEqual,areUrlsEqual:areUrlsEqual,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){let e=createIsCircular(n.areArraysEqual),t=createIsCircular(n.areMapsEqual),r=createIsCircular(n.areObjectsEqual),o=createIsCircular(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:o})}return n}(e),i=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:o,areFunctionsEqual:a,areMapsEqual:i,areNumbersEqual:l,areObjectsEqual:f,arePrimitiveWrappersEqual:p,areRegExpsEqual:h,areSetsEqual:d,areTypedArraysEqual:y,areUrlsEqual:v,unknownTagComparators:b}){return function(_,x,O){if(_===x)return!0;if(null==_||null==x)return!1;let S=typeof _;if(S!==typeof x)return!1;if("object"!==S)return"number"===S?l(_,x,O):"function"===S&&a(_,x,O);let C=_.constructor;if(C!==x.constructor)return!1;if(C===Object)return f(_,x,O);if(Array.isArray(_))return t(_,x,O);if(C===Date)return n(_,x,O);if(C===RegExp)return h(_,x,O);if(C===Map)return i(_,x,O);if(C===Set)return d(_,x,O);let w=m.call(_);if("[object Date]"===w)return n(_,x,O);if("[object RegExp]"===w)return h(_,x,O);if("[object Map]"===w)return i(_,x,O);if("[object Set]"===w)return d(_,x,O);if("[object Object]"===w)return"function"!=typeof _.then&&"function"!=typeof x.then&&f(_,x,O);if("[object URL]"===w)return v(_,x,O);if("[object Error]"===w)return o(_,x,O);if("[object Arguments]"===w)return f(_,x,O);if(g[w])return y(_,x,O);if("[object ArrayBuffer]"===w)return e(_,x,O);if("[object DataView]"===w)return r(_,x,O);if("[object Boolean]"===w||"[object Number]"===w||"[object String]"===w)return p(_,x,O);if(b){let e=b[w];if(!e){let t=null!=_?_[Symbol.toStringTag]:void 0;t&&(e=b[t])}if(e)return e(_,x,O)}return!1}}(a),l=r?r(i):function(e,t,r,n,o,a,l){return i(e,t,l)};return function({circular:e,comparator:t,createState:r,equals:n,strict:o}){if(r)return function(a,i){let{cache:l=e?new WeakMap:void 0,meta:f}=r();return t(a,i,{cache:l,equals:n,meta:f,strict:o})};if(e)return function(e,r){return t(e,r,{cache:new WeakMap,equals:n,meta:void 0,strict:o})};let a={cache:void 0,equals:n,meta:void 0,strict:o};return function(e,r){return t(e,r,a)}}({circular:t,comparator:i,createState:n,equals:l,strict:o})}function setRafTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function shouldUpdate(n){if(r<0&&(r=n),n-r>t)e(n),r=-1;else{var o;o=shouldUpdate,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(o)}})}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);rsameValueZeroEqual}),createCustomEqual({strict:!0,createInternalComparator:()=>sameValueZeroEqual}),createCustomEqual({circular:!0,createInternalComparator:()=>sameValueZeroEqual}),createCustomEqual({circular:!0,createInternalComparator:()=>sameValueZeroEqual,strict:!0});var b=["Webkit","Moz","O","ms"],_=["-webkit-","-moz-","-o-","-ms-"],x=["transform","transformOrigin","transition"],identity=function(e){return e},generatePrefixStyle=function(e,t){if(-1===x.indexOf(e))return _defineProperty({},e,Number.isNaN(t)?0:t);var r="transition"===e,n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),o=t;return b.reduce(function(e,a,i){return r&&(o=t.replace(/(transform|transform-origin)/gim,"".concat(_[i],"$1"))),_objectSpread(_objectSpread({},e),{},_defineProperty({},a+n,o))},{})},mapObject=function(e,t){return Object.keys(t).reduce(function(r,n){return _objectSpread(_objectSpread({},r),{},_defineProperty({},n,e(n,t[n])))},{})},translateStyle=function(e){return Object.keys(e).reduce(function(e,t){return _objectSpread(_objectSpread({},e),generatePrefixStyle(t,e[t]))},e)},getTransitionVal=function(e,t,r){return e.map(function(e){return"".concat(e.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())})," ").concat(t,"ms ").concat(r)}).join(",")},warn=function(e,t,r,n,o,a,i,l){};function easing_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return easing_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return easing_arrayLikeToArray(e,t)}}function easing_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var y=cubicBezier(a,l),g=cubicBezier(i,f),m=(e=a,t=l,function(r){var n;return multyTime([].concat(function(e){if(Array.isArray(e))return easing_arrayLikeToArray(e)}(n=cubicBezierFactor(e,t).map(function(e,t){return e*t}).slice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||easing_unsupportedIterableToArray(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),bezier=function(e){for(var t=e>1?1:e,r=t,n=0;n<8;++n){var o,a=y(r)-t,i=m(r);if(1e-4>Math.abs(a-t)||i<1e-4)break;r=(o=r-a/i)>1?1:o<0?0:o}return g(r)};return bezier.isStepper=!1,bezier},configSpring=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,o=void 0===n?8:n,a=e.dt,i=void 0===a?17:a,stepper=function(e,t,n){var a=n+(-(e-t)*r-n*o)*i/1e3,l=n*i/1e3+e;return 1e-4>Math.abs(l-t)&&1e-4>Math.abs(a)?[t,0]:[l,a]};return stepper.isStepper=!0,stepper.dt=i,stepper},configEasing=function(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0?r[o-1]:n,y=p||Object.keys(f);if("function"==typeof l||"spring"===l)return[].concat(Animate_toConsumableArray(e),[t.runJSAnimation.bind(t,{from:d.style,to:f,duration:a,easing:l}),a]);var g=getTransitionVal(y,a,l),m=Animate_objectSpread(Animate_objectSpread(Animate_objectSpread({},d.style),f),{},{transition:g});return[].concat(Animate_toConsumableArray(e),[m,a,h]).filter(identity)},[i,Math.max(void 0===l?0:l,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){if(!this.manager){var t,r,n;this.manager=(t=function(){return null},r=!1,n=function setStyle(e){if(!r){if(Array.isArray(e)){if(!e.length)return;var n=function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],a=n.slice(1);if("number"==typeof o){setRafTimeout(setStyle.bind(null,a),o);return}setStyle(o),setRafTimeout(setStyle.bind(null,a));return}"object"===_typeof(e)&&t(e),"function"==typeof e&&e()}},{stop:function(){r=!0},start:function(e){r=!1,n(e)},subscribe:function(e){return t=e,function(){t=function(){return null}}}})}var o=e.begin,a=e.duration,i=e.attributeName,l=e.to,f=e.easing,p=e.onAnimationStart,h=e.onAnimationEnd,d=e.steps,y=e.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),"function"==typeof f||"function"==typeof y||"spring"===f){this.runJSAnimation(e);return}if(d.length>1){this.runStepAnimation(e);return}var m=i?Animate_defineProperty({},i,l):l,v=getTransitionVal(Object.keys(m),a,f);g.start([p,o,Animate_objectSpread(Animate_objectSpread({},m),{},{transition:v}),a,h])}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.begin,e.duration),a=(e.attributeName,e.easing,e.isActive),i=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,O)),l=n.Children.count(t),f=translateStyle(this.state.style);if("function"==typeof t)return t(f);if(!a||0===l||r<=0)return t;var cloneContainer=function(e){var t=e.props,r=t.style,o=void 0===r?{}:r,a=t.className;return(0,n.cloneElement)(e,Animate_objectSpread(Animate_objectSpread({},i),{},{style:Animate_objectSpread(Animate_objectSpread({},o),f),className:a}))};return 1===l?cloneContainer(n.Children.only(t)):o().createElement("div",null,n.Children.map(t,function(e){return cloneContainer(e)}))}}],_defineProperties(Animate.prototype,r),a&&_defineProperties(Animate,a),Object.defineProperty(Animate,"prototype",{writable:!1}),Animate}(n.PureComponent);S.displayName="Animate",S.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},S.propTypes={from:i().oneOfType([i().object,i().string]),to:i().oneOfType([i().object,i().string]),attributeName:i().string,duration:i().number,begin:i().number,easing:i().oneOfType([i().string,i().func]),steps:i().arrayOf(i().shape({duration:i().number.isRequired,style:i().object.isRequired,easing:i().oneOfType([i().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),i().func]),properties:i().arrayOf("string"),onAnimationEnd:i().func})),children:i().oneOfType([i().node,i().func]),isActive:i().bool,canBegin:i().bool,onAnimationEnd:i().func,shouldReAnimate:i().bool,onAnimationStart:i().func,onAnimationReStart:i().func};var C=r("1w3K"),w=["children","appearOptions","enterOptions","leaveOptions"];function AnimateGroupChild_typeof(e){return(AnimateGroupChild_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,r=e.duration;return t&&t.length?t.reduce(function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)},0):Number.isFinite(r)?r:0},A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AnimateGroupChild_setPrototypeOf(e,t)}(AnimateGroupChild,e);var t,r,a,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=AnimateGroupChild_getPrototypeOf(AnimateGroupChild);if(t){var n=AnimateGroupChild_getPrototypeOf(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===AnimateGroupChild_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return AnimateGroupChild_assertThisInitialized(e)}(this,e)});function AnimateGroupChild(){var e;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,AnimateGroupChild),AnimateGroupChild_defineProperty(AnimateGroupChild_assertThisInitialized(e=i.call(this)),"handleEnter",function(t,r){var n=e.props,o=n.appearOptions,a=n.enterOptions;e.handleStyleActive(r?o:a)}),AnimateGroupChild_defineProperty(AnimateGroupChild_assertThisInitialized(e),"handleExit",function(){var t=e.props.leaveOptions;e.handleStyleActive(t)}),e.state={isActive:!1},e}return r=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(AnimateGroupChild_objectSpread(AnimateGroupChild_objectSpread({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,r=e.enterOptions,n=e.leaveOptions;return parseDurationOfSingleTransition(t)+parseDurationOfSingleTransition(r)+parseDurationOfSingleTransition(n)}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,a=(t.appearOptions,t.enterOptions,t.leaveOptions,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,w));return o().createElement(C.Transition,_extends({},a,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return o().createElement(S,e.state,n.Children.only(r))})}}],AnimateGroupChild_defineProperties(AnimateGroupChild.prototype,r),a&&AnimateGroupChild_defineProperties(AnimateGroupChild,a),Object.defineProperty(AnimateGroupChild,"prototype",{writable:!1}),AnimateGroupChild}(n.Component);function AnimateGroup(e){var t=e.component,r=e.children,a=e.appear,i=e.enter,l=e.leave;return o().createElement(C.TransitionGroup,{component:t},n.Children.map(r,function(e,t){return o().createElement(A,{appearOptions:a,enterOptions:i,leaveOptions:l,key:"child-".concat(t)},e)}))}A.propTypes={appearOptions:i().object,enterOptions:i().object,leaveOptions:i().object,children:i().element},AnimateGroup.propTypes={appear:i().object,enter:i().object,leave:i().object,children:i().oneOfType([i().array,i().element]),component:i().any},AnimateGroup.defaultProps={component:"span"};var E=S},Si88:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0,function(e){if(!e||!e.__esModule){var t={};if(null!=e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}}t.default=e}}(r("17x9"));var n=_interopRequireDefault(r("ycFn")),o=_interopRequireDefault(r("VOcB")),a=_interopRequireDefault(r("+OUp")),i=_interopRequireDefault(r("S3Uj"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,["children","in"]),i=n.default.Children.toArray(t),l=i[0],f=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,n.default.createElement(a.default,o,r?n.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(f,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},ReplaceTransition}(n.default.Component);i.propTypes={},t.default=i,e.exports=t.default},S3Uj:function(e,t,r){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}}return t.default=e,t}(r("17x9")),o=_interopRequireDefault(r("+OUp")),a=_interopRequireDefault(r("xzYA")),i=r("VCL8");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}r("xfxO");var l="unmounted";t.UNMOUNTED=l;var f="exited";t.EXITED=f;var p="entering";t.ENTERING=p;var h="entered";t.ENTERED=h;var d="exiting";t.EXITING=d;var y=function(e){function Transition(t,r){n=e.call(this,t,r)||this;var n,o,a=r.transitionGroup,i=a&&!a.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=f,n.appearStatus=p):o=h:o=t.unmountOnExit||t.mountOnEnter?l:f,n.state={status:o},n.nextCallback=null,n}Transition.prototype=Object.create(e.prototype),Transition.prototype.constructor=Transition,Transition.__proto__=e;var t=Transition.prototype;return t.getChildContext=function(){return{transitionGroup:null}},Transition.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:f}:null},t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==p&&r!==h&&(t=p):(r===p||r===h)&&(t=d)}this.updateStatus(!1,t)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},t.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=a.default.findDOMNode(this);t===p?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:l})},t.performEnter=function(e,t){var r=this,n=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts(),i=o?a.appear:a.enter;if(!t&&!n){this.safeSetState({status:h},function(){r.props.onEntered(e)});return}this.props.onEnter(e,o),this.safeSetState({status:p},function(){r.props.onEntering(e,o),r.onTransitionEnd(e,i,function(){r.safeSetState({status:h},function(){r.props.onEntered(e,o)})})})},t.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();if(!r){this.safeSetState({status:f},function(){t.props.onExited(e)});return}this.props.onExit(e),this.safeSetState({status:d},function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,function(){t.safeSetState({status:f},function(){t.props.onExited(e)})})})},t.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},t.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},t.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;if(!e||n){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)},t.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var a=o.default.Children.only(r);return o.default.cloneElement(a,n)},Transition}(o.default.Component);function noop(){}y.contextTypes={transitionGroup:n.object},y.childContextTypes={transitionGroup:function(){}},y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},y.UNMOUNTED=0,y.EXITED=1,y.ENTERING=2,y.ENTERED=3,y.EXITING=4;var g=(0,i.polyfill)(y);t.default=g},UnXY:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=_interopRequireDefault(r("17x9")),o=_interopRequireDefault(r("+OUp")),a=r("VCL8"),i=r("8PcY");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,["component","childFactory"]),a=l(this.state.children).map(r);return(delete n.appear,delete n.enter,delete n.exit,null===t)?a:o.default.createElement(t,n,a)},TransitionGroup}(o.default.Component);f.childContextTypes={transitionGroup:n.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,a.polyfill)(f);t.default=p,e.exports=t.default},"1w3K":function(e,t,r){"use strict";var n=_interopRequireDefault(r("Si88")),o=_interopRequireDefault(r("PAGr")),a=_interopRequireDefault(r("UnXY")),i=_interopRequireDefault(r("S3Uj"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:a.default,ReplaceTransition:o.default,CSSTransition:n.default}},"8PcY":function(e,t,r){"use strict";t.__esModule=!0,t.getChildMapping=getChildMapping,t.mergeChildMappings=mergeChildMappings,t.getInitialChildMapping=function(e,t){return getChildMapping(e.children,function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:getProp(r,"appear",e),enter:getProp(r,"enter",e),exit:getProp(r,"exit",e)})})},t.getNextChildMapping=function(e,t,r){var o=getChildMapping(e.children),a=mergeChildMappings(t,o);return Object.keys(a).forEach(function(i){var l=a[i];if((0,n.isValidElement)(l)){var f=i in t,p=i in o,h=t[i],d=(0,n.isValidElement)(h)&&!h.props.in;p&&(!f||d)?a[i]=(0,n.cloneElement)(l,{onExited:r.bind(null,l),in:!0,exit:getProp(l,"exit",e),enter:getProp(l,"enter",e)}):p||!f||d?p&&f&&(0,n.isValidElement)(h)&&(a[i]=(0,n.cloneElement)(l,{onExited:r.bind(null,l),in:h.props.in,exit:getProp(l,"exit",e),enter:getProp(l,"enter",e)})):a[i]=(0,n.cloneElement)(l,{in:!1})}}),a};var n=r("+OUp");function getChildMapping(e,t){var r=Object.create(null);return e&&n.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=t&&(0,n.isValidElement)(e)?t(e):e}),r}function mergeChildMappings(e,t){function getValueForKey(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var r,n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var i={};for(var l in t){if(n[l])for(r=0;r1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk(function(e){if("function"===e.type&&l.test(e.value)){var r=n.default.stringify(e.nodes);if(!(r.indexOf("constant")>=0||r.indexOf("env")>=0)){var f=o.parser.parse(r),p=(0,a.default)(f,t);e.type="word",e.value=(0,i.default)(e.value,p,t)}}},!0).toString()},e.exports=t.default},LreS:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r("csQJ"))&&n.__esModule?n:{default:n};t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":var n;return(n=t).type===e.type&&(n={type:e.type,value:(0,o.default)(n.value,n.unit,e.unit,r),unit:e.unit}),{left:e,right:n};default:return{left:e,right:t}}},e.exports=t.default},eqWd:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flip=flip;var n,o=(n=r("LreS"))&&n.__esModule?n:{default:n};function isEqual(e,t){return e.type===t.type&&e.value===t.value}function isValueType(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function flip(e){return"+"===e?"-":"+"}t.default=function reduce(e,t){return"MathExpression"===e.type?function(e,t){var r,n,a,i;switch(r=e,a=reduce((n=(0,o.default)(r.left,r.right,t)).left,t),i=reduce(n.right,t),"MathExpression"===a.type&&"MathExpression"===i.type&&("/"===a.operator&&"*"===i.operator||"-"===a.operator&&"+"===i.operator||"*"===a.operator&&"/"===i.operator||"+"===a.operator&&"-"===i.operator)&&(isEqual(a.right,i.right)?n=(0,o.default)(a.left,i.left,t):isEqual(a.right,i.left)&&(n=(0,o.default)(a.left,i.right,t)),a=reduce(n.left,t),i=reduce(n.right,t)),r.left=a,r.right=i,(e=r).operator){case"+":case"-":return function(e,t){var r=e,n=r.left,o=r.right,a=r.operator;if("CssVariable"===n.type||"CssVariable"===o.type)return e;if(0===o.value)return n;if(0===n.value&&"+"===a)return o;if(0===n.value&&"-"===a)return function flipValue(e){return isValueType(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=flipValue(e.left),e.right=flipValue(e.right)),e}(o);if(n.type===o.type&&isValueType(n.type)&&(e=Object.assign({},n),"+"===a?e.value=n.value+o.value:e.value=n.value-o.value),isValueType(n.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(n.type===o.left.type)return(e=Object.assign({},e)).left=reduce({type:"MathExpression",operator:a,left:n,right:o.left},t),e.right=o.right,e.operator="-"===a?flip(o.operator):o.operator,reduce(e,t);if(n.type===o.right.type)return(e=Object.assign({},e)).left=reduce({type:"MathExpression",operator:"-"===a?flip(o.operator):o.operator,left:n,right:o.right},t),e.right=o.left,reduce(e,t)}if("MathExpression"===n.type&&("+"===n.operator||"-"===n.operator)&&isValueType(o.type)){if(o.type===n.left.type)return(e=Object.assign({},n)).left=reduce({type:"MathExpression",operator:a,left:n.left,right:o},t),reduce(e,t);if(o.type===n.right.type)return e=Object.assign({},n),"-"===n.operator?(e.right=reduce({type:"MathExpression",operator:"-"===a?"+":"-",left:o,right:n.right},t),e.operator="-"===a?"-":"+"):e.right=reduce({type:"MathExpression",operator:a,left:n.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),reduce(e,t)}return e}(e,t);case"/":return function(e,t){if(!isValueType(e.right.type))return e;if("Value"!==e.right.type)throw Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw Error("Cannot divide by zero");if("MathExpression"===e.left.type){if(isValueType(e.left.left.type)&&isValueType(e.left.right.type))return e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,reduce(e.left,t)}else if(isValueType(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(isValueType(e.left.left.type)&&isValueType(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else if(isValueType(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;else if("Value"===e.left.type&&"MathExpression"===e.right.type){if(isValueType(e.right.left.type)&&isValueType(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&isValueType(e.right.type))return e.right.value*=e.left.value,e.right;return e}(e)}return e}(e,t):"Calc"===e.type?reduce(e.value,t):e}},Kvms:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var a=function stringify(e,t){switch(e.type){case"MathExpression":var r=e.left,a=e.right,i=e.operator,l="";return"MathExpression"===r.type&&o[i]1)return e;if(g.cleanupAfterLex&&g.cleanupAfterLex(a),h&&(h.lexer=void 0,h.parser=void 0,g.yy===h&&(g.yy=void 0)),h=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,r.length=0,n.length=0,o.length=0,i=0,!a){for(var l,f,p=this.__error_infos.length-1;p>=0;p--){var d=this.__error_infos[p];d&&"function"==typeof d.destroy&&d.destroy()}this.__error_infos.length=0}return e},this.constructParseErrorInfo=function(e,t,a,f){var p={errStr:e,exception:t,text:g.match,value:g.yytext,token:this.describeSymbol(l)||l,token_id:l,line:g.yylineno,expected:a,recoverable:f,state:m,action:v,new_state:C,symbol_stack:r,state_stack:n,value_stack:o,stack_pointer:i,yy:h,lexer:g,parser:this,destroy:function(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"==typeof t&&(this[t]=void 0);this.recoverable=e}};return this.__error_infos.push(p),p};var lex=function(){var e=g.lex();return"number"!=typeof e&&(e=t.symbols_[e]||e),e||f},d={$:!0,_$:void 0,yy:h},y=!1;try{for(this.__reentrant_call_depth++,g.setInput(e,h),"function"==typeof g.canIUse&&g.canIUse().fastLex&&(lex=function(){var e=g.fastLex();return"number"!=typeof e&&(e=t.symbols_[e]||e),e||f}),o[i]=null,n[i]=0,r[i]=0,++i,this.pre_parse&&this.pre_parse.call(this,h),h.pre_parse&&h.pre_parse.call(this,h),C=n[i-1];;){if(m=C,this.defaultActions[m])v=2,C=this.defaultActions[m];else if(l||(l=lex()),C=(_=a[m]&&a[m][l]||p)[1],!(v=_[0])){var g,m,v,b,_,x,O,S,C,w,A=this.describeSymbol(l)||l,E=this.collect_expected_token_set(m);w="number"==typeof g.yylineno?"Parse error on line "+(g.yylineno+1)+": ":"Parse error: ","function"==typeof g.showPosition&&(w+="\n"+g.showPosition(69,10)+"\n"),E.length?w+="Expecting "+E.join(", ")+", got unexpected "+A:w+="Unexpected "+A,x=this.constructParseErrorInfo(w,null,E,!1),b=this.parseError(x.errStr,x,this.JisonParserError),void 0!==b&&(y=b);break}switch(v){default:if(v instanceof Array){x=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+m+", token: "+l,null,null,!1),b=this.parseError(x.errStr,x,this.JisonParserError),void 0!==b&&(y=b);break}x=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),b=this.parseError(x.errStr,x,this.JisonParserError),void 0!==b&&(y=b);break;case 1:r[i]=l,o[i]=g.yytext,n[i]=C,++i,l=0;continue;case 2:if(O=(S=this.productions_[C-1])[1],b=this.performAction.call(d,C,i-1,o),void 0!==b){y=b;break}i-=O;var j=S[0];r[i]=j,o[i]=d.$,C=a[n[i-1]][j],n[i]=C,++i;continue;case 3:-2!==i&&(y=!0,i--,void 0!==o[i]&&(y=o[i]))}break}}catch(e){if(e instanceof this.JisonParserError||g&&"function"==typeof g.JisonLexerError&&e instanceof g.JisonLexerError)throw e;x=this.constructParseErrorInfo("Parsing aborted due to exception.",e,null,!1),y=!1,void 0!==(b=this.parseError(x.errStr,x,this.JisonParserError))&&(y=b)}finally{y=this.cleanupAfterParse(y,!0,!0),this.__reentrant_call_depth--}return y}};e.originalParseError=e.parseError,e.originalQuoteName=e.quoteName;var t=function(){function JisonLexerError(e,t){if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),null==e&&(e="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:e}),this.hash=t,t&&t.exception instanceof Error){var r,n=t.exception;this.message=n.message||e,r=n.stack}r||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):r=Error(e).stack),r&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:r})}return"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(JisonLexerError.prototype,Error.prototype):JisonLexerError.prototype=Object.create(Error.prototype),JisonLexerError.prototype.constructor=JisonLexerError,JisonLexerError.prototype.name="JisonLexerError",{EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(e,t,r){if(e=""+e,void 0==r&&(r=!(e.indexOf("\n")>0&&e.indexOf("^")>0)),this.yylloc&&r){if("function"==typeof this.prettyPrintRange)this.prettyPrintRange(this.yylloc),/\n\s*$/.test(e)||(e+="\n"),e+="\n Erroneous area:\n"+this.prettyPrintRange(this.yylloc);else if("function"==typeof this.showPosition){var n=this.showPosition();n&&(e.length&&"\n"!==e[e.length-1]&&"\n"!==n[0]?e+="\n"+n:e+=n)}}var o={errStr:e,recoverable:!!t,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var e=!!this.recoverable;for(var t in this)this.hasOwnProperty(t)&&"object"==typeof t&&(this[t]=void 0);this.recoverable=e}};return this.__error_infos.push(o),o},parseError:function(e,t,r){if(r||(r=this.JisonLexerError),this.yy){if(this.yy.parser&&"function"==typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,e,t,r)||this.ERROR;if("function"==typeof this.yy.parseError)return this.yy.parseError.call(this,e,t,r)||this.ERROR}throw new r(e,t)},yyerror:function(e){var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var r=this.constructLexErrorInfo("Lexical error"+t+": "+e,this.options.lexerErrorsAreRecoverable),n=Array.prototype.slice.call(arguments,1);return n.length&&(r.extra_error_attributes=n),this.parseError(r.errStr,r,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(e){if(this.setInput("",{}),!e){for(var t=this.__error_infos.length-1;t>=0;t--){var r=this.__error_infos[t];r&&"function"==typeof r.destroy&&r.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var e=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:e,last_line:this.yylineno+1,last_column:e,range:[this.offset,this.offset]}},setInput:function(e,t){if(this.yy=t||this.yy||{},!this.__decompressed){for(var r=this.rules,n=0,o=r.length;n1){this.yylineno-=r.length-1,this.yylloc.last_line=this.yylineno+1;var n=this.match,o=n.split(/(?:\r\n?|\n)/g);1===o.length&&(o=(n=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=o[o.length-1].length}else this.yylloc.last_column-=t;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var t=this.constructLexErrorInfo("Lexical error"+e+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(t.errStr,t,this.JisonLexerError)||this.ERROR}return this},less:function(e){return this.unput(this.match.slice(e))},pastInput:function(e,t){var r=this.matched.substring(0,this.matched.length-this.match.length);e<0?e=r.length:e||(e=20),t<0?t=r.length:t||(t=1);var n=(r=r.substr(-(2*e)-2)).replace(/\r\n|\r/g,"\n").split("\n");return(r=(n=n.slice(-t)).join("\n")).length>e&&(r="..."+r.substr(-e)),r},upcomingInput:function(e,t){var r=this.match;e<0?e=r.length+this._input.length:e||(e=20),t<0?t=e:t||(t=1),r.length<2*e+2&&(r+=this._input.substring(0,2*e+2));var n=r.replace(/\r\n|\r/g,"\n").split("\n");return(r=(n=n.slice(0,t)).join("\n")).length>e&&(r=r.substring(0,e)+"..."),r},showPosition:function(e,t){var r=this.pastInput(e).replace(/\s/g," "),n=Array(r.length+1).join("-");return r+this.upcomingInput(t).replace(/\s/g," ")+"\n"+n+"^"},deriveLocationInfo:function(e,t,r,n){var o={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return e&&(o.first_line=0|e.first_line,o.last_line=0|e.last_line,o.first_column=0|e.first_column,o.last_column=0|e.last_column,e.range&&(o.range[0]=0|e.range[0],o.range[1]=0|e.range[1])),(o.first_line<=0||o.last_line=o.first_line)&&(o.last_line=0|n.last_line,o.last_column=0|n.last_column,n.range&&(o.range[1]=0|n.range[1]))),o.last_line<=0&&(o.first_line<=0?(o.first_line=this.yylloc.first_line,o.last_line=this.yylloc.last_line,o.first_column=this.yylloc.first_column,o.last_column=this.yylloc.last_column,o.range[0]=this.yylloc.range[0]):(o.last_line=this.yylloc.last_line,o.last_column=this.yylloc.last_column),o.range[1]=this.yylloc.range[1]),o.first_line<=0&&(o.first_line=o.last_line,o.first_column=0,o.range[1]=o.range[0]),o.first_column<0&&(o.first_column=0),o.last_column<0&&(o.last_column=o.first_column>0?o.first_column:80),o},prettyPrintRange:function(e,t,r){e=this.deriveLocationInfo(e,t,r);var n=(this.matched+this._input).split("\n"),o=Math.max(1,t?t.first_line:e.first_line-3),a=Math.max(1,r?r.last_line:e.last_line+1),i=1+Math.log10(1|a)|0,l=Array(i).join(" "),f=[],p=n.slice(o-1,a+1).map(function(t,r){var n=r+o,a=(l+n).substr(-i)+": "+t,p=Array(i+1).join("^"),h=3,d=0;return n===e.first_line?(h+=e.first_column,d=Math.max(2,(n===e.last_line?e.last_column:t.length)-e.first_column+1)):n===e.last_line?d=Math.max(2,e.last_column+1):n>e.first_line&&n0&&f.push(r)),a=a.replace(/\t/g," ")});if(f.length>4){var h=f[1]+1,d=f[f.length-2]-1,y=Array(i+1).join(" ")+" (...continued...)";y+="\n"+Array(i+1).join("-")+" (---------------)",p.splice(h,d-h+1,y)}return p.join("\n")},describeYYLLOC:function(e,t){var r,n=e.first_line,o=e.last_line,a=e.first_column,i=e.last_column;if(0==o-n?(r="line "+n+", ",i-a<=1?r+="column "+a:r+="columns "+a+" .. "+i):r="lines "+n+"(column "+a+") .. "+o+"(column "+i+")",e.range&&t){var l=e.range[0],f=e.range[1]-1;f<=l?r+=" {String Offset: "+l+"}":r+=" {String Offset range: "+l+" .. "+f+"}"}return r},test_match:function(e,t){var r,n,o,a,i;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),i=(a=e[0]).length,(n=a.split(/(?:\r\n?|\n)/g)).length>1?(this.yylineno+=n.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=n[n.length-1].length):this.yylloc.last_column+=i,this.yytext+=a,this.match+=a,this.matched+=a,this.matches=e,this.yyleng=this.yytext.length,this.yylloc.range[1]+=i,this.offset+=i,this._more=!1,this._backtrack=!1,this._input=this._input.slice(i),r=this.performAction.call(this,this.yy,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var l in o)this[l]=o[l];this.__currentRuleSet__=null}else if(this._signaled_error_token)return r=this._signaled_error_token,this._signaled_error_token=!1,r;return!1},next:function(){if(this.done)return this.clear(),this.EOF;this._input||(this.done=!0),this._more||this.clear();var e,t,r,n,o=this.__currentRuleSet__;if(!o&&(!(o=this.__currentRuleSet__=this._currentRules())||!o.rules)){var a="";this.options.trackPosition&&(a=" on line "+(this.yylineno+1));var i=this.constructLexErrorInfo("Internal lexer engine error"+a+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(i.errStr,i,this.JisonLexerError)||this.ERROR}for(var l=o.rules,f=o.__rule_regexes,p=o.__rule_count,h=1;h<=p;h++)if((r=this._input.match(f[h]))&&(!t||r[0].length>t[0].length)){if(t=r,n=h,this.options.backtrack_lexer){if(!1!==(e=this.test_match(r,l[h])))return e;if(!this._backtrack)return!1;t=void 0;continue}if(!this.options.flex)break}if(t)return!1!==(e=this.test_match(t,l[n]))&&e;if(!this._input)return this.done=!0,this.clear(),this.EOF;var a="";this.options.trackPosition&&(a=" on line "+(this.yylineno+1));var i=this.constructLexErrorInfo("Lexical error"+a+": Unrecognized text.",this.options.lexerErrorsAreRecoverable),d=this._input,y=this.topState(),g=this.conditionStack.length;return(e=this.parseError(i.errStr,i,this.JisonLexerError)||this.ERROR)!==this.ERROR||this.matches||d!==this._input||y!==this.topState()||g!==this.conditionStack.length||this.input(),e},lex:function(){var e;for("function"==typeof this.pre_lex&&(e=this.pre_lex.call(this,0)),"function"==typeof this.options.pre_lex&&(e=this.options.pre_lex.call(this,e)||e),this.yy&&"function"==typeof this.yy.pre_lex&&(e=this.yy.pre_lex.call(this,e)||e);!e;)e=this.next();return this.yy&&"function"==typeof this.yy.post_lex&&(e=this.yy.post_lex.call(this,e)||e),"function"==typeof this.options.post_lex&&(e=this.options.post_lex.call(this,e)||e),"function"==typeof this.post_lex&&(e=this.post_lex.call(this,e)||e),e},fastLex:function(){for(var e;!e;)e=this.next();return e},canIUse:function(){return{fastLex:!("function"==typeof this.pre_lex||"function"==typeof this.options.pre_lex||this.yy&&"function"==typeof this.yy.pre_lex||this.yy&&"function"==typeof this.yy.post_lex||"function"==typeof this.options.post_lex||"function"==typeof this.post_lex)&&"function"==typeof this.fastLex}},begin:function(e){return this.pushState(e)},pushState:function(e){return this.conditionStack.push(e),this.__currentRuleSet__=null,this},popState:function(){return this.conditionStack.length-1>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:JisonLexerError,performAction:function(e,t,r){if(1!==t)return this.simpleCaseActionClusters[t]},simpleCaseActionClusters:{/*! Conditions:: INITIAL *//*! Rule:: (--[0-9a-z-A-Z-]*) */0:13,/*! Conditions:: INITIAL *//*! Rule:: \* */2:5,/*! Conditions:: INITIAL *//*! Rule:: \/ */3:6,/*! Conditions:: INITIAL *//*! Rule:: \+ */4:3,/*! Conditions:: INITIAL *//*! Rule:: - */5:4,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)px\b */6:15,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)cm\b */7:15,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)mm\b */8:15,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)in\b */9:15,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)pt\b */10:15,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)pc\b */11:15,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)deg\b */12:16,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)grad\b */13:16,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)rad\b */14:16,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)turn\b */15:16,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)s\b */16:17,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)ms\b */17:17,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)Hz\b */18:18,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)kHz\b */19:18,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)dpi\b */20:19,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)dpcm\b */21:19,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)dppx\b */22:19,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)em\b */23:20,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)ex\b */24:21,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)ch\b */25:22,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)rem\b */26:23,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vw\b */27:25,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vh\b */28:24,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vmin\b */29:26,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)vmax\b */30:27,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)% */31:28,/*! Conditions:: INITIAL *//*! Rule:: ([0-9]+(\.[0-9]*)?|\.[0-9]+)\b */32:11,/*! Conditions:: INITIAL *//*! Rule:: (calc) */33:9,/*! Conditions:: INITIAL *//*! Rule:: (var) */34:12,/*! Conditions:: INITIAL *//*! Rule:: ([a-z]+) */35:10,/*! Conditions:: INITIAL *//*! Rule:: \( */36:7,/*! Conditions:: INITIAL *//*! Rule:: \) */37:8,/*! Conditions:: INITIAL *//*! Rule:: , */38:14,/*! Conditions:: INITIAL *//*! Rule:: $ */39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}}}();function Parser(){this.yy={}}return e.lexer=t,Parser.prototype=e,e.Parser=Parser,new Parser}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)}},keDS:function(e,t,r){var n=r("Dvy7"),o=r("ffzj"),a=r("EGBh");function ValueParser(e){return this instanceof ValueParser?(this.nodes=n(e),this):new ValueParser(e)}ValueParser.prototype.toString=function(){return Array.isArray(this.nodes)?a(this.nodes):""},ValueParser.prototype.walk=function(e,t){return o(this.nodes,e,t),this},ValueParser.unit=r("W4dq"),ValueParser.walk=o,ValueParser.stringify=a,e.exports=ValueParser},Dvy7:function(e){e.exports=function(e){for(var t,r,n,o,a,i,l,f,p=[],h=e,d=0,y=h.charCodeAt(d),g=h.length,m=[{nodes:p}],v=0,b="",_="",x="";d=48&&t<=57)i=!0;else if(101===t||69===t){if(a>-1)break;a=r}else if(46===t){if(o)break;o=!0}else if(43===t||45===t){if(0!==r)break}else break;r+=1}return a+1===r&&r--,!!i&&{number:e.slice(0,r),unit:e.slice(r)}}},ffzj:function(e){e.exports=function walk(e,t,r){var n,o,a,i;for(n=0,o=e.length;n