victory-box-plot 36.5.1 → 36.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/victory-box-plot.js +4928 -2082
- package/dist/victory-box-plot.min.js +1 -1
- package/es/helper-methods.d.ts +4 -0
- package/es/index.d.ts +2 -77
- package/es/index.js +1 -1
- package/es/victory-box-plot.d.ts +63 -0
- package/es/victory-box-plot.js +22 -22
- package/lib/helper-methods.d.ts +4 -0
- package/lib/index.d.ts +2 -77
- package/lib/index.js +11 -8
- package/lib/victory-box-plot.d.ts +63 -0
- package/lib/victory-box-plot.js +24 -26
- package/package.json +251 -8
- package/src/{helper-methods.js → helper-methods.tsx} +1 -1
- package/src/index.ts +1 -0
- package/src/{victory-box-plot.js → victory-box-plot.tsx} +99 -12
- package/src/index.d.ts +0 -77
- package/src/index.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryBoxPlot=n(require("react")):t.VictoryBoxPlot=n(t.React)}(self,(t=>(()=>{var n={1124:(t,n,e)=>{var r=e(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},4281:(t,n,e)=>{var r=e(7168),o=e(6582),i=e(3867),a=e(9557),u=e(2726);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},4690:(t,n,e)=>{var r=e(441).Symbol;t.exports=r},5198:t=>{t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},4802:t=>{t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];n(r,a,e(a),t)}return r}},8058:(t,n,e)=>{var r=e(7650);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},7431:t=>{t.exports=function(t,n,e){for(var r=-1,o=null==t?0:t.length;++r<o;)if(e(n,t[r]))return!0;return!1}},6460:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},3848:t=>{t.exports=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}},4793:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},7596:(t,n,e)=>{var r=e(999),o=e(6530),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];i.call(t,n)&&o(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3833:(t,n,e)=>{var r=e(6530);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},2435:t=>{t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];n(r,a,e(a),t)}return r}},999:(t,n,e)=>{var r=e(9346);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},1096:(t,n,e)=>{var r=e(1124),o=e(8058),i=e(7431),a=e(6460),u=e(6535),c=e(555);t.exports=function(t,n,e,l){var s=-1,f=o,p=!0,d=t.length,h=[],y=n.length;if(!d)return h;e&&(n=a(n,u(e))),l?(f=i,p=!1):n.length>=200&&(f=c,p=!1,n=new r(n));t:for(;++s<d;){var v=t[s],m=null==e?v:e(v);if(v=l||0!==v?v:0,p&&m==m){for(var g=y;g--;)if(n[g]===m)continue t;h.push(v)}else f(n,m,l)||h.push(v)}return h}},528:t=>{t.exports=function(t,n,e,r){for(var o=t.length,i=e+(r?1:-1);r?i--:++i<o;)if(n(t[i],i,t))return i;return-1}},314:(t,n,e)=>{var r=e(3848),o=e(1754);t.exports=function t(n,e,i,a,u){var c=-1,l=n.length;for(i||(i=o),u||(u=[]);++c<l;){var s=n[c];e>0&&i(s)?e>1?t(s,e-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},166:(t,n,e)=>{var r=e(8422),o=e(8780);t.exports=function(t,n){for(var e=0,i=(n=r(n,t)).length;null!=t&&e<i;)t=t[o(n[e++])];return e&&e==i?t:void 0}},4318:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7:t=>{t.exports=function(t,n){return null!=t&&n in Object(t)}},7650:t=>{t.exports=function(t,n,e){for(var r=e-1,o=t.length;++r<o;)if(t[r]===n)return r;return-1}},5432:(t,n,e)=>{var r=e(4318),o=e(3387);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},1071:(t,n,e)=>{var r=e(7229),o=e(3387);t.exports=function t(n,e,i,a,u){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!=n&&e!=e:r(n,e,i,a,t,u))}},7229:(t,n,e)=>{var r=e(4281),o=e(2503),i=e(6001),a=e(8784),u=e(6686),c=e(7236),l=e(8752),s=e(4812),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,y,v,m){var g=c(t),b=c(n),x=g?p:u(t),O=b?p:u(n),w=(x=x==f?d:x)==d,j=(O=O==f?d:O)==d,k=x==O;if(k&&l(t)){if(!l(n))return!1;g=!0,w=!1}if(k&&!w)return m||(m=new r),g||s(t)?o(t,n,e,y,v,m):i(t,n,x,e,y,v,m);if(!(1&e)){var E=w&&h.call(t,"__wrapped__"),M=j&&h.call(n,"__wrapped__");if(E||M){var A=E?t.value():t,S=M?n.value():n;return m||(m=new r),v(A,S,e,y,m)}}return!!k&&(m||(m=new r),a(t,n,e,y,v,m))}},9157:(t,n,e)=>{var r=e(4281),o=e(1071);t.exports=function(t,n,e,i){var a=e.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=e[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=e[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var d=new r;if(i)var h=i(f,p,s,t,n,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},1131:(t,n,e)=>{var r=e(4318),o=e(3387);t.exports=function(t){return o(t)&&"[object RegExp]"==r(t)}},8904:(t,n,e)=>{var r=e(8418),o=e(4555),i=e(5362),a=e(7236),u=e(1651);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},8803:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},2920:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},8418:(t,n,e)=>{var r=e(9157),o=e(9182),i=e(7375);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?i(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},4555:(t,n,e)=>{var r=e(1071),o=e(3795),i=e(3646),a=e(3266),u=e(1457),c=e(7375),l=e(8780);t.exports=function(t,n){return a(t)&&u(n)?c(l(t),n):function(e){var a=o(e,t);return void 0===a&&a===n?i(e,t):r(n,a,3)}}},690:(t,n,e)=>{var r=e(6460),o=e(166),i=e(8904),a=e(2920),u=e(6024),c=e(6535),l=e(1397),s=e(5362),f=e(7236);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return f(t)?function(n){return o(n,1===t.length?t[0]:t)}:t})):[s];var p=-1;n=r(n,c(i));var d=a(t,(function(t,e,o){return{criteria:r(n,(function(n){return n(t)})),index:++p,value:t}}));return u(d,(function(t,n){return l(t,n,e)}))}},7410:(t,n,e)=>{var r=e(6621),o=e(3646);t.exports=function(t,n){return r(t,n,(function(n,e){return o(t,e)}))}},6621:(t,n,e)=>{var r=e(166),o=e(8116),i=e(8422);t.exports=function(t,n,e){for(var a=-1,u=n.length,c={};++a<u;){var l=n[a],s=r(t,l);e(s,l)&&o(c,i(l,t),s)}return c}},1712:t=>{t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},4815:(t,n,e)=>{var r=e(166);t.exports=function(t){return function(n){return r(n,t)}}},797:t=>{var n=Math.ceil,e=Math.max;t.exports=function(t,r,o,i){for(var a=-1,u=e(n((r-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},4569:(t,n,e)=>{var r=e(5362),o=e(4468),i=e(8756);t.exports=function(t,n){return i(o(t,n,r),t+"")}},8116:(t,n,e)=>{var r=e(7596),o=e(8422),i=e(4363),a=e(5973),u=e(8780);t.exports=function(t,n,e,c){if(!a(t))return t;for(var l=-1,s=(n=o(n,t)).length,f=s-1,p=t;null!=p&&++l<s;){var d=u(n[l]),h=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(l!=f){var y=p[d];void 0===(h=c?c(y,d,p):void 0)&&(h=a(y)?y:i(n[l+1])?[]:{})}r(p,d,h),p=p[d]}return t}},6024:t=>{t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},5159:(t,n,e)=>{var r=e(6530);t.exports=function(t,n){for(var e=-1,o=t.length,i=0,a=[];++e<o;){var u=t[e],c=n?n(u):u;if(!e||!r(c,l)){var l=c;a[i++]=0===u?0:u}}return a}},454:(t,n,e)=>{var r=e(4690),o=e(6460),i=e(7236),a=e(2945),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(i(n))return o(n,t)+"";if(a(n))return c?c.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},3349:(t,n,e)=>{var r=e(5720),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},6535:t=>{t.exports=function(t){return function(n){return t(n)}}},4351:(t,n,e)=>{var r=e(1124),o=e(8058),i=e(7431),a=e(555),u=e(8491),c=e(6350);t.exports=function(t,n,e){var l=-1,s=o,f=t.length,p=!0,d=[],h=d;if(e)p=!1,s=i;else if(f>=200){var y=n?null:u(t);if(y)return c(y);p=!1,s=a,h=new r}else h=n?[]:d;t:for(;++l<f;){var v=t[l],m=n?n(v):v;if(v=e||0!==v?v:0,p&&m==m){for(var g=h.length;g--;)if(h[g]===m)continue t;n&&h.push(m),d.push(v)}else s(h,m,e)||(h!==d&&h.push(m),d.push(v))}return d}},555:(t,n,e)=>{var r=e(7650);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},8422:(t,n,e)=>{var r=e(7236),o=e(3266),i=e(3879),a=e(1119);t.exports=function(t,n){return r(t)?t:o(t,n)?[t]:i(a(t))}},709:(t,n,e)=>{var r=e(2945);t.exports=function(t,n){if(t!==n){var e=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==n,c=null===n,l=n==n,s=r(n);if(!c&&!s&&!a&&t>n||a&&u&&l&&!c&&!s||o&&u&&l||!e&&l||!i)return 1;if(!o&&!a&&!s&&t<n||s&&e&&i&&!o&&!a||c&&e&&i||!u&&i||!l)return-1}return 0}},1397:(t,n,e)=>{var r=e(709);t.exports=function(t,n,e){for(var o=-1,i=t.criteria,a=n.criteria,u=i.length,c=e.length;++o<u;){var l=r(i[o],a[o]);if(l)return o>=c?l:l*("desc"==e[o]?-1:1)}return t.index-n.index}},6051:(t,n,e)=>{var r=e(7596),o=e(999);t.exports=function(t,n,e,i){var a=!e;e||(e={});for(var u=-1,c=n.length;++u<c;){var l=n[u],s=i?i(e[l],t[l],l,e,t):void 0;void 0===s&&(s=t[l]),a?o(e,l,s):r(e,l,s)}return e}},5580:(t,n,e)=>{var r=e(4802),o=e(2435),i=e(8904),a=e(7236);t.exports=function(t,n){return function(e,u){var c=a(e)?r:o,l=n?n():{};return c(e,t,i(u,2),l)}}},2544:(t,n,e)=>{var r=e(4569),o=e(3108);t.exports=function(t){return r((function(n,e){var r=-1,i=e.length,a=i>1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(e[0],e[1],u)&&(a=i<3?void 0:a,i=1),n=Object(n);++r<i;){var c=e[r];c&&t(n,c,r,a)}return n}))}},3086:(t,n,e)=>{var r=e(8904),o=e(1580),i=e(2635);t.exports=function(t){return function(n,e,a){var u=Object(n);if(!o(n)){var c=r(e,3);n=i(n),e=function(t){return c(u[t],t,u)}}var l=t(n,e,a);return l>-1?u[c?n[l]:l]:void 0}}},9833:(t,n,e)=>{var r=e(797),o=e(3108),i=e(992);t.exports=function(t){return function(n,e,a){return a&&"number"!=typeof a&&o(n,e,a)&&(e=a=void 0),n=i(n),void 0===e?(e=n,n=0):e=i(e),a=void 0===a?n<e?1:-1:i(a),r(n,e,a,t)}}},8491:t=>{t.exports=function(){}},9346:(t,n,e)=>{var r=e(4457),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},2503:(t,n,e)=>{var r=e(1124),o=e(4793),i=e(555);t.exports=function(t,n,e,a,u,c){var l=1&e,s=t.length,f=n.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),d=c.get(n);if(p&&d)return p==n&&d==t;var h=-1,y=!0,v=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++h<s;){var m=t[h],g=n[h];if(a)var b=l?a(g,m,h,n,t,c):a(m,g,h,t,n,c);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!o(n,(function(t,n){if(!i(v,n)&&(m===t||u(m,t,e,a,c)))return v.push(n)}))){y=!1;break}}else if(m!==g&&!u(m,g,e,a,c)){y=!1;break}}return c.delete(t),c.delete(n),y}},6001:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},8784:(t,n,e)=>{var r=e(6094),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,i,a,u){var c=1&e,l=r(t),s=l.length;if(s!=r(n).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in n:o.call(n,p)))return!1}var d=u.get(t),h=u.get(n);if(d&&h)return d==n&&h==t;var y=!0;u.set(t,n),u.set(n,t);for(var v=c;++f<s;){var m=t[p=l[f]],g=n[p];if(i)var b=c?i(g,m,p,n,t,u):i(m,g,p,t,n,u);if(!(void 0===b?m===g||a(m,g,e,i,u):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,O=n.constructor;x==O||!("constructor"in t)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(y=!1)}return u.delete(t),u.delete(n),y}},3368:(t,n,e)=>{var r=e(5453),o=e(4468),i=e(8756);t.exports=function(t){return i(o(t,void 0,r),t+"")}},4414:(t,n,e)=>{var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},6094:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},5559:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},9182:(t,n,e)=>{var r=e(1457),o=e(2635);t.exports=function(t){for(var n=o(t),e=n.length;e--;){var i=n[e],a=t[i];n[e]=[i,a,r(a)]}return n}},4457:t=>{t.exports=function(t,n){return null==t?void 0:t[n]}},1407:(t,n,e)=>{var r=e(3717)(Object.getPrototypeOf,Object);t.exports=r},6686:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7383:(t,n,e)=>{var r=e(8422),o=e(6981),i=e(7236),a=e(4363),u=e(9216),c=e(8780);t.exports=function(t,n,e){for(var l=-1,s=(n=r(n,t)).length,f=!1;++l<s;){var p=c(n[l]);if(!(f=null!=t&&e(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))}},1754:(t,n,e)=>{var r=e(4690),o=e(6981),i=e(7236),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},4363:t=>{var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},3108:t=>{t.exports=function(){return!1}},3266:(t,n,e)=>{var r=e(7236),o=e(2945),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=n&&t in Object(n)}},5003:t=>{t.exports=function(){return!1}},1457:(t,n,e)=>{var r=e(5973);t.exports=function(t){return t==t&&!r(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,n,e)=>{var r=e(3833),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():o.call(n,e,1),--this.size,0))}},3867:(t,n,e)=>{var r=e(3833);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},9557:(t,n,e)=>{var r=e(3833);t.exports=function(t){return r(this.__data__,t)>-1}},2726:(t,n,e)=>{var r=e(3833);t.exports=function(t,n){var e=this.__data__,o=r(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this}},7375:t=>{t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,n,e)=>{t=e.nmd(t);var r=e(4414),o=n&&!n.nodeType&&n,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},3717:t=>{t.exports=function(t,n){return function(e){return t(n(e))}}},4468:(t,n,e)=>{var r=e(5198),o=Math.max;t.exports=function(t,n,e){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),c=Array(u);++a<u;)c[a]=i[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=i[a];return l[n]=e(c),r(t,this,l)}}},441:(t,n,e)=>{var r=e(4414),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6350:t=>{t.exports=function(){return[]}},8756:t=>{t.exports=function(t){return t}},3879:(t,n,e)=>{var r=e(7085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,e,r,o){n.push(r?o.replace(i,"$1"):e||t)})),n}));t.exports=a},8780:t=>{t.exports=function(t){return t}},5720:t=>{var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},6782:(t,n,e)=>{var r=e(7596),o=e(6051),i=e(2544),a=e(1580),u=e(5003),c=e(2635),l=Object.prototype.hasOwnProperty,s=i((function(t,n){if(u(n)||a(n))o(n,c(n),t);else for(var e in n)l.call(n,e)&&r(t,e,n[e])}));t.exports=s},7901:(t,n,e)=>{var r=e(4569),o=e(6530),i=e(3108),a=e(5850),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,n){t=Object(t);var e=-1,r=n.length,l=r>2?n[2]:void 0;for(l&&i(n[0],n[1],l)&&(r=1);++e<r;)for(var s=n[e],f=a(s),p=-1,d=f.length;++p<d;){var h=f[p],y=t[h];(void 0===y||o(y,u[h])&&!c.call(t,h))&&(t[h]=s[h])}return t}));t.exports=l},484:(t,n,e)=>{var r=e(1096),o=e(314),i=e(4569),a=e(9747),u=i((function(t,n){return a(t)?r(t,o(n,1,a,!0)):[]}));t.exports=u},6530:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},6786:(t,n,e)=>{var r=e(3086)(e(8611));t.exports=r},8611:(t,n,e)=>{var r=e(528),o=e(8904),i=e(5225),a=Math.max;t.exports=function(t,n,e){var u=null==t?0:t.length;if(!u)return-1;var c=null==e?0:i(e);return c<0&&(c=a(u+c,0)),r(t,o(n,3),c)}},5453:(t,n,e)=>{var r=e(314);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},3795:(t,n,e)=>{var r=e(166);t.exports=function(t,n,e){var o=null==t?void 0:r(t,n);return void 0===o?e:o}},1346:(t,n,e)=>{var r=e(999),o=e(5580),i=Object.prototype.hasOwnProperty,a=o((function(t,n,e){i.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},3646:(t,n,e)=>{var r=e(7),o=e(7383);t.exports=function(t,n){return null!=t&&o(t,n,r)}},5362:t=>{t.exports=function(t){return t}},6901:(t,n,e)=>{var r=e(7650);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var n=Array.isArray;t.exports=n},1580:(t,n,e)=>{var r=e(3839),o=e(9216);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},9747:(t,n,e)=>{var r=e(1580),o=e(3387);t.exports=function(t){return o(t)&&r(t)}},8752:t=>{t.exports=function(){return!1}},7957:(t,n,e)=>{var r=e(5432),o=e(6535),i=e(1782),a=i&&i.isDate,u=a?o(a):r;t.exports=u},6834:(t,n,e)=>{var r=e(8803),o=e(6686),i=e(6981),a=e(7236),u=e(1580),c=e(8752),l=e(5003),s=e(4812),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||s(t)||i(t)))return!t.length;var n=o(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(l(t))return!r(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},9793:(t,n,e)=>{var r=e(1071);t.exports=function(t,n){return r(t,n)}},3839:(t,n,e)=>{var r=e(4318),o=e(5973);t.exports=function(t){if(!o(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5919:(t,n,e)=>{var r=e(22);t.exports=function(t){return r(t)&&t!=+t}},6866:t=>{t.exports=function(t){return null==t}},22:(t,n,e)=>{var r=e(4318),o=e(3387);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},5973:t=>{t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},9636:(t,n,e)=>{var r=e(4318),o=e(1407),i=e(3387),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]"!=r(t))return!1;var n=o(t);if(null===n)return!0;var e=l.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==s}},2654:(t,n,e)=>{var r=e(1131),o=e(6535),i=e(1782),a=i&&i.isRegExp,u=a?o(a):r;t.exports=u},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2720:t=>{t.exports=function(t){return void 0===t}},2635:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},5850:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},2972:t=>{t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},5913:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}},5492:(t,n,e)=>{var r=e(8904),o=e(5913),i=e(9922);t.exports=function(t,n){return i(t,o(r(n)))}},1473:(t,n,e)=>{var r=e(690),o=e(7236);t.exports=function(t,n,e,i){return null==t?[]:(o(n)||(n=null==n?[]:[n]),o(e=i?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},8423:(t,n,e)=>{var r=e(7410),o=e(3368)((function(t,n){return null==t?{}:r(t,n)}));t.exports=o},9922:(t,n,e)=>{var r=e(6460),o=e(8904),i=e(6621),a=e(5559);t.exports=function(t,n){if(null==t)return{};var e=r(a(t),(function(t){return[t]}));return n=o(n),i(t,e,(function(t,e){return n(t,e[0])}))}},1651:(t,n,e)=>{var r=e(1712),o=e(4815),i=e(3266),a=e(8780);t.exports=function(t){return i(t)?r(a(t)):o(t)}},9717:(t,n,e)=>{var r=e(9833)();t.exports=r},5921:(t,n,e)=>{var r=e(5159);t.exports=function(t){return t&&t.length?r(t):[]}},992:(t,n,e)=>{var r=e(8746);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,n,e)=>{var r=e(992);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},8746:(t,n,e)=>{var r=e(3349),o=e(5973),i=e(2945),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 n="function"==typeof t.valueOf?t.valueOf():t;t=o(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=u.test(t);return e||c.test(t)?l(t.slice(2),e?2:8):a.test(t)?NaN:+t}},1119:(t,n,e)=>{var r=e(454);t.exports=function(t){return null==t?"":r(t)}},1815:(t,n,e)=>{var r=e(4351);t.exports=function(t){return t&&t.length?r(t):[]}},556:(t,n,e)=>{var r=e(1119),o=0;t.exports=function(t){var n=++o;return r(t)+n}},6205:(t,n,e)=>{var r=e(1096),o=e(4569),i=e(9747),a=o((function(t,n){return i(t)?r(t,n):[]}));t.exports=a},459:(t,n,e)=>{"use strict";var r=e(5704);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,n,e,o,i,a){if(a!==r){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 n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},216:(t,n,e)=>{t.exports=e(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8266:t=>{var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(n&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return i(t,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:n=>{"use strict";n.exports=t}},e={};function r(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={id:t,loaded:!1,exports:{}};return n[t](i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return r.d(n,{a:n}),n},r.d=(t,n)=>{for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},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,n)=>Object.prototype.hasOwnProperty.call(t,n),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);var o={};return(()=>{"use strict";r.r(o),r.d(o,{VictoryBoxPlot:()=>qs});var t={};r.r(t),r.d(t,{scaleBand:()=>lt,scaleDiverging:()=>di,scaleDivergingLog:()=>hi,scaleDivergingPow:()=>vi,scaleDivergingSqrt:()=>mi,scaleDivergingSymlog:()=>yi,scaleIdentity:()=>Gn,scaleImplicit:()=>ut,scaleLinear:()=>Vn,scaleLog:()=>oe,scaleOrdinal:()=>ct,scalePoint:()=>ft,scalePow:()=>de,scaleQuantile:()=>Ee,scaleQuantize:()=>Me,scaleRadial:()=>me,scaleSequential:()=>ii,scaleSequentialLog:()=>ai,scaleSequentialPow:()=>ci,scaleSequentialQuantile:()=>si,scaleSequentialSqrt:()=>li,scaleSequentialSymlog:()=>ui,scaleSqrt:()=>he,scaleSymlog:()=>ce,scaleThreshold:()=>Ae,scaleTime:()=>ni,scaleUtc:()=>ei,tickFormat:()=>Yn});var n={};r.r(n),r.d(n,{easeBack:()=>Yc,easeBackIn:()=>$c,easeBackInOut:()=>Yc,easeBackOut:()=>Bc,easeBounce:()=>Fc,easeBounceIn:()=>Wc,easeBounceInOut:()=>zc,easeBounceOut:()=>Fc,easeCircle:()=>Rc,easeCircleIn:()=>Nc,easeCircleInOut:()=>Rc,easeCircleOut:()=>qc,easeCubic:()=>jc,easeCubicIn:()=>Oc,easeCubicInOut:()=>jc,easeCubicOut:()=>wc,easeElastic:()=>Gc,easeElasticIn:()=>Vc,easeElasticInOut:()=>Qc,easeElasticOut:()=>Gc,easeExp:()=>Lc,easeExpIn:()=>Dc,easeExpInOut:()=>Lc,easeExpOut:()=>Ic,easeLinear:()=>mc,easePoly:()=>Mc,easePolyIn:()=>kc,easePolyInOut:()=>Mc,easePolyOut:()=>Ec,easeQuad:()=>xc,easeQuadIn:()=>gc,easeQuadInOut:()=>xc,easeQuadOut:()=>bc,easeSin:()=>Tc,easeSinIn:()=>Pc,easeSinInOut:()=>Tc,easeSinOut:()=>Cc});var e=r(6866),i=r.n(e),a=r(5453),u=r.n(a),c=r(9787),l=r.n(c),s=r(216),f=r.n(s),p=r(2635),d=r.n(p),h=r(6782),y=r.n(h),v=r(8423),m=r.n(v),g=r(1651),b=r.n(g),x=r(3839),O=r.n(x),w=r(7901),j=r.n(w);function k(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function E(t){var n=function(t){return void 0!==t},e=t._x,r=t._x1,o=t._x0,i=t._voronoiX,a=t._y,u=t._y1,c=t._y0,l=t._voronoiY,s=n(r)?r:e,f=n(u)?u:a,p={x:n(i)?i:s,x0:n(o)?o:e,y:n(l)?l:f,y0:n(c)?c:a};return j()({},p,t)}function M(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",e=t[n],r="number"==typeof e?e:0,o="object"==typeof e?e:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function A(t){return"tooltip"===(t&&t.type&&t.type.role)}function S(t,n){return O()(t)?t(n):t}function P(t,n){return n.disableInlineStyles?{}:t&&d()(t).some((function(n){return O()(t[n])}))?d()(t).reduce((function(e,r){return e[r]=S(t[r],n),e}),{}):t}function C(t){return"number"==typeof t?t*(Math.PI/180):t}function T(t){var n=M(t),e=n.left,r=n.right,o=n.top,i=n.bottom,a=t.width,u=t.height;return Math.min(a-e-r,u-o-i)/2}function _(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,n){return"x"===n?[C(t.startAngle||0),C(t.endAngle||360)]:[t.innerRadius||0,T(t)]}(t,n):function(t,n){var e="x"!==n,r=M(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function D(t){return O()(t)?t:null==t?function(t){return t}:b()(t)}function I(t,n,e){var r=k(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),o=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var n=function(t){return t.reduce((function(t,e){var r=e.props||{};return t||r.horizontal||!r.children?t=t||r.horizontal:n(l().Children.toArray(r.children))}),!1)};return n(l().Children.toArray(t.children))}(t),i=void 0===o?{}:{horizontal:o};return j()(i,t,r,n)}function L(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}}(t,n)||function(t,n){if(t){if("string"==typeof t)return N(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?N(t,n):void 0}}(t,n)||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 N(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function q(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function R(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var U={startsWith:["data-","aria-"],exactMatch:[]},W=function(t,n){return"function"==typeof t?t(n):t},F=function(t){var n=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?q(Object(e),!0).forEach((function(n){R(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):q(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}({},t);return Object.fromEntries(Object.entries(n).filter((function(t){return function(t){return!(!function(t){var n=!1;return U.startsWith.forEach((function(e){new RegExp("\\b(".concat(e,")(\\w|-)+"),"g").test(t)&&(n=!0)})),n}(t)&&!function(t){return U.exactMatch.includes(t)}(t))}(L(t,1)[0])})).map((function(n){var e=L(n,2),r=e[0],o=e[1];return[r,W(o,t)]})))},z=r(2654),H=r.n(z),$=r(6786),B=r.n($),Y=r(9636),K=r.n(Y),V=r(6901),G=r.n(V);function Q(t){return function(t){if(Array.isArray(t))return Z(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return Z(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Z(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function X(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function J(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];var o=t.concat(e);return X(o)?new Date(Math.max.apply(Math,Q(o))):Math.max.apply(Math,Q(o))}function tt(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];var o=t.concat(e);return X(o)?new Date(Math.min.apply(Math,Q(o))):Math.min.apply(Math,Q(o))}function nt(t,n,e){t=+t,n=+n,e=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+e;for(var r=-1,o=0|Math.max(0,Math.ceil((n-t)/e)),i=new Array(o);++r<o;)i[r]=t+r*e;return i}function et(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function rt(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}class ot extends Map{constructor(t,n=at){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(it(this,t))}has(t){return super.has(it(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}(this,t))}}function it({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function at(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const ut=Symbol("implicit");function ct(){var t=new ot,n=[],e=[],r=ut;function o(o){let i=t.get(o);if(void 0===i){if(r!==ut)return r;t.set(o,i=n.push(o)-1)}return e[i%e.length]}return o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new ot;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return o},o.range=function(t){return arguments.length?(e=Array.from(t),o):e.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return ct(n,e).unknown(r)},et.apply(o,arguments),o}function lt(){var t,n,e=ct().unknown(void 0),r=e.domain,o=e.range,i=0,a=1,u=!1,c=0,l=0,s=.5;function f(){var e=r().length,f=a<i,p=f?a:i,d=f?i:a;t=(d-p)/Math.max(1,e-c+2*l),u&&(t=Math.floor(t)),p+=(d-p-t*(e-c))*s,n=t*(1-c),u&&(p=Math.round(p),n=Math.round(n));var h=nt(e).map((function(n){return p+t*n}));return o(f?h.reverse():h)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),f()):r()},e.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},e.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,f()):u},e.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},e.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},e.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},e.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},e.copy=function(){return lt(r(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},et.apply(f(),arguments)}function st(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return st(n())},t}function ft(){return st(lt.apply(null,arguments).paddingInner(1))}var pt=Math.sqrt(50),dt=Math.sqrt(10),ht=Math.sqrt(2);function yt(t,n,e){var r,o,i,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(o=t,t=n,n=o),0===(a=vt(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)/a}return r&&i.reverse(),i}function vt(t,n,e){var r=(n-t)/Math.max(0,e),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=pt?10:i>=dt?5:i>=ht?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=pt?10:i>=dt?5:i>=ht?2:1)}function mt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=pt?o*=10:i>=dt?o*=5:i>=ht&&(o*=2),n<t?-o:o}function gt(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function bt(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function xt(t){let n,e,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<0?o=n+1:i=n}while(o<i)}return o}return 2!==t.length?(n=gt,e=(n,e)=>gt(t(n),e),r=(n,e)=>t(n)-e):(n=t===gt||t===bt?t:Ot,e=t,r=t),{left:o,center:function(t,n,e=0,i=t.length){const a=o(t,n,e,i-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<=0?o=n+1:i=n}while(o<i)}return o}}}function Ot(){return 0}function wt(t){return null===t?NaN:+t}const jt=xt(gt),kt=jt.right,Et=(jt.left,xt(wt).center,kt);function Mt(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function At(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function St(){}var Pt=.7,Ct=1/Pt,Tt="\\s*([+-]?\\d+)\\s*",_t="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",It=/^#([0-9a-f]{3,8})$/,Lt=new RegExp(`^rgb\\(${Tt},${Tt},${Tt}\\)$`),Nt=new RegExp(`^rgb\\(${Dt},${Dt},${Dt}\\)$`),qt=new RegExp(`^rgba\\(${Tt},${Tt},${Tt},${_t}\\)$`),Rt=new RegExp(`^rgba\\(${Dt},${Dt},${Dt},${_t}\\)$`),Ut=new RegExp(`^hsl\\(${_t},${Dt},${Dt}\\)$`),Wt=new RegExp(`^hsla\\(${_t},${Dt},${Dt},${_t}\\)$`),Ft={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 zt(){return this.rgb().formatHex()}function Ht(){return this.rgb().formatRgb()}function $t(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=It.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Bt(n):3===e?new Gt(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Yt(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Yt(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Lt.exec(t))?new Gt(n[1],n[2],n[3],1):(n=Nt.exec(t))?new Gt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=qt.exec(t))?Yt(n[1],n[2],n[3],n[4]):(n=Rt.exec(t))?Yt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ut.exec(t))?nn(n[1],n[2]/100,n[3]/100,1):(n=Wt.exec(t))?nn(n[1],n[2]/100,n[3]/100,n[4]):Ft.hasOwnProperty(t)?Bt(Ft[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function Bt(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function Yt(t,n,e,r){return r<=0&&(t=n=e=NaN),new Gt(t,n,e,r)}function Kt(t){return t instanceof St||(t=$t(t)),t?new Gt((t=t.rgb()).r,t.g,t.b,t.opacity):new Gt}function Vt(t,n,e,r){return 1===arguments.length?Kt(t):new Gt(t,n,e,null==r?1:r)}function Gt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Qt(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}`}function Zt(){const t=Xt(this.opacity);return`${1===t?"rgb(":"rgba("}${Jt(this.r)}, ${Jt(this.g)}, ${Jt(this.b)}${1===t?")":`, ${t})`}`}function Xt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Jt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function tn(t){return((t=Jt(t))<16?"0":"")+t.toString(16)}function nn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new rn(t,n,e,r)}function en(t){if(t instanceof rn)return new rn(t.h,t.s,t.l,t.opacity);if(t instanceof St||(t=$t(t)),!t)return new rn;if(t instanceof rn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,o=Math.min(n,e,r),i=Math.max(n,e,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=n===i?(e-r)/u+6*(e<r):e===i?(r-n)/u+2:(n-e)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new rn(a,u,c,t.opacity)}function rn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function on(t){return(t=(t||0)%360)<0?t+360:t}function an(t){return Math.max(0,Math.min(1,t||0))}function un(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function cn(t,n,e,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*n+(4-6*i+3*a)*e+(1+3*t+3*i-3*a)*r+a*o)/6}Mt(St,$t,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:zt,formatHex:zt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return en(this).formatHsl()},formatRgb:Ht,toString:Ht}),Mt(Gt,Vt,At(St,{brighter(t){return t=null==t?Ct:Math.pow(Ct,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Pt:Math.pow(Pt,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Gt(Jt(this.r),Jt(this.g),Jt(this.b),Xt(this.opacity))},displayable(){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:Qt,formatHex:Qt,formatHex8:function(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}${tn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zt,toString:Zt})),Mt(rn,(function(t,n,e,r){return 1===arguments.length?en(t):new rn(t,n,e,null==r?1:r)}),At(St,{brighter(t){return t=null==t?Ct:Math.pow(Ct,t),new rn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Pt:Math.pow(Pt,t),new rn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,o=2*e-r;return new Gt(un(t>=240?t-240:t+120,o,r),un(t,o,r),un(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new rn(on(this.h),an(this.s),an(this.l),Xt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Xt(this.opacity);return`${1===t?"hsl(":"hsla("}${on(this.h)}, ${100*an(this.s)}%, ${100*an(this.l)}%${1===t?")":`, ${t})`}`}}));const ln=t=>()=>t;function sn(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):ln(isNaN(t)?n:t)}const fn=function t(n){var e=function(t){return 1==(t=+t)?sn:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):ln(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=Vt(t)).r,(n=Vt(n)).r),o=e(t.g,n.g),i=e(t.b,n.b),a=sn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=o(n),t.b=i(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function pn(t){return function(n){var e,r,o=n.length,i=new Array(o),a=new Array(o),u=new Array(o);for(e=0;e<o;++e)r=Vt(n[e]),i[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}function dn(t,n){var e,r=n?n.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(e=0;e<o;++e)i[e]=On(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<o;++e)a[e]=i[e](t);return a}}function hn(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function yn(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function vn(t,n){var e,r={},o={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=On(t[e],n[e]):o[e]=n[e];return function(t){for(e in r)o[e]=r[e](t);return o}}pn((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<n-1?t[r+2]:2*i-o;return cn((e-r/n)*n,a,o,i,u)}})),pn((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),o=t[(r+n-1)%n],i=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return cn((e-r/n)*n,o,i,a,u)}}));var mn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gn=new RegExp(mn.source,"g");function bn(t,n){var e,r,o,i=mn.lastIndex=gn.lastIndex=0,a=-1,u=[],c=[];for(t+="",n+="";(e=mn.exec(t))&&(r=gn.exec(n));)(o=r.index)>i&&(o=n.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:yn(e,r)})),i=gn.lastIndex;return i<n.length&&(o=n.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)u[(e=c[r]).i]=e.x(t);return u.join("")})}function xn(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,o=n.slice();return function(i){for(e=0;e<r;++e)o[e]=t[e]*(1-i)+n[e]*i;return o}}function On(t,n){var e,r,o=typeof n;return null==n||"boolean"===o?ln(n):("number"===o?yn:"string"===o?(e=$t(n))?(n=e,fn):bn:n instanceof $t?fn:n instanceof Date?hn:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?dn:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?vn:yn:xn))(t,n)}function wn(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function jn(t){return+t}var kn=[0,1];function En(t){return t}function Mn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function An(t,n,e){var r=t[0],o=t[1],i=n[0],a=n[1];return o<r?(r=Mn(o,r),i=e(a,i)):(r=Mn(r,o),i=e(i,a)),function(t){return i(r(t))}}function Sn(t,n,e){var r=Math.min(t.length,n.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)o[a]=Mn(t[a],t[a+1]),i[a]=e(n[a],n[a+1]);return function(n){var e=Et(t,n,1,r)-1;return i[e](o[e](n))}}function Pn(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Cn(){var t,n,e,r,o,i,a=kn,u=kn,c=On,l=En;function s(){var t,n,e,c=Math.min(a.length,u.length);return l!==En&&(t=a[0],n=a[c-1],t>n&&(e=t,t=n,n=e),l=function(e){return Math.max(t,Math.min(n,e))}),r=c>2?Sn:An,o=i=null,f}function f(n){return null==n||isNaN(n=+n)?e:(o||(o=r(a.map(t),u,c)))(t(l(n)))}return f.invert=function(e){return l(n((i||(i=r(u,a.map(t),yn)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,jn),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=wn,s()},f.clamp=function(t){return arguments.length?(l=!!t||En,s()):l!==En},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,s()}}function Tn(){return Cn()(En,En)}var _n,Dn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function In(t){if(!(n=Dn.exec(t)))throw new Error("invalid format: "+t);var n;return new Ln({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Ln(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 Nn(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function qn(t){return(t=Nn(Math.abs(t)))?t[1]:NaN}function Rn(t,n){var e=Nn(t,n);if(!e)return t+"";var r=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}In.prototype=Ln.prototype,Ln.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 Un={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Rn(100*t,n),r:Rn,s:function(t,n){var e=Nn(t,n);if(!e)return t+"";var r=e[0],o=e[1],i=o-(_n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Nn(t,Math.max(0,n+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Wn(t){return t}var Fn,zn,Hn,$n=Array.prototype.map,Bn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yn(t,n,e,r){var o,i=mt(t,n,e);switch((r=In(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(o=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(qn(n)/3)))-qn(Math.abs(t)))}(i,a))||(r.precision=o),Hn(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,qn(n)-qn(t))+1}(i,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-qn(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return zn(r)}function Kn(t){var n=t.domain;return t.ticks=function(t){var e=n();return yt(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Yn(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,o,i=n(),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=vt(c,l,e))===r)return i[a]=c,i[u]=l,n(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}r=o}return t},t}function Vn(){var t=Tn();return t.copy=function(){return Pn(t,Vn())},et.apply(t,arguments),Kn(t)}function Gn(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,jn),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return Gn(t).unknown(n)},t=arguments.length?Array.from(t,jn):[0,1],Kn(e)}function Qn(t,n){var e,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(e=r,r=o,o=e,e=i,i=a,a=e),t[r]=n.floor(i),t[o]=n.ceil(a),t}function Zn(t){return Math.log(t)}function Xn(t){return Math.exp(t)}function Jn(t){return-Math.log(-t)}function te(t){return-Math.exp(-t)}function ne(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ee(t){return(n,e)=>-t(-n,e)}function re(t){const n=t(Zn,Xn),e=n.domain;let r,o,i=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(i),o=function(t){return 10===t?ne:t===Math.E?Math.exp:n=>Math.pow(t,n)}(i),e()[0]<0?(r=ee(r),o=ee(o),t(Jn,te)):t(Zn,Xn),n}return n.base=function(t){return arguments.length?(i=+t,a()):i},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],u=n[n.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=r(a),p=r(u);const d=null==t?10:+t;let h=[];if(!(i%1)&&p-f<d){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;h.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;h.push(s)}2*h.length<d&&(h=yt(a,u,d))}else h=yt(f,p,Math.min(p-f,d)).map(o);return c?h.reverse():h},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===i?"s":","),"function"!=typeof e&&(i%1||null!=(e=In(e)).precision||(e.trim=!0),e=zn(e)),t===1/0)return e;const a=Math.max(1,i*t/n.ticks().length);return t=>{let n=t/o(Math.round(r(t)));return n*i<i-.5&&(n*=i),n<=a?e(t):""}},n.nice=()=>e(Qn(e(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),n}function oe(){const t=re(Cn()).domain([1,10]);return t.copy=()=>Pn(t,oe()).base(t.base()),et.apply(t,arguments),t}function ie(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function ae(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function ue(t){var n=1,e=t(ie(n),ae(n));return e.constant=function(e){return arguments.length?t(ie(n=+e),ae(n)):n},Kn(e)}function ce(){var t=ue(Cn());return t.copy=function(){return Pn(t,ce()).constant(t.constant())},et.apply(t,arguments)}function le(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function se(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function fe(t){return t<0?-t*t:t*t}function pe(t){var n=t(En,En),e=1;function r(){return 1===e?t(En,En):.5===e?t(se,fe):t(le(e),le(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Kn(n)}function de(){var t=pe(Cn());return t.copy=function(){return Pn(t,de()).exponent(t.exponent())},et.apply(t,arguments),t}function he(){return de.apply(null,arguments).exponent(.5)}function ye(t){return Math.sign(t)*t*t}function ve(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function me(){var t,n=Tn(),e=[0,1],r=!1;function o(e){var o=ve(n(e));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return n.invert(ye(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((e=Array.from(t,jn)).map(ye)),o):e.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return me(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},et.apply(o,arguments),Kn(o)}function ge(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(e<o||void 0===e&&o>=o)&&(e=o)}return e}function be(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(e>o||void 0===e&&o>=o)&&(e=o)}return e}function xe(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Oe(t,n,e=0,r=t.length-1,o){for(o=void 0===o?xe:function(t=gt){if(t===gt)return xe;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}(o);r>e;){if(r-e>600){const i=r-e+1,a=n-e+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);Oe(t,n,Math.max(e,Math.floor(n-a*c/i+l)),Math.min(r,Math.floor(n+(i-a)*c/i+l)),o)}const i=t[n];let a=e,u=r;for(we(t,e,n),o(t[r],i)>0&&we(t,e,r);a<u;){for(we(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[e],i)?we(t,e,u):(++u,we(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function we(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function je(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return be(t);if(n>=1)return ge(t);var r,o=(r-1)*n,i=Math.floor(o),a=ge(Oe(t,i).subarray(0,i+1));return a+(be(t.subarray(i+1))-a)*(o-i)}}function ke(t,n,e=wt){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,o=(r-1)*n,i=Math.floor(o),a=+e(t[i],i,t);return a+(+e(t[i+1],i+1,t)-a)*(o-i)}}function Ee(){var t,n=[],e=[],r=[];function o(){var t=0,o=Math.max(1,e.length);for(r=new Array(o-1);++t<o;)r[t-1]=ke(n,t/o);return i}function i(n){return null==n||isNaN(n=+n)?t:e[Et(r,n)]}return i.invertExtent=function(t){var o=e.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:n[0],o<r.length?r[o]:n[n.length-1]]},i.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(gt),o()},i.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return Ee().domain(n).range(e).unknown(t)},et.apply(i,arguments)}function Me(){var t,n=0,e=1,r=1,o=[.5],i=[0,1];function a(n){return null!=n&&n<=n?i[Et(o,n,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,u()):[n,e]},a.range=function(t){return arguments.length?(r=(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?[n,o[0]]:a>=r?[o[r-1],e]:[o[a-1],o[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Me().domain([n,e]).range(i).unknown(t)},et.apply(Kn(a),arguments)}function Ae(){var t,n=[.5],e=[0,1],r=1;function o(o){return null!=o&&o<=o?e[Et(n,o,0,r)]:t}return o.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),o):n.slice()},o.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),o):e.slice()},o.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return Ae().domain(n).range(e).unknown(t)},et.apply(o,arguments)}Fn=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Wn:(n=$n.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=n[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return i.reverse().join(e)}),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?Wn:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}($n.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 n=(t=In(t)).fill,e=t.align,f=t.sign,p=t.symbol,d=t.zero,h=t.width,y=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(y=!0,g="g"):Un[g]||(void 0===v&&(v=12),m=!0,g="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?c:"",O=Un[g],w=/[defgprs%]/.test(g);function j(t){var o,i,c,p=b,j=x;if("c"===g)j=O(t)+j,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:O(Math.abs(t),v),m&&(t=function(t){t:for(var n,e=t.length,r=1,o=-1;r<e;++r)switch(t[r]){case".":o=n=r;break;case"0":0===o&&(o=r),n=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),p=(k?"("===f?f:l:"-"===f||"("===f?"":f)+p,j=("s"===g?Bn[8+_n/3]:"")+j+(k&&"("===f?")":""),w)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&&!d&&(t=r(t,1/0));var E=p.length+t.length+j.length,M=E<h?new Array(h-E+1).join(n):"";switch(y&&d&&(t=r(M+t,M.length?h-j.length:1/0),M=""),e){case"<":t=p+t+j+M;break;case"=":t=p+M+t+j;break;case"^":t=M.slice(0,E=M.length>>1)+p+t+j+M.slice(E);break;default:t=M+p+t+j}return u(t)}return v=void 0===v?6:/[gprs]/.test(g)?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,n){var e=f(((t=In(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(qn(n)/3))),o=Math.pow(10,-r),i=Bn[8+r/3];return function(t){return e(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),zn=Fn.format,Hn=Fn.formatPrefix;const Se=1e3,Pe=6e4,Ce=36e5,Te=864e5,_e=6048e5,De=31536e6;var Ie=new Date,Le=new Date;function Ne(t,n,e,r){function o(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return o.floor=function(n){return t(n=new Date(+n)),n},o.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},o.round=function(t){var n=o(t),e=o.ceil(t);return t-n<e-t?n:e},o.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},o.range=function(e,r,i){var a,u=[];if(e=o.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return u;do{u.push(a=new Date(+e)),n(e,i),t(e)}while(a<e&&e<r);return u},o.filter=function(e){return Ne((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(o.count=function(n,r){return Ie.setTime(+n),Le.setTime(+r),t(Ie),t(Le),Math.floor(e(Ie,Le))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(n){return r(n)%t==0}:function(n){return o.count(0,n)%t==0}):o:null}),o}var qe=Ne((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));qe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ne((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):qe:null};const Re=qe;qe.range;var Ue=Ne((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Se)}),(function(t,n){return(n-t)/Se}),(function(t){return t.getUTCSeconds()}));const We=Ue;Ue.range;var Fe=Ne((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Se)}),(function(t,n){t.setTime(+t+n*Pe)}),(function(t,n){return(n-t)/Pe}),(function(t){return t.getMinutes()}));const ze=Fe;Fe.range;var He=Ne((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Se-t.getMinutes()*Pe)}),(function(t,n){t.setTime(+t+n*Ce)}),(function(t,n){return(n-t)/Ce}),(function(t){return t.getHours()}));const $e=He;He.range;var Be=Ne((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Pe)/Te),(t=>t.getDate()-1));const Ye=Be;function Ke(t){return Ne((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Pe)/_e}))}Be.range;var Ve=Ke(0),Ge=Ke(1),Qe=Ke(2),Ze=Ke(3),Xe=Ke(4),Je=Ke(5),tr=Ke(6),nr=(Ve.range,Ge.range,Qe.range,Ze.range,Xe.range,Je.range,tr.range,Ne((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const er=nr;nr.range;var rr=Ne((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));rr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ne((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const or=rr;rr.range;var ir=Ne((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Pe)}),(function(t,n){return(n-t)/Pe}),(function(t){return t.getUTCMinutes()}));const ar=ir;ir.range;var ur=Ne((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Ce)}),(function(t,n){return(n-t)/Ce}),(function(t){return t.getUTCHours()}));const cr=ur;ur.range;var lr=Ne((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Te}),(function(t){return t.getUTCDate()-1}));const sr=lr;function fr(t){return Ne((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/_e}))}lr.range;var pr=fr(0),dr=fr(1),hr=fr(2),yr=fr(3),vr=fr(4),mr=fr(5),gr=fr(6),br=(pr.range,dr.range,hr.range,yr.range,vr.range,mr.range,gr.range,Ne((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const xr=br;br.range;var Or=Ne((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Or.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ne((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const wr=Or;function jr(t,n,e,r,o,i){const a=[[We,1,Se],[We,5,5e3],[We,15,15e3],[We,30,3e4],[i,1,Pe],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Ce],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Te],[r,2,1728e5],[e,1,_e],[n,1,2592e6],[n,3,7776e6],[t,1,De]];function u(n,e,r){const o=Math.abs(e-n)/r,i=xt((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(mt(n/De,e/De,r));if(0===i)return Re.every(Math.max(mt(n,e,r),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const o=e&&"function"==typeof e.range?e:u(t,n,e),i=o?o.range(t,+n+1):[];return r?i.reverse():i},u]}Or.range;const[kr,Er]=jr(wr,xr,pr,sr,cr,ar),[Mr,Ar]=jr(or,er,Ve,Ye,$e,ze);function Sr(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Pr(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Cr(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Tr,_r,Dr,Ir={"-":"",_:" ",0:"0"},Lr=/^\s*\d+/,Nr=/^%/,qr=/[\\^$*+?|[\]().{}]/g;function Rr(t,n,e){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<e?new Array(e-i+1).join(n)+o:o)}function Ur(t){return t.replace(qr,"\\$&")}function Wr(t){return new RegExp("^(?:"+t.map(Ur).join("|")+")","i")}function Fr(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function zr(t,n,e){var r=Lr.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Hr(t,n,e){var r=Lr.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function $r(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Br(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Yr(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Kr(t,n,e){var r=Lr.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Vr(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Gr(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Qr(t,n,e){var r=Lr.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Zr(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Xr(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Jr(t,n,e){var r=Lr.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function to(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function no(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function eo(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function ro(t,n,e){var r=Lr.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function oo(t,n,e){var r=Lr.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function io(t,n,e){var r=Nr.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function ao(t,n,e){var r=Lr.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function uo(t,n,e){var r=Lr.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function co(t,n){return Rr(t.getDate(),n,2)}function lo(t,n){return Rr(t.getHours(),n,2)}function so(t,n){return Rr(t.getHours()%12||12,n,2)}function fo(t,n){return Rr(1+Ye.count(or(t),t),n,3)}function po(t,n){return Rr(t.getMilliseconds(),n,3)}function ho(t,n){return po(t,n)+"000"}function yo(t,n){return Rr(t.getMonth()+1,n,2)}function vo(t,n){return Rr(t.getMinutes(),n,2)}function mo(t,n){return Rr(t.getSeconds(),n,2)}function go(t){var n=t.getDay();return 0===n?7:n}function bo(t,n){return Rr(Ve.count(or(t)-1,t),n,2)}function xo(t){var n=t.getDay();return n>=4||0===n?Xe(t):Xe.ceil(t)}function Oo(t,n){return t=xo(t),Rr(Xe.count(or(t),t)+(4===or(t).getDay()),n,2)}function wo(t){return t.getDay()}function jo(t,n){return Rr(Ge.count(or(t)-1,t),n,2)}function ko(t,n){return Rr(t.getFullYear()%100,n,2)}function Eo(t,n){return Rr((t=xo(t)).getFullYear()%100,n,2)}function Mo(t,n){return Rr(t.getFullYear()%1e4,n,4)}function Ao(t,n){var e=t.getDay();return Rr((t=e>=4||0===e?Xe(t):Xe.ceil(t)).getFullYear()%1e4,n,4)}function So(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Rr(n/60|0,"0",2)+Rr(n%60,"0",2)}function Po(t,n){return Rr(t.getUTCDate(),n,2)}function Co(t,n){return Rr(t.getUTCHours(),n,2)}function To(t,n){return Rr(t.getUTCHours()%12||12,n,2)}function _o(t,n){return Rr(1+sr.count(wr(t),t),n,3)}function Do(t,n){return Rr(t.getUTCMilliseconds(),n,3)}function Io(t,n){return Do(t,n)+"000"}function Lo(t,n){return Rr(t.getUTCMonth()+1,n,2)}function No(t,n){return Rr(t.getUTCMinutes(),n,2)}function qo(t,n){return Rr(t.getUTCSeconds(),n,2)}function Ro(t){var n=t.getUTCDay();return 0===n?7:n}function Uo(t,n){return Rr(pr.count(wr(t)-1,t),n,2)}function Wo(t){var n=t.getUTCDay();return n>=4||0===n?vr(t):vr.ceil(t)}function Fo(t,n){return t=Wo(t),Rr(vr.count(wr(t),t)+(4===wr(t).getUTCDay()),n,2)}function zo(t){return t.getUTCDay()}function Ho(t,n){return Rr(dr.count(wr(t)-1,t),n,2)}function $o(t,n){return Rr(t.getUTCFullYear()%100,n,2)}function Bo(t,n){return Rr((t=Wo(t)).getUTCFullYear()%100,n,2)}function Yo(t,n){return Rr(t.getUTCFullYear()%1e4,n,4)}function Ko(t,n){var e=t.getUTCDay();return Rr((t=e>=4||0===e?vr(t):vr.ceil(t)).getUTCFullYear()%1e4,n,4)}function Vo(){return"+0000"}function Go(){return"%"}function Qo(t){return+t}function Zo(t){return Math.floor(+t/1e3)}function Xo(t){return new Date(t)}function Jo(t){return t instanceof Date?+t:+new Date(+t)}function ti(t,n,e,r,o,i,a,u,c,l){var s=Tn(),f=s.invert,p=s.domain,d=l(".%L"),h=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function O(t){return(c(t)<t?d:u(t)<t?h:a(t)<t?y:i(t)<t?v:r(t)<t?o(t)<t?m:g:e(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Jo)):p().map(Xo)},s.ticks=function(n){var e=p();return t(e[0],e[e.length-1],null==n?10:n)},s.tickFormat=function(t,n){return null==n?O:l(n)},s.nice=function(t){var e=p();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?p(Qn(e,t)):s},s.copy=function(){return Pn(s,ti(t,n,e,r,o,i,a,u,c,l))},s}function ni(){return et.apply(ti(Mr,Ar,or,er,Ve,Ye,$e,ze,We,_r).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ei(){return et.apply(ti(kr,Er,wr,xr,pr,sr,cr,ar,We,Dr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ri(){var t,n,e,r,o,i=0,a=1,u=En,c=!1;function l(n){return null==n||isNaN(n=+n)?o:u(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}function s(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),l):[u(0),u(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),n=r(a=+a),e=t===n?0:1/(n-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(On),l.rangeRound=s(wn),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return r=o,t=o(i),n=o(a),e=t===n?0:1/(n-t),l}}function oi(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ii(){var t=Kn(ri()(En));return t.copy=function(){return oi(t,ii())},rt.apply(t,arguments)}function ai(){var t=re(ri()).domain([1,10]);return t.copy=function(){return oi(t,ai()).base(t.base())},rt.apply(t,arguments)}function ui(){var t=ue(ri());return t.copy=function(){return oi(t,ui()).constant(t.constant())},rt.apply(t,arguments)}function ci(){var t=pe(ri());return t.copy=function(){return oi(t,ci()).exponent(t.exponent())},rt.apply(t,arguments)}function li(){return ci.apply(null,arguments).exponent(.5)}function si(){var t=[],n=En;function e(e){if(null!=e&&!isNaN(e=+e))return n((Et(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(gt),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>je(t,r/n)))},e.copy=function(){return si(n).domain(t)},rt.apply(e,arguments)}function fi(t,n){void 0===n&&(n=t,t=On);for(var e=0,r=n.length-1,o=n[0],i=new Array(r<0?0:r);e<r;)i[e]=t(o,o=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[n](t-n)}}function pi(){var t,n,e,r,o,i,a,u=0,c=.5,l=1,s=1,f=En,p=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-n)*(s*t<s*n?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(n){var e,r,o;return arguments.length?([e,r,o]=n,f=fi(t,[e,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,c,l]=a,t=i(u=+u),n=i(c=+c),e=i(l=+l),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),s=n<t?-1:1,d):[u,c,l]},d.clamp=function(t){return arguments.length?(p=!!t,d):p},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=h(On),d.rangeRound=h(wn),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(u),n=a(c),e=a(l),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),s=n<t?-1:1,d}}function di(){var t=Kn(pi()(En));return t.copy=function(){return oi(t,di())},rt.apply(t,arguments)}function hi(){var t=re(pi()).domain([.1,1,10]);return t.copy=function(){return oi(t,hi()).base(t.base())},rt.apply(t,arguments)}function yi(){var t=ue(pi());return t.copy=function(){return oi(t,yi()).constant(t.constant())},rt.apply(t,arguments)}function vi(){var t=pe(pi());return t.copy=function(){return oi(t,vi()).exponent(t.exponent())},rt.apply(t,arguments)}function mi(){return vi.apply(null,arguments).exponent(.5)}Tr=function(t){var n=t.dateTime,e=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Wr(o),s=Fr(o),f=Wr(i),p=Fr(i),d=Wr(a),h=Fr(a),y=Wr(u),v=Fr(u),m=Wr(c),g=Fr(c),b={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:co,e:co,f:ho,g:Eo,G:Ao,H:lo,I:so,j:fo,L:po,m:yo,M:vo,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Qo,s:Zo,S:mo,u:go,U:bo,V:Oo,w:wo,W:jo,x:null,X:null,y:ko,Y:Mo,Z:So,"%":Go},x={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:Po,e:Po,f:Io,g:Bo,G:Ko,H:Co,I:To,j:_o,L:Do,m:Lo,M:No,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Qo,s:Zo,S:qo,u:Ro,U:Uo,V:Fo,w:zo,W:Ho,x:null,X:null,y:$o,Y:Yo,Z:Vo,"%":Go},O={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=m.exec(n.slice(e));return r?(t.m=g.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=v.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return k(t,n,e,r)},d:Xr,e:Xr,f:oo,g:Vr,G:Kr,H:to,I:to,j:Jr,L:ro,m:Zr,M:no,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=s.get(r[0].toLowerCase()),e+r[0].length):-1},q:Qr,Q:ao,s:uo,S:eo,u:Hr,U:$r,V:Br,w:zr,W:Yr,x:function(t,n,r){return k(t,e,n,r)},X:function(t,n,e){return k(t,r,n,e)},y:Vr,Y:Kr,Z:Gr,"%":io};function w(t,n){return function(e){var r,o,i,a=[],u=-1,c=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=Ir[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=n[r])&&(r=i(e,o)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function j(t,n){return function(e){var r,o,i=Cr(1900,void 0,1);if(k(i,t,e+="",0)!=e.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(n&&!("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=(r=Pr(Cr(i.y,0,1))).getUTCDay(),r=o>4||0===o?dr.ceil(r):dr(r),r=sr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Sr(Cr(i.y,0,1))).getDay(),r=o>4||0===o?Ge.ceil(r):Ge(r),r=Ye.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.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?Pr(Cr(i.y,0,1)).getUTCDay():Sr(Cr(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,Pr(i)):Sr(i)}}function k(t,n,e,r){for(var o,i,a=0,u=n.length,c=e.length;a<u;){if(r>=c)return-1;if(37===(o=n.charCodeAt(a++))){if(o=n.charAt(a++),!(i=O[o in Ir?n.charAt(a++):o])||(r=i(t,e,r))<0)return-1}else if(o!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),x.x=w(e,x),x.X=w(r,x),x.c=w(n,x),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=j(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=j(t+="",!0);return n.toString=function(){return t},n}}}({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"]}),_r=Tr.format,Tr.parse,Dr=Tr.utcFormat,Tr.utcParse;var gi=["linear","time","log","sqrt"];function bi(t){return"function"==typeof t?O()(t.copy)&&O()(t.domain)&&O()(t.range):"string"==typeof t&&G()(gi,t)}function xi(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Oi(t,n){if(!t.data)return"linear";var e=D(t[n]);return X(t.data.map((function(t){var r=K()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function wi(n){if(bi(n)){var e=function(t){var n;return"scale".concat((n=t)&&n[0].toUpperCase()+n.slice(1))}(n);return t[e]()}return Vn()}function ji(t,n){var e=function(t,n){if(xi(t,n)){var e=t.scale[n]||t.scale;return bi(e)?O()(e)?e:wi(e):void 0}}(t,n);if(e)return"string"==typeof e?wi(e):e;var r=function(t,n){var e;if(t.domain&&t.domain[n]?e=t.domain[n]:t.domain&&Array.isArray(t.domain)&&(e=t.domain),e)return X(e)?"time":"linear"}(t,n)||Oi(t,n);return wi(r)}function ki(t,n){return function(t,n){if(xi(t,n)){var e=t.scale[n]||t.scale;return"string"==typeof e?e:function(t){if("string"==typeof t)return t;var n=Ei.filter((function(n){return void 0!==t[n.method]}))[0];return n?n.name:void 0}(e)}}(t,n)||Oi(t,n)}var Ei=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}],Mi=function(t){var n=function(n){return function(e,r,o){var i=e[r];if(null==i)return n?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return t.apply(void 0,[e,r,o].concat(u))}};return Object.assign(n(!1),{isRequired:n(!0)})},Ai=function(){return null},Si=function(){},Pi=function(t){return void 0===t?Si:null===t?Ai:t.constructor},Ci=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function Ti(t){return Mi((function(n,e,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.reduce((function(t,o){return t||o.apply(void 0,[n,e,r].concat(i))}),null)}))}var _i=Mi((function(t,n,e){var r=t[n];return"number"!=typeof r||r<0?new Error("`".concat(n,"` in `").concat(e,"` must be a non-negative number.")):null})),Di=Mi((function(t,n,e){var r=t[n];return"number"!=typeof r||r%1!=0?new Error("`".concat(n,"` in `").concat(e,"` must be an integer.")):null})),Ii=(Mi((function(t,n,e){var r=t[n];return"number"!=typeof r||r<=0?new Error("`".concat(n,"` in `").concat(e,"` must be a number greater than zero.")):null})),Mi((function(t,n,e){var r=t[n];return Array.isArray(r)&&2===r.length&&r[1]!==r[0]?null:new Error("`".concat(n,"` in `").concat(e,"` must be an array of two unique numeric values."))}))),Li=Mi((function(t,n,e){return bi(t[n])?null:new Error("`".concat(n,"` in `").concat(e,"` must be a d3 scale."))})),Ni=(Mi((function(t,n,e){var r=t[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(e,"` must be an array."));if(r.length<2)return null;var o=Pi(r[0]),i=B()(r,(function(t){return o!==Pi(t)}));if(i){var a=Ci(r[0]),u=Ci(i);return new Error("Expected `".concat(n,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}return null})),Mi((function(t,n){return t[n]&&Array.isArray(t[n])&&t[n].length!==t.data.length?new Error("Length of data and ".concat(n," arrays must match.")):null})),Mi((function(t,n,e){return t[n]&&!H()(t[n])?new Error("`".concat(n,"` in `").concat(e,"` must be a regular expression.")):null})),{dataProps:{categories:f().oneOfType([f().arrayOf(f().string),f().shape({x:f().arrayOf(f().string),y:f().arrayOf(f().string)})]),data:f().oneOfType([f().array,f().object]),dataComponent:f().element,disableInlineStyles:f().bool,labelComponent:f().element,labels:f().oneOfType([f().func,f().array]),samples:_i,sortKey:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string.isRequired)]),sortOrder:f().oneOf(["ascending","descending"]),style:f().shape({parent:f().object,data:f().object,labels:f().object}),x:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string.isRequired)]),y:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string.isRequired)]),y0:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string.isRequired)])},baseProps:{animate:f().oneOfType([f().bool,f().object]),containerComponent:f().element,domain:f().oneOfType([Ii,f().shape({x:Ii,y:Ii})]),maxDomain:f().oneOfType([f().number,f().instanceOf(Date),f().shape({x:f().oneOfType([f().number,f().instanceOf(Date)]),y:f().oneOfType([f().number,f().instanceOf(Date)])})]),minDomain:f().oneOfType([f().number,f().instanceOf(Date),f().shape({x:f().oneOfType([f().number,f().instanceOf(Date)]),y:f().oneOfType([f().number,f().instanceOf(Date)])})]),domainPadding:f().oneOfType([f().shape({x:f().oneOfType([f().number,f().arrayOf(f().number)]),y:f().oneOfType([f().number,f().arrayOf(f().number)])}),f().number,f().arrayOf(f().number)]),eventKey:f().oneOfType([f().func,Ti([Di,_i]),f().string]),events:f().arrayOf(f().shape({target:f().oneOf(["data","labels","parent"]),eventKey:f().oneOfType([f().array,Ti([Di,_i]),f().string]),eventHandlers:f().object})),externalEventMutations:f().arrayOf(f().shape({callback:f().func,childName:f().oneOfType([f().string,f().array]),eventKey:f().oneOfType([f().array,Ti([Di,_i]),f().string]),mutation:f().func,target:f().oneOfType([f().string,f().array])})),groupComponent:f().element,height:_i,name:f().string,origin:f().shape({x:f().number,y:f().number}),padding:f().oneOfType([f().number,f().shape({top:f().number,bottom:f().number,left:f().number,right:f().number})]),polar:f().bool,range:f().oneOfType([Ii,f().shape({x:Ii.isRequired,y:Ii.isRequired})]),scale:f().oneOfType([Li,f().shape({x:Li.isRequired,y:Li.isRequired})]),sharedEvents:f().shape({events:f().array,getEventState:f().func}),singleQuadrantDomainPadding:f().oneOfType([f().bool,f().shape({x:f().oneOfType([f().bool]),y:f().oneOfType([f().bool])})]),standalone:f().bool,theme:f().object,width:_i},primitiveProps:{active:f().bool,ariaLabel:f().oneOfType([f().string,f().func]),className:f().string,clipPath:f().string,data:f().oneOfType([f().array,f().object]),desc:f().oneOfType([f().string,f().func]),disableInlineStyles:f().bool,events:f().object,id:f().oneOfType([f().number,f().string,f().func]),index:f().oneOfType([f().number,f().string]),origin:f().shape({x:f().number,y:f().number}),polar:f().bool,role:f().string,scale:f().oneOfType([Li,f().shape({x:Li,y:Li})]),shapeRendering:f().string,style:f().object,tabIndex:f().oneOfType([f().number,f().func]),transform:f().string}}),qi=r(5973),Ri=r.n(qi),Ui=r(556),Wi=r.n(Ui);function Fi(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zi(t,n){return zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},zi(t,n)}function Hi(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function $i(t){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$i(t)}var Bi=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&zi(t,n)}(a,t);var n,e,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=$i(r);if(o){var e=$i(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return Hi(this,t)});function a(t){var n;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,t)).map=void 0,n.index=void 0,n.portalRegister=function(){return++n.index},n.portalUpdate=function(t,e){n.map[t]=e,n.forceUpdate()},n.portalDeregister=function(t){delete n.map[t],n.forceUpdate()},n.map={},n.index=1,n}return n=a,(e=[{key:"getChildren",value:function(){var t=this;return d()(this.map).map((function(n){var e=t.map[n];return e?l().cloneElement(e,{key:n}):e}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&Fi(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),a}(l().Component);Bi.displayName="Portal",Bi.propTypes={className:f().string,height:_i,style:f().object,viewBox:f().string,width:_i};var Yi=l().createContext({});Yi.displayName="PortalContext";var Ki,Vi,Gi=0,Qi=0,Zi=0,Xi=0,Ji=0,ta=0,na="object"==typeof performance&&performance.now?performance:Date,ea="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ra(){return Ji||(ea(oa),Ji=na.now()+ta)}function oa(){Ji=0}function ia(){this._call=this._time=this._next=null}function aa(t,n,e){var r=new ia;return r.restart(t,n,e),r}function ua(){Ji=(Xi=na.now())+ta,Gi=Qi=0;try{!function(){ra(),++Gi;for(var t,n=Ki;n;)(t=Ji-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Gi}()}finally{Gi=0,function(){for(var t,n,e=Ki,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ki=n);Vi=t,la(r)}(),Ji=0}}function ca(){var t=na.now(),n=t-Xi;n>1e3&&(ta-=n,Xi=t)}function la(t){Gi||(Qi&&(Qi=clearTimeout(Qi)),t-Ji>24?(t<1/0&&(Qi=setTimeout(ua,t-na.now()-ta)),Zi&&(Zi=clearInterval(Zi))):(Zi||(Xi=na.now(),Zi=setInterval(ca,1e3)),Gi=1,ea(ua)))}function sa(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}ia.prototype=aa.prototype={constructor:ia,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?ra():+e)+(null==n?0:+n),this._next||Vi===this||(Vi?Vi._next=this:Ki=this,Vi=this),this._call=t,this._time=e,la()},stop:function(){this._call&&(this._call=null,this._time=1/0,la())}};var fa=function(){function t(){var n=this;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){n.subscribers.forEach((function(t){t.callback(ra()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var n,e;return n=t,(e=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=aa(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,n){n=this.shouldAnimate?n:0;var e=this.subscribers.push({startTime:ra(),callback:t,duration:n});return this.activeSubscriptions++,this.start(),e}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&sa(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}(),pa=l().createContext({transitionTimer:new fa,animationTimer:new fa});pa.displayName="TimerContext";const da=pa;function ha(){return ha=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ha.apply(this,arguments)}function ya(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function va(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?ya(Object(e),!0).forEach((function(n){ma(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ya(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function ma(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function ga(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ba(t,n){return ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ba(t,n)}function xa(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function Oa(t){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oa(t)}var wa=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&ba(t,n)}(a,t);var n,e,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Oa(r);if(o){var e=Oa(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return xa(this,t)});function a(t){var n;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,t)).containerId=void 0,n.portalRef=void 0,n.containerRef=void 0,n.shouldHandleWheel=void 0,n.savePortalRef=function(t){return n.portalRef=t,t},n.portalUpdate=function(t,e){return n.portalRef.portalUpdate(t,e)},n.portalRegister=function(){return n.portalRef.portalRegister()},n.portalDeregister=function(t){return n.portalRef.portalDeregister(t)},n.saveContainerRef=function(t){return O()(n.props.containerRef)&&n.props.containerRef(t),n.containerRef=t,t},n.handleWheel=function(t){return t.preventDefault()},n.containerId=Ri()(t)&&void 0!==t.containerId?t.containerId:Wi()("victory-container-"),n.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),n}return n=a,(e=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var n=t.ouiaId,e=t.ouiaSafe,r=t.ouiaType;return va(va(va({},n&&{"data-ouia-component-id":n}),r&&{"data-ouia-component-type":r}),void 0!==e&&{"data-ouia-safe":e})}},{key:"renderContainer",value:function(t,n,e){var r=t.title,o=t.desc,i=t.portalComponent,a=t.className,u=t.width,c=t.height,s=t.portalZIndex,f=t.responsive,p=this.getChildren(t),d=f?{width:"100%",height:"100%"}:{width:u,height:c},h=y()({pointerEvents:"none",touchAction:"none",position:"relative"},d),v=y()({zIndex:s,position:"absolute",top:0,left:0},d),m=y()({pointerEvents:"all"},d),g=y()({overflow:"visible"},d),b={width:u,height:c,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:g};return l().createElement(Yi.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",ha({style:j()({},e,h),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",ha({},n,{style:m}),r?l().createElement("title",{id:this.getIdForElement("title")},r):null,o?l().createElement("desc",{id:this.getIdForElement("desc")},o):null,p),l().createElement("div",{style:v},l().cloneElement(i,va(va({},b),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,n=t.width,e=t.height,r=t.responsive,o=t.events,i=t.title,a=t.desc,u=t.tabIndex,c=t.preserveAspectRatio,l=t.role,s=r?this.props.style:k(this.props.style,["height","width"]),f=F(this.props),p=y()(va({width:n,height:e,tabIndex:u,role:l,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[a&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(n," ").concat(e):void 0,preserveAspectRatio:r?c:void 0},f),o);return this.renderContainer(this.props,p,s)}}])&&ga(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),a}(l().Component);wa.displayName="VictoryContainer",wa.role="container",wa.propTypes={"aria-describedby":f().string,"aria-labelledby":f().string,children:f().oneOfType([f().arrayOf(f().node),f().node]),className:f().string,containerId:f().oneOfType([f().number,f().string]),containerRef:f().func,desc:f().string,events:f().object,height:_i,name:f().string,origin:f().shape({x:_i,y:_i}),ouiaId:f().oneOfType([f().number,f().string]),ouiaSafe:f().bool,ouiaType:f().string,polar:f().bool,portalComponent:f().element,portalZIndex:Di,preserveAspectRatio:f().string,responsive:f().bool,role:f().string,style:f().object,tabIndex:f().number,theme:f().object,title:f().string,width:_i},wa.defaultProps={className:"VictoryContainer",portalComponent:l().createElement(Bi,null),portalZIndex:99,responsive:!0,role:"img"},wa.contextType=da;var ja=["desc"];function ka(){return ka=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ka.apply(this,arguments)}var Ea=function(t){var n=t.desc,e=function(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,ja);return n?l().createElement("rect",ka({vectorEffect:"non-scaling-stroke"},e),l().createElement("desc",null,n)):l().createElement("rect",ka({vectorEffect:"non-scaling-stroke"},e))};function Ma(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Aa(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Ma(Object(e),!0).forEach((function(n){Sa(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ma(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function Sa(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var Pa=function(t){return t=function(t){var n=S(t.ariaLabel,t),e=S(t.desc,t),r=S(t.id,t),o=P(y()({fill:"none"},t.style),t),i=S(t.tabIndex,t);return y()({},t,{ariaLabel:n,desc:e,id:r,style:o,tabIndex:i})}(t),l().cloneElement(t.rectComponent,Aa(Aa({},t.events),{},{"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,transform:t.transform,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,width:t.width,height:t.height,clipPath:t.clipPath}))};Pa.propTypes=Aa(Aa({},Ni.primitiveProps),{},{height:f().number,rectComponent:f().element,width:f().number,x:f().number,y:f().number}),Pa.defaultProps={rectComponent:l().createElement(Ea,null),role:"presentation",shapeRendering:"auto"};var Ca=["desc"];function Ta(){return Ta=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ta.apply(this,arguments)}var _a=function(t){var n=t.desc,e=function(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,Ca);return n?l().createElement("line",Ta({vectorEffect:"non-scaling-stroke"},e),l().createElement("desc",null,n)):l().createElement("line",Ta({vectorEffect:"non-scaling-stroke"},e))};function Da(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Ia(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Da(Object(e),!0).forEach((function(n){La(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Da(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function La(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var Na=function(t){t=function(t){var n=S(t.ariaLabel,t),e=S(t.desc,t),r=S(t.id,t),o=P(t.style,t),i=S(t.tabIndex,t);return y()({},t,{ariaLabel:n,desc:e,id:r,style:o,tabIndex:i})}(t);var n=t,e=n.ariaLabel,r=n.groupComponent,o=n.lineComponent,i=n.events,a=n.className,u=n.majorWhisker,c=n.minorWhisker,s=n.transform,f=n.clipPath,p=n.role,d=n.shapeRendering,h=n.style,v=n.desc,m=n.tabIndex,g=Ia(Ia({},i),{},{style:h,desc:v,tabIndex:m,className:a,transform:s,clipPath:f,role:p,shapeRendering:d});return l().cloneElement(r,{},[l().cloneElement(o,y()({key:"major-whisker","aria-label":e},g,u)),l().cloneElement(o,y()({key:"minor-whisker","aria-label":e},g,c))])};Na.propTypes=Ia(Ia({},Ni.primitiveProps),{},{groupComponent:f().element,lineComponent:f().element,majorWhisker:f().shape({x1:f().number,x2:f().number,y1:f().number,y2:f().number}),minorWhisker:f().shape({x1:f().number,x2:f().number,y1:f().number,y2:f().number})}),Na.defaultProps={groupComponent:l().createElement("g",null),lineComponent:l().createElement(_a,null),role:"presentation",shapeRendering:"auto"};var qa=r(6834),Ra=r.n(qa);function Ua(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Wa(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fa(t,n){return Fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Fa(t,n)}function za(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function Ha(t){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ha(t)}var $a=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Fa(t,n)}(a,t);var n,e,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Ha(r);if(o){var e=Ha(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return za(this,t)});function a(){var t;Ua(this,a);for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return(t=i.call.apply(i,[this].concat(e))).checkedContext=void 0,t.renderInPlace=void 0,t.element=void 0,t.portalKey=void 0,t}return n=a,(e=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,n=this.props.groupComponent,e=t&&t.props||{},r=e.groupComponent?{groupComponent:n,standalone:!1}:{},o=j()(r,e,k(this.props,["children","groupComponent"])),i=t&&l().cloneElement(t,o);return this.renderPortal(i)}}])&&Wa(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),a}(l().Component);$a.displayName="VictoryPortal",$a.role="portal",$a.propTypes={children:f().node,groupComponent:f().element},$a.defaultProps={groupComponent:l().createElement("g",null)},$a.contextType=Yi;var Ba=["children","title","desc"];var Ya=function(t){var n=t.children,e=t.title,r=t.desc,o=function(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,Ba);return l().createElement("text",o,e&&l().createElement("title",null,e),r&&l().createElement("desc",null,r),n)};Ya.propTypes={children:f().node,desc:f().string,title:f().string};var Ka=function(t){return l().createElement("tspan",t)};var Va=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(e.length>0)return e.reduce((function(t,n){return[t,Va(n)].join(" ")}),Va(t)).trim();if(null==t||"string"==typeof t)return t;var o=[];for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push("".concat(i,"(").concat(a,")"))}return o.join(" ").trim()};function Ga(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var Qa={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},Za={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Xa={em:1,ex:.5},Ja={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},tu=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},nu=function(t,n,e){var r=function(t){return t*Math.PI/180}(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},eu=function(t,n){var e,r=null===(e=t.match(/[a-zA-Z%]+/))||void 0===e?void 0:e[0],o=Number(t.match(/[0-9.,]+/));return r?Za.hasOwnProperty(r)?o*Za[r]:Xa.hasOwnProperty(r)?(n?o*n:o*Ja.fontSize)*Xa[r]:o:o||0},ru=function(t,n){var e=Array.isArray(t)?t[n]:t,r=j()({},e,Ja);return y()({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:eu(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:eu(String(r.fontSize))})},ou=function(t,n){if(void 0===t||""===t||null===t)return 0;var e,r=tu(t).map((function(t,e){var r,o,i=t.toString().length,a=ru(n,e),u=a.fontSize,c=a.letterSpacing,l=(r=a.fontFamily,o=r.split(",").map((function(t){return t.replace(/'|"/g,"")})).find((function(t){return Qa[t]}))||"Helvetica",Qa[o]);return t.toString().split("").map((function(t){return t.charCodeAt(0)<l.widths.length?l.widths[t.charCodeAt(0)]:l.avg})).reduce((function(t,n){return n+t}),0)*u+c*Math.max(i-1,0)}));return Math.max.apply(Math,function(t){if(Array.isArray(t))return Ga(t)}(e=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,n){if(t){if("string"==typeof t)return Ga(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ga(t,n):void 0}}(e)||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.")}())},iu=function(t,n){return function(t,n){var e=Array.isArray(n)?n[0]&&n[0].angle:n&&n.angle,r=function(t,n){return void 0===t||""===t||null===t?0:tu(t).reduce((function(t,e,r){var o=ru(n,r),i=e.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0)}(t,n),o=ou(t,n);return{width:e?nu(o,r,e):o,height:1.05*(e?nu(r,o,e):r)}}(t,n)};function au(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function uu(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?au(Object(e),!0).forEach((function(n){cu(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):au(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function cu(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function lu(t){return function(t){if(Array.isArray(t))return su(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return su(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?su(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function su(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var fu={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},pu=function(t,n){if(!t.datum)return 0;var e=function(t,n){var e=t.scale,r=t.polar,o=t.horizontal,i=E(n),a=t.origin||{x:0,y:0},u=o?e.y(i.y):e.x(i.x),c=o?e.y(i.y0):e.x(i.x0),l=o?e.x(i.x):e.y(i.y),s=o?e.x(i.x0):e.y(i.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?s*Math.cos(c)+a.x:c,y:r?-l*Math.sin(u)+a.y:l,y0:r?-s*Math.sin(c)+a.x:s}}(t,t.datum);return e[n]},du=function(t){var n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return fu.fontSize;if("string"==typeof n){var e=+n.replace("px","");return isNaN(e)?fu.fontSize:e}return fu.fontSize},hu=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?t[n]||t[0]:t},yu=function(t){var n=t.backgroundStyle,e=t.backgroundPadding;return Array.isArray(n)&&!Ra()(n)||Array.isArray(e)&&!Ra()(e)},vu=function(t,n,e){var r=t.polar,o=hu(t.style),i=r?function(t,n){var e=t.labelPlacement,r=t.datum;if(!e||"vertical"===e)return 0;var o=function(t,n){var e,r=E(n).x;return("number"==typeof(e=t.scale.x(r))?e/(Math.PI/180):e)%360}(t,r),i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===e?0:90)}(t):0,a=void 0===o.angle?S(t.angle,t):o.angle,u=void 0===a?i:a,c=t.transform||o.transform,l=c&&S(c,t);return l||u?Va(l,u&&{rotate:[u,n,e]}):void 0},mu=function(t,n){var e=t.direction,r=t.textAnchor,o=t.x,i=t.dx;if("rtl"===e)return o-n;switch(r){case"middle":return Math.round(o-n/2);case"end":return Math.round(o-n);default:return o+(i||0)}},gu=function(t,n){var e=t.verticalAnchor,r=t.y,o=t.originalDy,i=r+(void 0===o?0:o);switch(e){case"start":return Math.floor(i);case"end":return Math.ceil(i-n);default:return Math.floor(i-n/2)}},bu=function(t,n){return yu(t)?function(t,n){var e=t.dy,r=t.dx,o=t.transform,i=t.backgroundStyle,a=t.backgroundPadding,u=t.backgroundComponent,c=t.inline,s=t.y,f=n.map((function(t,o){var i=hu(n,o-1),u=t.textSize,l=t.fontSize*t.lineHeight,f=Math.ceil(l),p=hu(a,o),d=hu(a,o-1),h=c&&r||0,y=o&&!c?i.fontSize*i.lineHeight+d.top+d.bottom:e-.5*l-(t.fontSize-t.capHeight);return{textHeight:f,labelSize:u,heightWithPadding:f+p.top+p.bottom,widthWithPadding:u.width+p.left+p.right+h,y:s,fontSize:t.fontSize,dy:y}}));return f.map((function(n,e){var r=mu(t,n.labelSize.width),p=f.slice(0,e+1).reduce((function(t,n){return t+n.dy}),s),d=hu(a,e),h=n.heightWithPadding,y=c?function(t,n,e){var r=t.textAnchor,o=n.map((function(t){return t.widthWithPadding})),i=-o.reduce((function(t,n){return t+n}),0)/2;switch(r){case"start":return o.reduce((function(t,n,r){return r<e?t+n:t}),0);case"end":return o.reduce((function(t,n,r){return r>e?t-n:t}),0);default:return o.reduce((function(t,n,r){return r===e?t+n/2:t+(r<e?n:0)}),i)}}(t,f,e)+r-d.left:r,v=c?gu(t,h)-d.top:p,m={key:"tspan-background-".concat(e),height:h,style:hu(i,e),width:n.widthWithPadding,transform:o,x:y-d.left,y:v};return l().cloneElement(u,j()({},u.props,m))}))}(t,n):function(t,n){var e=t.dx,r=void 0===e?0:e,o=t.transform,i=t.backgroundComponent,a=t.backgroundStyle,u=t.inline,c=t.backgroundPadding,s=t.capHeight,f=n.map((function(t){return t.textSize})),p=u?Math.max.apply(Math,lu(f.map((function(t){return t.height})))):f.reduce((function(t,e,r){var o=r?0:s/2;return t+e.height*(n[r].lineHeight-o)}),0),d=u?f.reduce((function(t,n,e){var o=e?r:0;return t+n.width+o}),0):Math.max.apply(Math,lu(f.map((function(t){return t.width})))),h=mu(t,d),y=gu(t,p),v={key:"background",height:p+c.top+c.bottom,style:a,transform:o,width:d+c.left+c.right,x:u?h-c.left:h+r-c.left,y};return l().cloneElement(i,j()({},i.props,v))}(t,n)},xu=function(t,n,e){var r=n.inline,o=hu(t,e);return e&&!r?function(t,n,e){var r=hu(t,n),o=hu(t,n-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,u=o.fontSize-o.capHeight,c=r.fontSize-r.capHeight,l=i-o.fontSize/2+r.fontSize/2-i/2+a/2-c/2+u/2;return yu(e)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l}(t,e,n):r?0===e?o.backgroundPadding.top:void 0:o.backgroundPadding.top},Ou=function(t){if(null===(t=function(t){var n=function(t,n){if(null!=t){if(Array.isArray(t))return t.map((function(t){return S(t,n)}));var e=S(t,n);if(null!=e)return Array.isArray(e)?e:"".concat(e).split("\n")}}(t.text,t),e=function(t,n){if(n.disableInlineStyles){var e=P(t,n);return{fontSize:du(e)}}var r=function(t){var e=P(t=t?j()({},t,fu):fu,n);return y()({},e,{fontSize:du(e)})};return Array.isArray(t)&&!Ra()(t)?t.map((function(t){return r(t)})):r(t)}(t.style,y()({},t,{text:n})),r=function(t,n){if(t)return Array.isArray(t)&&!Ra()(t)?t.map((function(t){return P(t,n)})):P(t,n)}(t.backgroundStyle,y()({},t,{text:n,style:e})),o=function(t){return t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((function(n){return M({padding:S(n,t)})})):M({padding:S(t.backgroundPadding,t)})}(y()({},t,{text:n,style:e,backgroundStyle:r})),i=S(t.id,t);return y()({},t,{backgroundStyle:r,backgroundPadding:o,style:e,text:n,id:i})}(t)).text||void 0===t.text)return null;var n=function(t){var n=S(t.ariaLabel,t),e=hu(t.style),r=function(t){var n=S(t.lineHeight,t);return Array.isArray(n)&&Ra()(n)?[1]:n}(t),o=t.direction?S(t.direction,t):"inherit",i=t.textAnchor?S(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?S(t.verticalAnchor,t):e.verticalAnchor||"middle",u=t.dx?S(t.dx,t):0,c=function(t,n,e){var r=t.dy?S(t.dy,t):0,o=t.inline?1:t.text.length,i=S(t.capHeight,t),a=n?S(n,t):"middle",u=lu(Array(o).keys()).map((function(n){return hu(t.style,n).fontSize})),c=lu(Array(o).keys()).map((function(t){return hu(e,t)}));if("start"===a)return r+(i/2+c[0]/2)*u[0];if(t.inline)return"end"===a?r+(i/2-c[0]/2)*u[0]:r+i/2*u[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*c[0])*u[0]:r+(i/2+(.5-o/2)*c[0])*u[0];var l=lu(Array(o).keys()).reduce((function(t,n){return t+(i/2+(.5-o)*c[n])*u[n]/o}),0);return"end"===a?r+l:r+l/2+i/2*c[o-1]*u[o-1]}(t,a,r),l=void 0!==t.x?t.x:pu(t,"x"),s=void 0!==t.y?t.y:pu(t,"y"),f=vu(t,l,s);return y()({},t,{ariaLabel:n,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:a,dx:u,dy:c,originalDy:t.dy,transform:f,x:l,y:s})}(t),e=n.text,r=n.style,o=n.capHeight,i=n.backgroundPadding,a=n.lineHeight,u=e.map((function(t,n){var e=hu(r,n),u=eu("".concat(o,"em"),e.fontSize),c=hu(a,n);return{style:e,fontSize:e.fontSize||fu.fontSize,capHeight:u,text:t,textSize:iu(t,e),lineHeight:c,backgroundPadding:hu(i,n)}})),c=function(t,n){var e=t.ariaLabel,r=t.inline,o=t.className,i=t.title,a=t.events,u=t.direction,c=t.text,s=t.textAnchor,f=t.dx,p=t.dy,d=t.transform,h=t.x,y=t.y,v=t.desc,m=t.id,g=t.tabIndex,b=t.tspanComponent,x=t.textComponent,O=F(t),w=uu(uu({"aria-label":e,key:"text"},a),{},{direction:u,dx:f,x:h,y:y+p,transform:d,className:o,title:i,desc:S(v,t),tabIndex:S(g,t),id:m},O),j=c.map((function(e,o){var i=n[o].style,a={key:"".concat(m,"-key-").concat(o),x:r?void 0:h,dx:r?f+n[o].backgroundPadding.left:f,dy:xu(n,t,o),textAnchor:i.textAnchor||s,style:i,children:e};return l().cloneElement(b,a)}));return l().cloneElement(x,w,j)}(n,u);if(t.backgroundStyle){var s=[bu(n,u),c],f=l().cloneElement(t.groupComponent,{},s);return t.renderInPortal?l().createElement($a,null,f):f}return t.renderInPortal?l().createElement($a,null,c):c};function wu(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function ju(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?wu(Object(e),!0).forEach((function(n){ku(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):wu(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function ku(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}Ou.displayName="VictoryLabel",Ou.role="label",Ou.defaultStyles=fu,Ou.propTypes={active:f().bool,angle:f().oneOfType([f().string,f().number,f().func]),ariaLabel:f().oneOfType([f().string,f().func]),backgroundComponent:f().element,backgroundPadding:f().oneOfType([f().number,f().object,f().array]),backgroundStyle:f().oneOfType([f().object,f().array]),capHeight:f().oneOfType([f().string,_i,f().func]),className:f().string,data:f().array,datum:f().any,desc:f().oneOfType([f().string,f().func]),direction:f().oneOf(["rtl","ltr","inherit"]),dx:f().oneOfType([f().number,f().string,f().func]),dy:f().oneOfType([f().number,f().string,f().func]),events:f().object,groupComponent:f().element,id:f().oneOfType([f().number,f().string,f().func]),index:f().oneOfType([f().number,f().string]),inline:f().bool,labelPlacement:f().oneOf(["parallel","perpendicular","vertical"]),lineHeight:f().oneOfType([f().string,_i,f().func,f().array]),origin:f().shape({x:_i.isRequired,y:_i.isRequired}),polar:f().bool,renderInPortal:f().bool,scale:f().shape({x:Li,y:Li}),style:f().oneOfType([f().object,f().array]),tabIndex:f().oneOfType([f().number,f().func]),text:f().oneOfType([f().string,f().number,f().func,f().array]),textAnchor:f().oneOfType([f().oneOf(["start","middle","end","inherit"]),f().func]),textComponent:f().element,title:f().string,transform:f().oneOfType([f().string,f().object,f().func]),tspanComponent:f().element,verticalAnchor:f().oneOfType([f().oneOf(["start","middle","end"]),f().func]),x:f().oneOfType([f().number,f().string]),y:f().oneOfType([f().number,f().string])},Ou.defaultProps={backgroundComponent:l().createElement(Ea,null),groupComponent:l().createElement("g",null),direction:"inherit",textComponent:l().createElement(Ya,null),tspanComponent:l().createElement(Ka,null),capHeight:.71,lineHeight:1};var Eu=function(t){return t=function(t){var n=S(t.ariaLabel,t),e=S(t.desc,t),r=S(t.id,t),o=P(y()({stroke:"black"},t.style),t),i=S(t.tabIndex,t);return y()({},t,{ariaLabel:n,desc:e,id:r,style:o,tabIndex:i})}(t),l().cloneElement(t.lineComponent,ju(ju({},t.events),{},{"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath}))};Eu.propTypes=ju(ju({},Ni.primitiveProps),{},{datum:f().any,lineComponent:f().element,x1:f().number,x2:f().number,y1:f().number,y2:f().number}),Eu.defaultProps={lineComponent:l().createElement(_a,null),role:"presentation",shapeRendering:"auto"};var Mu=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Au="#252525",Su="#969696",Pu={width:450,height:300,padding:50,colorScale:Mu},Cu={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:Au,stroke:"transparent"},Tu=y()({textAnchor:"middle"},Cu),_u={area:y()({style:{data:{fill:Au},labels:Cu}},Pu),axis:y()({style:{axis:{fill:"transparent",stroke:Au,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:y()({},Tu,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Cu}},Pu),bar:y()({style:{data:{fill:Au,padding:8,strokeWidth:0},labels:Cu}},Pu),boxplot:y()({style:{max:{padding:8,stroke:Au,strokeWidth:1},maxLabels:y()({},Cu,{padding:3}),median:{padding:8,stroke:Au,strokeWidth:1},medianLabels:y()({},Cu,{padding:3}),min:{padding:8,stroke:Au,strokeWidth:1},minLabels:y()({},Cu,{padding:3}),q1:{padding:8,fill:Su},q1Labels:y()({},Cu,{padding:3}),q3:{padding:8,fill:Su},q3Labels:y()({},Cu,{padding:3})},boxWidth:20},Pu),candlestick:y()({style:{data:{stroke:Au,strokeWidth:1},labels:y()({},Cu,{padding:5})},candleColors:{positive:"#ffffff",negative:Au}},Pu),chart:Pu,errorbar:y()({borderWidth:8,style:{data:{fill:"transparent",stroke:Au,strokeWidth:2},labels:Cu}},Pu),group:y()({colorScale:Mu},Pu),histogram:y()({style:{data:{fill:Su,stroke:Au,strokeWidth:2},labels:Cu}},Pu),legend:{colorScale:Mu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Cu,title:y()({},Cu,{padding:5})}},line:y()({style:{data:{fill:"transparent",stroke:Au,strokeWidth:2},labels:Cu}},Pu),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:y()({},Cu,{padding:20})},colorScale:Mu,width:400,height:400,padding:50},scatter:y()({style:{data:{fill:Au,stroke:"transparent",strokeWidth:0},labels:Cu}},Pu),stack:y()({colorScale:Mu},Pu),tooltip:{style:y()({},Cu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Au,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:y()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:y()({},Cu,{padding:5,pointerEvents:"none"}),flyout:{stroke:Au,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Pu)},Du=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],Iu="#ECEFF1",Lu="#90A4AE",Nu="#455A64",qu="#212121",Ru={width:350,height:350,padding:50},Uu={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Nu,stroke:"transparent",strokeWidth:0},Wu=y()({textAnchor:"middle"},Uu),Fu="round",zu="round",Hu={grayscale:_u,material:{area:y()({style:{data:{fill:qu},labels:Uu}},Ru),axis:y()({style:{axis:{fill:"transparent",stroke:Lu,strokeWidth:2,strokeLinecap:Fu,strokeLinejoin:zu},axisLabel:y()({},Wu,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Iu,strokeDasharray:"10, 5",strokeLinecap:Fu,strokeLinejoin:zu,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Lu,strokeWidth:1,strokeLinecap:Fu,strokeLinejoin:zu},tickLabels:y()({},Uu,{fill:Nu})}},Ru),polarDependentAxis:y()({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:y()({style:{data:{fill:Nu,padding:8,strokeWidth:0},labels:Uu}},Ru),boxplot:y()({style:{max:{padding:8,stroke:Nu,strokeWidth:1},maxLabels:y()({},Uu,{padding:3}),median:{padding:8,stroke:Nu,strokeWidth:1},medianLabels:y()({},Uu,{padding:3}),min:{padding:8,stroke:Nu,strokeWidth:1},minLabels:y()({},Uu,{padding:3}),q1:{padding:8,fill:Nu},q1Labels:y()({},Uu,{padding:3}),q3:{padding:8,fill:Nu},q3Labels:y()({},Uu,{padding:3})},boxWidth:20},Ru),candlestick:y()({style:{data:{stroke:Nu},labels:y()({},Uu,{padding:5})},candleColors:{positive:"#ffffff",negative:Nu}},Ru),chart:Ru,errorbar:y()({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Nu,strokeWidth:2},labels:Uu}},Ru),group:y()({colorScale:Du},Ru),histogram:y()({style:{data:{fill:Nu,stroke:qu,strokeWidth:2},labels:Uu}},Ru),legend:{colorScale:Du,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Uu,title:y()({},Uu,{padding:5})}},line:y()({style:{data:{fill:"transparent",opacity:1,stroke:Nu,strokeWidth:2},labels:Uu}},Ru),pie:y()({colorScale:Du,style:{data:{padding:8,stroke:Iu,strokeWidth:1},labels:y()({},Uu,{padding:20})}},Ru),scatter:y()({style:{data:{fill:Nu,opacity:1,stroke:"transparent",strokeWidth:0},labels:Uu}},Ru),stack:y()({colorScale:Du},Ru),tooltip:{style:y()({},Uu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:qu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:y()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:y()({},Uu,{padding:5,pointerEvents:"none"}),flyout:{stroke:qu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Ru)}},$u=r(6205),Bu=r.n($u),Yu=r(484),Ku=r.n(Yu),Vu=r(1815),Gu=r.n(Vu),Qu=r(5492),Zu=r.n(Qu),Xu=r(9922),Ju=r.n(Xu);function tc(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function nc(t){return function(t){if(Array.isArray(t))return ec(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return ec(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ec(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ec(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var rc=/^onGlobal(.*)$/;function oc(t,n,e,r){var o,i=this,a=function(t){var r,o=(r=t.reduce((function(t,e){return void 0!==e.target?(Array.isArray(e.target)?G()(e.target,n):"".concat(e.target)==="".concat(n))?t.concat(e):t:t.concat(e)}),[]),void 0!==e&&"parent"!==n?r.filter((function(t){var n=t.eventKey,r=function(t){return!t||"".concat(t)==="".concat(e)};return Array.isArray(n)?n.some((function(t){return r(t)})):r(n)})):r);return Array.isArray(o)&&o.reduce((function(t,n){return n?y()(t,n.eventHandlers):t}),{})},u=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,nc(t.events)):i.componentEvents:t.events,c=u&&O()(r)?r(a(u),n):void 0;if(!t.sharedEvents)return c;var l=t.sharedEvents.getEvents,s=t.sharedEvents.events&&l(a(t.sharedEvents.events),n);return y()({},s,c)}function ic(t,n,e,r){var o=this;if(Ra()(t))return{};r=r||this.baseProps;var i=function(t,n){var e=t.childName,i=t.target,a=t.key,u="props"===n?r:o.state||{},c=null!=e&&u[e]?u[e]:u;return"parent"===a?c.parent:c[a]&&c[a][i]},a=function(t,a){var u="parent"===n?t.childName:t.childName||e,c=t.target||n,l=function(n,e){var a=o.state||{};if(!O()(t.mutation))return a;var u=i({childName:e,key:n,target:c},"props"),l=i({childName:e,key:n,target:c},"state"),s=t.mutation(y()({},u,l),r),f=a[e]||{},p=function(t){return s?function(t){return"parent"===c?y()(t,tc({},n,y()(t[n],s))):y()(t,tc({},n,y()(t[n],tc({},c,s))))}(t):function(t){return t[n]&&t[n][c]&&delete t[n][c],t[n]&&!d()(t[n]).length&&delete t[n],t}(t)};return null!=e?y()(a,tc({},e,p(f))):p(a)},s=function(n){var e=function(n){return"parent"===c?"parent":"all"===t.eventKey?r[n]?Bu()(d()(r[n]),"parent"):Bu()(d()(r),"parent"):void 0===t.eventKey&&"parent"===a?r[n]?d()(r[n]):d()(r):void 0!==t.eventKey?t.eventKey:a}(n);return Array.isArray(e)?e.reduce((function(t,e){return y()(t,l(e,n))}),{}):l(e,n)},f="all"===u?Bu()(d()(r),"parent"):u;return Array.isArray(f)?f.reduce((function(t,n){return y()(t,s(n))}),{}):s(f)},u=function(n,e,r,i){var u=t[i](n,e,r,o);if(!Ra()(u)){var c=function(t){var n=function(t){return O()(t.callback)&&t.callback},e=(Array.isArray(t)?t.map((function(t){return n(t)})):[n(t)]).filter((function(t){return!1!==t}));return e.length?function(){return e.forEach((function(t){return t()}))}:void 0}(u);o.setState(function(t,n){return Array.isArray(t)?t.reduce((function(t,e){return y()({},t,a(e,n))}),{}):a(t,n)}(u,r),c)}};return d()(t).reduce((function(t,n){return t[n]=u,t}),{})}function ac(t,n,e){return t?d()(t).reduce((function(r,o){return r[o]=function(r){return t[o](r,e,n,o)},r}),{}):{}}function uc(t,n,e){var r=this.state||{};return e?r[e]&&r[e][t]&&r[e][t][n]:"parent"===t?r[t]&&r[t][n]||r[t]:r[t]&&r[t][n]}function cc(t,n,e,r){return n=n||{},e=e||{},d()(n).reduce((function(o,i){var a=e[i]||{},u=n[i]||{};if("parent"===i){var c=lc(t,u,a,{eventKey:i,target:"parent"});o[i]=void 0!==c?y()({},a,c):a}else{var l=Gu()(d()(u).concat(d()(a)));o[i]=l.reduce((function(n,e){var o={eventKey:i,target:e,childName:r},c=lc(t,u[e],a[e],o);return n[e]=void 0!==c?y()({},a[e],c):a[e],Ju()(n,(function(t){return!Ra()(t)}))}),{})}return Ju()(o,(function(t){return!Ra()(t)}))}),{})}function lc(t,n,e,r){var o=function(t,n){if("string"==typeof t[n])return"all"===t[n]||t[n]===r[n];if(Array.isArray(t[n])){var e=t[n].map((function(t){return"".concat(t)}));return G()(e,r[n])}return!1},i=t=Array.isArray(t)?t:[t];r.childName&&(i=t.filter((function(t){return o(t,"childName")})));var a=i.filter((function(t){return o(t,"target")}));if(!Ra()(a)){var u=a.filter((function(t){return o(t,"eventKey")}));if(!Ra()(u))return u.reduce((function(t,r){var o=(r&&O()(r.mutation)?r.mutation:function(){})(y()({},n,e));return y()({},t,o)}),{})}}function sc(t,n){var e=Array.isArray(n)&&n.reduce((function(n,e){var r,o=t[e],i=o&&o.type&&o.type.defaultEvents,a=O()(i)?i(o.props):i;return Array.isArray(a)?(r=n).concat.apply(r,nc(a)):n}),[]);return e&&e.length?e:void 0}function fc(t){var n=t.match(rc);return n&&n[1]&&n[1].toLowerCase()}var pc=function(t){return Ju()(t,(function(t,n){return rc.test(n)}))},dc=function(t){return Zu()(t,(function(t,n){return rc.test(n)}))},hc=function(t){return y()(t,{nativeEvent:t})},yc=r(8266),vc=r.n(yc);const mc=t=>+t;function gc(t){return t*t}function bc(t){return t*(2-t)}function xc(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Oc(t){return t*t*t}function wc(t){return--t*t*t+1}function jc(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var kc=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),Ec=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),Mc=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),Ac=Math.PI,Sc=Ac/2;function Pc(t){return 1==+t?1:1-Math.cos(t*Sc)}function Cc(t){return Math.sin(t*Sc)}function Tc(t){return(1-Math.cos(Ac*t))/2}function _c(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Dc(t){return _c(1-+t)}function Ic(t){return 1-_c(t)}function Lc(t){return((t*=2)<=1?_c(1-t):2-_c(t-1))/2}function Nc(t){return 1-Math.sqrt(1-t*t)}function qc(t){return Math.sqrt(1- --t*t)}function Rc(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Uc=7.5625;function Wc(t){return 1-Fc(1-t)}function Fc(t){return(t=+t)<.36363636363636365?Uc*t*t:t<.7272727272727273?Uc*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Uc*(t-=.8181818181818182)*t+.9375:Uc*(t-=.9545454545454546)*t+.984375}function zc(t){return((t*=2)<=1?1-Fc(1-t):Fc(t-1)+1)/2}var Hc=1.70158,$c=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Hc),Bc=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Hc),Yc=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Hc),Kc=2*Math.PI,Vc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Kc);function o(t){return n*_c(- --t)*Math.sin((r-t)/e)}return o.amplitude=function(n){return t(n,e*Kc)},o.period=function(e){return t(n,e)},o}(1,.3),Gc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Kc);function o(t){return 1-n*_c(t=+t)*Math.sin((t+r)/e)}return o.amplitude=function(n){return t(n,e*Kc)},o.period=function(e){return t(n,e)},o}(1,.3),Qc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Kc);function o(t){return((t=2*t-1)<0?n*_c(-t)*Math.sin((r-t)/e):2-n*_c(t)*Math.sin((r+t)/e))/2}return o.amplitude=function(n){return t(n,e*Kc)},o.period=function(e){return t(n,e)},o}(1,.3),Zc=r(1473),Xc=r.n(Zc),Jc=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||K()(t)}return!1},tl=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r<e?t:n}},nl=function(t,n){return function(e){return e>=1?n:function(){var r="function"==typeof t?t.apply(this,arguments):t,o="function"==typeof n?n.apply(this,arguments):n;return On(r,o)(e)}}},el=function(t,n){var e,r,o,i=function(t){return Array.isArray(t)?Xc()(t,"key"):t},a={},u={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?a[e]=(r=i(t[e]))!==(o=i(n[e]))&&Jc(r)&&Jc(o)?"function"==typeof r||"function"==typeof o?nl(r,o):"object"==typeof r&&K()(r)||"object"==typeof o&&K()(o)?el(r,o):On(r,o):tl(r,o):u[e]=n[e];return function(t){for(e in a)u[e]=a[e](t);return u}};function rl(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function ol(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function il(t,n){return il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},il(t,n)}function al(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function ul(t){return ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ul(t)}var cl=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&il(t,n)}(u,t);var e,r,o,i,a=(o=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=ul(o);if(i){var e=ul(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return al(this,t)});function u(t,e){var r;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),(r=a.call(this,t,e)).interpolator=void 0,r.queue=void 0,r.ease=void 0,r.timer=void 0,r.loopID=void 0,r.functionToBeRunEachFrame=function(t,n){var e=(n=void 0!==n?n:r.props.duration)?t/n:1;if(e>=1)return r.setState({data:r.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),r.loopID&&r.timer.unsubscribe(r.loopID),r.queue.shift(),void r.traverseQueue();r.setState({data:r.interpolator(r.ease(e)),animationInfo:{progress:e,animating:e<1}})},r.state={data:Array.isArray(r.props.data)?r.props.data[0]:r.props.data,animationInfo:{progress:0,animating:!1}},r.interpolator=null,r.queue=Array.isArray(r.props.data)?r.props.data.slice(1):[],r.ease=n[r.toNewName(r.props.easing)],r.timer=r.context.animationTimer,r}return e=u,(r=[{key:"componentDidMount",value:function(){this.queue.length&&this.traverseQueue()}},{key:"componentDidUpdate",value:function(t){if(!vc()(this.props,t))if(this.interpolator&&this.state.animationInfo&&this.state.animationInfo.progress<1)this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}});else{var n;this.timer.unsubscribe(this.loopID),Array.isArray(this.props.data)?(n=this.queue).push.apply(n,function(t){if(Array.isArray(t))return rl(t)}(e=this.props.data)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,n){if(t){if("string"==typeof t)return rl(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?rl(t,n):void 0}}(e)||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.")}()):(this.queue.length=0,this.queue.push(this.props.data)),this.traverseQueue()}var e}},{key:"componentWillUnmount",value:function(){this.loopID?this.timer.unsubscribe(this.loopID):this.timer.stop()}},{key:"toNewName",value:function(t){var n;return"ease".concat((n=t)&&n[0].toUpperCase()+n.slice(1))}},{key:"traverseQueue",value:function(){var t,n,e=this;if(this.queue.length){var r=this.queue[0];this.interpolator=(t=this.state.data)!==(n=r)&&Jc(t)&&Jc(n)?"function"==typeof t||"function"==typeof n?nl(t,n):K()(t)||K()(n)?el(t,n):"string"==typeof t||"string"==typeof n?function(t,n){var e=function(t){return"string"==typeof t?t.replace(/,/g,""):t};return On(e(t),e(n))}(t,n):On(t,n):tl(t,n),this.props.delay?setTimeout((function(){e.loopID=e.timer.subscribe(e.functionToBeRunEachFrame,e.props.duration)}),this.props.delay):this.loopID=this.timer.subscribe(this.functionToBeRunEachFrame,this.props.duration)}else this.props.onEnd&&this.props.onEnd()}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}])&&ol(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l().Component);cl.displayName="VictoryAnimation",cl.propTypes={children:f().func,data:f().oneOfType([f().object,f().array]),delay:f().number,duration:f().number,easing:f().oneOf(["back","backIn","backOut","backInOut","bounce","bounceIn","bounceOut","bounceInOut","circle","circleIn","circleOut","circleInOut","linear","linearIn","linearOut","linearInOut","cubic","cubicIn","cubicOut","cubicInOut","elastic","elasticIn","elasticOut","elasticInOut","exp","expIn","expOut","expInOut","poly","polyIn","polyOut","polyInOut","quad","quadIn","quadOut","quadInOut","sin","sinIn","sinOut","sinInOut"]),onEnd:f().func},cl.defaultProps={data:{},delay:0,duration:1e3,easing:"quadInOut"},cl.contextType=da;var ll=r(5362),sl=r.n(ll);function fl(t,n){return(t.key||n).toString()}function pl(t){return t.reduce((function(t,n,e){return t[fl(n,e)]=n,t}),{})}function dl(t,n){var e=!1,r=d()(t).reduce((function(t,r){return r in n||(e=!0,t[r]=!0),t}),{});return e&&r}function hl(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function yl(t,n){var e=!1,r=!1,o=function(t,n){return t.map((function(i,a){return i&&i.props&&i.props.children&&n[a]?o(l().Children.toArray(t[a].props.children),l().Children.toArray(n[a].props.children)):function(t,n){if(!n||t.type!==n.type)return{};var o,i,a,u,c=(o=hl(t),i=hl(n),a=o&&pl(o),u=i&&pl(i),{entering:a&&dl(u,a),exiting:u&&dl(a,u)}||{}),l=c.entering,s=c.exiting;return e=e||!!s,r=r||!!l,{entering:l||!1,exiting:s||!1}}(i,n[a])}))},i=o(l().Children.toArray(t),l().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:i,nodesShouldEnter:!1}}function vl(t,n,e){var r=n&&n.nodesWillExit,o=n&&n.nodesWillEnter,i=n&&n.nodesShouldEnter,a=n&&n.nodesShouldLoad,u=n&&n.nodesDoneLoad,c=n&&n.childrenTransitions||[],l={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},s=function(t,n,r){return a?function(t,n,r){if((t=y()({},t,{onEnd:function(){e({nodesShouldLoad:!1,nodesDoneLoad:!0})}}))&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:n};var o=t.onLoad&&t.onLoad.after?t.onLoad.after:sl();return{animate:t,data:n=n.map((function(t,e){return y()({},t,o(t,e,n))}))}}(r,n):function(t,n,r,o){if((t=y()({},t,{onEnd:function(){e({nodesDoneLoad:!0})}}))&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:r};var i=t.onLoad&&t.onLoad.before?t.onLoad.before:sl();return{animate:t,data:r=r.map((function(t,n){return y()({},t,i(t,n,r))})),clipWidth:0}}(r,0,n)},f=function(t,n,r,o){return function(t,n,r,o,i){var a=t&&t.onExit;if(t=y()({},t,a),o){t.onEnd=function(){e({nodesWillExit:!1})};var u=t.onExit&&t.onExit.before?t.onExit.before:sl();r=r.map((function(t,n){var e=(t.key||n).toString();return o[e]?y()({},t,u(t,n,r)):t}))}return{animate:t,data:r}}(o,0,r,t)},p=function(t,n,r,o){return i?function(t,n,r,o){var i=t&&t.onEnter;if(t=y()({},t,i),r){t.onEnd=function(){e({nodesWillEnter:!1})};var a=t.onEnter&&t.onEnter.after?t.onEnter.after:sl();n=n.map((function(t,e){var o=fl(t,e);return r[o]?y()({},t,a(t,e,n)):t}))}return{animate:t,data:n}}(o,r,t):function(t,n,r,o,i){if(o){var a=(t=y()({},t,{onEnd:function(){e({nodesShouldEnter:!0})}})).onEnter&&t.onEnter.before?t.onEnter.before:sl();r=r.map((function(t,n){var e=(t.key||n).toString();return o[e]?y()({},t,a(t,n,r)):t}))}return{animate:t,data:r}}(o,0,r,t)},d=function(t,n){var e=t.props.animate;if(!t.type)return{};var r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){var o=e[n]&&e[n].duration;return void 0!==o?o:r[n]&&r[n].duration}return{}};return function(e,a){var h=hl(e)||[],v=j()({},t.animate,e.props.animate),m=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;v.onExit=j()({},v.onExit,m&&m.onExit),v.onEnter=j()({},v.onEnter,m&&m.onEnter),v.onLoad=j()({},v.onLoad,m&&m.onLoad);var g=c[a]||c[0];if(!u){var b={duration:void 0!==l.load?l.load:d(e,"onLoad")};return s(0,h,y()({},v,b))}if(r){var x=g&&g.exiting,O=void 0!==l.exit?l.exit:d(e,"onExit"),w=x?{duration:O}:{delay:O};return f(x,0,h,y()({},v,w))}if(o){var k=g&&g.entering,E=void 0!==l.enter?l.enter:d(e,"onEnter"),M=void 0!==l.move?l.move:e.props.animate&&e.props.animate.duration,A={duration:i&&k?E:M};return p(k,0,h,y()({},v,A))}return!n&&v&&v.onExit?function(t,n){var e=t.onEnter&&t.onEnter.after?t.onEnter.after:sl();return{data:n.map((function(t,r){return y()({},t,e(t,r,n))}))}}(v,h):{animate:v,data:h}}}function ml(){return ml=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ml.apply(this,arguments)}function gl(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bl(t,n){return bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},bl(t,n)}function xl(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function Ol(t){return Ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ol(t)}var wl=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&bl(t,n)}(a,t);var n,e,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Ol(r);if(o){var e=Ol(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return xl(this,t)});function a(t,n){var e;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t,n)).continuous=void 0,e.timer=void 0,e.transitionProps=void 0,e.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var r=e.props.children,o=r.props.polar;return e.continuous=!o&&r.type&&!0===r.type.continuous,e.timer=e.context.transitionTimer,e}return n=a,e=[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(t){var n=this;return vc()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(function(){return n.timer.resumeAnimation()}))),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(t,n){var e=t.animate;if(e){if(e.parentState)return{oldProps:e.parentState.nodesWillExit?t:null,nextProps:n};var r=yl(l().Children.toArray(t.children),l().Children.toArray(n.children)),o=r.nodesWillExit;return{nodesWillExit:o,nodesWillEnter:r.nodesWillEnter,childrenTransitions:r.childrenTransitions,nodesShouldEnter:r.nodesShouldEnter,oldProps:o?t:null,nextProps:n}}return{}}},{key:"getDomainFromChildren",value:function(t,n){var e=function(t){return t.reduce((function(t,r){if(r.type&&O()(r.type.getDomain)){var o=r.props&&r.type.getDomain(r.props,n);return o?t.concat(o):t}return r.props&&r.props.children?t.concat(e(l().Children.toArray(r.props.children))):t}),[])},r=l().Children.toArray(t.children)[0],o=r.props||{},i=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[n];if(!o.children&&i)return i;var a=e([r]);return 0===a.length?[0,1]:[tt(a),J(a)]}},{key:"pickProps",value:function(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}},{key:"pickDomainProps",value:function(t){var n,e=null===(n=t.animate)||void 0===n?void 0:n.parentState;return e&&e.nodesWillExit?(this.continuous||e.continuous)&&(e.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}},{key:"getClipWidth",value:function(t,n){var e=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==e?e:function(){var e=_(n.props,"x");return e?Math.abs(e[1]-e[0]):t.width}()}},{key:"render",value:function(){var t,n=this,e=this.pickProps(),r=null!==(t=this.props.animate)&&void 0!==t&&t.getTransitions?this.props.animate.getTransitions:vl(e,this.state,(function(t){return n.setState(t)})),o=l().Children.toArray(e.children)[0],i=r(o);this.transitionProps=i;var a={x:this.getDomainFromChildren(this.pickDomainProps(e),"x"),y:this.getDomainFromChildren(e,"y")},u=this.getClipWidth(e,o),c=j()({domain:a,clipWidth:u},i,o.props),s=(e.animationWhitelist||[]).concat(["clipWidth"]),f=s.length?m()(c,s):c;return l().createElement(cl,ml({},c.animate,{data:f}),(function(t){if(o.props.groupComponent){var e=n.continuous?l().cloneElement(o.props.groupComponent,{clipWidth:t.clipWidth||0}):o.props.groupComponent;return l().cloneElement(o,j()({animate:null,animating:!0,groupComponent:e},t,c))}return l().cloneElement(o,j()({animate:null,animating:!0},t,c))}))}}],e&&gl(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),a}(l().Component);function jl(t){return function(t){if(Array.isArray(t))return kl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return kl(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?kl(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kl(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function El(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Ml(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Al(t,n,e){return n&&Ml(t.prototype,n),e&&Ml(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sl(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Pl(t,n)}function Pl(t,n){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Pl(t,n)}function Cl(t){var n=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 e,r=Dl(t);if(n){var o=Dl(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Tl(this,e)}}function Tl(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return _l(t)}function _l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dl(t){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dl(t)}wl.displayName="VictoryTransition",wl.propTypes={animate:f().oneOfType([f().bool,f().object]),animationWhitelist:f().array,children:f().node},wl.contextType=da;var Il=function(t){return!i()(t._x)&&!i()(t._y)},Ll=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}],Nl=r(5919),ql=r.n(Nl),Rl=r(1346),Ul=r.n(Rl),Wl=(r(2720),r(9793)),Fl=r.n(Wl),zl=r(2972),Hl=r.n(zl),$l=r(9717),Bl=r.n($l);function Yl(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function Kl(t,n){return Yl(t)?t.reduce((function(t,e,r){return n&&n[r]&&(e=Kl(e)),t[r]=e,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function Vl(t){return function(t){if(Array.isArray(t))return Gl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return Gl(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Gl(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gl(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Ql(t){var n;return Yl(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?Kl(t,{errorX:!0,errorY:!0}):t}function Zl(t,n){var e=(K()(t.domain)?t.domain[n]:t.domain)||ji(t,n).domain(),r=t.samples||1,o=Math.max.apply(Math,Vl(e)),i=Math.min.apply(Math,Vl(e)),a=(o-i)/r,u=Bl()(i,o,a);return Hl()(u)===o?u:u.concat(o)}function Xl(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!n)return t;"x"!==n&&"y"!==n||(n="_".concat(n));var r="ascending"===e?"asc":"desc";return Xc()(t,n,r)}function Jl(t,n){var e=function(t,n){var e=t.tickValues,r=t.tickFormat;return(e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[]).filter((function(t){return"string"==typeof t}))}(t,n),r=es(t,n),o=function(t,n){if(!Array.isArray(t.data)&&!Yl(t.data))return[];var e=D(void 0===t[n]?n:t[n]);return Xl(t.data.reduce((function(t,n){return t.push(Ql(n)),t}),[]),t.sortKey,t.sortOrder).reduce((function(t,n){return n=Ql(n),t.push(e(n)),t}),[]).filter((function(t){return"string"==typeof t})).reduce((function(t,n){return null!=n&&-1===t.indexOf(n)&&t.push(n),t}),[])}(t,n),i=Gu()([].concat(Vl(e),Vl(r),Vl(o)));return 0===i.length?null:i.reduce((function(t,n,e){return t[n]=e+1,t}),{})}function ts(t,n,e){if(!Array.isArray(t)&&!Yl(t)||function(t){return Yl(t)?t.size:t.length}(t)<1)return[];var r,o=["x","y","y0"],i=(e=Array.isArray(e)?e:o).reduce((function(t,e){var r;return t[e]=D(void 0!==n[r=e]?n[r]:r),t}),{}),a=Fl()(e,o)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;!1===a&&(r={x:-1!==e.indexOf("x")?Jl(n,"x"):void 0,y:-1!==e.indexOf("y")?Jl(n,"y"):void 0,y0:-1!==e.indexOf("y0")?Jl(n,"y"):void 0});var u=a?t:t.reduce((function(t,n,o){var a={x:o,y:n=Ql(n)},u=e.reduce((function(t,e){var o=i[e](n),u=void 0!==o?o:a[e];return void 0!==u&&("string"==typeof u&&r[e]?(t["".concat(e,"Name")]=u,t["_".concat(e)]=r[e][u]):t["_".concat(e)]=u),t}),{}),c=y()({},u,n);return Ra()(c)||t.push(c),t}),[]),c=function(t,n){var e=1/Number.MAX_SAFE_INTEGER,r={x:ki(n,"x"),y:ki(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;var o=function(t,n){return"log"!==r[n]||0!==t["_".concat(n)]};return t.map((function(t){return o(t,"x")&&o(t,"y")&&o(t,"y0")?t:function(t){var n=o(t,"x")?t._x:e,r=o(t,"y")?t._y:e,i=o(t,"y0")?t._y0:e;return y()({},t,{_x:n,_y:r,_y0:i})}(t)}))}(Xl(u,n.sortKey,n.sortOrder),n);return function(t,n){var e,r=!!t.eventKey,o=(e=t.eventKey,O()(e)?e:null==e?function(){}:b()(e));return n.map((function(t,n){if(void 0!==t.eventKey)return t;if(r){var e=o(t,n);return void 0!==e?y()({eventKey:e},t):t}return t}))}(n,c)}function ns(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function es(t,n){if(!t.categories)return[];var e=ns(t,n),r=e&&e.filter((function(t){return"string"==typeof t}));return r?r.filter((function(t){return void 0!==t})):[]}var rs=r(7957),os=r.n(rs),is=r(5921),as=r.n(is);function us(t){return function(t){if(Array.isArray(t))return cs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return cs(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?cs(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cs(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function ls(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(t){return"max"===e?Math.max.apply(Math,us(t)):Math.min.apply(Math,us(t))},o="max"===e?-1/0:1/0,i=!1,a=u()(t).reduce((function(t,e){var o=void 0!==e["_".concat(n,"0")]?e["_".concat(n,"0")]:e["_".concat(n)],a=void 0!==e["_".concat(n,"1")]?e["_".concat(n,"1")]:e["_".concat(n)],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function ss(t,n){return t=O()(t)?t:ps,n=O()(n)?n:fs,function(e,r){var o=function(t,n){var e=ys(t,n),r=hs(t,n);return K()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?ds(e,r):void 0}(e,r);if(o)return n(o,e,r);var i=ns(e,r),a=i?function(t,n,e){e=e||ns(t,n);var r=t.polar,o=t.startAngle,i=void 0===o?0:o,a=t.endAngle,u=void 0===a?360:a;if(e){var c,l=ys(t,n),s=hs(t,n),f=(c=e,Array.isArray(c)&&c.some((function(t){return"string"==typeof t}))?es(t,n):[]),p=0===f.length?null:f.reduce((function(t,n,e){return t[n]=e+1,t}),{}),d=p?e.map((function(t){return p[t]})):e,h=ds(void 0!==l?l:tt(d),void 0!==s?s:J(d));return r&&"x"===n&&360===Math.abs(i-u)?vs(h,d):h}}(e,r,i):t(e,r);return a?n(a,e,r):void 0}}function fs(t,n,e){return function(t,n,e){return"log"!==ki(n,e)?t:(o=(r=t)[0]<0||r[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===r[0]?o:r[0],0===r[1]?o:r[1]]);var r,o}(function(t,n,e){if(!n.domainPadding)return t;var r=ys(n,e),o=hs(n,e),i=function(t,n){var e=function(t){return Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t}};return K()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!i.left&&!i.right)return t;var a=tt(t),u=J(t),c=function(t,n){return n?"x"===t?"y":"x":t}(e,n.horizontal),l=_(n,c),s=Math.abs(l[0]-l[1]),f=Math.max(s-i.left-i.right,1),p=Math.abs(u.valueOf()-a.valueOf())/f*s,d=p*i.left/s,h=p*i.right/s,y={min:a.valueOf()-d,max:u.valueOf()+h},v=K()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,m=function(t,n){return"min"===n&&a>=0&&t<=0||"max"===n&&u<=0&&t>=0?0:t};if((a>=0&&y.min<=0||u<=0&&y.max>=0)&&!1!==v){var g={left:Math.abs(u-a)*i.left/s,right:Math.abs(u-a)*i.right/s},b={min:m(a.valueOf()-g.left,"min"),max:m(u.valueOf()+g.right,"max")},x={left:Math.abs(b.max-b.min)*i.left/s,right:Math.abs(b.max-b.min)*i.right/s};y={min:m(a.valueOf()-x.left,"min"),max:m(u.valueOf()+x.right,"max")}}var O={min:void 0!==r?r:y.min,max:void 0!==o?o:y.max};return a instanceof Date||u instanceof Date?ds(new Date(O.min),new Date(O.max)):ds(O.min,O.max)}(t,n,e),n,e)}function ps(t,n,e){e=e||function(t){return t.data?ts(t.data,t):ts(function(t){var n=Zl(t,"x"),e=Zl(t,"y");return n.map((function(t,n){return{x:t,y:e[n]}}))}(t),t)}(t);var r=t.polar,o=t.startAngle,i=void 0===o?0:o,a=t.endAngle,c=void 0===a?360:a,l=ys(t,n),s=hs(t,n);if(e.length<1)return void 0!==l&&void 0!==s?ds(l,s):void 0;var f=ds(void 0!==l?l:ls(e,n,"min"),void 0!==s?s:ls(e,n,"max"));return r&&"x"===n&&360===Math.abs(i-c)?vs(f,function(t,n){var e="_".concat(n);return u()(t).map((function(t){return t[e]&&void 0!==t[e][1]?t[e][1]:t[e]}))}(e,n)):f}function ds(t,n){var e,r,o,i;return+t==+n?(r=0===(e=n)?2*Math.pow(10,-10):Math.pow(10,-10),o=e instanceof Date?new Date(+e-1):+e-r,i=e instanceof Date?new Date(+e+1):+e+r,0===e?[0,i]:[o,i]):[t,n]}function hs(t,n){return K()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||os()(t.maxDomain)?t.maxDomain:void 0}function ys(t,n){return K()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||os()(t.minDomain)?t.minDomain:void 0}function vs(t,n){var e=as()(n.sort((function(t,n){return t-n}))),r=e[1]-e[0];return[t[0],t[1]+r]}var ms=["max","min","median","q1","q3"],gs=function(t){return ql()(t)?null:t},bs=function(t){var n=t.map((function(t){return t._y})),e={_q1:gs(je(n,.25)),_q3:gs(je(n,.75)),_min:gs(be(n)),_median:gs(je(n,.5)),_max:gs(ge(n))};return y()({},t[0],e,{_y:t[0]._y})},xs=function(t){var n=ms.concat("x","y"),e=ts(t.data,t,n);return e.length?function(t){var n=function(t){if(t.every((function(t){return ms.every((function(n){return void 0!==t["_".concat(n)]}))}))){var n=t.map((function(t){return t._x}));if(!Gu()(n).length===n.length)throw new Error("\n data prop may only take an array of objects with a unique\n independent variable. Make sure your x values are distinct.\n ");return!0}return!1}(t);if(n)return t;var e=t.every((function(t){return Array.isArray(t._x)})),r=t.every((function(t){return Array.isArray(t._y)})),o="_y";if(e)throw new Error("\n data should not be given as in array for x\n ");if(r)return t.map((function(t){var n=t._y.map((function(n){return y()({},t,function(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t._y=e,t}({},o,n))})),e=Xc()(n,o);return bs(e)}));var i=Ul()(t,"_x");return d()(i).map((function(t){var n=i[t],e=Xc()(n,o);return bs(e)}))}(e):[]},Os=function(t,n){var e=ys(t,n),r=hs(t,n),o=xs(t);return o.length<1?void 0!==e&&void 0!==r?ds(e,r):void 0:"y"===n?function(t,n,e){var r=ys(n,e),o=hs(n,e);return ds(void 0!==r?r:t.reduce((function(t,n){return t<n._min?t:n._min}),1/0),void 0!==o?o:t.reduce((function(t,n){return t>n._max?t:n._max}),-1/0))}(o,t,n):function(t,n,e){var r=ys(n,e),o=hs(n,e);return ds(void 0!==r?r:t.reduce((function(t,n){return t<n["_".concat(e)]?t:n["_".concat(e)]}),1/0),void 0!==o?o:t.reduce((function(t,n){return t>n["_".concat(e)]?t:n["_".concat(e)]}),-1/0))}(o,t,n)},ws=function(t,n){return ss(Os)(t,n)},js=function(t,n,e){var r=t["".concat(e,"LabelComponent")]||t.labelComponent,o=n["".concat(e,"Labels")]||n.labels;if(!A(r))return o;var i=t.theme&&t.theme.tooltip||{};return j()({},i.style,o)},ks=function(t,n){var e=I(t,n,"boxplot"),r=t=y()({},e,function(t){var n=t.theme,e=t.horizontal,r=xs(t),o={x:_(t,"x"),y:_(t,"y")},i={x:ws(t,"x"),y:ws(t,"y")},a={x:ji(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:ji(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=function(t,n){if(t.disableInlineStyles)return{};var e=t.style||{};n=n||{};var r=j()({},e.labels,js(t,n)),o=j()({},e.boxes,n.boxes),i=j()({},e.whiskers,n.whiskers);return{boxes:o,labels:r,parent:j()({},e.parent,n.parent,{height:"100%",width:"100%"}),max:j()({},e.max,n.max,i),maxLabels:j()({},e.maxLabels,js(t,n,"max"),r),median:j()({},e.median,n.median,i),medianLabels:j()({},e.medianLabels,js(t,n,"median"),r),min:j()({},e.min,n.min,i),minLabels:j()({},e.minLabels,js(t,n,"min"),r),q1:j()({},e.q1,n.q1,o),q1Labels:j()({},e.q1Labels,js(t,n,"q1"),r),q3:j()({},e.q3,n.q3,o),q3Labels:j()({},e.q3Labels,js(t,n,"q3"),r),whiskers:i}}(t,n&&n.boxplot&&n.boxplot.style?n.boxplot.style:{}),c=t.horizontal?"top":"right";return{data:r,horizontal:e,domain:i,scale:a,style:u,labelOrientation:t.labelOrientation||c,boxWidth:t.boxWidth||1}}(e)),o=r.groupComponent,a=r.width,u=r.height,c=r.padding,l=r.standalone,s=r.theme,f=r.events,p=r.sharedEvents,d=r.scale,h=r.horizontal,v=r.data,m=r.style,g=r.domain,b=r.name,x={parent:{domain:g,scale:d,width:a,height:u,data:v,standalone:l,name:b,theme:s,style:m.parent||{},padding:c,groupComponent:o,horizontal:h}},O=d.y;return v.reduce((function(n,e,r){var o=i()(e.eventKey)?r:e.eventKey;if(function(t,n){var e,r,o=function(t){return void 0!==t},i=t._x,a=t._min,u=t._max,c=tt(n.x),l=J(n.x),s=tt(n.y),f=J(n.y),p=function(t){return function(n){return o(n)&&n<t}},d=function(t){return function(n){return o(n)&&n>t}},h=p(c),y=p(s),v=d(l),m=d(f);return(h(i)||v(i))&&(r=!0),(y(a)&&y(u)||m(a)&&m(u))&&(e=!0),e||r}(e,g))return n;var a={x:h?d.y(e._y):d.x(e._x),y:h?d.x(e._x):d.y(e._y),min:O(e._min),max:O(e._max),median:O(e._median),q1:O(e._q1),q3:O(e._q3)},u=y()({index:r,datum:e,positions:a},t),c=ms.reduce((function(t,n){return t[n]=function(t,n){return"median"===n?function(t){var n=t.boxWidth,e=t.horizontal,r=t.style,o=t.datum,i=t.scale,a=t.index,u=t.disableInlineStyles,c=t.positions,l=c.median,s=c.x,f=c.y;return{datum:o,scale:i,index:a,x1:e?l:s-n/2,y1:e?f-n/2:l,x2:e?l:s+n/2,y2:e?f+n/2:l,style:u?{}:r.median,disableInlineStyles:u}}(t):"min"===n||"max"===n?function(t,n){var e=t.horizontal,r=t.style,o=t.boxWidth,i=t.whiskerWidth,a=t.datum,u=t.scale,c=t.index,l=t.disableInlineStyles,s=t.positions,f=s.min,p=s.max,d=s.q1,h=s.q3,y=s.x,v=s.y,m="min"===n?d:h,g="min"===n?f:p,b="number"==typeof i?i:o;return{datum:a,index:c,scale:u,majorWhisker:{x1:e?m:y,y1:e?v:m,x2:e?g:y,y2:e?v:g},minorWhisker:{x1:e?g:y-b/2,y1:e?v-b/2:g,x2:e?g:y+b/2,y2:e?v+b/2:g},style:l?{}:r[n]||r.whisker,disableInlineStyles:l}}(t,n):function(t,n){var e=t.horizontal,r=t.boxWidth,o=t.style,i=t.scale,a=t.datum,u=t.index,c=t.disableInlineStyles,l=t.positions,s=l.median,f=l.q1,p=l.q3,d=l.x,h=l.y;return{datum:a,scale:i,index:u,x:e?"q1"===n?f:s:d-r/2,y:e?h-r/2:"q1"===n?s:p,width:e?"q1"===n?s-f:p-s:r,height:e?r:"q1"===n?f-s:s-p,style:c?{}:o[n]||o.boxes,disableInlineStyles:c}}(t,n)}(u,n),t}),{});return n[o]=c,ms.forEach((function(e){var r=function(t,n){var e=t.datum,r=t.index,o=t.labels,i=t["".concat(n,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(n);return"".concat(e[a])}return Array.isArray(i)?i[r]:i}(u,e),i=t.labels||t["".concat(e,"Labels")];if(null!=r||i&&(f||p)){var a="".concat(e,"Labels");n[o][a]=function(t,n,e){var r=t.datum,o=t.positions,i=t.index,a=t.boxWidth,u=t.horizontal,c=t.labelOrientation,l=t.style,s=t.theme,f=t.disableInlineStyles,p=function(t,n){return"object"==typeof t&&t[n]||t}(c,e),d=l["".concat(e,"Labels")]||l.labels,h="number"==typeof t.whiskerWidth?t.whiskerWidth:a,y="min"===e||"max"===e?h:a,v=function(t){var n={x:"left"===p?-1:1,y:"top"===p?-1:1};return n[t]*y/2+n[t]*(d.padding||0)},m={text:n,datum:r,index:i,orientation:p,style:f?{}:d,y:u?o.y:o[e],x:u?o[e]:o.x,dy:u?v("y"):0,dx:u?0:v("x"),textAnchor:d.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[p],verticalAnchor:d.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[p],angle:d.angle,horizontal:u,disableInlineStyles:f};if(!A(t["".concat(e,"LabelComponent")]))return m;var g=s&&s.tooltip||{};return j()({},m,k(g,["style"]))}(y()({},t,u),r,e)}})),n}),x)};function Es(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Ms(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Es(Object(e),!0).forEach((function(n){As(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Es(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function As(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Ss(t){return function(t){if(Array.isArray(t))return Ps(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return Ps(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ps(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ps(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Cs(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Ts(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _s(t,n){return _s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},_s(t,n)}function Ds(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function Is(t){return Is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Is(t)}var Ls={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},Ns=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&_s(t,n)}(s,t);var n,e,r,o,a=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Is(r);if(o){var e=Is(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return Ds(this,t)});function s(){return Cs(this,s),a.apply(this,arguments)}return n=s,(e=[{key:"renderBoxPlot",value:function(t){var n=this,e=["q1","q3","max","min","median"],r=u()(e.map((function(e){return n.dataKeys.reduce((function(r,o,i){var a=t["".concat(e,"Component")],u=n.getComponentProps(a,e,i);return n.shouldRenderDatum(u.datum)&&r.push(l().cloneElement(a,u)),r}),[])}))),o=u()(e.map((function(e){return n.dataKeys.map((function(r,o){var i="".concat(e,"Labels"),a=t["".concat(e,"LabelComponent")],u=n.getComponentProps(a,i,o);if(void 0!==u.text&&null!==u.text)return l().cloneElement(a,u)})).filter(Boolean)}))),i=[].concat(Ss(r),Ss(o));return this.renderContainer(t.groupComponent,i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"shouldRenderDatum",value:function(t){var n=!i()(t._x),e=!i()(t._y);return!(i()(t._min)||i()(t._max)||i()(t._median)||i()(t._q1)||i()(t._q3))&&(this.props.horizontal?e:n)}},{key:"render",value:function(){var t=s.animationWhitelist,n=s.role,e=I(this.props,Ls,n);if(this.shouldAnimate())return this.animateComponent(e,t);var r=this.renderBoxPlot(e);return function(t,n){return c.cloneElement(t,F(n))}(e.standalone?this.renderContainer(e.containerComponent,r):r,e)}}])&&Ts(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),s}(l().Component);Ns.animationWhitelist=["data","domain","height","padding","style","width"],Ns.displayName="VictoryBoxPlot",Ns.role="boxplot",Ns.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},Ns.propTypes=Ms(Ms(Ms({},Ni.baseProps),Ni.dataProps),{},{boxWidth:f().number,events:f().arrayOf(f().shape({target:f().oneOf(["max","maxLabels","median","medianLabels","min","minLabels","q1","q1Labels","q3","q3Labels","parent"]),eventKey:f().oneOfType([f().array,Ti([Di,_i]),f().string]),eventHandlers:f().object})),horizontal:f().bool,labelOrientation:f().oneOfType([f().oneOf(["top","bottom","left","right"]),f().shape({q1:f().oneOf(["top","bottom","left","right"]),q3:f().oneOf(["top","bottom","left","right"]),min:f().oneOf(["top","bottom","left","right"]),max:f().oneOf(["top","bottom","left","right"]),median:f().oneOf(["top","bottom","left","right"])})]),labels:f().bool,max:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),maxComponent:f().element,maxLabelComponent:f().element,maxLabels:f().oneOfType([f().func,f().array,f().bool]),median:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),medianComponent:f().element,medianLabelComponent:f().element,medianLabels:f().oneOfType([f().func,f().array,f().bool]),min:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),minComponent:f().element,minLabelComponent:f().element,minLabels:f().oneOfType([f().func,f().array,f().bool]),q1:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),q1Component:f().element,q1LabelComponent:f().element,q1Labels:f().oneOfType([f().func,f().array,f().bool]),q3:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),q3Component:f().element,q3LabelComponent:f().element,q3Labels:f().oneOfType([f().func,f().array,f().bool]),style:f().shape({boxes:f().object,labels:f().object,parent:f().object,max:f().object,maxLabels:f().object,median:f().object,medianLabels:f().object,min:f().object,minLabels:f().object,q1:f().object,q1Labels:f().object,q3:f().object,q3Labels:f().object,whiskers:f().object}),whiskerWidth:f().number}),Ns.defaultProps={containerComponent:l().createElement(wa,null),data:[{x:1,min:5,q1:7,median:12,q3:18,max:20},{x:2,min:2,q1:5,median:8,q3:12,max:15}],dataComponent:l().createElement(Pa,null),groupComponent:l().createElement("g",{role:"presentation"}),maxComponent:l().createElement(Na,null),maxLabelComponent:l().createElement(Ou,null),medianComponent:l().createElement(Eu,null),medianLabelComponent:l().createElement(Ou,null),minComponent:l().createElement(Na,null),minLabelComponent:l().createElement(Ou,null),q1Component:l().createElement(Pa,null),q1LabelComponent:l().createElement(Ou,null),q3Component:l().createElement(Pa,null),q3LabelComponent:l().createElement(Ou,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Hu.grayscale},Ns.getDomain=ws,Ns.getData=xs,Ns.getBaseProps=function(t){return ks(t,Ls)},Ns.expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];const qs=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=function(e){Sl(o,e);var r=Cl(o);function o(t){var n;return El(this,o),(n=r.call(this,t)).state={},n.getEventState=uc.bind(_l(n)),n.getScopedEvents=ic.bind(_l(n)),n.getEvents=function(t,e,r){return oc.call(_l(n),t,e,r,n.getScopedEvents)},n.externalMutations=n.getExternalMutations(n.props),n.calculatedState=n.getStateChanges(n.props),n.globalEvents={},n.prevGlobalEventKeys=[],n.boundGlobalEvents={},n.cacheValues(n.getCalculatedValues(t)),n}return Al(o,[{key:"shouldComponentUpdate",value:function(t){var n=this.getExternalMutations(t),e=this.props.animating||this.props.animate,r=!vc()(n,this.externalMutations);if(e||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=n,this.applyExternalMutations(t,n),!0;var o=this.getStateChanges(t);return vc()(this.calculatedState,o)?!vc()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}},{key:"componentDidMount",value:function(){var t=this,n=d()(this.globalEvents);n.forEach((function(n){return t.addGlobalListener(n)})),this.prevGlobalEventKeys=n}},{key:"componentDidUpdate",value:function(t){var n=this,e=this.getStateChanges(t);this.calculatedState=e;var r=d()(this.globalEvents);Ku()(this.prevGlobalEventKeys,r).forEach((function(t){return n.removeGlobalListener(t)})),Ku()(r,this.prevGlobalEventKeys).forEach((function(t){return n.addGlobalListener(t)})),this.prevGlobalEventKeys=r}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(n){return t.removeGlobalListener(n)}))}},{key:"addGlobalListener",value:function(t){var n=this,e=function(e){var r=n.globalEvents[t];return r&&r(hc(e))};this.boundGlobalEvents[t]=e,window.addEventListener(fc(t),e)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(fc(t),this.boundGlobalEvents[t])}},{key:"getStateChanges",value:function(t){var e=this;if(!this.hasEvents)return{};var r=function(t,n){var r=j()({},e.getEventState(t,n),e.getSharedEventState(t,n));return Ra()(r)?void 0:r};return(n.components||Ll).map((function(n){return t.standalone||"parent"!==n.name?void 0!==n.index?r(n.index,n.name):e.dataKeys.map((function(t){return r(t,n.name)})).filter(Boolean):void 0})).filter(Boolean)}},{key:"applyExternalMutations",value:function(t,n){if(!Ra()(n)){var e=t.externalEventMutations.reduce((function(t,n){return O()(n.callback)?t.concat(n.callback):t}),[]),r=e.length?function(){e.forEach((function(t){return t()}))}:void 0;this.setState(n,r)}}},{key:"getCalculatedValues",value:function(n){var e=n.sharedEvents,r=sc(n,t.expectedComponents),o=e&&O()(e.getEventState)?e.getEventState:function(){},i=this.getBaseProps(n,o);return{componentEvents:r,getSharedEventState:o,baseProps:i,dataKeys:d()(i).filter((function(t){return"parent"!==t})),hasEvents:n.events||n.sharedEvents||r,events:this.getAllEvents(n)}}},{key:"getExternalMutations",value:function(t){var n=t.sharedEvents,e=t.externalEventMutations;return Ra()(e)||n?void 0:cc(e,this.baseProps,this.state)}},{key:"cacheValues",value:function(t){var n=this;d()(t).forEach((function(e){n[e]=t[e]}))}},{key:"getBaseProps",value:function(n,e){var r=(e=e||this.getSharedEventState.bind(this))("parent","parent"),o=this.getEventState("parent","parent"),i=j()({},o,r),a=i.parentControlledProps,u=a?m()(i,a):{},c=j()({},u,n);return"function"==typeof t.getBaseProps?t.getBaseProps(c):{}}},{key:"getAllEvents",value:function(t){var n;return Array.isArray(this.componentEvents)?Array.isArray(t.events)?(n=this.componentEvents).concat.apply(n,jl(t.events)):this.componentEvents:t.events}},{key:"getComponentProps",value:function(n,e,r){var o=this.props.name||t.role,i=this.dataKeys&&this.dataKeys[r]||r,a="".concat(o,"-").concat(e,"-").concat(i),u=this.baseProps[i]&&this.baseProps[i][e]||this.baseProps[i];if(u||this.hasEvents){if(this.hasEvents){var c=this.getEvents(this.props,e,i),l=j()({index:r,key:a},this.getEventState(i,e),this.getSharedEventState(i,e),n.props,u,{id:a}),s=j()({},ac(c,i,l),l.events);return y()({},l,{events:s})}return j()({index:r,key:a},n.props,u,{id:a})}}},{key:"renderContainer",value:function(t,n){var e=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return e.events&&(this.globalEvents=pc(e.events),e.events=dc(e.events)),l().cloneElement(t,e,n)}},{key:"animateComponent",value:function(t,n){var e,r="object"==typeof t.animate&&(null===(e=t.animate)||void 0===e?void 0:e.animationWhitelist)||n,o=this.constructor;return l().createElement(wl,{animate:t.animate,animationWhitelist:r},l().createElement(o,t))}},{key:"renderContinuousData",value:function(t){var n=this,e=t.dataComponent,r=t.labelComponent,o=t.groupComponent,i=Bu()(this.dataKeys,"all").reduce((function(t,e){var o=n.getComponentProps(r,"labels",e);return o&&void 0!==o.text&&null!==o.text&&(t=t.concat(l().cloneElement(r,o))),t}),[]),a=this.getComponentProps(e,"data","all"),u=[l().cloneElement(e,a)].concat(jl(i));return this.renderContainer(o,u)}},{key:"renderData",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Il,r=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=this.dataKeys.reduce((function(t,o,i){var a=n.getComponentProps(r,"data",i);return e(a.datum)&&t.push(l().cloneElement(r,a)),t}),[]),u=this.dataKeys.map((function(t,e){var r=n.getComponentProps(o,"labels",e);if(void 0!==r.text&&null!==r.text)return l().cloneElement(o,r)})).filter(Boolean),c=[].concat(jl(a),jl(u));return this.renderContainer(i,c)}}]),o}(t);return e}(Ns,{components:[{name:"min"},{name:"minLabels"},{name:"max"},{name:"maxLabels"},{name:"median"},{name:"medianLabels"},{name:"q1"},{name:"q1Labels"},{name:"q3"},{name:"q3Labels"},{name:"parent",index:"parent"}]})})(),o})()));
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryBoxPlot=n(require("react")):t.VictoryBoxPlot=n(t.React)}(self,(t=>(()=>{var n={3273:(t,n,e)=>{var r=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:(t,n,e)=>{var r=e(1171),o=e(7838),i=e(4859),a=e(4073),u=e(8541);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},2596:(t,n,e)=>{var r=e(2373).Symbol;t.exports=r},6082:t=>{t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},6649:t=>{t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];n(r,a,e(a),t)}return r}},5510:(t,n,e)=>{var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9955:t=>{t.exports=function(t,n,e){for(var r=-1,o=null==t?0:t.length;++r<o;)if(e(n,t[r]))return!0;return!1}},8644:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},9559:t=>{t.exports=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}},1634:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},4132:(t,n,e)=>{var r=e(8347),o=e(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];i.call(t,n)&&o(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3162:(t,n,e)=>{var r=e(788);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},4508:t=>{t.exports=function(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];n(r,a,e(a),t)}return r}},8347:(t,n,e)=>{var r=e(5525);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},1377:(t,n,e)=>{var r=e(3273),o=e(5510),i=e(9955),a=e(8644),u=e(9110),c=e(9914);t.exports=function(t,n,e,l){var s=-1,f=o,p=!0,d=t.length,h=[],y=n.length;if(!d)return h;e&&(n=a(n,u(e))),l?(f=i,p=!1):n.length>=200&&(f=c,p=!1,n=new r(n));t:for(;++s<d;){var v=t[s],m=null==e?v:e(v);if(v=l||0!==v?v:0,p&&m==m){for(var g=y;g--;)if(n[g]===m)continue t;h.push(v)}else f(n,m,l)||h.push(v)}return h}},3705:t=>{t.exports=function(t,n,e,r){for(var o=t.length,i=e+(r?1:-1);r?i--:++i<o;)if(n(t[i],i,t))return i;return-1}},6457:(t,n,e)=>{var r=e(9559),o=e(3608);t.exports=function t(n,e,i,a,u){var c=-1,l=n.length;for(i||(i=o),u||(u=[]);++c<l;){var s=n[c];e>0&&i(s)?e>1?t(s,e-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},4432:(t,n,e)=>{var r=e(9026),o=e(3110);t.exports=function(t,n){for(var e=0,i=(n=r(n,t)).length;null!=t&&e<i;)t=t[o(n[e++])];return e&&e==i?t:void 0}},563:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},6776:t=>{t.exports=function(t,n){return null!=t&&n in Object(t)}},6123:t=>{t.exports=function(t,n,e){for(var r=e-1,o=t.length;++r<o;)if(t[r]===n)return r;return-1}},7537:(t,n,e)=>{var r=e(563),o=e(3474);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},9070:(t,n,e)=>{var r=e(7028),o=e(3474);t.exports=function t(n,e,i,a,u){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!=n&&e!=e:r(n,e,i,a,t,u))}},7028:(t,n,e)=>{var r=e(8708),o=e(8705),i=e(2813),a=e(6682),u=e(9667),c=e(163),l=e(4801),s=e(4289),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,y,v,m){var g=c(t),b=c(n),x=g?p:u(t),O=b?p:u(n),w=(x=x==f?d:x)==d,j=(O=O==f?d:O)==d,k=x==O;if(k&&l(t)){if(!l(n))return!1;g=!0,w=!1}if(k&&!w)return m||(m=new r),g||s(t)?o(t,n,e,y,v,m):i(t,n,x,e,y,v,m);if(!(1&e)){var E=w&&h.call(t,"__wrapped__"),M=j&&h.call(n,"__wrapped__");if(E||M){var A=E?t.value():t,S=M?n.value():n;return m||(m=new r),v(A,S,e,y,m)}}return!!k&&(m||(m=new r),a(t,n,e,y,v,m))}},9548:(t,n,e)=>{var r=e(8708),o=e(9070);t.exports=function(t,n,e,i){var a=e.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=e[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=e[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var d=new r;if(i)var h=i(f,p,s,t,n,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},2229:(t,n,e)=>{var r=e(563),o=e(3474);t.exports=function(t){return o(t)&&"[object RegExp]"==r(t)}},3472:(t,n,e)=>{var r=e(758),o=e(5223),i=e(5346),a=e(163),u=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},7190:(t,n,e)=>{var r=e(5125)(Object.keys,Object);t.exports=r},383:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},758:(t,n,e)=>{var r=e(9548),o=e(597),i=e(6878);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?i(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:(t,n,e)=>{var r=e(9070),o=e(9201),i=e(5066),a=e(726),u=e(5385),c=e(6878),l=e(3110);t.exports=function(t,n){return a(t)&&u(n)?c(l(t),n):function(e){var a=o(e,t);return void 0===a&&a===n?i(e,t):r(n,a,3)}}},8245:(t,n,e)=>{var r=e(8644),o=e(4432),i=e(3472),a=e(383),u=e(9521),c=e(9110),l=e(9409),s=e(5346),f=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return f(t)?function(n){return o(n,1===t.length?t[0]:t)}:t})):[s];var p=-1;n=r(n,c(i));var d=a(t,(function(t,e,o){return{criteria:r(n,(function(n){return n(t)})),index:++p,value:t}}));return u(d,(function(t,n){return l(t,n,e)}))}},5436:(t,n,e)=>{var r=e(6371),o=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return o(t,e)}))}},6371:(t,n,e)=>{var r=e(4432),o=e(6539),i=e(9026);t.exports=function(t,n,e){for(var a=-1,u=n.length,c={};++a<u;){var l=n[a],s=r(t,l);e(s,l)&&o(c,i(l,t),s)}return c}},1600:t=>{t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},3301:(t,n,e)=>{var r=e(4432);t.exports=function(t){return function(n){return r(n,t)}}},7805:t=>{var n=Math.ceil,e=Math.max;t.exports=function(t,r,o,i){for(var a=-1,u=e(n((r-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},6317:(t,n,e)=>{var r=e(5346),o=e(4280),i=e(201);t.exports=function(t,n){return i(o(t,n,r),t+"")}},6539:(t,n,e)=>{var r=e(4132),o=e(9026),i=e(9099),a=e(7709),u=e(3110);t.exports=function(t,n,e,c){if(!a(t))return t;for(var l=-1,s=(n=o(n,t)).length,f=s-1,p=t;null!=p&&++l<s;){var d=u(n[l]),h=e;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(l!=f){var y=p[d];void 0===(h=c?c(y,d,p):void 0)&&(h=a(y)?y:i(n[l+1])?[]:{})}r(p,d,h),p=p[d]}return t}},9521:t=>{t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},7556:(t,n,e)=>{var r=e(788);t.exports=function(t,n){for(var e=-1,o=t.length,i=0,a=[];++e<o;){var u=t[e],c=n?n(u):u;if(!e||!r(c,l)){var l=c;a[i++]=0===u?0:u}}return a}},6316:(t,n,e)=>{var r=e(2596),o=e(8644),i=e(163),a=e(1995),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(i(n))return o(n,t)+"";if(a(n))return c?c.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},1367:(t,n,e)=>{var r=e(4120),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},9110:t=>{t.exports=function(t){return function(n){return t(n)}}},946:(t,n,e)=>{var r=e(3273),o=e(5510),i=e(9955),a=e(9914),u=e(6602),c=e(6226);t.exports=function(t,n,e){var l=-1,s=o,f=t.length,p=!0,d=[],h=d;if(e)p=!1,s=i;else if(f>=200){var y=n?null:u(t);if(y)return c(y);p=!1,s=a,h=new r}else h=n?[]:d;t:for(;++l<f;){var v=t[l],m=n?n(v):v;if(v=e||0!==v?v:0,p&&m==m){for(var g=h.length;g--;)if(h[g]===m)continue t;n&&h.push(m),d.push(v)}else s(h,m,e)||(h!==d&&h.push(m),d.push(v))}return d}},9914:(t,n,e)=>{var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9026:(t,n,e)=>{var r=e(163),o=e(726),i=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:o(t,n)?[t]:i(a(t))}},522:(t,n,e)=>{var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==n,c=null===n,l=n==n,s=r(n);if(!c&&!s&&!a&&t>n||a&&u&&l&&!c&&!s||o&&u&&l||!e&&l||!i)return 1;if(!o&&!a&&!s&&t<n||s&&e&&i&&!o&&!a||c&&e&&i||!u&&i||!l)return-1}return 0}},9409:(t,n,e)=>{var r=e(522);t.exports=function(t,n,e){for(var o=-1,i=t.criteria,a=n.criteria,u=i.length,c=e.length;++o<u;){var l=r(i[o],a[o]);if(l)return o>=c?l:l*("desc"==e[o]?-1:1)}return t.index-n.index}},9021:(t,n,e)=>{var r=e(4132),o=e(8347);t.exports=function(t,n,e,i){var a=!e;e||(e={});for(var u=-1,c=n.length;++u<c;){var l=n[u],s=i?i(e[l],t[l],l,e,t):void 0;void 0===s&&(s=t[l]),a?o(e,l,s):r(e,l,s)}return e}},5659:(t,n,e)=>{var r=e(6649),o=e(4508),i=e(3472),a=e(163);t.exports=function(t,n){return function(e,u){var c=a(e)?r:o,l=n?n():{};return c(e,t,i(u,2),l)}}},6092:(t,n,e)=>{var r=e(6317),o=e(8286);t.exports=function(t){return r((function(n,e){var r=-1,i=e.length,a=i>1?e[i-1]:void 0,u=i>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(e[0],e[1],u)&&(a=i<3?void 0:a,i=1),n=Object(n);++r<i;){var c=e[r];c&&t(n,c,r,a)}return n}))}},4499:(t,n,e)=>{var r=e(3472),o=e(981),i=e(7747);t.exports=function(t){return function(n,e,a){var u=Object(n);if(!o(n)){var c=r(e,3);n=i(n),e=function(t){return c(u[t],t,u)}}var l=t(n,e,a);return l>-1?u[c?n[l]:l]:void 0}}},2507:(t,n,e)=>{var r=e(7805),o=e(8286),i=e(9139);t.exports=function(t){return function(n,e,a){return a&&"number"!=typeof a&&o(n,e,a)&&(e=a=void 0),n=i(n),void 0===e?(e=n,n=0):e=i(e),a=void 0===a?n<e?1:-1:i(a),r(n,e,a,t)}}},6602:t=>{t.exports=function(){}},5525:(t,n,e)=>{var r=e(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,n,e)=>{var r=e(3273),o=e(1634),i=e(9914);t.exports=function(t,n,e,a,u,c){var l=1&e,s=t.length,f=n.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),d=c.get(n);if(p&&d)return p==n&&d==t;var h=-1,y=!0,v=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++h<s;){var m=t[h],g=n[h];if(a)var b=l?a(g,m,h,n,t,c):a(m,g,h,t,n,c);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!o(n,(function(t,n){if(!i(v,n)&&(m===t||u(m,t,e,a,c)))return v.push(n)}))){y=!1;break}}else if(m!==g&&!u(m,g,e,a,c)){y=!1;break}}return c.delete(t),c.delete(n),y}},2813:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:(t,n,e)=>{var r=e(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,i,a,u){var c=1&e,l=r(t),s=l.length;if(s!=r(n).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in n:o.call(n,p)))return!1}var d=u.get(t),h=u.get(n);if(d&&h)return d==n&&h==t;var y=!0;u.set(t,n),u.set(n,t);for(var v=c;++f<s;){var m=t[p=l[f]],g=n[p];if(i)var b=c?i(g,m,p,n,t,u):i(m,g,p,t,n,u);if(!(void 0===b?m===g||a(m,g,e,i,u):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,O=n.constructor;x==O||!("constructor"in t)||!("constructor"in n)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(y=!1)}return u.delete(t),u.delete(n),y}},5557:(t,n,e)=>{var r=e(2645),o=e(4280),i=e(201);t.exports=function(t){return i(o(t,void 0,r),t+"")}},2117:(t,n,e)=>{var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},8143:(t,n,e)=>{var r=e(5125)(Object.keys,Object);t.exports=r},7271:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},597:(t,n,e)=>{var r=e(5385),o=e(7747);t.exports=function(t){for(var n=o(t),e=n.length;e--;){var i=n[e],a=t[i];n[e]=[i,a,r(a)]}return n}},3743:t=>{t.exports=function(t,n){return null==t?void 0:t[n]}},9817:(t,n,e)=>{var r=e(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},3096:(t,n,e)=>{var r=e(9026),o=e(5075),i=e(163),a=e(9099),u=e(8454),c=e(3110);t.exports=function(t,n,e){for(var l=-1,s=(n=r(n,t)).length,f=!1;++l<s;){var p=c(n[l]);if(!(f=null!=t&&e(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))}},3608:(t,n,e)=>{var r=e(2596),o=e(5075),i=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},9099:t=>{var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},8286:t=>{t.exports=function(){return!1}},726:(t,n,e)=>{var r=e(163),o=e(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=n&&t in Object(n)}},5782:t=>{t.exports=function(){return!1}},5385:(t,n,e)=>{var r=e(7709);t.exports=function(t){return t==t&&!r(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,n,e)=>{var r=e(3162),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():o.call(n,e,1),--this.size,0))}},4859:(t,n,e)=>{var r=e(3162);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},4073:(t,n,e)=>{var r=e(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:(t,n,e)=>{var r=e(3162);t.exports=function(t,n){var e=this.__data__,o=r(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this}},6878:t=>{t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},2453:t=>{t.exports=function(t){return t}},2348:(t,n,e)=>{t=e.nmd(t);var r=e(2117),o=n&&!n.nodeType&&n,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5125:t=>{t.exports=function(t,n){return function(e){return t(n(e))}}},4280:(t,n,e)=>{var r=e(6082),o=Math.max;t.exports=function(t,n,e){return n=o(void 0===n?t.length-1:n,0),function(){for(var i=arguments,a=-1,u=o(i.length-n,0),c=Array(u);++a<u;)c[a]=i[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=i[a];return l[n]=e(c),r(t,this,l)}}},2373:(t,n,e)=>{var r=e(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6226:t=>{t.exports=function(){return[]}},201:t=>{t.exports=function(t){return t}},7801:(t,n,e)=>{var r=e(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,e,r,o){n.push(r?o.replace(i,"$1"):e||t)})),n}));t.exports=a},3110:(t,n,e)=>{var r=e(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4120:t=>{var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},156:(t,n,e)=>{var r=e(4132),o=e(9021),i=e(6092),a=e(981),u=e(5782),c=e(7747),l=Object.prototype.hasOwnProperty,s=i((function(t,n){if(u(n)||a(n))o(n,c(n),t);else for(var e in n)l.call(n,e)&&r(t,e,n[e])}));t.exports=s},1893:(t,n,e)=>{var r=e(6317),o=e(788),i=e(8286),a=e(8855),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,n){t=Object(t);var e=-1,r=n.length,l=r>2?n[2]:void 0;for(l&&i(n[0],n[1],l)&&(r=1);++e<r;)for(var s=n[e],f=a(s),p=-1,d=f.length;++p<d;){var h=f[p],y=t[h];(void 0===y||o(y,u[h])&&!c.call(t,h))&&(t[h]=s[h])}return t}));t.exports=l},6354:(t,n,e)=>{var r=e(1377),o=e(6457),i=e(6317),a=e(7605),u=i((function(t,n){return a(t)?r(t,o(n,1,a,!0)):[]}));t.exports=u},788:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},9992:(t,n,e)=>{var r=e(4499)(e(5541));t.exports=r},5541:(t,n,e)=>{var r=e(3705),o=e(3472),i=e(982),a=Math.max;t.exports=function(t,n,e){var u=null==t?0:t.length;if(!u)return-1;var c=null==e?0:i(e);return c<0&&(c=a(u+c,0)),r(t,o(n,3),c)}},2645:(t,n,e)=>{var r=e(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:(t,n,e)=>{var r=e(4432);t.exports=function(t,n,e){var o=null==t?void 0:r(t,n);return void 0===o?e:o}},9056:(t,n,e)=>{var r=e(8347),o=e(5659),i=Object.prototype.hasOwnProperty,a=o((function(t,n,e){i.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},5066:(t,n,e)=>{var r=e(6776),o=e(3096);t.exports=function(t,n){return null!=t&&o(t,n,r)}},5346:t=>{t.exports=function(t){return t}},6149:(t,n,e)=>{var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},5075:t=>{t.exports=function(){return!1}},163:t=>{var n=Array.isArray;t.exports=n},981:(t,n,e)=>{var r=e(9642),o=e(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},7605:(t,n,e)=>{var r=e(981),o=e(3474);t.exports=function(t){return o(t)&&r(t)}},4801:t=>{t.exports=function(){return!1}},4295:(t,n,e)=>{var r=e(7537),o=e(9110),i=e(2348),a=i&&i.isDate,u=a?o(a):r;t.exports=u},4155:(t,n,e)=>{var r=e(7190),o=e(9667),i=e(5075),a=e(163),u=e(981),c=e(4801),l=e(5782),s=e(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||s(t)||i(t)))return!t.length;var n=o(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(l(t))return!r(t).length;for(var e in t)if(f.call(t,e))return!1;return!0}},8254:(t,n,e)=>{var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:(t,n,e)=>{var r=e(563),o=e(7709);t.exports=function(t){if(!o(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5168:(t,n,e)=>{var r=e(2559);t.exports=function(t){return r(t)&&t!=+t}},9555:t=>{t.exports=function(t){return null==t}},2559:(t,n,e)=>{var r=e(563),o=e(3474);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},7709:t=>{t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3849:(t,n,e)=>{var r=e(563),o=e(9817),i=e(3474),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]"!=r(t))return!1;var n=o(t);if(null===n)return!0;var e=l.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==s}},5395:(t,n,e)=>{var r=e(2229),o=e(9110),i=e(2348),a=i&&i.isRegExp,u=a?o(a):r;t.exports=u},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},8999:t=>{t.exports=function(t){return void 0===t}},7747:(t,n,e)=>{var r=e(5125)(Object.keys,Object);t.exports=r},8855:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},1950:t=>{t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},6051:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}},1616:(t,n,e)=>{var r=e(3472),o=e(6051),i=e(4912);t.exports=function(t,n){return i(t,o(r(n)))}},4143:(t,n,e)=>{var r=e(8245),o=e(163);t.exports=function(t,n,e,i){return null==t?[]:(o(n)||(n=null==n?[]:[n]),o(e=i?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:(t,n,e)=>{var r=e(5436),o=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=o},4912:(t,n,e)=>{var r=e(8644),o=e(3472),i=e(6371),a=e(7271);t.exports=function(t,n){if(null==t)return{};var e=r(a(t),(function(t){return[t]}));return n=o(n),i(t,e,(function(t,e){return n(t,e[0])}))}},8532:(t,n,e)=>{var r=e(1600),o=e(3301),i=e(726),a=e(3110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},8825:(t,n,e)=>{var r=e(2507)();t.exports=r},2829:(t,n,e)=>{var r=e(7556);t.exports=function(t){return t&&t.length?r(t):[]}},9139:(t,n,e)=>{var r=e(5812);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},982:(t,n,e)=>{var r=e(9139);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},5812:(t,n,e)=>{var r=e(1367),o=e(7709),i=e(1995),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 n="function"==typeof t.valueOf?t.valueOf():t;t=o(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=u.test(t);return e||c.test(t)?l(t.slice(2),e?2:8):a.test(t)?NaN:+t}},7010:(t,n,e)=>{var r=e(6316);t.exports=function(t){return null==t?"":r(t)}},9602:(t,n,e)=>{var r=e(946);t.exports=function(t){return t&&t.length?r(t):[]}},660:(t,n,e)=>{var r=e(7010),o=0;t.exports=function(t){var n=++o;return r(t)+n}},4882:(t,n,e)=>{var r=e(1377),o=e(6317),i=e(7605),a=o((function(t,n){return i(t)?r(t,n):[]}));t.exports=a},2504:(t,n,e)=>{"use strict";var r=e(2265);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,n,e,o,i,a){if(a!==r){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 n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},3698:(t,n,e)=>{t.exports=e(2504)()},2265:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7491:t=>{var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(n&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return i(t,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:n=>{"use strict";n.exports=t}},e={};function r(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={id:t,loaded:!1,exports:{}};return n[t](i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return r.d(n,{a:n}),n},r.d=(t,n)=>{for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},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,n)=>Object.prototype.hasOwnProperty.call(t,n),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);var o={};return(()=>{"use strict";r.r(o),r.d(o,{VictoryBoxPlot:()=>qs});var t={};r.r(t),r.d(t,{scaleBand:()=>lt,scaleDiverging:()=>di,scaleDivergingLog:()=>hi,scaleDivergingPow:()=>vi,scaleDivergingSqrt:()=>mi,scaleDivergingSymlog:()=>yi,scaleIdentity:()=>Gn,scaleImplicit:()=>ut,scaleLinear:()=>Vn,scaleLog:()=>oe,scaleOrdinal:()=>ct,scalePoint:()=>ft,scalePow:()=>de,scaleQuantile:()=>Ee,scaleQuantize:()=>Me,scaleRadial:()=>me,scaleSequential:()=>ii,scaleSequentialLog:()=>ai,scaleSequentialPow:()=>ci,scaleSequentialQuantile:()=>si,scaleSequentialSqrt:()=>li,scaleSequentialSymlog:()=>ui,scaleSqrt:()=>he,scaleSymlog:()=>ce,scaleThreshold:()=>Ae,scaleTime:()=>ni,scaleUtc:()=>ei,tickFormat:()=>Yn});var n={};r.r(n),r.d(n,{easeBack:()=>Yc,easeBackIn:()=>$c,easeBackInOut:()=>Yc,easeBackOut:()=>Bc,easeBounce:()=>Fc,easeBounceIn:()=>Wc,easeBounceInOut:()=>zc,easeBounceOut:()=>Fc,easeCircle:()=>Rc,easeCircleIn:()=>Nc,easeCircleInOut:()=>Rc,easeCircleOut:()=>qc,easeCubic:()=>jc,easeCubicIn:()=>Oc,easeCubicInOut:()=>jc,easeCubicOut:()=>wc,easeElastic:()=>Gc,easeElasticIn:()=>Vc,easeElasticInOut:()=>Qc,easeElasticOut:()=>Gc,easeExp:()=>Lc,easeExpIn:()=>Dc,easeExpInOut:()=>Lc,easeExpOut:()=>Ic,easeLinear:()=>mc,easePoly:()=>Mc,easePolyIn:()=>kc,easePolyInOut:()=>Mc,easePolyOut:()=>Ec,easeQuad:()=>xc,easeQuadIn:()=>gc,easeQuadInOut:()=>xc,easeQuadOut:()=>bc,easeSin:()=>Tc,easeSinIn:()=>Pc,easeSinInOut:()=>Tc,easeSinOut:()=>Cc});var e=r(9555),i=r.n(e),a=r(2645),u=r.n(a),c=r(9787),l=r.n(c),s=r(3698),f=r.n(s),p=r(7747),d=r.n(p),h=r(156),y=r.n(h),v=r(9082),m=r.n(v),g=r(8532),b=r.n(g),x=r(9642),O=r.n(x),w=r(1893),j=r.n(w);function k(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e={};for(var r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function E(t){var n=function(t){return void 0!==t},e=t._x,r=t._x1,o=t._x0,i=t._voronoiX,a=t._y,u=t._y1,c=t._y0,l=t._voronoiY,s=n(r)?r:e,f=n(u)?u:a,p={x:n(i)?i:s,x0:n(o)?o:e,y:n(l)?l:f,y0:n(c)?c:a};return j()({},p,t)}function M(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",e=t[n],r="number"==typeof e?e:0,o="object"==typeof e?e:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function A(t){return"tooltip"===(t&&t.type&&t.type.role)}function S(t,n){return O()(t)?t(n):t}function P(t,n){return n.disableInlineStyles?{}:t&&d()(t).some((function(n){return O()(t[n])}))?d()(t).reduce((function(e,r){return e[r]=S(t[r],n),e}),{}):t}function C(t){return"number"==typeof t?t*(Math.PI/180):t}function T(t){var n=M(t),e=n.left,r=n.right,o=n.top,i=n.bottom,a=t.width,u=t.height;return Math.min(a-e-r,u-o-i)/2}function _(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,n){return"x"===n?[C(t.startAngle||0),C(t.endAngle||360)]:[t.innerRadius||0,T(t)]}(t,n):function(t,n){var e="x"!==n,r=M(t);return e?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,n)}function D(t){return O()(t)?t:null==t?function(t){return t}:b()(t)}function I(t,n,e){var r=k(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),o=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var n=function(t){return t.reduce((function(t,e){var r=e.props||{};return t||r.horizontal||!r.children?t=t||r.horizontal:n(l().Children.toArray(r.children))}),!1)};return n(l().Children.toArray(t.children))}(t),i=void 0===o?{}:{horizontal:o};return j()(i,t,r,n)}function L(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw o}}return i}}(t,n)||function(t,n){if(t){if("string"==typeof t)return N(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?N(t,n):void 0}}(t,n)||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 N(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function q(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function R(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var U={startsWith:["data-","aria-"],exactMatch:[]},W=function(t,n){return"function"==typeof t?t(n):t},F=function(t){var n=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?q(Object(e),!0).forEach((function(n){R(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):q(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}({},t);return Object.fromEntries(Object.entries(n).filter((function(t){return function(t){return!(!function(t){var n=!1;return U.startsWith.forEach((function(e){new RegExp("\\b(".concat(e,")(\\w|-)+"),"g").test(t)&&(n=!0)})),n}(t)&&!function(t){return U.exactMatch.includes(t)}(t))}(L(t,1)[0])})).map((function(n){var e=L(n,2),r=e[0],o=e[1];return[r,W(o,t)]})))},z=r(5395),H=r.n(z),$=r(9992),B=r.n($),Y=r(3849),K=r.n(Y),V=r(6149),G=r.n(V);function Q(t){return function(t){if(Array.isArray(t))return Z(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return Z(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Z(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function X(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function J(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];var o=t.concat(e);return X(o)?new Date(Math.max.apply(Math,Q(o))):Math.max.apply(Math,Q(o))}function tt(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];var o=t.concat(e);return X(o)?new Date(Math.min.apply(Math,Q(o))):Math.min.apply(Math,Q(o))}function nt(t,n,e){t=+t,n=+n,e=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+e;for(var r=-1,o=0|Math.max(0,Math.ceil((n-t)/e)),i=new Array(o);++r<o;)i[r]=t+r*e;return i}function et(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function rt(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}class ot extends Map{constructor(t,n=at){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(it(this,t))}has(t){return super.has(it(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}(this,t))}}function it({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function at(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const ut=Symbol("implicit");function ct(){var t=new ot,n=[],e=[],r=ut;function o(o){let i=t.get(o);if(void 0===i){if(r!==ut)return r;t.set(o,i=n.push(o)-1)}return e[i%e.length]}return o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new ot;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return o},o.range=function(t){return arguments.length?(e=Array.from(t),o):e.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return ct(n,e).unknown(r)},et.apply(o,arguments),o}function lt(){var t,n,e=ct().unknown(void 0),r=e.domain,o=e.range,i=0,a=1,u=!1,c=0,l=0,s=.5;function f(){var e=r().length,f=a<i,p=f?a:i,d=f?i:a;t=(d-p)/Math.max(1,e-c+2*l),u&&(t=Math.floor(t)),p+=(d-p-t*(e-c))*s,n=t*(1-c),u&&(p=Math.round(p),n=Math.round(n));var h=nt(e).map((function(n){return p+t*n}));return o(f?h.reverse():h)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),f()):r()},e.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},e.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,f()):u},e.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},e.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},e.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},e.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},e.copy=function(){return lt(r(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},et.apply(f(),arguments)}function st(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return st(n())},t}function ft(){return st(lt.apply(null,arguments).paddingInner(1))}var pt=Math.sqrt(50),dt=Math.sqrt(10),ht=Math.sqrt(2);function yt(t,n,e){var r,o,i,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(o=t,t=n,n=o),0===(a=vt(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,i=new Array(o=r-e+1);++u<o;)i[u]=(e+u)/a}return r&&i.reverse(),i}function vt(t,n,e){var r=(n-t)/Math.max(0,e),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=pt?10:i>=dt?5:i>=ht?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=pt?10:i>=dt?5:i>=ht?2:1)}function mt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=pt?o*=10:i>=dt?o*=5:i>=ht&&(o*=2),n<t?-o:o}function gt(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function bt(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function xt(t){let n,e,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<0?o=n+1:i=n}while(o<i)}return o}return 2!==t.length?(n=gt,e=(n,e)=>gt(t(n),e),r=(n,e)=>t(n)-e):(n=t===gt||t===bt?t:Ot,e=t,r=t),{left:o,center:function(t,n,e=0,i=t.length){const a=o(t,n,e,i-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==n(r,r))return i;do{const n=o+i>>>1;e(t[n],r)<=0?o=n+1:i=n}while(o<i)}return o}}}function Ot(){return 0}function wt(t){return null===t?NaN:+t}const jt=xt(gt),kt=jt.right,Et=(jt.left,xt(wt).center,kt);function Mt(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function At(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function St(){}var Pt=.7,Ct=1/Pt,Tt="\\s*([+-]?\\d+)\\s*",_t="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",It=/^#([0-9a-f]{3,8})$/,Lt=new RegExp(`^rgb\\(${Tt},${Tt},${Tt}\\)$`),Nt=new RegExp(`^rgb\\(${Dt},${Dt},${Dt}\\)$`),qt=new RegExp(`^rgba\\(${Tt},${Tt},${Tt},${_t}\\)$`),Rt=new RegExp(`^rgba\\(${Dt},${Dt},${Dt},${_t}\\)$`),Ut=new RegExp(`^hsl\\(${_t},${Dt},${Dt}\\)$`),Wt=new RegExp(`^hsla\\(${_t},${Dt},${Dt},${_t}\\)$`),Ft={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 zt(){return this.rgb().formatHex()}function Ht(){return this.rgb().formatRgb()}function $t(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=It.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Bt(n):3===e?new Gt(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?Yt(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?Yt(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Lt.exec(t))?new Gt(n[1],n[2],n[3],1):(n=Nt.exec(t))?new Gt(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=qt.exec(t))?Yt(n[1],n[2],n[3],n[4]):(n=Rt.exec(t))?Yt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Ut.exec(t))?nn(n[1],n[2]/100,n[3]/100,1):(n=Wt.exec(t))?nn(n[1],n[2]/100,n[3]/100,n[4]):Ft.hasOwnProperty(t)?Bt(Ft[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function Bt(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function Yt(t,n,e,r){return r<=0&&(t=n=e=NaN),new Gt(t,n,e,r)}function Kt(t){return t instanceof St||(t=$t(t)),t?new Gt((t=t.rgb()).r,t.g,t.b,t.opacity):new Gt}function Vt(t,n,e,r){return 1===arguments.length?Kt(t):new Gt(t,n,e,null==r?1:r)}function Gt(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Qt(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}`}function Zt(){const t=Xt(this.opacity);return`${1===t?"rgb(":"rgba("}${Jt(this.r)}, ${Jt(this.g)}, ${Jt(this.b)}${1===t?")":`, ${t})`}`}function Xt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Jt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function tn(t){return((t=Jt(t))<16?"0":"")+t.toString(16)}function nn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new rn(t,n,e,r)}function en(t){if(t instanceof rn)return new rn(t.h,t.s,t.l,t.opacity);if(t instanceof St||(t=$t(t)),!t)return new rn;if(t instanceof rn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,o=Math.min(n,e,r),i=Math.max(n,e,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=n===i?(e-r)/u+6*(e<r):e===i?(r-n)/u+2:(n-e)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new rn(a,u,c,t.opacity)}function rn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function on(t){return(t=(t||0)%360)<0?t+360:t}function an(t){return Math.max(0,Math.min(1,t||0))}function un(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function cn(t,n,e,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*n+(4-6*i+3*a)*e+(1+3*t+3*i-3*a)*r+a*o)/6}Mt(St,$t,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:zt,formatHex:zt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return en(this).formatHsl()},formatRgb:Ht,toString:Ht}),Mt(Gt,Vt,At(St,{brighter(t){return t=null==t?Ct:Math.pow(Ct,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Pt:Math.pow(Pt,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Gt(Jt(this.r),Jt(this.g),Jt(this.b),Xt(this.opacity))},displayable(){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:Qt,formatHex:Qt,formatHex8:function(){return`#${tn(this.r)}${tn(this.g)}${tn(this.b)}${tn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zt,toString:Zt})),Mt(rn,(function(t,n,e,r){return 1===arguments.length?en(t):new rn(t,n,e,null==r?1:r)}),At(St,{brighter(t){return t=null==t?Ct:Math.pow(Ct,t),new rn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Pt:Math.pow(Pt,t),new rn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,o=2*e-r;return new Gt(un(t>=240?t-240:t+120,o,r),un(t,o,r),un(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new rn(on(this.h),an(this.s),an(this.l),Xt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Xt(this.opacity);return`${1===t?"hsl(":"hsla("}${on(this.h)}, ${100*an(this.s)}%, ${100*an(this.l)}%${1===t?")":`, ${t})`}`}}));const ln=t=>()=>t;function sn(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):ln(isNaN(t)?n:t)}const fn=function t(n){var e=function(t){return 1==(t=+t)?sn:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):ln(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=Vt(t)).r,(n=Vt(n)).r),o=e(t.g,n.g),i=e(t.b,n.b),a=sn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=o(n),t.b=i(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function pn(t){return function(n){var e,r,o=n.length,i=new Array(o),a=new Array(o),u=new Array(o);for(e=0;e<o;++e)r=Vt(n[e]),i[e]=r.r||0,a[e]=r.g||0,u[e]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}function dn(t,n){var e,r=n?n.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(e=0;e<o;++e)i[e]=On(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<o;++e)a[e]=i[e](t);return a}}function hn(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function yn(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function vn(t,n){var e,r={},o={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=On(t[e],n[e]):o[e]=n[e];return function(t){for(e in r)o[e]=r[e](t);return o}}pn((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<n-1?t[r+2]:2*i-o;return cn((e-r/n)*n,a,o,i,u)}})),pn((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),o=t[(r+n-1)%n],i=t[r%n],a=t[(r+1)%n],u=t[(r+2)%n];return cn((e-r/n)*n,o,i,a,u)}}));var mn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gn=new RegExp(mn.source,"g");function bn(t,n){var e,r,o,i=mn.lastIndex=gn.lastIndex=0,a=-1,u=[],c=[];for(t+="",n+="";(e=mn.exec(t))&&(r=gn.exec(n));)(o=r.index)>i&&(o=n.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:yn(e,r)})),i=gn.lastIndex;return i<n.length&&(o=n.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)u[(e=c[r]).i]=e.x(t);return u.join("")})}function xn(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,o=n.slice();return function(i){for(e=0;e<r;++e)o[e]=t[e]*(1-i)+n[e]*i;return o}}function On(t,n){var e,r,o=typeof n;return null==n||"boolean"===o?ln(n):("number"===o?yn:"string"===o?(e=$t(n))?(n=e,fn):bn:n instanceof $t?fn:n instanceof Date?hn:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?dn:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?vn:yn:xn))(t,n)}function wn(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function jn(t){return+t}var kn=[0,1];function En(t){return t}function Mn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function An(t,n,e){var r=t[0],o=t[1],i=n[0],a=n[1];return o<r?(r=Mn(o,r),i=e(a,i)):(r=Mn(r,o),i=e(i,a)),function(t){return i(r(t))}}function Sn(t,n,e){var r=Math.min(t.length,n.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)o[a]=Mn(t[a],t[a+1]),i[a]=e(n[a],n[a+1]);return function(n){var e=Et(t,n,1,r)-1;return i[e](o[e](n))}}function Pn(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Cn(){var t,n,e,r,o,i,a=kn,u=kn,c=On,l=En;function s(){var t,n,e,c=Math.min(a.length,u.length);return l!==En&&(t=a[0],n=a[c-1],t>n&&(e=t,t=n,n=e),l=function(e){return Math.max(t,Math.min(n,e))}),r=c>2?Sn:An,o=i=null,f}function f(n){return null==n||isNaN(n=+n)?e:(o||(o=r(a.map(t),u,c)))(t(l(n)))}return f.invert=function(e){return l(n((i||(i=r(u,a.map(t),yn)))(e)))},f.domain=function(t){return arguments.length?(a=Array.from(t,jn),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=wn,s()},f.clamp=function(t){return arguments.length?(l=!!t||En,s()):l!==En},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(e=t,f):e},function(e,r){return t=e,n=r,s()}}function Tn(){return Cn()(En,En)}var _n,Dn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function In(t){if(!(n=Dn.exec(t)))throw new Error("invalid format: "+t);var n;return new Ln({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Ln(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 Nn(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function qn(t){return(t=Nn(Math.abs(t)))?t[1]:NaN}function Rn(t,n){var e=Nn(t,n);if(!e)return t+"";var r=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}In.prototype=Ln.prototype,Ln.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 Un={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Rn(100*t,n),r:Rn,s:function(t,n){var e=Nn(t,n);if(!e)return t+"";var r=e[0],o=e[1],i=o-(_n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Nn(t,Math.max(0,n+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Wn(t){return t}var Fn,zn,Hn,$n=Array.prototype.map,Bn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yn(t,n,e,r){var o,i=mt(t,n,e);switch((r=In(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(o=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(qn(n)/3)))-qn(Math.abs(t)))}(i,a))||(r.precision=o),Hn(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,qn(n)-qn(t))+1}(i,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-qn(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return zn(r)}function Kn(t){var n=t.domain;return t.ticks=function(t){var e=n();return yt(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Yn(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,o,i=n(),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=vt(c,l,e))===r)return i[a]=c,i[u]=l,n(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}r=o}return t},t}function Vn(){var t=Tn();return t.copy=function(){return Pn(t,Vn())},et.apply(t,arguments),Kn(t)}function Gn(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,jn),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return Gn(t).unknown(n)},t=arguments.length?Array.from(t,jn):[0,1],Kn(e)}function Qn(t,n){var e,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(e=r,r=o,o=e,e=i,i=a,a=e),t[r]=n.floor(i),t[o]=n.ceil(a),t}function Zn(t){return Math.log(t)}function Xn(t){return Math.exp(t)}function Jn(t){return-Math.log(-t)}function te(t){return-Math.exp(-t)}function ne(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ee(t){return(n,e)=>-t(-n,e)}function re(t){const n=t(Zn,Xn),e=n.domain;let r,o,i=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(i),o=function(t){return 10===t?ne:t===Math.E?Math.exp:n=>Math.pow(t,n)}(i),e()[0]<0?(r=ee(r),o=ee(o),t(Jn,te)):t(Zn,Xn),n}return n.base=function(t){return arguments.length?(i=+t,a()):i},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],u=n[n.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=r(a),p=r(u);const d=null==t?10:+t;let h=[];if(!(i%1)&&p-f<d){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;h.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;h.push(s)}2*h.length<d&&(h=yt(a,u,d))}else h=yt(f,p,Math.min(p-f,d)).map(o);return c?h.reverse():h},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===i?"s":","),"function"!=typeof e&&(i%1||null!=(e=In(e)).precision||(e.trim=!0),e=zn(e)),t===1/0)return e;const a=Math.max(1,i*t/n.ticks().length);return t=>{let n=t/o(Math.round(r(t)));return n*i<i-.5&&(n*=i),n<=a?e(t):""}},n.nice=()=>e(Qn(e(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),n}function oe(){const t=re(Cn()).domain([1,10]);return t.copy=()=>Pn(t,oe()).base(t.base()),et.apply(t,arguments),t}function ie(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function ae(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function ue(t){var n=1,e=t(ie(n),ae(n));return e.constant=function(e){return arguments.length?t(ie(n=+e),ae(n)):n},Kn(e)}function ce(){var t=ue(Cn());return t.copy=function(){return Pn(t,ce()).constant(t.constant())},et.apply(t,arguments)}function le(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function se(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function fe(t){return t<0?-t*t:t*t}function pe(t){var n=t(En,En),e=1;function r(){return 1===e?t(En,En):.5===e?t(se,fe):t(le(e),le(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Kn(n)}function de(){var t=pe(Cn());return t.copy=function(){return Pn(t,de()).exponent(t.exponent())},et.apply(t,arguments),t}function he(){return de.apply(null,arguments).exponent(.5)}function ye(t){return Math.sign(t)*t*t}function ve(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function me(){var t,n=Tn(),e=[0,1],r=!1;function o(e){var o=ve(n(e));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return n.invert(ye(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((e=Array.from(t,jn)).map(ye)),o):e.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return me(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},et.apply(o,arguments),Kn(o)}function ge(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(e<o||void 0===e&&o>=o)&&(e=o)}return e}function be(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(e>o||void 0===e&&o>=o)&&(e=o)}return e}function xe(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Oe(t,n,e=0,r=t.length-1,o){for(o=void 0===o?xe:function(t=gt){if(t===gt)return xe;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}(o);r>e;){if(r-e>600){const i=r-e+1,a=n-e+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);Oe(t,n,Math.max(e,Math.floor(n-a*c/i+l)),Math.min(r,Math.floor(n+(i-a)*c/i+l)),o)}const i=t[n];let a=e,u=r;for(we(t,e,n),o(t[r],i)>0&&we(t,e,r);a<u;){for(we(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[e],i)?we(t,e,u):(++u,we(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function we(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function je(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return be(t);if(n>=1)return ge(t);var r,o=(r-1)*n,i=Math.floor(o),a=ge(Oe(t,i).subarray(0,i+1));return a+(be(t.subarray(i+1))-a)*(o-i)}}function ke(t,n,e=wt){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,o=(r-1)*n,i=Math.floor(o),a=+e(t[i],i,t);return a+(+e(t[i+1],i+1,t)-a)*(o-i)}}function Ee(){var t,n=[],e=[],r=[];function o(){var t=0,o=Math.max(1,e.length);for(r=new Array(o-1);++t<o;)r[t-1]=ke(n,t/o);return i}function i(n){return null==n||isNaN(n=+n)?t:e[Et(r,n)]}return i.invertExtent=function(t){var o=e.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:n[0],o<r.length?r[o]:n[n.length-1]]},i.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(gt),o()},i.range=function(t){return arguments.length?(e=Array.from(t),o()):e.slice()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return Ee().domain(n).range(e).unknown(t)},et.apply(i,arguments)}function Me(){var t,n=0,e=1,r=1,o=[.5],i=[0,1];function a(n){return null!=n&&n<=n?i[Et(o,n,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,u()):[n,e]},a.range=function(t){return arguments.length?(r=(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?[n,o[0]]:a>=r?[o[r-1],e]:[o[a-1],o[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Me().domain([n,e]).range(i).unknown(t)},et.apply(Kn(a),arguments)}function Ae(){var t,n=[.5],e=[0,1],r=1;function o(o){return null!=o&&o<=o?e[Et(n,o,0,r)]:t}return o.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),o):n.slice()},o.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),o):e.slice()},o.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},o.unknown=function(n){return arguments.length?(t=n,o):t},o.copy=function(){return Ae().domain(n).range(e).unknown(t)},et.apply(o,arguments)}Fn=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?Wn:(n=$n.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=n[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return i.reverse().join(e)}),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?Wn:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}($n.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 n=(t=In(t)).fill,e=t.align,f=t.sign,p=t.symbol,d=t.zero,h=t.width,y=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(y=!0,g="g"):Un[g]||(void 0===v&&(v=12),m=!0,g="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?c:"",O=Un[g],w=/[defgprs%]/.test(g);function j(t){var o,i,c,p=b,j=x;if("c"===g)j=O(t)+j,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:O(Math.abs(t),v),m&&(t=function(t){t:for(var n,e=t.length,r=1,o=-1;r<e;++r)switch(t[r]){case".":o=n=r;break;case"0":0===o&&(o=r),n=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),p=(k?"("===f?f:l:"-"===f||"("===f?"":f)+p,j=("s"===g?Bn[8+_n/3]:"")+j+(k&&"("===f?")":""),w)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&&!d&&(t=r(t,1/0));var E=p.length+t.length+j.length,M=E<h?new Array(h-E+1).join(n):"";switch(y&&d&&(t=r(M+t,M.length?h-j.length:1/0),M=""),e){case"<":t=p+t+j+M;break;case"=":t=p+M+t+j;break;case"^":t=M.slice(0,E=M.length>>1)+p+t+j+M.slice(E);break;default:t=M+p+t+j}return u(t)}return v=void 0===v?6:/[gprs]/.test(g)?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,n){var e=f(((t=In(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(qn(n)/3))),o=Math.pow(10,-r),i=Bn[8+r/3];return function(t){return e(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),zn=Fn.format,Hn=Fn.formatPrefix;const Se=1e3,Pe=6e4,Ce=36e5,Te=864e5,_e=6048e5,De=31536e6;var Ie=new Date,Le=new Date;function Ne(t,n,e,r){function o(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return o.floor=function(n){return t(n=new Date(+n)),n},o.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},o.round=function(t){var n=o(t),e=o.ceil(t);return t-n<e-t?n:e},o.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},o.range=function(e,r,i){var a,u=[];if(e=o.ceil(e),i=null==i?1:Math.floor(i),!(e<r&&i>0))return u;do{u.push(a=new Date(+e)),n(e,i),t(e)}while(a<e&&e<r);return u},o.filter=function(e){return Ne((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(o.count=function(n,r){return Ie.setTime(+n),Le.setTime(+r),t(Ie),t(Le),Math.floor(e(Ie,Le))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(n){return r(n)%t==0}:function(n){return o.count(0,n)%t==0}):o:null}),o}var qe=Ne((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));qe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ne((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):qe:null};const Re=qe;qe.range;var Ue=Ne((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*Se)}),(function(t,n){return(n-t)/Se}),(function(t){return t.getUTCSeconds()}));const We=Ue;Ue.range;var Fe=Ne((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Se)}),(function(t,n){t.setTime(+t+n*Pe)}),(function(t,n){return(n-t)/Pe}),(function(t){return t.getMinutes()}));const ze=Fe;Fe.range;var He=Ne((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Se-t.getMinutes()*Pe)}),(function(t,n){t.setTime(+t+n*Ce)}),(function(t,n){return(n-t)/Ce}),(function(t){return t.getHours()}));const $e=He;He.range;var Be=Ne((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Pe)/Te),(t=>t.getDate()-1));const Ye=Be;function Ke(t){return Ne((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Pe)/_e}))}Be.range;var Ve=Ke(0),Ge=Ke(1),Qe=Ke(2),Ze=Ke(3),Xe=Ke(4),Je=Ke(5),tr=Ke(6),nr=(Ve.range,Ge.range,Qe.range,Ze.range,Xe.range,Je.range,tr.range,Ne((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const er=nr;nr.range;var rr=Ne((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));rr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ne((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const or=rr;rr.range;var ir=Ne((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Pe)}),(function(t,n){return(n-t)/Pe}),(function(t){return t.getUTCMinutes()}));const ar=ir;ir.range;var ur=Ne((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Ce)}),(function(t,n){return(n-t)/Ce}),(function(t){return t.getUTCHours()}));const cr=ur;ur.range;var lr=Ne((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Te}),(function(t){return t.getUTCDate()-1}));const sr=lr;function fr(t){return Ne((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/_e}))}lr.range;var pr=fr(0),dr=fr(1),hr=fr(2),yr=fr(3),vr=fr(4),mr=fr(5),gr=fr(6),br=(pr.range,dr.range,hr.range,yr.range,vr.range,mr.range,gr.range,Ne((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const xr=br;br.range;var Or=Ne((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Or.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ne((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const wr=Or;function jr(t,n,e,r,o,i){const a=[[We,1,Se],[We,5,5e3],[We,15,15e3],[We,30,3e4],[i,1,Pe],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Ce],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Te],[r,2,1728e5],[e,1,_e],[n,1,2592e6],[n,3,7776e6],[t,1,De]];function u(n,e,r){const o=Math.abs(e-n)/r,i=xt((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(mt(n/De,e/De,r));if(0===i)return Re.every(Math.max(mt(n,e,r),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const o=e&&"function"==typeof e.range?e:u(t,n,e),i=o?o.range(t,+n+1):[];return r?i.reverse():i},u]}Or.range;const[kr,Er]=jr(wr,xr,pr,sr,cr,ar),[Mr,Ar]=jr(or,er,Ve,Ye,$e,ze);function Sr(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Pr(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Cr(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Tr,_r,Dr,Ir={"-":"",_:" ",0:"0"},Lr=/^\s*\d+/,Nr=/^%/,qr=/[\\^$*+?|[\]().{}]/g;function Rr(t,n,e){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<e?new Array(e-i+1).join(n)+o:o)}function Ur(t){return t.replace(qr,"\\$&")}function Wr(t){return new RegExp("^(?:"+t.map(Ur).join("|")+")","i")}function Fr(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function zr(t,n,e){var r=Lr.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Hr(t,n,e){var r=Lr.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function $r(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Br(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Yr(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Kr(t,n,e){var r=Lr.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Vr(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Gr(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Qr(t,n,e){var r=Lr.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Zr(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Xr(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Jr(t,n,e){var r=Lr.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function to(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function no(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function eo(t,n,e){var r=Lr.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function ro(t,n,e){var r=Lr.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function oo(t,n,e){var r=Lr.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function io(t,n,e){var r=Nr.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function ao(t,n,e){var r=Lr.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function uo(t,n,e){var r=Lr.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function co(t,n){return Rr(t.getDate(),n,2)}function lo(t,n){return Rr(t.getHours(),n,2)}function so(t,n){return Rr(t.getHours()%12||12,n,2)}function fo(t,n){return Rr(1+Ye.count(or(t),t),n,3)}function po(t,n){return Rr(t.getMilliseconds(),n,3)}function ho(t,n){return po(t,n)+"000"}function yo(t,n){return Rr(t.getMonth()+1,n,2)}function vo(t,n){return Rr(t.getMinutes(),n,2)}function mo(t,n){return Rr(t.getSeconds(),n,2)}function go(t){var n=t.getDay();return 0===n?7:n}function bo(t,n){return Rr(Ve.count(or(t)-1,t),n,2)}function xo(t){var n=t.getDay();return n>=4||0===n?Xe(t):Xe.ceil(t)}function Oo(t,n){return t=xo(t),Rr(Xe.count(or(t),t)+(4===or(t).getDay()),n,2)}function wo(t){return t.getDay()}function jo(t,n){return Rr(Ge.count(or(t)-1,t),n,2)}function ko(t,n){return Rr(t.getFullYear()%100,n,2)}function Eo(t,n){return Rr((t=xo(t)).getFullYear()%100,n,2)}function Mo(t,n){return Rr(t.getFullYear()%1e4,n,4)}function Ao(t,n){var e=t.getDay();return Rr((t=e>=4||0===e?Xe(t):Xe.ceil(t)).getFullYear()%1e4,n,4)}function So(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Rr(n/60|0,"0",2)+Rr(n%60,"0",2)}function Po(t,n){return Rr(t.getUTCDate(),n,2)}function Co(t,n){return Rr(t.getUTCHours(),n,2)}function To(t,n){return Rr(t.getUTCHours()%12||12,n,2)}function _o(t,n){return Rr(1+sr.count(wr(t),t),n,3)}function Do(t,n){return Rr(t.getUTCMilliseconds(),n,3)}function Io(t,n){return Do(t,n)+"000"}function Lo(t,n){return Rr(t.getUTCMonth()+1,n,2)}function No(t,n){return Rr(t.getUTCMinutes(),n,2)}function qo(t,n){return Rr(t.getUTCSeconds(),n,2)}function Ro(t){var n=t.getUTCDay();return 0===n?7:n}function Uo(t,n){return Rr(pr.count(wr(t)-1,t),n,2)}function Wo(t){var n=t.getUTCDay();return n>=4||0===n?vr(t):vr.ceil(t)}function Fo(t,n){return t=Wo(t),Rr(vr.count(wr(t),t)+(4===wr(t).getUTCDay()),n,2)}function zo(t){return t.getUTCDay()}function Ho(t,n){return Rr(dr.count(wr(t)-1,t),n,2)}function $o(t,n){return Rr(t.getUTCFullYear()%100,n,2)}function Bo(t,n){return Rr((t=Wo(t)).getUTCFullYear()%100,n,2)}function Yo(t,n){return Rr(t.getUTCFullYear()%1e4,n,4)}function Ko(t,n){var e=t.getUTCDay();return Rr((t=e>=4||0===e?vr(t):vr.ceil(t)).getUTCFullYear()%1e4,n,4)}function Vo(){return"+0000"}function Go(){return"%"}function Qo(t){return+t}function Zo(t){return Math.floor(+t/1e3)}function Xo(t){return new Date(t)}function Jo(t){return t instanceof Date?+t:+new Date(+t)}function ti(t,n,e,r,o,i,a,u,c,l){var s=Tn(),f=s.invert,p=s.domain,d=l(".%L"),h=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function O(t){return(c(t)<t?d:u(t)<t?h:a(t)<t?y:i(t)<t?v:r(t)<t?o(t)<t?m:g:e(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Jo)):p().map(Xo)},s.ticks=function(n){var e=p();return t(e[0],e[e.length-1],null==n?10:n)},s.tickFormat=function(t,n){return null==n?O:l(n)},s.nice=function(t){var e=p();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?p(Qn(e,t)):s},s.copy=function(){return Pn(s,ti(t,n,e,r,o,i,a,u,c,l))},s}function ni(){return et.apply(ti(Mr,Ar,or,er,Ve,Ye,$e,ze,We,_r).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ei(){return et.apply(ti(kr,Er,wr,xr,pr,sr,cr,ar,We,Dr).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ri(){var t,n,e,r,o,i=0,a=1,u=En,c=!1;function l(n){return null==n||isNaN(n=+n)?o:u(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}function s(t){return function(n){var e,r;return arguments.length?([e,r]=n,u=t(e,r),l):[u(0),u(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),n=r(a=+a),e=t===n?0:1/(n-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(On),l.rangeRound=s(wn),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return r=o,t=o(i),n=o(a),e=t===n?0:1/(n-t),l}}function oi(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function ii(){var t=Kn(ri()(En));return t.copy=function(){return oi(t,ii())},rt.apply(t,arguments)}function ai(){var t=re(ri()).domain([1,10]);return t.copy=function(){return oi(t,ai()).base(t.base())},rt.apply(t,arguments)}function ui(){var t=ue(ri());return t.copy=function(){return oi(t,ui()).constant(t.constant())},rt.apply(t,arguments)}function ci(){var t=pe(ri());return t.copy=function(){return oi(t,ci()).exponent(t.exponent())},rt.apply(t,arguments)}function li(){return ci.apply(null,arguments).exponent(.5)}function si(){var t=[],n=En;function e(e){if(null!=e&&!isNaN(e=+e))return n((Et(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(gt),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>je(t,r/n)))},e.copy=function(){return si(n).domain(t)},rt.apply(e,arguments)}function fi(t,n){void 0===n&&(n=t,t=On);for(var e=0,r=n.length-1,o=n[0],i=new Array(r<0?0:r);e<r;)i[e]=t(o,o=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[n](t-n)}}function pi(){var t,n,e,r,o,i,a,u=0,c=.5,l=1,s=1,f=En,p=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-n)*(s*t<s*n?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(n){var e,r,o;return arguments.length?([e,r,o]=n,f=fi(t,[e,r,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,c,l]=a,t=i(u=+u),n=i(c=+c),e=i(l=+l),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),s=n<t?-1:1,d):[u,c,l]},d.clamp=function(t){return arguments.length?(p=!!t,d):p},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=h(On),d.rangeRound=h(wn),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(u),n=a(c),e=a(l),r=t===n?0:.5/(n-t),o=n===e?0:.5/(e-n),s=n<t?-1:1,d}}function di(){var t=Kn(pi()(En));return t.copy=function(){return oi(t,di())},rt.apply(t,arguments)}function hi(){var t=re(pi()).domain([.1,1,10]);return t.copy=function(){return oi(t,hi()).base(t.base())},rt.apply(t,arguments)}function yi(){var t=ue(pi());return t.copy=function(){return oi(t,yi()).constant(t.constant())},rt.apply(t,arguments)}function vi(){var t=pe(pi());return t.copy=function(){return oi(t,vi()).exponent(t.exponent())},rt.apply(t,arguments)}function mi(){return vi.apply(null,arguments).exponent(.5)}Tr=function(t){var n=t.dateTime,e=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Wr(o),s=Fr(o),f=Wr(i),p=Fr(i),d=Wr(a),h=Fr(a),y=Wr(u),v=Fr(u),m=Wr(c),g=Fr(c),b={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:co,e:co,f:ho,g:Eo,G:Ao,H:lo,I:so,j:fo,L:po,m:yo,M:vo,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Qo,s:Zo,S:mo,u:go,U:bo,V:Oo,w:wo,W:jo,x:null,X:null,y:ko,Y:Mo,Z:So,"%":Go},x={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:Po,e:Po,f:Io,g:Bo,G:Ko,H:Co,I:To,j:_o,L:Do,m:Lo,M:No,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Qo,s:Zo,S:qo,u:Ro,U:Uo,V:Fo,w:zo,W:Ho,x:null,X:null,y:$o,Y:Yo,Z:Vo,"%":Go},O={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=h.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=m.exec(n.slice(e));return r?(t.m=g.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=v.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return k(t,n,e,r)},d:Xr,e:Xr,f:oo,g:Vr,G:Kr,H:to,I:to,j:Jr,L:ro,m:Zr,M:no,p:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.p=s.get(r[0].toLowerCase()),e+r[0].length):-1},q:Qr,Q:ao,s:uo,S:eo,u:Hr,U:$r,V:Br,w:zr,W:Yr,x:function(t,n,r){return k(t,e,n,r)},X:function(t,n,e){return k(t,r,n,e)},y:Vr,Y:Kr,Z:Gr,"%":io};function w(t,n){return function(e){var r,o,i,a=[],u=-1,c=0,l=t.length;for(e instanceof Date||(e=new Date(+e));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=Ir[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=n[r])&&(r=i(e,o)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function j(t,n){return function(e){var r,o,i=Cr(1900,void 0,1);if(k(i,t,e+="",0)!=e.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(n&&!("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=(r=Pr(Cr(i.y,0,1))).getUTCDay(),r=o>4||0===o?dr.ceil(r):dr(r),r=sr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Sr(Cr(i.y,0,1))).getDay(),r=o>4||0===o?Ge.ceil(r):Ge(r),r=Ye.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.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?Pr(Cr(i.y,0,1)).getUTCDay():Sr(Cr(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,Pr(i)):Sr(i)}}function k(t,n,e,r){for(var o,i,a=0,u=n.length,c=e.length;a<u;){if(r>=c)return-1;if(37===(o=n.charCodeAt(a++))){if(o=n.charAt(a++),!(i=O[o in Ir?n.charAt(a++):o])||(r=i(t,e,r))<0)return-1}else if(o!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),x.x=w(e,x),x.X=w(r,x),x.c=w(n,x),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=j(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=j(t+="",!0);return n.toString=function(){return t},n}}}({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"]}),_r=Tr.format,Tr.parse,Dr=Tr.utcFormat,Tr.utcParse;var gi=["linear","time","log","sqrt"];function bi(t){return"function"==typeof t?O()(t.copy)&&O()(t.domain)&&O()(t.range):"string"==typeof t&&G()(gi,t)}function xi(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Oi(t,n){if(!t.data)return"linear";var e=D(t[n]);return X(t.data.map((function(t){var r=K()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function wi(n){if(bi(n)){var e=function(t){var n;return"scale".concat((n=t)&&n[0].toUpperCase()+n.slice(1))}(n);return t[e]()}return Vn()}function ji(t,n){var e=function(t,n){if(xi(t,n)){var e=t.scale[n]||t.scale;return bi(e)?O()(e)?e:wi(e):void 0}}(t,n);if(e)return"string"==typeof e?wi(e):e;var r=function(t,n){var e;if(t.domain&&t.domain[n]?e=t.domain[n]:t.domain&&Array.isArray(t.domain)&&(e=t.domain),e)return X(e)?"time":"linear"}(t,n)||Oi(t,n);return wi(r)}function ki(t,n){return function(t,n){if(xi(t,n)){var e=t.scale[n]||t.scale;return"string"==typeof e?e:function(t){if("string"==typeof t)return t;var n=Ei.filter((function(n){return void 0!==t[n.method]}))[0];return n?n.name:void 0}(e)}}(t,n)||Oi(t,n)}var Ei=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}],Mi=function(t){var n=function(n){return function(e,r,o){var i=e[r];if(null==i)return n?new Error("Required `".concat(r,"` was not specified in `").concat(o,"`.")):null;for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return t.apply(void 0,[e,r,o].concat(u))}};return Object.assign(n(!1),{isRequired:n(!0)})},Ai=function(){return null},Si=function(){},Pi=function(t){return void 0===t?Si:null===t?Ai:t.constructor},Ci=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function Ti(t){return Mi((function(n,e,r){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return t.reduce((function(t,o){return t||o.apply(void 0,[n,e,r].concat(i))}),null)}))}var _i=Mi((function(t,n,e){var r=t[n];return"number"!=typeof r||r<0?new Error("`".concat(n,"` in `").concat(e,"` must be a non-negative number.")):null})),Di=Mi((function(t,n,e){var r=t[n];return"number"!=typeof r||r%1!=0?new Error("`".concat(n,"` in `").concat(e,"` must be an integer.")):null})),Ii=(Mi((function(t,n,e){var r=t[n];return"number"!=typeof r||r<=0?new Error("`".concat(n,"` in `").concat(e,"` must be a number greater than zero.")):null})),Mi((function(t,n,e){var r=t[n];return Array.isArray(r)&&2===r.length&&r[1]!==r[0]?null:new Error("`".concat(n,"` in `").concat(e,"` must be an array of two unique numeric values."))}))),Li=Mi((function(t,n,e){return bi(t[n])?null:new Error("`".concat(n,"` in `").concat(e,"` must be a d3 scale."))})),Ni=(Mi((function(t,n,e){var r=t[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(e,"` must be an array."));if(r.length<2)return null;var o=Pi(r[0]),i=B()(r,(function(t){return o!==Pi(t)}));if(i){var a=Ci(r[0]),u=Ci(i);return new Error("Expected `".concat(n,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(u,"`."))}return null})),Mi((function(t,n){return t[n]&&Array.isArray(t[n])&&t[n].length!==t.data.length?new Error("Length of data and ".concat(n," arrays must match.")):null})),Mi((function(t,n,e){return t[n]&&!H()(t[n])?new Error("`".concat(n,"` in `").concat(e,"` must be a regular expression.")):null})),{dataProps:{categories:f().oneOfType([f().arrayOf(f().string),f().shape({x:f().arrayOf(f().string),y:f().arrayOf(f().string)})]),data:f().oneOfType([f().array,f().object]),dataComponent:f().element,disableInlineStyles:f().bool,labelComponent:f().element,labels:f().oneOfType([f().func,f().array]),samples:_i,sortKey:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string.isRequired)]),sortOrder:f().oneOf(["ascending","descending"]),style:f().shape({parent:f().object,data:f().object,labels:f().object}),x:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string.isRequired)]),y:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string.isRequired)]),y0:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string.isRequired)])},baseProps:{animate:f().oneOfType([f().bool,f().object]),containerComponent:f().element,domain:f().oneOfType([Ii,f().shape({x:Ii,y:Ii})]),maxDomain:f().oneOfType([f().number,f().instanceOf(Date),f().shape({x:f().oneOfType([f().number,f().instanceOf(Date)]),y:f().oneOfType([f().number,f().instanceOf(Date)])})]),minDomain:f().oneOfType([f().number,f().instanceOf(Date),f().shape({x:f().oneOfType([f().number,f().instanceOf(Date)]),y:f().oneOfType([f().number,f().instanceOf(Date)])})]),domainPadding:f().oneOfType([f().shape({x:f().oneOfType([f().number,f().arrayOf(f().number)]),y:f().oneOfType([f().number,f().arrayOf(f().number)])}),f().number,f().arrayOf(f().number)]),eventKey:f().oneOfType([f().func,Ti([Di,_i]),f().string]),events:f().arrayOf(f().shape({target:f().oneOf(["data","labels","parent"]),eventKey:f().oneOfType([f().array,Ti([Di,_i]),f().string]),eventHandlers:f().object})),externalEventMutations:f().arrayOf(f().shape({callback:f().func,childName:f().oneOfType([f().string,f().array]),eventKey:f().oneOfType([f().array,Ti([Di,_i]),f().string]),mutation:f().func,target:f().oneOfType([f().string,f().array])})),groupComponent:f().element,height:_i,name:f().string,origin:f().shape({x:f().number,y:f().number}),padding:f().oneOfType([f().number,f().shape({top:f().number,bottom:f().number,left:f().number,right:f().number})]),polar:f().bool,range:f().oneOfType([Ii,f().shape({x:Ii.isRequired,y:Ii.isRequired})]),scale:f().oneOfType([Li,f().shape({x:Li.isRequired,y:Li.isRequired})]),sharedEvents:f().shape({events:f().array,getEventState:f().func}),singleQuadrantDomainPadding:f().oneOfType([f().bool,f().shape({x:f().oneOfType([f().bool]),y:f().oneOfType([f().bool])})]),standalone:f().bool,theme:f().object,width:_i},primitiveProps:{active:f().bool,ariaLabel:f().oneOfType([f().string,f().func]),className:f().string,clipPath:f().string,data:f().oneOfType([f().array,f().object]),desc:f().oneOfType([f().string,f().func]),disableInlineStyles:f().bool,events:f().object,id:f().oneOfType([f().number,f().string,f().func]),index:f().oneOfType([f().number,f().string]),origin:f().shape({x:f().number,y:f().number}),polar:f().bool,role:f().string,scale:f().oneOfType([Li,f().shape({x:Li,y:Li})]),shapeRendering:f().string,style:f().object,tabIndex:f().oneOfType([f().number,f().func]),transform:f().string}}),qi=r(7709),Ri=r.n(qi),Ui=r(660),Wi=r.n(Ui);function Fi(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zi(t,n){return zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},zi(t,n)}function Hi(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function $i(t){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$i(t)}var Bi=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&zi(t,n)}(a,t);var n,e,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=$i(r);if(o){var e=$i(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return Hi(this,t)});function a(t){var n;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,t)).map=void 0,n.index=void 0,n.portalRegister=function(){return++n.index},n.portalUpdate=function(t,e){n.map[t]=e,n.forceUpdate()},n.portalDeregister=function(t){delete n.map[t],n.forceUpdate()},n.map={},n.index=1,n}return n=a,(e=[{key:"getChildren",value:function(){var t=this;return d()(this.map).map((function(n){var e=t.map[n];return e?l().cloneElement(e,{key:n}):e}))}},{key:"render",value:function(){return l().createElement("svg",this.props,this.getChildren())}}])&&Fi(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),a}(l().Component);Bi.displayName="Portal",Bi.propTypes={className:f().string,height:_i,style:f().object,viewBox:f().string,width:_i};var Yi=l().createContext({});Yi.displayName="PortalContext";var Ki,Vi,Gi=0,Qi=0,Zi=0,Xi=0,Ji=0,ta=0,na="object"==typeof performance&&performance.now?performance:Date,ea="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ra(){return Ji||(ea(oa),Ji=na.now()+ta)}function oa(){Ji=0}function ia(){this._call=this._time=this._next=null}function aa(t,n,e){var r=new ia;return r.restart(t,n,e),r}function ua(){Ji=(Xi=na.now())+ta,Gi=Qi=0;try{!function(){ra(),++Gi;for(var t,n=Ki;n;)(t=Ji-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Gi}()}finally{Gi=0,function(){for(var t,n,e=Ki,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ki=n);Vi=t,la(r)}(),Ji=0}}function ca(){var t=na.now(),n=t-Xi;n>1e3&&(ta-=n,Xi=t)}function la(t){Gi||(Qi&&(Qi=clearTimeout(Qi)),t-Ji>24?(t<1/0&&(Qi=setTimeout(ua,t-na.now()-ta)),Zi&&(Zi=clearInterval(Zi))):(Zi||(Xi=na.now(),Zi=setInterval(ca,1e3)),Gi=1,ea(ua)))}function sa(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}ia.prototype=aa.prototype={constructor:ia,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?ra():+e)+(null==n?0:+n),this._next||Vi===this||(Vi?Vi._next=this:Ki=this,Vi=this),this._call=t,this._time=e,la()},stop:function(){this._call&&(this._call=null,this._time=1/0,la())}};var fa=function(){function t(){var n=this;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){n.subscribers.forEach((function(t){t.callback(ra()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var n,e;return n=t,(e=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=aa(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,n){n=this.shouldAnimate?n:0;var e=this.subscribers.push({startTime:ra(),callback:t,duration:n});return this.activeSubscriptions++,this.start(),e}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&sa(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}(),pa=l().createContext({transitionTimer:new fa,animationTimer:new fa});pa.displayName="TimerContext";const da=pa;function ha(){return ha=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ha.apply(this,arguments)}function ya(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function va(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?ya(Object(e),!0).forEach((function(n){ma(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ya(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function ma(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function ga(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ba(t,n){return ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ba(t,n)}function xa(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function Oa(t){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oa(t)}var wa=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&ba(t,n)}(a,t);var n,e,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Oa(r);if(o){var e=Oa(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return xa(this,t)});function a(t){var n;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,t)).containerId=void 0,n.portalRef=void 0,n.containerRef=void 0,n.shouldHandleWheel=void 0,n.savePortalRef=function(t){return n.portalRef=t,t},n.portalUpdate=function(t,e){return n.portalRef.portalUpdate(t,e)},n.portalRegister=function(){return n.portalRef.portalRegister()},n.portalDeregister=function(t){return n.portalRef.portalDeregister(t)},n.saveContainerRef=function(t){return O()(n.props.containerRef)&&n.props.containerRef(t),n.containerRef=t,t},n.handleWheel=function(t){return t.preventDefault()},n.containerId=Ri()(t)&&void 0!==t.containerId?t.containerId:Wi()("victory-container-"),n.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),n}return n=a,(e=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var n=t.ouiaId,e=t.ouiaSafe,r=t.ouiaType;return va(va(va({},n&&{"data-ouia-component-id":n}),r&&{"data-ouia-component-type":r}),void 0!==e&&{"data-ouia-safe":e})}},{key:"renderContainer",value:function(t,n,e){var r=t.title,o=t.desc,i=t.portalComponent,a=t.className,u=t.width,c=t.height,s=t.portalZIndex,f=t.responsive,p=this.getChildren(t),d=f?{width:"100%",height:"100%"}:{width:u,height:c},h=y()({pointerEvents:"none",touchAction:"none",position:"relative"},d),v=y()({zIndex:s,position:"absolute",top:0,left:0},d),m=y()({pointerEvents:"all"},d),g=y()({overflow:"visible"},d),b={width:u,height:c,viewBox:n.viewBox,preserveAspectRatio:n.preserveAspectRatio,style:g};return l().createElement(Yi.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},l().createElement("div",ha({style:j()({},e,h),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),l().createElement("svg",ha({},n,{style:m}),r?l().createElement("title",{id:this.getIdForElement("title")},r):null,o?l().createElement("desc",{id:this.getIdForElement("desc")},o):null,p),l().createElement("div",{style:v},l().cloneElement(i,va(va({},b),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,n=t.width,e=t.height,r=t.responsive,o=t.events,i=t.title,a=t.desc,u=t.tabIndex,c=t.preserveAspectRatio,l=t.role,s=r?this.props.style:k(this.props.style,["height","width"]),f=F(this.props),p=y()(va({width:n,height:e,tabIndex:u,role:l,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[a&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(n," ").concat(e):void 0,preserveAspectRatio:r?c:void 0},f),o);return this.renderContainer(this.props,p,s)}}])&&ga(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),a}(l().Component);wa.displayName="VictoryContainer",wa.role="container",wa.propTypes={"aria-describedby":f().string,"aria-labelledby":f().string,children:f().oneOfType([f().arrayOf(f().node),f().node]),className:f().string,containerId:f().oneOfType([f().number,f().string]),containerRef:f().func,desc:f().string,events:f().object,height:_i,name:f().string,origin:f().shape({x:_i,y:_i}),ouiaId:f().oneOfType([f().number,f().string]),ouiaSafe:f().bool,ouiaType:f().string,polar:f().bool,portalComponent:f().element,portalZIndex:Di,preserveAspectRatio:f().string,responsive:f().bool,role:f().string,style:f().object,tabIndex:f().number,theme:f().object,title:f().string,width:_i},wa.defaultProps={className:"VictoryContainer",portalComponent:l().createElement(Bi,null),portalZIndex:99,responsive:!0,role:"img"},wa.contextType=da;var ja=["desc"];function ka(){return ka=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ka.apply(this,arguments)}var Ea=function(t){var n=t.desc,e=function(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,ja);return n?l().createElement("rect",ka({vectorEffect:"non-scaling-stroke"},e),l().createElement("desc",null,n)):l().createElement("rect",ka({vectorEffect:"non-scaling-stroke"},e))};function Ma(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Aa(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Ma(Object(e),!0).forEach((function(n){Sa(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ma(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function Sa(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var Pa=function(t){return t=function(t){var n=S(t.ariaLabel,t),e=S(t.desc,t),r=S(t.id,t),o=P(y()({fill:"none"},t.style),t),i=S(t.tabIndex,t);return y()({},t,{ariaLabel:n,desc:e,id:r,style:o,tabIndex:i})}(t),l().cloneElement(t.rectComponent,Aa(Aa({},t.events),{},{"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,transform:t.transform,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,width:t.width,height:t.height,clipPath:t.clipPath}))};Pa.propTypes=Aa(Aa({},Ni.primitiveProps),{},{height:f().number,rectComponent:f().element,width:f().number,x:f().number,y:f().number}),Pa.defaultProps={rectComponent:l().createElement(Ea,null),role:"presentation",shapeRendering:"auto"};var Ca=["desc"];function Ta(){return Ta=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ta.apply(this,arguments)}var _a=function(t){var n=t.desc,e=function(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,Ca);return n?l().createElement("line",Ta({vectorEffect:"non-scaling-stroke"},e),l().createElement("desc",null,n)):l().createElement("line",Ta({vectorEffect:"non-scaling-stroke"},e))};function Da(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Ia(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Da(Object(e),!0).forEach((function(n){La(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Da(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function La(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var Na=function(t){t=function(t){var n=S(t.ariaLabel,t),e=S(t.desc,t),r=S(t.id,t),o=P(t.style,t),i=S(t.tabIndex,t);return y()({},t,{ariaLabel:n,desc:e,id:r,style:o,tabIndex:i})}(t);var n=t,e=n.ariaLabel,r=n.groupComponent,o=n.lineComponent,i=n.events,a=n.className,u=n.majorWhisker,c=n.minorWhisker,s=n.transform,f=n.clipPath,p=n.role,d=n.shapeRendering,h=n.style,v=n.desc,m=n.tabIndex,g=Ia(Ia({},i),{},{style:h,desc:v,tabIndex:m,className:a,transform:s,clipPath:f,role:p,shapeRendering:d});return l().cloneElement(r,{},[l().cloneElement(o,y()({key:"major-whisker","aria-label":e},g,u)),l().cloneElement(o,y()({key:"minor-whisker","aria-label":e},g,c))])};Na.propTypes=Ia(Ia({},Ni.primitiveProps),{},{groupComponent:f().element,lineComponent:f().element,majorWhisker:f().shape({x1:f().number,x2:f().number,y1:f().number,y2:f().number}),minorWhisker:f().shape({x1:f().number,x2:f().number,y1:f().number,y2:f().number})}),Na.defaultProps={groupComponent:l().createElement("g",null),lineComponent:l().createElement(_a,null),role:"presentation",shapeRendering:"auto"};var qa=r(4155),Ra=r.n(qa);function Ua(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Wa(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fa(t,n){return Fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Fa(t,n)}function za(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function Ha(t){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ha(t)}var $a=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Fa(t,n)}(a,t);var n,e,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Ha(r);if(o){var e=Ha(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return za(this,t)});function a(){var t;Ua(this,a);for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return(t=i.call.apply(i,[this].concat(e))).checkedContext=void 0,t.renderInPlace=void 0,t.element=void 0,t.portalKey=void 0,t}return n=a,(e=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,n=this.props.groupComponent,e=t&&t.props||{},r=e.groupComponent?{groupComponent:n,standalone:!1}:{},o=j()(r,e,k(this.props,["children","groupComponent"])),i=t&&l().cloneElement(t,o);return this.renderPortal(i)}}])&&Wa(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),a}(l().Component);$a.displayName="VictoryPortal",$a.role="portal",$a.propTypes={children:f().node,groupComponent:f().element},$a.defaultProps={groupComponent:l().createElement("g",null)},$a.contextType=Yi;var Ba=["children","title","desc"];var Ya=function(t){var n=t.children,e=t.title,r=t.desc,o=function(t,n){if(null==t)return{};var e,r,o=function(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}(t,Ba);return l().createElement("text",o,e&&l().createElement("title",null,e),r&&l().createElement("desc",null,r),n)};Ya.propTypes={children:f().node,desc:f().string,title:f().string};var Ka=function(t){return l().createElement("tspan",t)};var Va=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(e.length>0)return e.reduce((function(t,n){return[t,Va(n)].join(" ")}),Va(t)).trim();if(null==t||"string"==typeof t)return t;var o=[];for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push("".concat(i,"(").concat(a,")"))}return o.join(" ").trim()};function Ga(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var Qa={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},Za={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Xa={em:1,ex:.5},Ja={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},tu=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},nu=function(t,n,e){var r=function(t){return t*Math.PI/180}(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},eu=function(t,n){var e,r=null===(e=t.match(/[a-zA-Z%]+/))||void 0===e?void 0:e[0],o=Number(t.match(/[0-9.,]+/));return r?Za.hasOwnProperty(r)?o*Za[r]:Xa.hasOwnProperty(r)?(n?o*n:o*Ja.fontSize)*Xa[r]:o:o||0},ru=function(t,n){var e=Array.isArray(t)?t[n]:t,r=j()({},e,Ja);return y()({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:eu(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:eu(String(r.fontSize))})},ou=function(t,n){if(void 0===t||""===t||null===t)return 0;var e,r=tu(t).map((function(t,e){var r,o,i=t.toString().length,a=ru(n,e),u=a.fontSize,c=a.letterSpacing,l=(r=a.fontFamily,o=r.split(",").map((function(t){return t.replace(/'|"/g,"")})).find((function(t){return Qa[t]}))||"Helvetica",Qa[o]);return t.toString().split("").map((function(t){return t.charCodeAt(0)<l.widths.length?l.widths[t.charCodeAt(0)]:l.avg})).reduce((function(t,n){return n+t}),0)*u+c*Math.max(i-1,0)}));return Math.max.apply(Math,function(t){if(Array.isArray(t))return Ga(t)}(e=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,n){if(t){if("string"==typeof t)return Ga(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ga(t,n):void 0}}(e)||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.")}())},iu=function(t,n){return function(t,n){var e=Array.isArray(n)?n[0]&&n[0].angle:n&&n.angle,r=function(t,n){return void 0===t||""===t||null===t?0:tu(t).reduce((function(t,e,r){var o=ru(n,r),i=e.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0)}(t,n),o=ou(t,n);return{width:e?nu(o,r,e):o,height:1.05*(e?nu(r,o,e):r)}}(t,n)};function au(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function uu(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?au(Object(e),!0).forEach((function(n){cu(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):au(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function cu(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function lu(t){return function(t){if(Array.isArray(t))return su(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return su(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?su(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function su(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var fu={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},pu=function(t,n){if(!t.datum)return 0;var e=function(t,n){var e=t.scale,r=t.polar,o=t.horizontal,i=E(n),a=t.origin||{x:0,y:0},u=o?e.y(i.y):e.x(i.x),c=o?e.y(i.y0):e.x(i.x0),l=o?e.x(i.x):e.y(i.y),s=o?e.x(i.x0):e.y(i.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?s*Math.cos(c)+a.x:c,y:r?-l*Math.sin(u)+a.y:l,y0:r?-s*Math.sin(c)+a.x:s}}(t,t.datum);return e[n]},du=function(t){var n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return fu.fontSize;if("string"==typeof n){var e=Number(n.replace("px",""));return isNaN(e)?fu.fontSize:e}return fu.fontSize},hu=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?t[n]||t[0]:t},yu=function(t){var n=t.backgroundStyle,e=t.backgroundPadding;return Array.isArray(n)&&!Ra()(n)||Array.isArray(e)&&!Ra()(e)},vu=function(t,n,e){var r=t.polar,o=hu(t.style),i=r?function(t,n){var e=t.labelPlacement,r=t.datum;if(!e||"vertical"===e)return 0;var o=function(t,n){var e,r=E(n).x;return("number"==typeof(e=t.scale.x(r))?e/(Math.PI/180):e)%360}(t,r),i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===e?0:90)}(t):0,a=void 0===o.angle?S(t.angle,t):o.angle,u=void 0===a?i:a,c=t.transform||o.transform,l=c&&S(c,t);return l||u?Va(l,u&&{rotate:[u,n,e]}):void 0},mu=function(t,n){var e=t.direction,r=t.textAnchor,o=t.x,i=t.dx;if("rtl"===e)return o-n;switch(r){case"middle":return Math.round(o-n/2);case"end":return Math.round(o-n);default:return o+(i||0)}},gu=function(t,n){var e=t.verticalAnchor,r=t.y,o=t.originalDy,i=r+(void 0===o?0:o);switch(e){case"start":return Math.floor(i);case"end":return Math.ceil(i-n);default:return Math.floor(i-n/2)}},bu=function(t,n){return yu(t)?function(t,n){var e=t.dy,r=t.dx,o=t.transform,i=t.backgroundStyle,a=t.backgroundPadding,u=t.backgroundComponent,c=t.inline,s=t.y,f=n.map((function(t,o){var i=hu(n,o-1),u=t.textSize,l=t.fontSize*t.lineHeight,f=Math.ceil(l),p=hu(a,o),d=hu(a,o-1),h=c&&r||0,y=o&&!c?i.fontSize*i.lineHeight+d.top+d.bottom:e-.5*l-(t.fontSize-t.capHeight);return{textHeight:f,labelSize:u,heightWithPadding:f+p.top+p.bottom,widthWithPadding:u.width+p.left+p.right+h,y:s,fontSize:t.fontSize,dy:y}}));return f.map((function(n,e){var r=mu(t,n.labelSize.width),p=f.slice(0,e+1).reduce((function(t,n){return t+n.dy}),s),d=hu(a,e),h=n.heightWithPadding,y=c?function(t,n,e){var r=t.textAnchor,o=n.map((function(t){return t.widthWithPadding})),i=-o.reduce((function(t,n){return t+n}),0)/2;switch(r){case"start":return o.reduce((function(t,n,r){return r<e?t+n:t}),0);case"end":return o.reduce((function(t,n,r){return r>e?t-n:t}),0);default:return o.reduce((function(t,n,r){return r===e?t+n/2:t+(r<e?n:0)}),i)}}(t,f,e)+r-d.left:r,v=c?gu(t,h)-d.top:p,m={key:"tspan-background-".concat(e),height:h,style:hu(i,e),width:n.widthWithPadding,transform:o,x:y-d.left,y:v};return l().cloneElement(u,j()({},u.props,m))}))}(t,n):function(t,n){var e=t.dx,r=void 0===e?0:e,o=t.transform,i=t.backgroundComponent,a=t.backgroundStyle,u=t.inline,c=t.backgroundPadding,s=t.capHeight,f=n.map((function(t){return t.textSize})),p=u?Math.max.apply(Math,lu(f.map((function(t){return t.height})))):f.reduce((function(t,e,r){var o=r?0:s/2;return t+e.height*(n[r].lineHeight-o)}),0),d=u?f.reduce((function(t,n,e){var o=e?r:0;return t+n.width+o}),0):Math.max.apply(Math,lu(f.map((function(t){return t.width})))),h=mu(t,d),y=gu(t,p),v={key:"background",height:p+c.top+c.bottom,style:a,transform:o,width:d+c.left+c.right,x:u?h-c.left:h+r-c.left,y};return l().cloneElement(i,j()({},i.props,v))}(t,n)},xu=function(t,n,e){var r=n.inline,o=hu(t,e);return e&&!r?function(t,n,e){var r=hu(t,n),o=hu(t,n-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,u=o.fontSize-o.capHeight,c=r.fontSize-r.capHeight,l=i-o.fontSize/2+r.fontSize/2-i/2+a/2-c/2+u/2;return yu(e)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l}(t,e,n):r?0===e?o.backgroundPadding.top:void 0:o.backgroundPadding.top},Ou=function(t){if(null===(t=function(t){var n=function(t,n){if(null!=t){if(Array.isArray(t))return t.map((function(t){return S(t,n)}));var e=S(t,n);if(null!=e)return Array.isArray(e)?e:"".concat(e).split("\n")}}(t.text,t),e=function(t,n){if(n.disableInlineStyles){var e=P(t,n);return{fontSize:du(e)}}var r=function(t){var e=P(t=t?j()({},t,fu):fu,n);return y()({},e,{fontSize:du(e)})};return Array.isArray(t)&&!Ra()(t)?t.map((function(t){return r(t)})):r(t)}(t.style,y()({},t,{text:n})),r=function(t,n){if(t)return Array.isArray(t)&&!Ra()(t)?t.map((function(t){return P(t,n)})):P(t,n)}(t.backgroundStyle,y()({},t,{text:n,style:e})),o=function(t){return t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((function(n){return M({padding:S(n,t)})})):M({padding:S(t.backgroundPadding,t)})}(y()({},t,{text:n,style:e,backgroundStyle:r})),i=S(t.id,t);return y()({},t,{backgroundStyle:r,backgroundPadding:o,style:e,text:n,id:i})}(t)).text||void 0===t.text)return null;var n=function(t){var n=S(t.ariaLabel,t),e=hu(t.style),r=function(t){var n=S(t.lineHeight,t);return Array.isArray(n)&&Ra()(n)?[1]:n}(t),o=t.direction?S(t.direction,t):"inherit",i=t.textAnchor?S(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?S(t.verticalAnchor,t):e.verticalAnchor||"middle",u=t.dx?S(t.dx,t):0,c=function(t,n,e){var r=t.dy?S(t.dy,t):0,o=t.inline?1:t.text.length,i=S(t.capHeight,t),a=n?S(n,t):"middle",u=lu(Array(o).keys()).map((function(n){return hu(t.style,n).fontSize})),c=lu(Array(o).keys()).map((function(t){return hu(e,t)}));if("start"===a)return r+(i/2+c[0]/2)*u[0];if(t.inline)return"end"===a?r+(i/2-c[0]/2)*u[0]:r+i/2*u[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*c[0])*u[0]:r+(i/2+(.5-o/2)*c[0])*u[0];var l=lu(Array(o).keys()).reduce((function(t,n){return t+(i/2+(.5-o)*c[n])*u[n]/o}),0);return"end"===a?r+l:r+l/2+i/2*c[o-1]*u[o-1]}(t,a,r),l=void 0!==t.x?t.x:pu(t,"x"),s=void 0!==t.y?t.y:pu(t,"y"),f=vu(t,l,s);return y()({},t,{ariaLabel:n,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:a,dx:u,dy:c,originalDy:t.dy,transform:f,x:l,y:s})}(t),e=n.text,r=n.style,o=n.capHeight,i=n.backgroundPadding,a=n.lineHeight,u=e.map((function(t,n){var e=hu(r,n),u=eu("".concat(o,"em"),e.fontSize),c=hu(a,n);return{style:e,fontSize:e.fontSize||fu.fontSize,capHeight:u,text:t,textSize:iu(t,e),lineHeight:c,backgroundPadding:hu(i,n)}})),c=function(t,n){var e=t.ariaLabel,r=t.inline,o=t.className,i=t.title,a=t.events,u=t.direction,c=t.text,s=t.textAnchor,f=t.dx,p=t.dy,d=t.transform,h=t.x,y=t.y,v=t.desc,m=t.id,g=t.tabIndex,b=t.tspanComponent,x=t.textComponent,O=F(t),w=uu(uu({"aria-label":e,key:"text"},a),{},{direction:u,dx:f,x:h,y:y+p,transform:d,className:o,title:i,desc:S(v,t),tabIndex:S(g,t),id:m},O),j=c.map((function(e,o){var i=n[o].style,a={key:"".concat(m,"-key-").concat(o),x:r?void 0:h,dx:r?f+n[o].backgroundPadding.left:f,dy:xu(n,t,o),textAnchor:i.textAnchor||s,style:i,children:e};return l().cloneElement(b,a)}));return l().cloneElement(x,w,j)}(n,u);if(t.backgroundStyle){var s=[bu(n,u),c],f=l().cloneElement(t.groupComponent,{},s);return t.renderInPortal?l().createElement($a,null,f):f}return t.renderInPortal?l().createElement($a,null,c):c};function wu(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function ju(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?wu(Object(e),!0).forEach((function(n){ku(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):wu(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function ku(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}Ou.displayName="VictoryLabel",Ou.role="label",Ou.defaultStyles=fu,Ou.propTypes={active:f().bool,angle:f().oneOfType([f().string,f().number,f().func]),ariaLabel:f().oneOfType([f().string,f().func]),backgroundComponent:f().element,backgroundPadding:f().oneOfType([f().number,f().object,f().array]),backgroundStyle:f().oneOfType([f().object,f().array]),capHeight:f().oneOfType([f().string,_i,f().func]),className:f().string,data:f().array,datum:f().any,desc:f().oneOfType([f().string,f().func]),direction:f().oneOf(["rtl","ltr","inherit"]),dx:f().oneOfType([f().number,f().string,f().func]),dy:f().oneOfType([f().number,f().string,f().func]),events:f().object,groupComponent:f().element,id:f().oneOfType([f().number,f().string,f().func]),index:f().oneOfType([f().number,f().string]),inline:f().bool,labelPlacement:f().oneOf(["parallel","perpendicular","vertical"]),lineHeight:f().oneOfType([f().string,_i,f().func,f().array]),origin:f().shape({x:_i.isRequired,y:_i.isRequired}),polar:f().bool,renderInPortal:f().bool,scale:f().shape({x:Li,y:Li}),style:f().oneOfType([f().object,f().array]),tabIndex:f().oneOfType([f().number,f().func]),text:f().oneOfType([f().string,f().number,f().func,f().array]),textAnchor:f().oneOfType([f().oneOf(["start","middle","end","inherit"]),f().func]),textComponent:f().element,title:f().string,transform:f().oneOfType([f().string,f().object,f().func]),tspanComponent:f().element,verticalAnchor:f().oneOfType([f().oneOf(["start","middle","end"]),f().func]),x:f().oneOfType([f().number,f().string]),y:f().oneOfType([f().number,f().string])},Ou.defaultProps={backgroundComponent:l().createElement(Ea,null),groupComponent:l().createElement("g",null),direction:"inherit",textComponent:l().createElement(Ya,null),tspanComponent:l().createElement(Ka,null),capHeight:.71,lineHeight:1};var Eu=function(t){return t=function(t){var n=S(t.ariaLabel,t),e=S(t.desc,t),r=S(t.id,t),o=P(y()({stroke:"black"},t.style),t),i=S(t.tabIndex,t);return y()({},t,{ariaLabel:n,desc:e,id:r,style:o,tabIndex:i})}(t),l().cloneElement(t.lineComponent,ju(ju({},t.events),{},{"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath}))};Eu.propTypes=ju(ju({},Ni.primitiveProps),{},{datum:f().any,lineComponent:f().element,x1:f().number,x2:f().number,y1:f().number,y2:f().number}),Eu.defaultProps={lineComponent:l().createElement(_a,null),role:"presentation",shapeRendering:"auto"};var Mu=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Au="#252525",Su="#969696",Pu={width:450,height:300,padding:50,colorScale:Mu},Cu={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:Au,stroke:"transparent"},Tu=y()({textAnchor:"middle"},Cu),_u={area:y()({style:{data:{fill:Au},labels:Cu}},Pu),axis:y()({style:{axis:{fill:"transparent",stroke:Au,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:y()({},Tu,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Cu}},Pu),bar:y()({style:{data:{fill:Au,padding:8,strokeWidth:0},labels:Cu}},Pu),boxplot:y()({style:{max:{padding:8,stroke:Au,strokeWidth:1},maxLabels:y()({},Cu,{padding:3}),median:{padding:8,stroke:Au,strokeWidth:1},medianLabels:y()({},Cu,{padding:3}),min:{padding:8,stroke:Au,strokeWidth:1},minLabels:y()({},Cu,{padding:3}),q1:{padding:8,fill:Su},q1Labels:y()({},Cu,{padding:3}),q3:{padding:8,fill:Su},q3Labels:y()({},Cu,{padding:3})},boxWidth:20},Pu),candlestick:y()({style:{data:{stroke:Au,strokeWidth:1},labels:y()({},Cu,{padding:5})},candleColors:{positive:"#ffffff",negative:Au}},Pu),chart:Pu,errorbar:y()({borderWidth:8,style:{data:{fill:"transparent",stroke:Au,strokeWidth:2},labels:Cu}},Pu),group:y()({colorScale:Mu},Pu),histogram:y()({style:{data:{fill:Su,stroke:Au,strokeWidth:2},labels:Cu}},Pu),legend:{colorScale:Mu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Cu,title:y()({},Cu,{padding:5})}},line:y()({style:{data:{fill:"transparent",stroke:Au,strokeWidth:2},labels:Cu}},Pu),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:y()({},Cu,{padding:20})},colorScale:Mu,width:400,height:400,padding:50},scatter:y()({style:{data:{fill:Au,stroke:"transparent",strokeWidth:0},labels:Cu}},Pu),stack:y()({colorScale:Mu},Pu),tooltip:{style:y()({},Cu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Au,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:y()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:y()({},Cu,{padding:5,pointerEvents:"none"}),flyout:{stroke:Au,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Pu)},Du=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],Iu="#ECEFF1",Lu="#90A4AE",Nu="#455A64",qu="#212121",Ru={width:350,height:350,padding:50},Uu={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Nu,stroke:"transparent",strokeWidth:0},Wu=y()({textAnchor:"middle"},Uu),Fu="round",zu="round",Hu={grayscale:_u,material:{area:y()({style:{data:{fill:qu},labels:Uu}},Ru),axis:y()({style:{axis:{fill:"transparent",stroke:Lu,strokeWidth:2,strokeLinecap:Fu,strokeLinejoin:zu},axisLabel:y()({},Wu,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Iu,strokeDasharray:"10, 5",strokeLinecap:Fu,strokeLinejoin:zu,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Lu,strokeWidth:1,strokeLinecap:Fu,strokeLinejoin:zu},tickLabels:y()({},Uu,{fill:Nu})}},Ru),polarDependentAxis:y()({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:y()({style:{data:{fill:Nu,padding:8,strokeWidth:0},labels:Uu}},Ru),boxplot:y()({style:{max:{padding:8,stroke:Nu,strokeWidth:1},maxLabels:y()({},Uu,{padding:3}),median:{padding:8,stroke:Nu,strokeWidth:1},medianLabels:y()({},Uu,{padding:3}),min:{padding:8,stroke:Nu,strokeWidth:1},minLabels:y()({},Uu,{padding:3}),q1:{padding:8,fill:Nu},q1Labels:y()({},Uu,{padding:3}),q3:{padding:8,fill:Nu},q3Labels:y()({},Uu,{padding:3})},boxWidth:20},Ru),candlestick:y()({style:{data:{stroke:Nu},labels:y()({},Uu,{padding:5})},candleColors:{positive:"#ffffff",negative:Nu}},Ru),chart:Ru,errorbar:y()({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Nu,strokeWidth:2},labels:Uu}},Ru),group:y()({colorScale:Du},Ru),histogram:y()({style:{data:{fill:Nu,stroke:qu,strokeWidth:2},labels:Uu}},Ru),legend:{colorScale:Du,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Uu,title:y()({},Uu,{padding:5})}},line:y()({style:{data:{fill:"transparent",opacity:1,stroke:Nu,strokeWidth:2},labels:Uu}},Ru),pie:y()({colorScale:Du,style:{data:{padding:8,stroke:Iu,strokeWidth:1},labels:y()({},Uu,{padding:20})}},Ru),scatter:y()({style:{data:{fill:Nu,opacity:1,stroke:"transparent",strokeWidth:0},labels:Uu}},Ru),stack:y()({colorScale:Du},Ru),tooltip:{style:y()({},Uu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:qu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:y()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:y()({},Uu,{padding:5,pointerEvents:"none"}),flyout:{stroke:qu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Ru)}},$u=r(4882),Bu=r.n($u),Yu=r(6354),Ku=r.n(Yu),Vu=r(9602),Gu=r.n(Vu),Qu=r(1616),Zu=r.n(Qu),Xu=r(4912),Ju=r.n(Xu);function tc(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function nc(t){return function(t){if(Array.isArray(t))return ec(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return ec(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ec(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ec(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var rc=/^onGlobal(.*)$/;function oc(t,n,e,r){var o,i=this,a=function(t){var r,o=(r=t.reduce((function(t,e){return void 0!==e.target?(Array.isArray(e.target)?G()(e.target,n):"".concat(e.target)==="".concat(n))?t.concat(e):t:t.concat(e)}),[]),void 0!==e&&"parent"!==n?r.filter((function(t){var n=t.eventKey,r=function(t){return!t||"".concat(t)==="".concat(e)};return Array.isArray(n)?n.some((function(t){return r(t)})):r(n)})):r);return Array.isArray(o)&&o.reduce((function(t,n){return n?y()(t,n.eventHandlers):t}),{})},u=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,nc(t.events)):i.componentEvents:t.events,c=u&&O()(r)?r(a(u),n):void 0;if(!t.sharedEvents)return c;var l=t.sharedEvents.getEvents,s=t.sharedEvents.events&&l(a(t.sharedEvents.events),n);return y()({},s,c)}function ic(t,n,e,r){var o=this;if(Ra()(t))return{};r=r||this.baseProps;var i=function(t,n){var e=t.childName,i=t.target,a=t.key,u="props"===n?r:o.state||{},c=null!=e&&u[e]?u[e]:u;return"parent"===a?c.parent:c[a]&&c[a][i]},a=function(t,a){var u="parent"===n?t.childName:t.childName||e,c=t.target||n,l=function(n,e){var a=o.state||{};if(!O()(t.mutation))return a;var u=i({childName:e,key:n,target:c},"props"),l=i({childName:e,key:n,target:c},"state"),s=t.mutation(y()({},u,l),r),f=a[e]||{},p=function(t){return s?function(t){return"parent"===c?y()(t,tc({},n,y()(t[n],s))):y()(t,tc({},n,y()(t[n],tc({},c,s))))}(t):function(t){return t[n]&&t[n][c]&&delete t[n][c],t[n]&&!d()(t[n]).length&&delete t[n],t}(t)};return null!=e?y()(a,tc({},e,p(f))):p(a)},s=function(n){var e=function(n){return"parent"===c?"parent":"all"===t.eventKey?r[n]?Bu()(d()(r[n]),"parent"):Bu()(d()(r),"parent"):void 0===t.eventKey&&"parent"===a?r[n]?d()(r[n]):d()(r):void 0!==t.eventKey?t.eventKey:a}(n);return Array.isArray(e)?e.reduce((function(t,e){return y()(t,l(e,n))}),{}):l(e,n)},f="all"===u?Bu()(d()(r),"parent"):u;return Array.isArray(f)?f.reduce((function(t,n){return y()(t,s(n))}),{}):s(f)},u=function(n,e,r,i){var u=t[i](n,e,r,o);if(!Ra()(u)){var c=function(t){var n=function(t){return O()(t.callback)&&t.callback},e=(Array.isArray(t)?t.map((function(t){return n(t)})):[n(t)]).filter((function(t){return!1!==t}));return e.length?function(){return e.forEach((function(t){return t()}))}:void 0}(u);o.setState(function(t,n){return Array.isArray(t)?t.reduce((function(t,e){return y()({},t,a(e,n))}),{}):a(t,n)}(u,r),c)}};return d()(t).reduce((function(t,n){return t[n]=u,t}),{})}function ac(t,n,e){return t?d()(t).reduce((function(r,o){return r[o]=function(r){return t[o](r,e,n,o)},r}),{}):{}}function uc(t,n,e){var r=this.state||{};return e?r[e]&&r[e][t]&&r[e][t][n]:"parent"===t?r[t]&&r[t][n]||r[t]:r[t]&&r[t][n]}function cc(t,n,e,r){return n=n||{},e=e||{},d()(n).reduce((function(o,i){var a=e[i]||{},u=n[i]||{};if("parent"===i){var c=lc(t,u,a,{eventKey:i,target:"parent"});o[i]=void 0!==c?y()({},a,c):a}else{var l=Gu()(d()(u).concat(d()(a)));o[i]=l.reduce((function(n,e){var o={eventKey:i,target:e,childName:r},c=lc(t,u[e],a[e],o);return n[e]=void 0!==c?y()({},a[e],c):a[e],Ju()(n,(function(t){return!Ra()(t)}))}),{})}return Ju()(o,(function(t){return!Ra()(t)}))}),{})}function lc(t,n,e,r){var o=function(t,n){if("string"==typeof t[n])return"all"===t[n]||t[n]===r[n];if(Array.isArray(t[n])){var e=t[n].map((function(t){return"".concat(t)}));return G()(e,r[n])}return!1},i=t=Array.isArray(t)?t:[t];r.childName&&(i=t.filter((function(t){return o(t,"childName")})));var a=i.filter((function(t){return o(t,"target")}));if(!Ra()(a)){var u=a.filter((function(t){return o(t,"eventKey")}));if(!Ra()(u))return u.reduce((function(t,r){var o=(r&&O()(r.mutation)?r.mutation:function(){})(y()({},n,e));return y()({},t,o)}),{})}}function sc(t,n){var e=Array.isArray(n)&&n.reduce((function(n,e){var r,o=t[e],i=o&&o.type&&o.type.defaultEvents,a=O()(i)?i(o.props):i;return Array.isArray(a)?(r=n).concat.apply(r,nc(a)):n}),[]);return e&&e.length?e:void 0}function fc(t){var n=t.match(rc);return n&&n[1]&&n[1].toLowerCase()}var pc=function(t){return Ju()(t,(function(t,n){return rc.test(n)}))},dc=function(t){return Zu()(t,(function(t,n){return rc.test(n)}))},hc=function(t){return y()(t,{nativeEvent:t})},yc=r(7491),vc=r.n(yc);const mc=t=>+t;function gc(t){return t*t}function bc(t){return t*(2-t)}function xc(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Oc(t){return t*t*t}function wc(t){return--t*t*t+1}function jc(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var kc=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),Ec=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),Mc=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),Ac=Math.PI,Sc=Ac/2;function Pc(t){return 1==+t?1:1-Math.cos(t*Sc)}function Cc(t){return Math.sin(t*Sc)}function Tc(t){return(1-Math.cos(Ac*t))/2}function _c(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Dc(t){return _c(1-+t)}function Ic(t){return 1-_c(t)}function Lc(t){return((t*=2)<=1?_c(1-t):2-_c(t-1))/2}function Nc(t){return 1-Math.sqrt(1-t*t)}function qc(t){return Math.sqrt(1- --t*t)}function Rc(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Uc=7.5625;function Wc(t){return 1-Fc(1-t)}function Fc(t){return(t=+t)<.36363636363636365?Uc*t*t:t<.7272727272727273?Uc*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Uc*(t-=.8181818181818182)*t+.9375:Uc*(t-=.9545454545454546)*t+.984375}function zc(t){return((t*=2)<=1?1-Fc(1-t):Fc(t-1)+1)/2}var Hc=1.70158,$c=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Hc),Bc=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Hc),Yc=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Hc),Kc=2*Math.PI,Vc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Kc);function o(t){return n*_c(- --t)*Math.sin((r-t)/e)}return o.amplitude=function(n){return t(n,e*Kc)},o.period=function(e){return t(n,e)},o}(1,.3),Gc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Kc);function o(t){return 1-n*_c(t=+t)*Math.sin((t+r)/e)}return o.amplitude=function(n){return t(n,e*Kc)},o.period=function(e){return t(n,e)},o}(1,.3),Qc=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Kc);function o(t){return((t=2*t-1)<0?n*_c(-t)*Math.sin((r-t)/e):2-n*_c(t)*Math.sin((r+t)/e))/2}return o.amplitude=function(n){return t(n,e*Kc)},o.period=function(e){return t(n,e)},o}(1,.3),Zc=r(4143),Xc=r.n(Zc),Jc=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||K()(t)}return!1},tl=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r<e?t:n}},nl=function(t,n){return function(e){return e>=1?n:function(){var r="function"==typeof t?t.apply(this,arguments):t,o="function"==typeof n?n.apply(this,arguments):n;return On(r,o)(e)}}},el=function(t,n){var e,r,o,i=function(t){return Array.isArray(t)?Xc()(t,"key"):t},a={},u={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?a[e]=(r=i(t[e]))!==(o=i(n[e]))&&Jc(r)&&Jc(o)?"function"==typeof r||"function"==typeof o?nl(r,o):"object"==typeof r&&K()(r)||"object"==typeof o&&K()(o)?el(r,o):On(r,o):tl(r,o):u[e]=n[e];return function(t){for(e in a)u[e]=a[e](t);return u}};function rl(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function ol(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function il(t,n){return il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},il(t,n)}function al(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function ul(t){return ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ul(t)}var cl=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&il(t,n)}(u,t);var e,r,o,i,a=(o=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=ul(o);if(i){var e=ul(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return al(this,t)});function u(t,e){var r;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),(r=a.call(this,t,e)).interpolator=void 0,r.queue=void 0,r.ease=void 0,r.timer=void 0,r.loopID=void 0,r.functionToBeRunEachFrame=function(t,n){var e=(n=void 0!==n?n:r.props.duration)?t/n:1;if(e>=1)return r.setState({data:r.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),r.loopID&&r.timer.unsubscribe(r.loopID),r.queue.shift(),void r.traverseQueue();r.setState({data:r.interpolator(r.ease(e)),animationInfo:{progress:e,animating:e<1}})},r.state={data:Array.isArray(r.props.data)?r.props.data[0]:r.props.data,animationInfo:{progress:0,animating:!1}},r.interpolator=null,r.queue=Array.isArray(r.props.data)?r.props.data.slice(1):[],r.ease=n[r.toNewName(r.props.easing)],r.timer=r.context.animationTimer,r}return e=u,(r=[{key:"componentDidMount",value:function(){this.queue.length&&this.traverseQueue()}},{key:"componentDidUpdate",value:function(t){if(!vc()(this.props,t))if(this.interpolator&&this.state.animationInfo&&this.state.animationInfo.progress<1)this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}});else{var n;this.timer.unsubscribe(this.loopID),Array.isArray(this.props.data)?(n=this.queue).push.apply(n,function(t){if(Array.isArray(t))return rl(t)}(e=this.props.data)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,n){if(t){if("string"==typeof t)return rl(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?rl(t,n):void 0}}(e)||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.")}()):(this.queue.length=0,this.queue.push(this.props.data)),this.traverseQueue()}var e}},{key:"componentWillUnmount",value:function(){this.loopID?this.timer.unsubscribe(this.loopID):this.timer.stop()}},{key:"toNewName",value:function(t){var n;return"ease".concat((n=t)&&n[0].toUpperCase()+n.slice(1))}},{key:"traverseQueue",value:function(){var t,n,e=this;if(this.queue.length){var r=this.queue[0];this.interpolator=(t=this.state.data)!==(n=r)&&Jc(t)&&Jc(n)?"function"==typeof t||"function"==typeof n?nl(t,n):K()(t)||K()(n)?el(t,n):"string"==typeof t||"string"==typeof n?function(t,n){var e=function(t){return"string"==typeof t?t.replace(/,/g,""):t};return On(e(t),e(n))}(t,n):On(t,n):tl(t,n),this.props.delay?setTimeout((function(){e.loopID=e.timer.subscribe(e.functionToBeRunEachFrame,e.props.duration)}),this.props.delay):this.loopID=this.timer.subscribe(this.functionToBeRunEachFrame,this.props.duration)}else this.props.onEnd&&this.props.onEnd()}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}])&&ol(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(l().Component);cl.displayName="VictoryAnimation",cl.propTypes={children:f().func,data:f().oneOfType([f().object,f().array]),delay:f().number,duration:f().number,easing:f().oneOf(["back","backIn","backOut","backInOut","bounce","bounceIn","bounceOut","bounceInOut","circle","circleIn","circleOut","circleInOut","linear","linearIn","linearOut","linearInOut","cubic","cubicIn","cubicOut","cubicInOut","elastic","elasticIn","elasticOut","elasticInOut","exp","expIn","expOut","expInOut","poly","polyIn","polyOut","polyInOut","quad","quadIn","quadOut","quadInOut","sin","sinIn","sinOut","sinInOut"]),onEnd:f().func},cl.defaultProps={data:{},delay:0,duration:1e3,easing:"quadInOut"},cl.contextType=da;var ll=r(5346),sl=r.n(ll);function fl(t,n){return(t.key||n).toString()}function pl(t){return t.reduce((function(t,n,e){return t[fl(n,e)]=n,t}),{})}function dl(t,n){var e=!1,r=d()(t).reduce((function(t,r){return r in n||(e=!0,t[r]=!0),t}),{});return e&&r}function hl(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function yl(t,n){var e=!1,r=!1,o=function(t,n){return t.map((function(i,a){return i&&i.props&&i.props.children&&n[a]?o(l().Children.toArray(t[a].props.children),l().Children.toArray(n[a].props.children)):function(t,n){if(!n||t.type!==n.type)return{};var o,i,a,u,c=(o=hl(t),i=hl(n),a=o&&pl(o),u=i&&pl(i),{entering:a&&dl(u,a),exiting:u&&dl(a,u)}||{}),l=c.entering,s=c.exiting;return e=e||!!s,r=r||!!l,{entering:l||!1,exiting:s||!1}}(i,n[a])}))},i=o(l().Children.toArray(t),l().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:i,nodesShouldEnter:!1}}function vl(t,n,e){var r=n&&n.nodesWillExit,o=n&&n.nodesWillEnter,i=n&&n.nodesShouldEnter,a=n&&n.nodesShouldLoad,u=n&&n.nodesDoneLoad,c=n&&n.childrenTransitions||[],l={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},s=function(t,n,r){return a?function(t,n,r){if((t=y()({},t,{onEnd:function(){e({nodesShouldLoad:!1,nodesDoneLoad:!0})}}))&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:n};var o=t.onLoad&&t.onLoad.after?t.onLoad.after:sl();return{animate:t,data:n=n.map((function(t,e){return y()({},t,o(t,e,n))}))}}(r,n):function(t,n,r,o){if((t=y()({},t,{onEnd:function(){e({nodesDoneLoad:!0})}}))&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:r};var i=t.onLoad&&t.onLoad.before?t.onLoad.before:sl();return{animate:t,data:r=r.map((function(t,n){return y()({},t,i(t,n,r))})),clipWidth:0}}(r,0,n)},f=function(t,n,r,o){return function(t,n,r,o,i){var a=t&&t.onExit;if(t=y()({},t,a),o){t.onEnd=function(){e({nodesWillExit:!1})};var u=t.onExit&&t.onExit.before?t.onExit.before:sl();r=r.map((function(t,n){var e=(t.key||n).toString();return o[e]?y()({},t,u(t,n,r)):t}))}return{animate:t,data:r}}(o,0,r,t)},p=function(t,n,r,o){return i?function(t,n,r,o){var i=t&&t.onEnter;if(t=y()({},t,i),r){t.onEnd=function(){e({nodesWillEnter:!1})};var a=t.onEnter&&t.onEnter.after?t.onEnter.after:sl();n=n.map((function(t,e){var o=fl(t,e);return r[o]?y()({},t,a(t,e,n)):t}))}return{animate:t,data:n}}(o,r,t):function(t,n,r,o,i){if(o){var a=(t=y()({},t,{onEnd:function(){e({nodesShouldEnter:!0})}})).onEnter&&t.onEnter.before?t.onEnter.before:sl();r=r.map((function(t,n){var e=(t.key||n).toString();return o[e]?y()({},t,a(t,n,r)):t}))}return{animate:t,data:r}}(o,0,r,t)},d=function(t,n){var e=t.props.animate;if(!t.type)return{};var r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){var o=e[n]&&e[n].duration;return void 0!==o?o:r[n]&&r[n].duration}return{}};return function(e,a){var h=hl(e)||[],v=j()({},t.animate,e.props.animate),m=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;v.onExit=j()({},v.onExit,m&&m.onExit),v.onEnter=j()({},v.onEnter,m&&m.onEnter),v.onLoad=j()({},v.onLoad,m&&m.onLoad);var g=c[a]||c[0];if(!u){var b={duration:void 0!==l.load?l.load:d(e,"onLoad")};return s(0,h,y()({},v,b))}if(r){var x=g&&g.exiting,O=void 0!==l.exit?l.exit:d(e,"onExit"),w=x?{duration:O}:{delay:O};return f(x,0,h,y()({},v,w))}if(o){var k=g&&g.entering,E=void 0!==l.enter?l.enter:d(e,"onEnter"),M=void 0!==l.move?l.move:e.props.animate&&e.props.animate.duration,A={duration:i&&k?E:M};return p(k,0,h,y()({},v,A))}return!n&&v&&v.onExit?function(t,n){var e=t.onEnter&&t.onEnter.after?t.onEnter.after:sl();return{data:n.map((function(t,r){return y()({},t,e(t,r,n))}))}}(v,h):{animate:v,data:h}}}function ml(){return ml=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ml.apply(this,arguments)}function gl(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bl(t,n){return bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},bl(t,n)}function xl(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function Ol(t){return Ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ol(t)}var wl=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&bl(t,n)}(a,t);var n,e,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Ol(r);if(o){var e=Ol(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return xl(this,t)});function a(t,n){var e;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t,n)).continuous=void 0,e.timer=void 0,e.transitionProps=void 0,e.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var r=e.props.children,o=r.props.polar;return e.continuous=!o&&r.type&&!0===r.type.continuous,e.timer=e.context.transitionTimer,e}return n=a,e=[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(t){var n=this;return vc()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(function(){return n.timer.resumeAnimation()}))),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(t,n){var e=t.animate;if(!e)return{};if(e.parentState)return{oldProps:e.parentState.nodesWillExit?t:null,nextProps:n};var r=yl(l().Children.toArray(t.children),l().Children.toArray(n.children)),o=r.nodesWillExit;return{nodesWillExit:o,nodesWillEnter:r.nodesWillEnter,childrenTransitions:r.childrenTransitions,nodesShouldEnter:r.nodesShouldEnter,oldProps:o?t:null,nextProps:n}}},{key:"getDomainFromChildren",value:function(t,n){var e=function(t){return t.reduce((function(t,r){if(r.type&&O()(r.type.getDomain)){var o=r.props&&r.type.getDomain(r.props,n);return o?t.concat(o):t}return r.props&&r.props.children?t.concat(e(l().Children.toArray(r.props.children))):t}),[])},r=l().Children.toArray(t.children)[0],o=r.props||{},i=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[n];if(!o.children&&i)return i;var a=e([r]);return 0===a.length?[0,1]:[tt(a),J(a)]}},{key:"pickProps",value:function(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}},{key:"pickDomainProps",value:function(t){var n,e=null===(n=t.animate)||void 0===n?void 0:n.parentState;return e&&e.nodesWillExit?(this.continuous||e.continuous)&&(e.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}},{key:"getClipWidth",value:function(t,n){var e=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==e?e:function(){var e=_(n.props,"x");return e?Math.abs(e[1]-e[0]):t.width}()}},{key:"render",value:function(){var t,n=this,e=this.pickProps(),r=null!==(t=this.props.animate)&&void 0!==t&&t.getTransitions?this.props.animate.getTransitions:vl(e,this.state,(function(t){return n.setState(t)})),o=l().Children.toArray(e.children)[0],i=r(o);this.transitionProps=i;var a={x:this.getDomainFromChildren(this.pickDomainProps(e),"x"),y:this.getDomainFromChildren(e,"y")},u=this.getClipWidth(e,o),c=j()({domain:a,clipWidth:u},i,o.props),s=(e.animationWhitelist||[]).concat(["clipWidth"]),f=s.length?m()(c,s):c;return l().createElement(cl,ml({},c.animate,{data:f}),(function(t){if(o.props.groupComponent){var e=n.continuous?l().cloneElement(o.props.groupComponent,{clipWidth:t.clipWidth||0}):o.props.groupComponent;return l().cloneElement(o,j()({animate:null,animating:!0,groupComponent:e},t,c))}return l().cloneElement(o,j()({animate:null,animating:!0},t,c))}))}}],e&&gl(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),a}(l().Component);function jl(t){return function(t){if(Array.isArray(t))return kl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return kl(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?kl(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kl(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function El(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Ml(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Al(t,n,e){return n&&Ml(t.prototype,n),e&&Ml(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sl(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&Pl(t,n)}function Pl(t,n){return Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Pl(t,n)}function Cl(t){var n=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 e,r=Dl(t);if(n){var o=Dl(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Tl(this,e)}}function Tl(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return _l(t)}function _l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dl(t){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dl(t)}wl.displayName="VictoryTransition",wl.propTypes={animate:f().oneOfType([f().bool,f().object]),animationWhitelist:f().array,children:f().node},wl.contextType=da;var Il=function(t){return!i()(t._x)&&!i()(t._y)},Ll=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}],Nl=r(5168),ql=r.n(Nl),Rl=r(9056),Ul=r.n(Rl),Wl=(r(8999),r(8254)),Fl=r.n(Wl),zl=r(1950),Hl=r.n(zl),$l=r(8825),Bl=r.n($l);function Yl(t){return!(!t||!t["@@__IMMUTABLE_ITERABLE__@@"])}function Kl(t,n){return Yl(t)?t.reduce((function(t,e,r){return n&&n[r]&&(e=Kl(e)),t[r]=e,t}),function(t){return!(!t||!t["@@__IMMUTABLE_LIST__@@"])}(t)?[]:{}):t}function Vl(t){return function(t){if(Array.isArray(t))return Gl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return Gl(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Gl(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gl(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Ql(t){var n;return Yl(n=t)||function(t){return!(!t||!t["@@__IMMUTABLE_RECORD__@@"])}(n)?Kl(t,{errorX:!0,errorY:!0}):t}function Zl(t,n){var e=(K()(t.domain)?t.domain[n]:t.domain)||ji(t,n).domain(),r=t.samples||1,o=Math.max.apply(Math,Vl(e)),i=Math.min.apply(Math,Vl(e)),a=(o-i)/r,u=Bl()(i,o,a);return Hl()(u)===o?u:u.concat(o)}function Xl(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!n)return t;"x"!==n&&"y"!==n||(n="_".concat(n));var r="ascending"===e?"asc":"desc";return Xc()(t,n,r)}function Jl(t,n){var e=function(t,n){var e=t.tickValues,r=t.tickFormat;return(e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[]).filter((function(t){return"string"==typeof t}))}(t,n),r=es(t,n),o=function(t,n){if(!Array.isArray(t.data)&&!Yl(t.data))return[];var e=D(void 0===t[n]?n:t[n]);return Xl(t.data.reduce((function(t,n){return t.push(Ql(n)),t}),[]),t.sortKey,t.sortOrder).reduce((function(t,n){return n=Ql(n),t.push(e(n)),t}),[]).filter((function(t){return"string"==typeof t})).reduce((function(t,n){return null!=n&&-1===t.indexOf(n)&&t.push(n),t}),[])}(t,n),i=Gu()([].concat(Vl(e),Vl(r),Vl(o)));return 0===i.length?null:i.reduce((function(t,n,e){return t[n]=e+1,t}),{})}function ts(t,n,e){if(!Array.isArray(t)&&!Yl(t)||function(t){return Yl(t)?t.size:t.length}(t)<1)return[];var r,o=["x","y","y0"],i=(e=Array.isArray(e)?e:o).reduce((function(t,e){var r;return t[e]=D(void 0!==n[r=e]?n[r]:r),t}),{}),a=Fl()(e,o)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;!1===a&&(r={x:-1!==e.indexOf("x")?Jl(n,"x"):void 0,y:-1!==e.indexOf("y")?Jl(n,"y"):void 0,y0:-1!==e.indexOf("y0")?Jl(n,"y"):void 0});var u=a?t:t.reduce((function(t,n,o){var a={x:o,y:n=Ql(n)},u=e.reduce((function(t,e){var o=i[e](n),u=void 0!==o?o:a[e];return void 0!==u&&("string"==typeof u&&r[e]?(t["".concat(e,"Name")]=u,t["_".concat(e)]=r[e][u]):t["_".concat(e)]=u),t}),{}),c=y()({},u,n);return Ra()(c)||t.push(c),t}),[]),c=function(t,n){var e=1/Number.MAX_SAFE_INTEGER,r={x:ki(n,"x"),y:ki(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;var o=function(t,n){return"log"!==r[n]||0!==t["_".concat(n)]};return t.map((function(t){return o(t,"x")&&o(t,"y")&&o(t,"y0")?t:function(t){var n=o(t,"x")?t._x:e,r=o(t,"y")?t._y:e,i=o(t,"y0")?t._y0:e;return y()({},t,{_x:n,_y:r,_y0:i})}(t)}))}(Xl(u,n.sortKey,n.sortOrder),n);return function(t,n){var e,r=!!t.eventKey,o=(e=t.eventKey,O()(e)?e:null==e?function(){}:b()(e));return n.map((function(t,n){if(void 0!==t.eventKey)return t;if(r){var e=o(t,n);return void 0!==e?y()({eventKey:e},t):t}return t}))}(n,c)}function ns(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function es(t,n){if(!t.categories)return[];var e=ns(t,n),r=e&&e.filter((function(t){return"string"==typeof t}));return r?r.filter((function(t){return void 0!==t})):[]}var rs=r(4295),os=r.n(rs),is=r(2829),as=r.n(is);function us(t){return function(t){if(Array.isArray(t))return cs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return cs(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?cs(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cs(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function ls(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(t){return"max"===e?Math.max.apply(Math,us(t)):Math.min.apply(Math,us(t))},o="max"===e?-1/0:1/0,i=!1,a=u()(t).reduce((function(t,e){var o=void 0!==e["_".concat(n,"0")]?e["_".concat(n,"0")]:e["_".concat(n)],a=void 0!==e["_".concat(n,"1")]?e["_".concat(n,"1")]:e["_".concat(n)],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function ss(t,n){return t=O()(t)?t:ps,n=O()(n)?n:fs,function(e,r){var o=function(t,n){var e=ys(t,n),r=hs(t,n);return K()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?ds(e,r):void 0}(e,r);if(o)return n(o,e,r);var i=ns(e,r),a=i?function(t,n,e){e=e||ns(t,n);var r=t.polar,o=t.startAngle,i=void 0===o?0:o,a=t.endAngle,u=void 0===a?360:a;if(e){var c,l=ys(t,n),s=hs(t,n),f=(c=e,Array.isArray(c)&&c.some((function(t){return"string"==typeof t}))?es(t,n):[]),p=0===f.length?null:f.reduce((function(t,n,e){return t[n]=e+1,t}),{}),d=p?e.map((function(t){return p[t]})):e,h=ds(void 0!==l?l:tt(d),void 0!==s?s:J(d));return r&&"x"===n&&360===Math.abs(i-u)?vs(h,d):h}}(e,r,i):t(e,r);return a?n(a,e,r):void 0}}function fs(t,n,e){return function(t,n,e){return"log"!==ki(n,e)?t:(o=(r=t)[0]<0||r[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===r[0]?o:r[0],0===r[1]?o:r[1]]);var r,o}(function(t,n,e){if(!n.domainPadding)return t;var r=ys(n,e),o=hs(n,e),i=function(t,n){var e=function(t){return Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t}};return K()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!i.left&&!i.right)return t;var a=tt(t),u=J(t),c=function(t,n){return n?"x"===t?"y":"x":t}(e,n.horizontal),l=_(n,c),s=Math.abs(l[0]-l[1]),f=Math.max(s-i.left-i.right,1),p=Math.abs(u.valueOf()-a.valueOf())/f*s,d=p*i.left/s,h=p*i.right/s,y={min:a.valueOf()-d,max:u.valueOf()+h},v=K()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,m=function(t,n){return"min"===n&&a>=0&&t<=0||"max"===n&&u<=0&&t>=0?0:t};if((a>=0&&y.min<=0||u<=0&&y.max>=0)&&!1!==v){var g={left:Math.abs(u-a)*i.left/s,right:Math.abs(u-a)*i.right/s},b={min:m(a.valueOf()-g.left,"min"),max:m(u.valueOf()+g.right,"max")},x={left:Math.abs(b.max-b.min)*i.left/s,right:Math.abs(b.max-b.min)*i.right/s};y={min:m(a.valueOf()-x.left,"min"),max:m(u.valueOf()+x.right,"max")}}var O={min:void 0!==r?r:y.min,max:void 0!==o?o:y.max};return a instanceof Date||u instanceof Date?ds(new Date(O.min),new Date(O.max)):ds(O.min,O.max)}(t,n,e),n,e)}function ps(t,n,e){e=e||function(t){return t.data?ts(t.data,t):ts(function(t){var n=Zl(t,"x"),e=Zl(t,"y");return n.map((function(t,n){return{x:t,y:e[n]}}))}(t),t)}(t);var r=t.polar,o=t.startAngle,i=void 0===o?0:o,a=t.endAngle,c=void 0===a?360:a,l=ys(t,n),s=hs(t,n);if(e.length<1)return void 0!==l&&void 0!==s?ds(l,s):void 0;var f=ds(void 0!==l?l:ls(e,n,"min"),void 0!==s?s:ls(e,n,"max"));return r&&"x"===n&&360===Math.abs(i-c)?vs(f,function(t,n){var e="_".concat(n);return u()(t).map((function(t){return t[e]&&void 0!==t[e][1]?t[e][1]:t[e]}))}(e,n)):f}function ds(t,n){var e,r,o,i;return Number(t)===Number(n)?(r=0===(e=n)?2*Math.pow(10,-10):Math.pow(10,-10),o=e instanceof Date?new Date(Number(e)-1):Number(e)-r,i=e instanceof Date?new Date(Number(e)+1):Number(e)+r,0===e?[0,i]:[o,i]):[t,n]}function hs(t,n){return K()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||os()(t.maxDomain)?t.maxDomain:void 0}function ys(t,n){return K()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||os()(t.minDomain)?t.minDomain:void 0}function vs(t,n){var e=as()(n.sort((function(t,n){return t-n}))),r=e[1]-e[0];return[t[0],t[1]+r]}var ms=["max","min","median","q1","q3"],gs=function(t){return ql()(t)?null:t},bs=function(t){var n=t.map((function(t){return t._y})),e={_q1:gs(je(n,.25)),_q3:gs(je(n,.75)),_min:gs(be(n)),_median:gs(je(n,.5)),_max:gs(ge(n))};return y()({},t[0],e,{_y:t[0]._y})},xs=function(t){var n=ms.concat("x","y"),e=ts(t.data,t,n);return e.length?function(t){var n=function(t){if(t.every((function(t){return ms.every((function(n){return void 0!==t["_".concat(n)]}))}))){var n=t.map((function(t){return t._x}));if(!Gu()(n).length===n.length)throw new Error("\n data prop may only take an array of objects with a unique\n independent variable. Make sure your x values are distinct.\n ");return!0}return!1}(t);if(n)return t;var e=t.every((function(t){return Array.isArray(t._x)})),r=t.every((function(t){return Array.isArray(t._y)})),o="_y";if(e)throw new Error("\n data should not be given as in array for x\n ");if(r)return t.map((function(t){var n=t._y.map((function(n){return y()({},t,function(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t._y=e,t}({},o,n))})),e=Xc()(n,o);return bs(e)}));var i=Ul()(t,"_x");return d()(i).map((function(t){var n=i[t],e=Xc()(n,o);return bs(e)}))}(e):[]},Os=function(t,n){var e=ys(t,n),r=hs(t,n),o=xs(t);return o.length<1?void 0!==e&&void 0!==r?ds(e,r):void 0:"y"===n?function(t,n,e){var r=ys(n,e),o=hs(n,e);return ds(void 0!==r?r:t.reduce((function(t,n){return t<n._min?t:n._min}),1/0),void 0!==o?o:t.reduce((function(t,n){return t>n._max?t:n._max}),-1/0))}(o,t,n):function(t,n,e){var r=ys(n,e),o=hs(n,e);return ds(void 0!==r?r:t.reduce((function(t,n){return t<n["_".concat(e)]?t:n["_".concat(e)]}),1/0),void 0!==o?o:t.reduce((function(t,n){return t>n["_".concat(e)]?t:n["_".concat(e)]}),-1/0))}(o,t,n)},ws=function(t,n){return ss(Os)(t,n)},js=function(t,n,e){var r=t["".concat(e,"LabelComponent")]||t.labelComponent,o=n["".concat(e,"Labels")]||n.labels;if(!A(r))return o;var i=t.theme&&t.theme.tooltip||{};return j()({},i.style,o)},ks=function(t,n){var e=I(t,n,"boxplot"),r=t=y()({},e,function(t){var n=t.theme,e=t.horizontal,r=xs(t),o={x:_(t,"x"),y:_(t,"y")},i={x:ws(t,"x"),y:ws(t,"y")},a={x:ji(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:ji(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=function(t,n){if(t.disableInlineStyles)return{};var e=t.style||{};n=n||{};var r=j()({},e.labels,js(t,n)),o=j()({},e.boxes,n.boxes),i=j()({},e.whiskers,n.whiskers);return{boxes:o,labels:r,parent:j()({},e.parent,n.parent,{height:"100%",width:"100%"}),max:j()({},e.max,n.max,i),maxLabels:j()({},e.maxLabels,js(t,n,"max"),r),median:j()({},e.median,n.median,i),medianLabels:j()({},e.medianLabels,js(t,n,"median"),r),min:j()({},e.min,n.min,i),minLabels:j()({},e.minLabels,js(t,n,"min"),r),q1:j()({},e.q1,n.q1,o),q1Labels:j()({},e.q1Labels,js(t,n,"q1"),r),q3:j()({},e.q3,n.q3,o),q3Labels:j()({},e.q3Labels,js(t,n,"q3"),r),whiskers:i}}(t,n&&n.boxplot&&n.boxplot.style?n.boxplot.style:{}),c=t.horizontal?"top":"right";return{data:r,horizontal:e,domain:i,scale:a,style:u,labelOrientation:t.labelOrientation||c,boxWidth:t.boxWidth||1}}(e)),o=r.groupComponent,a=r.width,u=r.height,c=r.padding,l=r.standalone,s=r.theme,f=r.events,p=r.sharedEvents,d=r.scale,h=r.horizontal,v=r.data,m=r.style,g=r.domain,b=r.name,x={parent:{domain:g,scale:d,width:a,height:u,data:v,standalone:l,name:b,theme:s,style:m.parent||{},padding:c,groupComponent:o,horizontal:h}},O=d.y;return v.reduce((function(n,e,r){var o=i()(e.eventKey)?r:e.eventKey;if(function(t,n){var e,r,o=function(t){return void 0!==t},i=t._x,a=t._min,u=t._max,c=tt(n.x),l=J(n.x),s=tt(n.y),f=J(n.y),p=function(t){return function(n){return o(n)&&n<t}},d=function(t){return function(n){return o(n)&&n>t}},h=p(c),y=p(s),v=d(l),m=d(f);return(h(i)||v(i))&&(r=!0),(y(a)&&y(u)||m(a)&&m(u))&&(e=!0),e||r}(e,g))return n;var a={x:h?d.y(e._y):d.x(e._x),y:h?d.x(e._x):d.y(e._y),min:O(e._min),max:O(e._max),median:O(e._median),q1:O(e._q1),q3:O(e._q3)},u=y()({index:r,datum:e,positions:a},t),c=ms.reduce((function(t,n){return t[n]=function(t,n){return"median"===n?function(t){var n=t.boxWidth,e=t.horizontal,r=t.style,o=t.datum,i=t.scale,a=t.index,u=t.disableInlineStyles,c=t.positions,l=c.median,s=c.x,f=c.y;return{datum:o,scale:i,index:a,x1:e?l:s-n/2,y1:e?f-n/2:l,x2:e?l:s+n/2,y2:e?f+n/2:l,style:u?{}:r.median,disableInlineStyles:u}}(t):"min"===n||"max"===n?function(t,n){var e=t.horizontal,r=t.style,o=t.boxWidth,i=t.whiskerWidth,a=t.datum,u=t.scale,c=t.index,l=t.disableInlineStyles,s=t.positions,f=s.min,p=s.max,d=s.q1,h=s.q3,y=s.x,v=s.y,m="min"===n?d:h,g="min"===n?f:p,b="number"==typeof i?i:o;return{datum:a,index:c,scale:u,majorWhisker:{x1:e?m:y,y1:e?v:m,x2:e?g:y,y2:e?v:g},minorWhisker:{x1:e?g:y-b/2,y1:e?v-b/2:g,x2:e?g:y+b/2,y2:e?v+b/2:g},style:l?{}:r[n]||r.whisker,disableInlineStyles:l}}(t,n):function(t,n){var e=t.horizontal,r=t.boxWidth,o=t.style,i=t.scale,a=t.datum,u=t.index,c=t.disableInlineStyles,l=t.positions,s=l.median,f=l.q1,p=l.q3,d=l.x,h=l.y;return{datum:a,scale:i,index:u,x:e?"q1"===n?f:s:d-r/2,y:e?h-r/2:"q1"===n?s:p,width:e?"q1"===n?s-f:p-s:r,height:e?r:"q1"===n?f-s:s-p,style:c?{}:o[n]||o.boxes,disableInlineStyles:c}}(t,n)}(u,n),t}),{});return n[o]=c,ms.forEach((function(e){var r=function(t,n){var e=t.datum,r=t.index,o=t.labels,i=t["".concat(n,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(n);return"".concat(e[a])}return Array.isArray(i)?i[r]:i}(u,e),i=t.labels||t["".concat(e,"Labels")];if(null!=r||i&&(f||p)){var a="".concat(e,"Labels");n[o][a]=function(t,n,e){var r=t.datum,o=t.positions,i=t.index,a=t.boxWidth,u=t.horizontal,c=t.labelOrientation,l=t.style,s=t.theme,f=t.disableInlineStyles,p=function(t,n){return"object"==typeof t&&t[n]||t}(c,e),d=l["".concat(e,"Labels")]||l.labels,h="number"==typeof t.whiskerWidth?t.whiskerWidth:a,y="min"===e||"max"===e?h:a,v=function(t){var n={x:"left"===p?-1:1,y:"top"===p?-1:1};return n[t]*y/2+n[t]*(d.padding||0)},m={text:n,datum:r,index:i,orientation:p,style:f?{}:d,y:u?o.y:o[e],x:u?o[e]:o.x,dy:u?v("y"):0,dx:u?0:v("x"),textAnchor:d.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[p],verticalAnchor:d.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[p],angle:d.angle,horizontal:u,disableInlineStyles:f};if(!A(t["".concat(e,"LabelComponent")]))return m;var g=s&&s.tooltip||{};return j()({},m,k(g,["style"]))}(y()({},t,u),r,e)}})),n}),x)};function Es(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Ms(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Es(Object(e),!0).forEach((function(n){As(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Es(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function As(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Ss(t){return function(t){if(Array.isArray(t))return Ps(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return Ps(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ps(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ps(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function Cs(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Ts(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _s(t,n){return _s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},_s(t,n)}function Ds(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)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)}function Is(t){return Is=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Is(t)}var Ls={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},Ns=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&_s(t,n)}(s,t);var n,e,r,o,a=(r=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Is(r);if(o){var e=Is(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return Ds(this,t)});function s(){return Cs(this,s),a.apply(this,arguments)}return n=s,(e=[{key:"renderBoxPlot",value:function(t){var n=this,e=["q1","q3","max","min","median"],r=u()(e.map((function(e){return n.dataKeys.reduce((function(r,o,i){var a=t["".concat(e,"Component")],u=n.getComponentProps(a,e,i);return n.shouldRenderDatum(u.datum)&&r.push(l().cloneElement(a,u)),r}),[])}))),o=u()(e.map((function(e){return n.dataKeys.reduce((function(r,o,i){var a="".concat(e,"Labels"),u=t["".concat(e,"LabelComponent")],c=n.getComponentProps(u,a,i);return void 0!==c.text&&null!==c.text&&r.push(l().cloneElement(u,c)),r}),[]).filter(Boolean)}))),i=[].concat(Ss(r),Ss(o));return this.renderContainer(t.groupComponent,i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"shouldRenderDatum",value:function(t){var n=!i()(t._x),e=!i()(t._y);return!(i()(t._min)||i()(t._max)||i()(t._median)||i()(t._q1)||i()(t._q3))&&(this.props.horizontal?e:n)}},{key:"render",value:function(){var t=qs.animationWhitelist,n=qs.role,e=I(this.props,Ls,n);if(this.shouldAnimate())return this.animateComponent(e,t);var r=this.renderBoxPlot(e);return function(t,n){return c.cloneElement(t,F(n))}(e.standalone?this.renderContainer(e.containerComponent,r):r,e)}}])&&Ts(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),s}(l().Component);Ns.animationWhitelist=["data","domain","height","padding","style","width"],Ns.displayName="VictoryBoxPlot",Ns.role="boxplot",Ns.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},Ns.propTypes=Ms(Ms(Ms({},Ni.baseProps),Ni.dataProps),{},{boxWidth:f().number,events:f().arrayOf(f().shape({target:f().oneOf(["max","maxLabels","median","medianLabels","min","minLabels","q1","q1Labels","q3","q3Labels","parent"]),eventKey:f().oneOfType([f().array,Ti([Di,_i]),f().string]),eventHandlers:f().object})),horizontal:f().bool,labelOrientation:f().oneOfType([f().oneOf(["top","bottom","left","right"]),f().shape({q1:f().oneOf(["top","bottom","left","right"]),q3:f().oneOf(["top","bottom","left","right"]),min:f().oneOf(["top","bottom","left","right"]),max:f().oneOf(["top","bottom","left","right"]),median:f().oneOf(["top","bottom","left","right"])})]),labels:f().bool,max:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),maxComponent:f().element,maxLabelComponent:f().element,maxLabels:f().oneOfType([f().func,f().array,f().bool]),median:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),medianComponent:f().element,medianLabelComponent:f().element,medianLabels:f().oneOfType([f().func,f().array,f().bool]),min:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),minComponent:f().element,minLabelComponent:f().element,minLabels:f().oneOfType([f().func,f().array,f().bool]),q1:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),q1Component:f().element,q1LabelComponent:f().element,q1Labels:f().oneOfType([f().func,f().array,f().bool]),q3:f().oneOfType([f().func,Ti([Di,_i]),f().string,f().arrayOf(f().string)]),q3Component:f().element,q3LabelComponent:f().element,q3Labels:f().oneOfType([f().func,f().array,f().bool]),style:f().shape({boxes:f().object,labels:f().object,parent:f().object,max:f().object,maxLabels:f().object,median:f().object,medianLabels:f().object,min:f().object,minLabels:f().object,q1:f().object,q1Labels:f().object,q3:f().object,q3Labels:f().object,whiskers:f().object}),whiskerWidth:f().number}),Ns.defaultProps={containerComponent:l().createElement(wa,null),data:[{x:1,min:5,q1:7,median:12,q3:18,max:20},{x:2,min:2,q1:5,median:8,q3:12,max:15}],dataComponent:l().createElement(Pa,null),groupComponent:l().createElement("g",{role:"presentation"}),maxComponent:l().createElement(Na,null),maxLabelComponent:l().createElement(Ou,null),medianComponent:l().createElement(Eu,null),medianLabelComponent:l().createElement(Ou,null),minComponent:l().createElement(Na,null),minLabelComponent:l().createElement(Ou,null),q1Component:l().createElement(Pa,null),q1LabelComponent:l().createElement(Ou,null),q3Component:l().createElement(Pa,null),q3LabelComponent:l().createElement(Ou,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Hu.grayscale},Ns.getDomain=ws,Ns.getData=xs,Ns.getBaseProps=function(t){return ks(t,Ls)},Ns.expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];var qs=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=function(e){Sl(o,e);var r=Cl(o);function o(t){var n;return El(this,o),(n=r.call(this,t)).state={},n.getEventState=uc.bind(_l(n)),n.getScopedEvents=ic.bind(_l(n)),n.getEvents=function(t,e,r){return oc.call(_l(n),t,e,r,n.getScopedEvents)},n.externalMutations=n.getExternalMutations(n.props),n.calculatedState=n.getStateChanges(n.props),n.globalEvents={},n.prevGlobalEventKeys=[],n.boundGlobalEvents={},n.cacheValues(n.getCalculatedValues(t)),n}return Al(o,[{key:"shouldComponentUpdate",value:function(t){var n=this.getExternalMutations(t),e=this.props.animating||this.props.animate,r=!vc()(n,this.externalMutations);if(e||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=n,this.applyExternalMutations(t,n),!0;var o=this.getStateChanges(t);return vc()(this.calculatedState,o)?!vc()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}},{key:"componentDidMount",value:function(){var t=this,n=d()(this.globalEvents);n.forEach((function(n){return t.addGlobalListener(n)})),this.prevGlobalEventKeys=n}},{key:"componentDidUpdate",value:function(t){var n=this,e=this.getStateChanges(t);this.calculatedState=e;var r=d()(this.globalEvents);Ku()(this.prevGlobalEventKeys,r).forEach((function(t){return n.removeGlobalListener(t)})),Ku()(r,this.prevGlobalEventKeys).forEach((function(t){return n.addGlobalListener(t)})),this.prevGlobalEventKeys=r}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(n){return t.removeGlobalListener(n)}))}},{key:"addGlobalListener",value:function(t){var n=this,e=function(e){var r=n.globalEvents[t];return r&&r(hc(e))};this.boundGlobalEvents[t]=e,window.addEventListener(fc(t),e)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(fc(t),this.boundGlobalEvents[t])}},{key:"getStateChanges",value:function(t){var e=this;if(!this.hasEvents)return{};var r=function(t,n){var r=j()({},e.getEventState(t,n),e.getSharedEventState(t,n));return Ra()(r)?void 0:r};return(n.components||Ll).map((function(n){if(t.standalone||"parent"!==n.name)return void 0!==n.index?r(n.index,n.name):e.dataKeys.map((function(t){return r(t,n.name)})).filter(Boolean)})).filter(Boolean)}},{key:"applyExternalMutations",value:function(t,n){if(!Ra()(n)){var e=t.externalEventMutations.reduce((function(t,n){return O()(n.callback)?t.concat(n.callback):t}),[]),r=e.length?function(){e.forEach((function(t){return t()}))}:void 0;this.setState(n,r)}}},{key:"getCalculatedValues",value:function(n){var e=n.sharedEvents,r=sc(n,t.expectedComponents),o=e&&O()(e.getEventState)?e.getEventState:function(){},i=this.getBaseProps(n,o);return{componentEvents:r,getSharedEventState:o,baseProps:i,dataKeys:d()(i).filter((function(t){return"parent"!==t})),hasEvents:n.events||n.sharedEvents||r,events:this.getAllEvents(n)}}},{key:"getExternalMutations",value:function(t){var n=t.sharedEvents,e=t.externalEventMutations;return Ra()(e)||n?void 0:cc(e,this.baseProps,this.state)}},{key:"cacheValues",value:function(t){var n=this;d()(t).forEach((function(e){n[e]=t[e]}))}},{key:"getBaseProps",value:function(n,e){var r=(e=e||this.getSharedEventState.bind(this))("parent","parent"),o=this.getEventState("parent","parent"),i=j()({},o,r),a=i.parentControlledProps,u=a?m()(i,a):{},c=j()({},u,n);return"function"==typeof t.getBaseProps?t.getBaseProps(c):{}}},{key:"getAllEvents",value:function(t){var n;return Array.isArray(this.componentEvents)?Array.isArray(t.events)?(n=this.componentEvents).concat.apply(n,jl(t.events)):this.componentEvents:t.events}},{key:"getComponentProps",value:function(n,e,r){var o=this.props.name||t.role,i=this.dataKeys&&this.dataKeys[r]||r,a="".concat(o,"-").concat(e,"-").concat(i),u=this.baseProps[i]&&this.baseProps[i][e]||this.baseProps[i];if(u||this.hasEvents){if(this.hasEvents){var c=this.getEvents(this.props,e,i),l=j()({index:r,key:a},this.getEventState(i,e),this.getSharedEventState(i,e),n.props,u,{id:a}),s=j()({},ac(c,i,l),l.events);return y()({},l,{events:s})}return j()({index:r,key:a},n.props,u,{id:a})}}},{key:"renderContainer",value:function(t,n){var e=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return e.events&&(this.globalEvents=pc(e.events),e.events=dc(e.events)),l().cloneElement(t,e,n)}},{key:"animateComponent",value:function(t,n){var e,r="object"==typeof t.animate&&(null===(e=t.animate)||void 0===e?void 0:e.animationWhitelist)||n,o=this.constructor;return l().createElement(wl,{animate:t.animate,animationWhitelist:r},l().createElement(o,t))}},{key:"renderContinuousData",value:function(t){var n=this,e=t.dataComponent,r=t.labelComponent,o=t.groupComponent,i=Bu()(this.dataKeys,"all").reduce((function(t,e){var o=n.getComponentProps(r,"labels",e);return o&&void 0!==o.text&&null!==o.text&&(t=t.concat(l().cloneElement(r,o))),t}),[]),a=this.getComponentProps(e,"data","all"),u=[l().cloneElement(e,a)].concat(jl(i));return this.renderContainer(o,u)}},{key:"renderData",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Il,r=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=this.dataKeys.reduce((function(t,o,i){var a=n.getComponentProps(r,"data",i);return e(a.datum)&&t.push(l().cloneElement(r,a)),t}),[]),u=this.dataKeys.map((function(t,e){var r=n.getComponentProps(o,"labels",e);if(void 0!==r.text&&null!==r.text)return l().cloneElement(o,r)})).filter(Boolean),c=[].concat(jl(a),jl(u));return this.renderContainer(i,c)}}]),o}(t);return e}(Ns,{components:[{name:"min"},{name:"minLabels"},{name:"max"},{name:"maxLabels"},{name:"median"},{name:"medianLabels"},{name:"q1"},{name:"q1Labels"},{name:"q3"},{name:"q3Labels"},{name:"parent",index:"parent"}]})})(),o})()));
|
|
2
2
|
//# sourceMappingURL=victory-box-plot.min.js.map
|