victory-tooltip
Advanced tools
Comparing version 34.3.5 to 34.3.6
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryTooltip=e(require("react")):t.VictoryTooltip=e(t.React)}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=113)}([function(t,e,n){t.exports=n(93)()},function(t,e,n){var r=n(22),a=n(91),o=n(92),i=n(23),l=n(47),u=n(16),c=Object.prototype.hasOwnProperty,f=o((function(t,e){if(l(e)||i(e))a(e,u(e),t);else for(var n in e)c.call(e,n)&&r(t,n,e[n])}));t.exports=f},function(e,n){e.exports=t},function(t,e,n){var r=n(42),a=n(14),o=n(45),i=n(88),l=Object.prototype,u=l.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var f=e[n],s=i(f),p=-1,y=s.length;++p<y;){var d=s[p],v=t[d];(void 0===v||a(v,l[d])&&!u.call(t,d))&&(t[d]=f[d])}return t}));t.exports=c},function(t,e,n){var r=n(21),a=n(11);t.exports=function(t){if(!a(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(21),a=n(86),o=n(15),i=Function.prototype,l=Object.prototype,u=i.toString,c=l.hasOwnProperty,f=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=a(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(7);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r=n(14);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(5),a=n(18),o=n(73),i=n(35);t.exports=function(t,e){return r(t)?t:a(t,e)?[t]:o(i(t))}},function(t,e,n){var r=n(54),a=n(71),o=n(20),i=n(5),l=n(24);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?i(t)?a(t[0],t[1]):r(t):l(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(12),a=n(8);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(5),a=n(7),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!a(t))||(i.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(t){return t}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(46),a=n(14),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var i=t[e];o.call(t,e)&&a(i,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(4),a=n(40);t.exports=function(t){return null!=t&&a(t.length)&&!r(t)}},function(t,e,n){var r=n(80),a=n(81),o=n(18),i=n(8);t.exports=function(t){return o(t)?r(i(t)):a(t)}},function(t,e,n){var r=n(95),a=n(98)((function(t,e){return null==t?{}:r(t,e)}));t.exports=a},function(t,e,n){var r=n(112),a=n(30),o=n(19),i=n(5),l=n(23),u=n(31),c=n(47),f=n(32),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(l(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||f(t)||o(t)))return!t.length;var e=a(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}},function(t,e,n){var r=n(56),a=n(57),o=n(58),i=n(59),l=n(60);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=i,u.prototype.set=l,t.exports=u},function(t,e,n){var r=n(61),a=n(15);t.exports=function t(e,n,o,i,l){return e===n||(null==e||null==n||!a(e)&&!a(n)?e!=e&&n!=n:r(e,n,o,i,t,l))}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(11);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){var r=n(75);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(76).Symbol;t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(77))},function(t,e,n){var r=n(78),a=n(79);t.exports=function(t,e){return null!=t&&a(t,e,r)}},function(t,e){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}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(20),a=n(43),o=n(44);t.exports=function(t,e){return o(a(t,e,r),t+"")}},function(t,e,n){var r=n(87),a=Math.max;t.exports=function(t,e,n){return e=a(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,l=a(o.length-e,0),u=Array(l);++i<l;)u[i]=o[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=o[i];return c[e]=n(u),r(t,this,c)}}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(89);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(53),a=n(5);t.exports=function(t,e,n,o){return null==t?[]:(a(e)||(e=null==e?[]:[e]),a(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},function(t,e,n){var r=n(35),a=0;t.exports=function(t){var e=++a;return r(t)+e}},function(t,e,n){var r=n(103),a=n(41),o=n(104),i=o&&o.isRegExp,l=i?a(i):r;t.exports=l},function(t,e,n){var r=n(106)(n(107));t.exports=r},,function(t,e,n){var r=n(27),a=n(13),o=n(82),i=n(83),l=n(41),u=n(84),c=n(20);t.exports=function(t,e,n){var f=-1;e=r(e.length?e:[c],l(a));var s=o(t,(function(t,n,a){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return i(s,(function(t,e){return u(t,e,n)}))}},function(t,e,n){var r=n(55),a=n(70),o=n(34);t.exports=function(t){var e=a(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(28),a=n(29);t.exports=function(t,e,n,o){var i=n.length,l=i,u=!o;if(null==t)return!l;for(t=Object(t);i--;){var c=n[i];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<l;){var f=(c=n[i])[0],s=t[f],p=c[1];if(u&&c[2]){if(void 0===s&&!(f in t))return!1}else{var y=new r;if(o)var d=o(s,p,f,t,e,y);if(!(void 0===d?a(p,s,3,o,y):d))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(9),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(9);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(9);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(9);t.exports=function(t,e){var n=this.__data__,a=r(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},function(t,e,n){var r=n(28),a=n(62),o=n(67),i=n(68),l=n(30),u=n(5),c=n(31),f=n(32),s="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,d,v){var h=u(t),g=u(e),b=h?"[object Array]":l(t),m=g?"[object Array]":l(e),x=(b="[object Arguments]"==b?s:b)==s,O=(m="[object Arguments]"==m?s:m)==s,P=b==m;if(P&&c(t)){if(!c(e))return!1;h=!0,x=!1}if(P&&!x)return v||(v=new r),h||f(t)?a(t,e,n,y,d,v):o(t,e,b,n,y,d,v);if(!(1&n)){var A=x&&p.call(t,"__wrapped__"),j=O&&p.call(e,"__wrapped__");if(A||j){var k=A?t.value():t,T=j?e.value():e;return v||(v=new r),d(k,T,n,y,v)}}return!!P&&(v||(v=new r),i(t,e,n,y,d,v))}},function(t,e,n){var r=n(63),a=n(64),o=n(65);t.exports=function(t,e,n,i,l,u){var c=1&n,f=t.length,s=e.length;if(f!=s&&!(c&&s>f))return!1;var p=u.get(t);if(p&&u.get(e))return p==e;var y=-1,d=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++y<f;){var h=t[y],g=e[y];if(i)var b=c?i(g,h,y,e,t,u):i(h,g,y,t,e,u);if(void 0!==b){if(b)continue;d=!1;break}if(v){if(!a(e,(function(t,e){if(!o(v,e)&&(h===t||l(h,t,n,i,u)))return v.push(e)}))){d=!1;break}}else if(h!==g&&!l(h,g,n,i,u)){d=!1;break}}return u.delete(t),u.delete(e),d}},function(t,e,n){var r=n(5);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(66);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(69),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,i,l){var u=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!u)return!1;for(var s=f;s--;){var p=c[s];if(!(u?p in e:a.call(e,p)))return!1}var y=l.get(t);if(y&&l.get(e))return y==e;var d=!0;l.set(t,e),l.set(e,t);for(var v=u;++s<f;){var h=t[p=c[s]],g=e[p];if(o)var b=u?o(g,h,p,e,t,l):o(h,g,p,t,e,l);if(!(void 0===b?h===g||i(h,g,n,o,l):b)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var m=t.constructor,x=e.constructor;m!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x)&&(d=!1)}return l.delete(t),l.delete(e),d}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(33),a=n(16);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var o=e[n],i=t[o];e[n]=[o,i,r(i)]}return e}},function(t,e,n){var r=n(29),a=n(72),o=n(38),i=n(18),l=n(33),u=n(34),c=n(8);t.exports=function(t,e){return i(t)&&l(e)?u(c(t),e):function(n){var i=a(n,t);return void 0===i&&i===e?o(n,t):r(e,i,3)}}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){var a=null==t?void 0:r(t,e);return void 0===a?n:a}},function(t,e,n){var r=n(74),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,r,a){e.push(r?a.replace(o,"$1"):n||t)})),e}));t.exports=i},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(36),a=n(27),o=n(5),i=n(7),l=r?r.prototype:void 0,u=l?l.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(i(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(37),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();t.exports=o},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(12),a=n(19),o=n(5),i=n(39),l=n(40),u=n(8);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,s=!1;++c<f;){var p=u(e[c]);if(!(s=null!=t&&n(t,p)))break;t=t[p]}return s||++c!=f?s:!!(f=null==t?0:t.length)&&l(f)&&i(p,f)&&(o(t)||a(t))}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(17);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(85);t.exports=function(t,e,n){for(var a=-1,o=t.criteria,i=e.criteria,l=o.length,u=n.length;++a<l;){var c=r(o[a],i[a]);if(c)return a>=u?c:c*("desc"==n[a]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(7);t.exports=function(t,e){if(t!==e){var n=void 0!==t,a=null===t,o=t==t,i=r(t),l=void 0!==e,u=null===e,c=e==e,f=r(e);if(!u&&!f&&!i&&t>e||i&&l&&c&&!u&&!f||a&&l&&c||!n&&c||!o)return 1;if(!a&&!i&&!f&&t<e||f&&n&&o&&!a&&!i||u&&n&&o||!l&&o||!c)return-1}return 0}},function(t,e,n){var r=n(10)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(90),a=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(22),a=n(46);t.exports=function(t,e,n,o){var i=!n;n||(n={});for(var l=-1,u=e.length;++l<u;){var c=e[l],f=o?o(n[c],t[c],c,n,t):void 0;void 0===f&&(f=t[c]),i?a(n,c,f):r(n,c,f)}return n}},function(t,e,n){var r=n(42),a=n(45);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,l&&a(n[0],n[1],l)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var u=n[r];u&&t(e,u,r,i)}return e}))}},function(t,e,n){"use strict";var r=n(94);function a(){}t.exports=function(){function t(t,e,n,a,o,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=a,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(96),a=n(38);t.exports=function(t,e){return r(t,e,(function(e,n){return a(t,n)}))}},function(t,e,n){var r=n(17),a=n(97),o=n(12);t.exports=function(t,e,n){for(var i=-1,l=e.length,u={};++i<l;){var c=e[i],f=r(t,c);n(f,c)&&a(u,o(c,t),f)}return u}},function(t,e,n){var r=n(22),a=n(12),o=n(39),i=n(11),l=n(8);t.exports=function(t,e,n,u){if(!i(t))return t;for(var c=-1,f=(e=a(e,t)).length,s=f-1,p=t;null!=p&&++c<f;){var y=l(e[c]),d=n;if(c!=s){var v=p[y];void 0===(d=u?u(v,y,p):void 0)&&(d=i(v)?v:o(e[c+1])?[]:{})}r(p,y,d),p=p[y]}return t}},function(t,e,n){var r=n(99),a=n(43),o=n(44);t.exports=function(t){return o(a(t,void 0,r),t+"")}},function(t,e,n){var r=n(100);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,e,n){var r=n(101),a=n(102);t.exports=function t(e,n,o,i,l){var u=-1,c=e.length;for(o||(o=a),l||(l=[]);++u<c;){var f=e[u];n>0&&o(f)?n>1?t(f,n-1,o,i,l):r(l,f):i||(l[l.length]=f)}return l}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}},function(t,e,n){var r=n(36),a=n(19),o=n(5),i=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||a(t)||!!(i&&t&&t[i])}},function(t,e,n){var r=n(21),a=n(15);t.exports=function(t){return a(t)&&"[object RegExp]"==r(t)}},function(t,e,n){(function(t){var r=n(37),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===a&&r.process,l=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=l}).call(this,n(105)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(13),a=n(23),o=n(16);t.exports=function(t){return function(e,n,i){var l=Object(e);if(!a(e)){var u=r(n,3);e=o(e),n=function(t){return u(l[t],t,l)}}var c=t(e,n,i);return c>-1?l[u?e[c]:c]:void 0}}},function(t,e,n){var r=n(108),a=n(13),o=n(109),i=Math.max;t.exports=function(t,e,n){var l=null==t?0:t.length;if(!l)return-1;var u=null==n?0:o(n);return u<0&&(u=i(l+u,0)),r(t,a(e,3),u)}},function(t,e){t.exports=function(t,e,n,r){for(var a=t.length,o=n+(r?1:-1);r?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(110);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(111);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(11),a=n(7),o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=l.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):i.test(t)?NaN:+t}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){"use strict";n.r(e);var r=n(48),a=n.n(r),o=n(6),i=n.n(o),l=n(49),u=n.n(l),c=n(3),f=n.n(c),s=n(1),p=n.n(s),y=n(2),d=n.n(y),v=n(0),h=n.n(v),g=n(25),b=n.n(g),m=n(24),x=n.n(m),O=n(4),P=n.n(O);function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function j(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,a=t._x0,o=t._voronoiX,i=t._y,l=t._y1,u=t._y0,c=t._voronoiY,s=e(r)?r:n,p=e(l)?l:i,y={x:e(o)?o:s,x0:e(a)?a:n,y:e(c)?c:p,y0:e(u)?u:i};return f()({},y,t)}function k(t){var e=t.padding,n="number"==typeof e?e:0,r="object"==typeof e?e:{};return{top:r.top||n,bottom:r.bottom||n,left:r.left||n,right:r.right||n}}function T(t,e){return P()(t)?t(e):t}function w(t){return"number"==typeof t?t*(Math.PI/180):t}function S(t){var e=k(t),n=e.left,r=e.right,a=e.top,o=e.bottom,i=t.width,l=t.height;return Math.min(i-n-r,l-a-o)/2}function E(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var e=function(t){return t.reduce((function(t,n){var r=n.props||{};return t||r.horizontal||!r.children?t=t||r.horizontal:e(d.a.Children.toArray(r.children))}),!1)};return e(d.a.Children.toArray(t.children))}var C={omit:A,getPoint:j,scalePoint:function(t,e){var n=t.scale,r=t.polar,a=t.horizontal,o=j(e),i=t.origin||{x:0,y:0},l=a?n.y(o.y):n.x(o.x),u=a?n.y(o.y0):n.x(o.x0),c=a?n.x(o.x):n.y(o.y),f=a?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(l)+i.x:l,x0:r?f*Math.cos(u)+i.x:u,y:r?-c*Math.sin(l)+i.y:c,y0:r?-f*Math.sin(u)+i.x:f}},getPadding:k,getStyles:function(t,e){if(!t)return f()({parent:{height:"100%",width:"100%"}},e);var n=t.data,r=t.labels,a=t.parent,o=e&&e.parent||{},i=e&&e.labels||{},l=e&&e.data||{};return{parent:f()({},a,o,{width:"100%",height:"100%"}),labels:f()({},r,i),data:f()({},n,l)}},evaluateProp:T,evaluateStyle:function(t,e){return t&&Object.keys(t).some((function(e){return P()(t[e])}))?Object.keys(t).reduce((function(n,r){return n[r]=T(t[r],e),n}),{}):t},degreesToRadians:w,radiansToDegrees:function(t){return"number"==typeof t?t/(Math.PI/180):t},getRadius:S,getPolarOrigin:function(t){var e=t.width,n=t.height,r=k(t),a=r.top,o=r.bottom,i=r.left,l=r.right,u=Math.min(e-i-l,n-a-o)/2,c=e/2+i-l,f=n/2+a-o;return{x:c+u>e?u+i-l:c,y:f+u>n?u+a-o:f}},getRange:function(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[w(t.startAngle||0),w(t.endAngle||360)]:[t.innerRadius||0,S(t)]}(t,e):function(t,e){var n="x"!==e,r=k(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)},createAccessor:function(t){return P()(t)?t:null==t?function(t){return t}:x()(t)},modifyProps:function(t,e,n){var r=A(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),a=E(t),o=void 0===a?{}:{horizontal:a};return f()(o,t,r,e)},getCurrentAxis:function(t,e){return e?"x"===t?"y":"x":t},reduceChildren:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],i=function(t,l,u){return t.reduce((function(t,r,c){var f=r.type&&r.type.role,s=r.props.name||"".concat(f,"-").concat(l[c]);if(r.props&&r.props.children){var y=p()({},r.props,b()(n,o)),v=r.type&&"stack"===r.type.role&&P()(r.type.getChildren)?r.type.getChildren(y):d.a.Children.toArray(r.props.children).map((function(t){var e=p()({},t.props,b()(y,o));return d.a.cloneElement(t,e)})),h=v.map((function(t,e){return"".concat(s,"-").concat(e)})),g=i(v,h,r);t=a(t,g)}else{var m=e(r,s,u);m&&(t=a(t,m))}return t}),r)},l=t.map((function(t,e){return e}));return i(t,l)},isHorizontal:E};function _(t,e){var n=(e=e||{})._y>=0?1:-1,r=t.style&&t.style.labels||{};return e.verticalAnchor||r.verticalAnchor?e.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":n>=0?"end":"start"}function D(t,e){e=e||{};var n=t.style,r=t.horizontal,a=e._y>=0?1:-1,o=n&&n.labels||{};return e.verticalAnchor||o.verticalAnchor?e.verticalAnchor||o.verticalAnchor:r?a>=0?"start":"end":"middle"}function L(t,e){e=e||{};var n=t.style&&t.style.labels||{};return void 0===e.angle?n.angle:e.angle}function z(t,e,n){if(t.polar)return{};var r=function(t,e){e=e||{};var n=t.horizontal,r=t.style.labels||{},a=C.evaluateProp(r.padding,t)||0,o=e._y<0?-1:1;return{x:n?o*a:0,y:n?0:-1*o*a}}(t,e),a=t.horizontal?-n[1]:n[0],o=t.horizontal?-n[0]:n[1];return{dx:r.x+a,dy:r.y+o}}function W(t,e){var n=t.polar,r=C.scalePoint(t,e),a=r.x,o=r.y;if(n){var i=function(t,e){var n=t.style,r=I(t,e),a=n.labels||{},o=C.evaluateProp(a.padding,t)||0,i=C.degreesToRadians(r);return{x:o*Math.cos(i),y:-o*Math.sin(i)}}(t,e);return{x:a+i.x,y:o+i.y}}return{x:a,y:o}}function N(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar?"perpendicular":"vertical";return n||(e.props&&e.props.labelPlacement||r)}function F(t,e,n){return void 0!==(e=e||{}).label?e.label:Array.isArray(t.labels)?t.labels[n]:t.labels}function M(t,e){var n=N(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"}function R(t,e){var n=N(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(e);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function I(t,e){var n=C.getPoint(e).x;return C.radiansToDegrees(t.scale.x(n))}var H={getText:F,getPolarTextAnchor:M,getPolarVerticalAnchor:R,getPolarAngle:function(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var a,o=void 0!==e?e:I(t,r);return 0===o||180===o?a=90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)},getDegrees:I,getProps:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],r=t.scale,a=t.data,o=t.style,i=t.horizontal,l=t.polar,u=t.width,c=t.height,f=a[e],s=I(t,f),p=l?M(t,s):D(t,f),y=l?R(t,s):_(t,f),d=L(t,f),v=F(t,f,e),h=N(t),g=W(t,f),b=g.x,m=g.y,x=z(t,f,n),O=x.dx,P=x.dy;return{angle:d,data:a,datum:f,horizontal:i,index:e,polar:l,scale:r,labelPlacement:h,text:v,textAnchor:p,verticalAnchor:y,x:b,y:m,dx:O,dy:P,width:u,height:c,style:o.labels}}},B=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],q={width:350,height:350,padding:50},V={fontFamily:"'Roboto', 'Helvetica Neue', Helvetica, sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:"#455A64",stroke:"transparent",strokeWidth:0},G=p()({textAnchor:"middle"},V),K={area:p()({style:{data:{fill:"#212121"},labels:V}},q),axis:p()({style:{axis:{fill:"transparent",stroke:"#90A4AE",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:p()({},G,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"#ECEFF1",strokeDasharray:"10, 5",strokeLinecap:"round",strokeLinejoin:"round",pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"#90A4AE",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},tickLabels:p()({},V,{fill:"#455A64"})}},q),bar:p()({style:{data:{fill:"#455A64",padding:8,strokeWidth:0},labels:V}},q),boxplot:p()({style:{max:{padding:8,stroke:"#455A64",strokeWidth:1},maxLabels:V,median:{padding:8,stroke:"#455A64",strokeWidth:1},medianLabels:V,min:{padding:8,stroke:"#455A64",strokeWidth:1},minLabels:V,q1:{padding:8,fill:"#455A64"},q1Labels:V,q3:{padding:8,fill:"#455A64"},q3Labels:V},boxWidth:20},q),candlestick:p()({style:{data:{stroke:"#455A64"},labels:V},candleColors:{positive:"#ffffff",negative:"#455A64"}},q),chart:q,errorbar:p()({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:V}},q),group:p()({colorScale:B},q),histogram:p()({style:{data:{fill:"#455A64",stroke:"#212121",strokeWidth:2},labels:V}},q),legend:{colorScale:B,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:V,title:p()({},V,{padding:5})}},line:p()({style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:V}},q),pie:p()({colorScale:B,style:{data:{padding:8,stroke:"#ECEFF1",strokeWidth:1},labels:p()({},V,{padding:20})}},q),scatter:p()({style:{data:{fill:"#455A64",opacity:1,stroke:"transparent",strokeWidth:0},labels:V}},q),stack:p()({colorScale:B},q),tooltip:{style:p()({},V,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:p()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:p()({},V,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},q)},$=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],U={width:450,height:300,padding:50,colorScale:$},Z={fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:"#252525",stroke:"transparent"},Y=p()({textAnchor:"middle"},Z),Q={material:K,grayscale:{area:p()({style:{data:{fill:"#252525"},labels:Z}},U),axis:p()({style:{axis:{fill:"transparent",stroke:"#252525",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:p()({},Y,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Z}},U),bar:p()({style:{data:{fill:"#252525",padding:8,strokeWidth:0},labels:Z}},U),boxplot:p()({style:{max:{padding:8,stroke:"#252525",strokeWidth:1},maxLabels:Z,median:{padding:8,stroke:"#252525",strokeWidth:1},medianLabels:Z,min:{padding:8,stroke:"#252525",strokeWidth:1},minLabels:Z,q1:{padding:8,fill:"#969696"},q1Labels:Z,q3:{padding:8,fill:"#969696"},q3Labels:Z},boxWidth:20},U),candlestick:p()({style:{data:{stroke:"#252525",strokeWidth:1},labels:Z},candleColors:{positive:"#ffffff",negative:"#252525"}},U),chart:U,errorbar:p()({borderWidth:8,style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:Z}},U),group:p()({colorScale:$},U),histogram:p()({style:{data:{fill:"#969696",stroke:"#252525",strokeWidth:2},labels:Z}},U),legend:{colorScale:$,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Z,title:p()({},Z,{padding:5})}},line:p()({style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:Z}},U),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:p()({},Z,{padding:20})},colorScale:$,width:400,height:400,padding:50},scatter:p()({style:{data:{fill:"#252525",stroke:"transparent",strokeWidth:0},labels:Z}},U),stack:p()({colorScale:$},U),tooltip:{style:p()({},Z,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:p()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:p()({},Z,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},U)}};function X(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var J={"American Typewriter":2.09,Baskerville:2.51,Georgia:2.27,"Hoefler Text":2.39,Palatino:2.26,"Times New Roman":2.48,Arial:2.26,"Gill Sans":2.47,"Gill Sans 300":2.58,"Helvetica Neue":2.24,"Lucida Grande":2.05,Tahoma:2.25,"Trebuchet MS":2.2,Verdana:1.96,"Courier New":1.67,cursive:1.84,fantasy:2.09,monospace:1.81,serif:2.04,"sans-serif":1.89},tt={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},et={em:1,ex:.5},nt=2.1675,rt=1.25,at=1.05,ot=1.15,it=.2,lt={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},ut=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},ct=function(t,e,n){var r=function(t){return t*Math.PI/180}(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},ft=function(t,e){var n=t.match(/[a-zA-Z%]+/)[0],r=t.match(/[0-9.,]+/);return tt.hasOwnProperty(n)?r*tt[n]:et.hasOwnProperty(n)?(e?r*e:r*lt.fontSize)*et[n]:r},st=function(t,e){var n,r,a=Array.isArray(t)?t[e]:t,o=f()({},a,lt);return p()({},o,{characterConstant:o.characterConstant||(n=o.fontFamily,r=n.split(",")[0].replace(/'|"/g,""),J[r]||nt),letterSpacing:ft(o.letterSpacing,o.fontSize),fontSize:"number"==typeof o.fontSize?o.fontSize:ft(String(o.fontSize))})},pt=function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=function(t,e){return void 0===t||""===t||null===t?0:ut(t).reduce((function(t,n,r){var a=st(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?a.fontSize*ot:a.fontSize,i=0===r?0:a.fontSize*it;return t+a.lineHeight*(o+i)}),0)}(t,e),a=function(t,e){if(void 0===t||""===t||null===t)return 0;var n=ut(t).map((function(t,n){var r=t.toString().length,a=st(e,n);return r*a.fontSize/a.characterConstant+a.letterSpacing*Math.max(r-1,0)}));return Math.max.apply(Math,X(n))}(t,e),o=n?ct(a,r,n):a,i=n?ct(r,a,n):r;return{width:o*rt,height:i*at}},yt=function(t){0},dt=d.a.createContext({});dt.displayName="PortalContext";var vt=dt;function ht(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bt(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var mt=function(t){function e(){return ht(this,e),bt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(yt("`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place"),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,e=this.props.groupComponent,n=t&&t.props||{},r=n.groupComponent?{groupComponent:e,standalone:!1}:{},a=f()(r,n,C.omit(this.props,["children","groupComponent"])),o=t&&d.a.cloneElement(t,a);return this.renderPortal(o)}}])&>(n.prototype,r),a&>(n,a),e}(d.a.Component);Object.defineProperty(mt,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryPortal"}),Object.defineProperty(mt,"role",{configurable:!0,enumerable:!0,writable:!0,value:"portal"}),Object.defineProperty(mt,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:h.a.node,groupComponent:h.a.element}}),Object.defineProperty(mt,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{groupComponent:d.a.createElement("g",null)}}),Object.defineProperty(mt,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:vt});var xt=n(50),Ot=n.n(xt),Pt=n(51),At=n.n(Pt);var jt=function(t){var e=function(e,n,r,a){var o=n[r];if(null==o)return e?new Error("Required `".concat(r,"` was not specified in `").concat(a,"`.")):null;for(var i=arguments.length,l=new Array(i>4?i-4:0),u=4;u<i;u++)l[u-4]=arguments[u];return t.apply(void 0,[n,r,a].concat(l))},n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n},kt=function(){return null},Tt=function(){},wt=function(t){return void 0===t?Tt:null===t?kt:t.constructor},St=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},Et={deprecated:function(t,e){return function(n,r,a){var o=n[r];return null!=o&&yt('"'.concat(r,'" property of "').concat(a,'" has been deprecated ').concat(e)),h.a.checkPropTypes(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},r,t),n,r,a)}},allOfType:function(t){return jt((function(e,n,r){for(var a=arguments.length,o=new Array(a>3?a-3:0),i=3;i<a;i++)o[i-3]=arguments[i];return t.reduce((function(t,a){return t||a.apply(void 0,[e,n,r].concat(o))}),void 0)}))},nonNegative:jt((function(t,e,n){var r=t[e];if("number"!=typeof r||r<0)return new Error("`".concat(e,"` in `").concat(n,"` must be a non-negative number."))})),integer:jt((function(t,e,n){var r=t[e];if("number"!=typeof r||r%1!=0)return new Error("`".concat(e,"` in `").concat(n,"` must be an integer."))})),greaterThanZero:jt((function(t,e,n){var r=t[e];if("number"!=typeof r||r<=0)return new Error("`".concat(e,"` in `").concat(n,"` must be a number greater than zero."))})),domain:jt((function(t,e,n){var r=t[e];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(e,"` in `").concat(n,"` must be an array of two unique numeric values."))})),scale:jt((function(t,e,n){var r,a=["linear","time","log","sqrt"],o=t[e];if(r=o,!(P()(r)?P()(r.copy)&&P()(r.domain)&&P()(r.range):"string"==typeof r&&-1!==a.indexOf(r)))return new Error("`".concat(e,"` in `").concat(n,"` must be a d3 scale."))})),homogeneousArray:jt((function(t,e,n){var r=t[e];if(!Array.isArray(r))return new Error("`".concat(e,"` in `").concat(n,"` must be an array."));if(!(r.length<2)){var a=wt(r[0]),o=At()(r,(function(t){return a!==wt(t)}));if(o){var i=St(r[0]),l=St(o);return new Error("Expected `".concat(e,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(i,"` and ")+"`".concat(l,"`."))}}})),matchDataLength:jt((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),regExp:jt((function(t,e,n){if(t[e]&&!Ot()(t[e]))return new Error("`".concat(e,"` in `").concat(n,"` must be a regular expression."))}))},Ct=n(26),_t=n.n(Ct),Dt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(t,e){return[t,Dt(e)].join(" ")}),Dt(t)).trim();if(null==t||"string"==typeof t)return t;var a=[];for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];a.push("".concat(o,"(").concat(i,")"))}return a.join(" ").trim()},Lt={toTransformString:Dt,getColorScale:function(t){var e={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}},zt=function(t){return d.a.createElement("tspan",t)};var Wt=function(t){var e=t.children,n=t.title,r=t.desc,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,["children","title","desc"]);return d.a.createElement("text",a,n&&d.a.createElement("title",null,n),r&&d.a.createElement("desc",null,r),e)};Wt.propTypes={children:h.a.node,desc:h.a.string,title:h.a.string};var Nt=Wt;function Ft(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mt={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Rt=function(t,e){return t.datum?C.scalePoint(t,t.datum)[e]:0},It=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Mt.fontSize;if("string"==typeof e){var n=+e.replace("px","");return isNaN(n)?(yt("fontSize should be expressed as a number of pixels"),Mt.fontSize):n}return Mt.fontSize},Ht=function(t,e){return C.evaluateProp(t[e],t)},Bt=function(t,e,n){return Array.isArray(t)?_t()(t)?n:e:t},qt=function(t){var e=t.inline,n=t.className,r=t.title,a=t.events,o=t.direction,i=t.text,l=t.style,u=Ht(t,"lineHeight"),c=t.textAnchor?C.evaluateProp(t.textAnchor,t):"start",f=t.dx?C.evaluateProp(t.dx,t):0,s=function(t,e){var n=Array.isArray(t.style)?t.style[0]:t.style;e=Bt(e,e[0],1);var r=n.fontSize,a=t.dy?C.evaluateProp(t.dy,t):0,o=t.text.length,i=Ht(t,"capHeight"),l=n.verticalAnchor||t.verticalAnchor;switch(l?C.evaluateProp(l,t):"middle"){case"end":return a+(i/2+(.5-o)*e)*r;case"middle":return a+(i/2+(.5-o/2)*e)*r;default:return a+(i/2+e/2)*r}}(t,u),p=function(t){var e=t.x,n=t.y,r=t.polar,a=t.style,o=r?H.getPolarAngle(t):0,i=void 0===a.angle?t.angle:a.angle,l=void 0===i?o:i,u=t.transform||a.transform,c=u&&C.evaluateProp(u,t),f=l&&{rotate:[l,e,n]};return c||l?Lt.toTransformString(c,f):void 0}(t),y=void 0!==t.x?t.x:Rt(t,"x"),v=void 0!==t.y?t.y:Rt(t,"y"),h=i.map((function(n,r){var a=l[r]||l[0],o=l[r-1]||l[0],i=(a.fontSize+o.fontSize)/2,s=Bt(u,(u[r]+(u[r-1]||u[0]))/2,1),p={key:"".concat(t.id,"-key-").concat(r),x:e?void 0:t.x,dx:f,dy:r&&!e?s*i:void 0,textAnchor:a.textAnchor||c,style:a,children:n};return d.a.cloneElement(t.tspanComponent,p)}));return d.a.cloneElement(t.textComponent,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Ft(t,e,n[e])}))}return t}({},a,{direction:o,dx:f,dy:s,x:y,y:v,transform:p,className:n,title:r,desc:C.evaluateProp(t.desc,t),tabIndex:C.evaluateProp(t.tabIndex,t),id:t.id}),h)},Vt=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return C.evaluateProp(t,e)}));var n=C.evaluateProp(t,e);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(t.text,t),n=function(t,e){var n=function(t){t=t?f()({},t,Mt):Mt;var n=C.evaluateStyle(t,e);return p()({},n,{fontSize:It(n)})};return Array.isArray(t)&&!_t()(t)?t.map((function(t){return n(t)})):[n(t)]}(t.style,p()({},t,{text:e})),r=C.evaluateProp(t.id,t);return p()({},t,{style:n,text:e,id:r})},Gt=function(t){if(null===(t=Vt(t)).text||void 0===t.text)return null;var e=qt(t);return t.renderInPortal?d.a.createElement(mt,null,e):e};Gt.displayName="VictoryLabel",Gt.role="label",Gt.defaultStyles=Mt,Gt.propTypes={active:h.a.bool,angle:h.a.oneOfType([h.a.string,h.a.number]),capHeight:h.a.oneOfType([h.a.string,Et.nonNegative,h.a.func]),className:h.a.string,data:h.a.array,datum:h.a.any,desc:h.a.oneOfType([h.a.string,h.a.func]),direction:h.a.oneOf(["rtl","ltr","inherit"]),dx:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),dy:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),events:h.a.object,id:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),index:h.a.oneOfType([h.a.number,h.a.string]),inline:h.a.bool,labelPlacement:h.a.oneOf(["parallel","perpendicular","vertical"]),lineHeight:h.a.oneOfType([h.a.string,Et.nonNegative,h.a.func,h.a.array]),origin:h.a.shape({x:Et.nonNegative,y:Et.nonNegative}),polar:h.a.bool,renderInPortal:h.a.bool,scale:h.a.shape({x:Et.scale,y:Et.scale}),style:h.a.oneOfType([h.a.object,h.a.array]),tabIndex:h.a.oneOfType([h.a.number,h.a.func]),text:h.a.oneOfType([h.a.string,h.a.number,h.a.func,h.a.array]),textAnchor:h.a.oneOfType([h.a.oneOf(["start","middle","end","inherit"]),h.a.func]),textComponent:h.a.element,title:h.a.string,transform:h.a.oneOfType([h.a.string,h.a.object,h.a.func]),tspanComponent:h.a.element,verticalAnchor:h.a.oneOfType([h.a.oneOf(["start","middle","end"]),h.a.func]),x:h.a.oneOfType([h.a.number,h.a.string]),y:h.a.oneOfType([h.a.number,h.a.string])},Gt.defaultProps={direction:"inherit",textComponent:d.a.createElement(Nt,null),tspanComponent:d.a.createElement(zt,null),capHeight:.71,lineHeight:1};var Kt=Gt,$t={categories:h.a.oneOfType([h.a.arrayOf(h.a.string),h.a.shape({x:h.a.arrayOf(h.a.string),y:h.a.arrayOf(h.a.string)})]),data:h.a.oneOfType([h.a.array,h.a.object]),dataComponent:h.a.element,labelComponent:h.a.element,labels:h.a.oneOfType([h.a.func,h.a.array]),samples:Et.nonNegative,sortKey:h.a.oneOfType([h.a.func,Et.allOfType([Et.integer,Et.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),sortOrder:h.a.oneOf(["ascending","descending"]),style:h.a.shape({parent:h.a.object,data:h.a.object,labels:h.a.object}),x:h.a.oneOfType([h.a.func,Et.allOfType([Et.integer,Et.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),y:h.a.oneOfType([h.a.func,Et.allOfType([Et.integer,Et.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),y0:h.a.oneOfType([h.a.func,Et.allOfType([Et.integer,Et.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)])},Ut={animate:h.a.oneOfType([h.a.bool,h.a.object]),containerComponent:h.a.element,domain:h.a.oneOfType([Et.domain,h.a.shape({x:Et.domain,y:Et.domain})]),maxDomain:h.a.oneOfType([h.a.number,h.a.instanceOf(Date),h.a.shape({x:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)]),y:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)])})]),minDomain:h.a.oneOfType([h.a.number,h.a.instanceOf(Date),h.a.shape({x:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)]),y:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)])})]),domainPadding:h.a.oneOfType([h.a.shape({x:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)]),y:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)])}),h.a.number,h.a.arrayOf(h.a.number)]),eventKey:h.a.oneOfType([h.a.func,Et.allOfType([Et.integer,Et.nonNegative]),h.a.string]),events:h.a.arrayOf(h.a.shape({target:h.a.oneOf(["data","labels","parent"]),eventKey:h.a.oneOfType([h.a.array,Et.allOfType([Et.integer,Et.nonNegative]),h.a.string]),eventHandlers:h.a.object})),externalEventMutations:h.a.arrayOf(h.a.shape({callback:h.a.function,childName:h.a.oneOfType([h.a.string,h.a.array]),eventKey:h.a.oneOfType([h.a.array,Et.allOfType([Et.integer,Et.nonNegative]),h.a.string]),mutation:h.a.function,target:h.a.oneOfType([h.a.string,h.a.array])})),groupComponent:h.a.element,height:Et.nonNegative,name:h.a.string,origin:h.a.shape({x:h.a.number,y:h.a.number}),padding:h.a.oneOfType([h.a.number,h.a.shape({top:h.a.number,bottom:h.a.number,left:h.a.number,right:h.a.number})]),polar:h.a.bool,range:h.a.oneOfType([Et.domain,h.a.shape({x:Et.domain,y:Et.domain})]),scale:h.a.oneOfType([Et.scale,h.a.shape({x:Et.scale,y:Et.scale})]),sharedEvents:h.a.shape({events:h.a.array,getEventState:h.a.func}),singleQuadrantDomainPadding:h.a.oneOfType([h.a.bool,h.a.shape({x:h.a.oneOfType([h.a.bool]),y:h.a.oneOfType([h.a.bool])})]),standalone:h.a.bool,theme:h.a.object,width:Et.nonNegative},Zt={active:h.a.bool,className:h.a.string,clipPath:h.a.string,data:h.a.oneOfType([h.a.array,h.a.object]),desc:h.a.oneOfType([h.a.string,h.a.func]),events:h.a.object,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),origin:h.a.shape({x:h.a.number,y:h.a.number}),polar:h.a.bool,role:h.a.string,scale:h.a.oneOfType([Et.scale,h.a.shape({x:Et.scale,y:Et.scale})]),shapeRendering:h.a.string,style:h.a.object,tabIndex:h.a.oneOfType([h.a.number,h.a.func]),transform:h.a.string};var Yt=function(t){var e=t.desc,n=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,["desc"]);return e?d.a.createElement("path",n,d.a.createElement("desc",null,e)):d.a.createElement("path",n)};function Qt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Xt(t,e,n[e])}))}return t}function Xt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jt=function(t){var e=t.orientation||"top";return"left"===e||"right"===e?function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,a=t.width,o=t.height,l=t.center,u="left"===r?1:-1,c=t.x+(t.dx||0),f=t.y+(t.dy||0),s=i()(l)&&l.x,p=i()(l)&&l.y,y=s-u*(a/2),d=s+u*(a/2),v=p+o/2,h=p-o/2,g=u*(c-y)>0?0:t.pointerLength,b="left"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(b);return"M ".concat(y,", ").concat(p-e/2,"\n L ").concat(g?c:y,", ").concat(g?f:p+e/2,"\n L ").concat(y,", ").concat(p+e/2,"\n L ").concat(y,", ").concat(v-n,"\n A ").concat(m," ").concat(y+u*n,", ").concat(v,"\n L ").concat(d-u*n,", ").concat(v,"\n A ").concat(m," ").concat(d,", ").concat(v-n,"\n L ").concat(d,", ").concat(h+n,"\n A ").concat(m," ").concat(d-u*n,", ").concat(h,"\n L ").concat(y+u*n,", ").concat(h,"\n A ").concat(m," ").concat(y,", ").concat(h+n,"\n z")}(t):function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,a=t.width,o=t.height,l=t.center,u="bottom"===r?1:-1,c=t.x+(t.dx||0),f=t.y+(t.dy||0),s=i()(l)&&l.x,p=i()(l)&&l.y,y=p+u*(o/2),d=p-u*(o/2),v=s+a/2,h=s-a/2,g=u*(f-y)<0?0:t.pointerLength,b="bottom"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(b);return"M ".concat(s-e/2,", ").concat(y,"\n L ").concat(g?c:s+e/2,", ").concat(g?f:y,"\n L ").concat(s+e/2,", ").concat(y,"\n L ").concat(v-n,", ").concat(y,"\n A ").concat(m," ").concat(v,", ").concat(y-u*n,"\n L ").concat(v,", ").concat(d+u*n,"\n A ").concat(m," ").concat(v-n,", ").concat(d,"\n L ").concat(h+n,", ").concat(d,"\n A ").concat(m," ").concat(h,", ").concat(d+u*n,"\n L ").concat(h,", ").concat(y-u*n,"\n A ").concat(m," ").concat(h+n,", ").concat(y,"\n z")}(t)},te=function(t){return d.a.cloneElement(t.pathComponent,Qt({},t.events,{style:C.evaluateStyle(t.style,t),d:Jt(t),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};te.propTypes=Qt({},{baseProps:Ut,dataProps:$t,primitiveProps:Zt}.primitiveProps,{center:h.a.shape({x:h.a.number,y:h.a.number}),cornerRadius:h.a.number,datum:h.a.object,dx:h.a.number,dy:h.a.number,height:h.a.number,orientation:h.a.oneOf(["top","bottom","left","right"]),pathComponent:h.a.element,pointerLength:h.a.number,pointerWidth:h.a.number,width:h.a.number,x:h.a.number,y:h.a.number}),te.defaultProps={pathComponent:d.a.createElement(Yt,null),role:"presentation",shapeRendering:"auto"};var ee=te;function ne(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ae(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var oe={cornerRadius:5,pointerLength:10,pointerWidth:10},ie=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ae(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))).id=void 0===t.id?u()("tooltip-"):t.id,n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n=e,(r=[{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal;if(t.polar)return this.getPolarOrientation(t,e);var r=n?"right":"top",a=n?"left":"bottom";return e&&e.y<0?a:r}},{key:"getPolarOrientation",value:function(t,e){var n=H.getDegrees(t,e),r=t.labelPlacement||"vertical";return" vertical"===r?this.getVerticalOrientations(n):"parallel"===r?n<90||n>270?"right":"left":n>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getStyles",value:function(t){var e=t.theme||Q.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((function(t){return f()({},t,n)})):f()({},t.style,n),a=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},o=t.flyoutStyle?f()({},t.flyoutStyle,a):a,i=Array.isArray(r)?r.map((function(e){return C.evaluateStyle(e,t)})):C.evaluateStyle(r,t);return{style:i,flyoutStyle:C.evaluateStyle(o,p()({},t,{style:i}))}}},{key:"getEvaluatedProps",value:function(t){var e=t.horizontal,n=t.pointerLength,r=t.pointerWidth,a=t.cornerRadius,o=t.centerOffset,l=t.dx,u=t.dy,c=C.evaluateProp(t.active,t),f=C.evaluateProp(t.text,p()({},t,{active:c})),s=this.getStyles(p()({},t,{active:c,text:f})),y=s.style,d=s.flyoutStyle,v=C.evaluateProp(t.orientation,p()({},t,{active:c,text:f,style:y,flyoutStyle:d}))||this.getDefaultOrientation(t),h=pt(f,y),g=this.getDimensions(p()({},t,{style:y,flyoutStyle:d,active:c,text:f,orientation:v}),h),b=g.flyoutHeight,m=g.flyoutWidth,x=p()({},t,{active:c,text:f,style:y,flyoutStyle:d,orientation:v,flyoutHeight:b,flyoutWidth:m}),O=i()(o)&&void 0!==o.x?C.evaluateProp(o.x,x):0,P=i()(o)&&void 0!==o.y?C.evaluateProp(o.y,x):0,A=d&&d.padding||0,j=e?A:0,k=e?0:A;return p()({},t,{active:c,text:f,style:y,flyoutStyle:d,orientation:v,flyoutHeight:b,flyoutWidth:m,centerOffset:{x:O,y:P},dx:void 0!==l?C.evaluateProp(l,x):j,dy:void 0!==u?C.evaluateProp(u,x):k,cornerRadius:C.evaluateProp(a,x),pointerLength:C.evaluateProp(n,x),pointerWidth:C.evaluateProp(r,x)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,r=t.flyoutStyle,a={height:t.flyoutHeight,width:t.flyoutWidth};return{style:e,flyoutStyle:r,labelSize:pt(n,e),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,r=(t.style||{}).angle||t.angle||this.getDefaultAngle(t);return r?"rotate(".concat(r," ").concat(e," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,r=t.orientation,a=t.datum;if(!e||!n||"vertical"===n)return 0;var o,i=H.getDegrees(t,a);return 0===i||180===i?o="top"===r&&180===i?270:90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(t,e,n){var r=t.x,a=t.y,o=n.width,i=n.height,l=[0,e.width],u=[0,e.height],c=[r-o/2,r+o/2],f=[a-i/2,a+i/2],s=[c[0]<l[0]?l[0]-c[0]:0,c[1]>l[1]?c[1]-l[1]:0],p=[f[0]<u[0]?u[0]-f[0]:0,f[1]>u[1]?f[1]-u[1]:0];return{x:Math.round(r+s[0]-s[1]),y:Math.round(a+p[0]-p[1])}}},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,r=t.y,a=t.dx,o=t.dy,l=t.pointerLength,u=t.orientation,c=t.constrainToVisibleArea,f=t.centerOffset,s=e.height,p=e.width,y="left"===u?-1:1,d="bottom"===u?-1:1,v={x:"left"===u||"right"===u?n+y*(l+p/2+y*a):n+a,y:"top"===u||"bottom"===u?r-d*(l+s/2-d*o):r+o},h=i()(t.center)&&void 0!==t.center.x?t.center.x:v.x,g=i()(t.center)&&void 0!==t.center.y?t.center.y:v.y,b={x:h+f.x,y:g+f.y};return c?this.constrainTooltip(b,t,e):b}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e=Array.isArray(t)?t.map((function(t){return t.padding})):[t.padding];return Math.max.apply(Math,ne(e).concat([0]))}},{key:"getDimensions",value:function(t,e){var n,r,a,o,i=t.orientation,l=t.pointerLength,u=t.pointerWidth,c=t.style,f=t.flyoutHeight,s=t.flyoutWidth,p=this.getLabelPadding(c),y=C.evaluateProp(t.cornerRadius,t);return{flyoutHeight:f?C.evaluateProp(f,t):(a=e.height+p,o="top"===i||"bottom"===i?2*y:2*y+u,Math.max(o,a)+p/2),flyoutWidth:s?C.evaluateProp(s,t):(n=e.width+p,r="left"===i||"right"===i?2*y+l:2*y,Math.max(r,n)+p)}}},{key:"getLabelProps",value:function(t,e){var n,r=e.flyoutCenter,a=e.style,o=e.labelSize,i=e.dy,l=e.dx,u=t.text,c=t.datum,s=t.activePoints,p=t.labelComponent,y=t.index,d=(Array.isArray(a)&&a.length?a[0].textAnchor:a.textAnchor)||"middle";return f()({},p.props,{key:"".concat(this.id,"-label-").concat(y),text:u,datum:c,activePoints:s,textAnchor:d,dy:i,dx:l,style:a,x:d&&"middle"!==d?(n="end"===d?-1:1,r.x-n*(o.width/2)):r.x,y:r.y,verticalAnchor:"middle",angle:a.angle})}},{key:"getPointerOrientation",value:function(t,e,n){var r=e.y+n.height/2,o=e.y-n.height/2,i=e.x-n.width/2,l=e.x+n.width/2,u=[{side:"top",val:o>t.y?o-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:l<t.x?t.x-l:-1},{side:"left",val:i>t.x?i-t.x:-1}];return a()(u,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,r=e.flyoutStyle,a=e.flyoutCenter,o=t.x,i=t.y,l=t.dx,u=t.dy,c=t.datum,s=t.activePoints,p=t.index,y=t.pointerLength,d=t.pointerWidth,v=t.cornerRadius,h=t.events,g=t.flyoutComponent,b=C.evaluateProp(t.pointerOrientation,t);return f()({},g.props,{x:o,y:i,dx:l,dy:u,datum:c,activePoints:s,index:p,pointerLength:y,pointerWidth:d,cornerRadius:v,events:h,orientation:b||this.getPointerOrientation({x:o,y:i},a,n),key:"".concat(this.id,"-tooltip-").concat(p),width:n.width,height:n.height,style:r,center:a})}},{key:"renderTooltip",value:function(t){var e=this.getEvaluatedProps(t),n=e.flyoutComponent,r=e.labelComponent,a=e.groupComponent,o=e.active,i=e.renderInPortal;if(!o)return i?d.a.createElement(mt,null,null):null;var l=this.getCalculatedValues(e),u=[d.a.cloneElement(n,this.getFlyoutProps(e,l)),d.a.cloneElement(r,this.getLabelProps(e,l))],c=d.a.cloneElement(a,{role:"presentation",transform:l.transform},u);return i?d.a.createElement(mt,null,c):c}},{key:"render",value:function(){var t=C.modifyProps(this.props,oe,"tooltip");return this.renderTooltip(t)}}])&&re(n.prototype,r),o&&re(n,o),e}(d.a.Component);Object.defineProperty(ie,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryTooltip"}),Object.defineProperty(ie,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{activateData:h.a.bool,active:h.a.oneOfType([h.a.bool,h.a.func]),activePoints:h.a.array,angle:h.a.number,center:h.a.shape({x:Et.nonNegative,y:Et.nonNegative}),centerOffset:h.a.shape({x:h.a.oneOfType([h.a.number,h.a.func]),y:h.a.oneOfType([h.a.number,h.a.func])}),constrainToVisibleArea:h.a.bool,cornerRadius:h.a.oneOfType([Et.nonNegative,h.a.func]),data:h.a.array,datum:h.a.object,dx:h.a.oneOfType([h.a.number,h.a.func]),dy:h.a.oneOfType([h.a.number,h.a.func]),events:h.a.object,flyoutComponent:h.a.element,flyoutHeight:h.a.oneOfType([Et.nonNegative,h.a.func]),flyoutStyle:h.a.object,flyoutWidth:h.a.oneOfType([Et.nonNegative,h.a.func]),groupComponent:h.a.element,height:h.a.number,horizontal:h.a.bool,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),labelComponent:h.a.element,orientation:h.a.oneOfType([h.a.oneOf(["top","bottom","left","right"]),h.a.func]),pointerLength:h.a.oneOfType([Et.nonNegative,h.a.func]),pointerOrientation:h.a.oneOfType([h.a.oneOf(["top","bottom","left","right"]),h.a.func]),pointerWidth:h.a.oneOfType([Et.nonNegative,h.a.func]),polar:h.a.bool,renderInPortal:h.a.bool,scale:h.a.shape({x:Et.scale,y:Et.scale}),style:h.a.oneOfType([h.a.object,h.a.array]),text:h.a.oneOfType([h.a.string,h.a.number,h.a.func,h.a.array]),theme:h.a.object,width:h.a.number,x:h.a.number,y:h.a.number}}),Object.defineProperty(ie,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{active:!1,renderInPortal:!0,labelComponent:d.a.createElement(Kt,null),flyoutComponent:d.a.createElement(ee,null),groupComponent:d.a.createElement("g",null)}}),Object.defineProperty(ie,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(t){return[{target:"data",eventHandlers:{onMouseOver:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onTouchStart:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onMouseOut:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}]},onTouchEnd:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}]}}}]}}),n.d(e,"VictoryTooltip",(function(){return ie})),n.d(e,"Flyout",(function(){return ee}))}])})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryTooltip=e(require("react")):t.VictoryTooltip=e(t.React)}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=113)}([function(t,e,n){t.exports=n(93)()},function(t,e,n){var r=n(22),a=n(91),o=n(92),i=n(23),u=n(47),l=n(16),c=Object.prototype.hasOwnProperty,f=o((function(t,e){if(u(e)||i(e))a(e,l(e),t);else for(var n in e)c.call(e,n)&&r(t,n,e[n])}));t.exports=f},function(e,n){e.exports=t},function(t,e,n){var r=n(42),a=n(14),o=n(45),i=n(88),u=Object.prototype,l=u.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var f=e[n],s=i(f),p=-1,y=s.length;++p<y;){var d=s[p],v=t[d];(void 0===v||a(v,u[d])&&!l.call(t,d))&&(t[d]=f[d])}return t}));t.exports=c},function(t,e,n){var r=n(21),a=n(11);t.exports=function(t){if(!a(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(21),a=n(86),o=n(15),i=Function.prototype,u=Object.prototype,l=i.toString,c=u.hasOwnProperty,f=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=a(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(7);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r=n(14);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(5),a=n(18),o=n(73),i=n(35);t.exports=function(t,e){return r(t)?t:a(t,e)?[t]:o(i(t))}},function(t,e,n){var r=n(54),a=n(71),o=n(20),i=n(5),u=n(24);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?i(t)?a(t[0],t[1]):r(t):u(t)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(12),a=n(8);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(5),a=n(7),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!a(t))||(i.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(t){return t}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(46),a=n(14),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var i=t[e];o.call(t,e)&&a(i,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(4),a=n(40);t.exports=function(t){return null!=t&&a(t.length)&&!r(t)}},function(t,e,n){var r=n(80),a=n(81),o=n(18),i=n(8);t.exports=function(t){return o(t)?r(i(t)):a(t)}},function(t,e,n){var r=n(95),a=n(98)((function(t,e){return null==t?{}:r(t,e)}));t.exports=a},function(t,e,n){var r=n(112),a=n(30),o=n(19),i=n(5),u=n(23),l=n(31),c=n(47),f=n(32),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||f(t)||o(t)))return!t.length;var e=a(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}},function(t,e,n){var r=n(56),a=n(57),o=n(58),i=n(59),u=n(60);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=u,t.exports=l},function(t,e,n){var r=n(61),a=n(15);t.exports=function t(e,n,o,i,u){return e===n||(null==e||null==n||!a(e)&&!a(n)?e!=e&&n!=n:r(e,n,o,i,t,u))}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e){t.exports=function(){return!1}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(11);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){var r=n(75);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(76).Symbol;t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(77))},function(t,e,n){var r=n(78),a=n(79);t.exports=function(t,e){return null!=t&&a(t,e,r)}},function(t,e){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}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(20),a=n(43),o=n(44);t.exports=function(t,e){return o(a(t,e,r),t+"")}},function(t,e,n){var r=n(87),a=Math.max;t.exports=function(t,e,n){return e=a(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,u=a(o.length-e,0),l=Array(u);++i<u;)l[i]=o[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=o[i];return c[e]=n(l),r(t,this,c)}}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(89);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(53),a=n(5);t.exports=function(t,e,n,o){return null==t?[]:(a(e)||(e=null==e?[]:[e]),a(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},function(t,e,n){var r=n(35),a=0;t.exports=function(t){var e=++a;return r(t)+e}},function(t,e,n){var r=n(103),a=n(41),o=n(104),i=o&&o.isRegExp,u=i?a(i):r;t.exports=u},function(t,e,n){var r=n(106)(n(107));t.exports=r},,function(t,e,n){var r=n(27),a=n(13),o=n(82),i=n(83),u=n(41),l=n(84),c=n(20);t.exports=function(t,e,n){var f=-1;e=r(e.length?e:[c],u(a));var s=o(t,(function(t,n,a){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return i(s,(function(t,e){return l(t,e,n)}))}},function(t,e,n){var r=n(55),a=n(70),o=n(34);t.exports=function(t){var e=a(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(28),a=n(29);t.exports=function(t,e,n,o){var i=n.length,u=i,l=!o;if(null==t)return!u;for(t=Object(t);i--;){var c=n[i];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<u;){var f=(c=n[i])[0],s=t[f],p=c[1];if(l&&c[2]){if(void 0===s&&!(f in t))return!1}else{var y=new r;if(o)var d=o(s,p,f,t,e,y);if(!(void 0===d?a(p,s,3,o,y):d))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(9),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(9);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(9);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(9);t.exports=function(t,e){var n=this.__data__,a=r(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},function(t,e,n){var r=n(28),a=n(62),o=n(67),i=n(68),u=n(30),l=n(5),c=n(31),f=n(32),s="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,d,v){var h=l(t),g=l(e),b=h?"[object Array]":u(t),m=g?"[object Array]":u(e),x=(b="[object Arguments]"==b?s:b)==s,O=(m="[object Arguments]"==m?s:m)==s,P=b==m;if(P&&c(t)){if(!c(e))return!1;h=!0,x=!1}if(P&&!x)return v||(v=new r),h||f(t)?a(t,e,n,y,d,v):o(t,e,b,n,y,d,v);if(!(1&n)){var A=x&&p.call(t,"__wrapped__"),j=O&&p.call(e,"__wrapped__");if(A||j){var k=A?t.value():t,T=j?e.value():e;return v||(v=new r),d(k,T,n,y,v)}}return!!P&&(v||(v=new r),i(t,e,n,y,d,v))}},function(t,e,n){var r=n(63),a=n(64),o=n(65);t.exports=function(t,e,n,i,u,l){var c=1&n,f=t.length,s=e.length;if(f!=s&&!(c&&s>f))return!1;var p=l.get(t);if(p&&l.get(e))return p==e;var y=-1,d=!0,v=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++y<f;){var h=t[y],g=e[y];if(i)var b=c?i(g,h,y,e,t,l):i(h,g,y,t,e,l);if(void 0!==b){if(b)continue;d=!1;break}if(v){if(!a(e,(function(t,e){if(!o(v,e)&&(h===t||u(h,t,n,i,l)))return v.push(e)}))){d=!1;break}}else if(h!==g&&!u(h,g,n,i,l)){d=!1;break}}return l.delete(t),l.delete(e),d}},function(t,e,n){var r=n(5);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(66);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(69),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,i,u){var l=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!l)return!1;for(var s=f;s--;){var p=c[s];if(!(l?p in e:a.call(e,p)))return!1}var y=u.get(t);if(y&&u.get(e))return y==e;var d=!0;u.set(t,e),u.set(e,t);for(var v=l;++s<f;){var h=t[p=c[s]],g=e[p];if(o)var b=l?o(g,h,p,e,t,u):o(h,g,p,t,e,u);if(!(void 0===b?h===g||i(h,g,n,o,u):b)){d=!1;break}v||(v="constructor"==p)}if(d&&!v){var m=t.constructor,x=e.constructor;m!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof x&&x instanceof x)&&(d=!1)}return u.delete(t),u.delete(e),d}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(33),a=n(16);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var o=e[n],i=t[o];e[n]=[o,i,r(i)]}return e}},function(t,e,n){var r=n(29),a=n(72),o=n(38),i=n(18),u=n(33),l=n(34),c=n(8);t.exports=function(t,e){return i(t)&&u(e)?l(c(t),e):function(n){var i=a(n,t);return void 0===i&&i===e?o(n,t):r(e,i,3)}}},function(t,e,n){var r=n(17);t.exports=function(t,e,n){var a=null==t?void 0:r(t,e);return void 0===a?n:a}},function(t,e,n){var r=n(74),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,r,a){e.push(r?a.replace(o,"$1"):n||t)})),e}));t.exports=i},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(36),a=n(27),o=n(5),i=n(7),u=r?r.prototype:void 0,l=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(i(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(37),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();t.exports=o},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(12),a=n(19),o=n(5),i=n(39),u=n(40),l=n(8);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,s=!1;++c<f;){var p=l(e[c]);if(!(s=null!=t&&n(t,p)))break;t=t[p]}return s||++c!=f?s:!!(f=null==t?0:t.length)&&u(f)&&i(p,f)&&(o(t)||a(t))}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(17);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(85);t.exports=function(t,e,n){for(var a=-1,o=t.criteria,i=e.criteria,u=o.length,l=n.length;++a<u;){var c=r(o[a],i[a]);if(c)return a>=l?c:c*("desc"==n[a]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(7);t.exports=function(t,e){if(t!==e){var n=void 0!==t,a=null===t,o=t==t,i=r(t),u=void 0!==e,l=null===e,c=e==e,f=r(e);if(!l&&!f&&!i&&t>e||i&&u&&c&&!l&&!f||a&&u&&c||!n&&c||!o)return 1;if(!a&&!i&&!f&&t<e||f&&n&&o&&!a&&!i||l&&n&&o||!u&&o||!c)return-1}return 0}},function(t,e,n){var r=n(10)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(90),a=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(22),a=n(46);t.exports=function(t,e,n,o){var i=!n;n||(n={});for(var u=-1,l=e.length;++u<l;){var c=e[u],f=o?o(n[c],t[c],c,n,t):void 0;void 0===f&&(f=t[c]),i?a(n,c,f):r(n,c,f)}return n}},function(t,e,n){var r=n(42),a=n(45);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&a(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var l=n[r];l&&t(e,l,r,i)}return e}))}},function(t,e,n){"use strict";var r=n(94);function a(){}t.exports=function(){function t(t,e,n,a,o,i){if(i!==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 e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=a,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(96),a=n(38);t.exports=function(t,e){return r(t,e,(function(e,n){return a(t,n)}))}},function(t,e,n){var r=n(17),a=n(97),o=n(12);t.exports=function(t,e,n){for(var i=-1,u=e.length,l={};++i<u;){var c=e[i],f=r(t,c);n(f,c)&&a(l,o(c,t),f)}return l}},function(t,e,n){var r=n(22),a=n(12),o=n(39),i=n(11),u=n(8);t.exports=function(t,e,n,l){if(!i(t))return t;for(var c=-1,f=(e=a(e,t)).length,s=f-1,p=t;null!=p&&++c<f;){var y=u(e[c]),d=n;if(c!=s){var v=p[y];void 0===(d=l?l(v,y,p):void 0)&&(d=i(v)?v:o(e[c+1])?[]:{})}r(p,y,d),p=p[y]}return t}},function(t,e,n){var r=n(99),a=n(43),o=n(44);t.exports=function(t){return o(a(t,void 0,r),t+"")}},function(t,e,n){var r=n(100);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,e,n){var r=n(101),a=n(102);t.exports=function t(e,n,o,i,u){var l=-1,c=e.length;for(o||(o=a),u||(u=[]);++l<c;){var f=e[l];n>0&&o(f)?n>1?t(f,n-1,o,i,u):r(u,f):i||(u[u.length]=f)}return u}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}},function(t,e,n){var r=n(36),a=n(19),o=n(5),i=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||a(t)||!!(i&&t&&t[i])}},function(t,e,n){var r=n(21),a=n(15);t.exports=function(t){return a(t)&&"[object RegExp]"==r(t)}},function(t,e,n){(function(t){var r=n(37),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===a&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=u}).call(this,n(105)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(13),a=n(23),o=n(16);t.exports=function(t){return function(e,n,i){var u=Object(e);if(!a(e)){var l=r(n,3);e=o(e),n=function(t){return l(u[t],t,u)}}var c=t(e,n,i);return c>-1?u[l?e[c]:c]:void 0}}},function(t,e,n){var r=n(108),a=n(13),o=n(109),i=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return-1;var l=null==n?0:o(n);return l<0&&(l=i(u+l,0)),r(t,a(e,3),l)}},function(t,e){t.exports=function(t,e,n,r){for(var a=t.length,o=n+(r?1:-1);r?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(110);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(111);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(11),a=n(7),o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=u.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):i.test(t)?NaN:+t}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t,e,n){"use strict";n.r(e);var r=n(48),a=n.n(r),o=n(6),i=n.n(o),u=n(49),l=n.n(u),c=n(3),f=n.n(c),s=n(1),p=n.n(s),y=n(2),d=n.n(y),v=n(0),h=n.n(v),g=n(25),b=n.n(g),m=n(24),x=n.n(m),O=n(4),P=n.n(O);function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function j(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,a=t._x0,o=t._voronoiX,i=t._y,u=t._y1,l=t._y0,c=t._voronoiY,s=e(r)?r:n,p=e(u)?u:i,y={x:e(o)?o:s,x0:e(a)?a:n,y:e(c)?c:p,y0:e(l)?l:i};return f()({},y,t)}function k(t){var e=t.padding,n="number"==typeof e?e:0,r="object"==typeof e?e:{};return{top:r.top||n,bottom:r.bottom||n,left:r.left||n,right:r.right||n}}function T(t,e){return P()(t)?t(e):t}function w(t){return"number"==typeof t?t*(Math.PI/180):t}function S(t){var e=k(t),n=e.left,r=e.right,a=e.top,o=e.bottom,i=t.width,u=t.height;return Math.min(i-n-r,u-a-o)/2}function E(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var e=function(t){return t.reduce((function(t,n){var r=n.props||{};return t||r.horizontal||!r.children?t=t||r.horizontal:e(d.a.Children.toArray(r.children))}),!1)};return e(d.a.Children.toArray(t.children))}var C={omit:A,getPoint:j,scalePoint:function(t,e){var n=t.scale,r=t.polar,a=t.horizontal,o=j(e),i=t.origin||{x:0,y:0},u=a?n.y(o.y):n.x(o.x),l=a?n.y(o.y0):n.x(o.x0),c=a?n.x(o.x):n.y(o.y),f=a?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(u)+i.x:u,x0:r?f*Math.cos(l)+i.x:l,y:r?-c*Math.sin(u)+i.y:c,y0:r?-f*Math.sin(l)+i.x:f}},getPadding:k,getStyles:function(t,e){if(!t)return f()({parent:{height:"100%",width:"100%"}},e);var n=t.data,r=t.labels,a=t.parent,o=e&&e.parent||{},i=e&&e.labels||{},u=e&&e.data||{};return{parent:f()({},a,o,{width:"100%",height:"100%"}),labels:f()({},r,i),data:f()({},n,u)}},evaluateProp:T,evaluateStyle:function(t,e){return t&&Object.keys(t).some((function(e){return P()(t[e])}))?Object.keys(t).reduce((function(n,r){return n[r]=T(t[r],e),n}),{}):t},degreesToRadians:w,radiansToDegrees:function(t){return"number"==typeof t?t/(Math.PI/180):t},getRadius:S,getPolarOrigin:function(t){var e=t.width,n=t.height,r=k(t),a=r.top,o=r.bottom,i=r.left,u=r.right,l=Math.min(e-i-u,n-a-o)/2,c=e/2+i-u,f=n/2+a-o;return{x:c+l>e?l+i-u:c,y:f+l>n?l+a-o:f}},getRange:function(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[w(t.startAngle||0),w(t.endAngle||360)]:[t.innerRadius||0,S(t)]}(t,e):function(t,e){var n="x"!==e,r=k(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)},createAccessor:function(t){return P()(t)?t:null==t?function(t){return t}:x()(t)},modifyProps:function(t,e,n){var r=A(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),a=E(t),o=void 0===a?{}:{horizontal:a};return f()(o,t,r,e)},getCurrentAxis:function(t,e){return e?"x"===t?"y":"x":t},reduceChildren:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],i=function(t,u,l){return t.reduce((function(t,r,c){var f=r.type&&r.type.role,s=r.props.name||"".concat(f,"-").concat(u[c]);if(r.props&&r.props.children){var y=p()({},r.props,b()(n,o)),v=r.type&&"stack"===r.type.role&&P()(r.type.getChildren)?r.type.getChildren(y):d.a.Children.toArray(r.props.children).map((function(t){var e=p()({},t.props,b()(y,o));return d.a.cloneElement(t,e)})),h=v.map((function(t,e){return"".concat(s,"-").concat(e)})),g=i(v,h,r);t=a(t,g)}else{var m=e(r,s,l);m&&(t=a(t,m))}return t}),r)},u=t.map((function(t,e){return e}));return i(t,u)},isHorizontal:E};function _(t,e){if(t.polar)return{};var n=function(t,e){e=e||{};var n=t.horizontal,r=t.style.labels||{},a=C.evaluateProp(r.padding,t)||0,o=e._y<0?-1:1;return{x:n?o*a:0,y:n?0:-1*o*a}}(t,e);return{dx:n.x,dy:n.y}}function D(t,e){var n=t.polar,r=C.scalePoint(t,e),a=r.x,o=r.y;if(n){var i=function(t,e){var n=t.style,r=F(t,e),a=n.labels||{},o=C.evaluateProp(a.padding,t)||0,i=C.degreesToRadians(r);return{x:o*Math.cos(i),y:-o*Math.sin(i)}}(t,e);return{x:a+i.x,y:o+i.y}}return{x:a,y:o}}function L(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar?"perpendicular":"vertical";return n||(e.props&&e.props.labelPlacement||r)}function W(t,e,n){return void 0!==(e=e||{}).label?e.label:Array.isArray(t.labels)?t.labels[n]:t.labels}function z(t,e){var n=L(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"}function N(t,e){var n=L(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(e);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function F(t,e){var n=C.getPoint(e).x;return C.radiansToDegrees(t.scale.x(n))}var M={getText:W,getPolarTextAnchor:z,getPolarVerticalAnchor:N,getPolarAngle:function(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var a,o=void 0!==e?e:F(t,r);return 0===o||180===o?a=90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)},getDegrees:F,getProps:function(t,e){var n=t.scale,r=t.data,a=t.style,o=t.horizontal,i=t.polar,u=t.width,l=t.height,c=r[e],f=F(t,c),s=i?z(t,f):function(t,e){e=e||{};var n=t.style,r=t.horizontal,a=e._y>=0?1:-1,o=n&&n.labels||{};return e.verticalAnchor||o.verticalAnchor?e.verticalAnchor||o.verticalAnchor:r?a>=0?"start":"end":"middle"}(t,c),p=i?N(t,f):function(t,e){var n=(e=e||{})._y>=0?1:-1,r=t.style&&t.style.labels||{};return e.verticalAnchor||r.verticalAnchor?e.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":n>=0?"end":"start"}(t,c),y=function(t,e){e=e||{};var n=t.style&&t.style.labels||{};return void 0===e.angle?n.angle:e.angle}(t,c),d=W(t,c,e),v=L(t),h=D(t,c),g=h.x,b=h.y,m=_(t,c);return{angle:y,data:r,datum:c,horizontal:o,index:e,polar:i,scale:n,labelPlacement:v,text:d,textAnchor:s,verticalAnchor:p,x:g,y:b,dx:m.dx,dy:m.dy,width:u,height:l,style:a.labels}}},R=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],I={width:350,height:350,padding:50},H={fontFamily:"'Roboto', 'Helvetica Neue', Helvetica, sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:"#455A64",stroke:"transparent",strokeWidth:0},B=p()({textAnchor:"middle"},H),q={area:p()({style:{data:{fill:"#212121"},labels:H}},I),axis:p()({style:{axis:{fill:"transparent",stroke:"#90A4AE",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:p()({},B,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"#ECEFF1",strokeDasharray:"10, 5",strokeLinecap:"round",strokeLinejoin:"round",pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"#90A4AE",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},tickLabels:p()({},H,{fill:"#455A64"})}},I),bar:p()({style:{data:{fill:"#455A64",padding:8,strokeWidth:0},labels:H}},I),boxplot:p()({style:{max:{padding:8,stroke:"#455A64",strokeWidth:1},maxLabels:H,median:{padding:8,stroke:"#455A64",strokeWidth:1},medianLabels:H,min:{padding:8,stroke:"#455A64",strokeWidth:1},minLabels:H,q1:{padding:8,fill:"#455A64"},q1Labels:H,q3:{padding:8,fill:"#455A64"},q3Labels:H},boxWidth:20},I),candlestick:p()({style:{data:{stroke:"#455A64"},labels:H},candleColors:{positive:"#ffffff",negative:"#455A64"}},I),chart:I,errorbar:p()({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:H}},I),group:p()({colorScale:R},I),histogram:p()({style:{data:{fill:"#455A64",stroke:"#212121",strokeWidth:2},labels:H}},I),legend:{colorScale:R,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:H,title:p()({},H,{padding:5})}},line:p()({style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:H}},I),pie:p()({colorScale:R,style:{data:{padding:8,stroke:"#ECEFF1",strokeWidth:1},labels:p()({},H,{padding:20})}},I),scatter:p()({style:{data:{fill:"#455A64",opacity:1,stroke:"transparent",strokeWidth:0},labels:H}},I),stack:p()({colorScale:R},I),tooltip:{style:p()({},H,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:p()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:p()({},H,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},I)},V=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],G={width:450,height:300,padding:50,colorScale:V},K={fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:"#252525",stroke:"transparent"},$=p()({textAnchor:"middle"},K),U={material:q,grayscale:{area:p()({style:{data:{fill:"#252525"},labels:K}},G),axis:p()({style:{axis:{fill:"transparent",stroke:"#252525",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:p()({},$,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:K}},G),bar:p()({style:{data:{fill:"#252525",padding:8,strokeWidth:0},labels:K}},G),boxplot:p()({style:{max:{padding:8,stroke:"#252525",strokeWidth:1},maxLabels:K,median:{padding:8,stroke:"#252525",strokeWidth:1},medianLabels:K,min:{padding:8,stroke:"#252525",strokeWidth:1},minLabels:K,q1:{padding:8,fill:"#969696"},q1Labels:K,q3:{padding:8,fill:"#969696"},q3Labels:K},boxWidth:20},G),candlestick:p()({style:{data:{stroke:"#252525",strokeWidth:1},labels:K},candleColors:{positive:"#ffffff",negative:"#252525"}},G),chart:G,errorbar:p()({borderWidth:8,style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:K}},G),group:p()({colorScale:V},G),histogram:p()({style:{data:{fill:"#969696",stroke:"#252525",strokeWidth:2},labels:K}},G),legend:{colorScale:V,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:K,title:p()({},K,{padding:5})}},line:p()({style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:K}},G),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:p()({},K,{padding:20})},colorScale:V,width:400,height:400,padding:50},scatter:p()({style:{data:{fill:"#252525",stroke:"transparent",strokeWidth:0},labels:K}},G),stack:p()({colorScale:V},G),tooltip:{style:p()({},K,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:p()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:p()({},K,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},G)}};function Z(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Y={"American Typewriter":2.09,Baskerville:2.51,Georgia:2.27,"Hoefler Text":2.39,Palatino:2.26,"Times New Roman":2.48,Arial:2.26,"Gill Sans":2.47,"Gill Sans 300":2.58,"Helvetica Neue":2.24,"Lucida Grande":2.05,Tahoma:2.25,"Trebuchet MS":2.2,Verdana:1.96,"Courier New":1.67,cursive:1.84,fantasy:2.09,monospace:1.81,serif:2.04,"sans-serif":1.89},Q={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},X={em:1,ex:.5},J=2.1675,tt=1.25,et=1.05,nt=1.15,rt=.2,at={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},ot=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},it=function(t,e,n){var r=function(t){return t*Math.PI/180}(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},ut=function(t,e){var n=t.match(/[a-zA-Z%]+/)[0],r=t.match(/[0-9.,]+/);return Q.hasOwnProperty(n)?r*Q[n]:X.hasOwnProperty(n)?(e?r*e:r*at.fontSize)*X[n]:r},lt=function(t,e){var n,r,a=Array.isArray(t)?t[e]:t,o=f()({},a,at);return p()({},o,{characterConstant:o.characterConstant||(n=o.fontFamily,r=n.split(",")[0].replace(/'|"/g,""),Y[r]||J),letterSpacing:ut(o.letterSpacing,o.fontSize),fontSize:"number"==typeof o.fontSize?o.fontSize:ut(String(o.fontSize))})},ct=function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=function(t,e){return void 0===t||""===t||null===t?0:ot(t).reduce((function(t,n,r){var a=lt(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?a.fontSize*nt:a.fontSize,i=0===r?0:a.fontSize*rt;return t+a.lineHeight*(o+i)}),0)}(t,e),a=function(t,e){if(void 0===t||""===t||null===t)return 0;var n=ot(t).map((function(t,n){var r=t.toString().length,a=lt(e,n);return r*a.fontSize/a.characterConstant+a.letterSpacing*Math.max(r-1,0)}));return Math.max.apply(Math,Z(n))}(t,e),o=n?it(a,r,n):a,i=n?it(r,a,n):r;return{width:o*tt,height:i*et}},ft=function(t){0},st=d.a.createContext({});st.displayName="PortalContext";var pt=st;function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vt(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var ht=function(t){function e(){return yt(this,e),vt(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}var n,r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(ft("`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place"),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,e=this.props.groupComponent,n=t&&t.props||{},r=n.groupComponent?{groupComponent:e,standalone:!1}:{},a=f()(r,n,C.omit(this.props,["children","groupComponent"])),o=t&&d.a.cloneElement(t,a);return this.renderPortal(o)}}])&&dt(n.prototype,r),a&&dt(n,a),e}(d.a.Component);Object.defineProperty(ht,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryPortal"}),Object.defineProperty(ht,"role",{configurable:!0,enumerable:!0,writable:!0,value:"portal"}),Object.defineProperty(ht,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{children:h.a.node,groupComponent:h.a.element}}),Object.defineProperty(ht,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{groupComponent:d.a.createElement("g",null)}}),Object.defineProperty(ht,"contextType",{configurable:!0,enumerable:!0,writable:!0,value:pt});var gt=n(50),bt=n.n(gt),mt=n(51),xt=n.n(mt);var Ot=function(t){var e=function(e,n,r,a){var o=n[r];if(null==o)return e?new Error("Required `".concat(r,"` was not specified in `").concat(a,"`.")):null;for(var i=arguments.length,u=new Array(i>4?i-4:0),l=4;l<i;l++)u[l-4]=arguments[l];return t.apply(void 0,[n,r,a].concat(u))},n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n},Pt=function(){return null},At=function(){},jt=function(t){return void 0===t?At:null===t?Pt:t.constructor},kt=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)},Tt={deprecated:function(t,e){return function(n,r,a){var o=n[r];return null!=o&&ft('"'.concat(r,'" property of "').concat(a,'" has been deprecated ').concat(e)),h.a.checkPropTypes(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},r,t),n,r,a)}},allOfType:function(t){return Ot((function(e,n,r){for(var a=arguments.length,o=new Array(a>3?a-3:0),i=3;i<a;i++)o[i-3]=arguments[i];return t.reduce((function(t,a){return t||a.apply(void 0,[e,n,r].concat(o))}),void 0)}))},nonNegative:Ot((function(t,e,n){var r=t[e];if("number"!=typeof r||r<0)return new Error("`".concat(e,"` in `").concat(n,"` must be a non-negative number."))})),integer:Ot((function(t,e,n){var r=t[e];if("number"!=typeof r||r%1!=0)return new Error("`".concat(e,"` in `").concat(n,"` must be an integer."))})),greaterThanZero:Ot((function(t,e,n){var r=t[e];if("number"!=typeof r||r<=0)return new Error("`".concat(e,"` in `").concat(n,"` must be a number greater than zero."))})),domain:Ot((function(t,e,n){var r=t[e];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(e,"` in `").concat(n,"` must be an array of two unique numeric values."))})),scale:Ot((function(t,e,n){var r,a=["linear","time","log","sqrt"],o=t[e];if(r=o,!(P()(r)?P()(r.copy)&&P()(r.domain)&&P()(r.range):"string"==typeof r&&-1!==a.indexOf(r)))return new Error("`".concat(e,"` in `").concat(n,"` must be a d3 scale."))})),homogeneousArray:Ot((function(t,e,n){var r=t[e];if(!Array.isArray(r))return new Error("`".concat(e,"` in `").concat(n,"` must be an array."));if(!(r.length<2)){var a=jt(r[0]),o=xt()(r,(function(t){return a!==jt(t)}));if(o){var i=kt(r[0]),u=kt(o);return new Error("Expected `".concat(e,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(i,"` and ")+"`".concat(u,"`."))}}})),matchDataLength:Ot((function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and ".concat(e," arrays must match."))})),regExp:Ot((function(t,e,n){if(t[e]&&!bt()(t[e]))return new Error("`".concat(e,"` in `").concat(n,"` must be a regular expression."))}))},wt=n(26),St=n.n(wt),Et=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(t,e){return[t,Et(e)].join(" ")}),Et(t)).trim();if(null==t||"string"==typeof t)return t;var a=[];for(var o in t)if(t.hasOwnProperty(o)){var i=t[o];a.push("".concat(o,"(").concat(i,")"))}return a.join(" ").trim()},Ct={toTransformString:Et,getColorScale:function(t){var e={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}},_t=function(t){return d.a.createElement("tspan",t)};var Dt=function(t){var e=t.children,n=t.title,r=t.desc,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,["children","title","desc"]);return d.a.createElement("text",a,n&&d.a.createElement("title",null,n),r&&d.a.createElement("desc",null,r),e)};Dt.propTypes={children:h.a.node,desc:h.a.string,title:h.a.string};var Lt=Dt;function Wt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zt={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Nt=function(t,e){return t.datum?C.scalePoint(t,t.datum)[e]:0},Ft=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return zt.fontSize;if("string"==typeof e){var n=+e.replace("px","");return isNaN(n)?(ft("fontSize should be expressed as a number of pixels"),zt.fontSize):n}return zt.fontSize},Mt=function(t,e){return C.evaluateProp(t[e],t)},Rt=function(t,e,n){return Array.isArray(t)?St()(t)?n:e:t},It=function(t){var e=t.inline,n=t.className,r=t.title,a=t.events,o=t.direction,i=t.text,u=t.style,l=Mt(t,"lineHeight"),c=t.textAnchor?C.evaluateProp(t.textAnchor,t):"start",f=t.dx?C.evaluateProp(t.dx,t):0,s=function(t,e){var n=Array.isArray(t.style)?t.style[0]:t.style;e=Rt(e,e[0],1);var r=n.fontSize,a=t.dy?C.evaluateProp(t.dy,t):0,o=t.text.length,i=Mt(t,"capHeight"),u=n.verticalAnchor||t.verticalAnchor;switch(u?C.evaluateProp(u,t):"middle"){case"end":return a+(i/2+(.5-o)*e)*r;case"middle":return a+(i/2+(.5-o/2)*e)*r;default:return a+(i/2+e/2)*r}}(t,l),p=function(t){var e=t.x,n=t.y,r=t.polar,a=t.style,o=r?M.getPolarAngle(t):0,i=void 0===a.angle?t.angle:a.angle,u=void 0===i?o:i,l=t.transform||a.transform,c=l&&C.evaluateProp(l,t),f=u&&{rotate:[u,e,n]};return c||u?Ct.toTransformString(c,f):void 0}(t),y=void 0!==t.x?t.x:Nt(t,"x"),v=void 0!==t.y?t.y:Nt(t,"y"),h=i.map((function(n,r){var a=u[r]||u[0],o=u[r-1]||u[0],i=(a.fontSize+o.fontSize)/2,s=Rt(l,(l[r]+(l[r-1]||l[0]))/2,1),p={key:"".concat(t.id,"-key-").concat(r),x:e?void 0:t.x,dx:f,dy:r&&!e?s*i:void 0,textAnchor:a.textAnchor||c,style:a,children:n};return d.a.cloneElement(t.tspanComponent,p)}));return d.a.cloneElement(t.textComponent,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Wt(t,e,n[e])}))}return t}({},a,{direction:o,dx:f,dy:s,x:y,y:v,transform:p,className:n,title:r,desc:C.evaluateProp(t.desc,t),tabIndex:C.evaluateProp(t.tabIndex,t),id:t.id}),h)},Ht=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return C.evaluateProp(t,e)}));var n=C.evaluateProp(t,e);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(t.text,t),n=function(t,e){var n=function(t){t=t?f()({},t,zt):zt;var n=C.evaluateStyle(t,e);return p()({},n,{fontSize:Ft(n)})};return Array.isArray(t)&&!St()(t)?t.map((function(t){return n(t)})):[n(t)]}(t.style,p()({},t,{text:e})),r=C.evaluateProp(t.id,t);return p()({},t,{style:n,text:e,id:r})},Bt=function(t){if(null===(t=Ht(t)).text||void 0===t.text)return null;var e=It(t);return t.renderInPortal?d.a.createElement(ht,null,e):e};Bt.displayName="VictoryLabel",Bt.role="label",Bt.defaultStyles=zt,Bt.propTypes={active:h.a.bool,angle:h.a.oneOfType([h.a.string,h.a.number]),capHeight:h.a.oneOfType([h.a.string,Tt.nonNegative,h.a.func]),className:h.a.string,data:h.a.array,datum:h.a.any,desc:h.a.oneOfType([h.a.string,h.a.func]),direction:h.a.oneOf(["rtl","ltr","inherit"]),dx:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),dy:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),events:h.a.object,id:h.a.oneOfType([h.a.number,h.a.string,h.a.func]),index:h.a.oneOfType([h.a.number,h.a.string]),inline:h.a.bool,labelPlacement:h.a.oneOf(["parallel","perpendicular","vertical"]),lineHeight:h.a.oneOfType([h.a.string,Tt.nonNegative,h.a.func,h.a.array]),origin:h.a.shape({x:Tt.nonNegative,y:Tt.nonNegative}),polar:h.a.bool,renderInPortal:h.a.bool,scale:h.a.shape({x:Tt.scale,y:Tt.scale}),style:h.a.oneOfType([h.a.object,h.a.array]),tabIndex:h.a.oneOfType([h.a.number,h.a.func]),text:h.a.oneOfType([h.a.string,h.a.number,h.a.func,h.a.array]),textAnchor:h.a.oneOfType([h.a.oneOf(["start","middle","end","inherit"]),h.a.func]),textComponent:h.a.element,title:h.a.string,transform:h.a.oneOfType([h.a.string,h.a.object,h.a.func]),tspanComponent:h.a.element,verticalAnchor:h.a.oneOfType([h.a.oneOf(["start","middle","end"]),h.a.func]),x:h.a.oneOfType([h.a.number,h.a.string]),y:h.a.oneOfType([h.a.number,h.a.string])},Bt.defaultProps={direction:"inherit",textComponent:d.a.createElement(Lt,null),tspanComponent:d.a.createElement(_t,null),capHeight:.71,lineHeight:1};var qt=Bt,Vt={categories:h.a.oneOfType([h.a.arrayOf(h.a.string),h.a.shape({x:h.a.arrayOf(h.a.string),y:h.a.arrayOf(h.a.string)})]),data:h.a.oneOfType([h.a.array,h.a.object]),dataComponent:h.a.element,labelComponent:h.a.element,labels:h.a.oneOfType([h.a.func,h.a.array]),samples:Tt.nonNegative,sortKey:h.a.oneOfType([h.a.func,Tt.allOfType([Tt.integer,Tt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),sortOrder:h.a.oneOf(["ascending","descending"]),style:h.a.shape({parent:h.a.object,data:h.a.object,labels:h.a.object}),x:h.a.oneOfType([h.a.func,Tt.allOfType([Tt.integer,Tt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),y:h.a.oneOfType([h.a.func,Tt.allOfType([Tt.integer,Tt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)]),y0:h.a.oneOfType([h.a.func,Tt.allOfType([Tt.integer,Tt.nonNegative]),h.a.string,h.a.arrayOf(h.a.string)])},Gt={animate:h.a.oneOfType([h.a.bool,h.a.object]),containerComponent:h.a.element,domain:h.a.oneOfType([Tt.domain,h.a.shape({x:Tt.domain,y:Tt.domain})]),maxDomain:h.a.oneOfType([h.a.number,h.a.instanceOf(Date),h.a.shape({x:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)]),y:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)])})]),minDomain:h.a.oneOfType([h.a.number,h.a.instanceOf(Date),h.a.shape({x:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)]),y:h.a.oneOfType([h.a.number,h.a.instanceOf(Date)])})]),domainPadding:h.a.oneOfType([h.a.shape({x:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)]),y:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)])}),h.a.number,h.a.arrayOf(h.a.number)]),eventKey:h.a.oneOfType([h.a.func,Tt.allOfType([Tt.integer,Tt.nonNegative]),h.a.string]),events:h.a.arrayOf(h.a.shape({target:h.a.oneOf(["data","labels","parent"]),eventKey:h.a.oneOfType([h.a.array,Tt.allOfType([Tt.integer,Tt.nonNegative]),h.a.string]),eventHandlers:h.a.object})),externalEventMutations:h.a.arrayOf(h.a.shape({callback:h.a.function,childName:h.a.oneOfType([h.a.string,h.a.array]),eventKey:h.a.oneOfType([h.a.array,Tt.allOfType([Tt.integer,Tt.nonNegative]),h.a.string]),mutation:h.a.function,target:h.a.oneOfType([h.a.string,h.a.array])})),groupComponent:h.a.element,height:Tt.nonNegative,name:h.a.string,origin:h.a.shape({x:h.a.number,y:h.a.number}),padding:h.a.oneOfType([h.a.number,h.a.shape({top:h.a.number,bottom:h.a.number,left:h.a.number,right:h.a.number})]),polar:h.a.bool,range:h.a.oneOfType([Tt.domain,h.a.shape({x:Tt.domain,y:Tt.domain})]),scale:h.a.oneOfType([Tt.scale,h.a.shape({x:Tt.scale,y:Tt.scale})]),sharedEvents:h.a.shape({events:h.a.array,getEventState:h.a.func}),singleQuadrantDomainPadding:h.a.oneOfType([h.a.bool,h.a.shape({x:h.a.oneOfType([h.a.bool]),y:h.a.oneOfType([h.a.bool])})]),standalone:h.a.bool,theme:h.a.object,width:Tt.nonNegative},Kt={active:h.a.bool,className:h.a.string,clipPath:h.a.string,data:h.a.oneOfType([h.a.array,h.a.object]),desc:h.a.oneOfType([h.a.string,h.a.func]),events:h.a.object,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),origin:h.a.shape({x:h.a.number,y:h.a.number}),polar:h.a.bool,role:h.a.string,scale:h.a.oneOfType([Tt.scale,h.a.shape({x:Tt.scale,y:Tt.scale})]),shapeRendering:h.a.string,style:h.a.object,tabIndex:h.a.oneOfType([h.a.number,h.a.func]),transform:h.a.string};var $t=function(t){var e=t.desc,n=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,["desc"]);return e?d.a.createElement("path",n,d.a.createElement("desc",null,e)):d.a.createElement("path",n)};function Ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){Zt(t,e,n[e])}))}return t}function Zt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yt=function(t){var e=t.orientation||"top";return"left"===e||"right"===e?function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,a=t.width,o=t.height,u=t.center,l="left"===r?1:-1,c=t.x+(t.dx||0),f=t.y+(t.dy||0),s=i()(u)&&u.x,p=i()(u)&&u.y,y=s-l*(a/2),d=s+l*(a/2),v=p+o/2,h=p-o/2,g=l*(c-y)>0?0:t.pointerLength,b="left"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(b);return"M ".concat(y,", ").concat(p-e/2,"\n L ").concat(g?c:y,", ").concat(g?f:p+e/2,"\n L ").concat(y,", ").concat(p+e/2,"\n L ").concat(y,", ").concat(v-n,"\n A ").concat(m," ").concat(y+l*n,", ").concat(v,"\n L ").concat(d-l*n,", ").concat(v,"\n A ").concat(m," ").concat(d,", ").concat(v-n,"\n L ").concat(d,", ").concat(h+n,"\n A ").concat(m," ").concat(d-l*n,", ").concat(h,"\n L ").concat(y+l*n,", ").concat(h,"\n A ").concat(m," ").concat(y,", ").concat(h+n,"\n z")}(t):function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,a=t.width,o=t.height,u=t.center,l="bottom"===r?1:-1,c=t.x+(t.dx||0),f=t.y+(t.dy||0),s=i()(u)&&u.x,p=i()(u)&&u.y,y=p+l*(o/2),d=p-l*(o/2),v=s+a/2,h=s-a/2,g=l*(f-y)<0?0:t.pointerLength,b="bottom"===r?"0 0 0":"0 0 1",m="".concat(n," ").concat(n," ").concat(b);return"M ".concat(s-e/2,", ").concat(y,"\n L ").concat(g?c:s+e/2,", ").concat(g?f:y,"\n L ").concat(s+e/2,", ").concat(y,"\n L ").concat(v-n,", ").concat(y,"\n A ").concat(m," ").concat(v,", ").concat(y-l*n,"\n L ").concat(v,", ").concat(d+l*n,"\n A ").concat(m," ").concat(v-n,", ").concat(d,"\n L ").concat(h+n,", ").concat(d,"\n A ").concat(m," ").concat(h,", ").concat(d+l*n,"\n L ").concat(h,", ").concat(y-l*n,"\n A ").concat(m," ").concat(h+n,", ").concat(y,"\n z")}(t)},Qt=function(t){return d.a.cloneElement(t.pathComponent,Ut({},t.events,{style:C.evaluateStyle(t.style,t),d:Yt(t),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};Qt.propTypes=Ut({},{baseProps:Gt,dataProps:Vt,primitiveProps:Kt}.primitiveProps,{center:h.a.shape({x:h.a.number,y:h.a.number}),cornerRadius:h.a.number,datum:h.a.object,dx:h.a.number,dy:h.a.number,height:h.a.number,orientation:h.a.oneOf(["top","bottom","left","right"]),pathComponent:h.a.element,pointerLength:h.a.number,pointerWidth:h.a.number,width:h.a.number,x:h.a.number,y:h.a.number}),Qt.defaultProps={pathComponent:d.a.createElement($t,null),role:"presentation",shapeRendering:"auto"};var Xt=Qt;function Jt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ee(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var ne={cornerRadius:5,pointerLength:10,pointerWidth:10},re=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=ee(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))).id=void 0===t.id?l()("tooltip-"):t.id,n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n=e,(r=[{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal;if(t.polar)return this.getPolarOrientation(t,e);var r=n?"right":"top",a=n?"left":"bottom";return e&&e.y<0?a:r}},{key:"getPolarOrientation",value:function(t,e){var n=M.getDegrees(t,e),r=t.labelPlacement||"vertical";return" vertical"===r?this.getVerticalOrientations(n):"parallel"===r?n<90||n>270?"right":"left":n>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getStyles",value:function(t){var e=t.theme||U.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((function(t){return f()({},t,n)})):f()({},t.style,n),a=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},o=t.flyoutStyle?f()({},t.flyoutStyle,a):a,i=Array.isArray(r)?r.map((function(e){return C.evaluateStyle(e,t)})):C.evaluateStyle(r,t);return{style:i,flyoutStyle:C.evaluateStyle(o,p()({},t,{style:i}))}}},{key:"getEvaluatedProps",value:function(t){var e=t.horizontal,n=t.pointerLength,r=t.pointerWidth,a=t.cornerRadius,o=t.centerOffset,u=t.dx,l=t.dy,c=C.evaluateProp(t.active,t),f=C.evaluateProp(t.text,p()({},t,{active:c})),s=this.getStyles(p()({},t,{active:c,text:f})),y=s.style,d=s.flyoutStyle,v=C.evaluateProp(t.orientation,p()({},t,{active:c,text:f,style:y,flyoutStyle:d}))||this.getDefaultOrientation(t),h=ct(f,y),g=this.getDimensions(p()({},t,{style:y,flyoutStyle:d,active:c,text:f,orientation:v}),h),b=g.flyoutHeight,m=g.flyoutWidth,x=p()({},t,{active:c,text:f,style:y,flyoutStyle:d,orientation:v,flyoutHeight:b,flyoutWidth:m}),O=i()(o)&&void 0!==o.x?C.evaluateProp(o.x,x):0,P=i()(o)&&void 0!==o.y?C.evaluateProp(o.y,x):0,A=d&&d.padding||0,j=e?A:0,k=e?0:A;return p()({},t,{active:c,text:f,style:y,flyoutStyle:d,orientation:v,flyoutHeight:b,flyoutWidth:m,centerOffset:{x:O,y:P},dx:void 0!==u?C.evaluateProp(u,x):j,dy:void 0!==l?C.evaluateProp(l,x):k,cornerRadius:C.evaluateProp(a,x),pointerLength:C.evaluateProp(n,x),pointerWidth:C.evaluateProp(r,x)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,r=t.flyoutStyle,a={height:t.flyoutHeight,width:t.flyoutWidth};return{style:e,flyoutStyle:r,labelSize:ct(n,e),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,r=(t.style||{}).angle||t.angle||this.getDefaultAngle(t);return r?"rotate(".concat(r," ").concat(e," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,r=t.orientation,a=t.datum;if(!e||!n||"vertical"===n)return 0;var o,i=M.getDegrees(t,a);return 0===i||180===i?o="top"===r&&180===i?270:90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(t,e,n){var r=t.x,a=t.y,o=n.width,i=n.height,u=[0,e.width],l=[0,e.height],c=[r-o/2,r+o/2],f=[a-i/2,a+i/2],s=[c[0]<u[0]?u[0]-c[0]:0,c[1]>u[1]?c[1]-u[1]:0],p=[f[0]<l[0]?l[0]-f[0]:0,f[1]>l[1]?f[1]-l[1]:0];return{x:Math.round(r+s[0]-s[1]),y:Math.round(a+p[0]-p[1])}}},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,r=t.y,a=t.dx,o=t.dy,u=t.pointerLength,l=t.orientation,c=t.constrainToVisibleArea,f=t.centerOffset,s=e.height,p=e.width,y="left"===l?-1:1,d="bottom"===l?-1:1,v={x:"left"===l||"right"===l?n+y*(u+p/2+y*a):n+a,y:"top"===l||"bottom"===l?r-d*(u+s/2-d*o):r+o},h=i()(t.center)&&void 0!==t.center.x?t.center.x:v.x,g=i()(t.center)&&void 0!==t.center.y?t.center.y:v.y,b={x:h+f.x,y:g+f.y};return c?this.constrainTooltip(b,t,e):b}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e=Array.isArray(t)?t.map((function(t){return t.padding})):[t.padding];return Math.max.apply(Math,Jt(e).concat([0]))}},{key:"getDimensions",value:function(t,e){var n,r,a,o,i=t.orientation,u=t.pointerLength,l=t.pointerWidth,c=t.style,f=t.flyoutHeight,s=t.flyoutWidth,p=this.getLabelPadding(c),y=C.evaluateProp(t.cornerRadius,t);return{flyoutHeight:f?C.evaluateProp(f,t):(a=e.height+p,o="top"===i||"bottom"===i?2*y:2*y+l,Math.max(o,a)+p/2),flyoutWidth:s?C.evaluateProp(s,t):(n=e.width+p,r="left"===i||"right"===i?2*y+u:2*y,Math.max(r,n)+p)}}},{key:"getLabelProps",value:function(t,e){var n,r=e.flyoutCenter,a=e.style,o=e.labelSize,i=e.dy,u=e.dx,l=t.text,c=t.datum,s=t.activePoints,p=t.labelComponent,y=t.index,d=(Array.isArray(a)&&a.length?a[0].textAnchor:a.textAnchor)||"middle";return f()({},p.props,{key:"".concat(this.id,"-label-").concat(y),text:l,datum:c,activePoints:s,textAnchor:d,dy:i,dx:u,style:a,x:d&&"middle"!==d?(n="end"===d?-1:1,r.x-n*(o.width/2)):r.x,y:r.y,verticalAnchor:"middle",angle:a.angle})}},{key:"getPointerOrientation",value:function(t,e,n){var r=e.y+n.height/2,o=e.y-n.height/2,i=e.x-n.width/2,u=e.x+n.width/2,l=[{side:"top",val:o>t.y?o-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:u<t.x?t.x-u:-1},{side:"left",val:i>t.x?i-t.x:-1}];return a()(l,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,r=e.flyoutStyle,a=e.flyoutCenter,o=t.x,i=t.y,u=t.dx,l=t.dy,c=t.datum,s=t.activePoints,p=t.index,y=t.pointerLength,d=t.pointerWidth,v=t.cornerRadius,h=t.events,g=t.flyoutComponent,b=C.evaluateProp(t.pointerOrientation,t);return f()({},g.props,{x:o,y:i,dx:u,dy:l,datum:c,activePoints:s,index:p,pointerLength:y,pointerWidth:d,cornerRadius:v,events:h,orientation:b||this.getPointerOrientation({x:o,y:i},a,n),key:"".concat(this.id,"-tooltip-").concat(p),width:n.width,height:n.height,style:r,center:a})}},{key:"renderTooltip",value:function(t){var e=this.getEvaluatedProps(t),n=e.flyoutComponent,r=e.labelComponent,a=e.groupComponent,o=e.active,i=e.renderInPortal;if(!o)return i?d.a.createElement(ht,null,null):null;var u=this.getCalculatedValues(e),l=[d.a.cloneElement(n,this.getFlyoutProps(e,u)),d.a.cloneElement(r,this.getLabelProps(e,u))],c=d.a.cloneElement(a,{role:"presentation",transform:u.transform},l);return i?d.a.createElement(ht,null,c):c}},{key:"render",value:function(){var t=C.modifyProps(this.props,ne,"tooltip");return this.renderTooltip(t)}}])&&te(n.prototype,r),o&&te(n,o),e}(d.a.Component);Object.defineProperty(re,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"VictoryTooltip"}),Object.defineProperty(re,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{activateData:h.a.bool,active:h.a.oneOfType([h.a.bool,h.a.func]),activePoints:h.a.array,angle:h.a.number,center:h.a.shape({x:Tt.nonNegative,y:Tt.nonNegative}),centerOffset:h.a.shape({x:h.a.oneOfType([h.a.number,h.a.func]),y:h.a.oneOfType([h.a.number,h.a.func])}),constrainToVisibleArea:h.a.bool,cornerRadius:h.a.oneOfType([Tt.nonNegative,h.a.func]),data:h.a.array,datum:h.a.object,dx:h.a.oneOfType([h.a.number,h.a.func]),dy:h.a.oneOfType([h.a.number,h.a.func]),events:h.a.object,flyoutComponent:h.a.element,flyoutHeight:h.a.oneOfType([Tt.nonNegative,h.a.func]),flyoutStyle:h.a.object,flyoutWidth:h.a.oneOfType([Tt.nonNegative,h.a.func]),groupComponent:h.a.element,height:h.a.number,horizontal:h.a.bool,id:h.a.oneOfType([h.a.number,h.a.string]),index:h.a.oneOfType([h.a.number,h.a.string]),labelComponent:h.a.element,orientation:h.a.oneOfType([h.a.oneOf(["top","bottom","left","right"]),h.a.func]),pointerLength:h.a.oneOfType([Tt.nonNegative,h.a.func]),pointerOrientation:h.a.oneOfType([h.a.oneOf(["top","bottom","left","right"]),h.a.func]),pointerWidth:h.a.oneOfType([Tt.nonNegative,h.a.func]),polar:h.a.bool,renderInPortal:h.a.bool,scale:h.a.shape({x:Tt.scale,y:Tt.scale}),style:h.a.oneOfType([h.a.object,h.a.array]),text:h.a.oneOfType([h.a.string,h.a.number,h.a.func,h.a.array]),theme:h.a.object,width:h.a.number,x:h.a.number,y:h.a.number}}),Object.defineProperty(re,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{active:!1,renderInPortal:!0,labelComponent:d.a.createElement(qt,null),flyoutComponent:d.a.createElement(Xt,null),groupComponent:d.a.createElement("g",null)}}),Object.defineProperty(re,"defaultEvents",{configurable:!0,enumerable:!0,writable:!0,value:function(t){return[{target:"data",eventHandlers:{onMouseOver:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onTouchStart:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onMouseOut:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}]},onTouchEnd:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}]}}}]}}),n.d(e,"VictoryTooltip",(function(){return re})),n.d(e,"Flyout",(function(){return Xt}))}])})); | ||
//# sourceMappingURL=victory-tooltip.min.js.map |
{ | ||
"name": "victory-tooltip", | ||
"version": "34.3.5", | ||
"version": "34.3.6", | ||
"description": "Tooltip Component for Victory", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^34.3.5" | ||
"victory-core": "^34.3.6" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1255149
8788
Updatedvictory-core@^34.3.6