File "elementor.js"

Full Path: /home/diablzlo/glucosebalnce.com/wp-content/plugins/seo-by-rank-math-pro/assets/admin/js/elementor.js
File size: 410.39 KB
MIME-type: text/plain
Charset: utf-8

(()=>{var t={2:(t,e,r)=>{var n=r(2199),o=r(4664),i=r(5950);t.exports=function(t){return n(t,i,o)}},14:(t,e,r)=>{var n=r(5389),o=r(5765);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},79:(t,e,r)=>{var n=r(3702),o=r(80),i=r(4739),a=r(8655),u=r(1175);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},80:(t,e,r)=>{var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},104:(t,e,r)=>{var n=r(3661);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},124:(t,e,r)=>{var n=r(9325);t.exports=function(){return n.Date.now()}},228:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},u.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,o,i,a){var u=r?r+t:t;if(!this._events[u])return!1;var c,l,s=this._events[u],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];s.fn.apply(s.context,c)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];s[l].fn.apply(s[l].context,c)}}return!0},u.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==e||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var c=0,l=[],s=u.length;c<s;c++)(u[c].fn!==e||o&&!u[c].once||n&&u[c].context!==n)&&l.push(u[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u},270:(t,e,r)=>{var n=r(7068),o=r(346);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},317:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},583:(t,e,r)=>{var n=r(7237),o=r(7255),i=r(8586),a=r(7797);t.exports=function(t){return i(t)?n(a(t)):o(t)}},631:(t,e,r)=>{var n=r(8077),o=r(9326);t.exports=function(t,e){return null!=t&&o(t,e,n)}},641:(t,e,r)=>{var n=r(6649),o=r(5950);t.exports=function(t,e){return t&&n(t,e,o)}},659:(t,e,r)=>{var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},689:(t,e,r)=>{var n=r(2),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f<s;){var m=t[p=l[f]],b=e[p];if(i)var g=c?i(b,m,p,e,t,u):i(m,b,p,t,e,u);if(!(void 0===g?m===b||a(m,b,r,i,u):g)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var w=t.constructor,x=e.constructor;w==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(y=!1)}return u.delete(t),u.delete(e),y}},695:(t,e,r)=>{var n=r(8096),o=r(2428),i=r(6449),a=r(3656),u=r(361),c=r(7167),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&c(t),h=r||s||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)!e&&!l.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,y))||d.push(v);return d}},756:(t,e,r)=>{var n=r(3805);t.exports=function(t){return t==t&&!n(t)}},776:(t,e,r)=>{var n=r(756),o=r(5950);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},909:(t,e,r)=>{var n=r(641),o=r(8329)(n);t.exports=o},916:(t,e,r)=>{var n=r(909);t.exports=function(t,e){var r;return n(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}},938:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},945:(t,e,r)=>{var n=r(79),o=r(8223),i=r(3661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},1033:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},1074:t=>{t.exports=function(t){return t.split("")}},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},1331:(t,e,r)=>{var n=r(2552),o=r(8879),i=r(346),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==s}},1380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1420:(t,e,r)=>{var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},1459:t=>{t.exports=function(t){return this.__data__.has(t)}},1489:(t,e,r)=>{var n=r(7400);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},1549:(t,e,r)=>{var n=r(2032),o=r(3862),i=r(6721),a=r(2749),u=r(5749);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},1684:(t,e,r)=>{var n=r(3599),o=r(6176),i=r(3488);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},1741:(t,e,r)=>{var n=r(8023);t.exports=function(t){return n(t)&&t!=+t}},1769:(t,e,r)=>{var n=r(6449),o=r(8586),i=r(1802),a=r(3222);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},1799:(t,e,r)=>{var n=r(7217),o=r(270);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new n;if(i)var d=i(f,p,s,t,e,h);if(!(void 0===d?o(p,f,3,i,h):d))return!1}}return!0}},1800:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},1802:(t,e,r)=>{var n=r(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},1811:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},1873:(t,e,r)=>{var n=r(9325).Symbol;t.exports=n},1882:(t,e,r)=>{var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1986:(t,e,r)=>{var n=r(1873),o=r(7828),i=r(5288),a=r(5911),u=r(317),c=r(4247),l=n?n.prototype:void 0,s=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=u;case"[object Set]":var d=1&n;if(h||(h=c),t.size!=e.size&&!d)return!1;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,l,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},2006:(t,e,r)=>{var n=r(5389),o=r(4894),i=r(5950);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},2032:(t,e,r)=>{var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},2054:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+n+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?",s=l+c+("(?:\\u200d(?:"+[i,a,u].join("|")+")"+l+c+")*"),f="(?:"+[i+n+"?",n,a,u,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+s,"g");t.exports=function(t){return t.match(p)||[]}},2199:(t,e,r)=>{var n=r(4528),o=r(6449);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},2224:(t,e,r)=>{var n=r(104);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},2404:(t,e,r)=>{var n=r(270);t.exports=function(t,e){return n(t,e)}},2426:(t,e,r)=>{var n=r(4248),o=r(5389),i=r(916),a=r(6449),u=r(6800);t.exports=function(t,e,r){var c=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),c(t,o(e,3))}},2428:(t,e,r)=>{var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},2507:(t,e,r)=>{var n=r(8754),o=r(9698),i=r(3912),a=r(3222);t.exports=function(t){return function(e){e=a(e);var r=o(e)?i(e):void 0,u=r?r[0]:e.charAt(0),c=r?n(r,1).join(""):e.slice(1);return u[t]()+c}}},2523:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},2552:(t,e,r)=>{var n=r(1873),o=r(659),i=r(9350),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},2651:(t,e,r)=>{var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},2694:(t,e,r)=>{"use strict";var n=r(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},2749:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},2804:(t,e,r)=>{var n=r(6110)(r(9325),"Promise");t.exports=n},2865:(t,e,r)=>{var n=r(9570),o=r(1811)(n);t.exports=o},2949:(t,e,r)=>{var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},3031:(t,e,r)=>{var n=r(3120),o=r(6155),i=r(9302),a=r(6800),u=i((function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=u},3040:(t,e,r)=>{var n=r(1549),o=r(79),i=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},3120:(t,e,r)=>{var n=r(4528),o=r(5891);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},3181:(t,e,r)=>{var n=r(5508)();t.exports=n},3221:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},3222:(t,e,r)=>{var n=r(7556);t.exports=function(t){return null==t?"":n(t)}},3243:(t,e,r)=>{var n=r(6110),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},3335:t=>{t.exports=function(t,e){return t>e}},3345:t=>{t.exports=function(){return[]}},3360:(t,e,r)=>{var n=r(3243);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},3488:t=>{t.exports=function(t){return t}},3599:(t,e,r)=>{var n=r(4394);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],u=e(a);if(null!=u&&(void 0===c?u==u&&!n(u):r(u,c)))var c=u,l=a}return l}},3605:t=>{t.exports=function(t){return this.__data__.get(t)}},3650:(t,e,r)=>{var n=r(4335)(Object.keys,Object);t.exports=n},3656:(t,e,r)=>{t=r.nmd(t);var n=r(9325),o=r(9935),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c},3661:(t,e,r)=>{var n=r(3040),o=r(7670),i=r(289),a=r(4509),u=r(2949);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},3663:(t,e,r)=>{var n=r(1799),o=r(776),i=r(7197);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},3714:(t,e,r)=>{var n=r(3730);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=r.length;++o<u;){var l=n(i[o],a[o]);if(l)return o>=c?l:l*("desc"==r[o]?-1:1)}return t.index-e.index}},3730:(t,e,r)=>{var n=r(4394);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==e,c=null===e,l=e==e,s=n(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&r&&i&&!o&&!a||c&&r&&i||!u&&i||!l)return-1}return 0}},3777:(t,e,r)=>{var n=r(909);t.exports=function(t,e){var r=!0;return n(t,(function(t,n,o){return r=!!e(t,n,o)})),r}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3812:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},3862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},3912:(t,e,r)=>{var n=r(1074),o=r(9698),i=r(2054);t.exports=function(t){return o(t)?i(t):n(t)}},3916:(t,e,r)=>{var n=r(3360),o=r(641),i=r(5389);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},3937:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},3950:t=>{t.exports=function(){}},4128:(t,e,r)=>{var n=r(1800),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},4218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},4247:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},4248:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4335:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},4394:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},4506:(t,e,r)=>{var n=r(3599),o=r(3335),i=r(3488);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},4509:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},4517:(t,e,r)=>{var n=r(6545),o=r(3950),i=r(4247),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},4528:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},4580:(t,e,r)=>{"use strict";t.exports=r(8867)},4664:(t,e,r)=>{var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},4713:(t,e,r)=>{var n=r(2523),o=r(5389),i=r(1489),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},4739:(t,e,r)=>{var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},4894:(t,e,r)=>{var n=r(1882),o=r(294);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4901:(t,e,r)=>{var n=r(2552),o=r(294),i=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},4932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},5015:(t,e,r)=>{var n=r(2552),o=r(6449),i=r(346);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},5083:(t,e,r)=>{var n=r(1882),o=r(7296),i=r(3805),a=r(7473),u=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,s=c.toString,f=l.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:u).test(a(t))}},5128:(t,e,r)=>{var n=r(909),o=r(4894);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},5160:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},5288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5325:(t,e,r)=>{var n=r(6131);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},5378:(t,e,r)=>{var n=r(4932),o=r(5389),i=r(5128),a=r(6449);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},5389:(t,e,r)=>{var n=r(3663),o=r(7978),i=r(3488),a=r(6449),u=r(583);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},5463:t=>{t.exports=function(t){return t!=t}},5481:(t,e,r)=>{var n=r(9325)["__core-js_shared__"];t.exports=n},5508:(t,e,r)=>{var n=r(6151),o=r(6800),i=r(7400);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},5527:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},5556:(t,e,r)=>{t.exports=r(2694)()},5580:(t,e,r)=>{var n=r(6110)(r(9325),"DataView");t.exports=n},5749:(t,e,r)=>{var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5765:(t,e,r)=>{var n=r(8859),o=r(5325),i=r(9905),a=r(9219),u=r(4517),c=r(4247);t.exports=function(t,e,r){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=i;else if(f>=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,d=new n}else d=e?[]:h;t:for(;++l<f;){var v=t[l],m=e?e(v):v;if(v=r||0!==v?v:0,p&&m==m){for(var b=d.length;b--;)if(d[b]===m)continue t;e&&d.push(m),h.push(v)}else s(d,m,r)||(d!==h&&d.push(m),h.push(v))}return h}},5808:(t,e,r)=>{var n=r(2507)("toUpperCase");t.exports=n},5861:(t,e,r)=>{var n=r(5580),o=r(8223),i=r(2804),a=r(6545),u=r(8303),c=r(2552),l=r(7473),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),b=l(a),g=l(u),w=c;(n&&w(new n(new ArrayBuffer(1)))!=d||o&&w(new o)!=s||i&&w(i.resolve())!=f||a&&w(new a)!=p||u&&w(new u)!=h)&&(w=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return s;case m:return f;case b:return p;case g:return h}return e}),t.exports=w},5891:(t,e,r)=>{var n=r(1873),o=r(2428),i=r(6449),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},5911:(t,e,r)=>{var n=r(8859),o=r(4248),i=r(9219);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++d<s;){var m=t[d],b=e[d];if(a)var g=l?a(b,m,d,e,t,c):a(m,b,d,t,e,c);if(void 0!==g){if(g)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(m===t||u(m,t,r,a,c)))return v.push(e)}))){y=!1;break}}else if(m!==b&&!u(m,b,r,a,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},5950:(t,e,r)=>{var n=r(695),o=r(8984),i=r(4894);t.exports=function(t){return i(t)?n(t):o(t)}},6009:(t,e,r)=>{t=r.nmd(t);var n=r(4840),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},6025:(t,e,r)=>{var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},6110:(t,e,r)=>{var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},6131:(t,e,r)=>{var n=r(2523),o=r(5463),i=r(6959);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},6151:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,u=r(e((n-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},6155:(t,e,r)=>{var n=r(4932),o=r(7422),i=r(5389),a=r(5128),u=r(3937),c=r(7301),l=r(3714),s=r(3488),f=r(6449);t.exports=function(t,e,r){e=e.length?n(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=n(e,c(i));var h=a(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++p,value:t}}));return u(h,(function(t,e){return l(t,e,r)}))}},6176:t=>{t.exports=function(t,e){return t<e}},6449:t=>{var e=Array.isArray;t.exports=e},6545:(t,e,r)=>{var n=r(6110)(r(9325),"Set");t.exports=n},6649:(t,e,r)=>{var n=r(3221)();t.exports=n},6721:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},6757:(t,e,r)=>{var n=r(1033),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),n(t,this,l)}}},6800:(t,e,r)=>{var n=r(5288),o=r(4894),i=r(361),a=r(3805);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return!!("number"==u?o(r)&&i(e,r.length):"string"==u&&e in r)&&n(r[e],t)}},6925:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6959:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},7068:(t,e,r)=>{var n=r(7217),o=r(5911),i=r(1986),a=r(689),u=r(5861),c=r(6449),l=r(3656),s=r(7167),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,m){var b=c(t),g=c(e),w=b?p:u(t),x=g?p:u(e),O=(w=w==f?h:w)==h,j=(x=x==f?h:x)==h,S=w==x;if(S&&l(t)){if(!l(e))return!1;b=!0,O=!1}if(S&&!O)return m||(m=new n),b||s(t)?o(t,e,r,y,v,m):i(t,e,w,r,y,v,m);if(!(1&r)){var P=O&&d.call(t,"__wrapped__"),k=j&&d.call(e,"__wrapped__");if(P||k){var E=P?t.value():t,A=k?e.value():e;return m||(m=new n),v(E,A,r,y,m)}}return!!S&&(m||(m=new n),a(t,e,r,y,v,m))}},7150:function(t){var e,r;e=function(){var t,e=0,r={},n={},o=(t=window.MutationObserver||window.WebKitMutationObserver,function(e,r){e&&1===e.nodeType&&(t?new t((function(t,e){r(t)})).observe(e,{childList:!0,subtree:!1}):window.addEventListener&&e.addEventListener("DOMNodeInserted",r,!1))});function i(t,e){if(!t)return this;e=e||{},this.parentElm=t,this.uid=e.uid,this.settings={selector:"*",callbacks:{}},Object.assign(this.settings,e),this.setup(),o(this.parentElm,this.setup.bind(this)),this.bindEvents()}return i.prototype={namespace:"dragsort",setup(){[...this.parentElm.childNodes].forEach((t=>{if(1!=t.nodeType)return t.parentNode.removeChild(t);t.matches(this.settings.selector)&&(t.draggable=!0)})),this.gap=this.getItemsGap(this.parentElm.firstElementChild)},throttle(t,e){var r=!1,n=this;return function(o){r||(t.call(n,o),r=!0,setTimeout((()=>r=!1),e))}},getDraggableElm(t){if(!t.closest)return null;var e=t.closest('[draggable="true"]');return this.uid==r.uid?e:null},dragstart(t,e){r=this;var n,o=this.getDraggableElm(e);o?(this.saveInitialStyles(),this.source=this.getInitialState(),this.target=this.getInitialState(),n=o.getBoundingClientRect(),this.source.elm=o,this.source.idx=this.getNodeIndex(o),this.source.size.width=n.width,this.source.size.height=n.height,t.dataTransfer.effectAllowed="move",this.settings.callbacks.dragStart&&this.settings.callbacks.dragStart(this.source.elm,t),setTimeout(this.afterDragStart.bind(this))):r={}},afterDragStart(){var t="vertical"==this.settings.mode?"height":"width";this.parentElm.classList.add(`${this.namespace}--dragStart`),this.source.elm.style[t]=this.source.size[t]+"px",this.source.elm.classList.add(`${this.namespace}--dragElem`)},dragover(t){t.preventDefault(),t.stopPropagation();var e=t.target;if((e=this.getDraggableElm(e))&&this.target){var r=this.target.elm,n=this.target.hoverDirection;t.dataTransfer.dropEffect="move",this.target.hoverDirection=this.getTargetDirection(t),r==e&&n==this.target.hoverDirection||this.directionAwareDragEnter(t,e)}},dragenter(t,e){(e=this.getDraggableElm(e))&&this.target&&this.isValidElm(e)&&this.source.elm!=e&&this.source.elm&&(this.target.bounding=e.getBoundingClientRect())},directionAwareDragEnter(t,e){var r;t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="none",this.isValidElm(e)&&this.source.elm!=e&&this.source.elm&&(t.dataTransfer.dropEffect="move",this.cleanupLastTarget(),this.target.elm=e,this.target.idx=this.getNodeIndex(e),e.classList.add("over"),r=Math.abs(this.target.idx-this.source.idx),this.source.elm.classList.toggle(`${this.namespace}--hide`,r>0),"vertical"==this.settings.mode?this.target.elm.style[this.target.hoverDirection?"marginBottom":"marginTop"]=this.source.size.height+this.gap+"px":this.target.elm.style[this.target.hoverDirection?"marginRight":"marginLeft"]=this.source.size.width+this.gap+"px")},dragend(t){if(clearTimeout(this.dragoverTimeout),this.dragoverTimeout=null,this.parentElm.classList.remove(`${this.namespace}--dragStart`),!this.isValidElm(this.target.elm))return this.cleanup();var e=this.target.hoverDirection?this.target.elm.nextElementSibling:this.target.elm;return this.source.elm!=this.target.elm&&this.target.elm&&(this.target.elm.classList.add(`${this.namespace}--noAnim`),this.cleanup(),this.parentElm.insertBefore(this.source.elm,e)),this.source.elm&&this.source.elm.classList.remove(`${this.namespace}--dragElem`,`${this.namespace}--hide`),this.settings.callbacks.dragEnd&&this.settings.callbacks.dragEnd(this.source.elm),this},isTargetLastChild(){return this.parentElm.lastElementChild==this.target.elm},getTargetDirection(t){if(this.target.bounding)return"vertical"==this.settings.mode?t.pageY>this.target.bounding.top+this.target.bounding.height/2?1:0:t.pageX>this.target.bounding.left+this.target.bounding.width/2?1:0},getNodeIndex(t){for(var e=0;t=t.previousSibling;)3==t.nodeType&&/^\s*$/.test(t.data)||e++;return e},isValidElm(t){return t&&t.nodeType&&t.parentNode==this.parentElm},saveInitialStyles(){[...this.parentElm.children].forEach((t=>{t.setAttribute("dragsort-initial-style",t.getAttribute("style"))}))},cleanup(){r={},[...this.parentElm.children].forEach((t=>{t.style=t.getAttribute("dragsort-initial-style"),t.removeAttribute("dragsort-initial-style"),setTimeout((()=>{t.classList.remove(`${this.namespace}--over`,`${this.namespace}--noAnim`,`${this.namespace}--dragElem`)}),50)}))},cleanupLastTarget(){const{elm:t}=this.target;t&&(t.classList.remove(`${this.namespace}--hide`,`${this.namespace}--over`),t.style=t.getAttribute("dragsort-initial-style"))},getInitialState:()=>({elm:null,size:{}}),getItemsGap(t){var e=getComputedStyle(t),r=getComputedStyle(t.parentNode),n="vertical"==this.settings.mode,o=parseInt(r.gap)||0;return parseInt(e["margin"+(n?"Top":"Left")])+parseInt(e["margin"+(n?"Bottom":"Right")])+o},bindEvents(t){for(var e in this.listeners=this.listeners||{dragstart:t=>this.dragstart(t,t.target),dragenter:t=>this.dragenter(t,t.target),dragend:t=>this.dragend(t,t.target),dragover:this.throttle(this.dragover,350)},this.listeners)this.parentElm[t?"removeEventListener":"addEventListener"](e,this.listeners[e])},destroy(){this.cleanup(),this.bindEvents(!0),delete n[this.uid]}},function(t,r){return n[++e]=t.DragSort?n[t.DragSort]:new i(t,{...r,uid:e}),t.DragSort=e,n[e]}},"function"==typeof(r=r||{})&&r.amd?r([],e):t.exports=e()},7167:(t,e,r)=>{var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},7197:t=>{t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},7217:(t,e,r)=>{var n=r(79),o=r(1420),i=r(938),a=r(3605),u=r(9817),c=r(945);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=u,l.prototype.set=c,t.exports=l},7237:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},7255:(t,e,r)=>{var n=r(7422);t.exports=function(t){return function(e){return n(e,t)}}},7277:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},7296:(t,e,r)=>{var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},7301:t=>{t.exports=function(t){return function(e){return t(e)}}},7307:(t,e,r)=>{var n=r(3120),o=r(5378);t.exports=function(t,e){return n(o(t,e),1)}},7309:(t,e,r)=>{var n=r(2006)(r(4713));t.exports=n},7334:t=>{t.exports=function(t){return function(){return t}}},7350:(t,e,r)=>{var n=r(8221),o=r(3805);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},7400:(t,e,r)=>{var n=r(9374),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},7422:(t,e,r)=>{var n=r(1769),o=r(7797);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},7473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7534:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},7556:(t,e,r)=>{var n=r(1873),o=r(4932),i=r(6449),a=r(4394),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},7670:(t,e,r)=>{var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},7797:(t,e,r)=>{var n=r(4394);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},7828:(t,e,r)=>{var n=r(9325).Uint8Array;t.exports=n},7978:(t,e,r)=>{var n=r(270),o=r(8156),i=r(631),a=r(8586),u=r(756),c=r(7197),l=r(7797);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},8023:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},8077:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},8090:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},8096:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},8156:(t,e,r)=>{var n=r(7422);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},8221:(t,e,r)=>{var n=r(3805),o=r(124),i=r(9374),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var r=c,n=l;return c=l=void 0,d=e,f=t.apply(n,r)}function g(t){var r=t-h;return void 0===h||r>=e||r<0||v&&t-d>=s}function w(){var t=o();if(g(t))return x(t);p=setTimeout(w,function(t){var r=e-(t-h);return v?u(r,s-(t-d)):r}(t))}function x(t){return p=void 0,m&&c?b(t):(c=l=void 0,f)}function O(){var t=o(),r=g(t);if(c=arguments,l=this,h=t,r){if(void 0===p)return function(t){return d=t,p=setTimeout(w,e),y?b(t):f}(h);if(v)return clearTimeout(p),p=setTimeout(w,e),b(h)}return void 0===p&&(p=setTimeout(w,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},O.flush=function(){return void 0===p?f:x(o())},O}},8223:(t,e,r)=>{var n=r(6110)(r(9325),"Map");t.exports=n},8303:(t,e,r)=>{var n=r(6110)(r(9325),"WeakMap");t.exports=n},8329:(t,e,r)=>{var n=r(4894);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a<i)&&!1!==o(u[a],a,u););return r}}},8351:function(t,e,r){var n;!function(){"use strict";var o,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",s=c+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=1e7,y=9007199254740991,v=f(1286742750677284.5),m={};function b(t,e){var r,n,o,i,a,c,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?A(e,p):e;if(l=t.d,s=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,c=s.length):(n=s,o=a,c=l.length),i>(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=s.length)<0&&(i=c,n=s,s=l,l=n),r=0;i;)r=(l[--i]=l[i]+s[i]+r)/d|0,l[i]%=d;for(r&&(l.unshift(r),++o),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=o,u?A(e,p):e}function g(t,e,r){if(t!==~~t||t<e||t>r)throw Error(l+t)}function w(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)(r=7-(n=t[e]+"").length)&&(i+=P(r)),i+=n;(r=7-(n=(a=t[e])+"").length)&&(i+=P(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}m.absoluteValue=m.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},m.comparedTo=m.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},m.decimalPlaces=m.dp=function(){var t=this,e=t.d.length-1,r=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},m.dividedBy=m.div=function(t){return x(this,new this.constructor(t))},m.dividedToIntegerBy=m.idiv=function(t){var e=this.constructor;return A(x(this,new e(t),0,1),e.precision)},m.equals=m.eq=function(t){return!this.cmp(t)},m.exponent=function(){return j(this)},m.greaterThan=m.gt=function(t){return this.cmp(t)>0},m.greaterThanOrEqualTo=m.gte=function(t){return this.cmp(t)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(t){return this.cmp(t)<0},m.lessThanOrEqualTo=m.lte=function(t){return this.cmp(t)<1},m.logarithm=m.log=function(t){var e,r=this,n=r.constructor,i=n.precision,a=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(o))throw Error(c+"NaN");if(r.s<1)throw Error(c+(r.s?"NaN":"-Infinity"));return r.eq(o)?new n(0):(u=!1,e=x(k(r,a),k(t,a),a),u=!0,A(e,i))},m.minus=m.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?_(e,t):b(e,(t.s=-t.s,t))},m.modulo=m.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(c+"NaN");return r.s?(u=!1,e=x(r,t,0,1).times(t),u=!0,r.minus(e)):A(new n(r),o)},m.naturalExponential=m.exp=function(){return O(this)},m.naturalLogarithm=m.ln=function(){return k(this)},m.negated=m.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},m.plus=m.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?b(e,t):_(e,(t.s=-t.s,t))},m.precision=m.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);if(e=j(o)+1,r=7*(n=o.d.length-1)+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},m.squareRoot=m.sqrt=function(){var t,e,r,n,o,i,a,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(c+"NaN")}for(t=j(l),u=!1,0==(o=Math.sqrt(+l))||o==1/0?(((e=w(l.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),n=new s(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new s(o.toString()),o=a=(r=s.precision)+3;;)if(n=(i=n).plus(x(l,i,a+2)).times(.5),w(i.d).slice(0,a)===(e=w(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(A(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if("9999"!=e)break;a+=4}return u=!0,A(n,r)},m.times=m.mul=function(t){var e,r,n,o,i,a,c,l,s,f=this,p=f.constructor,h=f.d,y=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,r=f.e+t.e,(l=h.length)<(s=y.length)&&(i=h,h=y,y=i,a=l,l=s,s=a),i=[],n=a=l+s;n--;)i.push(0);for(n=s;--n>=0;){for(e=0,o=l+n;o>n;)c=i[o]+y[n]*h[o-n-1]+e,i[o--]=c%d|0,e=c/d|0;i[o]=(i[o]+e)%d|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,u?A(t,p.precision):t},m.toDecimalPlaces=m.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(g(t,0,i),void 0===e?e=n.rounding:g(e,0,8),A(r,t+j(r)+1,e))},m.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=M(n,!0):(g(t,0,i),void 0===e?e=o.rounding:g(e,0,8),r=M(n=A(new o(n),t+1,e),!0,t+1)),r},m.toFixed=function(t,e){var r,n,o=this,a=o.constructor;return void 0===t?M(o):(g(t,0,i),void 0===e?e=a.rounding:g(e,0,8),r=M((n=A(new a(o),t+j(o)+1,e)).abs(),!1,t+j(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},m.toInteger=m.toint=function(){var t=this,e=t.constructor;return A(new e(t),j(t)+1,e.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(t){var e,r,n,i,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(o);if(!(s=new p(s)).s){if(t.s<1)throw Error(c+"Infinity");return s}if(s.eq(o))return s;if(n=p.precision,t.eq(o))return A(s,n);if(l=(e=t.e)>=(r=t.d.length-1),a=s.s,l){if((r=h<0?-h:h)<=y){for(i=new p(o),e=Math.ceil(n/7+4),u=!1;r%2&&T((i=i.times(s)).d,e),0!==(r=f(r/2));)T((s=s.times(s)).d,e);return u=!0,t.s<0?new p(o).div(i):A(i,n)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,u=!1,i=t.times(k(s,n+12)),u=!0,(i=O(i)).s=a,i},m.toPrecision=function(t,e){var r,n,o=this,a=o.constructor;return void 0===t?n=M(o,(r=j(o))<=a.toExpNeg||r>=a.toExpPos):(g(t,1,i),void 0===e?e=a.rounding:g(e,0,8),n=M(o=A(new a(o),t,e),t<=(r=j(o))||r<=a.toExpNeg,t)),n},m.toSignificantDigits=m.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(g(t,1,i),void 0===e?e=r.rounding:g(e,0,8)),A(new r(this),t,e)},m.toString=m.valueOf=m.val=m.toJSON=function(){var t=this,e=j(t),r=t.constructor;return M(t,e<=r.toExpNeg||e>=r.toExpPos)};var x=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%d|0,n=r/d|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*d+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var u,l,s,f,p,h,y,v,m,b,g,w,x,O,S,P,k,E,_=n.constructor,M=n.s==o.s?1:-1,T=n.d,C=o.d;if(!n.s)return new _(n);if(!o.s)throw Error(c+"Division by zero");for(l=n.e-o.e,k=C.length,S=T.length,v=(y=new _(M)).d=[],s=0;C[s]==(T[s]||0);)++s;if(C[s]>(T[s]||0)&&--l,(w=null==i?i=_.precision:a?i+(j(n)-j(o))+1:i)<0)return new _(0);if(w=w/7+2|0,s=0,1==k)for(f=0,C=C[0],w++;(s<S||f)&&w--;s++)x=f*d+(T[s]||0),v[s]=x/C|0,f=x%C|0;else{for((f=d/(C[0]+1)|0)>1&&(C=t(C,f),T=t(T,f),k=C.length,S=T.length),O=k,b=(m=T.slice(0,k)).length;b<k;)m[b++]=0;(E=C.slice()).unshift(0),P=C[0],C[1]>=d/2&&++P;do{f=0,(u=e(C,m,k,b))<0?(g=m[0],k!=b&&(g=g*d+(m[1]||0)),(f=g/P|0)>1?(f>=d&&(f=d-1),1==(u=e(p=t(C,f),m,h=p.length,b=m.length))&&(f--,r(p,k<h?E:C,h))):(0==f&&(u=f=1),p=C.slice()),(h=p.length)<b&&p.unshift(0),r(m,p,b),-1==u&&(u=e(C,m,k,b=m.length))<1&&(f++,r(m,k<b?E:C,b)),b=m.length):0===u&&(f++,m=[0]),v[s++]=f,u&&m[0]?m[b++]=T[O]||0:(m=[T[O]],b=1)}while((O++<S||void 0!==m[0])&&w--)}return v[0]||v.shift(),y.e=l,A(y,a?i+j(y)+1:i)}}();function O(t,e){var r,n,i,a,c,l=0,f=0,h=t.constructor,d=h.precision;if(j(t)>16)throw Error(s+j(t));if(!t.s)return new h(o);for(null==e?(u=!1,c=d):c=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(c+=Math.log(p(2,f))/Math.LN10*2+5|0,r=n=i=new h(o),h.precision=c;;){if(n=A(n.times(t),c),r=r.times(++l),w((a=i.plus(x(n,r,c))).d).slice(0,c)===w(i.d).slice(0,c)){for(;f--;)i=A(i.times(i),c);return h.precision=d,null==e?(u=!0,A(i,d)):i}i=a}}function j(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function S(t,e,r){if(e>t.LN10.sd())throw u=!0,r&&(t.precision=r),Error(c+"LN10 precision limit exceeded");return A(new t(t.LN10),e)}function P(t){for(var e="";t--;)e+="0";return e}function k(t,e){var r,n,i,a,l,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,b=m.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==e?(u=!1,p=b):p=e,y.eq(10))return null==e&&(u=!0),S(m,p);if(p+=10,m.precision=p,n=(r=w(v)).charAt(0),a=j(y),!(Math.abs(a)<15e14))return f=S(m,p+2,b).times(a+""),y=k(new m(n+"."+r.slice(1)),p-10).plus(f),m.precision=b,null==e?(u=!0,A(y,b)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=w((y=y.times(t)).d)).charAt(0),d++;for(a=j(y),n>1?(y=new m("0."+r),a++):y=new m(n+"."+r.slice(1)),s=l=y=x(y.minus(o),y.plus(o),p),h=A(y.times(y),p),i=3;;){if(l=A(l.times(h),p),w((f=s.plus(x(l,new m(i),p))).d).slice(0,p)===w(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(S(m,p+2,b).times(a+""))),s=x(s,new m(d),p),m.precision=b,null==e?(u=!0,A(s,b)):s;s=f,i+=2}}function E(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=f(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=7;n<o;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),u&&(t.e>v||t.e<-v))throw Error(s+r)}else t.s=0,t.e=0,t.d=[0];return t}function A(t,e,r){var n,o,i,a,c,l,h,y,m=t.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=7,o=e,h=m[y=0];else{if((y=Math.ceil((n+1)/7))>=(i=m.length))return t;for(h=i=m[y],a=1;i>=10;i/=10)a++;o=(n%=7)-7+a}if(void 0!==r&&(c=h/(i=p(10,a-o-1))%10|0,l=e<0||void 0!==m[y+1]||h%i,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?h/p(10,a-o):0:m[y-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return l?(i=j(t),m.length=1,e=e-i-1,m[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==n?(m.length=y,i=1,y--):(m.length=y+1,i=p(10,7-n),m[y]=o>0?(h/p(10,a-o)%p(10,o)|0)*i:0),l)for(;;){if(0==y){(m[0]+=i)==d&&(m[0]=1,++t.e);break}if(m[y]+=i,m[y]!=d)break;m[y--]=0,i=1}for(n=m.length;0===m[--n];)m.pop();if(u&&(t.e>v||t.e<-v))throw Error(s+j(t));return t}function _(t,e){var r,n,o,i,a,c,l,s,f,p,h=t.constructor,y=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?A(e,y):e;if(l=t.d,p=e.d,n=e.e,s=t.e,l=l.slice(),a=s-n){for((f=a<0)?(r=l,a=-a,c=p.length):(r=p,n=s,c=l.length),a>(o=Math.max(Math.ceil(y/7),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(c=p.length))&&(c=o),o=0;o<c;o++)if(l[o]!=p[o]){f=l[o]<p[o];break}a=0}for(f&&(r=l,l=p,p=r,e.s=-e.s),c=l.length,o=p.length-c;o>0;--o)l[c++]=0;for(o=p.length;o>a;){if(l[--o]<p[o]){for(i=o;i&&0===l[--i];)l[i]=d-1;--l[i],l[o]+=d}l[o]-=p[o]}for(;0===l[--c];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=n,u?A(e,y):e):new h(0)}function M(t,e,r){var n,o=j(t),i=w(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+P(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+P(-o-1)+i,r&&(n=r-a)>0&&(i+=P(n))):o>=a?(i+=P(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+P(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=P(n))),t.s<0?"-"+i:i}function T(t,e){if(t.length>e)return t.length=e,!0}function C(t){if(!t||"object"!=typeof t)throw Error(c+"Object expected");var e,r,n,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(f(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(l+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(l+r+": "+n);this[r]=new this(n)}return this}a=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):E(e,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!h.test(t))throw Error(l+t);E(e,t)}if(i.prototype=m,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=C,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}(a),a.default=a.Decimal=a,o=new a(1),void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},8586:(t,e,r)=>{var n=r(6449),o=r(4394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},8655:(t,e,r)=>{var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},8754:(t,e,r)=>{var n=r(5160);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},8859:(t,e,r)=>{var n=r(3661),o=r(1380),i=r(1459);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},8867:(t,e)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function m(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case i:case u:case a:case p:case h:return t;default:switch(t=t&&t.$$typeof){case s:case l:case f:case y:case d:case c:return t;default:return e}}case o:return e}}}r=Symbol.for("react.module.reference"),e.isFragment=function(t){return m(t)===i}},8879:(t,e,r)=>{var n=r(4335)(Object.getPrototypeOf,Object);t.exports=n},8984:(t,e,r)=>{var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},9219:t=>{t.exports=function(t,e){return t.has(e)}},9302:(t,e,r)=>{var n=r(3488),o=r(6757),i=r(2865);t.exports=function(t,e){return i(o(t,e,n),t+"")}},9325:(t,e,r)=>{var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},9326:(t,e,r)=>{var n=r(1769),o=r(2428),i=r(6449),a=r(361),u=r(294),c=r(7797);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9374:(t,e,r)=>{var n=r(4128),o=r(3805),i=r(4394),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=u.test(t);return r||c.test(t)?l(t.slice(2),r?2:8):a.test(t)?NaN:+t}},9570:(t,e,r)=>{var n=r(7334),o=r(3243),i=r(3488),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},9698:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},9747:(t,e,r)=>{var n=r(7277),o=r(3777),i=r(5389),a=r(6449),u=r(6800);t.exports=function(t,e,r){var c=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),c(t,i(e,3))}},9770:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},9817:t=>{t.exports=function(t){return this.__data__.has(t)}},9843:t=>{t.exports=function(t){return null==t}},9905:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},9935:t=>{t.exports=function(){return!1}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t={};r.r(t),r.d(t,{addTrendKeyword:()=>s,clearTrendKeywords:()=>h,deleteActiveTemplate:()=>g,refreshTrendKeywords:()=>l,removeTrendKeyword:()=>f,toggleTrendKeyword:()=>p,updateCoordinates:()=>x,updateNewsRobots:()=>d,updatePrimary:()=>w});var e={};r.r(e),r.d(e,{appData:()=>A,appUi:()=>I});var n={};r.r(n),r.d(n,{getNewsRobots:()=>B,getTrendKeywords:()=>N,isRefreshingTrendKeywords:()=>R});var o={};r.r(o),r.d(o,{scaleBand:()=>Fo,scaleDiverging:()=>as,scaleDivergingLog:()=>us,scaleDivergingPow:()=>ls,scaleDivergingSqrt:()=>ss,scaleDivergingSymlog:()=>cs,scaleIdentity:()=>Pa,scaleImplicit:()=>zo,scaleLinear:()=>Sa,scaleLog:()=>Ia,scaleOrdinal:()=>Uo,scalePoint:()=>$o,scalePow:()=>$a,scaleQuantile:()=>eu,scaleQuantize:()=>ru,scaleRadial:()=>Ya,scaleSequential:()=>Ql,scaleSequentialLog:()=>ts,scaleSequentialPow:()=>rs,scaleSequentialQuantile:()=>os,scaleSequentialSqrt:()=>ns,scaleSequentialSymlog:()=>es,scaleSqrt:()=>Wa,scaleSymlog:()=>La,scaleThreshold:()=>nu,scaleTime:()=>Vl,scaleUtc:()=>Gl,tickFormat:()=>Oa});const i=wp.data,a=wp.hooks,u=lodash;function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,i.dispatch)("rank-math").updateAppData(t,e,r,n),{type:"RANK_MATH_APP_DATA",key:t,value:e}}function l(){return function(t,e){return{type:"RANK_MATH_APP_UI",key:t,value:e}}("refreshTrendKeywords",Date.now())}function s(t){var e=(0,i.select)("rank-math-pro").getTrendKeywords();return""===t||(0,u.isUndefined)(e[t])&&Object.keys(e).length<5&&(e[t]=!0),c("trendKeywords",e)}function f(t){var e=(0,i.select)("rank-math-pro").getTrendKeywords();return(0,u.isUndefined)(e[t])||delete e[t],c("trendKeywords",e)}function p(t){var e=(0,i.select)("rank-math-pro").getTrendKeywords();return(0,u.isUndefined)(e[t])||(e[t]=!e[t]),c("trendKeywords",e)}function h(){return c("trendKeywords",!1)}function d(t){return c("newsRobots",t,"rank_math_news_sitemap_robots")}function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t){var e=m({},(0,i.select)("rank-math").getSchemas());return delete e[t],delete rankMath.activeTemplates[t],c("schemas",e,"rank_math_exclude_template_"+t,"")}function w(t,e){var r=m({},e);return r[(0,u.findKey)(e,"metadata.isPrimary")].metadata.isPrimary=!1,r[t].metadata.isPrimary=!0,(0,i.dispatch)("rank-math").schemaUpdated(!0),(0,i.dispatch)("rank-math").updateSchemas(r)}function x(t){return c("local_latitude",t[0],"rank_math_local_business_latitide"),c("local_longitude",t[1],"rank_math_local_business_longitude")}function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){P(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function P(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=O(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==O(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var k=(0,u.get)(rankMath,"newsSitemap",{}),E={trendKeywords:!1,newsRobots:k.robots,newsKeywords:k.keywords};function A(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_DATA"===e.type?S(S({},t),{},P({},e.key,e.value)):t}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?M(Object(r),!0).forEach((function(e){C(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function C(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var D={trendKeywordsStatus:""};function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?T(T({},t),{},C({},e.key,e.value)):t}function N(t){if(!1===t.appData.trendKeywords){var e={},r=function(){var t=[],e=(0,u.get)(rankMathEditor,"components.focusKeywords",!1);return e&&(t=e.getFocusKeywords()),(0,u.isEmpty)(t)?(t=(0,i.select)("rank-math").getKeywords(),(0,u.isEmpty)(t)?[]:t.split(",")):t}();return(0,u.forEach)(r,(function(t){e[t]=!0})),e}return t.appData.trendKeywords}function B(t){return t.appData.newsRobots}function R(t){return t.appUi.refreshTrendKeywords}const L=wp.i18n,z=wp.components;const U=function(){return rankMath.canUser.analytics&&(0,u.includes)(rankMath.modules,"analytics")&&rankMath.isAnalyticsConnected?"publish"!==((0,u.isUndefined)(rankMathEditor.assessor.dataCollector.getPostAttribute)?rankMath.postStatus:rankMathEditor.assessor.dataCollector.getPostAttribute("status"))?null:wp.element.createElement(z.Button,{className:"button-secondary rank-math-single-analytics-report",target:"_blank",href:rankMath.adminurl+"?page=rank-math-analytics#/single/"+rankMathEditor.assessor.dataCollector.getPostID()},(0,L.__)("Analytics","rank-math-pro")):null},F=wp.element,K=moment;var $=r.n(K);const W=React;var q=r.n(W);function Y(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=Y(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}const H=function(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=Y(t))&&(n&&(n+=" "),n+=e);return n};var X=r(5556),V=r.n(X),G=Object.getOwnPropertyNames,Z=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty;function Q(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function tt(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var u=t(e,r,n);return o.delete(e),o.delete(r),u}}function et(t){return G(t).concat(Z(t))}var rt=Object.hasOwn||function(t,e){return J.call(t,e)};function nt(t,e){return t===e||!t&&!e&&t!=t&&e!=e}var ot=Object.getOwnPropertyDescriptor,it=Object.keys;function at(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function ut(t,e){return nt(t.getTime(),e.getTime())}function ct(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function lt(t,e){return t===e}function st(t,e,r){var n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var o,i,a=new Array(n),u=t.entries(),c=0;(o=u.next())&&!o.done;){for(var l=e.entries(),s=!1,f=0;(i=l.next())&&!i.done;)if(a[f])f++;else{var p=o.value,h=i.value;if(r.equals(p[0],h[0],c,f,t,e,r)&&r.equals(p[1],h[1],p[0],h[0],t,e,r)){s=a[f]=!0;break}f++}if(!s)return!1;c++}return!0}var ft=nt;function pt(t,e,r){var n=it(t),o=n.length;if(it(e).length!==o)return!1;for(;o-- >0;)if(!gt(t,e,r,n[o]))return!1;return!0}function ht(t,e,r){var n,o,i,a=et(t),u=a.length;if(et(e).length!==u)return!1;for(;u-- >0;){if(!gt(t,e,r,n=a[u]))return!1;if(o=ot(t,n),i=ot(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function dt(t,e){return nt(t.valueOf(),e.valueOf())}function yt(t,e){return t.source===e.source&&t.flags===e.flags}function vt(t,e,r){var n=t.size;if(n!==e.size)return!1;if(!n)return!0;for(var o,i,a=new Array(n),u=t.values();(o=u.next())&&!o.done;){for(var c=e.values(),l=!1,s=0;(i=c.next())&&!i.done;){if(!a[s]&&r.equals(o.value,i.value,o.value,i.value,t,e,r)){l=a[s]=!0;break}s++}if(!l)return!1}return!0}function mt(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}function bt(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function gt(t,e,r,n){return!("_owner"!==n&&"__o"!==n&&"__v"!==n||!t.$$typeof&&!e.$$typeof)||rt(e,n)&&r.equals(t[n],e[n],n,n,t,e,r)}var wt=Array.isArray,xt="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Ot=Object.assign,jt=Object.prototype.toString.call.bind(Object.prototype.toString);var St=Pt();Pt({strict:!0}),Pt({circular:!0}),Pt({circular:!0,strict:!0}),Pt({createInternalComparator:function(){return nt}}),Pt({strict:!0,createInternalComparator:function(){return nt}}),Pt({circular:!0,createInternalComparator:function(){return nt}}),Pt({circular:!0,createInternalComparator:function(){return nt},strict:!0});function Pt(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,u=void 0!==a&&a,c=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?ht:at,areDatesEqual:ut,areErrorsEqual:ct,areFunctionsEqual:lt,areMapsEqual:n?Q(st,ht):st,areNumbersEqual:ft,areObjectsEqual:n?ht:pt,arePrimitiveWrappersEqual:dt,areRegExpsEqual:yt,areSetsEqual:n?Q(vt,ht):vt,areTypedArraysEqual:n?ht:mt,areUrlsEqual:bt};if(r&&(o=Ot({},o,r(o))),e){var i=tt(o.areArraysEqual),a=tt(o.areMapsEqual),u=tt(o.areObjectsEqual),c=tt(o.areSetsEqual);o=Ot({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areErrorsEqual,o=t.areFunctionsEqual,i=t.areMapsEqual,a=t.areNumbersEqual,u=t.areObjectsEqual,c=t.arePrimitiveWrappersEqual,l=t.areRegExpsEqual,s=t.areSetsEqual,f=t.areTypedArraysEqual,p=t.areUrlsEqual;return function(t,h,d){if(t===h)return!0;if(null==t||null==h)return!1;var y=typeof t;if(y!==typeof h)return!1;if("object"!==y)return"number"===y?a(t,h,d):"function"===y&&o(t,h,d);var v=t.constructor;if(v!==h.constructor)return!1;if(v===Object)return u(t,h,d);if(wt(t))return e(t,h,d);if(null!=xt&&xt(t))return f(t,h,d);if(v===Date)return r(t,h,d);if(v===RegExp)return l(t,h,d);if(v===Map)return i(t,h,d);if(v===Set)return s(t,h,d);var m=jt(t);return"[object Date]"===m?r(t,h,d):"[object RegExp]"===m?l(t,h,d):"[object Map]"===m?i(t,h,d):"[object Set]"===m?s(t,h,d):"[object Object]"===m?"function"!=typeof t.then&&"function"!=typeof h.then&&u(t,h,d):"[object URL]"===m?p(t,h,d):"[object Error]"===m?n(t,h,d):"[object Arguments]"===m?u(t,h,d):("[object Boolean]"===m||"[object Number]"===m||"[object String]"===m)&&c(t,h,d)}}(c),s=o?o(l):(e=l,function(t,r,n,o,i,a,u){return e(t,r,u)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var u=n(),c=u.cache,l=void 0===c?e?new WeakMap:void 0:c,s=u.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:s,strict:u})}function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function At(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _t(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _t(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Mt(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=At(n),i=o[0],a=o.slice(1);return"number"==typeof i?void kt(r.bind(null,a),i):(r(i),void kt(r.bind(null,a)))}"object"===Et(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Tt(t){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt(t)}function Ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(r),!0).forEach((function(e){It(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function It(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Tt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Tt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Nt=function(t){return t},Bt=function(t,e){return Object.keys(e).reduce((function(r,n){return Dt(Dt({},r),{},It({},n,t(n,e[n])))}),{})},Rt=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")};function Lt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||Ut(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zt(t){return function(t){if(Array.isArray(t))return Ft(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ut(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(t,e){if(t){if("string"==typeof t)return Ft(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ft(t,e):void 0}}function Ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Kt=1e-4,$t=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Wt=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},qt=function(t,e){return function(r){var n=$t(t,e);return Wt(n,r)}},Yt=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var u=e[0].split("(");if("cubic-bezier"===u[0]&&4===u[1].split(")")[0].split(",").length){var c=Lt(u[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),4);n=c[0],o=c[1],i=c[2],a=c[3]}}[n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var l,s,f=qt(n,i),p=qt(o,a),h=(l=n,s=i,function(t){var e=$t(l,s),r=[].concat(zt(e.map((function(t,e){return t*e})).slice(1)),[0]);return Wt(r,t)}),d=function(t){return t>1?1:t<0?0:t},y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=f(r)-e,i=h(r);if(Math.abs(o-e)<Kt||i<Kt)return p(r);r=d(r-o/i)}return p(r)};return y.isStepper=!1,y},Ht=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Yt(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return Math.abs(u-e)<Kt&&Math.abs(i)<Kt?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u}();default:if("cubic-bezier"===n.split("(")[0])return Yt(n)}return"function"==typeof n?n:null};function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function Vt(t){return function(t){if(Array.isArray(t))return ee(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||te(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gt(Object(r),!0).forEach((function(e){Jt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||te(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(t,e){if(t){if("string"==typeof t)return ee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(t,e):void 0}}function ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var re=function(t,e,r){return t+(e-t)*r},ne=function(t){return t.from!==t.to},oe=function t(e,r,n){var o=Bt((function(t,r){if(ne(r)){var n=Qt(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return Zt(Zt({},r),{},{from:o,velocity:i})}return r}),r);return n<1?Bt((function(t,e){return ne(e)?Zt(Zt({},e),{},{velocity:re(e.velocity,o[t].velocity,n),from:re(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)};const ie=function(t,e,r,n,o){var i,a,u,c,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Zt(Zt({},r),{},Jt({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Zt(Zt({},r),{},Jt({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){u||(u=n);var i=(n-u)/r.dt;f=oe(r,f,i),o(Zt(Zt(Zt({},t),e),Bt((function(t,e){return e.from}),f))),u=n,Object.values(f).filter(ne).length&&(p=requestAnimationFrame(h))}:function(i){c||(c=i);var a=(i-c)/n,u=Bt((function(t,e){return re.apply(void 0,Vt(e).concat([r(a)]))}),s);if(o(Zt(Zt(Zt({},t),e),u)),a<1)p=requestAnimationFrame(h);else{var l=Bt((function(t,e){return re.apply(void 0,Vt(e).concat([r(1)]))}),s);o(Zt(Zt(Zt({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function ae(t){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ae(t)}var ue=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ce(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function le(t){return function(t){if(Array.isArray(t))return se(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return se(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return se(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(r),!0).forEach((function(e){he(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function he(t,e,r){return(e=ye(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function de(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ye(n.key),n)}}function ye(t){var e=function(t,e){if("object"!==ae(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ae(e)?e:String(e)}function ve(t,e){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ve(t,e)}function me(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=we(t);if(e){var o=we(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return be(this,r)}}function be(t,e){if(e&&("object"===ae(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ge(t)}function ge(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function we(t){return we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},we(t)}var xe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ve(t,e)}(i,t);var e,r,n,o=me(i);function i(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n=(r=o.call(this,t,e)).props,a=n.isActive,u=n.attributeName,c=n.from,l=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(ge(r)),r.changeStyle=r.changeStyle.bind(ge(r)),!a||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),be(r);if(s&&s.length)r.state={style:s[0].style};else if(c){if("function"==typeof f)return r.state={style:c},be(r);r.state={style:u?he({},u,c):c}}else r.state={style:{}};return r}return e=i,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,u=e.from,c=this.state.style;if(n)if(r){if(!(St(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?u:t.to;if(this.state&&c){var f={style:o?he({},o,s):s};(o&&c[o]!==s||!o&&c!==s)&&this.setState(f)}this.runAnimation(pe(pe({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?he({},o,a):a};this.state&&c&&(o&&c[o]!==a||!o&&c!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,u=t.onAnimationEnd,c=t.onAnimationStart,l=ie(r,n,Ht(i),o,this.changeStyle);this.manager.start([c,a,function(){e.stopJSAnimation=l()},o,u])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,u=i.duration,c=void 0===u?0:u;return this.manager.start([o].concat(le(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,u=void 0===a?"ease":a,c=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(le(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:i,easing:u}),i]);var h=Rt(p,i,u),d=pe(pe(pe({},f.style),c),{},{transition:h});return[].concat(le(t),[d,i,s]).filter(Nt)}),[a,Math.max(c,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Mt());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,u=t.onAnimationEnd,c=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(t);else{var f=n?he({},n,o):o,p=Rt(Object.keys(f),r,i);s.start([a,e,pe(pe({},f),{},{transition:p}),r,u])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),n=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,ce(t,ue)),i=W.Children.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var u=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return(0,W.cloneElement)(t,pe(pe({},o),{},{style:pe(pe({},n),a),className:i}))};return 1===i?u(W.Children.only(e)):q().createElement("div",null,W.Children.map(e,(function(t){return u(t)})))}}])&&de(e.prototype,r),n&&de(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(W.PureComponent);xe.displayName="Animate",xe.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},xe.propTypes={from:V().oneOfType([V().object,V().string]),to:V().oneOfType([V().object,V().string]),attributeName:V().string,duration:V().number,begin:V().number,easing:V().oneOfType([V().string,V().func]),steps:V().arrayOf(V().shape({duration:V().number.isRequired,style:V().object.isRequired,easing:V().oneOfType([V().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),V().func]),properties:V().arrayOf("string"),onAnimationEnd:V().func})),children:V().oneOfType([V().node,V().func]),isActive:V().bool,canBegin:V().bool,onAnimationEnd:V().func,shouldReAnimate:V().bool,onAnimationStart:V().func,onAnimationReStart:V().func};const Oe=xe;var je=r(1882),Se=r.n(je),Pe=r(4506),ke=r.n(Pe),Ee=r(9843),Ae=r.n(Ee),_e=r(1741),Me=r.n(_e),Te=r(2404),Ce=r.n(Te);function De(){}function Ie(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function Ne(t){this._context=t}function Be(t){this._context=t}function Re(t){this._context=t}Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ie(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ie(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Be.prototype={areaStart:De,areaEnd:De,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ie(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ie(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class Le{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function ze(t){this._context=t}function Ue(t){this._context=t}function Fe(t){return new Ue(t)}function Ke(t){return t<0?-1:1}function $e(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),u=(i*o+a*n)/(n+o);return(Ke(i)+Ke(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function We(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function qe(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function Ye(t){this._context=t}function He(t){this._context=new Xe(t)}function Xe(t){this._context=t}function Ve(t){this._context=t}function Ge(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Ze(t,e){this._context=t,this._t=e}ze.prototype={areaStart:De,areaEnd:De,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Ue.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Ye.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:qe(this,this._t0,We(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,qe(this,We(this,r=$e(this,t,e)),r);break;default:qe(this,this._t0,r=$e(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(He.prototype=Object.create(Ye.prototype)).point=function(t,e){Ye.prototype.point.call(this,e,t)},Xe.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},Ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Ge(t),o=Ge(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Ze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};Array.prototype.slice;function Je(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Qe(t){return function(){return t}}const tr=Math.PI,er=2*tr,rr=1e-6,nr=er-rr;function or(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class ir{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?or:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return or;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,u=r-t,c=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>rr)if(Math.abs(s*u-c*l)>rr&&o){let p=r-i,h=n-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),b=o*Math.tan((tr-Math.acos((d+f-y)/(2*v*m)))/2),g=b/m,w=b/v;Math.abs(g-1)>rr&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+w*u},${this._y1=e+w*c}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),u=r*Math.sin(n),c=t+a,l=e+u,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>rr||Math.abs(this._y1-l)>rr)&&this._append`L${c},${l}`,r&&(f<0&&(f=f%er+er),f>nr?this._append`A${r},${r},0,1,${s},${t-a},${e-u}A${r},${r},0,1,${s},${this._x1=c},${this._y1=l}`:f>rr&&this._append`A${r},${r},0,${+(f>=tr)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function ar(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new ir(e)}function ur(t){return t[0]}function cr(t){return t[1]}function lr(t,e){var r=Qe(!0),n=null,o=Fe,i=null,a=ar(u);function u(u){var c,l,s,f=(u=Je(u)).length,p=!1;for(null==n&&(i=o(s=a())),c=0;c<=f;++c)!(c<f&&r(l=u[c],c,u))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,c,u),+e(l,c,u));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?ur:Qe(t),e="function"==typeof e?e:void 0===e?cr:Qe(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:Qe(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:Qe(+t),u):e},u.defined=function(t){return arguments.length?(r="function"==typeof t?t:Qe(!!t),u):r},u.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),u):o},u.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),u):n},u}function sr(t,e,r){var n=null,o=Qe(!0),i=null,a=Fe,u=null,c=ar(l);function l(l){var s,f,p,h,d,y=(l=Je(l)).length,v=!1,m=new Array(y),b=new Array(y);for(null==i&&(u=a(d=c())),s=0;s<=y;++s){if(!(s<y&&o(h=l[s],s,l))===v)if(v=!v)f=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=s-1;p>=f;--p)u.point(m[p],b[p]);u.lineEnd(),u.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),u.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(d)return u=null,d+""||null}function s(){return lr().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?ur:Qe(+t),e="function"==typeof e?e:Qe(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?cr:Qe(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Qe(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Qe(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Qe(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Qe(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Qe(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Qe(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:Qe(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),l):i},l}var fr=r(5808),pr=r.n(fr),hr=r(3805),dr=r.n(hr);function yr(t){return yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yr(t)}var vr=["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","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","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"],mr=["points","pathLength"],br={svg:["viewBox","children"],polygon:mr,polyline:mr},gr=["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"],wr=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,W.isValidElement)(t)&&(r=t.props),!dr()(r))return null;var n={};return Object.keys(r).forEach((function(t){gr.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},xr=function(t,e,r){if(!dr()(t)||"object"!==yr(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];gr.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},Or=r(8156),jr=r.n(Or),Sr=r(5015),Pr=r.n(Sr),kr=r(4580),Er=r(8023),Ar=r.n(Er),_r=function(t){return 0===t?0:t>0?1:-1},Mr=function(t){return Pr()(t)&&t.indexOf("%")===t.length-1},Tr=function(t){return Ar()(t)&&!Me()(t)},Cr=function(t){return Tr(t)||Pr()(t)},Dr=0,Ir=function(t){var e=++Dr;return"".concat(t||"").concat(e)},Nr=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Tr(t)&&!Pr()(t))return n;if(Mr(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return Me()(r)&&(r=n),o&&r>e&&(r=e),r},Br=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},Rr=function(t,e){return Tr(t)&&Tr(e)?function(r){return t+r*(e-t)}:function(){return e}};function Lr(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):jr()(t,e))===r})):null}var zr=function(t,e){return Tr(t)&&Tr(e)?t-e:Pr()(t)&&Pr()(e)?t.localeCompare(e):t instanceof Date&&e instanceof Date?t.getTime()-e.getTime():String(t).localeCompare(String(e))};function Ur(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}var Fr=["children"],Kr=["children"];function $r(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Wr(t){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(t)}var qr={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Yr=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Hr=null,Xr=null,Vr=function t(e){if(e===Hr&&Array.isArray(Xr))return Xr;var r=[];return W.Children.forEach(e,(function(e){Ae()(e)||((0,kr.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))})),Xr=r,Hr=e,r};function Gr(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return Yr(t)})):[Yr(e)],Vr(t).forEach((function(t){var e=jr()(t,"type.displayName")||jr()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function Zr(t,e){var r=Gr(t,e);return r&&r[0]}var Jr=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!Tr(r)||r<=0||!Tr(n)||n<=0)},Qr=["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"],tn=function(t){return t&&t.type&&Pr()(t.type)&&Qr.indexOf(t.type)>=0},en=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,W.isValidElement)(t)&&(n=t.props),!dr()(n))return null;var o={};return Object.keys(n).forEach((function(t){var i;(function(t,e,r,n){var o,i=null!==(o=null==br?void 0:br[n])&&void 0!==o?o:[];return e.startsWith("data-")||!Se()(t)&&(n&&i.includes(e)||vr.includes(e))||r&&gr.includes(e)})(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])})),o},rn=function t(e,r){if(e===r)return!0;var n=W.Children.count(e);if(n!==W.Children.count(r))return!1;if(0===n)return!0;if(1===n)return nn(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var i=e[o],a=r[o];if(Array.isArray(i)||Array.isArray(a)){if(!t(i,a))return!1}else if(!nn(i,a))return!1}return!0},nn=function(t,e){if(Ae()(t)&&Ae()(e))return!0;if(!Ae()(t)&&!Ae()(e)){var r=t.props||{},n=r.children,o=$r(r,Fr),i=e.props||{},a=i.children,u=$r(i,Kr);return n&&a?Ur(o,u)&&rn(n,a):!n&&!a&&Ur(o,u)}return!1},on=function(t,e){var r=[],n={};return Vr(t).forEach((function(t,o){if(tn(t))r.push(t);else if(t){var i=Yr(t.type),a=e[i]||{},u=a.handler,c=a.once;if(u&&(!c||!n[i])){var l=u(t,i,o);r.push(l),n[i]=!0}}})),r};function an(t){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(t)}function un(){return un=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},un.apply(this,arguments)}function cn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ln(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(r),!0).forEach((function(e){sn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sn(t,e,r){var n;return n=function(t,e){if("object"!=an(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=an(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==an(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fn={curveBasisClosed:function(t){return new Be(t)},curveBasisOpen:function(t){return new Re(t)},curveBasis:function(t){return new Ne(t)},curveBumpX:function(t){return new Le(t,!0)},curveBumpY:function(t){return new Le(t,!1)},curveLinearClosed:function(t){return new ze(t)},curveLinear:Fe,curveMonotoneX:function(t){return new Ye(t)},curveMonotoneY:function(t){return new He(t)},curveNatural:function(t){return new Ve(t)},curveStep:function(t){return new Ze(t,.5)},curveStepAfter:function(t){return new Ze(t,1)},curveStepBefore:function(t){return new Ze(t,0)}},pn=function(t){return t.x===+t.x&&t.y===+t.y},hn=function(t){return t.x},dn=function(t){return t.y},yn=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,u=t.layout,c=t.connectNulls,l=void 0!==c&&c,s=function(t,e){if(Se()(t))return t;var r="curve".concat(pr()(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?fn[r]||Fe:fn["".concat(r).concat("vertical"===e?"Y":"X")]}(n,u),f=l?i.filter((function(t){return pn(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return pn(t)})):a,h=f.map((function(t,e){return ln(ln({},t),{},{base:p[e]})}));return(e="vertical"===u?sr().y(dn).x1(hn).x0((function(t){return t.base.x})):sr().x(hn).y1(dn).y0((function(t){return t.base.y}))).defined(pn).curve(s),e(h)}return(e="vertical"===u&&Tr(a)?sr().y(dn).x1(hn).x0(a):Tr(a)?sr().x(hn).y1(dn).y0(a):lr().x(hn).y(dn)).defined(pn).curve(s),e(f)},vn=function(t){var e=t.className,r=t.points,n=t.path,o=t.pathRef;if(!(r&&r.length||n))return null;var i=r&&r.length?yn(t):n;return q().createElement("path",un({},en(t,!1),wr(t),{className:H("recharts-curve",e),d:i,ref:o}))};function mn(){return mn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mn.apply(this,arguments)}var bn=function(t){var e=t.cx,r=t.cy,n=t.r,o=t.className,i=H("recharts-dot",o);return e===+e&&r===+r&&n===+n?q().createElement("circle",mn({},en(t,!1),wr(t),{className:i,cx:e,cy:r,r:n})):null},gn=["children","className"];function wn(){return wn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wn.apply(this,arguments)}function xn(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var On=q().forwardRef((function(t,e){var r=t.children,n=t.className,o=xn(t,gn),i=H("recharts-layer",n);return q().createElement("g",wn({className:i},en(o,!0),{ref:e}),r)})),jn=r(8090),Sn=r.n(jn),Pn={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Pn[t]},set:function(t,e){if("string"==typeof t)Pn[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){Pn[e]=t[e]}))}}};function kn(t){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(t)}function En(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function An(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?En(Object(r),!0).forEach((function(e){_n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):En(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _n(t,e,r){var n;return n=function(t,e){if("object"!=kn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=kn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==kn(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Mn={widthCache:{},cacheCount:0},Tn={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Cn="recharts_measurement_span";var Dn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Pn.isSsr)return{width:0,height:0};var r,n=(r=An({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),o=JSON.stringify({text:t,copyStyle:n});if(Mn.widthCache[o])return Mn.widthCache[o];try{var i=document.getElementById(Cn);i||((i=document.createElement("span")).setAttribute("id",Cn),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=An(An({},Tn),n);Object.assign(i.style,a),i.textContent="".concat(t);var u=i.getBoundingClientRect(),c={width:u.width,height:u.height};return Mn.widthCache[o]=c,++Mn.cacheCount>2e3&&(Mn.cacheCount=0,Mn.widthCache={}),c}catch(t){return{width:0,height:0}}};function In(t){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(t)}function Nn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Bn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bn(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ln(n.key),n)}}function Ln(t){var e=function(t,e){if("object"!=In(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=In(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==In(e)?e:e+""}var zn=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Un=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Fn=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Kn=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,$n={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Wn=Object.keys($n),qn="NaN";var Yn=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Fn.test(r)||(this.num=NaN,this.unit=""),Wn.includes(r)&&(this.num=function(t,e){return t*$n[e]}(e,r),this.unit="px")}return e=t,n=[{key:"parse",value:function(e){var r,n=Nn(null!==(r=Kn.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Rn(e.prototype,r),n&&Rn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();function Hn(t){if(t.includes(qn))return qn;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Nn(null!==(r=zn.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],u=Yn.parse(null!=o?o:""),c=Yn.parse(null!=a?a:""),l="*"===i?u.multiply(c):u.divide(c);if(l.isNaN())return qn;e=e.replace(zn,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Nn(null!==(s=Un.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=Yn.parse(null!=p?p:""),v=Yn.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return qn;e=e.replace(Un,m.toString())}return e}var Xn=/\(([^()]*)\)/;function Vn(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Nn(Xn.exec(e),2)[1];e=e.replace(Xn,Hn(r))}return e}(e),e=Hn(e)}function Gn(t){var e=function(t){try{return Vn(t)}catch(t){return qn}}(t.slice(5,-1));return e===qn?"":e}var Zn=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Jn=["dx","dy","angle","className","breakAll"];function Qn(){return Qn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qn.apply(this,arguments)}function to(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function eo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ro(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ro(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ro(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var no=/[ \f\n\r\t\v\u2028\u2029]+/,oo=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return Ae()(e)||(o=r?e.toString().split(""):e.toString().split(no)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:Dn(t,n).width}})),spaceWidth:r?0:Dn(" ",n).width}}catch(t){return null}},io=function(t){return[{words:Ae()(t)?[]:t.toString().split(no)}]},ao=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!Pn.isSsr){var u=oo({breakAll:i,children:n,style:o});return u?function(t,e,r,n,o){var i=t.maxLines,a=t.children,u=t.style,c=t.breakAll,l=Tr(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,u=t[t.length-1];if(u&&(null==n||o||u.width+a+r<Number(n)))u.words.push(i),u.width+=a+r;else{var c={words:[i],width:a};t.push(c)}return t}),[])},p=f(e);if(!l)return p;for(var h,d=function(t){var e=s.slice(0,t),r=oo({breakAll:c,style:u,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var b=Math.floor((y+v)/2),g=eo(d(b-1),2),w=g[0],x=g[1],O=eo(d(b),1)[0];if(w||O||(y=b+1),w&&O&&(v=b-1),!w&&O){h=x;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},u.wordsWithComputedWidth,u.spaceWidth,e,r):io(n)}return io(n)},uo="#808080",co=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.lineHeight,a=void 0===i?"1em":i,u=t.capHeight,c=void 0===u?"0.71em":u,l=t.scaleToFit,s=void 0!==l&&l,f=t.textAnchor,p=void 0===f?"start":f,h=t.verticalAnchor,d=void 0===h?"end":h,y=t.fill,v=void 0===y?uo:y,m=to(t,Zn),b=(0,W.useMemo)((function(){return ao({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),g=m.dx,w=m.dy,x=m.angle,O=m.className,j=m.breakAll,S=to(m,Jn);if(!Cr(r)||!Cr(o))return null;var P,k=r+(Tr(g)?g:0),E=o+(Tr(w)?w:0);switch(d){case"start":P=Gn("calc(".concat(c,")"));break;case"middle":P=Gn("calc(".concat((b.length-1)/2," * -").concat(a," + (").concat(c," / 2))"));break;default:P=Gn("calc(".concat(b.length-1," * -").concat(a,")"))}var A=[];if(s){var _=b[0].width,M=m.width;A.push("scale(".concat((Tr(M)?M/_:1)/_,")"))}return x&&A.push("rotate(".concat(x,", ").concat(k,", ").concat(E,")")),A.length&&(S.transform=A.join(" ")),q().createElement("text",Qn({},en(S,!0),{x:k,y:E,className:H("recharts-text",O),textAnchor:p,fill:v.includes("url")?uo:v}),b.map((function(t,e){var r=t.words.join(j?"":" ");return q().createElement("tspan",{x:k,dy:0===e?P:a,key:"".concat(r,"-").concat(e)},r)})))};function lo(t){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(t)}function so(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?so(Object(r),!0).forEach((function(e){po(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):so(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function po(t,e,r){var n;return n=function(t,e){if("object"!=lo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lo(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ho=Math.PI/180,yo=function(t){return 180*t/Math.PI},vo=function(t,e,r,n){return{x:t+Math.cos(-ho*n)*r,y:e+Math.sin(-ho*n)*r}},mo=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var u=(r-o)/a,c=Math.acos(u);return n>i&&(c=2*Math.PI-c),{radius:a,angle:yo(c),angleInRadian:c}},bo=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},go=function(t,e){var r=t.x,n=t.y,o=mo({x:r,y:n},e),i=o.radius,a=o.angle,u=e.innerRadius,c=e.outerRadius;if(i<u||i>c)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?fo(fo({},e),{},{radius:i,angle:bo(h,e)}):null};function wo(t){return wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(t)}var xo=["offset"];function Oo(t){return function(t){if(Array.isArray(t))return jo(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return jo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jo(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function So(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ko(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Po(Object(r),!0).forEach((function(e){Eo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Eo(t,e,r){var n;return n=function(t,e){if("object"!=wo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=wo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==wo(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ao(){return Ao=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ao.apply(this,arguments)}var _o=function(t,e,r){var n,o,i=t.position,a=t.viewBox,u=t.offset,c=t.className,l=a,s=l.cx,f=l.cy,p=l.innerRadius,h=l.outerRadius,d=l.startAngle,y=l.endAngle,v=l.clockWise,m=(p+h)/2,b=function(t,e){return _r(e-t)*Math.min(Math.abs(e-t),360)}(d,y),g=b>=0?1:-1;"insideStart"===i?(n=d+g*u,o=v):"insideEnd"===i?(n=y-g*u,o=!v):"end"===i&&(n=y+g*u,o=v),o=b<=0?o:!o;var w=vo(s,f,m,n),x=vo(s,f,m,n+359*(o?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n    A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n    ").concat(x.x,",").concat(x.y),j=Ae()(t.id)?Ir("recharts-radial-line-"):t.id;return q().createElement("text",Ao({},r,{dominantBaseline:"central",className:H("recharts-radial-bar-label",c)}),q().createElement("defs",null,q().createElement("path",{id:j,d:O})),q().createElement("textPath",{xlinkHref:"#".concat(j)},e))};function Mo(t){var e,r=t.offset,n=ko({offset:void 0===r?5:r},So(t,xo)),o=n.viewBox,i=n.position,a=n.value,u=n.children,c=n.content,l=n.className,s=void 0===l?"":l,f=n.textBreakAll;if(!o||Ae()(a)&&Ae()(u)&&!(0,W.isValidElement)(c)&&!Se()(c))return null;if((0,W.isValidElement)(c))return(0,W.cloneElement)(c,n);if(Se()(c)){if(e=(0,W.createElement)(c,n),(0,W.isValidElement)(e))return e}else e=function(t){var e=t.value,r=t.formatter,n=Ae()(t.children)?e:t.children;return Se()(r)?r(n):n}(n);var p=function(t){return"cx"in t&&Tr(t.cx)}(o),h=en(n,!0);if(p&&("insideStart"===i||"insideEnd"===i||"end"===i))return _o(n,e,h);var d=p?function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,u=o.innerRadius,c=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=vo(i,a,c+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=vo(i,a,(u+c)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(n):function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,u=i.y,c=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=c>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===o)return ko(ko({},{x:a+c/2,y:u-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(u-r.y,0),width:c}:{});if("bottom"===o)return ko(ko({},{x:a+c/2,y:u+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(u+l),0),width:c}:{});if("left"===o){var b={x:a-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"};return ko(ko({},b),r?{width:Math.max(b.x-r.x,0),height:l}:{})}if("right"===o){var g={x:a+c+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"};return ko(ko({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var w=r?{width:c,height:l}:{};return"insideLeft"===o?ko({x:a+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"},w):"insideRight"===o?ko({x:a+c-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?ko({x:a+c/2,y:u+f,textAnchor:"middle",verticalAnchor:h},w):"insideBottom"===o?ko({x:a+c/2,y:u+l-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?ko({x:a+y,y:u+f,textAnchor:m,verticalAnchor:h},w):"insideTopRight"===o?ko({x:a+c-y,y:u+f,textAnchor:v,verticalAnchor:h},w):"insideBottomLeft"===o?ko({x:a+y,y:u+l-f,textAnchor:m,verticalAnchor:p},w):"insideBottomRight"===o?ko({x:a+c-y,y:u+l-f,textAnchor:v,verticalAnchor:p},w):dr()(o)&&(Tr(o.x)||Mr(o.x))&&(Tr(o.y)||Mr(o.y))?ko({x:a+Nr(o.x,c),y:u+Nr(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):ko({x:a+c/2,y:u+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(n);return q().createElement(co,Ao({className:H("recharts-label",s)},h,d,{breakAll:f}),e)}Mo.displayName="Label";var To=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,d=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(Tr(d)&&Tr(y)){if(Tr(s)&&Tr(f))return{x:s,y:f,width:d,height:y};if(Tr(p)&&Tr(h))return{x:p,y:h,width:d,height:y}}return Tr(s)&&Tr(f)?{x:s,y:f,width:0,height:0}:Tr(e)&&Tr(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};function Co(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Do(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}Mo.parseViewBox=To,Mo.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,o=To(t),i=Gr(n,Mo).map((function(t,r){return(0,W.cloneElement)(t,{viewBox:e||o,key:"label-".concat(r)})}));if(!r)return i;var a=function(t,e){return t?!0===t?q().createElement(Mo,{key:"label-implicit",viewBox:e}):Cr(t)?q().createElement(Mo,{key:"label-implicit",viewBox:e,value:t}):(0,W.isValidElement)(t)?t.type===Mo?(0,W.cloneElement)(t,{key:"label-implicit",viewBox:e}):q().createElement(Mo,{key:"label-implicit",content:t,viewBox:e}):Se()(t)?q().createElement(Mo,{key:"label-implicit",content:t,viewBox:e}):dr()(t)?q().createElement(Mo,Ao({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[a].concat(Oo(i))};class Io extends Map{constructor(t,e=Lo){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(No(this,t))}has(t){return super.has(No(this,t))}set(t,e){return super.set(Bo(this,t),e)}delete(t){return super.delete(Ro(this,t))}}Set;function No({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function Bo({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function Ro({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function Lo(t){return null!==t&&"object"==typeof t?t.valueOf():t}const zo=Symbol("implicit");function Uo(){var t=new Io,e=[],r=[],n=zo;function o(o){let i=t.get(o);if(void 0===i){if(n!==zo)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new Io;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return Uo(e,r).unknown(n)},Co.apply(o,arguments),o}function Fo(){var t,e,r=Uo().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,u=!1,c=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-c+2*l),u&&(t=Math.floor(t)),p+=(h-p-t*(r-c))*s,e=t*(1-c),u&&(p=Math.round(p),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(u=!!t,f()):u},r.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},r.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Fo(n(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},Co.apply(f(),arguments)}function Ko(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ko(e())},t}function $o(){return Ko(Fo.apply(null,arguments).paddingInner(1))}const Wo=Math.sqrt(50),qo=Math.sqrt(10),Yo=Math.sqrt(2);function Ho(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=Wo?10:i>=qo?5:i>=Yo?2:1;let u,c,l;return o<0?(l=Math.pow(10,-o)/a,u=Math.round(t*l),c=Math.round(e*l),u/l<t&&++u,c/l>e&&--c,l=-l):(l=Math.pow(10,o)*a,u=Math.round(t/l),c=Math.round(e/l),u*l<t&&++u,c*l>e&&--c),c<u&&.5<=r&&r<2?Ho(t,e,2*r):[u,c,l]}function Xo(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?Ho(e,t,r):Ho(t,e,r);if(!(i>=o))return[];const u=i-o+1,c=new Array(u);if(n)if(a<0)for(let t=0;t<u;++t)c[t]=(i-t)/-a;else for(let t=0;t<u;++t)c[t]=(i-t)*a;else if(a<0)for(let t=0;t<u;++t)c[t]=(o+t)/-a;else for(let t=0;t<u;++t)c[t]=(o+t)*a;return c}function Vo(t,e,r){return Ho(t=+t,e=+e,r=+r)[2]}function Go(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Vo(e,t,r):Vo(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Zo(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Jo(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qo(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=Zo,r=(e,r)=>Zo(t(e),r),n=(e,r)=>t(e)-r):(e=t===Zo||t===Jo?t:ti,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function ti(){return 0}function ei(t){return null===t?NaN:+t}const ri=Qo(Zo),ni=ri.right,oi=(ri.left,Qo(ei).center,ni);function ii(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function ai(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function ui(){}var ci=.7,li=1/ci,si="\\s*([+-]?\\d+)\\s*",fi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",pi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hi=/^#([0-9a-f]{3,8})$/,di=new RegExp("^rgb\\("+[si,si,si]+"\\)$"),yi=new RegExp("^rgb\\("+[pi,pi,pi]+"\\)$"),vi=new RegExp("^rgba\\("+[si,si,si,fi]+"\\)$"),mi=new RegExp("^rgba\\("+[pi,pi,pi,fi]+"\\)$"),bi=new RegExp("^hsl\\("+[fi,pi,pi]+"\\)$"),gi=new RegExp("^hsla\\("+[fi,pi,pi,fi]+"\\)$"),wi={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 xi(){return this.rgb().formatHex()}function Oi(){return this.rgb().formatRgb()}function ji(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=hi.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Si(e):3===r?new Ei(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Pi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Pi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=di.exec(t))?new Ei(e[1],e[2],e[3],1):(e=yi.exec(t))?new Ei(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=vi.exec(t))?Pi(e[1],e[2],e[3],e[4]):(e=mi.exec(t))?Pi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=bi.exec(t))?Ti(e[1],e[2]/100,e[3]/100,1):(e=gi.exec(t))?Ti(e[1],e[2]/100,e[3]/100,e[4]):wi.hasOwnProperty(t)?Si(wi[t]):"transparent"===t?new Ei(NaN,NaN,NaN,0):null}function Si(t){return new Ei(t>>16&255,t>>8&255,255&t,1)}function Pi(t,e,r,n){return n<=0&&(t=e=r=NaN),new Ei(t,e,r,n)}function ki(t,e,r,n){return 1===arguments.length?((o=t)instanceof ui||(o=ji(o)),o?new Ei((o=o.rgb()).r,o.g,o.b,o.opacity):new Ei):new Ei(t,e,r,null==n?1:n);var o}function Ei(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Ai(){return"#"+Mi(this.r)+Mi(this.g)+Mi(this.b)}function _i(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Mi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ti(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Di(t,e,r,n)}function Ci(t){if(t instanceof Di)return new Di(t.h,t.s,t.l,t.opacity);if(t instanceof ui||(t=ji(t)),!t)return new Di;if(t instanceof Di)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(r-n)/u+6*(r<n):r===i?(n-e)/u+2:(e-r)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new Di(a,u,c,t.opacity)}function Di(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Ii(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function Ni(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}ii(ui,ji,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:xi,formatHex:xi,formatHsl:function(){return Ci(this).formatHsl()},formatRgb:Oi,toString:Oi}),ii(Ei,ki,ai(ui,{brighter:function(t){return t=null==t?li:Math.pow(li,t),new Ei(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?ci:Math.pow(ci,t),new Ei(this.r*t,this.g*t,this.b*t,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:Ai,formatHex:Ai,formatRgb:_i,toString:_i})),ii(Di,(function(t,e,r,n){return 1===arguments.length?Ci(t):new Di(t,e,r,null==n?1:n)}),ai(ui,{brighter:function(t){return t=null==t?li:Math.pow(li,t),new Di(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?ci:Math.pow(ci,t),new Di(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new Ei(Ii(t>=240?t-240:t+120,o,n),Ii(t,o,n),Ii(t<120?t+240:t-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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const Bi=t=>()=>t;function Ri(t,e){return function(r){return t+r*e}}function Li(t){return 1==(t=+t)?zi:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):Bi(isNaN(e)?r:e)}}function zi(t,e){var r=e-t;return r?Ri(t,r):Bi(isNaN(t)?e:t)}const Ui=function t(e){var r=Li(e);function n(t,e){var n=r((t=ki(t)).r,(e=ki(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=zi(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Fi(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),u=new Array(o);for(r=0;r<o;++r)n=ki(e[r]),i[r]=n.r||0,a[r]=n.g||0,u[r]=n.b||0;return i=t(i),a=t(a),u=t(u),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=u(t),n+""}}}Fi((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,u=n<e-1?t[n+2]:2*i-o;return Ni((r-n/e)*e,a,o,i,u)}})),Fi((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],i=t[n%e],a=t[(n+1)%e],u=t[(n+2)%e];return Ni((r-n/e)*e,o,i,a,u)}}));function Ki(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Gi(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function $i(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Wi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function qi(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Gi(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Yi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hi=new RegExp(Yi.source,"g");function Xi(t,e){var r,n,o,i=Yi.lastIndex=Hi.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(r=Yi.exec(t))&&(n=Hi.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(r=r[0])===(n=n[0])?u[a]?u[a]+=n:u[++a]=n:(u[++a]=null,c.push({i:a,x:Wi(r,n)})),i=Hi.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var r,n=0;n<e;++n)u[(r=c[n]).i]=r.x(t);return u.join("")})}function Vi(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function Gi(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?Bi(e):("number"===o?Wi:"string"===o?(r=ji(e))?(e=r,Ui):Xi:e instanceof ji?Ui:e instanceof Date?$i:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?Ki:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?qi:Wi:Vi))(t,e)}function Zi(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Ji(t){return+t}var Qi=[0,1];function ta(t){return t}function ea(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function ra(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=ea(o,n),i=r(a,i)):(n=ea(n,o),i=r(i,a)),function(t){return i(n(t))}}function na(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=ea(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=oi(t,e,1,n)-1;return i[r](o[r](e))}}function oa(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ia(){var t,e,r,n,o,i,a=Qi,u=Qi,c=Gi,l=ta;function s(){var t=Math.min(a.length,u.length);return l!==ta&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?na:ra,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),u,c)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(u,a.map(t),Wi)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Ji),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=Zi,s()},f.clamp=function(t){return arguments.length?(l=!!t||ta,s()):l!==ta},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function aa(){return ia()(ta,ta)}var ua,ca=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function la(t){if(!(e=ca.exec(t)))throw new Error("invalid format: "+t);var e;return new sa({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function sa(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function fa(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function pa(t){return(t=fa(Math.abs(t)))?t[1]:NaN}function ha(t,e){var r=fa(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}la.prototype=sa.prototype,sa.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};const da={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return ha(100*t,e)},r:ha,s:function(t,e){var r=fa(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(ua=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+fa(t,Math.max(0,e+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function ya(t){return t}var va,ma,ba,ga=Array.prototype.map,wa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xa(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?ya:(e=ga.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?ya:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ga.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=la(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(y=!0,b="g"):da[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var g="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===p?i:/[%p]/.test(b)?c:"",x=da[b],O=/[defgprs%]/.test(b);function j(t){var o,i,c,p=g,j=w;if("c"===b)j=x(t)+j,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,j=("s"===b?wa[8+ua/3]:"")+j+(S&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){j=(46===c?a+t.slice(o+1):t.slice(o))+j,t=t.slice(0,o);break}}y&&!h&&(t=n(t,1/0));var P=p.length+t.length+j.length,k=P<d?new Array(d-P+1).join(e):"";switch(y&&h&&(t=n(k+t,k.length?d-j.length:1/0),k=""),r){case"<":t=p+t+j+k;break;case"=":t=p+k+t+j;break;case"^":t=k.slice(0,P=k.length>>1)+p+t+j+k.slice(P);break;default:t=k+p+t+j}return u(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return t+""},j}return{format:f,formatPrefix:function(t,e){var r=f(((t=la(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(pa(e)/3))),o=Math.pow(10,-n),i=wa[8+n/3];return function(t){return r(o*t)+i}}}}function Oa(t,e,r,n){var o,i=Go(t,e,r);switch((n=la(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pa(e)/3)))-pa(Math.abs(t)))}(i,a))||(n.precision=o),ba(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,pa(e)-pa(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-pa(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return ma(n)}function ja(t){var e=t.domain;return t.ticks=function(t){var r=e();return Xo(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Oa(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l<c&&(o=c,c=l,l=o,o=a,a=u,u=o);s-- >0;){if((o=Vo(c,l,r))===n)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function Sa(){var t=aa();return t.copy=function(){return oa(t,Sa())},Co.apply(t,arguments),ja(t)}function Pa(t){var e;function r(t){return null==t||isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,Ji),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Pa(t).unknown(e)},t=arguments.length?Array.from(t,Ji):[0,1],ja(r)}function ka(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function Ea(t){return Math.log(t)}function Aa(t){return Math.exp(t)}function _a(t){return-Math.log(-t)}function Ma(t){return-Math.exp(-t)}function Ta(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ca(t){return(e,r)=>-t(-e,r)}function Da(t){const e=t(Ea,Aa),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Ta:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=Ca(n),o=Ca(o),t(_a,Ma)):t(Ea,Aa),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=n(a),p=n(u);const h=null==t?10:+t;let d=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;d.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;d.push(s)}2*d.length<h&&(d=Xo(a,u,h))}else d=Xo(f,p,Math.min(p-f,h)).map(o);return c?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=la(r)).precision||(r.trim=!0),r=ma(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(ka(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function Ia(){const t=Da(ia()).domain([1,10]);return t.copy=()=>oa(t,Ia()).base(t.base()),Co.apply(t,arguments),t}function Na(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ba(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Ra(t){var e=1,r=t(Na(e),Ba(e));return r.constant=function(r){return arguments.length?t(Na(e=+r),Ba(e)):e},ja(r)}function La(){var t=Ra(ia());return t.copy=function(){return oa(t,La()).constant(t.constant())},Co.apply(t,arguments)}function za(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ua(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Fa(t){return t<0?-t*t:t*t}function Ka(t){var e=t(ta,ta),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(ta,ta):.5===r?t(Ua,Fa):t(za(r),za(1/r)):r},ja(e)}function $a(){var t=Ka(ia());return t.copy=function(){return oa(t,$a()).exponent(t.exponent())},Co.apply(t,arguments),t}function Wa(){return $a.apply(null,arguments).exponent(.5)}function qa(t){return Math.sign(t)*t*t}function Ya(){var t,e=aa(),r=[0,1],n=!1;function o(r){var o=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(r));return isNaN(o)?t:n?Math.round(o):o}return o.invert=function(t){return e.invert(qa(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,Ji)).map(qa)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(n=!!t,o):n},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return Ya(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},Co.apply(o,arguments),ja(o)}function Ha(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function Xa(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function Va(t=Zo){if(t===Zo)return Ga;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}function Ga(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Za(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?Ga:Va(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,u=Math.log(i),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(i-c)/i)*(a-i/2<0?-1:1);Za(t,e,Math.max(r,Math.floor(e-a*c/i+l)),Math.min(n,Math.floor(e+(i-a)*c/i+l)),o)}const i=t[e];let a=r,u=n;for(Ja(t,r,e),o(t[n],i)>0&&Ja(t,r,n);a<u;){for(Ja(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[r],i)?Ja(t,r,u):(++u,Ja(t,u,n)),u<=e&&(r=u+1),e<=u&&(n=u-1)}return t}function Ja(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function Qa(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return Xa(t);if(e>=1)return Ha(t);var n,o=(n-1)*e,i=Math.floor(o),a=Ha(Za(t,i).subarray(0,i+1));return a+(Xa(t.subarray(i+1))-a)*(o-i)}}function tu(t,e,r=ei){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function eu(){var t,e=[],r=[],n=[];function o(){var t=0,o=Math.max(1,r.length);for(n=new Array(o-1);++t<o;)n[t-1]=tu(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:r[oi(n,e)]}return i.invertExtent=function(t){var o=r.indexOf(t);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Zo),o()},i.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return n.slice()},i.copy=function(){return eu().domain(e).range(r).unknown(t)},Co.apply(i,arguments)}function ru(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[oi(o,e,0,n)]:t}function u(){var t=-1;for(o=new Array(n);++t<n;)o[t]=((t+1)*r-(t-n)*e)/(n+1);return a}return a.domain=function(t){return arguments.length?([e,r]=t,e=+e,r=+r,u()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,u()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=n?[o[n-1],r]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return ru().domain([e,r]).range(i).unknown(t)},Co.apply(ja(a),arguments)}function nu(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[oi(e,o,0,n)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),n=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return nu().domain(e).range(r).unknown(t)},Co.apply(o,arguments)}va=xa({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ma=va.format,ba=va.formatPrefix;const ou=1e3,iu=6e4,au=36e5,uu=864e5,cu=6048e5,lu=2592e6,su=31536e6,fu=new Date,pu=new Date;function hu(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let u;do{a.push(u=new Date(+r)),e(r,i),t(r)}while(u<r&&r<n);return a},o.filter=r=>hu((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(fu.setTime(+e),pu.setTime(+n),t(fu),t(pu),Math.floor(r(fu,pu))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const du=hu((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));du.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?hu((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):du:null);du.range;const yu=hu((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*ou)}),((t,e)=>(e-t)/ou),(t=>t.getUTCSeconds())),vu=(yu.range,hu((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ou)}),((t,e)=>{t.setTime(+t+e*iu)}),((t,e)=>(e-t)/iu),(t=>t.getMinutes()))),mu=(vu.range,hu((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*iu)}),((t,e)=>(e-t)/iu),(t=>t.getUTCMinutes()))),bu=(mu.range,hu((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ou-t.getMinutes()*iu)}),((t,e)=>{t.setTime(+t+e*au)}),((t,e)=>(e-t)/au),(t=>t.getHours()))),gu=(bu.range,hu((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*au)}),((t,e)=>(e-t)/au),(t=>t.getUTCHours()))),wu=(gu.range,hu((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*iu)/uu),(t=>t.getDate()-1))),xu=(wu.range,hu((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/uu),(t=>t.getUTCDate()-1))),Ou=(xu.range,hu((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/uu),(t=>Math.floor(t/uu))));Ou.range;function ju(t){return hu((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*iu)/cu))}const Su=ju(0),Pu=ju(1),ku=ju(2),Eu=ju(3),Au=ju(4),_u=ju(5),Mu=ju(6);Su.range,Pu.range,ku.range,Eu.range,Au.range,_u.range,Mu.range;function Tu(t){return hu((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/cu))}const Cu=Tu(0),Du=Tu(1),Iu=Tu(2),Nu=Tu(3),Bu=Tu(4),Ru=Tu(5),Lu=Tu(6),zu=(Cu.range,Du.range,Iu.range,Nu.range,Bu.range,Ru.range,Lu.range,hu((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Uu=(zu.range,hu((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),Fu=(Uu.range,hu((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));Fu.every=t=>isFinite(t=Math.floor(t))&&t>0?hu((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null;Fu.range;const Ku=hu((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));Ku.every=t=>isFinite(t=Math.floor(t))&&t>0?hu((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null;Ku.range;function $u(t,e,r,n,o,i){const a=[[yu,1,ou],[yu,5,5e3],[yu,15,15e3],[yu,30,3e4],[i,1,iu],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,au],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,uu],[n,2,1728e5],[r,1,cu],[e,1,lu],[e,3,7776e6],[t,1,su]];function u(e,r,n){const o=Math.abs(r-e)/n,i=Qo((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Go(e/su,r/su,n));if(0===i)return du.every(Math.max(Go(e,r,n),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:u(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},u]}const[Wu,qu]=$u(Ku,Uu,Cu,Ou,gu,mu),[Yu,Hu]=$u(Fu,zu,Su,wu,bu,vu);var Xu=new Date,Vu=new Date;function Gu(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(r){return t(r=new Date(r-1)),e(r,1),t(r),r},o.round=function(t){var e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=function(t,r){return e(t=new Date(+t),null==r?1:Math.floor(r)),t},o.range=function(r,n,i){var a,u=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return u;do{u.push(a=new Date(+r)),e(r,i),t(r)}while(a<r&&r<n);return u},o.filter=function(r){return Gu((function(e){if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),(function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}))},r&&(o.count=function(e,n){return Xu.setTime(+e),Vu.setTime(+n),t(Xu),t(Vu),Math.floor(r(Xu,Vu))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?function(e){return n(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var Zu=864e5,Ju=6048e5;function Qu(t){return Gu((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Ju}))}var tc=Qu(0),ec=Qu(1),rc=Qu(2),nc=Qu(3),oc=Qu(4),ic=Qu(5),ac=Qu(6),uc=(tc.range,ec.range,rc.range,nc.range,oc.range,ic.range,ac.range,Gu((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Zu}),(function(t){return t.getUTCDate()-1})));const cc=uc;uc.range;function lc(t){return Gu((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Ju}))}var sc=lc(0),fc=lc(1),pc=lc(2),hc=lc(3),dc=lc(4),yc=lc(5),vc=lc(6),mc=(sc.range,fc.range,pc.range,hc.range,dc.range,yc.range,vc.range,Gu((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Zu}),(function(t){return t.getDate()-1})));const bc=mc;mc.range;var gc=Gu((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));gc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Gu((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};const wc=gc;gc.range;var xc=Gu((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));xc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Gu((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};const Oc=xc;xc.range;function jc(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Sc(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Pc(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var kc,Ec,Ac,_c={"-":"",_:" ",0:"0"},Mc=/^\s*\d+/,Tc=/^%/,Cc=/[\\^$*+?|[\]().{}]/g;function Dc(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function Ic(t){return t.replace(Cc,"\\$&")}function Nc(t){return new RegExp("^(?:"+t.map(Ic).join("|")+")","i")}function Bc(t){for(var e={},r=-1,n=t.length;++r<n;)e[t[r].toLowerCase()]=r;return e}function Rc(t,e,r){var n=Mc.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Lc(t,e,r){var n=Mc.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function zc(t,e,r){var n=Mc.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Uc(t,e,r){var n=Mc.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Fc(t,e,r){var n=Mc.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Kc(t,e,r){var n=Mc.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function $c(t,e,r){var n=Mc.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Wc(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function qc(t,e,r){var n=Mc.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Yc(t,e,r){var n=Mc.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Hc(t,e,r){var n=Mc.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Xc(t,e,r){var n=Mc.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Vc(t,e,r){var n=Mc.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Gc(t,e,r){var n=Mc.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Zc(t,e,r){var n=Mc.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Jc(t,e,r){var n=Mc.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Qc(t,e,r){var n=Mc.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function tl(t,e,r){var n=Tc.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function el(t,e,r){var n=Mc.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function rl(t,e,r){var n=Mc.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function nl(t,e){return Dc(t.getDate(),e,2)}function ol(t,e){return Dc(t.getHours(),e,2)}function il(t,e){return Dc(t.getHours()%12||12,e,2)}function al(t,e){return Dc(1+bc.count(wc(t),t),e,3)}function ul(t,e){return Dc(t.getMilliseconds(),e,3)}function cl(t,e){return ul(t,e)+"000"}function ll(t,e){return Dc(t.getMonth()+1,e,2)}function sl(t,e){return Dc(t.getMinutes(),e,2)}function fl(t,e){return Dc(t.getSeconds(),e,2)}function pl(t){var e=t.getDay();return 0===e?7:e}function hl(t,e){return Dc(sc.count(wc(t)-1,t),e,2)}function dl(t){var e=t.getDay();return e>=4||0===e?dc(t):dc.ceil(t)}function yl(t,e){return t=dl(t),Dc(dc.count(wc(t),t)+(4===wc(t).getDay()),e,2)}function vl(t){return t.getDay()}function ml(t,e){return Dc(fc.count(wc(t)-1,t),e,2)}function bl(t,e){return Dc(t.getFullYear()%100,e,2)}function gl(t,e){return Dc((t=dl(t)).getFullYear()%100,e,2)}function wl(t,e){return Dc(t.getFullYear()%1e4,e,4)}function xl(t,e){var r=t.getDay();return Dc((t=r>=4||0===r?dc(t):dc.ceil(t)).getFullYear()%1e4,e,4)}function Ol(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Dc(e/60|0,"0",2)+Dc(e%60,"0",2)}function jl(t,e){return Dc(t.getUTCDate(),e,2)}function Sl(t,e){return Dc(t.getUTCHours(),e,2)}function Pl(t,e){return Dc(t.getUTCHours()%12||12,e,2)}function kl(t,e){return Dc(1+cc.count(Oc(t),t),e,3)}function El(t,e){return Dc(t.getUTCMilliseconds(),e,3)}function Al(t,e){return El(t,e)+"000"}function _l(t,e){return Dc(t.getUTCMonth()+1,e,2)}function Ml(t,e){return Dc(t.getUTCMinutes(),e,2)}function Tl(t,e){return Dc(t.getUTCSeconds(),e,2)}function Cl(t){var e=t.getUTCDay();return 0===e?7:e}function Dl(t,e){return Dc(tc.count(Oc(t)-1,t),e,2)}function Il(t){var e=t.getUTCDay();return e>=4||0===e?oc(t):oc.ceil(t)}function Nl(t,e){return t=Il(t),Dc(oc.count(Oc(t),t)+(4===Oc(t).getUTCDay()),e,2)}function Bl(t){return t.getUTCDay()}function Rl(t,e){return Dc(ec.count(Oc(t)-1,t),e,2)}function Ll(t,e){return Dc(t.getUTCFullYear()%100,e,2)}function zl(t,e){return Dc((t=Il(t)).getUTCFullYear()%100,e,2)}function Ul(t,e){return Dc(t.getUTCFullYear()%1e4,e,4)}function Fl(t,e){var r=t.getUTCDay();return Dc((t=r>=4||0===r?oc(t):oc.ceil(t)).getUTCFullYear()%1e4,e,4)}function Kl(){return"+0000"}function $l(){return"%"}function Wl(t){return+t}function ql(t){return Math.floor(+t/1e3)}function Yl(t){return new Date(t)}function Hl(t){return t instanceof Date?+t:+new Date(+t)}function Xl(t,e,r,n,o,i,a,u,c,l){var s=aa(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),w=l("%Y");function x(t){return(c(t)<t?h:u(t)<t?d:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Hl)):p().map(Yl)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(ka(r,t)):s},s.copy=function(){return oa(s,Xl(t,e,r,n,o,i,a,u,c,l))},s}function Vl(){return Co.apply(Xl(Yu,Hu,Fu,zu,Su,wu,bu,vu,yu,Ec).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Gl(){return Co.apply(Xl(Wu,qu,Ku,Uu,Cu,xu,gu,mu,yu,Ac).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zl(){var t,e,r,n,o,i=0,a=1,u=ta,c=!1;function l(e){return null==e||isNaN(e=+e)?o:u(0===r?.5:(e=(n(e)-t)*r,c?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,u=t(r,n),l):[u(0),u(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=s(Gi),l.rangeRound=s(Zi),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function Jl(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ql(){var t=ja(Zl()(ta));return t.copy=function(){return Jl(t,Ql())},Do.apply(t,arguments)}function ts(){var t=Da(Zl()).domain([1,10]);return t.copy=function(){return Jl(t,ts()).base(t.base())},Do.apply(t,arguments)}function es(){var t=Ra(Zl());return t.copy=function(){return Jl(t,es()).constant(t.constant())},Do.apply(t,arguments)}function rs(){var t=Ka(Zl());return t.copy=function(){return Jl(t,rs()).exponent(t.exponent())},Do.apply(t,arguments)}function ns(){return rs.apply(null,arguments).exponent(.5)}function os(){var t=[],e=ta;function r(r){if(null!=r&&!isNaN(r=+r))return e((oi(t,r,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(Zo),r},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.range=function(){return t.map(((r,n)=>e(n/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((r,n)=>Qa(t,n/e)))},r.copy=function(){return os(e).domain(t)},Do.apply(r,arguments)}function is(){var t,e,r,n,o,i,a,u=0,c=.5,l=1,s=1,f=ta,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=Gi);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([u,c,l]=a,t=i(u=+u),e=i(c=+c),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[u,c,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=d(Gi),h.rangeRound=d(Zi),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(u),e=a(c),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function as(){var t=ja(is()(ta));return t.copy=function(){return Jl(t,as())},Do.apply(t,arguments)}function us(){var t=Da(is()).domain([.1,1,10]);return t.copy=function(){return Jl(t,us()).base(t.base())},Do.apply(t,arguments)}function cs(){var t=Ra(is());return t.copy=function(){return Jl(t,cs()).constant(t.constant())},Do.apply(t,arguments)}function ls(){var t=Ka(is());return t.copy=function(){return Jl(t,ls()).exponent(t.exponent())},Do.apply(t,arguments)}function ss(){return ls.apply(null,arguments).exponent(.5)}function fs(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function ps(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function hs(t,e){return t[e]}function ds(t){const e=[];return e.key=t,e}!function(t){kc=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Nc(o),s=Bc(o),f=Nc(i),p=Bc(i),h=Nc(a),d=Bc(a),y=Nc(u),v=Bc(u),m=Nc(c),b=Bc(c),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:nl,e:nl,f:cl,g:gl,G:xl,H:ol,I:il,j:al,L:ul,m:ll,M:sl,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Wl,s:ql,S:fl,u:pl,U:hl,V:yl,w:vl,W:ml,x:null,X:null,y:bl,Y:wl,Z:Ol,"%":$l},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:jl,e:jl,f:Al,g:zl,G:Fl,H:Sl,I:Pl,j:kl,L:El,m:_l,M:Ml,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Wl,s:ql,S:Tl,u:Cl,U:Dl,V:Nl,w:Bl,W:Rl,x:null,X:null,y:Ll,Y:Ul,Z:Kl,"%":$l},x={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:Hc,e:Hc,f:Qc,g:$c,G:Kc,H:Vc,I:Vc,j:Xc,L:Jc,m:Yc,M:Gc,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s[n[0].toLowerCase()],r+n[0].length):-1},q:qc,Q:el,s:rl,S:Zc,u:Lc,U:zc,V:Uc,w:Rc,W:Fc,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:$c,Y:Kc,Z:Wc,"%":tl};function O(t,e){return function(r){var n,o,i,a=[],u=-1,c=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=_c[n=t.charAt(++u)])?n=t.charAt(++u):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function j(t,e){return function(r){var n,o,i=Pc(1900,void 0,1);if(S(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=Sc(Pc(i.y,0,1))).getUTCDay(),n=o>4||0===o?ec.ceil(n):ec(n),n=cc.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=jc(Pc(i.y,0,1))).getDay(),n=o>4||0===o?fc.ceil(n):fc(n),n=bc.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Sc(Pc(i.y,0,1)).getUTCDay():jc(Pc(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Sc(i)):jc(i)}}function S(t,e,r,n){for(var o,i,a=0,u=e.length,c=r.length;a<u;){if(n>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=x[o in _c?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=O(r,g),g.X=O(n,g),g.c=O(e,g),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}(t),Ec=kc.format,kc.parse,Ac=kc.utcFormat,kc.utcParse}({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"]});var ys=r(1684),vs=r.n(ys),ms=r(7307),bs=r.n(ms),gs=r(3031),ws=r.n(gs),xs=r(8351),Os=r.n(xs);function js(t){return function(t){if(Array.isArray(t))return Ss(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ss(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ss(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ss(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ps=function(t){return t},ks={"@@functional/placeholder":!0},Es=function(t){return t===ks},As=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Es(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},_s=function t(e,r){return 1===e?r:As((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==ks})).length;return a>=e?r.apply(void 0,o):t(e-a,As((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map((function(t){return Es(t)?e.shift():t}));return r.apply(void 0,js(i).concat(e))})))}))},Ms=function(t){return _s(t.length,t)},Ts=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},Cs=Ms((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),Ds=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Ps;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},Is=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Ns=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};var Bs=Ms((function(t,e,r){var n=+t;return n+r*(+e-n)})),Rs=Ms((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),Ls=Ms((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}));const zs={rangeStep:function(t,e,r){for(var n=new(Os())(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new(Os())(t).abs().log(10).toNumber())+1},interpolateNumber:Bs,uninterpolateNumber:Rs,uninterpolateTruncation:Ls};function Us(t){return function(t){if(Array.isArray(t))return $s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Ks(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fs(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(t,e)||Ks(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ks(t,e){if(t){if("string"==typeof t)return $s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$s(t,e):void 0}}function $s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ws(t){var e=Fs(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function qs(t,e,r){if(t.lte(0))return new(Os())(0);var n=zs.getDigitCount(t.toNumber()),o=new(Os())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new(Os())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new(Os())(Math.ceil(u))}function Ys(t,e,r){var n=1,o=new(Os())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(Os())(10).pow(zs.getDigitCount(t)-1),o=new(Os())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(Os())(Math.floor(t)))}else 0===t?o=new(Os())(Math.floor((e-1)/2)):r||(o=new(Os())(Math.floor(t)));var a=Math.floor((e-1)/2);return Ds(Cs((function(t){return o.add(new(Os())(t-a).mul(n)).toNumber()})),Ts)(0,e)}function Hs(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new(Os())(0),tickMin:new(Os())(0),tickMax:new(Os())(0)};var i,a=qs(new(Os())(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new(Os())(0):(i=new(Os())(t).add(e).div(2)).sub(new(Os())(i).mod(a));var u=Math.ceil(i.sub(t).div(a).toNumber()),c=Math.ceil(new(Os())(e).sub(i).div(a).toNumber()),l=u+c+1;return l>r?Hs(t,e,r,n,o+1):(l<r&&(c=e>0?c+(r-l):c,u=e>0?u:u+(r-l)),{step:a,tickMin:i.sub(new(Os())(u).mul(a)),tickMax:i.add(new(Os())(c).mul(a))})}var Xs=Ns((function(t){var e=Fs(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),u=Fs(Ws([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(Us(Ts(0,o-1).map((function(){return 1/0})))):[].concat(Us(Ts(0,o-1).map((function(){return-1/0}))),[l]);return r>n?Is(s):s}if(c===l)return Ys(c,o,i);var f=Hs(c,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=zs.rangeStep(h,d.add(new(Os())(.1).mul(p)),p);return r>n?Is(y):y})),Vs=(Ns((function(t){var e=Fs(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),u=Fs(Ws([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[r,n];if(c===l)return Ys(c,o,i);var s=qs(new(Os())(l).sub(c).div(a-1),i,0),f=Ds(Cs((function(t){return new(Os())(c).add(new(Os())(t).mul(s)).toNumber()})),Ts)(0,a).filter((function(t){return t>=c&&t<=l}));return r>n?Is(f):f})),Ns((function(t,e){var r=Fs(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Fs(Ws([n,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var l=Math.max(e,2),s=qs(new(Os())(c).sub(u).div(l-1),i,0),f=[].concat(Us(zs.rangeStep(new(Os())(u),new(Os())(c).sub(new(Os())(.99).mul(s)),s)),[c]);return n>o?Is(f):f}))),Gs="Invariant failed";function Zs(t,e){if(!t)throw new Error(Gs)}var Js=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Qs(t){return Qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(t)}function tf(){return tf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tf.apply(this,arguments)}function ef(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return rf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rf(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function nf(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function of(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ff(n.key),n)}}function af(t,e,r){return e=cf(e),function(t,e){if(e&&("object"===Qs(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,uf()?Reflect.construct(e,r||[],cf(t).constructor):e.apply(t,r))}function uf(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(uf=function(){return!!t})()}function cf(t){return cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cf(t)}function lf(t,e){return lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lf(t,e)}function sf(t,e,r){return(e=ff(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ff(t){var e=function(t,e){if("object"!=Qs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Qs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qs(e)?e:e+""}var pf=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),af(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lf(t,e)}(e,t),r=e,n=[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,a=t.dataPointFormatter,u=t.xAxis,c=t.yAxis,l=nf(t,Js),s=en(l,!1);"x"===this.props.direction&&"number"!==u.type&&Zs(!1);var f=i.map((function(t){var i=a(t,o),l=i.x,f=i.y,p=i.value,h=i.errorVal;if(!h)return null;var d,y,v=[];if(Array.isArray(h)){var m=ef(h,2);d=m[0],y=m[1]}else d=y=h;if("vertical"===r){var b=u.scale,g=f+e,w=g+n,x=g-n,O=b(p-d),j=b(p+y);v.push({x1:j,y1:w,x2:j,y2:x}),v.push({x1:O,y1:g,x2:j,y2:g}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var S=c.scale,P=l+e,k=P-n,E=P+n,A=S(p-d),_=S(p+y);v.push({x1:k,y1:_,x2:E,y2:_}),v.push({x1:P,y1:A,x2:P,y2:_}),v.push({x1:k,y1:A,x2:E,y2:A})}return q().createElement(On,tf({className:"recharts-errorBar",key:"bar-".concat(v.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},s),v.map((function(t){return q().createElement("line",tf({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return q().createElement(On,{className:"recharts-errorBars"},f)}}],n&&of(r.prototype,n),o&&of(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(q().Component);sf(pf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),sf(pf,"displayName","ErrorBar");var hf=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]},df=["children","width","height","viewBox","className","style","title","desc"];function yf(){return yf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yf.apply(this,arguments)}function vf(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function mf(t){var e=t.children,r=t.width,n=t.height,o=t.viewBox,i=t.className,a=t.style,u=t.title,c=t.desc,l=vf(t,df),s=o||{width:r,height:n,x:0,y:0},f=H("recharts-surface",i);return q().createElement("svg",yf({},en(l,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),q().createElement("title",null,u),q().createElement("desc",null,c),e)}Math.abs,Math.atan2;const bf=Math.cos,gf=(Math.max,Math.min,Math.sin),wf=Math.sqrt,xf=Math.PI,Of=2*xf;const jf={draw(t,e){const r=wf(e/xf);t.moveTo(r,0),t.arc(0,0,r,0,Of)}},Sf={draw(t,e){const r=wf(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Pf=wf(1/3),kf=2*Pf,Ef={draw(t,e){const r=wf(e/kf),n=r*Pf;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Af={draw(t,e){const r=wf(e),n=-r/2;t.rect(n,n,r,r)}},_f=gf(xf/10)/gf(7*xf/10),Mf=gf(Of/10)*_f,Tf=-bf(Of/10)*_f,Cf={draw(t,e){const r=wf(.8908130915292852*e),n=Mf*r,o=Tf*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Of*e/5,a=bf(i),u=gf(i);t.lineTo(u*r,-a*r),t.lineTo(a*n-u*o,u*n+a*o)}t.closePath()}},Df=wf(3),If={draw(t,e){const r=-wf(e/(3*Df));t.moveTo(0,2*r),t.lineTo(-Df*r,-r),t.lineTo(Df*r,-r),t.closePath()}},Nf=-.5,Bf=wf(3)/2,Rf=1/wf(12),Lf=3*(Rf/2+1),zf={draw(t,e){const r=wf(e/Lf),n=r/2,o=r*Rf,i=n,a=r*Rf+r,u=-i,c=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(u,c),t.lineTo(Nf*n-Bf*o,Bf*n+Nf*o),t.lineTo(Nf*i-Bf*a,Bf*i+Nf*a),t.lineTo(Nf*u-Bf*c,Bf*u+Nf*c),t.lineTo(Nf*n+Bf*o,Nf*o-Bf*n),t.lineTo(Nf*i+Bf*a,Nf*a-Bf*i),t.lineTo(Nf*u+Bf*c,Nf*c-Bf*u),t.closePath()}};wf(3),wf(3);function Uf(t){return Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(t)}var Ff=["type","size","sizeType"];function Kf(){return Kf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Kf.apply(this,arguments)}function $f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$f(Object(r),!0).forEach((function(e){qf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qf(t,e,r){var n;return n=function(t,e){if("object"!=Uf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Uf(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yf(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Hf={symbolCircle:jf,symbolCross:Sf,symbolDiamond:Ef,symbolSquare:Af,symbolStar:Cf,symbolTriangle:If,symbolWye:zf},Xf=Math.PI/180,Vf=function(t){var e,r,n=t.type,o=void 0===n?"circle":n,i=t.size,a=void 0===i?64:i,u=t.sizeType,c=void 0===u?"area":u,l=Wf(Wf({},Yf(t,Ff)),{},{type:o,size:a,sizeType:c}),s=l.className,f=l.cx,p=l.cy,h=en(l,!0);return f===+f&&p===+p&&a===+a?q().createElement("path",Kf({},h,{className:H("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(p,")"),d:(e=function(t){var e="symbol".concat(pr()(t));return Hf[e]||jf}(o),r=function(t,e){let r=null,n=ar(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:Qe(t||jf),e="function"==typeof e?e:Qe(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:Qe(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:Qe(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Xf;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(a,c,o)),r())})):null};function Gf(t){return Gf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(t)}function Zf(){return Zf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Zf.apply(this,arguments)}function Jf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ip(n.key),n)}}function tp(t,e,r){return e=rp(e),function(t,e){if(e&&("object"===Gf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ep()?Reflect.construct(e,r||[],rp(t).constructor):e.apply(t,r))}function ep(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ep=function(){return!!t})()}function rp(t){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rp(t)}function np(t,e){return np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},np(t,e)}function op(t,e,r){return(e=ip(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ip(t){var e=function(t,e){if("object"!=Gf(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Gf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Gf(e)?e:e+""}Vf.registerSymbol=function(t,e){Hf["symbol".concat(pr()(t))]=e};var ap=32,up=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),tp(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&np(t,e)}(e,t),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=ap/6,o=ap/3,i=t.inactive?e:t.color;if("plainline"===t.type)return q().createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:ap,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return q().createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(r,"h").concat(o,"\n            A").concat(n,",").concat(n,",0,1,1,").concat(2*o,",").concat(r,"\n            H").concat(ap,"M").concat(2*o,",").concat(r,"\n            A").concat(n,",").concat(n,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return q().createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(ap,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(q().isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jf(Object(r),!0).forEach((function(e){op(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,q().cloneElement(t.legendIcon,a)}return q().createElement(Vf,{fill:i,cx:r,cy:r,size:ap,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,o=e.layout,i=e.formatter,a=e.inactiveColor,u={x:0,y:0,width:ap,height:ap},c={display:"horizontal"===o?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var o=e.formatter||i,s=H(op(op({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=Se()(e.value)?null:e.value;hf(!Se()(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=e.inactive?a:e.color;return q().createElement("li",Zf({className:s,style:c,key:"legend-item-".concat(r)},xr(t.props,e,r)),q().createElement(mf,{width:n,height:n,viewBox:u,style:l},t.renderIcon(e)),q().createElement("span",{className:"recharts-legend-item-text",style:{color:p}},o?o(f,e,r):f))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return q().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],n&&Qf(r.prototype,n),o&&Qf(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(W.PureComponent);op(up,"displayName","Legend"),op(up,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var cp=r(14),lp=r.n(cp);function sp(t,e,r){return!0===e?lp()(t,r):Se()(e)?lp()(t,e):t}function fp(t){return fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fp(t)}var pp=["ref"];function hp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hp(Object(r),!0).forEach((function(e){xp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Op(n.key),n)}}function vp(t,e,r){return e=bp(e),function(t,e){if(e&&("object"===fp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,mp()?Reflect.construct(e,r||[],bp(t).constructor):e.apply(t,r))}function mp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mp=function(){return!!t})()}function bp(t){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bp(t)}function gp(t,e){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gp(t,e)}function xp(t,e,r){return(e=Op(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Op(t){var e=function(t,e){if("object"!=fp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fp(e)?e:e+""}function jp(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Sp(t){return t.value}var Pp=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return xp(t=vp(this,e,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gp(t,e)}(e,t),r=e,o=[{key:"getWithHeight",value:function(t,e){var r=dp(dp({},this.defaultProps),t.props).layout;return"vertical"===r&&Tr(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?dp({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,u=n.margin,c=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),dp(dp({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,o=e.height,i=e.wrapperStyle,a=e.payloadUniqBy,u=e.payload,c=dp(dp({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return q().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(q().isValidElement(t))return q().cloneElement(t,e);if("function"==typeof t)return q().createElement(t,e);e.ref;var r=jp(e,pp);return q().createElement(up,r)}(r,dp(dp({},this.props),{},{payload:sp(u,a,Sp)})))}}])&&yp(r.prototype,n),o&&yp(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(W.PureComponent);function kp(t){return kp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kp(t)}function Ep(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ap(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ep(Object(r),!0).forEach((function(e){_p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ep(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _p(t,e,r){var n;return n=function(t,e){if("object"!=kp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=kp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==kp(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}xp(Pp,"displayName","Legend"),xp(Pp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Mp=function(t){var e=t.children,r=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=Zr(e,Pp);if(!i)return null;var a,u=Pp.defaultProps,c=void 0!==u?Ap(Ap({},u),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:i.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?Ap(Ap({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:c.iconType||a||"square",color:zp(e),value:i||o,payload:n}})),Ap(Ap(Ap({},c),Pp.getWithHeight(i,n)),{},{payload:a,item:i})};function Tp(t){return Tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tp(t)}function Cp(t){return function(t){if(Array.isArray(t))return Dp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Dp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dp(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ip(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Np(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ip(Object(r),!0).forEach((function(e){Bp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ip(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bp(t,e,r){var n;return n=function(t,e){if("object"!=Tp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Tp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Tp(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rp(t,e,r){return Ae()(t)||Ae()(e)?r:Cr(e)?jr()(t,e,r):Se()(e)?e(t):r}function Lp(t,e,r,n){var o=bs()(t,(function(t){return Rp(t,e)}));if("number"===r){var i=o.filter((function(t){return Tr(t)||parseFloat(t)}));return i.length?[vs()(i),ke()(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!Ae()(t)})):o).map((function(t){return Cr(t)||t instanceof Date?t:""}))}var zp=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?Np(Np({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},Up=function(t,e,r,n,o){var i=Gr(e.props.children,pf).filter((function(t){return function(t,e,r){return!!Ae()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=Rp(e,r);if(Ae()(n))return t;var o=Array.isArray(n)?[vs()(n),ke()(n)]:[n,n],i=a.reduce((function(t,r){var n=Rp(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Fp=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&Up(t,e,i,n)||Lp(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},Kp=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},$p=function(t,e,r,n){if(n)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(r),a},Wp=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,u="scaleBand"===t.realScaleType?n.bandwidth()/2:2,c=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/u:0;return c="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*_r(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+c,value:t,offset:c}})).filter((function(t){return!Me()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+c,value:t,index:e,offset:c}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+c,value:t,offset:c}})):n.domain().map((function(t,e){return{coordinate:n(t)+c,value:o?o[t]:t,index:e,offset:c}}))},qp=new WeakMap,Yp=function(t,e){if("function"!=typeof e)return t;qp.has(t)||qp.set(t,new WeakMap);var r=qp.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},Hp=1e-4,Xp={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var u=Me()(t[a][r][1])?t[a][r][0]:t[a][r][1];u>=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}fs(t,e)}},none:fs,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,u=0;a<r;++a)u+=t[a][n][1]||0;o[n][1]+=o[n][0]=-u/2}fs(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var u=0,c=0,l=0;u<o;++u){for(var s=t[e[u]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<u;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}c+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,c&&(i-=l/c)}r[a-1][1]+=r[a-1][0]=i,fs(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=Me()(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},Vp=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=Xp[r],i=function(){var t=Qe([]),e=ps,r=fs,n=hs;function o(o){var i,a,u=Array.from(t.apply(this,arguments),ds),c=u.length,l=-1;for(const t of o)for(i=0,++l;i<c;++i)(u[i][l]=[0,+n(t,u[i].key,l,o)]).data=t;for(i=0,a=Je(e(u));i<c;++i)u[a[i]].index=i;return r(u,a),u}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Qe(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:Qe(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?ps:"function"==typeof t?t:Qe(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?fs:t,o):r},o}().keys(n).value((function(t,e){return+Rp(t,e,0)})).order(ps).offset(o);return i(t)};function Gp(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!Ae()(o[e.dataKey])){var u=Lr(r,"value",o[e.dataKey]);if(u)return u.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var c=Rp(o,Ae()(a)?e.dataKey:a);return Ae()(c)?null:e.scale(c)}var Zp=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var u=Rp(i,e.dataKey,e.domain[a]);return Ae()(u)?null:e.scale(u)-o/2+n},Jp=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[vs()(e.concat([t[0]]).filter(Tr)),ke()(e.concat([t[1]]).filter(Tr))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},Qp=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,th=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,eh=function(t,e,r){if(Se()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(Tr(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(Qp.test(t[0])){var o=+Qp.exec(t[0])[1];n[0]=e[0]-o}else Se()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(Tr(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(th.test(t[1])){var i=+th.exec(t[1])[1];n[1]=e[1]+i}else Se()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},rh=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=ws()(e,(function(t){return t.coordinate})),i=1/0,a=1,u=o.length;a<u;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},nh=function(t,e,r){return t&&t.length?Ce()(t,jr()(r,"type.defaultProps.domain"))?e:t:e},oh=function(t,e){var r=t.type.defaultProps?Np(Np({},t.type.defaultProps),t.props):t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,u=r.tooltipType,c=r.chartType,l=r.hide;return Np(Np({},en(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:zp(t),value:Rp(e,n),type:u,payload:e,chartType:c,hide:l})};function ih(t){return ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ih(t)}var ah=["valueAccessor"],uh=["data","dataKey","clockWise","id","textBreakAll"];function ch(t){return function(t){if(Array.isArray(t))return lh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return lh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lh(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function sh(){return sh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sh.apply(this,arguments)}function fh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ph(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fh(Object(r),!0).forEach((function(e){hh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hh(t,e,r){var n;return n=function(t,e){if("object"!=ih(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ih(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ih(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var yh=function(t){return Array.isArray(t.value)?Sn()(t.value):t.value};function vh(t){var e=t.valueAccessor,r=void 0===e?yh:e,n=dh(t,ah),o=n.data,i=n.dataKey,a=n.clockWise,u=n.id,c=n.textBreakAll,l=dh(n,uh);return o&&o.length?q().createElement(On,{className:"recharts-label-list"},o.map((function(t,e){var n=Ae()(i)?r(t,e):Rp(t&&t.payload,i),o=Ae()(u)?{}:{id:"".concat(u,"-").concat(e)};return q().createElement(Mo,sh({},en(t,!0),l,o,{parentViewBox:t.parentViewBox,value:n,textBreakAll:c,viewBox:Mo.parseViewBox(Ae()(a)?t:ph(ph({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}vh.displayName="LabelList",vh.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=Gr(t.children,vh).map((function(t,r){return(0,W.cloneElement)(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?q().createElement(vh,{key:"labelList-implicit",data:e}):q().isValidElement(t)||Se()(t)?q().createElement(vh,{key:"labelList-implicit",data:e,content:t}):dr()(t)?q().createElement(vh,sh({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(ch(n)):n};var mh,bh=["layout","type","stroke","connectNulls","isRange","ref"],gh=["key"];function wh(t){return wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wh(t)}function xh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Oh(){return Oh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Oh.apply(this,arguments)}function jh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jh(Object(r),!0).forEach((function(e){Mh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ph(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Th(n.key),n)}}function kh(t,e,r){return e=Ah(e),function(t,e){if(e&&("object"===wh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Eh()?Reflect.construct(e,r||[],Ah(t).constructor):e.apply(t,r))}function Eh(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Eh=function(){return!!t})()}function Ah(t){return Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ah(t)}function _h(t,e){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_h(t,e)}function Mh(t,e,r){return(e=Th(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Th(t){var e=function(t,e){if("object"!=wh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==wh(e)?e:e+""}var Ch=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Mh(t=kh(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),Mh(t,"id",Ir("recharts-area-")),Mh(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Se()(e)&&e()})),Mh(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Se()(e)&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_h(t,e)}(e,t),r=e,n=[{key:"renderDots",value:function(t,r,n){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,u=a.dot,c=a.points,l=a.dataKey,s=en(this.props,!1),f=en(u,!0),p=c.map((function(t,r){var n=Sh(Sh(Sh({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:c});return e.renderDotItem(u,n)})),h={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return q().createElement(On,Oh({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].x,a=n[n.length-1].x,u=t*Math.abs(i-a),c=ke()(n.map((function(t){return t.y||0})));return Tr(r)&&"number"==typeof r?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(ke()(r.map((function(t){return t.y||0}))),c)),Tr(c)?q().createElement("rect",{x:i<a?i:i-u,y:0,width:u,height:Math.floor(c+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].y,a=n[n.length-1].y,u=t*Math.abs(i-a),c=ke()(n.map((function(t){return t.x||0})));return Tr(r)&&"number"==typeof r?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(ke()(r.map((function(t){return t.x||0}))),c)),Tr(c)?q().createElement("rect",{x:0,y:i<a?i:i-u,width:c+(o?parseInt("".concat(o),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var o=this.props,i=o.layout,a=o.type,u=o.stroke,c=o.connectNulls,l=o.isRange,s=(o.ref,xh(o,bh));return q().createElement(On,{clipPath:r?"url(#clipPath-".concat(n,")"):null},q().createElement(vn,Oh({},en(s,!0),{points:t,connectNulls:c,type:a,baseLine:e,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==u&&q().createElement(vn,Oh({},en(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:t})),"none"!==u&&l&&q().createElement(vn,Oh({},en(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,u=n.animationBegin,c=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,h=f.prevBaseLine;return q().createElement(Oe,{begin:u,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var u,c=p.length/o.length,l=o.map((function(t,e){var r=Math.floor(e*c);if(p[r]){var n=p[r],o=Rr(n.x,t.x),i=Rr(n.y,t.y);return Sh(Sh({},t),{},{x:o(a),y:i(a)})}return t}));return u=Tr(i)&&"number"==typeof i?Rr(h,i)(a):Ae()(i)||Me()(i)?Rr(h,0)(a):i.map((function(t,e){var r=Math.floor(e*c);if(h[r]){var n=h[r],o=Rr(n.x,t.x),i=Rr(n.y,t.y);return Sh(Sh({},t),{},{x:o(a),y:i(a)})}return t})),r.renderAreaStatically(l,u,t,e)}return q().createElement(On,null,q().createElement("defs",null,q().createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),q().createElement(On,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(o,i,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,u=a.prevPoints,c=a.prevBaseLine,l=a.totalLength;return i&&n&&n.length&&(!u&&l>0||!Ce()(u,n)||!Ce()(c,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.top,u=e.left,c=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!o||!o.length)return null;var d=this.state.isAnimationFinished,y=1===o.length,v=H("recharts-area",i),m=c&&c.allowDataOverflow,b=l&&l.allowDataOverflow,g=m||b,w=Ae()(h)?this.id:h,x=null!==(t=en(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,j=void 0===O?3:O,S=x.strokeWidth,P=void 0===S?2:S,k=(function(t){return t&&"object"===Wr(t)&&"clipDot"in t}(n)?n:{}).clipDot,E=void 0===k||k,A=2*j+P;return q().createElement(On,{className:v},m||b?q().createElement("defs",null,q().createElement("clipPath",{id:"clipPath-".concat(w)},q().createElement("rect",{x:m?u:u-s/2,y:b?a:a-f/2,width:m?s:2*s,height:b?f:2*f})),!E&&q().createElement("clipPath",{id:"clipPath-dots-".concat(w)},q().createElement("rect",{x:u-A/2,y:a-A/2,width:s+A,height:f+A}))):null,y?null:this.renderArea(g,w),(n||y)&&this.renderDots(g,E,w),(!p||d)&&vh.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&Ph(r.prototype,n),o&&Ph(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(W.PureComponent);mh=Ch,Mh(Ch,"displayName","Area"),Mh(Ch,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Pn.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Mh(Ch,"getBaseValue",(function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,u=null!=a?a:i;if(Tr(u)&&"number"==typeof u)return u;var c="horizontal"===o?n:r,l=c.scale.domain();if("number"===c.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===u?f:"dataMax"===u||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===u?l[0]:"dataMax"===u?l[1]:l[0]})),Mh(Ch,"getComposedData",(function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,u=t.yAxisTicks,c=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,h=t.offset,d=r.layout,y=s&&s.length,v=mh.getBaseValue(r,n,o,i),m="horizontal"===d,b=!1,g=p.map((function(t,e){var r;y?r=s[f+e]:(r=Rp(t,l),Array.isArray(r)?b=!0:r=[v,r]);var n=null==r[1]||y&&null==Rp(t,l);return m?{x:Gp({axis:o,ticks:a,bandSize:c,entry:t,index:e}),y:n?null:i.scale(r[1]),value:r,payload:t}:{x:n?null:o.scale(r[1]),y:Gp({axis:i,ticks:u,bandSize:c,entry:t,index:e}),value:r,payload:t}}));return e=y||b?g.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?o.scale(e):null,y:t.y}})):m?i.scale(v):o.scale(v),Sh({points:g,baseLine:e,layout:d,isRange:b},h)})),Mh(Ch,"renderDotItem",(function(t,e){var r;if(q().isValidElement(t))r=q().cloneElement(t,e);else if(Se()(t))r=t(e);else{var n=H("recharts-area-dot","boolean"!=typeof t?t.className:""),o=e.key,i=xh(e,gh);r=q().createElement(bn,Oh({},i,{key:o,className:n}))}return r}));var Dh=r(7350),Ih=r.n(Dh);function Nh(t){return Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nh(t)}function Bh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Rh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bh(Object(r),!0).forEach((function(e){Lh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lh(t,e,r){var n;return n=function(t,e){if("object"!=Nh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Nh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Nh(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Uh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uh(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Fh=(0,W.forwardRef)((function(t,e){var r=t.aspect,n=t.initialDimension,o=void 0===n?{width:-1,height:-1}:n,i=t.width,a=void 0===i?"100%":i,u=t.height,c=void 0===u?"100%":u,l=t.minWidth,s=void 0===l?0:l,f=t.minHeight,p=t.maxHeight,h=t.children,d=t.debounce,y=void 0===d?0:d,v=t.id,m=t.className,b=t.onResize,g=t.style,w=void 0===g?{}:g,x=(0,W.useRef)(null),O=(0,W.useRef)();O.current=b,(0,W.useImperativeHandle)(e,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var j=zh((0,W.useState)({containerWidth:o.width,containerHeight:o.height}),2),S=j[0],P=j[1],k=(0,W.useCallback)((function(t,e){P((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);(0,W.useEffect)((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;k(n,o),null===(e=O.current)||void 0===e||e.call(O,n,o)};y>0&&(t=Ih()(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,o=r.height;return k(n,o),e.observe(x.current),function(){e.disconnect()}}),[k,y]);var E=(0,W.useMemo)((function(){var t=S.containerWidth,e=S.containerHeight;if(t<0||e<0)return null;hf(Mr(a)||Mr(c),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",a,c),hf(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=Mr(a)?t:a,o=Mr(c)?e:c;r&&r>0&&(n?o=n/r:o&&(n=o*r),p&&o>p&&(o=p)),hf(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,c,s,f,r);var i=!Array.isArray(h)&&Yr(h.type).endsWith("Chart");return q().Children.map(h,(function(t){return q().isValidElement(t)?(0,W.cloneElement)(t,Rh({width:n,height:o},i?{style:Rh({height:"100%",width:"100%",maxHeight:o,maxWidth:n},t.props.style)}:{})):t}))}),[r,h,c,p,f,s,S,a]);return q().createElement("div",{id:v?"".concat(v):void 0,className:H("recharts-responsive-container",m),style:Rh(Rh({},w),{},{width:a,height:c,minWidth:s,minHeight:f,maxHeight:p}),ref:x},E)})),Kh=r(3181),$h=r.n(Kh);function Wh(t){return Wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wh(t)}function qh(){return qh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qh.apply(this,arguments)}function Yh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Hh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hh(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Xh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xh(Object(r),!0).forEach((function(e){Gh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Gh(t,e,r){var n;return n=function(t,e){if("object"!=Wh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Wh(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zh(t){return Array.isArray(t)&&Cr(t[0])&&Cr(t[1])?t.join(" ~ "):t}var Jh=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,o=void 0===n?{}:n,i=t.itemStyle,a=void 0===i?{}:i,u=t.labelStyle,c=void 0===u?{}:u,l=t.payload,s=t.formatter,f=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,d=t.label,y=t.labelFormatter,v=t.accessibilityLayer,m=void 0!==v&&v,b=Vh({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),g=Vh({margin:0},c),w=!Ae()(d),x=w?d:"",O=H("recharts-default-tooltip",p),j=H("recharts-tooltip-label",h);w&&y&&null!=l&&(x=y(d,l));var S=m?{role:"status","aria-live":"assertive"}:{};return q().createElement("div",qh({className:O,style:b},S),q().createElement("p",{className:j,style:g},q().isValidElement(x)?x:"".concat(x)),function(){if(l&&l.length){var t=(f?ws()(l,f):l).map((function(t,e){if("none"===t.type)return null;var n=Vh({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),o=t.formatter||s||Zh,i=t.value,u=t.name,c=i,f=u;if(o&&null!=c&&null!=f){var p=o(i,u,t,e,l);if(Array.isArray(p)){var h=Yh(p,2);c=h[0],f=h[1]}else c=p}return q().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},Cr(f)?q().createElement("span",{className:"recharts-tooltip-item-name"},f):null,Cr(f)?q().createElement("span",{className:"recharts-tooltip-item-separator"},r):null,q().createElement("span",{className:"recharts-tooltip-item-value"},c),q().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return q().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Qh(t){return Qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qh(t)}function td(t,e,r){var n;return n=function(t,e){if("object"!=Qh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Qh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Qh(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ed="recharts-tooltip-wrapper",rd={visibility:"hidden"};function nd(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return H(ed,td(td(td(td({},"".concat(ed,"-right"),Tr(r)&&e&&Tr(e.x)&&r>=e.x),"".concat(ed,"-left"),Tr(r)&&e&&Tr(e.x)&&r<e.x),"".concat(ed,"-bottom"),Tr(n)&&e&&Tr(e.y)&&n>=e.y),"".concat(ed,"-top"),Tr(n)&&e&&Tr(e.y)&&n<e.y))}function od(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,u=t.tooltipDimension,c=t.viewBox,l=t.viewBoxDimension;if(i&&Tr(i[n]))return i[n];var s=r[n]-u-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<c[n]?Math.max(f,c[n]):Math.max(s,c[n]):f+u>c[n]+l?Math.max(s,c[n]):Math.max(f,c[n])}function id(t){return id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},id(t)}function ad(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ud(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ad(Object(r),!0).forEach((function(e){hd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ad(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dd(n.key),n)}}function ld(t,e,r){return e=fd(e),function(t,e){if(e&&("object"===id(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,sd()?Reflect.construct(e,r||[],fd(t).constructor):e.apply(t,r))}function sd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(sd=function(){return!!t})()}function fd(t){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fd(t)}function pd(t,e){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pd(t,e)}function hd(t,e,r){return(e=dd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dd(t){var e=function(t,e){if("object"!=id(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=id(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==id(e)?e:e+""}var yd=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return hd(t=ld(this,e,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),hd(t,"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pd(t,e)}(e,t),r=e,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.children,u=e.coordinate,c=e.hasPayload,l=e.isAnimationActive,s=e.offset,f=e.position,p=e.reverseDirection,h=e.useTranslate3d,d=e.viewBox,y=e.wrapperStyle,v=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,u=t.reverseDirection,c=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:c.height>0&&c.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=od({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:u,tooltipDimension:c.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=od({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:u,tooltipDimension:c.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):rd,cssClasses:nd({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:u,offsetTopLeft:s,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:d}),m=v.cssClasses,b=v.cssProperties,g=ud(ud({transition:l&&r?"transform ".concat(o,"ms ").concat(i):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return q().createElement("div",{tabIndex:-1,className:m,style:g,ref:function(e){t.wrapperNode=e}},a)}}])&&cd(r.prototype,n),o&&cd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(W.PureComponent);function vd(t){return vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(t)}function md(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?md(Object(r),!0).forEach((function(e){Sd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pd(n.key),n)}}function wd(t,e,r){return e=Od(e),function(t,e){if(e&&("object"===vd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,xd()?Reflect.construct(e,r||[],Od(t).constructor):e.apply(t,r))}function xd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xd=function(){return!!t})()}function Od(t){return Od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Od(t)}function jd(t,e){return jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jd(t,e)}function Sd(t,e,r){return(e=Pd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pd(t){var e=function(t,e){if("object"!=vd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vd(e)?e:e+""}function kd(t){return t.dataKey}var Ed=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),wd(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jd(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.content,u=e.coordinate,c=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,p=e.payloadUniqBy,h=e.position,d=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,m=e.wrapperStyle,b=null!=f?f:[];c&&b.length&&(b=sp(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),p,kd));var g=b.length>0;return q().createElement(yd,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:l,active:r,coordinate:u,hasPayload:g,offset:s,position:h,reverseDirection:d,useTranslate3d:y,viewBox:v,wrapperStyle:m},function(t,e){return q().isValidElement(t)?q().cloneElement(t,e):"function"==typeof t?q().createElement(t,e):q().createElement(Jh,e)}(a,bd(bd({},this.props),{},{payload:b})))}}])&&gd(r.prototype,n),o&&gd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(W.PureComponent);function Ad(t){return Ad="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ad(t)}function _d(){return _d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},_d.apply(this,arguments)}function Md(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Td(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Td(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Td(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Cd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cd(Object(r),!0).forEach((function(e){Id(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Id(t,e,r){var n;return n=function(t,e){if("object"!=Ad(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ad(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ad(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Sd(Ed,"displayName","Tooltip"),Sd(Ed,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Pn.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Nd=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),u=n>=0?1:-1,c=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),i+="L ".concat(t+r-c*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n        ").concat(t+r,",").concat(e+u*s[1])),i+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n        ").concat(t+r-c*s[2],",").concat(e+n)),i+="L ".concat(t+c*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n        ").concat(t,",").concat(e+n-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n            L ").concat(t+r-c*p,",").concat(e,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+u*p,"\n            L ").concat(t+r,",").concat(e+n-u*p,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-c*p,",").concat(e+n,"\n            L ").concat(t+c*p,",").concat(e+n,"\n            A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-u*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},Bd=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+u),f=Math.max(i,i+u);return r>=c&&r<=l&&n>=s&&n<=f}return!1},Rd={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ld=function(t){var e=Dd(Dd({},Rd),t),r=(0,W.useRef)(),n=Md((0,W.useState)(-1),2),o=n[0],i=n[1];(0,W.useEffect)((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,u=e.y,c=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||u!==+u||c!==+c||l!==+l||0===c||0===l)return null;var m=H("recharts-rectangle",f);return v?q().createElement(Oe,{canBegin:o>0,from:{width:c,height:l,x:a,y:u},to:{width:c,height:l,x:a,y:u},duration:h,animationEasing:p,isActive:v},(function(t){var n=t.width,i=t.height,a=t.x,u=t.y;return q().createElement(Oe,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:y,easing:p},q().createElement("path",_d({},en(e,!0),{className:m,d:Nd(a,u,n,i,s),ref:r})))})):q().createElement("path",_d({},en(e,!0),{className:m,d:Nd(a,u,c,l,s)}))};function zd(t){return zd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zd(t)}function Ud(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ud(Object(r),!0).forEach((function(e){Kd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ud(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Kd(t,e,r){var n;return n=function(t,e){if("object"!=zd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==zd(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $d=["Webkit","Moz","O","ms"];function Wd(t){return Wd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wd(t)}function qd(){return qd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qd.apply(this,arguments)}function Yd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Hd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yd(Object(r),!0).forEach((function(e){Qd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xd(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ty(n.key),n)}}function Vd(t,e,r){return e=Zd(e),function(t,e){if(e&&("object"===Wd(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Gd()?Reflect.construct(e,r||[],Zd(t).constructor):e.apply(t,r))}function Gd(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gd=function(){return!!t})()}function Zd(t){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zd(t)}function Jd(t,e){return Jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jd(t,e)}function Qd(t,e,r){return(e=ty(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ty(t){var e=function(t,e){if("object"!=Wd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wd(e)?e:e+""}var ey=function(t){return t.changedTouches&&!!t.changedTouches.length},ry=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Qd(r=Vd(this,e,[t]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),Qd(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),Qd(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})})),r.detachDragEndListener()})),Qd(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),Qd(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),Qd(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),Qd(r,"handleSlideDragStart",(function(t){var e=ey(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jd(t,e)}(e,t),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,u=i.data.length-1,c=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(o,c),f=e.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=Rp(r[t],o,t);return Se()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-o,a+u-c-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=ey(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],u=this.props,c=u.x,l=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,h=u.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,c+l-s-a):y<0&&(y=Math.max(y,c-a)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,b=v.endIndex;this.setState(Qd(Qd({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?m%p==0:b%p==0)||o<i&&b===t||"endX"===n&&(o>i?b%p==0:m%p==0)||o>i&&b===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],c=o.indexOf(u);if(-1!==c){var l=c+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(Qd({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,a=t.stroke;return q().createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,u=t.padding,c=W.Children.only(a);return c?q().cloneElement(c,{x:e,y:r,width:n,height:o,margin:u,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,o,i=this,a=this.props,u=a.y,c=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,h=a.startIndex,d=a.endIndex,y=Math.max(t,this.props.x),v=Hd(Hd({},en(this.props,!1)),{},{x:y,y:u,width:c,height:l}),m=f||"Min value: ".concat(null===(n=p[h])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=p[d])||void 0===o?void 0:o.name);return q().createElement(On,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,v))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,u=Math.min(t,e)+a,c=Math.max(Math.abs(e-t)-a,0);return q().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:u,y:n,width:c,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,u=this.state,c=u.startX,l=u.endX,s={pointerEvents:"none",fill:a};return q().createElement(On,{className:"recharts-brush-texts"},q().createElement(co,qd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:n+o/2},s),this.getTextOfTick(e)),q().createElement(co,qd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+i+5,y:n+o/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,a=t.width,u=t.height,c=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,h=l.isSlideMoving,d=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!Tr(o)||!Tr(i)||!Tr(a)||!Tr(u)||a<=0||u<=0)return null;var v=H("recharts-brush",r),m=1===q().Children.count(n),b=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=$d.reduce((function(t,n){return Fd(Fd({},t),{},Kd({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return q().createElement(On,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||y||c)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return q().createElement(q().Fragment,null,q().createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),q().createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),q().createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return q().isValidElement(t)?q().cloneElement(t,r):Se()(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return Hd({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var u=e.length,c=$o().domain($h()(0,u)).range([o,o+i-a]),l=c.domain().map((function(t){return c(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(n),scale:c,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],n&&Xd(r.prototype,n),o&&Xd(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(W.PureComponent);Qd(ry,"displayName","Brush"),Qd(ry,"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 ny=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},oy=r(3916),iy=r.n(oy),ay=r(9747),uy=r.n(ay),cy=function(t){return null};cy.displayName="Cell";var ly=r(1331),sy=r.n(ly),fy=r(3812),py=r.n(fy);function hy(t){return hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hy(t)}function dy(){return dy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dy.apply(this,arguments)}function yy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return vy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vy(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function my(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function by(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?my(Object(r),!0).forEach((function(e){gy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gy(t,e,r){var n;return n=function(t,e){if("object"!=hy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=hy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==hy(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wy=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},xy={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Oy=function(t){var e=by(by({},xy),t),r=(0,W.useRef)(),n=yy((0,W.useState)(-1),2),o=n[0],i=n[1];(0,W.useEffect)((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,u=e.y,c=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||u!==+u||c!==+c||l!==+l||s!==+s||0===c&&0===l||0===s)return null;var v=H("recharts-trapezoid",f);return y?q().createElement(Oe,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:u},to:{upperWidth:c,lowerWidth:l,height:s,x:a,y:u},duration:h,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,i=t.lowerWidth,a=t.height,u=t.x,c=t.y;return q().createElement(Oe,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,easing:p},q().createElement("path",dy({},en(e,!0),{className:v,d:wy(u,c,n,i,a),ref:r})))})):q().createElement("g",null,q().createElement("path",dy({},en(e,!0),{className:v,d:wy(a,u,c,l,s)})))};function jy(t){return jy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jy(t)}function Sy(){return Sy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Sy.apply(this,arguments)}function Py(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ky(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Py(Object(r),!0).forEach((function(e){Ey(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Py(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ey(t,e,r){var n;return n=function(t,e){if("object"!=jy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==jy(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ay=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,l=u*(a?1:-1)+n,s=Math.asin(u/l)/ho,f=c?o:o+i*s,p=c?o-i*s:o;return{center:vo(e,r,l,f),circleTangency:vo(e,r,n,f),lineTangency:vo(e,r,l*Math.cos(s*ho),p),theta:s}},_y=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return _r(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),u=i+a,c=vo(e,r,o,i),l=vo(e,r,o,u),s="M ".concat(c.x,",").concat(c.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(a)>180),",").concat(+(i>u),",\n    ").concat(l.x,",").concat(l.y,"\n  ");if(n>0){var f=vo(e,r,n,i),p=vo(e,r,n,u);s+="L ".concat(p.x,",").concat(p.y,"\n            A ").concat(n,",").concat(n,",0,\n            ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n            ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},My={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Ty=function(t){var e=ky(ky({},My),t),r=e.cx,n=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,u=e.forceCornerRadius,c=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=e.className;if(i<o||l===s)return null;var p,h=H("recharts-sector",f),d=i-o,y=Nr(a,d,0,!0);return p=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,s=_r(l-c),f=Ay({cx:e,cy:r,radius:o,angle:c,sign:s,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=Ay({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:u}),v=y.circleTangency,m=y.lineTangency,b=y.theta,g=u?Math.abs(c-l):Math.abs(c-l)-d-b;if(g<0)return a?"M ".concat(h.x,",").concat(h.y,"\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n      "):_y({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:c,endAngle:l});var w="M ".concat(h.x,",").concat(h.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n  ");if(n>0){var x=Ay({cx:e,cy:r,radius:n,angle:c,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),O=x.circleTangency,j=x.lineTangency,S=x.theta,P=Ay({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),k=P.circleTangency,E=P.lineTangency,A=P.theta,_=u?Math.abs(c-l):Math.abs(c-l)-S-A;if(_<0&&0===i)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(E.x,",").concat(E.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(k.x,",").concat(k.y,"\n      A").concat(n,",").concat(n,",0,").concat(+(_>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(j.x,",").concat(j.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,d/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:l,endAngle:s}):_y({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:l,endAngle:s}),q().createElement("path",Sy({},en(e,!0),{className:h,d:p,role:"img"}))},Cy=["option","shapeType","propTransformer","activeClassName","isActive"];function Dy(t){return Dy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dy(t)}function Iy(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ny(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function By(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ny(Object(r),!0).forEach((function(e){Ry(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ny(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ry(t,e,r){var n;return n=function(t,e){if("object"!=Dy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Dy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Dy(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ly(t,e){return By(By({},e),t)}function zy(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return q().createElement(Ld,r);case"trapezoid":return q().createElement(Oy,r);case"sector":return q().createElement(Ty,r);case"symbols":if(function(t){return"symbols"===t}(e))return q().createElement(Vf,r);break;default:return null}}function Uy(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,i=void 0===o?Ly:o,a=t.activeClassName,u=void 0===a?"recharts-active-shape":a,c=t.isActive,l=Iy(t,Cy);if((0,W.isValidElement)(r))e=(0,W.cloneElement)(r,By(By({},l),function(t){return(0,W.isValidElement)(t)?t.props:t}(r)));else if(Se()(r))e=r(l);else if(sy()(r)&&!py()(r)){var s=i(r,l);e=q().createElement(zy,{shapeType:n,elementProps:s})}else{var f=l;e=q().createElement(zy,{shapeType:n,elementProps:f})}return c?q().createElement(On,{className:u},e):e}function Fy(t,e){return null!=e&&"trapezoids"in t.props}function Ky(t,e){return null!=e&&"sectors"in t.props}function $y(t,e){return null!=e&&"points"in t.props}function Wy(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function qy(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function Yy(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function Hy(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return Fy(t,e)?r="trapezoids":Ky(t,e)?r="sectors":$y(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return Fy(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:Ky(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:$y(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=Ce()(i,t),u=r.props[o].filter((function(t){var n=function(t,e){var r;return Fy(t,e)?r=Wy:Ky(t,e)?r=qy:$y(t,e)&&(r=Yy),r}(r,e);return n(t,e)})),c=r.props[o].indexOf(u[u.length-1]);return a&&n===c}));return n.indexOf(a[a.length-1])}var Xy=["x","y"];function Vy(t){return Vy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vy(t)}function Gy(){return Gy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gy.apply(this,arguments)}function Zy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Jy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zy(Object(r),!0).forEach((function(e){Qy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qy(t,e,r){var n;return n=function(t,e){if("object"!=Vy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Vy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Vy(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tv(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ev(t,e){var r=t.x,n=t.y,o=tv(t,Xy),i="".concat(r),a=parseInt(i,10),u="".concat(n),c=parseInt(u,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return Jy(Jy(Jy(Jy(Jy({},e),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function rv(t){return q().createElement(Uy,Gy({shapeType:"rectangle",propTransformer:ev,activeClassName:"recharts-active-bar"},t))}var nv,ov=["value","background"];function iv(t){return iv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iv(t)}function av(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function uv(){return uv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uv.apply(this,arguments)}function cv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cv(Object(r),!0).forEach((function(e){yv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,vv(n.key),n)}}function fv(t,e,r){return e=hv(e),function(t,e){if(e&&("object"===iv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,pv()?Reflect.construct(e,r||[],hv(t).constructor):e.apply(t,r))}function pv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pv=function(){return!!t})()}function hv(t){return hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hv(t)}function dv(t,e){return dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dv(t,e)}function yv(t,e,r){return(e=vv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vv(t){var e=function(t,e){if("object"!=iv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=iv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==iv(e)?e:e+""}var mv=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return yv(t=fv(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),yv(t,"id",Ir("recharts-bar-")),yv(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),yv(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dv(t,e)}(e,t),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,u=en(this.props,!1);return t&&t.map((function(t,r){var c=r===i,l=c?a:n,s=lv(lv(lv({},u),t),{},{isActive:c,option:l,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return q().createElement(On,uv({className:"recharts-bar-rectangle"},xr(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(r)}),q().createElement(rv,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,l=this.state.prevData;return q().createElement(Oe,{begin:i,duration:a,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=r.map((function(t,e){var r=l&&l[e];if(r){var i=Rr(r.x,t.x),a=Rr(r.y,t.y),u=Rr(r.width,t.width),c=Rr(r.height,t.height);return lv(lv({},t),{},{x:i(o),y:a(o),width:u(o),height:c(o)})}if("horizontal"===n){var s=Rr(0,t.height)(o);return lv(lv({},t),{},{y:t.y+t.height-s,height:s})}var f=Rr(0,t.width)(o);return lv(lv({},t),{},{width:f})}));return q().createElement(On,null,t.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Ce()(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=en(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,u=av(e,ov);if(!a)return null;var c=lv(lv(lv(lv(lv({},u),{},{fill:"#eee"},a),i),xr(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return q().createElement(rv,uv({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},c))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,u=Gr(r.children,pf);if(!u)return null;var c="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Rp(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return q().createElement(On,s,u.map((function(t){return q().cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:c,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,u=t.top,c=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=H("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,m=y||v,b=Ae()(p)?this.id:p;return q().createElement(On,{className:d},y||v?q().createElement("defs",null,q().createElement("clipPath",{id:"clipPath-".concat(b)},q().createElement("rect",{x:y?a:a-c/2,y:v?u:u-l/2,width:y?c:2*c,height:v?l:2*l}))):null,q().createElement(On,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(b,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,b),(!s||h)&&vh.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&sv(r.prototype,n),o&&sv(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(W.PureComponent);function bv(t){return bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bv(t)}function gv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jv(n.key),n)}}function wv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wv(Object(r),!0).forEach((function(e){Ov(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ov(t,e,r){return(e=jv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jv(t){var e=function(t,e){if("object"!=bv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bv(e)?e:e+""}nv=mv,yv(mv,"displayName","Bar"),yv(mv,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Pn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),yv(mv,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var d=e.layout,y=r.type.defaultProps,v=void 0!==y?lv(lv({},y),r.props):r.props,m=v.dataKey,b=v.children,g=v.minPointSize,w="horizontal"===d?a:i,x=l?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:w}),j=Gr(b,cy),S=f.map((function(t,e){var n,f,p,y,v,b;l?n=function(t,e){if(!e||2!==e.length||!Tr(e[0])||!Tr(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!Tr(t[0])||t[0]<r)&&(o[0]=r),(!Tr(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=Rp(t,m),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||Zs(!1),e)}}(g,nv.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var S,P=[a.scale(n[0]),a.scale(n[1])],k=P[0],E=P[1];f=Zp({axis:i,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(S=null!=E?E:k)&&void 0!==S?S:void 0,y=h.size;var A=k-E;if(v=Number.isNaN(A)?0:A,b={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var _=_r(v||w)*(Math.abs(w)-Math.abs(v));p-=_,v+=_}}else{var M=[i.scale(n[0]),i.scale(n[1])],T=M[0],C=M[1];if(f=T,p=Zp({axis:a,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),y=C-T,v=h.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=_r(y||w)*(Math.abs(w)-Math.abs(y))}return lv(lv(lv({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:b},j&&j[e]&&j[e].props),{},{tooltipPayload:[oh(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return lv({data:S,layout:d},p)}));var Sv=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},Pv=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&gv(e.prototype,r),n&&gv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();Ov(Pv,"EPS",1e-4);var kv=function(t){var e=Object.keys(t).reduce((function(e,r){return xv(xv({},e),{},Ov({},r,Pv.create(t[r])))}),{});return xv(xv({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return iy()(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return uy()(t,(function(t,r){return e[r].isInRange(t)}))}})};function Ev(){return Ev=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ev.apply(this,arguments)}function Av(t){return Av="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Av(t)}function _v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_v(Object(r),!0).forEach((function(e){Bv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rv(n.key),n)}}function Cv(t,e,r){return e=Iv(e),function(t,e){if(e&&("object"===Av(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Dv()?Reflect.construct(e,r||[],Iv(t).constructor):e.apply(t,r))}function Dv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Dv=function(){return!!t})()}function Iv(t){return Iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Iv(t)}function Nv(t,e){return Nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nv(t,e)}function Bv(t,e,r){return(e=Rv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rv(t){var e=function(t,e){if("object"!=Av(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Av(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Av(e)?e:e+""}var Lv=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Cv(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nv(t,e)}(e,t),r=e,n=[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,o=t.r,i=t.alwaysShow,a=t.clipPathId,u=Cr(r),c=Cr(n);if(hf(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=kv({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return ny(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,h=p.shape,d=p.className,y=Mv(Mv({clipPath:ny(this.props,"hidden")?"url(#".concat(a,")"):void 0},en(this.props,!0)),{},{cx:s,cy:f});return q().createElement(On,{className:H("recharts-reference-dot",d)},e.renderDot(h,y),Mo.renderCallByParent(this.props,{x:s-o,y:f-o,width:2*o,height:2*o}))}}],n&&Tv(r.prototype,n),o&&Tv(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(q().Component);Bv(Lv,"displayName","ReferenceDot"),Bv(Lv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),Bv(Lv,"renderDot",(function(t,e){return q().isValidElement(t)?q().cloneElement(t,e):Se()(t)?t(e):q().createElement(bn,Ev({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var zv=r(2426),Uv=r.n(zv),Fv=r(7309),Kv=r.n(Fv),$v=r(104),Wv=r.n($v)()((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));var qv=(0,W.createContext)(void 0),Yv=(0,W.createContext)(void 0),Hv=(0,W.createContext)(void 0),Xv=(0,W.createContext)({}),Vv=(0,W.createContext)(void 0),Gv=(0,W.createContext)(0),Zv=(0,W.createContext)(0),Jv=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,a=t.children,u=t.width,c=t.height,l=Wv(o);return q().createElement(qv.Provider,{value:r},q().createElement(Yv.Provider,{value:n},q().createElement(Xv.Provider,{value:o},q().createElement(Hv.Provider,{value:l},q().createElement(Vv.Provider,{value:i},q().createElement(Gv.Provider,{value:c},q().createElement(Zv.Provider,{value:u},a)))))))};var Qv=function(t){var e=(0,W.useContext)(qv);null==e&&Zs(!1);var r=e[t];return null==r&&Zs(!1),r},tm=function(t){var e=(0,W.useContext)(Yv);null==e&&Zs(!1);var r=e[t];return null==r&&Zs(!1),r},em=function(){return(0,W.useContext)(Zv)},rm=function(){return(0,W.useContext)(Gv)};function nm(t){return nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nm(t)}function om(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pm(n.key),n)}}function im(t,e,r){return e=um(e),function(t,e){if(e&&("object"===nm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,am()?Reflect.construct(e,r||[],um(t).constructor):e.apply(t,r))}function am(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(am=function(){return!!t})()}function um(t){return um=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},um(t)}function cm(t,e){return cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cm(t,e)}function lm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lm(Object(r),!0).forEach((function(e){fm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fm(t,e,r){return(e=pm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pm(t){var e=function(t,e){if("object"!=nm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nm(e)?e:e+""}function hm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dm(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ym(){return ym=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ym.apply(this,arguments)}function vm(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,i=t.yAxisId,a=t.shape,u=t.className,c=t.alwaysShow,l=(0,W.useContext)(Vv),s=Qv(o),f=tm(i),p=(0,W.useContext)(Hv);if(!l||!p)return null;hf(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(t,e,r,n,o,i,a,u,c){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var h=c.y,d=t.y.apply(h,{position:i});if(ny(c,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===u?y.reverse():y}if(e){var v=c.x,m=t.x.apply(v,{position:i});if(ny(c,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?b.reverse():b}if(n){var g=c.segment.map((function(e){return t.apply(e,{position:i})}));return ny(c,"discard")&&Uv()(g,(function(e){return!t.isInRange(e)}))?null:g}return null}(kv({x:s.scale,y:f.scale}),Cr(e),Cr(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!h)return null;var d=hm(h,2),y=d[0],v=y.x,m=y.y,b=d[1],g=b.x,w=b.y,x=sm(sm({clipPath:ny(t,"hidden")?"url(#".concat(l,")"):void 0},en(t,!0)),{},{x1:v,y1:m,x2:g,y2:w});return q().createElement(On,{className:H("recharts-reference-line",u)},function(t,e){return q().isValidElement(t)?q().cloneElement(t,e):Se()(t)?t(e):q().createElement("line",ym({},e,{className:"recharts-reference-line-line"}))}(a,x),Mo.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return Sv({x:e,y:r},{x:n,y:o})}({x1:v,y1:m,x2:g,y2:w})))}var mm=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),im(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cm(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){return q().createElement(vm,this.props)}}])&&om(r.prototype,n),o&&om(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(q().Component);function bm(){return bm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bm.apply(this,arguments)}function gm(t){return gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gm(t)}function wm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wm(Object(r),!0).forEach((function(e){Em(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Om(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Am(n.key),n)}}function jm(t,e,r){return e=Pm(e),function(t,e){if(e&&("object"===gm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Sm()?Reflect.construct(e,r||[],Pm(t).constructor):e.apply(t,r))}function Sm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Sm=function(){return!!t})()}function Pm(t){return Pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pm(t)}function km(t,e){return km=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},km(t,e)}function Em(t,e,r){return(e=Am(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Am(t){var e=function(t,e){if("object"!=gm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gm(e)?e:e+""}fm(mm,"displayName","ReferenceLine"),fm(mm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var _m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),jm(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&km(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.className,u=t.alwaysShow,c=t.clipPathId;hf(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Cr(r),s=Cr(n),f=Cr(o),p=Cr(i),h=this.props.shape;if(!(l||s||f||p||h))return null;var d=function(t,e,r,n,o){var i=o.x1,a=o.x2,u=o.y1,c=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=kv({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(u,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!ny(o,"discard")||f.isInRange(p)&&f.isInRange(h)?Sv(p,h):null}(l,s,f,p,this.props);if(!d&&!h)return null;var y=ny(this.props,"hidden")?"url(#".concat(c,")"):void 0;return q().createElement(On,{className:H("recharts-reference-area",a)},e.renderRect(h,xm(xm({clipPath:y},en(this.props,!0)),d)),Mo.renderCallByParent(this.props,d))}}])&&Om(r.prototype,n),o&&Om(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(q().Component);function Mm(t){return function(t){if(Array.isArray(t))return Tm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Tm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tm(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Em(_m,"displayName","ReferenceArea"),Em(_m,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),Em(_m,"renderRect",(function(t,e){return q().isValidElement(t)?q().cloneElement(t,e):Se()(t)?t(e):q().createElement(Ld,bm({},e,{className:"recharts-reference-area-rect"}))}));var Cm=function(t,e,r,n,o){var i=Gr(t,mm),a=Gr(t,Lv),u=[].concat(Mm(i),Mm(a)),c=Gr(t,_m),l="".concat(n,"Id"),s=n[0],f=e;if(u.length&&(f=u.reduce((function(t,e){if(e.props[l]===r&&ny(e.props,"extendDomain")&&Tr(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),c.length){var p="".concat(s,"1"),h="".concat(s,"2");f=c.reduce((function(t,e){if(e.props[l]===r&&ny(e.props,"extendDomain")&&Tr(e.props[p])&&Tr(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return Tr(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},Dm=r(228),Im=new(r.n(Dm)()),Nm="recharts.syncMouseEvents";function Bm(t){return Bm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bm(t)}function Rm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zm(n.key),n)}}function Lm(t,e,r){return(e=zm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zm(t){var e=function(t,e){if("object"!=Bm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Bm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Bm(e)?e:e+""}var Um=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Lm(this,"activeIndex",0),Lm(this,"coordinateList",[]),Lm(this,"layout","horizontal")},(e=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,u=void 0===a?null:a,c=t.offset,l=void 0===c?null:c,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=u?u:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,u=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,c=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+u,s=o+this.offset.top+i/2+c;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])&&Rm(t.prototype,e),r&&Rm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function Fm(t){return Fm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(t)}var Km=["x","y","top","left","width","height","className"];function $m(){return $m=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$m.apply(this,arguments)}function Wm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qm(t,e,r){var n;return n=function(t,e){if("object"!=Fm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Fm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Fm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ym(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Hm=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},Xm=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,a=void 0===i?0:i,u=t.left,c=void 0===u?0:u,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,h=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wm(Object(r),!0).forEach((function(e){qm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:o,top:a,left:c,width:s,height:p},Ym(t,Km));return Tr(r)&&Tr(o)&&Tr(s)&&Tr(p)&&Tr(a)&&Tr(c)?q().createElement("path",$m({},en(d,!0),{className:H("recharts-cross",h),d:Hm(r,o,s,p,a,c)})):null};function Vm(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[vo(e,r,n,o),vo(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function Gm(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return Vm(e);var u=e.cx,c=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=vo(u,c,l,f),h=vo(u,c,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function Zm(t){return Zm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zm(t)}function Jm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jm(Object(r),!0).forEach((function(e){tb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tb(t,e,r){var n;return n=function(t,e){if("object"!=Zm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Zm(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eb(t){var e,r,n,o=t.element,i=t.tooltipEventType,a=t.isActive,u=t.activeCoordinate,c=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,h=t.chartName,d=null!==(e=o.props.cursor)&&void 0!==e?e:null===(r=o.type.defaultProps)||void 0===r?void 0:r.cursor;if(!o||!d||!a||!u||"ScatterChart"!==h&&"axis"!==i)return null;var y=vn;if("ScatterChart"===h)n=u,y=Xm;else if("BarChart"===h)n=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,u,l,f),y=Ld;else if("radial"===p){var v=Vm(u),m=v.cx,b=v.cy,g=v.radius;n={cx:m,cy:b,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:g,outerRadius:g},y=Ty}else n={points:Gm(p,u,l)},y=vn;var w=Qm(Qm(Qm(Qm({stroke:"#ccc",pointerEvents:"none"},l),n),en(d,!1)),{},{payload:c,payloadIndex:s,className:H("recharts-tooltip-cursor",d.className)});return(0,W.isValidElement)(d)?(0,W.cloneElement)(d,w):(0,W.createElement)(y,w)}var rb=["item"],nb=["children","className","width","height","style","compact","title","desc"];function ob(t){return ob="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ob(t)}function ib(){return ib=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ib.apply(this,arguments)}function ab(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||db(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ub(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function cb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gb(n.key),n)}}function lb(t,e,r){return e=fb(e),function(t,e){if(e&&("object"===ob(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,sb()?Reflect.construct(e,r||[],fb(t).constructor):e.apply(t,r))}function sb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(sb=function(){return!!t})()}function fb(t){return fb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fb(t)}function pb(t,e){return pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pb(t,e)}function hb(t){return function(t){if(Array.isArray(t))return yb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||db(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function db(t,e){if(t){if("string"==typeof t)return yb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yb(t,e):void 0}}function yb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vb(Object(r),!0).forEach((function(e){bb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bb(t,e,r){return(e=gb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gb(t){var e=function(t,e){if("object"!=ob(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ob(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ob(e)?e:e+""}var wb={xAxis:["bottom","top"],yAxis:["left","right"]},xb={width:"100%",height:"100%"},Ob={x:0,y:0};function jb(t){return t}var Sb=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(hb(t),hb(r)):t}),[]);return i.length>0?i:t&&t.length&&Tr(n)&&Tr(o)?t.slice(n,o+1):[]};function Pb(t){return"number"===t?[0,"auto"]:void 0}var kb=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=Sb(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,u){var c,l,s=null!==(c=u.props.data)&&void 0!==c?c:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=Lr(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(hb(o),[oh(u,l)]):o}),[])},Eb=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var u=o.range,c=0;c<a;c++){var l=c>0?n[c-1].coordinate:n[a-1].coordinate,s=n[c].coordinate,f=c>=a-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if(_r(s-l)!==_r(f-s)){var h=[];if(_r(f-s)===_r(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[c].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[c].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=kb(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return mb(mb(mb({},n),vo(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var u=o.coordinate,c=n.angle;return mb(mb(mb({},n),vo(n.cx,n.cy,u,c)),{},{angle:c,radius:u})}return Ob}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},Ab=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=Kp(l,o);return r.reduce((function(e,r){var h,d=void 0!==r.type.defaultProps?mb(mb({},r.type.defaultProps),r.props):r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,b=d.allowDuplicatedCategory,g=d.scale,w=d.ticks,x=d.includeHidden,O=d[i];if(e[O])return e;var j,S,P,k=Sb(t.data,{graphicalItems:n.filter((function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===O})),dataStartIndex:u,dataEndIndex:c}),E=k.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&Tr(n)&&Tr(o))return!0}return!1})(d.domain,m,y)&&(j=eh(d.domain,null,m),!p||"number"!==y&&"auto"===g||(P=Lp(k,v,"category")));var A=Pb(y);if(!j||0===j.length){var _,M=null!==(_=d.domain)&&void 0!==_?_:A;if(v){if(j=Lp(k,v,y),"category"===y&&p){var T=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(j);b&&T?(S=j,j=$h()(0,E)):b||(j=nh(M,j,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(hb(t),[e])}),[]))}else if("category"===y)j=b?j.filter((function(t){return""!==t&&!Ae()(t)})):nh(M,j,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Ae()(e)?t:[].concat(hb(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,o){var i=e.map((function(e){return Up(t,e,r,o,n)})).filter((function(t){return!Ae()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(k,n.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)})),v,o,l);C&&(j=C)}!p||"number"!==y&&"auto"===g||(P=Lp(k,v,"category"))}else j=p?$h()(0,E):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:Jp(a[O].stackGroups,u,c):Fp(k,n.filter((function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),y,l,!0);if("number"===y)j=Cm(s,j,O,o,w),M&&(j=eh(M,j,m));else if("category"===y&&M){var D=M;j.every((function(t){return D.indexOf(t)>=0}))&&(j=D)}}return mb(mb({},e),{},bb({},O,mb(mb({},d),{},{axisType:o,domain:j,categoricalDomain:P,duplicateDomain:S,originalDomain:null!==(h=d.domain)&&void 0!==h?h:A,isCategorical:p,layout:l})))}),{})},_b=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Gr(l,o),p={};return f&&f.length?p=Ab(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=Sb(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),p=f.length,h=Kp(l,o),d=-1;return r.reduce((function(t,e){var y,v=(void 0!==e.type.defaultProps?mb(mb({},e.type.defaultProps),e.props):e.props)[i],m=Pb("number");return t[v]?t:(d++,h?y=$h()(0,p):a&&a[v]&&a[v].hasStack?(y=Jp(a[v].stackGroups,u,c),y=Cm(s,y,v,o)):(y=eh(m,Fp(f,r.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o})),"number",l),n.defaultProps.allowDataOverflow),y=Cm(s,y,v,o)),mb(mb({},t),{},bb({},v,mb(mb({axisType:o},n.defaultProps),{},{hide:!0,orientation:jr()(wb,"".concat(o,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},Mb=function(t){var e=t.children,r=t.defaultShowTooltip,n=Zr(e,ry),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},Tb=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Cb=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,u=r.width,c=r.height,l=r.children,s=r.margin||{},f=Zr(l,ry),p=Zr(l,Pp),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:mb(mb({},t),{},bb({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:mb(mb({},t),{},bb({},n,jr()(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=mb(mb({},d),h),v=y.bottom;f&&(y.bottom+=f.props.height||ry.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=i-(a.left||0)-(a.right||0),c=Mp({children:o,legendWidth:u});if(c){var l=n||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&Tr(t[p]))return Np(Np({},t),{},Bp({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&Tr(t[h]))return Np(Np({},t),{},Bp({},h,t[h]+(f||0)))}return t}(y,0,r,e));var m=u-y.left-y.right,b=c-y.top-y.bottom;return mb(mb({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(b,0)})},Db=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0};function Ib(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}function Nb(t,e,r){return function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)}({width:t.width+e.width,height:t.height+e.height},r)}function Bb(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function Rb(t){return Rb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rb(t)}function Lb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lb(Object(r),!0).forEach((function(e){Ub(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ub(t,e,r){var n;return n=function(t,e){if("object"!=Rb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Rb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Rb(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fb(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,u=t.orientation,c=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(Tr(c)||Pn.isSsr)return function(t,e){return Ib(t,e+1)}(o,"number"==typeof c&&Tr(c)?c:0);var p=[],h="top"===u||"bottom"===u?"width":"height",d=s&&"width"===h?Dn(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=Se()(l)?l(t.value,n):t.value;return"width"===h?Nb(Dn(o,{fontSize:e,letterSpacing:r}),d,f):Dn(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?_r(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,u=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+u}:{start:n?o+a:i+u,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===c?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),u=e.start,c=e.end,l=0,s=1,f=u,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:Ib(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,d=0===l||Bb(t,h,p,f,c);d||(l=0,f=u,s+=1),d&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,y,o,a):(p="preserveStart"===c||"preserveStartEnd"===c?function(t,e,r,n,o,i){var a=(n||[]).slice(),u=a.length,c=e.start,l=e.end;if(i){var s=n[u-1],f=r(s,u-1),p=t*(s.coordinate+t*f/2-l);a[u-1]=s=zb(zb({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),Bb(t,s.tickCoord,(function(){return f}),c,l)&&(l=s.tickCoord-t*(f/2+o),a[u-1]=zb(zb({},s),{},{isShow:!0}))}for(var h=i?u-1:u,d=function(e){var n,i=a[e],u=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*u()/2-c);a[e]=i=zb(zb({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=zb(zb({},i),{},{tickCoord:i.coordinate});Bb(t,i.tickCoord,u,c,l)&&(c=i.tickCoord+t*(u()/2+o),a[e]=zb(zb({},i),{},{isShow:!0}))},y=0;y<h;y++)d(y);return a}(v,m,y,o,a,"preserveStartEnd"===c):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,u=e.start,c=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-c);i[e]=l=zb(zb({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=zb(zb({},l),{},{tickCoord:l.coordinate});Bb(t,l.tickCoord,s,u,c)&&(c=l.tickCoord-t*(s()/2+o),i[e]=zb(zb({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,y,o,a),p.filter((function(t){return t.isShow})))}var Kb=["viewBox"],$b=["viewBox"],Wb=["ticks"];function qb(t){return qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qb(t)}function Yb(){return Yb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yb.apply(this,arguments)}function Hb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hb(Object(r),!0).forEach((function(e){eg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vb(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Gb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rg(n.key),n)}}function Zb(t,e,r){return e=Qb(e),function(t,e){if(e&&("object"===qb(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Jb()?Reflect.construct(e,r||[],Qb(t).constructor):e.apply(t,r))}function Jb(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jb=function(){return!!t})()}function Qb(t){return Qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qb(t)}function tg(t,e){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tg(t,e)}function eg(t,e,r){return(e=rg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rg(t){var e=function(t,e){if("object"!=qb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=qb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qb(e)?e:e+""}var ng=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Zb(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tg(t,e)}(e,t),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=Vb(t,Kb),o=this.props,i=o.viewBox,a=Vb(o,$b);return!Ur(r,i)||!Ur(n,a)||!Ur(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,u=this.props,c=u.x,l=u.y,s=u.width,f=u.height,p=u.orientation,h=u.tickSize,d=u.mirror,y=u.tickMargin,v=d?-1:1,m=t.tickSize||h,b=Tr(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!d*f)-v*m)-v*y,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=c+ +!d*s)-v*m)-v*y,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=c+ +d*s)+v*m)+v*y,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +d*f)+v*m)+v*y,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,a=t.mirror,u=t.axisLine,c=Xb(Xb(Xb({},en(this.props,!1)),en(u,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);c=Xb(Xb({},c),{},{x1:e,y1:r+l*o,x2:e+n,y2:r+l*o})}else{var s=+("left"===i&&!a||"right"===i&&a);c=Xb(Xb({},c),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+o})}return q().createElement("line",Yb({},c,{className:H("recharts-cartesian-axis-line",jr()(u,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var o=this,i=this.props,a=i.tickLine,u=i.stroke,c=i.tick,l=i.tickFormatter,s=i.unit,f=Fb(Xb(Xb({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=en(this.props,!1),y=en(c,!1),v=Xb(Xb({},d),{},{fill:"none"},en(a,!1)),m=f.map((function(t,r){var n=o.getTickLineCoord(t),i=n.line,m=n.tick,b=Xb(Xb(Xb(Xb({textAnchor:p,verticalAnchor:h},d),{},{stroke:"none",fill:u},y),m),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return q().createElement(On,Yb({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},xr(o.props,t,r)),a&&q().createElement("line",Yb({},v,i,{className:H("recharts-cartesian-axis-tick-line",jr()(a,"className"))})),c&&e.renderTickItem(c,b,"".concat(Se()(l)?l(t.value,r):t.value).concat(s||"")))}));return q().createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var u=this.props,c=u.ticks,l=Vb(u,Wb),s=c;return Se()(i)&&(s=c&&c.length>0?i(this.props):i(l)),n<=0||o<=0||!s||!s.length?null:q().createElement(On,{className:H("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),Mo.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(t,e,r){return q().isValidElement(t)?q().cloneElement(t,e):Se()(t)?t(e):q().createElement(co,Yb({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&Gb(r.prototype,n),o&&Gb(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(W.Component);function og(t){return og="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},og(t)}function ig(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fg(n.key),n)}}function ag(t,e,r){return e=cg(e),function(t,e){if(e&&("object"===og(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ug()?Reflect.construct(e,r||[],cg(t).constructor):e.apply(t,r))}function ug(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ug=function(){return!!t})()}function cg(t){return cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cg(t)}function lg(t,e){return lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lg(t,e)}function sg(t,e,r){return(e=fg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fg(t){var e=function(t,e){if("object"!=og(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=og(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==og(e)?e:e+""}function pg(){return pg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pg.apply(this,arguments)}function hg(t){var e=t.xAxisId,r=em(),n=rm(),o=Qv(e);return null==o?null:q().createElement(ng,pg({},o,{className:H("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return Wp(t,!0)}}))}eg(ng,"displayName","CartesianAxis"),eg(ng,"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 dg=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ag(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lg(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){return q().createElement(hg,this.props)}}])&&ig(r.prototype,n),o&&ig(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(q().Component);function yg(t){return yg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yg(t)}function vg(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Og(n.key),n)}}function mg(t,e,r){return e=gg(e),function(t,e){if(e&&("object"===yg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,bg()?Reflect.construct(e,r||[],gg(t).constructor):e.apply(t,r))}function bg(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bg=function(){return!!t})()}function gg(t){return gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gg(t)}function wg(t,e){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wg(t,e)}function xg(t,e,r){return(e=Og(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Og(t){var e=function(t,e){if("object"!=yg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yg(e)?e:e+""}function jg(){return jg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jg.apply(this,arguments)}sg(dg,"displayName","XAxis"),sg(dg,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var Sg=function(t){var e=t.yAxisId,r=em(),n=rm(),o=tm(e);return null==o?null:q().createElement(ng,jg({},o,{className:H("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return Wp(t,!0)}}))},Pg=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),mg(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wg(t,e)}(e,t),r=e,(n=[{key:"render",value:function(){return q().createElement(Sg,this.props)}}])&&vg(r.prototype,n),o&&vg(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(q().Component);xg(Pg,"displayName","YAxis"),xg(Pg,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var kg=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,o=void 0===n?"axis":n,i=t.validateTooltipEventTypes,a=void 0===i?["axis"]:i,u=t.axisComponents,c=t.legendContent,l=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=Tb(s),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Yr(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),b=[];return r.forEach((function(r,d){var g=Sb(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),w=void 0!==r.type.defaultProps?mb(mb({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,j=w["".concat(y,"Id")],S=w["".concat(v,"Id")],P=u.reduce((function(t,r){var n=e["".concat(r.axisType,"Map")],o=w["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||Zs(!1);var i=n[o];return mb(mb({},t),{},bb(bb({},r.axisType,i),"".concat(r.axisType,"Ticks"),Wp(i)))}),{}),k=P[v],E=P["".concat(v,"Ticks")],A=n&&n[j]&&n[j].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?Np(Np({},t.type.defaultProps),t.props):t.props).stackId;if(Cr(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[j].stackGroups),_=Yr(r.type).indexOf("Bar")>=0,M=rh(k,E),T=[],C=m&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),u=0,c=a.length;u<c;u++)for(var l=o[a[u]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var h=l[s[f]],d=h.items,y=h.cateAxisId,v=d.filter((function(t){return Yr(t.type).indexOf("Bar")>=0}));if(v&&v.length){var m=v[0].type.defaultProps,b=void 0!==m?Np(Np({},m),v[0].props):v[0].props,g=b.barSize,w=b[y];i[w]||(i[w]=[]);var x=Ae()(g)?e:g;i[w].push({item:v[0],stackList:v.slice(1),barSize:Ae()(x)?void 0:Nr(x,r,0)})}}return i}({barSize:l,stackGroups:n,totalSize:Db(P,v)});if(_){var D,I,N=Ae()(O)?h:O,B=null!==(D=null!==(I=rh(k,E,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;T=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,u=i.length;if(u<1)return null;var c,l=Nr(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/u,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(u-1)*l)>=n&&(h-=(u-1)*l,l=0),h>=n&&p>0&&(f=!0,h=u*(p*=.9));var d={offset:((n-h)/2|0)-l,size:0};c=i.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(Cp(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=Nr(r,n,0,!0);n-2*y-(u-1)*l<=0&&(l=0);var v=(n-2*y-(u-1)*l)/u;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;c=i.reduce((function(t,e,r){var n=[].concat(Cp(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return c}({barGap:f,barCategoryGap:p,bandSize:B!==M?B:M,sizeList:C[S],maxBarSize:N}),B!==M&&(T=T.map((function(t){return mb(mb({},t),{},{position:mb(mb({},t.position),{},{offset:t.position.offset-B/2})})})))}var R,L,z=r&&r.type&&r.type.getComposedData;z&&b.push({props:mb(mb({},z(mb(mb({},P),{},{displayedData:g,props:t,dataKey:x,item:r,bandSize:M,barPosition:T,offset:o,stackedData:A,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},bb(bb(bb({key:r.key||"item-".concat(d)},y,P[y]),v,P[v]),"animationId",i)),childIndex:(R=r,L=t.children,Vr(L).indexOf(R)),item:r})})),b},p=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Jr({props:o}))return null;var s=o.children,p=o.layout,h=o.stackOffset,d=o.data,y=o.reverseStackOrder,v=Tb(p),m=v.numericAxisName,b=v.cateAxisName,g=Gr(s,r),w=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?Np(Np({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var u=i[r],c=t[u]||{hasStack:!1,stackGroups:{}};if(Cr(a)){var l=c.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),c.hasStack=!0,c.stackGroups[a]=l}else c.stackGroups[Ir("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Np(Np({},t),{},Bp({},u,c))}),{});return Object.keys(a).reduce((function(e,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce((function(e,i){var a=u.stackGroups[i];return Np(Np({},e),{},Bp({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:Vp(t,a.items,o)}))}),{})),Np(Np({},e),{},Bp({},i,u))}),{})}(d,g,"".concat(m,"Id"),"".concat(b,"Id"),h,y),x=u.reduce((function(t,e){var r="".concat(e.axisType,"Map");return mb(mb({},t),{},bb({},r,_b(o,mb(mb({},e),{},{graphicalItems:g,stackGroups:e.axisType===m&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=Cb(mb(mb({},x),{},{props:o,graphicalItems:g}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=l(o,x[t],O,t.replace("Map",""),e)}));var j,S,P=x["".concat(b,"Map")],k=(j=Br(P),{tooltipTicks:S=Wp(j,!1,!0),orderedTooltipTicks:ws()(S,(function(t){return t.coordinate})),tooltipAxis:j,tooltipAxisBandSize:rh(j,S)}),E=f(o,mb(mb({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:c,graphicalItems:g,stackGroups:w,offset:O}));return mb(mb({formattedGraphicalItems:E,graphicalItems:g,offset:O,stackGroups:w},k),x)},h=function(t){function r(t){var n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),bb(i=lb(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),bb(i,"accessibilityManager",new Um),bb(i,"handleLegendBBoxUpdate",(function(t){if(t){var e=i.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;i.setState(mb({legendBBox:t},p({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},mb(mb({},i.state),{},{legendBBox:t}))))}})),bb(i,"handleReceiveSyncEvent",(function(t,e,r){if(i.props.syncId===t){if(r===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}})),bb(i,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState((function(){return mb({dataStartIndex:e,dataEndIndex:r},p({props:i.props,dataStartIndex:e,dataEndIndex:r,updateId:n},i.state))})),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),bb(i,"handleMouseEnter",(function(t){var e=i.getMouseInfo(t);if(e){var r=mb(mb({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;Se()(n)&&n(r,t)}})),bb(i,"triggeredAfterMouseMove",(function(t){var e=i.getMouseInfo(t),r=e?mb(mb({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;Se()(n)&&n(r,t)})),bb(i,"handleItemMouseEnter",(function(t){i.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),bb(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),bb(i,"handleMouseMove",(function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)})),bb(i,"handleMouseLeave",(function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var r=i.props.onMouseLeave;Se()(r)&&r(e,t)})),bb(i,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&qr[e]?qr[e]:null}(t),n=jr()(i.props,"".concat(r));r&&Se()(n)&&n(null!==(e=/.*touch.*/i.test(r)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)})),bb(i,"handleClick",(function(t){var e=i.getMouseInfo(t);if(e){var r=mb(mb({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;Se()(n)&&n(r,t)}})),bb(i,"handleMouseDown",(function(t){var e=i.props.onMouseDown;Se()(e)&&e(i.getMouseInfo(t),t)})),bb(i,"handleMouseUp",(function(t){var e=i.props.onMouseUp;Se()(e)&&e(i.getMouseInfo(t),t)})),bb(i,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),bb(i,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])})),bb(i,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])})),bb(i,"handleDoubleClick",(function(t){var e=i.props.onDoubleClick;Se()(e)&&e(i.getMouseInfo(t),t)})),bb(i,"handleContextMenu",(function(t){var e=i.props.onContextMenu;Se()(e)&&e(i.getMouseInfo(t),t)})),bb(i,"triggerSyncEvent",(function(t){void 0!==i.props.syncId&&Im.emit(Nm,i.props.syncId,t,i.eventEmitterSymbol)})),bb(i,"applySyncEvent",(function(t){var e=i.props,r=e.layout,n=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,u=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(mb({dataStartIndex:a,dataEndIndex:u},p({props:i.props,dataStartIndex:a,dataEndIndex:u,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var c=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=mb(mb({},h),{},{x:h.left,y:h.top}),m=Math.min(c,v.x+v.width),b=Math.min(l,v.y+v.height),g=d[s]&&d[s].value,w=kb(i.state,i.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:m,y:"horizontal"===r?b:d[s].coordinate}:Ob;i.setState(mb(mb({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)})),bb(i,"renderCursor",(function(t){var r,n=i.state,o=n.isTooltipActive,a=n.activeCoordinate,u=n.activePayload,c=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:o,h=i.props.layout,d=t.key||"_recharts-cursor";return q().createElement(eb,{key:d,activeCoordinate:a,activePayload:u,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:h,offset:c,tooltipAxisBandSize:s,tooltipEventType:f})})),bb(i,"renderPolarAxis",(function(t,e,r){var n=jr()(t,"type.axisType"),o=jr()(i.state,"".concat(n,"Map")),a=t.type.defaultProps,u=void 0!==a?mb(mb({},a),t.props):t.props,c=o&&o[u["".concat(n,"Id")]];return(0,W.cloneElement)(t,mb(mb({},c),{},{className:H(n,c.className),key:t.key||"".concat(e,"-").concat(r),ticks:Wp(c,!0)}))})),bb(i,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=i.state,u=a.radiusAxisMap,c=a.angleAxisMap,l=Br(u),s=Br(c),f=s.cx,p=s.cy,h=s.innerRadius,d=s.outerRadius;return(0,W.cloneElement)(t,{polarAngles:Array.isArray(n)?n:Wp(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:Wp(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),bb(i,"renderLegend",(function(){var t=i.state.formattedGraphicalItems,e=i.props,r=e.children,n=e.width,o=e.height,a=i.props.margin||{},u=n-(a.left||0)-(a.right||0),l=Mp({children:r,formattedGraphicalItems:t,legendWidth:u,legendContent:c});if(!l)return null;var s=l.item,f=ub(l,rb);return(0,W.cloneElement)(s,mb(mb({},f),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),bb(i,"renderTooltip",(function(){var t,e=i.props,r=e.children,n=e.accessibilityLayer,o=Zr(r,Ed);if(!o)return null;var a=i.state,u=a.isTooltipActive,c=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=o.props.active)&&void 0!==t?t:u;return(0,W.cloneElement)(o,{viewBox:mb(mb({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:c,accessibilityLayer:n})})),bb(i,"renderBrush",(function(t){var e=i.props,r=e.margin,n=e.data,o=i.state,a=o.offset,u=o.dataStartIndex,c=o.dataEndIndex,l=o.updateId;return(0,W.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:Yp(i.handleBrushChange,t.props.onChange),data:n,x:Tr(t.props.x)?t.props.x:a.left,y:Tr(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Tr(t.props.width)?t.props.width:a.width,startIndex:u,endIndex:c,updateId:"brush-".concat(l)})})),bb(i,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,u=o.yAxisMap,c=o.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,h=s.yAxisId,d=void 0===h?l.yAxisId:h;return(0,W.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:u[d],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:n})})),bb(i,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,u=[],c=e.props.key,l=void 0!==e.item.type.defaultProps?mb(mb({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=mb(mb({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:zp(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},en(s,!1)),wr(s));return u.push(r.renderActiveDot(s,f,"".concat(c,"-activePoint-").concat(i))),o?u.push(r.renderActiveDot(s,mb(mb({},f),{},{cx:o.x,cy:o.y}),"".concat(c,"-basePoint-").concat(i))):a&&u.push(null),u})),bb(i,"renderGraphicChild",(function(t,e,r){var n=i.filterFormatItem(t,e,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,u=a.isTooltipActive,c=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=Zr(i.props.children,Ed),p=n.props,h=p.points,d=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?mb(mb({},n.item.type.defaultProps),n.item.props):n.item.props,m=v.activeDot,b=v.hide,g=v.activeBar,w=v.activeShape,x=Boolean(!b&&u&&f&&(m||g||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:Yp(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:Yp(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:Yp(i.handleItemMouseEnter,t.props.onMouseEnter)});var j=(0,W.cloneElement)(t,mb(mb({},n.props),O));if(x){if(!(l>=0)){var S,P=(null!==(S=i.getItemByXY(i.state.activeCoordinate))&&void 0!==S?S:{graphicalItem:j}).graphicalItem,k=P.item,E=void 0===k?t:k,A=P.childIndex,_=mb(mb(mb({},n.props),O),{},{activeIndex:A});return[(0,W.cloneElement)(E,_),null,null]}var M,T;if(c.dataKey&&!c.allowDuplicatedCategory){var C="function"==typeof c.dataKey?function(t){return"function"==typeof c.dataKey?c.dataKey(t.payload):null}:"payload.".concat(c.dataKey.toString());M=Lr(h,C,s),T=d&&y&&Lr(y,C,s)}else M=null==h?void 0:h[l],T=d&&y&&y[l];if(w||g){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[(0,W.cloneElement)(t,mb(mb(mb({},n.props),O),{},{activeIndex:D})),null,null]}if(!Ae()(M))return[j].concat(hb(i.renderActivePoints({item:n,activePoint:M,basePoint:T,childIndex:l,isRange:d})))}return d?[j,null,null]:[j,null]})),bb(i,"renderCustomized",(function(t,e,r){return(0,W.cloneElement)(t,mb(mb({key:"recharts-customized-".concat(r)},i.props),i.state))})),bb(i,"renderMap",{CartesianGrid:{handler:jb,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:jb},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:jb},YAxis:{handler:jb},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Ir("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=Ih()(i.triggeredAfterMouseMove,null!==(o=t.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pb(t,e)}(r,t),n=r,i=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=Zr(e,Ed);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,c=kb(this.state,r,a,u),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=mb(mb({},f),p.props.points[a].tooltipPosition),c=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:c,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){rn([Zr(t.children,Ed)],[Zr(this.props.children,Ed)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Zr(this.props.children,Ed);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,u=this.inRange(i.chartX,i.chartY,a);if(!u)return null;var c=this.state,l=c.xAxisMap,s=c.yAxisMap,f=this.getTooltipEventType(),p=Eb(this.state,this.props.data,this.props.layout,u);if("axis"!==f&&l&&s){var h=Br(l).scale,d=Br(s).scale,y=h&&h.invert?h.invert(i.chartX):null,v=d&&d.invert?d.invert(i.chartY):null;return mb(mb({},i),{},{xValue:y,yValue:v},p)}return p?mb(mb({},i),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=Br(c);return go({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Zr(t,Ed),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),mb(mb({},wr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){Im.on(Nm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Im.removeListener(Nm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===Yr(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return q().createElement("defs",null,q().createElement("clipPath",{id:t},q().createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=ab(e,2),n=r[0],o=r[1];return mb(mb({},t),{},bb({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=ab(e,2),n=r[0],o=r[1];return mb(mb({},t),{},bb({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],u=a.props,c=a.item,l=void 0!==c.type.defaultProps?mb(mb({},c.type.defaultProps),c.props):c.props,s=Yr(c.type);if("Bar"===s){var f=(u.data||[]).find((function(e){return Bd(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(u.data||[]).find((function(e){return go(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(Fy(a,n)||Ky(a,n)||$y(a,n)){var h=Hy({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),d=void 0===l.activeIndex?h:l.activeIndex;return{graphicalItem:mb(mb({},a),{},{childIndex:d}),payload:$y(a,n)?l.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!Jr(this))return null;var e,r,n=this.props,o=n.children,i=n.className,a=n.width,u=n.height,c=n.style,l=n.compact,s=n.title,f=n.desc,p=ub(n,nb),h=en(p,!1);if(l)return q().createElement(Jv,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q().createElement(mf,ib({},h,{width:a,height:u,title:s,desc:f}),this.renderClipPath(),on(o,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,h.role=null!==(r=this.props.role)&&void 0!==r?r:"application",h.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},h.onFocus=function(){t.accessibilityManager.focus()});var d=this.parseEventsOfWrapper();return q().createElement(Jv,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q().createElement("div",ib({className:H("recharts-wrapper",i),style:mb({position:"relative",cursor:"default",width:a,height:u},c)},d,{ref:function(e){t.container=e}}),q().createElement(mf,ib({},h,{width:a,height:u,title:s,desc:f,style:xb}),this.renderClipPath(),on(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&cb(n.prototype,i),u&&cb(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,u}(W.Component);bb(h,"displayName",e),bb(h,"defaultProps",mb({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),bb(h,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,u=t.layout,c=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var h=Mb(t);return mb(mb(mb({},h),{},{updateId:0},p(mb(mb({props:t},h),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||u!==e.prevLayout||c!==e.prevStackOffset||!Ur(l,e.prevMargin)){var d=Mb(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=mb(mb({},Eb(e,n,u)),{},{updateId:e.updateId+1}),m=mb(mb(mb({},d),y),v);return mb(mb(mb({},m),p(mb({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:u,prevStackOffset:c,prevMargin:l,prevChildren:o})}if(!rn(o,e.prevChildren)){var b,g,w,x,O=Zr(o,ry),j=O&&null!==(b=null===(g=O.props)||void 0===g?void 0:g.startIndex)&&void 0!==b?b:s,S=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,P=j!==s||S!==f,k=!Ae()(n)&&!P?e.updateId:e.updateId+1;return mb(mb({updateId:k},p(mb(mb({props:t},e),{},{updateId:k,dataStartIndex:j,dataEndIndex:S}),e)),{},{prevChildren:o,dataStartIndex:j,dataEndIndex:S})}return null})),bb(h,"renderActiveDot",(function(t,e,r){var n;return n=(0,W.isValidElement)(t)?(0,W.cloneElement)(t,e):Se()(t)?t(e):q().createElement(bn,e),q().createElement(On,{className:"recharts-active-dot",key:r},n)}));var d=(0,W.forwardRef)((function(t,e){return q().createElement(h,ib({},t,{ref:e}))}));return d.displayName=h.displayName,d}({chartName:"AreaChart",GraphicalChild:Ch,axisComponents:[{axisType:"xAxis",AxisComp:dg},{axisType:"yAxis",AxisComp:Pg}],formatAxisMap:function(t,e,r,n,i){var a=t.width,u=t.height,c=t.layout,l=t.children,s=Object.keys(e),f={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},p=!!Zr(l,mv);return s.reduce((function(a,u){var l,s,h,d,y,v=e[u],m=v.orientation,b=v.domain,g=v.padding,w=void 0===g?{}:g,x=v.mirror,O=v.reversed,j="".concat(m).concat(x?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=b[1]-b[0],P=1/0,k=v.categoricalDomain.sort(zr);if(k.forEach((function(t,e){e>0&&(P=Math.min((t||0)-(k[e-1]||0),P))})),Number.isFinite(P)){var E=P/S,A="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(l=E*A/2),"no-gap"===v.padding){var _=Nr(t.barCategoryGap,E*A),M=E*A/2;l=M-_-(M-_)/A*_}}}s="xAxis"===n?[r.left+(w.left||0)+(l||0),r.left+r.width-(w.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(l||0),r.top+r.height-(w.bottom||0)-(l||0)]:v.range,O&&(s=[s[1],s[0]]);var T=function(t,e,r){var n=t.scale,i=t.type,a=t.layout,u=t.axisType;if("auto"===n)return"radial"===a&&"radiusAxis"===u?{scale:Fo(),realScaleType:"band"}:"radial"===a&&"angleAxis"===u?{scale:Sa(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:$o(),realScaleType:"point"}:"category"===i?{scale:Fo(),realScaleType:"band"}:{scale:Sa(),realScaleType:"linear"};if(Pr()(n)){var c="scale".concat(pr()(n));return{scale:(o[c]||$o)(),realScaleType:o[c]?c:"point"}}return Se()(n)?{scale:n}:{scale:$o(),realScaleType:"point"}}(v,i,p),C=T.scale,D=T.realScaleType;C.domain(b).range(s),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-Hp,i=Math.max(n[0],n[1])+Hp,a=t(e[0]),u=t(e[r-1]);(a<o||a>i||u<o||u>i)&&t.domain([e[0],e[r-1]])}}(C);var I=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,u=r||e.scale;if("auto"!==u&&"linear"!==u)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var c=t.domain();if(!c.length)return null;var l=Xs(c,o,a);return t.domain([vs()(l),ke()(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:Vs(s,o,a)}}return null}(C,xv(xv({},v),{},{realScaleType:D}));"xAxis"===n?(y="top"===m&&!x||"bottom"===m&&x,h=r.left,d=f[j]-y*v.height):"yAxis"===n&&(y="left"===m&&!x||"right"===m&&x,h=f[j]-y*v.width,d=r.top);var N=xv(xv(xv({},v),I),{},{realScaleType:D,x:h,y:d,scale:C,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return N.bandSize=rh(N,I),v.hide||"xAxis"!==n?v.hide||(f[j]+=(y?-1:1)*N.width):f[j]+=(y?-1:1)*N.height,xv(xv({},a),{},Ov({},u,N))}),{})}}),Eg=["x1","y1","x2","y2","key"],Ag=["offset"];function _g(t){return _g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_g(t)}function Mg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mg(Object(r),!0).forEach((function(e){Cg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Cg(t,e,r){var n;return n=function(t,e){if("object"!=_g(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==_g(n)?n:n+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dg(){return Dg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dg.apply(this,arguments)}function Ig(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Ng=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,n=t.x,o=t.y,i=t.width,a=t.height,u=t.ry;return q().createElement("rect",{x:n,y:o,ry:u,width:i,height:a,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Bg(t,e){var r;if(q().isValidElement(t))r=q().cloneElement(t,e);else if(Se()(t))r=t(e);else{var n=e.x1,o=e.y1,i=e.x2,a=e.y2,u=e.key,c=Ig(e,Eg),l=en(c,!1),s=(l.offset,Ig(l,Ag));r=q().createElement("line",Dg({},s,{x1:n,y1:o,x2:i,y2:a,fill:"none",key:u}))}return r}function Rg(t){var e=t.x,r=t.width,n=t.horizontal,o=void 0===n||n,i=t.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map((function(n,i){var a=Tg(Tg({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(i),index:i});return Bg(o,a)}));return q().createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Lg(t){var e=t.y,r=t.height,n=t.vertical,o=void 0===n||n,i=t.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map((function(n,i){var a=Tg(Tg({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(i),index:i});return Bg(o,a)}));return q().createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function zg(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,o=t.y,i=t.width,a=t.height,u=t.horizontalPoints,c=t.horizontal;if(!(void 0===c||c)||!e||!e.length)return null;var l=u.map((function(t){return Math.round(t+o-o)})).sort((function(t,e){return t-e}));o!==l[0]&&l.unshift(0);var s=l.map((function(t,u){var c=!l[u+1]?o+a-t:l[u+1]-t;if(c<=0)return null;var s=u%e.length;return q().createElement("rect",{key:"react-".concat(u),y:t,x:n,height:c,width:i,stroke:"none",fill:e[s],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return q().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},s)}function Ug(t){var e=t.vertical,r=void 0===e||e,n=t.verticalFill,o=t.fillOpacity,i=t.x,a=t.y,u=t.width,c=t.height,l=t.verticalPoints;if(!r||!n||!n.length)return null;var s=l.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==s[0]&&s.unshift(0);var f=s.map((function(t,e){var r=!s[e+1]?i+u-t:s[e+1]-t;if(r<=0)return null;var l=e%n.length;return q().createElement("rect",{key:"react-".concat(e),x:t,y:a,width:r,height:c,stroke:"none",fill:n[l],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return q().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Fg=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return $p(Fb(Tg(Tg(Tg({},ng.defaultProps),r),{},{ticks:Wp(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},Kg=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return $p(Fb(Tg(Tg(Tg({},ng.defaultProps),r),{},{ticks:Wp(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},$g={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Wg(t){var e,r,n,o,i,a,u,c,l=em(),s=rm(),f=(0,W.useContext)(Xv),p=Tg(Tg({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:$g.stroke,fill:null!==(r=t.fill)&&void 0!==r?r:$g.fill,horizontal:null!==(n=t.horizontal)&&void 0!==n?n:$g.horizontal,horizontalFill:null!==(o=t.horizontalFill)&&void 0!==o?o:$g.horizontalFill,vertical:null!==(i=t.vertical)&&void 0!==i?i:$g.vertical,verticalFill:null!==(a=t.verticalFill)&&void 0!==a?a:$g.verticalFill,x:Tr(t.x)?t.x:f.left,y:Tr(t.y)?t.y:f.top,width:Tr(t.width)?t.width:f.width,height:Tr(t.height)?t.height:f.height}),h=p.x,d=p.y,y=p.width,v=p.height,m=p.syncWithTicks,b=p.horizontalValues,g=p.verticalValues,w=(u=(0,W.useContext)(qv),Br(u)),x=(c=(0,W.useContext)(Yv),Kv()(c,(function(t){return uy()(t.domain,Number.isFinite)}))||Br(c));if(!Tr(y)||y<=0||!Tr(v)||v<=0||!Tr(h)||h!==+h||!Tr(d)||d!==+d)return null;var O=p.verticalCoordinatesGenerator||Fg,j=p.horizontalCoordinatesGenerator||Kg,S=p.horizontalPoints,P=p.verticalPoints;if((!S||!S.length)&&Se()(j)){var k=b&&b.length,E=j({yAxis:x?Tg(Tg({},x),{},{ticks:k?b:x.ticks}):void 0,width:l,height:s,offset:f},!!k||m);hf(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(_g(E),"]")),Array.isArray(E)&&(S=E)}if((!P||!P.length)&&Se()(O)){var A=g&&g.length,_=O({xAxis:w?Tg(Tg({},w),{},{ticks:A?g:w.ticks}):void 0,width:l,height:s,offset:f},!!A||m);hf(Array.isArray(_),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(_g(_),"]")),Array.isArray(_)&&(P=_)}return q().createElement("g",{className:"recharts-cartesian-grid"},q().createElement(Ng,{fill:p.fill,fillOpacity:p.fillOpacity,x:p.x,y:p.y,width:p.width,height:p.height,ry:p.ry}),q().createElement(Rg,Dg({},p,{offset:f,horizontalPoints:S,xAxis:w,yAxis:x})),q().createElement(Lg,Dg({},p,{offset:f,verticalPoints:P,xAxis:w,yAxis:x})),q().createElement(zg,Dg({},p,{horizontalPoints:S})),q().createElement(Ug,Dg({},p,{verticalPoints:P})))}Wg.displayName="CartesianGrid";var qg=[{value:"",label:(0,L.__)("Worldwide","rank-math-pro")},{value:"AR",label:(0,L.__)("Argentina","rank-math-pro")},{value:"AU",label:(0,L.__)("Australia","rank-math-pro")},{value:"AT",label:(0,L.__)("Austria","rank-math-pro")},{value:"BE",label:(0,L.__)("Belgium","rank-math-pro")},{value:"BR",label:(0,L.__)("Brazil","rank-math-pro")},{value:"CA",label:(0,L.__)("Canada","rank-math-pro")},{value:"CL",label:(0,L.__)("Chile","rank-math-pro")},{value:"CO",label:(0,L.__)("Colombia","rank-math-pro")},{value:"CZ",label:(0,L.__)("Czechia","rank-math-pro")},{value:"DK",label:(0,L.__)("Denmark","rank-math-pro")},{value:"EG",label:(0,L.__)("Egypt","rank-math-pro")},{value:"FI",label:(0,L.__)("Finland","rank-math-pro")},{value:"FR",label:(0,L.__)("France","rank-math-pro")},{value:"DE",label:(0,L.__)("Germany","rank-math-pro")},{value:"GR",label:(0,L.__)("Greece","rank-math-pro")},{value:"HK",label:(0,L.__)("Hong Kong","rank-math-pro")},{value:"HU",label:(0,L.__)("Hungary","rank-math-pro")},{value:"IN",label:(0,L.__)("India","rank-math-pro")},{value:"ID",label:(0,L.__)("Indonesia","rank-math-pro")},{value:"IE",label:(0,L.__)("Ireland","rank-math-pro")},{value:"IL",label:(0,L.__)("Israel","rank-math-pro")},{value:"IT",label:(0,L.__)("Italy","rank-math-pro")},{value:"JP",label:(0,L.__)("Japan","rank-math-pro")},{value:"KE",label:(0,L.__)("Kenya","rank-math-pro")},{value:"MY",label:(0,L.__)("Malaysia","rank-math-pro")},{value:"MX",label:(0,L.__)("Mexico","rank-math-pro")},{value:"NL",label:(0,L.__)("Netherlands","rank-math-pro")},{value:"NZ",label:(0,L.__)("New Zealand","rank-math-pro")},{value:"NG",label:(0,L.__)("Nigeria","rank-math-pro")},{value:"NO",label:(0,L.__)("Norway","rank-math-pro")},{value:"PH",label:(0,L.__)("Philippines","rank-math-pro")},{value:"PL",label:(0,L.__)("Poland","rank-math-pro")},{value:"PT",label:(0,L.__)("Portugal","rank-math-pro")},{value:"RO",label:(0,L.__)("Romania","rank-math-pro")},{value:"RU",label:(0,L.__)("Russia","rank-math-pro")},{value:"SA",label:(0,L.__)("Saudi Arabia","rank-math-pro")},{value:"SG",label:(0,L.__)("Singapore","rank-math-pro")},{value:"ZA",label:(0,L.__)("South Africa","rank-math-pro")},{value:"KR",label:(0,L.__)("South Korea","rank-math-pro")},{value:"SE",label:(0,L.__)("Sweden","rank-math-pro")},{value:"CH",label:(0,L.__)("Switzerland","rank-math-pro")},{value:"TW",label:(0,L.__)("Taiwan","rank-math-pro")},{value:"TH",label:(0,L.__)("Thailand","rank-math-pro")},{value:"TR",label:(0,L.__)("Turkey","rank-math-pro")},{value:"UA",label:(0,L.__)("Ukraine","rank-math-pro")},{value:"GB",label:(0,L.__)("United Kingdom","rank-math-pro")},{value:"US",label:(0,L.__)("United States","rank-math-pro")},{value:"VN",label:(0,L.__)("Vietnam","rank-math-pro")}],Yg=[{value:"7d",label:(0,L.__)("Past 7 days","rank-math-pro")},{value:"1m",label:(0,L.__)("Past 30 days","rank-math-pro")},{value:"3m",label:(0,L.__)("Past 90 days","rank-math-pro")},{value:"12m",label:(0,L.__)("Past 12 months","rank-math-pro")}];const Hg=function(t){var e=t.width,r=t.height,n=t.x,o=t.y,i=t.dy,a=t.payload,u=t.index,c=t.visibleTicksCount,l=t.isFormat,s=void 0===l||l,f="middle";return 0===u&&(f="start"),u===c-1&&(f="end"),wp.element.createElement("g",{className:"recharts-layer recharts-cartesian-axis-tick"},wp.element.createElement("text",{width:e,height:r,x:n,y:o,stroke:"none",fill:"#7f868d",fontSize:"14",textAnchor:f},wp.element.createElement("tspan",{x:n,dy:i},s?$()(a.value).format("D MMM, YYYY"):a.value)))};function Xg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Vg(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vg(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Gg(t){return Gg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gg(t)}var Zg=["#2196f3","#f44336","#ffca28","#43a047","#9c27b0"];const Jg=(0,i.withSelect)((function(t){return{isRefreshing:t("rank-math-pro").isRefreshingTrendKeywords(),keywords:t("rank-math-pro").getTrendKeywords()}}))((function(t){var e=t.isRefreshing,r=t.keywords,n=Xg((0,F.useState)(""),2),o=n[0],i=n[1],a=Xg((0,F.useState)("1m"),2),c=a[0],l=a[1],s=Xg((0,F.useState)(!1),2),f=s[0],p=s[1],h=function(t){var e=$()().format("YYYY-MM-DD"),r=parseInt(t),n=$()();return t.includes("d")?n=n.subtract(r,"days").format("YYYY-MM-DD"):t.includes("m")&&(n=n.subtract(r,"months").format("YYYY-MM-DD")),[e,n]}(c),d=Xg(h,2),y=d[0],v=d[1],m=(0,L.__)("Please set the Focus Keyword for this page.","rank-math");(0,u.isEmpty)(r)||(m=(0,L.__)("Loading…","rank-math")),(0,F.useEffect)((function(){if((0,u.isEmpty)(r))p(!1);else{var t=[],e=[];(0,u.map)(r,(function(r,n){r&&(t.push(n),e.push(encodeURIComponent(n)))}));var n=(0,L.sprintf)("https://api.rankmath.com/trends/v1/?%1$s&date_start=%3$s&date_end=%4$s&country=%2$s","keyword[]="+e.join("&keyword[]="),o,v,y);p(!1),fetch(n,{method:"GET"}).then((function(t){return t.json()})).then((function(e){var r=(0,u.get)(e,"default.timelineData",!1);if(m="",(0,u.isEmpty)(r))return m=(0,L.__)("No data found.","rank-math"),void p([]);p(function(t,e){return(0,u.map)(t,(function(t){var r=t.formattedTime;-1!==r.indexOf("–")&&(r=t.formattedAxisTime);var n={formattedTime:r};return(0,u.map)(e,(function(e,r){n[e]=t.value[r]})),n}))}(r,t))}))}}),[e,c,o]);var b=[];if(!(0,u.isEmpty)(f)){var g=f.length;b=[f[0].formattedTime,f[Math.round(g/2-g/25)].formattedTime,f[g-1].formattedTime]}return wp.element.createElement(F.Fragment,null,wp.element.createElement("div",{className:"trend-graph-attribute-row"},wp.element.createElement(z.SelectControl,{value:o,onChange:i,options:qg}),wp.element.createElement(z.SelectControl,{value:c,onChange:l,options:Yg})),function(t,e,r){return(0,u.isEmpty)(e)?"object"!==Gg(e)||e.length||r!==(0,L.__)("Loading…","rank-math")?""!==r?wp.element.createElement("div",{className:"trends-error"},r):null:wp.element.createElement("div",{className:"trends-error"},(0,L.__)("No data found.","rank-math")):null}(0,f,m),wp.element.createElement("div",{className:"rank-math-graph main-graph single-stats-graph"},!(0,u.isEmpty)(f)&&wp.element.createElement(Fh,null,wp.element.createElement(kg,{data:f,margin:{top:5,right:30,left:0,bottom:5}},wp.element.createElement(Wg,{stroke:"#f2f2f2",vertical:!1}),wp.element.createElement(dg,{dy:15,dataKey:"formattedTime",textAnchor:"middle",interval:"preserveStartEnd",tickLine:!1,axisLine:{stroke:"rgba(0, 0, 0, 0.15)"},ticks:b,tick:wp.element.createElement(Hg,{isFormat:!1})}),wp.element.createElement(Pg,{dx:-10,axisLine:!1,tickLine:!1,tick:{fill:"#7f868d",fontSize:14}}),wp.element.createElement(Ed,{wrapperStyle:{zIndex:10},wrapperClassName:"rank-math-graph-tooltip",labelFormatter:function(t){return $()(t).format("D MMM, YYYY")},formatter:function(t){return[t,(0,L.__)("Interest","rank-math-pro")]}}),function(t){var e=-1;return(0,u.map)(t,(function(t,r){return e++,wp.element.createElement("defs",{key:r+"Def"},wp.element.createElement("linearGradient",{id:"colorValue".concat(e),x1:"0",y1:"0",x2:"0",y2:"1"},wp.element.createElement("stop",{offset:"5%",stopColor:Zg[e],stopOpacity:.3}),wp.element.createElement("stop",{offset:"95%",stopColor:Zg[e],stopOpacity:0})))}))}(r),function(t){var e=-1;return(0,u.map)(t,(function(t,r){return e++,t?wp.element.createElement(Ch,{key:r+"Area",type:"monotone",dataKey:r,strokeWidth:2,stroke:Zg[e],fill:"url(#colorValue".concat(e,")"),fillOpacity:.9}):null}))}(r)))))}));const Qg=(0,wp.compose.compose)((0,i.withSelect)((function(t){return{refresh:Date.now(),keywords:t("rank-math-pro").getTrendKeywords()}})),(0,i.withDispatch)((function(t){return{toggleKeyword:function(e){t("rank-math-pro").toggleTrendKeyword(e),t("rank-math-pro").refreshTrendKeywords()},removeKeyword:function(e){t("rank-math-pro").removeTrendKeyword(e),t("rank-math-pro").refreshTrendKeywords()}}})))((function(t){var e=t.keywords,r=t.removeKeyword,n=t.toggleKeyword;if((0,u.isEmpty)(e))return(0,L.__)("No Keywords Selected","rank-math");for(var o=(0,u.keys)(e).slice(0,5),i={},a=0;a<o.length;a++)i[o[a]]=e[o[a]];return wp.element.createElement("ul",{className:"trends-tool-keywords-list"},(0,u.map)(i,(function(t,e){var o="compare-keyword-bar";return t&&(o+=" selected"),wp.element.createElement("li",{key:e,className:o},wp.element.createElement(z.CheckboxControl,{className:"compare-keyword-checkbox",checked:t,onChange:function(){return n(e)}}),wp.element.createElement("span",{className:"compare-keyword"},e),wp.element.createElement("button",{className:"remove-keyword",onClick:function(){return r(e)}},wp.element.createElement(z.Dashicon,{icon:"no",size:"16"})))})))})),tw=jQuery;var ew=r.n(tw);function rw(t){return rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rw(t)}function nw(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ow(n.key),n)}}function ow(t){var e=function(t,e){if("object"!=rw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rw(e)?e:e+""}function iw(t,e,r){return e=uw(e),function(t,e){if(e&&("object"==rw(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,aw()?Reflect.construct(e,r||[],uw(t).constructor):e.apply(t,r))}function aw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(aw=function(){return!!t})()}function uw(t){return uw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},uw(t)}function cw(t,e){return cw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cw(t,e)}var lw=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=iw(this,e,[].concat(n))).keyword="",t.input=null,t.addKeyword=function(){""!==t.keyword&&((0,i.dispatch)("rank-math-pro").addTrendKeyword(t.keyword),(0,i.dispatch)("rank-math-pro").refreshTrendKeywords(),t.keyword="",t.input.value="")},t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cw(t,e)}(e,t),function(t,e,r){return e&&nw(t.prototype,e),r&&nw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(e,[{key:"componentDidMount",value:function(){rankMath.isUserRegistered&&(this.input=this.node.querySelector(".components-text-control__input"),ew()(this.input).autocomplete(this.getAutocompleteOptions()))}},{key:"componentWillUnmount",value:function(){rankMath.isUserRegistered&&ew()(this.input).autocomplete("destroy")}},{key:"getAutocompleteOptions",value:function(){var t=this;return{classes:{"ui-autocomplete":"ui-autocomplete rank-math-ui-autocomplete"},minLength:2,source:function(t,e){ew().ajax({url:rankMath.keywordsApi.url,data:{keyword:t.term,locale:rankMath.locale},success:function(t){e(ew().map(t,(function(t){return{value:ew()("<span>").html(t).text()}})))}})},select:function(e,r){return t.keyword=r.item.value,t.addKeyword(),t.closeSuggestionsDropdown(),!1}}}},{key:"closeSuggestionsDropdown",value:function(){var t=this.node.querySelector(".components-text-control__input");ew()(t).autocomplete("close")}},{key:"render",value:function(){var t=this;return wp.element.createElement("div",{className:"keyword-field-wrapper",ref:function(e){return t.node=e}},wp.element.createElement(z.TextControl,{label:(0,L.__)("Keywords","rank-math"),placeholder:(0,L.__)("Enter Keyword","rank-math"),className:"keyword-field",onChange:function(e){return t.keyword=e},onKeyPress:function(e){13===e.charCode&&(t.addKeyword(),t.closeSuggestionsDropdown())},disabled:this.props.disabled}),wp.element.createElement(z.Button,{isPrimary:!0,className:"add-keyword",onClick:this.addKeyword,disabled:this.props.disabled},wp.element.createElement(z.Dashicon,{icon:"plus",size:"14"}),(0,L.__)("Add","rank-math")))}}])}(F.Component);const sw=lw;function fw(t){return fw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fw(t)}function pw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pw(Object(r),!0).forEach((function(e){dw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=fw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fw(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const yw=(0,i.withSelect)((function(t,e){return hw(hw({},e),{},{refresh:Date.now(),keywords:t("rank-math-pro").getTrendKeywords()})}))((function(t){var e=t.toggleModal,r=t.keywords;return wp.element.createElement("div",{className:"trends-tool-frame-sidebar-inner"},wp.element.createElement(sw,{disabled:Object.keys(r).length>=5}),wp.element.createElement("div",{className:"trends-tool-keywords clear"},wp.element.createElement(Qg,null)),wp.element.createElement(z.Button,{className:"button use-these-keywords",isPrimary:!0,onClick:function(){var t=[];(0,u.map)(r,(function(e,r){e&&t.push(r)})),t=t.join(",");var n=(0,u.get)(window.rankMathEditor,"focusKeywordField.tagifyField.current.tagify",(0,u.get)(rankMathEditor,"components.focusKeywords.tagify",!1));!1!==n&&(n.removeAllTags(),n.addTags(t)),(0,i.dispatch)("rank-math").updateKeywords(t),e(!1),(0,i.dispatch)("rank-math-pro").clearTrendKeywords()}},(0,L.__)("Close & use selected keywords","rank-math")),wp.element.createElement(z.Button,{className:"button-link close-popup",isSecondary:!0,onClick:function(){e(!1),(0,i.dispatch)("rank-math-pro").clearTrendKeywords()}},(0,L.__)("Cancel","rank-math")))}));function vw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return mw(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mw(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}const bw=function(){var t=vw((0,F.useState)(!1),2),e=t[0],r=t[1];return wp.element.createElement(F.Fragment,null,wp.element.createElement(z.Button,{id:"rank-math-compare-keywords-trigger",isSecondary:!0,className:"button rank-math-trends-tool-button rank-math-compare-keywords-trigger",onClick:function(){return r(!0)}},wp.element.createElement("span",{className:"button-icon",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon}})),e&&wp.element.createElement(z.Modal,{title:(0,L.__)("Google Trends","rank-math-pro"),closeButtonLabel:(0,L.__)("Close","rank-math-pro"),shouldCloseOnClickOutside:!1,onRequestClose:function(){r(!1),(0,i.dispatch)("rank-math-pro").clearTrendKeywords()},className:"rank-math-modal rank-math-modal-trends-tool",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"rank-math-grid"},wp.element.createElement("div",{className:"trends-tool-frame-sidebar"},wp.element.createElement(yw,{toggleModal:r})),wp.element.createElement("div",{className:"trends-tool-frame-content"},wp.element.createElement(Jg,null)))))};var gw=r(7150),ww=r.n(gw);const xw=wp.apiFetch;var Ow=r.n(xw);function jw(){(0,a.addAction)("rank_math_tagify_init","rank-math-pro",(function(t){return new(ww())(t.tagify.DOM.scope,{selector:".tagify__tag",callbacks:{dragEnd:t.props.settings.callbacks.dragEnd}})})),(0,a.addFilter)("rank_math_focus_keyword_settings","rank-math-pro",(function(t,e){return t.callbacks.dragEnd=function(){e.tagifyField.current.tagify.updateValueByDOMTags(),e.updateKeywords(),e.selectFirstKeyword()},t})),function(){if(rankMath.showKeywordIntent){var t=rankMath.searchIntents,e=function(t){t=(0,u.toLower)(t);var e={"":{icon:"bulb-1",text:(0,L.__)("Show Intent","rank-math-pro")},commercial:{icon:"bank-3",text:(0,L.__)("Commercial","rank-math-pro")},informational:{icon:"info-circle",text:(0,L.__)("Informational","rank-math-pro")},navigational:{icon:"map-marker-11",text:(0,L.__)("Navigational","rank-math-pro")},transactional:{icon:"wallet-1-dollar",text:(0,L.__)("Transactional","rank-math-pro")}};return'\n\t\t\t<button id="rank-math-get-keyword-intent" class="rank-math-keyword-intent-wrapper is-'.concat(t||"show-intent",'" ').concat((0,u.isEmpty)(t)?"":'disabled="disabled"',">\n\t\t\t\t<span class='icon rm-icon-").concat(e[t].icon,'\'></span>\n\t\t\t\t<span class="intent">').concat(e[t].text,"</span>\n\t\t\t</button>\n\t\t")};(0,a.addAction)("rank_math_data_changed","rank-math-pro",(function(r){if("keywords"===r){var n=rankMathEditor.getPrimaryKeyword();setTimeout((function(){if(n!==rankMathEditor.getPrimaryKeyword()){ew()(".rank-math-keyword-intent-container").remove(),n=(0,u.toLower)(rankMathEditor.getPrimaryKeyword());var r=(0,u.isEmpty)(t[n])?e(""):e(t[n]);ew()(".rank-math-focus-keyword").find('tag[data-value="'+n+'"]').append('<span class="rank-math-keyword-intent-container">'.concat(r,"</span>"))}}),200)}})),(0,a.addFilter)("rank_math_after_focus_keyword","rank-math-pro",(function(r,n){var o=(0,u.toLower)(rankMathEditor.getPrimaryKeyword());return(0,u.toLower)(n)!==o||!o||(0,u.isEmpty)(t)||(0,u.isEmpty)(t[o])?r:'<span class="rank-math-keyword-intent-container">\n\t\t\t\t\t'.concat(e(t[o]),"\n\t\t\t\t</span>")})),ew()(document).on("click","#rank-math-get-keyword-intent",(function(r){r.preventDefault(),ew()(".rank-math-keyword-intent-container").addClass("is-loading");var n=rankMathEditor.getPrimaryKeyword();return Ow()({method:"POST",path:"rankmath/v1/searchIntent",data:{keyword:n}}).then((function(r){r.success?(t[n]=r.keyword,ew()(".rank-math-keyword-intent-container").html(e(r.keyword))):alert(r.message)})).finally((function(){ew()(".rank-math-keyword-intent-container").removeClass("is-loading")})),!1}))}}()}(0,a.addAction)("rank_math_loaded","rank-math-pro",(function(){void 0!==(0,i.select)("rank-math-pro")||(0,i.registerStore)("rank-math-pro",{reducer:(0,i.combineReducers)(e),selectors:n,actions:t}),(0,i.dispatch)("rank-math").setVersion(),rankMath.isUserRegistered&&(0,a.addFilter)("rankMath.focusKeywords.Trends","rank-math-pro",(function(){return bw})),(0,a.addFilter)("rankMath.analytics.reportButton","rank-math-pro",(function(){return U})),jw()}))})()})();