victory-tooltip 37.3.1 → 37.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !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)}(self,(function(t){return function(){var e={503:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);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=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},3273:function(t,e,n){var r=n(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);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=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},2596:function(t,e,n){var r=n(2373).Symbol;t.exports=r},6082:function(t){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)}},8644:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},9559:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},1634:function(t){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}},4132:function(t,e,n){var r=n(8347),i=n(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:function(t,e,n){var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},8347:function(t,e,n){var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},6457:function(t,e,n){var r=n(9559),i=n(3608);t.exports=function t(e,n,o,a,s){var l=-1,c=e.length;for(o||(o=i),s||(s=[]);++l<c;){var u=e[l];n>0&&o(u)?n>1?t(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},4432:function(t,e,n){var r=n(9026),i=n(3110);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},563:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},9070:function(t,e,n){var r=n(7028),i=n(3474);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},7028:function(t,e,n){var r=n(8708),i=n(8705),o=n(2813),a=n(6682),s=n(9667),l=n(163),c=n(4801),u=n(4289),d="[object Arguments]",f="[object Array]",p="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,y,b){var v=l(t),x=l(e),m=v?f:s(t),k=x?f:s(e),O=(m=m==d?p:m)==p,j=(k=k==d?p:k)==p,A=m==k;if(A&&c(t)){if(!c(e))return!1;v=!0,O=!1}if(A&&!O)return b||(b=new r),v||u(t)?i(t,e,n,h,y,b):o(t,e,m,n,h,y,b);if(!(1&n)){var S=O&&g.call(t,"__wrapped__"),w=j&&g.call(e,"__wrapped__");if(S||w){var F=S?t.value():t,E=w?e.value():e;return b||(b=new r),y(F,E,n,h,b)}}return!!A&&(b||(b=new r),a(t,e,n,h,y,b))}},9548:function(t,e,n){var r=n(8708),i=n(9070);t.exports=function(t,e,n,o){var a=n.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=n[a])[0],d=t[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in t))return!1}else{var p=new r;if(o)var g=o(d,f,u,t,e,p);if(!(void 0===g?i(f,d,3,o,p):g))return!1}}return!0}},3472:function(t,e,n){var r=n(758),i=n(5223),o=n(5346),a=n(163),s=n(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},7190:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},758:function(t,e,n){var r=n(9548),i=n(597),o=n(6878);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:function(t,e,n){var r=n(9070),i=n(9201),o=n(5066),a=n(726),s=n(5385),l=n(6878),c=n(3110);t.exports=function(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},8245:function(t,e,n){var r=n(8644),i=n(4432),o=n(3472),a=n(383),s=n(9521),l=n(9110),c=n(9409),u=n(5346),d=n(163);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return d(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[u];var f=-1;e=r(e,l(o));var p=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(p,(function(t,e){return c(t,e,n)}))}},5436:function(t,e,n){var r=n(6371),i=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},6371:function(t,e,n){var r=n(4432),i=n(6539),o=n(9026);t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var c=e[a],u=r(t,c);n(u,c)&&i(l,o(c,t),u)}return l}},1600:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:function(t,e,n){var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},6317:function(t,e,n){var r=n(5346),i=n(4280),o=n(201);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6539:function(t,e,n){var r=n(4132),i=n(9026),o=n(9099),a=n(7709),s=n(3110);t.exports=function(t,e,n,l){if(!a(t))return t;for(var c=-1,u=(e=i(e,t)).length,d=u-1,f=t;null!=f&&++c<u;){var p=s(e[c]),g=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=d){var h=f[p];void 0===(g=l?l(h,p,f):void 0)&&(g=a(h)?h:o(e[c+1])?[]:{})}r(f,p,g),f=f[p]}return t}},9521:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},6316:function(t,e,n){var r=n(2596),i=n(8644),o=n(163),a=n(1995),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},9110:function(t){t.exports=function(t){return function(e){return t(e)}}},9914:function(t,e,n){var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9026:function(t,e,n){var r=n(163),i=n(726),o=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},522:function(t,e,n){var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,l=null===e,c=e==e,u=r(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&t<e||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},9409:function(t,e,n){var r=n(522);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},5525:function(t,e,n){var r=n(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,e,n){var r=n(3273),i=n(1634),o=n(9914);t.exports=function(t,e,n,a,s,l){var c=1&n,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(t),p=l.get(e);if(f&&p)return f==e&&p==t;var g=-1,h=!0,y=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++g<u;){var b=t[g],v=e[g];if(a)var x=c?a(v,b,g,e,t,l):a(b,v,g,t,e,l);if(void 0!==x){if(x)continue;h=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(b===t||s(b,t,n,a,l)))return y.push(e)}))){h=!1;break}}else if(b!==v&&!s(b,v,n,a,l)){h=!1;break}}return l.delete(t),l.delete(e),h}},2813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:function(t,e,n){var r=n(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in e:i.call(e,f)))return!1}var p=s.get(t),g=s.get(e);if(p&&g)return p==e&&g==t;var h=!0;s.set(t,e),s.set(e,t);for(var y=l;++d<u;){var b=t[f=c[d]],v=e[f];if(o)var x=l?o(v,b,f,e,t,s):o(b,v,f,t,e,s);if(!(void 0===x?b===v||a(b,v,n,o,s):x)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var m=t.constructor,k=e.constructor;m==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof k&&k instanceof k||(h=!1)}return s.delete(t),s.delete(e),h}},5557:function(t,e,n){var r=n(2645),i=n(4280),o=n(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8143:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},597:function(t,e,n){var r=n(5385),i=n(7747);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},3743:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},9817:function(t,e,n){var r=n(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:function(t,e,n){var r=n(9026),i=n(5075),o=n(163),a=n(9099),s=n(8454),l=n(3110);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,d=!1;++c<u;){var f=l(e[c]);if(!(d=null!=t&&n(t,f)))break;t=t[f]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&s(u)&&a(f,u)&&(o(t)||i(t))}},3608:function(t,e,n){var r=n(2596),i=n(5075),o=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t){t.exports=function(){return!1}},726:function(t,e,n){var r=n(163),i=n(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,e,n){var r=n(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var r=n(3162),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},4859:function(t,e,n){var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,e,n){var r=n(3162);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},6878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2453:function(t){t.exports=function(t){return t}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var r=n(6082),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(l),r(t,this,c)}}},2373:function(t,e,n){var r=n(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},201:function(t){t.exports=function(t){return t}},7801:function(t,e,n){var r=n(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},3110:function(t,e,n){var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1893:function(t,e,n){var r=n(6317),i=n(788),o=n(8286),a=n(8855),s=Object.prototype,l=s.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 u=e[n],d=a(u),f=-1,p=d.length;++f<p;){var g=d[f],h=t[g];(void 0===h||i(h,s[g])&&!l.call(t,g))&&(t[g]=u[g])}return t}));t.exports=c},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,e,n){var r=n(4432);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},5066:function(t,e,n){var r=n(6776),i=n(3096);t.exports=function(t,e){return null!=t&&i(t,e,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var r=n(9642),i=n(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,e,n){var r=n(7190),i=n(9667),o=n(5075),a=n(163),s=n(981),l=n(4801),c=n(5782),u=n(4289),d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},9642:function(t,e,n){var r=n(563),i=n(7709);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,e,n){var r=n(563),i=n(9817),o=n(3474),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},7747:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:function(t,e,n){var r=n(503);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},4143:function(t,e,n){var r=n(8245),i=n(163);t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:function(t,e,n){var r=n(5436),i=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},8532:function(t,e,n){var r=n(1600),i=n(3301),o=n(726),a=n(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},7010:function(t,e,n){var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},660:function(t,e,n){var r=n(7010),i=0;t.exports=function(t){var e=++i;return r(t)+e}},9787:function(e){"use strict";e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.r(i),r.d(i,{Flyout:function(){return fe},VictoryTooltip:function(){return ge}});var t=r(4143),e=r.n(t),n=r(3849),o=r.n(n),a=r(660),s=r.n(a),l=r(1893),c=r.n(l),u=r(9787),d=r.n(u),f=r(4155),p=r.n(f);function g(t,e){void 0===e&&(e=[]);const n={};for(const r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function h(t){const e=t=>void 0!==t,{_x:n,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:l,_voronoiY:u}=t,d=e(r)?r:n,f=e(s)?s:a,p={x:e(o)?o:d,x0:e(i)?i:n,y:e(u)?u:f,y0:e(l)?l:a};return c()({},p,t)}function y(t,e){void 0===e&&(e="padding");const n=t[e],r="number"==typeof n?n:0,i="object"==typeof n?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function b(t,e){return x(t)?t(e):t}function v(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((e=>x(t[e])))?Object.keys(t).reduce(((n,r)=>(n[r]=b(t[r],e),n)),{}):t}function x(t){return"function"==typeof t}r(9082),r(8532);const m=d().createContext(void 0);m.displayName="PortalContext";const k={groupComponent:d().createElement("g",null)},O=t=>{const e={...k,...t},[n]=(0,u.useState)(s()()),r=d().useContext(m),i=Array.isArray(e.children)?e.children[0]:e.children,{groupComponent:o}=e,a=i&&i.props||{},l=a.groupComponent?{groupComponent:o,standalone:!1}:{},f=c()(l,a,g(e,["children","groupComponent"]),{key:a.key??n}),p=i&&d().cloneElement(i,f);return d().useEffect((()=>{r?.addChild(n,p)}),[e.children]),d().useEffect((()=>()=>r?.removeChild(n)),[]),r?null:p};function j(){return j=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j.apply(this,arguments)}O.role="portal";const A=(0,u.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:b(r,t)?.toString(),tabIndex:b(i,t),...a};return n?d().createElement("rect",j({},s,{ref:e}),d().createElement("desc",null,n)):d().createElement("rect",j({},s,{ref:e}))})),S=t=>{const{children:e,desc:n,id:r,origin:i,tabIndex:o,title:a,...s}=t,l={id:b(r,t)?.toString(),tabIndex:b(o,t),...s};return d().createElement("text",l,a&&d().createElement("title",null,a),n&&d().createElement("desc",null,n),e)},w=t=>{const{desc:e,id:n,tabIndex:r,origin:i,...o}=t,a={id:b(n,t)?.toString(),tabIndex:b(r,t),...o};return d().createElement("tspan",a)};function F(t,e){const{x:n}=h(e);return("number"==typeof(r=t.scale.x(n))?r/(Math.PI/180):r)%360;var r}const E=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(((t,e)=>[t,E(e)].join(" ")),E(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];i.push(`${e}(${n})`)}return i.join(" ").trim()};var C=r(1594),$=r.n(C);const L={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},P={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},W={em:1,ex:.5},D={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},z=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),B=(t,e,n)=>{const r=(t=>t*Math.PI/180)(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},_=(t,e)=>{const n=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=n?P.hasOwnProperty(n)?r*P[n]:W.hasOwnProperty(n)?(e?r*e:r*D.fontSize)*W[n]:r:r||0,i},M=(t,e)=>{const n=Array.isArray(t)?t[e]:t,r=c()({},n,D);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:_(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:_(String(r.fontSize))})},H=(t,e)=>{const n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=((t,e)=>void 0===t||""===t||null===t?0:z(t).reduce(((t,n,r)=>{const i=M(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,e),i=((t,e)=>{if(void 0===t||""===t||null===t)return 0;const n=z(t).map(((t,n)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=M(e,n),s=(t=>{const e=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>L[t]))||"Helvetica";return L[e]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,e)=>e+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...n)})(t,e);return{width:n?B(i,r,n):i,height:1.05*(n?B(r,i,n):r)}},T=$()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),R=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",I=$()(((t,e)=>{let n=T();n.isConnected||(T.cache.clear?.(),n=T());const r=z(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=M(e,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),n.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=n.getBoundingClientRect();return n.innerHTML="",{width:e?.angle?B(o,i,e?.angle):o,height:e?.angle?B(i,o,e?.angle):i}}),((t,e)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(e)?e.map(R).join():R(e)}`)),N=(t,e)=>function(t,e,n){return void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?H(t,e):I(t,e)}(t,e),q={startsWith:["data-","aria-"],exactMatch:[]};function V(t,e){if(null==t)throw new Error(e)}const G=t=>{const e={...t};return Object.fromEntries(Object.entries(e).filter((t=>{let[e]=t;return(t=>!(!(t=>{let e=!1;return q.startsWith.forEach((n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(t)&&(e=!0)})),e})(t)&&!(t=>q.exactMatch.includes(t))(t)))(e)})).map((e=>{let[n,r]=e;return[n,b(r,t)]})))},Z={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},X=(t,e)=>{if(!t.datum)return 0;const n=function(t,e){const{scale:n,polar:r,horizontal:i}=t,o=h(e),a=t.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),l=i?n.y(o.y0):n.x(o.x0),c=i?n.x(o.x):n.y(o.y),u=i?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}(t,t.datum);return n[e]},Y=t=>{const e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Z.fontSize;if("string"==typeof e){const t=Number(e.replace("px",""));return isNaN(t)?Z.fontSize:t}return Z.fontSize},J=function(t,e){return void 0===e&&(e=0),Array.isArray(t)?t[e]||t[0]:t},K=t=>{const{backgroundStyle:e,backgroundPadding:n}=t;return Array.isArray(e)&&!p()(e)||Array.isArray(n)&&!p()(n)},Q=(t,e)=>{const{direction:n,textAnchor:r,x:i,dx:o}=t;if("rtl"===n)return i-e;switch(r){case"middle":return Math.round(i-e/2);case"end":return Math.round(i-e);default:return i+(o||0)}},U=(t,e)=>{const{verticalAnchor:n,y:r,originalDy:i=0}=t,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-e);default:return Math.floor(o-e/2)}},tt=(t,e)=>K(t)?((t,e)=>{const{dy:n,dx:r,transform:i,backgroundStyle:o,backgroundPadding:a,backgroundComponent:s,inline:l,y:u}=t,f=e.map(((t,i)=>{const o=J(e,i-1),s=t.textSize,c=t.fontSize*t.lineHeight,d=Math.ceil(c),f=J(a,i),p=J(a,i-1),g=l&&r||0,h=i&&!l?o.fontSize*o.lineHeight+p.top+p.bottom:n-.5*c-(t.fontSize-t.capHeight);return{textHeight:d,labelSize:s,heightWithPadding:d+f.top+f.bottom,widthWithPadding:s.width+f.left+f.right+g,y:u,fontSize:t.fontSize,dy:h}}));return f.map(((e,n)=>{const r=Q(t,e.labelSize.width),p=f.slice(0,n+1).reduce(((t,e)=>t+e.dy),u),g=J(a,n),h=e.heightWithPadding,y=l?((t,e,n)=>{const{textAnchor:r}=t,i=e.map((t=>t.widthWithPadding)),o=-i.reduce(((t,e)=>t+e),0)/2;switch(r){case"start":return i.reduce(((t,e,r)=>r<n?t+e:t),0);case"end":return i.reduce(((t,e,r)=>r>n?t-e:t),0);default:return i.reduce(((t,e,r)=>r===n?t+e/2:t+(r<n?e:0)),o)}})(t,f,n)+r-g.left:r,b=l?U(t,h)-g.top:p,v={key:`tspan-background-${n}`,height:h,style:J(o,n),width:e.widthWithPadding,transform:i,x:y-g.left,y:b};return d().cloneElement(s,c()({},s.props,v))}))})(t,e):((t,e)=>{const{dx:n=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:a,backgroundPadding:s,capHeight:l}=t,u=e.map((t=>t.textSize)),f=a?Math.max(...u.map((t=>t.height))):u.reduce(((t,n,r)=>{const i=r?0:l/2;return t+n.height*(e[r].lineHeight-i)}),0),p=a?u.reduce(((t,e,r)=>{const i=r?n:0;return t+e.width+i}),0):Math.max(...u.map((t=>t.width))),g=Q(t,p),h=U(t,f),y={key:"background",height:f+s.top+s.bottom,style:o,transform:r,width:p+s.left+s.right,x:a?g-s.left:g+n-s.left,y:h};return d().cloneElement(i,c()({},i.props,y))})(t,e),et=(t,e,n)=>{const{inline:r}=e,i=J(t,n);return n&&!r?((t,e,n)=>{const r=J(t,e),i=J(t,e-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,l=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-l/2+s/2;return K(n)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,n,e):r?0===n?i.backgroundPadding.top:void 0:i.backgroundPadding.top},nt=t=>{const e=b(t.ariaLabel,t),n=J(t.style),r=(t=>{const e=b(t.lineHeight,t);return Array.isArray(e)&&p()(e)?[1]:e})(t),i=t.direction?b(t.direction,t):"inherit",o=t.textAnchor?b(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?b(t.verticalAnchor,t):n.verticalAnchor||"middle",s=t.dx?b(t.dx,t):0,l=((t,e,n)=>{const r=t.dy?b(t.dy,t):0,i=t.inline?1:t.text.length,o=b(t.capHeight,t),a=e?b(e,t):"middle",s=[...Array(i).keys()].map((e=>J(t.style,e).fontSize)),l=[...Array(i).keys()].map((t=>J(n,t)));if("start"===a)return r+(o/2+l[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-l[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*l[0])*s[0]:r+(o/2+(.5-i/2)*l[0])*s[0];const c=[...Array(i).keys()].reduce(((t,e)=>t+(o/2+(.5-i)*l[e])*s[e]/i),0);return"end"===a?r+c:r+c/2+o/2*l[i-1]*s[i-1]})(t,a,r),c=void 0!==t.x?t.x:X(t,"x"),u=void 0!==t.y?t.y:X(t,"y"),d=((t,e,n)=>{const{polar:r}=t,i=J(t.style),o=r?function(t,e){const{labelPlacement:n,datum:r}=t;if(!n||"vertical"===n)return 0;const i=F(t,r);let o=0;return 0===i||180===i?o=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)}(t):0,a=void 0===i.angle?b(t.angle,t):i.angle,s=void 0===a?o:a,l=t.transform||i.transform,c=l&&b(l,t);return c||s?E(c,s&&{rotate:[s,e,n]}):void 0})(t,c,u);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:l,originalDy:b(t.dy,t),transform:d,x:c,y:u})},rt={backgroundComponent:d().createElement(A,null),groupComponent:d().createElement("g",null),direction:"inherit",textComponent:d().createElement(S,null),tspanComponent:d().createElement(w,null),capHeight:.71,lineHeight:1},it=t=>{const e=(t=>{const e=((t,e)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>b(t,e)));const n=b(t,e);return null!=n?Array.isArray(n)?n:`${n}`.split("\n"):void 0})(t.text,t),n=((t,e)=>{if(e.disableInlineStyles){const n=v(t,e);return{fontSize:Y(n)}}const n=t=>{const n=v(t?c()({},t,Z):Z,e);return Object.assign({},n,{fontSize:Y(n)})};return Array.isArray(t)&&!p()(t)?t.map((t=>n(t))):n(t)})(t.style,Object.assign({},t,{text:e})),r=((t,e)=>{if(t)return Array.isArray(t)&&!p()(t)?t.map((t=>v(t,e))):v(t,e)})(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((e=>y({padding:b(e,t)}))):y({padding:b(t.backgroundPadding,t)}))(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),o=b(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:n,text:e,id:o})})(c()({},t,rt));if(null===e.text||void 0===e.text)return null;const n=nt(e),{text:r,style:i,capHeight:o,backgroundPadding:a,lineHeight:s}=n,l=r.map(((t,e)=>{const n=J(i,e),r=_(`${o}em`,n.fontSize),l=J(s,e);return{style:n,fontSize:n.fontSize||Z.fontSize,capHeight:r,text:t,textSize:N(t,n),lineHeight:l,backgroundPadding:J(a,e)}})),u=((t,e)=>{const{ariaLabel:n,inline:r,className:i,title:o,events:a,direction:s,text:l,textAnchor:c,dx:u,dy:f,transform:p,x:g,y:h,desc:y,id:v,tabIndex:x,tspanComponent:m,textComponent:k}=t,O=G(t),j={"aria-label":n,key:"text",...a,direction:s,dx:u,x:g,y:h+f,transform:p,className:i,title:o,desc:b(y,t),tabIndex:b(x,t),id:v,...O},A=l.map(((n,i)=>{const o=e[i].style,a={key:`${v}-key-${i}`,x:r?void 0:g,dx:r?u+e[i].backgroundPadding.left:u,dy:et(e,t,i),textAnchor:o.textAnchor||c,style:o,children:n};return d().cloneElement(m,a)}));return d().cloneElement(k,j,A)})(n,l);if(e.backgroundStyle){const t=[tt(n,l),u],r=d().cloneElement(e.groupComponent,{},t);return e.renderInPortal?d().createElement(O,null,r):r}return e.renderInPortal?d().createElement(O,null,u):u};it.displayName="VictoryLabel",it.role="label",it.defaultStyles=Z;const ot=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],at="#252525",st="#969696",lt={width:450,height:300,padding:50,colorScale:ot},ct={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:at,stroke:"transparent"},ut=Object.assign({textAnchor:"middle"},ct),dt={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:ot,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"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:at},labels:ct}},lt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:at,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},ut,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:ct}},lt),bar:Object.assign({style:{data:{fill:at,padding:8,strokeWidth:0},labels:ct}},lt),boxplot:Object.assign({style:{max:{padding:8,stroke:at,strokeWidth:1},maxLabels:Object.assign({},ct,{padding:3}),median:{padding:8,stroke:at,strokeWidth:1},medianLabels:Object.assign({},ct,{padding:3}),min:{padding:8,stroke:at,strokeWidth:1},minLabels:Object.assign({},ct,{padding:3}),q1:{padding:8,fill:st},q1Labels:Object.assign({},ct,{padding:3}),q3:{padding:8,fill:st},q3Labels:Object.assign({},ct,{padding:3})},boxWidth:20},lt),candlestick:Object.assign({style:{data:{stroke:at,strokeWidth:1},labels:Object.assign({},ct,{padding:5})},candleColors:{positive:"#ffffff",negative:at}},lt),chart:lt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:at,strokeWidth:2},labels:ct}},lt),group:Object.assign({colorScale:ot},lt),histogram:Object.assign({style:{data:{fill:st,stroke:at,strokeWidth:2},labels:ct}},lt),legend:{colorScale:ot,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:ct,title:Object.assign({},ct,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:at,strokeWidth:2},labels:ct}},lt),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},ct,{padding:20})},colorScale:ot,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:at,stroke:"transparent",strokeWidth:0},labels:ct}},lt),stack:Object.assign({colorScale:ot},lt),tooltip:{style:Object.assign({},ct,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:at,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},ct,{padding:5,pointerEvents:"none"}),flyout:{stroke:at,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},lt)},ft="#FFF59D",pt="#F4511E",gt="#8BC34A",ht="#00796B",yt="#006064",bt=[pt,ft,"#DCE775",gt,ht,yt],vt="#ECEFF1",xt="#90A4AE",mt="#455A64",kt="#212121",Ot={blue:"#4F7DA1",pink:"#E2A37F",teal:ht,purple:"#DF948A",green:gt,orange:pt,cyan:yt,red:"#DF5A49",yellow:ft},jt=[vt,xt,mt,kt],At={width:350,height:350,padding:50},St={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:mt,stroke:"transparent",strokeWidth:0},wt=Object.assign({textAnchor:"middle"},St),Ft="round",Et="round",Ct={palette:{colors:Ot,grayscale:jt,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"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:kt},labels:St}},At),axis:Object.assign({style:{axis:{fill:"transparent",stroke:xt,strokeWidth:2,strokeLinecap:Ft,strokeLinejoin:Et},axisLabel:Object.assign({},wt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:vt,strokeDasharray:"10, 5",strokeLinecap:Ft,strokeLinejoin:Et,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:xt,strokeWidth:1,strokeLinecap:Ft,strokeLinejoin:Et},tickLabels:Object.assign({},St,{fill:mt})}},At),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:mt,padding:8,strokeWidth:0},labels:St}},At),boxplot:Object.assign({style:{max:{padding:8,stroke:mt,strokeWidth:1},maxLabels:Object.assign({},St,{padding:3}),median:{padding:8,stroke:mt,strokeWidth:1},medianLabels:Object.assign({},St,{padding:3}),min:{padding:8,stroke:mt,strokeWidth:1},minLabels:Object.assign({},St,{padding:3}),q1:{padding:8,fill:mt},q1Labels:Object.assign({},St,{padding:3}),q3:{padding:8,fill:mt},q3Labels:Object.assign({},St,{padding:3})},boxWidth:20},At),candlestick:Object.assign({style:{data:{stroke:mt},labels:Object.assign({},St,{padding:5})},candleColors:{positive:"#ffffff",negative:mt}},At),chart:At,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:mt,strokeWidth:2},labels:St}},At),group:Object.assign({colorScale:bt},At),histogram:Object.assign({style:{data:{fill:mt,stroke:kt,strokeWidth:2},labels:St}},At),legend:{colorScale:bt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:St,title:Object.assign({},St,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:mt,strokeWidth:2},labels:St}},At),pie:Object.assign({colorScale:bt,style:{data:{padding:8,stroke:vt,strokeWidth:1},labels:Object.assign({},St,{padding:20})}},At),scatter:Object.assign({style:{data:{fill:mt,opacity:1,stroke:"transparent",strokeWidth:0},labels:St}},At),stack:Object.assign({colorScale:bt},At),tooltip:{style:Object.assign({},St,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:kt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},St,{padding:5,pointerEvents:"none"}),flyout:{stroke:kt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},At)},$t="#FFFFFF",Lt="#F2F2F2",Pt="#E0E0E0",Wt="#D1D1D1",Dt="#757575",zt="#424242",Bt="#292929",_t="#FCB400",Mt="#FF6F2C",Ht={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},Tt="#8B46FF",Rt={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},It="#18BFFF",Nt="#20D9D2",qt={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},Vt={blue:Rt[500],cyan:It,green:qt[500],yellow:_t,orange:Mt,red:Ht[500],purple:Tt,teal:Nt},Gt=Object.values(Vt),Zt=[Lt,Pt,Dt,zt,Bt],Xt=["#FFD66E",_t,Mt,"#D74D26",Ht[500]],Yt=[Tt,Rt[500],It,Nt,qt[500]],Jt=[qt[900],qt[500],_t,Mt,Ht[500]],Kt=Object.values(Ht),Qt=Object.values(qt),Ut=Object.values(Rt),te=Rt[500],ee={width:450,height:300,padding:60,colorScale:Gt},ne={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:Bt,stroke:"transparent"},re=Object.assign({textAnchor:"middle"},ne),ie="10, 5",oe="round",ae="round",se={grayscale:dt,material:Ct,clean:{palette:{colors:Vt,grayscale:Zt,qualitative:Gt,heatmap:Jt,warm:Xt,cool:Yt,red:Kt,green:Qt,blue:Ut},area:Object.assign({style:{data:{fill:te,strokeWidth:2,fillOpacity:.5},labels:ne}},ee),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Dt,strokeWidth:1,strokeLinecap:oe,strokeLinejoin:ae},axisLabel:Object.assign({},re,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:ne}},ee),polarAxis:Object.assign({style:{axis:{stroke:Dt},grid:{stroke:Wt,strokeDasharray:ie,strokeLinecap:oe,strokeLinejoin:ae,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Wt,strokeWidth:1,strokeLinecap:oe,strokeLinejoin:ae},tickLabels:ne}}),polarDependentAxis:Object.assign({style:{axis:{stroke:Dt},grid:{stroke:Wt,strokeDasharray:ie,strokeLinecap:oe,strokeLinejoin:ae,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Pt,strokeWidth:1,strokeLinecap:oe,strokeLinejoin:ae},tickLabels:ne}}),bar:Object.assign({style:{data:{fill:te,padding:8,strokeWidth:1,fillOpacity:.5},labels:ne},cornerRadius:{top:1}},ee),boxplot:Object.assign({style:{max:{padding:8,stroke:Wt,strokeWidth:2},maxLabels:Object.assign({},ne,{padding:3}),median:{padding:8,stroke:$t,strokeWidth:2},medianLabels:Object.assign({},ne,{padding:3}),min:{padding:8,stroke:Wt,strokeWidth:2},minLabels:Object.assign({},ne,{padding:3}),q1:{padding:8,fill:Gt[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},ne,{padding:3}),q3:{padding:8,fill:Gt[1],rx:1},q3Labels:Object.assign({},ne,{padding:3})},boxWidth:20},ee),candlestick:Object.assign({style:{data:{stroke:Pt,strokeWidth:0,rx:1},labels:Object.assign({},ne,{padding:5})},candleColors:{positive:qt[500],negative:Ht[500]},wickStrokeWidth:2},ee),chart:ee,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:zt,strokeWidth:2,strokeLinecap:oe},labels:ne}},ee),group:Object.assign({colorScale:Gt},ee),histogram:Object.assign({style:{data:{fill:It,fillOpacity:.5},labels:ne},binSpacing:4,cornerRadius:{top:1}},ee),label:ne,legend:{colorScale:Gt,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...ne,fontSize:12},title:Object.assign({},ne,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:te,strokeWidth:2,strokeLinecap:oe,strokeLinejoin:ae},labels:ne}},ee),pie:Object.assign({style:{parent:{backgroundColor:$t},data:{padding:8,stroke:$t,strokeWidth:1},labels:{...ne,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:Gt,cornerRadius:1},ee),scatter:Object.assign({style:{data:{fill:te,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...ne,padding:20}}},ee),stack:Object.assign({colorScale:Gt},ee),tooltip:{style:Object.assign({},ne,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Pt,strokeWidth:2,fill:$t,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:Rt[100],stroke:te,strokeWidth:2},labels:Object.assign({},ne,{padding:5,pointerEvents:"none"}),flyout:{stroke:Bt,strokeWidth:1,fill:Lt,pointerEvents:"none"},padding:{left:2,bottom:2}}},ee)}};function le(){return le=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},le.apply(this,arguments)}const ce=(0,u.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:o,...a}=t,s={id:b(r,t)?.toString(),tabIndex:b(i,t),...a};return n?d().createElement("path",le({},s,{ref:e}),d().createElement("desc",null,n)):d().createElement("path",le({},s,{ref:e}))})),ue=t=>{const e=t.orientation||"top";return"left"===e||"right"===e?(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:i,height:o,center:a}=t,s="left"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,d=a.y,f=u-s*(i/2),p=u+s*(i/2),g=d+o/2,h=d-o/2,y=s*(l-f)>0?0:t.pointerLength,b=`${n} ${n} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${f}, ${d-e/2}\n L ${y?l:f}, ${y?c:d+e/2}\n L ${f}, ${d+e/2}\n L ${f}, ${g-n}\n A ${b} ${f+s*n}, ${g}\n L ${p-s*n}, ${g}\n A ${b} ${p}, ${g-n}\n L ${p}, ${h+n}\n A ${b} ${p-s*n}, ${h}\n L ${f+s*n}, ${h}\n A ${b} ${f}, ${h+n}\n z`})(t):(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:i,height:o,center:a}=t,s="bottom"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,d=a.y,f=d+s*(o/2),p=d-s*(o/2),g=u+i/2,h=u-i/2,y=s*(c-f)<0?0:t.pointerLength,b=`${n} ${n} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${u-e/2}, ${f}\n L ${y?l:u+e/2}, ${y?c:f}\n L ${u+e/2}, ${f}\n L ${g-n}, ${f}\n A ${b} ${g}, ${f-s*n}\n L ${g}, ${p+s*n}\n A ${b} ${g-n}, ${p}\n L ${h+n}, ${p}\n A ${b} ${h}, ${p+s*n}\n L ${h}, ${f-s*n}\n A ${b} ${h+n}, ${f}\n z`})(t)},de={pathComponent:d().createElement(ce,null),role:"presentation",shapeRendering:"auto"},fe=t=>{const e=(t=>{const e=b(t.id,t),n=v(t.style,t);return{...t,id:e,style:n}})(c()({},t,de)),n=G(e);V(e.height,"Flyout props[height] is undefined"),V(e.width,"Flyout props[width] is undefined"),V(e.x,"Flyout props[x] is undefined"),V(e.y,"Flyout props[y] is undefined");const r={center:e.center||{x:0,y:0},cornerRadius:e.cornerRadius||0,dx:e.dx,dy:e.dy,height:e.height,orientation:e.orientation||"top",pointerLength:e.pointerLength||0,pointerWidth:e.pointerWidth||0,width:e.width,x:e.x,y:e.y};return d().cloneElement(e.pathComponent,{...e.events,...n,style:e.style,d:ue(r),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath})},pe={cornerRadius:5,pointerLength:10,pointerWidth:10};class ge extends d().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:d().createElement(it,null),flyoutComponent:d().createElement(fe,null),groupComponent:d().createElement("g",null)};static defaultEvents(t){const e=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],n=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>e,onFocus:()=>e,onTouchStart:()=>e,onMouseOut:()=>n,onBlur:()=>n,onTouchEnd:()=>n}}]}constructor(t){super(t),this.id=void 0===t.id?s()("tooltip-"):t.id}getDefaultOrientation(t){const{datum:e,horizontal:n,polar:r}=t;if(!r){const t=n?"right":"top",r=n?"left":"bottom";return e&&e.y<0?r:t}return this.getPolarOrientation(t)}getPolarOrientation(t){const e=F(t,t.datum),n=t.labelPlacement||"vertical";return"vertical"===n?this.getVerticalOrientations(e):"parallel"===n?e<90||e>270?"right":"left":e>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const e=t.theme||se.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>c()({},t,n))):c()({},t.style,n),i=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},o=t.flyoutStyle?c()({},t.flyoutStyle,i):i,a=Array.isArray(r)?r.map((e=>v(e,t))):v(r,t);return{style:a,flyoutStyle:v(o,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:e,centerOffset:n,dx:r,dy:i}=t,a=b(t.active,t);let s=b(t.text,Object.assign({},t,{active:a}));null==s&&(s=""),"number"==typeof s&&(s=s.toString());const{style:l,flyoutStyle:c}=this.getStyles(Object.assign({},t,{active:a,text:s})),u=b(t.orientation,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c}))||this.getDefaultOrientation(t),d=y({padding:b(t.flyoutPadding,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u}))||this.getLabelPadding(l)}),f=b(t.pointerWidth,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),p=b(t.pointerLength,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),g=N(s,l),{flyoutHeight:h,flyoutWidth:v}=this.getDimensions(Object.assign({},t,{style:l,flyoutStyle:c,active:a,text:s,orientation:u,flyoutPadding:d,pointerWidth:f,pointerLength:p}),g),x=Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u,flyoutHeight:h,flyoutWidth:v,flyoutPadding:d,pointerWidth:f,pointerLength:p}),m=o()(n)&&void 0!==n?.x?b(n.x,x):0,k=o()(n)&&void 0!==n?.y?b(n.y,x):0;return{...x,centerOffset:{x:m,y:k},dx:void 0!==r?b(r,x):0,dy:void 0!==i?b(i,x):0,cornerRadius:b(e,x)}}getCalculatedValues(t){const{style:e,text:n,flyoutStyle:r,flyoutHeight:i,flyoutWidth:o}=t,a={height:i,width:o};return{style:e,flyoutStyle:r,labelSize:N(n,e),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:e,y:n,style:r}=t,i=(r||{}).angle||t.angle||this.getDefaultAngle(t);return i?`rotate(${i} ${e} ${n})`:void 0}getDefaultAngle(t){const{polar:e,labelPlacement:n,orientation:r,datum:i}=t;if(!e||!n||"vertical"===n)return 0;const o=F(t,i);let a=0;return 0===o||180===o?a="top"===r&&180===o?270: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)}constrainTooltip(t,e,n){const{x:r,y:i}=t,{width:o,height:a}=n,s=[0,e.width],l=[0,e.height],c=[r-o/2,r+o/2],u=[i-a/2,i+a/2],d=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0],f=[u[0]<l[0]?l[0]-u[0]:0,u[1]>l[1]?u[1]-l[1]:0];return{x:Math.round(r+d[0]-d[1]),y:Math.round(i+f[0]-f[1])}}getFlyoutCenter(t,e){const{x:n,y:r,dx:i,dy:a,pointerLength:s,orientation:l,constrainToVisibleArea:c,centerOffset:u}=t,{height:d,width:f}=e,p="left"===l?-1:1,g="bottom"===l?-1:1,h={x:"left"===l||"right"===l?n+p*(s+f/2+p*i):n+i,y:"top"===l||"bottom"===l?r-g*(s+d/2-g*a):r+a},y=o()(t.center)&&void 0!==t.center.x?t.center.x:h.x,b=o()(t.center)&&void 0!==t.center.y?t.center.y:h.y,v={x:y+u.x,y:b+u.y};return c?this.constrainTooltip(v,t,e):v}getLabelPadding(t){if(!t)return 0;const e=Array.isArray(t)?t.map((t=>t.padding)):[t.padding];return Math.max(...e,0)}getDimensions(t,e){const{orientation:n,pointerLength:r,pointerWidth:i,flyoutHeight:o,flyoutWidth:a,flyoutPadding:s}=t,l=b(t.cornerRadius,t);return{flyoutHeight:o?b(o,t):(()=>{const t=e.height+s.top+s.bottom,r="top"===n||"bottom"===n?2*l:2*l+i;return Math.max(r,t)})(),flyoutWidth:a?b(a,t):(()=>{const t=e.width+s.left+s.right,i="left"===n||"right"===n?2*l+r:2*l;return Math.max(i,t)})()}}getLabelProps(t,e){const{flyoutCenter:n,style:r,labelSize:i,dy:o=0,dx:a=0}=e,{text:s,datum:l,activePoints:u,labelComponent:d,index:f,flyoutPadding:p}=t,g=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return c()({},d.props,{key:`${this.id}-label-${f}`,text:s,datum:l,activePoints:u,textAnchor:g,dy:o,dx:a,style:r,x:(()=>{if(!g||"middle"===g)return n.x;const t="end"===g?-1:1;return n.x-t*(i.width/2)})()+(p.left-p.right)/2,y:n.y+(p.top-p.bottom)/2,verticalAnchor:"middle",angle:r.angle})}getPointerOrientation(t,n,r){const i=n.y+r.height/2,o=n.y-r.height/2,a=n.x-r.width/2,s=n.x+r.width/2,l=[{side:"top",val:o>t.y?o-t.y:-1},{side:"bottom",val:i<t.y?t.y-i:-1},{side:"right",val:s<t.x?t.x-s:-1},{side:"left",val:a>t.x?a-t.x:-1}];return e()(l,"val","desc")[0].side}getFlyoutProps(t,e){const{flyoutDimensions:n,flyoutStyle:r,flyoutCenter:i}=e,{x:o,y:a,dx:s,dy:l,datum:u,activePoints:d,index:f,pointerLength:p,pointerWidth:g,cornerRadius:h,events:y,flyoutComponent:v}=t,x=b(t.pointerOrientation,t);return c()({},v.props,{x:o,y:a,dx:s,dy:l,datum:u,activePoints:d,index:f,pointerLength:p,pointerWidth:g,cornerRadius:h,events:y,orientation:x||this.getPointerOrientation({x:o,y:a},i,n),key:`${this.id}-tooltip-${f}`,width:n.width,height:n.height,style:r,center:i})}renderTooltip(t){const e=b(t.active,t),{renderInPortal:n}=t;if(!e)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:i,labelComponent:o,groupComponent:a}=r,s=this.getCalculatedValues(r),l=[d().cloneElement(i,this.getFlyoutProps(r,s)),d().cloneElement(o,this.getLabelProps(r,s))],c=d().cloneElement(a,{role:"presentation",transform:s.transform},l);return n?d().createElement(O,null,c):c}render(){const t=function(t,e,n){const r=g(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),i=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const e=t=>t.reduce(((t,n)=>{const r=n.props||{};return t||r.horizontal||!r.children?t||r.horizontal:e(d().Children.toArray(r.children))}),!1);return e(d().Children.toArray(t.children))}(t),o=void 0===i?{}:{horizontal:i};return c()(o,t,r,e)}(this.props,pe,"tooltip");return this.renderTooltip(t)}}}(),i}()}));
1
+ !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)}(self,(function(t){return function(){var e={503:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);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=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},3273:function(t,e,n){var r=n(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);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=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},2596:function(t,e,n){var r=n(2373).Symbol;t.exports=r},6082:function(t){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)}},8644:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},9559:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},1634:function(t){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}},4132:function(t,e,n){var r=n(8347),i=n(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:function(t,e,n){var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},8347:function(t,e,n){var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},6457:function(t,e,n){var r=n(9559),i=n(3608);t.exports=function t(e,n,o,a,s){var l=-1,c=e.length;for(o||(o=i),s||(s=[]);++l<c;){var u=e[l];n>0&&o(u)?n>1?t(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},4432:function(t,e,n){var r=n(9026),i=n(3110);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},563:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},9070:function(t,e,n){var r=n(7028),i=n(3474);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},7028:function(t,e,n){var r=n(8708),i=n(8705),o=n(2813),a=n(6682),s=n(9667),l=n(163),c=n(4801),u=n(4289),d="[object Arguments]",f="[object Array]",p="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,y,b){var v=l(t),x=l(e),m=v?f:s(t),k=x?f:s(e),O=(m=m==d?p:m)==p,j=(k=k==d?p:k)==p,A=m==k;if(A&&c(t)){if(!c(e))return!1;v=!0,O=!1}if(A&&!O)return b||(b=new r),v||u(t)?i(t,e,n,h,y,b):o(t,e,m,n,h,y,b);if(!(1&n)){var S=O&&g.call(t,"__wrapped__"),w=j&&g.call(e,"__wrapped__");if(S||w){var F=S?t.value():t,E=w?e.value():e;return b||(b=new r),y(F,E,n,h,b)}}return!!A&&(b||(b=new r),a(t,e,n,h,y,b))}},9548:function(t,e,n){var r=n(8708),i=n(9070);t.exports=function(t,e,n,o){var a=n.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=n[a])[0],d=t[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in t))return!1}else{var p=new r;if(o)var g=o(d,f,u,t,e,p);if(!(void 0===g?i(f,d,3,o,p):g))return!1}}return!0}},3472:function(t,e,n){var r=n(758),i=n(5223),o=n(5346),a=n(163),s=n(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},7190:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},758:function(t,e,n){var r=n(9548),i=n(597),o=n(6878);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:function(t,e,n){var r=n(9070),i=n(9201),o=n(5066),a=n(726),s=n(5385),l=n(6878),c=n(3110);t.exports=function(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},8245:function(t,e,n){var r=n(8644),i=n(4432),o=n(3472),a=n(383),s=n(9521),l=n(9110),c=n(9409),u=n(5346),d=n(163);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return d(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[u];var f=-1;e=r(e,l(o));var p=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(p,(function(t,e){return c(t,e,n)}))}},5436:function(t,e,n){var r=n(6371),i=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},6371:function(t,e,n){var r=n(4432),i=n(6539),o=n(9026);t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var c=e[a],u=r(t,c);n(u,c)&&i(l,o(c,t),u)}return l}},1600:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:function(t,e,n){var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},6317:function(t,e,n){var r=n(5346),i=n(4280),o=n(201);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6539:function(t,e,n){var r=n(4132),i=n(9026),o=n(9099),a=n(7709),s=n(3110);t.exports=function(t,e,n,l){if(!a(t))return t;for(var c=-1,u=(e=i(e,t)).length,d=u-1,f=t;null!=f&&++c<u;){var p=s(e[c]),g=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=d){var h=f[p];void 0===(g=l?l(h,p,f):void 0)&&(g=a(h)?h:o(e[c+1])?[]:{})}r(f,p,g),f=f[p]}return t}},9521:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},6316:function(t,e,n){var r=n(2596),i=n(8644),o=n(163),a=n(1995),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},9110:function(t){t.exports=function(t){return function(e){return t(e)}}},9914:function(t,e,n){var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9026:function(t,e,n){var r=n(163),i=n(726),o=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},522:function(t,e,n){var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,l=null===e,c=e==e,u=r(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&t<e||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},9409:function(t,e,n){var r=n(522);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},5525:function(t,e,n){var r=n(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,e,n){var r=n(3273),i=n(1634),o=n(9914);t.exports=function(t,e,n,a,s,l){var c=1&n,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(t),p=l.get(e);if(f&&p)return f==e&&p==t;var g=-1,h=!0,y=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++g<u;){var b=t[g],v=e[g];if(a)var x=c?a(v,b,g,e,t,l):a(b,v,g,t,e,l);if(void 0!==x){if(x)continue;h=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(b===t||s(b,t,n,a,l)))return y.push(e)}))){h=!1;break}}else if(b!==v&&!s(b,v,n,a,l)){h=!1;break}}return l.delete(t),l.delete(e),h}},2813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:function(t,e,n){var r=n(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in e:i.call(e,f)))return!1}var p=s.get(t),g=s.get(e);if(p&&g)return p==e&&g==t;var h=!0;s.set(t,e),s.set(e,t);for(var y=l;++d<u;){var b=t[f=c[d]],v=e[f];if(o)var x=l?o(v,b,f,e,t,s):o(b,v,f,t,e,s);if(!(void 0===x?b===v||a(b,v,n,o,s):x)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var m=t.constructor,k=e.constructor;m==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof k&&k instanceof k||(h=!1)}return s.delete(t),s.delete(e),h}},5557:function(t,e,n){var r=n(2645),i=n(4280),o=n(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8143:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},597:function(t,e,n){var r=n(5385),i=n(7747);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},3743:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},9817:function(t,e,n){var r=n(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:function(t,e,n){var r=n(9026),i=n(5075),o=n(163),a=n(9099),s=n(8454),l=n(3110);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,d=!1;++c<u;){var f=l(e[c]);if(!(d=null!=t&&n(t,f)))break;t=t[f]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&s(u)&&a(f,u)&&(o(t)||i(t))}},3608:function(t,e,n){var r=n(2596),i=n(5075),o=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t){t.exports=function(){return!1}},726:function(t,e,n){var r=n(163),i=n(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,e,n){var r=n(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var r=n(3162),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},4859:function(t,e,n){var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,e,n){var r=n(3162);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},6878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2453:function(t){t.exports=function(t){return t}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var r=n(6082),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(l),r(t,this,c)}}},2373:function(t,e,n){var r=n(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},201:function(t){t.exports=function(t){return t}},7801:function(t,e,n){var r=n(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},3110:function(t,e,n){var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1893:function(t,e,n){var r=n(6317),i=n(788),o=n(8286),a=n(8855),s=Object.prototype,l=s.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 u=e[n],d=a(u),f=-1,p=d.length;++f<p;){var g=d[f],h=t[g];(void 0===h||i(h,s[g])&&!l.call(t,g))&&(t[g]=u[g])}return t}));t.exports=c},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,e,n){var r=n(4432);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},5066:function(t,e,n){var r=n(6776),i=n(3096);t.exports=function(t,e){return null!=t&&i(t,e,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var r=n(9642),i=n(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,e,n){var r=n(7190),i=n(9667),o=n(5075),a=n(163),s=n(981),l=n(4801),c=n(5782),u=n(4289),d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},9642:function(t,e,n){var r=n(563),i=n(7709);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,e,n){var r=n(563),i=n(9817),o=n(3474),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},7747:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:function(t,e,n){var r=n(503);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},4143:function(t,e,n){var r=n(8245),i=n(163);t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:function(t,e,n){var r=n(5436),i=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},8532:function(t,e,n){var r=n(1600),i=n(3301),o=n(726),a=n(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},7010:function(t,e,n){var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},660:function(t,e,n){var r=n(7010),i=0;t.exports=function(t){var e=++i;return r(t)+e}},9787:function(e){"use strict";e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.r(i),r.d(i,{Flyout:function(){return fe},VictoryTooltip:function(){return ge}});var t=r(9787),e=r.n(t),n=r(1893),o=r.n(n),a=r(4155),s=r.n(a),l=r(660),c=r.n(l);function u(t,e){void 0===e&&(e=[]);const n={};for(const r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function d(t){const{_x:e,_x1:n,_x0:r,_voronoiX:i,_y:a,_y1:s,_y0:l,_voronoiY:c}=t,u={x:i??n??e,x0:r??e,y:c??s??a,y0:l??a};return o()({},u,t)}function f(t){const e="number"==typeof t?t:0,n="object"==typeof t?t:{};return{top:n.top||e,bottom:n.bottom||e,left:n.left||e,right:n.right||e}}function p(t,e){return h(t)?t(e):t}function g(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((e=>h(t[e])))?Object.keys(t).reduce(((n,r)=>(n[r]=p(t[r],e),n)),{}):t}function h(t){return"function"==typeof t}r(8532),r(9082);const y=e().createContext(void 0);y.displayName="PortalContext";const b={groupComponent:e().createElement("g",null)},v=n=>{const r={...b,...n},[i]=(0,t.useState)(c()()),a=e().useContext(y),s=Array.isArray(r.children)?r.children[0]:r.children,{groupComponent:l}=r,d=s&&s.props||{},f=d.groupComponent?{groupComponent:l,standalone:!1}:{},p=o()(f,d,u(r,["children","groupComponent"]),{key:d.key??i}),g=s&&e().cloneElement(s,p);return e().useEffect((()=>{a?.addChild(i,g)}),[r.children]),e().useEffect((()=>()=>a?.removeChild(i)),[]),a?null:g};function x(){return x=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x.apply(this,arguments)}v.role="portal";const m=(0,t.forwardRef)(((t,n)=>{const{desc:r,id:i,tabIndex:o,origin:a,...s}=t,l={vectorEffect:"non-scaling-stroke",id:p(i,t)?.toString(),tabIndex:p(o,t),...s};return r?e().createElement("rect",x({},l,{ref:n}),e().createElement("desc",null,r)):e().createElement("rect",x({},l,{ref:n}))})),k=t=>{const{children:n,desc:r,id:i,origin:o,tabIndex:a,title:s,...l}=t,c={id:p(i,t)?.toString(),tabIndex:p(a,t),...l};return e().createElement("text",c,s&&e().createElement("title",null,s),r&&e().createElement("desc",null,r),n)},O=t=>{const{desc:n,id:r,tabIndex:i,origin:o,...a}=t,s={id:p(r,t)?.toString(),tabIndex:p(i,t),...a};return e().createElement("tspan",s)};function j(t,e){const{x:n}=d(e);return("number"==typeof(r=t.scale.x(n))?r/(Math.PI/180):r)%360;var r}const A=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(((t,e)=>[t,A(e)].join(" ")),A(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];i.push(`${e}(${n})`)}return i.join(" ").trim()};var S=r(1594),w=r.n(S);const F={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},E={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},C={em:1,ex:.5},$={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},L=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),P=(t,e,n)=>{const r=(t=>t*Math.PI/180)(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},W=(t,e)=>{const n=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=n?E.hasOwnProperty(n)?r*E[n]:C.hasOwnProperty(n)?(e?r*e:r*$.fontSize)*C[n]:r:r||0,i},D=(t,e)=>{const n=Array.isArray(t)?t[e]:t,r=o()({},n,$);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:W(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:W(String(r.fontSize))})},z=(t,e)=>{const n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=((t,e)=>void 0===t||""===t||null===t?0:L(t).reduce(((t,n,r)=>{const i=D(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,e),i=((t,e)=>{if(void 0===t||""===t||null===t)return 0;const n=L(t).map(((t,n)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=D(e,n),s=(t=>{const e=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>F[t]))||"Helvetica";return F[e]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,e)=>e+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...n)})(t,e);return{width:n?P(i,r,n):i,height:1.05*(n?P(r,i,n):r)}},B=w()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),_=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",M=w()(((t,e)=>{let n=B();n.isConnected||(B.cache.clear?.(),n=B());const r=L(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=D(e,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),n.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=n.getBoundingClientRect();return n.innerHTML="",{width:e?.angle?P(o,i,e?.angle):o,height:e?.angle?P(i,o,e?.angle):i}}),((t,e)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(e)?e.map(_).join():_(e)}`)),H=(t,e)=>function(t,e,n){return void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?z(t,e):M(t,e)}(t,e),T={startsWith:["data-","aria-"],exactMatch:[]};function R(t,e){if(null==t)throw new Error(e)}const I=t=>{const e={...t};return Object.fromEntries(Object.entries(e).filter((t=>{let[e]=t;return(t=>!(!(t=>{let e=!1;return T.startsWith.forEach((n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(t)&&(e=!0)})),e})(t)&&!(t=>T.exactMatch.includes(t))(t)))(e)})).map((e=>{let[n,r]=e;return[n,p(r,t)]})))},N={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},q=(t,e)=>{if(!t.datum)return 0;const n=function(t,e){const{scale:n,polar:r,horizontal:i}=t,o=d(e),a=t.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),l=i?n.y(o.y0):n.x(o.x0),c=i?n.x(o.x):n.y(o.y),u=i?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}(t,t.datum);return n[e]},V=t=>{const e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return N.fontSize;if("string"==typeof e){const t=Number(e.replace("px",""));return isNaN(t)?N.fontSize:t}return N.fontSize},G=function(t,e){return void 0===e&&(e=0),Array.isArray(t)?t[e]||t[0]:t},Z=t=>{const{backgroundStyle:e,backgroundPadding:n}=t;return Array.isArray(e)&&!s()(e)||Array.isArray(n)&&!s()(n)},X=(t,e)=>{const{direction:n,textAnchor:r,x:i,dx:o}=t;if("rtl"===n)return i-e;switch(r){case"middle":return Math.round(i-e/2);case"end":return Math.round(i-e);default:return i+(o||0)}},Y=(t,e)=>{const{verticalAnchor:n,y:r,originalDy:i=0}=t,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-e);default:return Math.floor(o-e/2)}},J=(t,n)=>Z(t)?((t,n)=>{const{dy:r,dx:i,transform:a,backgroundStyle:s,backgroundPadding:l,backgroundComponent:c,inline:u,y:d}=t,f=n.map(((t,e)=>{const o=G(n,e-1),a=t.textSize,s=t.fontSize*t.lineHeight,c=Math.ceil(s),f=G(l,e),p=G(l,e-1),g=u&&i||0,h=e&&!u?o.fontSize*o.lineHeight+p.top+p.bottom:r-.5*s-(t.fontSize-t.capHeight);return{textHeight:c,labelSize:a,heightWithPadding:c+f.top+f.bottom,widthWithPadding:a.width+f.left+f.right+g,y:d,fontSize:t.fontSize,dy:h}}));return f.map(((n,r)=>{const i=X(t,n.labelSize.width),p=f.slice(0,r+1).reduce(((t,e)=>t+e.dy),d),g=G(l,r),h=n.heightWithPadding,y=u?((t,e,n)=>{const{textAnchor:r}=t,i=e.map((t=>t.widthWithPadding)),o=-i.reduce(((t,e)=>t+e),0)/2;switch(r){case"start":return i.reduce(((t,e,r)=>r<n?t+e:t),0);case"end":return i.reduce(((t,e,r)=>r>n?t-e:t),0);default:return i.reduce(((t,e,r)=>r===n?t+e/2:t+(r<n?e:0)),o)}})(t,f,r)+i-g.left:i,b=u?Y(t,h)-g.top:p,v={key:`tspan-background-${r}`,height:h,style:G(s,r),width:n.widthWithPadding,transform:a,x:y-g.left,y:b};return e().cloneElement(c,o()({},c.props,v))}))})(t,n):((t,n)=>{const{dx:r=0,transform:i,backgroundComponent:a,backgroundStyle:s,inline:l,backgroundPadding:c,capHeight:u}=t,d=n.map((t=>t.textSize)),f=l?Math.max(...d.map((t=>t.height))):d.reduce(((t,e,r)=>{const i=r?0:u/2;return t+e.height*(n[r].lineHeight-i)}),0),p=l?d.reduce(((t,e,n)=>{const i=n?r:0;return t+e.width+i}),0):Math.max(...d.map((t=>t.width))),g=X(t,p),h=Y(t,f),y={key:"background",height:f+c.top+c.bottom,style:s,transform:i,width:p+c.left+c.right,x:l?g-c.left:g+r-c.left,y:h};return e().cloneElement(a,o()({},a.props,y))})(t,n),K=(t,e,n)=>{const{inline:r}=e,i=G(t,n);return n&&!r?((t,e,n)=>{const r=G(t,e),i=G(t,e-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,l=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-l/2+s/2;return Z(n)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,n,e):r?0===n?i.backgroundPadding.top:void 0:i.backgroundPadding.top},Q=t=>{const e=p(t.ariaLabel,t),n=G(t.style),r=(t=>{const e=p(t.lineHeight,t);return Array.isArray(e)&&s()(e)?[1]:e})(t),i=t.direction?p(t.direction,t):"inherit",o=t.textAnchor?p(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?p(t.verticalAnchor,t):n.verticalAnchor||"middle",l=t.dx?p(t.dx,t):0,c=((t,e,n)=>{const r=t.dy?p(t.dy,t):0,i=t.inline?1:t.text.length,o=p(t.capHeight,t),a=e?p(e,t):"middle",s=[...Array(i).keys()].map((e=>G(t.style,e).fontSize)),l=[...Array(i).keys()].map((t=>G(n,t)));if("start"===a)return r+(o/2+l[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-l[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*l[0])*s[0]:r+(o/2+(.5-i/2)*l[0])*s[0];const c=[...Array(i).keys()].reduce(((t,e)=>t+(o/2+(.5-i)*l[e])*s[e]/i),0);return"end"===a?r+c:r+c/2+o/2*l[i-1]*s[i-1]})(t,a,r),u=void 0!==t.x?t.x:q(t,"x"),d=void 0!==t.y?t.y:q(t,"y"),f=((t,e,n)=>{const{polar:r}=t,i=G(t.style),o=r?function(t,e){const{labelPlacement:n,datum:r}=t;if(!n||"vertical"===n)return 0;const i=j(t,r);let o=0;return 0===i||180===i?o=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)}(t):0,a=void 0===i.angle?p(t.angle,t):i.angle,s=void 0===a?o:a,l=t.transform||i.transform,c=l&&p(l,t);return c||s?A(c,s&&{rotate:[s,e,n]}):void 0})(t,u,d);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:l,dy:c,originalDy:p(t.dy,t),transform:f,x:u,y:d})},U={backgroundComponent:e().createElement(m,null),groupComponent:e().createElement("g",null),direction:"inherit",textComponent:e().createElement(k,null),tspanComponent:e().createElement(O,null),capHeight:.71,lineHeight:1},tt=t=>{const n=(t=>{const e=((t,e)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>p(t,e)));const n=p(t,e);return null!=n?Array.isArray(n)?n:`${n}`.split("\n"):void 0})(t.text,t),n=((t,e)=>{if(e.disableInlineStyles){const n=g(t,e);return{fontSize:V(n)}}const n=t=>{const n=g(t?o()({},t,N):N,e);return Object.assign({},n,{fontSize:V(n)})};return Array.isArray(t)&&!s()(t)?t.map((t=>n(t))):n(t)})(t.style,Object.assign({},t,{text:e})),r=((t,e)=>{if(t)return Array.isArray(t)&&!s()(t)?t.map((t=>g(t,e))):g(t,e)})(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((e=>f(p(e,t)))):f(p(t.backgroundPadding,t)))(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),a=p(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:n,text:e,id:a})})(o()({},t,U));if(null===n.text||void 0===n.text)return null;const r=Q(n),{text:i,style:a,capHeight:l,backgroundPadding:c,lineHeight:u}=r,d=i.map(((t,e)=>{const n=G(a,e),r=W(`${l}em`,n.fontSize),i=G(u,e);return{style:n,fontSize:n.fontSize||N.fontSize,capHeight:r,text:t,textSize:H(t,n),lineHeight:i,backgroundPadding:G(c,e)}})),h=((t,n)=>{const{ariaLabel:r,inline:i,className:o,title:a,events:s,direction:l,text:c,textAnchor:u,dx:d,dy:f,transform:g,x:h,y:y,desc:b,id:v,tabIndex:x,tspanComponent:m,textComponent:k}=t,O=I(t),j={"aria-label":r,key:"text",...s,direction:l,dx:d,x:h,y:y+f,transform:g,className:o,title:a,desc:p(b,t),tabIndex:p(x,t),id:v,...O},A=c.map(((r,o)=>{const a=n[o].style,s={key:`${v}-key-${o}`,x:i?void 0:h,dx:i?d+n[o].backgroundPadding.left:d,dy:K(n,t,o),textAnchor:a.textAnchor||u,style:a,children:r};return e().cloneElement(m,s)}));return e().cloneElement(k,j,A)})(r,d);if(n.backgroundStyle){const t=[J(r,d),h],i=e().cloneElement(n.groupComponent,{},t);return n.renderInPortal?e().createElement(v,null,i):i}return n.renderInPortal?e().createElement(v,null,h):h};tt.displayName="VictoryLabel",tt.role="label",tt.defaultStyles=N;const et=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],nt="#252525",rt="#969696",it={width:450,height:300,padding:50,colorScale:et},ot={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:nt,stroke:"transparent"},at=Object.assign({textAnchor:"middle"},ot),st={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:et,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"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:nt},labels:ot}},it),axis:Object.assign({style:{axis:{fill:"transparent",stroke:nt,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},at,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:ot}},it),bar:Object.assign({style:{data:{fill:nt,padding:8,strokeWidth:0},labels:ot}},it),boxplot:Object.assign({style:{max:{padding:8,stroke:nt,strokeWidth:1},maxLabels:Object.assign({},ot,{padding:3}),median:{padding:8,stroke:nt,strokeWidth:1},medianLabels:Object.assign({},ot,{padding:3}),min:{padding:8,stroke:nt,strokeWidth:1},minLabels:Object.assign({},ot,{padding:3}),q1:{padding:8,fill:rt},q1Labels:Object.assign({},ot,{padding:3}),q3:{padding:8,fill:rt},q3Labels:Object.assign({},ot,{padding:3})},boxWidth:20},it),candlestick:Object.assign({style:{data:{stroke:nt,strokeWidth:1},labels:Object.assign({},ot,{padding:5})},candleColors:{positive:"#ffffff",negative:nt}},it),chart:it,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:nt,strokeWidth:2},labels:ot}},it),group:Object.assign({colorScale:et},it),histogram:Object.assign({style:{data:{fill:rt,stroke:nt,strokeWidth:2},labels:ot}},it),legend:{colorScale:et,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:ot,title:Object.assign({},ot,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:nt,strokeWidth:2},labels:ot}},it),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},ot,{padding:20})},colorScale:et,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:nt,stroke:"transparent",strokeWidth:0},labels:ot}},it),stack:Object.assign({colorScale:et},it),tooltip:{style:Object.assign({},ot,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:nt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},ot,{padding:5,pointerEvents:"none"}),flyout:{stroke:nt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},it)},lt="#FFF59D",ct="#F4511E",ut="#8BC34A",dt="#00796B",ft="#006064",pt=[ct,lt,"#DCE775",ut,dt,ft],gt="#ECEFF1",ht="#90A4AE",yt="#455A64",bt="#212121",vt={blue:"#4F7DA1",pink:"#E2A37F",teal:dt,purple:"#DF948A",green:ut,orange:ct,cyan:ft,red:"#DF5A49",yellow:lt},xt=[gt,ht,yt,bt],mt={width:350,height:350,padding:50},kt={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:yt,stroke:"transparent",strokeWidth:0},Ot=Object.assign({textAnchor:"middle"},kt),jt="round",At="round",St={palette:{colors:vt,grayscale:xt,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"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:bt},labels:kt}},mt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ht,strokeWidth:2,strokeLinecap:jt,strokeLinejoin:At},axisLabel:Object.assign({},Ot,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:gt,strokeDasharray:"10, 5",strokeLinecap:jt,strokeLinejoin:At,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ht,strokeWidth:1,strokeLinecap:jt,strokeLinejoin:At},tickLabels:Object.assign({},kt,{fill:yt})}},mt),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:yt,padding:8,strokeWidth:0},labels:kt}},mt),boxplot:Object.assign({style:{max:{padding:8,stroke:yt,strokeWidth:1},maxLabels:Object.assign({},kt,{padding:3}),median:{padding:8,stroke:yt,strokeWidth:1},medianLabels:Object.assign({},kt,{padding:3}),min:{padding:8,stroke:yt,strokeWidth:1},minLabels:Object.assign({},kt,{padding:3}),q1:{padding:8,fill:yt},q1Labels:Object.assign({},kt,{padding:3}),q3:{padding:8,fill:yt},q3Labels:Object.assign({},kt,{padding:3})},boxWidth:20},mt),candlestick:Object.assign({style:{data:{stroke:yt},labels:Object.assign({},kt,{padding:5})},candleColors:{positive:"#ffffff",negative:yt}},mt),chart:mt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:yt,strokeWidth:2},labels:kt}},mt),group:Object.assign({colorScale:pt},mt),histogram:Object.assign({style:{data:{fill:yt,stroke:bt,strokeWidth:2},labels:kt}},mt),legend:{colorScale:pt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:kt,title:Object.assign({},kt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:yt,strokeWidth:2},labels:kt}},mt),pie:Object.assign({colorScale:pt,style:{data:{padding:8,stroke:gt,strokeWidth:1},labels:Object.assign({},kt,{padding:20})}},mt),scatter:Object.assign({style:{data:{fill:yt,opacity:1,stroke:"transparent",strokeWidth:0},labels:kt}},mt),stack:Object.assign({colorScale:pt},mt),tooltip:{style:Object.assign({},kt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:bt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},kt,{padding:5,pointerEvents:"none"}),flyout:{stroke:bt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},mt)},wt="#FFFFFF",Ft="#F2F2F2",Et="#E0E0E0",Ct="#D1D1D1",$t="#757575",Lt="#424242",Pt="#292929",Wt="#FCB400",Dt="#FF6F2C",zt={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},Bt="#8B46FF",_t={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},Mt="#18BFFF",Ht="#20D9D2",Tt={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},Rt={blue:_t[500],cyan:Mt,green:Tt[500],yellow:Wt,orange:Dt,red:zt[500],purple:Bt,teal:Ht},It=Object.values(Rt),Nt=[Ft,Et,$t,Lt,Pt],qt=["#FFD66E",Wt,Dt,"#D74D26",zt[500]],Vt=[Bt,_t[500],Mt,Ht,Tt[500]],Gt=[Tt[900],Tt[500],Wt,Dt,zt[500]],Zt=Object.values(zt),Xt=Object.values(Tt),Yt=Object.values(_t),Jt=_t[500],Kt={width:450,height:300,padding:60,colorScale:It},Qt={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:Pt,stroke:"transparent"},Ut=Object.assign({textAnchor:"middle"},Qt),te="10, 5",ee="round",ne="round",re={grayscale:st,material:St,clean:{palette:{colors:Rt,grayscale:Nt,qualitative:It,heatmap:Gt,warm:qt,cool:Vt,red:Zt,green:Xt,blue:Yt},area:Object.assign({style:{data:{fill:Jt,strokeWidth:2,fillOpacity:.5},labels:Qt}},Kt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:$t,strokeWidth:1,strokeLinecap:ee,strokeLinejoin:ne},axisLabel:Object.assign({},Ut,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:Qt}},Kt),polarAxis:Object.assign({style:{axis:{stroke:$t},grid:{stroke:Ct,strokeDasharray:te,strokeLinecap:ee,strokeLinejoin:ne,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ct,strokeWidth:1,strokeLinecap:ee,strokeLinejoin:ne},tickLabels:Qt}}),polarDependentAxis:Object.assign({style:{axis:{stroke:$t},grid:{stroke:Ct,strokeDasharray:te,strokeLinecap:ee,strokeLinejoin:ne,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Et,strokeWidth:1,strokeLinecap:ee,strokeLinejoin:ne},tickLabels:Qt}}),bar:Object.assign({style:{data:{fill:Jt,padding:8,strokeWidth:1,fillOpacity:.5},labels:Qt},cornerRadius:{top:1}},Kt),boxplot:Object.assign({style:{max:{padding:8,stroke:Ct,strokeWidth:2},maxLabels:Object.assign({},Qt,{padding:3}),median:{padding:8,stroke:wt,strokeWidth:2},medianLabels:Object.assign({},Qt,{padding:3}),min:{padding:8,stroke:Ct,strokeWidth:2},minLabels:Object.assign({},Qt,{padding:3}),q1:{padding:8,fill:It[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},Qt,{padding:3}),q3:{padding:8,fill:It[1],rx:1},q3Labels:Object.assign({},Qt,{padding:3})},boxWidth:20},Kt),candlestick:Object.assign({style:{data:{stroke:Et,strokeWidth:0,rx:1},labels:Object.assign({},Qt,{padding:5})},candleColors:{positive:Tt[500],negative:zt[500]},wickStrokeWidth:2},Kt),chart:Kt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Lt,strokeWidth:2,strokeLinecap:ee},labels:Qt}},Kt),group:Object.assign({colorScale:It},Kt),histogram:Object.assign({style:{data:{fill:Mt,fillOpacity:.5},labels:Qt},binSpacing:4,cornerRadius:{top:1}},Kt),label:Qt,legend:{colorScale:It,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...Qt,fontSize:12},title:Object.assign({},Qt,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Jt,strokeWidth:2,strokeLinecap:ee,strokeLinejoin:ne},labels:Qt}},Kt),pie:Object.assign({style:{parent:{backgroundColor:wt},data:{padding:8,stroke:wt,strokeWidth:1},labels:{...Qt,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:It,cornerRadius:1},Kt),scatter:Object.assign({style:{data:{fill:Jt,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...Qt,padding:20}}},Kt),stack:Object.assign({colorScale:It},Kt),tooltip:{style:Object.assign({},Qt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Et,strokeWidth:2,fill:wt,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:_t[100],stroke:Jt,strokeWidth:2},labels:Object.assign({},Qt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Pt,strokeWidth:1,fill:Ft,pointerEvents:"none"},padding:{left:2,bottom:2}}},Kt)}};var ie=r(3849),oe=r.n(ie),ae=r(4143),se=r.n(ae);function le(){return le=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},le.apply(this,arguments)}const ce=(0,t.forwardRef)(((t,n)=>{const{desc:r,id:i,tabIndex:o,origin:a,...s}=t,l={id:p(i,t)?.toString(),tabIndex:p(o,t),...s};return r?e().createElement("path",le({},l,{ref:n}),e().createElement("desc",null,r)):e().createElement("path",le({},l,{ref:n}))})),ue=t=>{const e=t.orientation||"top";return"left"===e||"right"===e?(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:i,height:o,center:a}=t,s="left"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,d=a.y,f=u-s*(i/2),p=u+s*(i/2),g=d+o/2,h=d-o/2,y=s*(l-f)>0?0:t.pointerLength,b=`${n} ${n} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${f}, ${d-e/2}\n L ${y?l:f}, ${y?c:d+e/2}\n L ${f}, ${d+e/2}\n L ${f}, ${g-n}\n A ${b} ${f+s*n}, ${g}\n L ${p-s*n}, ${g}\n A ${b} ${p}, ${g-n}\n L ${p}, ${h+n}\n A ${b} ${p-s*n}, ${h}\n L ${f+s*n}, ${h}\n A ${b} ${f}, ${h+n}\n z`})(t):(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:i,height:o,center:a}=t,s="bottom"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,d=a.y,f=d+s*(o/2),p=d-s*(o/2),g=u+i/2,h=u-i/2,y=s*(c-f)<0?0:t.pointerLength,b=`${n} ${n} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${u-e/2}, ${f}\n L ${y?l:u+e/2}, ${y?c:f}\n L ${u+e/2}, ${f}\n L ${g-n}, ${f}\n A ${b} ${g}, ${f-s*n}\n L ${g}, ${p+s*n}\n A ${b} ${g-n}, ${p}\n L ${h+n}, ${p}\n A ${b} ${h}, ${p+s*n}\n L ${h}, ${f-s*n}\n A ${b} ${h+n}, ${f}\n z`})(t)},de={pathComponent:e().createElement(ce,null),role:"presentation",shapeRendering:"auto"},fe=t=>{const n=(t=>{const e=p(t.id,t),n=g(t.style,t);return{...t,id:e,style:n}})(o()({},t,de)),r=I(n);R(n.height,"Flyout props[height] is undefined"),R(n.width,"Flyout props[width] is undefined"),R(n.x,"Flyout props[x] is undefined"),R(n.y,"Flyout props[y] is undefined");const i={center:n.center||{x:0,y:0},cornerRadius:n.cornerRadius||0,dx:n.dx,dy:n.dy,height:n.height,orientation:n.orientation||"top",pointerLength:n.pointerLength||0,pointerWidth:n.pointerWidth||0,width:n.width,x:n.x,y:n.y};return e().cloneElement(n.pathComponent,{...n.events,...r,style:n.style,d:ue(i),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},pe={cornerRadius:5,pointerLength:10,pointerWidth:10};class ge extends e().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:e().createElement(tt,null),flyoutComponent:e().createElement(fe,null),groupComponent:e().createElement("g",null)};static defaultEvents(t){const e=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],n=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>e,onFocus:()=>e,onTouchStart:()=>e,onMouseOut:()=>n,onBlur:()=>n,onTouchEnd:()=>n}}]}constructor(t){super(t),this.id=void 0===t.id?c()("tooltip-"):t.id}getDefaultOrientation(t){const{datum:e,horizontal:n,polar:r}=t;if(!r){const t=n?"right":"top",r=n?"left":"bottom";return e&&e.y<0?r:t}return this.getPolarOrientation(t)}getPolarOrientation(t){const e=j(t,t.datum),n=t.labelPlacement||"vertical";return"vertical"===n?this.getVerticalOrientations(e):"parallel"===n?e<90||e>270?"right":"left":e>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const e=t.theme||re.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>o()({},t,n))):o()({},t.style,n),i=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},a=t.flyoutStyle?o()({},t.flyoutStyle,i):i,s=Array.isArray(r)?r.map((e=>g(e,t))):g(r,t);return{style:s,flyoutStyle:g(a,Object.assign({},t,{style:s}))}}getEvaluatedProps(t){const{cornerRadius:e,centerOffset:n,dx:r,dy:i}=t,o=p(t.active,t);let a=p(t.text,Object.assign({},t,{active:o}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());const{style:s,flyoutStyle:l}=this.getStyles(Object.assign({},t,{active:o,text:a})),c=p(t.orientation,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l}))||this.getDefaultOrientation(t),u=f(p(t.flyoutPadding,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c}))||this.getLabelPadding(s)),d=p(t.pointerWidth,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),g=p(t.pointerLength,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),h=H(a,s),{flyoutHeight:y,flyoutWidth:b}=this.getDimensions(Object.assign({},t,{style:s,flyoutStyle:l,active:o,text:a,orientation:c,flyoutPadding:u,pointerWidth:d,pointerLength:g}),h),v=Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c,flyoutHeight:y,flyoutWidth:b,flyoutPadding:u,pointerWidth:d,pointerLength:g}),x=oe()(n)&&void 0!==n?.x?p(n.x,v):0,m=oe()(n)&&void 0!==n?.y?p(n.y,v):0;return{...v,centerOffset:{x:x,y:m},dx:void 0!==r?p(r,v):0,dy:void 0!==i?p(i,v):0,cornerRadius:p(e,v)}}getCalculatedValues(t){const{style:e,text:n,flyoutStyle:r,flyoutHeight:i,flyoutWidth:o}=t,a={height:i,width:o};return{style:e,flyoutStyle:r,labelSize:H(n,e),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:e,y:n,style:r}=t,i=(r||{}).angle||t.angle||this.getDefaultAngle(t);return i?`rotate(${i} ${e} ${n})`:void 0}getDefaultAngle(t){const{polar:e,labelPlacement:n,orientation:r,datum:i}=t;if(!e||!n||"vertical"===n)return 0;const o=j(t,i);let a=0;return 0===o||180===o?a="top"===r&&180===o?270: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)}constrainTooltip(t,e,n){const{x:r,y:i}=t,{width:o,height:a}=n,s=[0,e.width],l=[0,e.height],c=[r-o/2,r+o/2],u=[i-a/2,i+a/2],d=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0],f=[u[0]<l[0]?l[0]-u[0]:0,u[1]>l[1]?u[1]-l[1]:0];return{x:Math.round(r+d[0]-d[1]),y:Math.round(i+f[0]-f[1])}}getFlyoutCenter(t,e){const{x:n,y:r,dx:i,dy:o,pointerLength:a,orientation:s,constrainToVisibleArea:l,centerOffset:c}=t,{height:u,width:d}=e,f="left"===s?-1:1,p="bottom"===s?-1:1,g={x:"left"===s||"right"===s?n+f*(a+d/2+f*i):n+i,y:"top"===s||"bottom"===s?r-p*(a+u/2-p*o):r+o},h=oe()(t.center)&&void 0!==t.center.x?t.center.x:g.x,y=oe()(t.center)&&void 0!==t.center.y?t.center.y:g.y,b={x:h+c.x,y:y+c.y};return l?this.constrainTooltip(b,t,e):b}getLabelPadding(t){if(!t)return 0;const e=Array.isArray(t)?t.map((t=>t.padding)):[t.padding];return Math.max(...e,0)}getDimensions(t,e){const{orientation:n,pointerLength:r,pointerWidth:i,flyoutHeight:o,flyoutWidth:a,flyoutPadding:s}=t,l=p(t.cornerRadius,t);return{flyoutHeight:o?p(o,t):(()=>{const t=e.height+s.top+s.bottom,r="top"===n||"bottom"===n?2*l:2*l+i;return Math.max(r,t)})(),flyoutWidth:a?p(a,t):(()=>{const t=e.width+s.left+s.right,i="left"===n||"right"===n?2*l+r:2*l;return Math.max(i,t)})()}}getLabelProps(t,e){const{flyoutCenter:n,style:r,labelSize:i,dy:a=0,dx:s=0}=e,{text:l,datum:c,activePoints:u,labelComponent:d,index:f,flyoutPadding:p}=t,g=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return o()({},d.props,{key:`${this.id}-label-${f}`,text:l,datum:c,activePoints:u,textAnchor:g,dy:a,dx:s,style:r,x:(()=>{if(!g||"middle"===g)return n.x;const t="end"===g?-1:1;return n.x-t*(i.width/2)})()+(p.left-p.right)/2,y:n.y+(p.top-p.bottom)/2,verticalAnchor:"middle",angle:r.angle})}getPointerOrientation(t,e,n){const r=e.y+n.height/2,i=e.y-n.height/2,o=e.x-n.width/2,a=e.x+n.width/2,s=[{side:"top",val:i>t.y?i-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:a<t.x?t.x-a:-1},{side:"left",val:o>t.x?o-t.x:-1}];return se()(s,"val","desc")[0].side}getFlyoutProps(t,e){const{flyoutDimensions:n,flyoutStyle:r,flyoutCenter:i}=e,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:g,pointerWidth:h,cornerRadius:y,events:b,flyoutComponent:v}=t,x=p(t.pointerOrientation,t);return o()({},v.props,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:g,pointerWidth:h,cornerRadius:y,events:b,orientation:x||this.getPointerOrientation({x:a,y:s},i,n),key:`${this.id}-tooltip-${f}`,width:n.width,height:n.height,style:r,center:i})}renderTooltip(t){const n=p(t.active,t),{renderInPortal:r}=t;if(!n)return null;const i=this.getEvaluatedProps(t),{flyoutComponent:o,labelComponent:a,groupComponent:s}=i,l=this.getCalculatedValues(i),c=[e().cloneElement(o,this.getFlyoutProps(i,l)),e().cloneElement(a,this.getLabelProps(i,l))],u=e().cloneElement(s,{role:"presentation",transform:l.transform},c);return r?e().createElement(v,null,u):u}render(){const t=function(t,n,r){const i=u(t.theme&&t.theme[r]?t.theme[r]:{},["style"]),a=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const n=t=>t.reduce(((t,r)=>{const i=r.props||{};return t||i.horizontal||!i.children?t||i.horizontal:n(e().Children.toArray(i.children))}),!1);return n(e().Children.toArray(t.children))}(t),s=void 0===a?{}:{horizontal:a};return o()(s,t,i,n)}(this.props,pe,"tooltip");return this.renderTooltip(t)}}}(),i}()}));
2
2
  //# sourceMappingURL=victory-tooltip.min.js.map
package/es/flyout.js CHANGED
@@ -1,5 +1,5 @@
1
- import _defaults from "lodash/defaults";
2
1
  import React from "react";
2
+ import defaults from "lodash/defaults";
3
3
  import { Helpers, Path, UserProps } from "victory-core";
4
4
  const getVerticalPath = props => {
5
5
  const {
@@ -93,7 +93,7 @@ const defaultProps = {
93
93
  shapeRendering: "auto"
94
94
  };
95
95
  export const Flyout = initialProps => {
96
- const props = evaluateProps(_defaults({}, initialProps, defaultProps));
96
+ const props = evaluateProps(defaults({}, initialProps, defaultProps));
97
97
  const userProps = UserProps.getSafeUserProps(props);
98
98
 
99
99
  // check for required props for this subcomponent
@@ -35,7 +35,7 @@ export interface VictoryTooltipProps extends VictoryLabelableProps, VictoryLabel
35
35
  theme?: VictoryThemeDefinition;
36
36
  width?: number;
37
37
  }
38
- declare type InternalEvaluatedProps = VictoryTooltipProps & {
38
+ type InternalEvaluatedProps = VictoryTooltipProps & {
39
39
  centerOffset: {
40
40
  x: number;
41
41
  y: number;
@@ -57,7 +57,7 @@ declare type InternalEvaluatedProps = VictoryTooltipProps & {
57
57
  style: any;
58
58
  text: string | string[];
59
59
  };
60
- declare type EventHandlers = Record<string, (props?: any) => {
60
+ type EventHandlers = Record<string, (props?: any) => {
61
61
  target: string;
62
62
  mutation: () => {
63
63
  active?: boolean | undefined;
@@ -1,9 +1,9 @@
1
- import _orderBy from "lodash/orderBy";
2
- import _isPlainObject from "lodash/isPlainObject";
3
- import _uniqueId from "lodash/uniqueId";
4
- import _defaults from "lodash/defaults";
5
1
  import React from "react";
6
2
  import { TextSize, Helpers, LabelHelpers, VictoryLabel, VictoryTheme, VictoryPortal } from "victory-core";
3
+ import defaults from "lodash/defaults";
4
+ import uniqueId from "lodash/uniqueId";
5
+ import isPlainObject from "lodash/isPlainObject";
6
+ import orderBy from "lodash/orderBy";
7
7
  import { Flyout } from "./flyout";
8
8
  const fallbackProps = {
9
9
  cornerRadius: 5,
@@ -67,7 +67,7 @@ export class VictoryTooltip extends React.Component {
67
67
  }
68
68
  constructor(props) {
69
69
  super(props);
70
- this.id = props.id === undefined ? _uniqueId("tooltip-") : props.id;
70
+ this.id = props.id === undefined ? uniqueId("tooltip-") : props.id;
71
71
  }
72
72
  getDefaultOrientation(props) {
73
73
  const {
@@ -108,9 +108,9 @@ export class VictoryTooltip extends React.Component {
108
108
  getStyles(props) {
109
109
  const theme = props.theme || VictoryTheme.grayscale;
110
110
  const defaultLabelStyles = theme && theme.tooltip && theme.tooltip.style ? theme.tooltip.style : {};
111
- const baseLabelStyle = Array.isArray(props.style) ? props.style.map(s => _defaults({}, s, defaultLabelStyles)) : _defaults({}, props.style, defaultLabelStyles);
111
+ const baseLabelStyle = Array.isArray(props.style) ? props.style.map(s => defaults({}, s, defaultLabelStyles)) : defaults({}, props.style, defaultLabelStyles);
112
112
  const defaultFlyoutStyles = theme && theme.tooltip && theme.tooltip.flyoutStyle ? theme.tooltip.flyoutStyle : {};
113
- const baseFlyoutStyle = props.flyoutStyle ? _defaults({}, props.flyoutStyle, defaultFlyoutStyles) : defaultFlyoutStyles;
113
+ const baseFlyoutStyle = props.flyoutStyle ? defaults({}, props.flyoutStyle, defaultFlyoutStyles) : defaultFlyoutStyles;
114
114
  const style = Array.isArray(baseLabelStyle) ? baseLabelStyle.map(s => Helpers.evaluateStyle(s, props)) : Helpers.evaluateStyle(baseLabelStyle, props);
115
115
  const flyoutStyle = Helpers.evaluateStyle(baseFlyoutStyle, Object.assign({}, props, {
116
116
  style
@@ -157,9 +157,7 @@ export class VictoryTooltip extends React.Component {
157
157
  flyoutStyle,
158
158
  orientation
159
159
  })) || this.getLabelPadding(style);
160
- const flyoutPadding = Helpers.getPadding({
161
- padding
162
- });
160
+ const flyoutPadding = Helpers.getPadding(padding);
163
161
  const pointerWidth = Helpers.evaluateProp(props.pointerWidth, Object.assign({}, props, {
164
162
  active,
165
163
  text,
@@ -200,8 +198,8 @@ export class VictoryTooltip extends React.Component {
200
198
  pointerWidth,
201
199
  pointerLength
202
200
  });
203
- const offsetX = _isPlainObject(centerOffset) && centerOffset?.x !== undefined ? Helpers.evaluateProp(centerOffset.x, evaluatedProps) : 0;
204
- const offsetY = _isPlainObject(centerOffset) && centerOffset?.y !== undefined ? Helpers.evaluateProp(centerOffset.y, evaluatedProps) : 0;
201
+ const offsetX = isPlainObject(centerOffset) && centerOffset?.x !== undefined ? Helpers.evaluateProp(centerOffset.x, evaluatedProps) : 0;
202
+ const offsetY = isPlainObject(centerOffset) && centerOffset?.y !== undefined ? Helpers.evaluateProp(centerOffset.y, evaluatedProps) : 0;
205
203
  return {
206
204
  ...evaluatedProps,
207
205
  centerOffset: {
@@ -296,8 +294,6 @@ export class VictoryTooltip extends React.Component {
296
294
  y: Math.round(y + adjustments.y[0] - adjustments.y[1])
297
295
  };
298
296
  }
299
-
300
- // eslint-disable-next-line complexity
301
297
  getFlyoutCenter(props, dimensions) {
302
298
  const {
303
299
  x,
@@ -320,8 +316,8 @@ export class VictoryTooltip extends React.Component {
320
316
  y: orientation === "top" || orientation === "bottom" ? y - ySign * (pointerLength + height / 2 - ySign * dy) : y + dy
321
317
  };
322
318
  const center = {
323
- x: _isPlainObject(props.center) && props.center.x !== undefined ? props.center.x : flyoutCenter.x,
324
- y: _isPlainObject(props.center) && props.center.y !== undefined ? props.center.y : flyoutCenter.y
319
+ x: isPlainObject(props.center) && props.center.x !== undefined ? props.center.x : flyoutCenter.x,
320
+ y: isPlainObject(props.center) && props.center.y !== undefined ? props.center.y : flyoutCenter.y
325
321
  };
326
322
  const centerWithOffset = {
327
323
  x: center.x + centerOffset.x,
@@ -385,7 +381,7 @@ export class VictoryTooltip extends React.Component {
385
381
  const sign = textAnchor === "end" ? -1 : 1;
386
382
  return flyoutCenter.x - sign * (labelSize.width / 2);
387
383
  };
388
- return _defaults({}, labelComponent.props, {
384
+ return defaults({}, labelComponent.props, {
389
385
  key: `${this.id}-label-${index}`,
390
386
  text,
391
387
  datum,
@@ -420,7 +416,7 @@ export class VictoryTooltip extends React.Component {
420
416
  side: "left",
421
417
  val: edges.left > point.x ? edges.left - point.x : -1
422
418
  }];
423
- return _orderBy(gaps, "val", "desc")[0].side;
419
+ return orderBy(gaps, "val", "desc")[0].side;
424
420
  }
425
421
  getFlyoutProps(props, calculatedValues) {
426
422
  const {
@@ -443,7 +439,7 @@ export class VictoryTooltip extends React.Component {
443
439
  flyoutComponent
444
440
  } = props;
445
441
  const pointerOrientation = Helpers.evaluateProp(props.pointerOrientation, props);
446
- return _defaults({}, flyoutComponent.props, {
442
+ return defaults({}, flyoutComponent.props, {
447
443
  x,
448
444
  y,
449
445
  dx,
package/lib/flyout.js CHANGED
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Flyout = void 0;
7
- var _defaults2 = _interopRequireDefault(require("lodash/defaults"));
8
7
  var _react = _interopRequireDefault(require("react"));
8
+ var _defaults = _interopRequireDefault(require("lodash/defaults"));
9
9
  var _victoryCore = require("victory-core");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  const getVerticalPath = props => {
@@ -100,7 +100,7 @@ const defaultProps = {
100
100
  shapeRendering: "auto"
101
101
  };
102
102
  const Flyout = initialProps => {
103
- const props = evaluateProps((0, _defaults2.default)({}, initialProps, defaultProps));
103
+ const props = evaluateProps((0, _defaults.default)({}, initialProps, defaultProps));
104
104
  const userProps = _victoryCore.UserProps.getSafeUserProps(props);
105
105
 
106
106
  // check for required props for this subcomponent
@@ -35,7 +35,7 @@ export interface VictoryTooltipProps extends VictoryLabelableProps, VictoryLabel
35
35
  theme?: VictoryThemeDefinition;
36
36
  width?: number;
37
37
  }
38
- declare type InternalEvaluatedProps = VictoryTooltipProps & {
38
+ type InternalEvaluatedProps = VictoryTooltipProps & {
39
39
  centerOffset: {
40
40
  x: number;
41
41
  y: number;
@@ -57,7 +57,7 @@ declare type InternalEvaluatedProps = VictoryTooltipProps & {
57
57
  style: any;
58
58
  text: string | string[];
59
59
  };
60
- declare type EventHandlers = Record<string, (props?: any) => {
60
+ type EventHandlers = Record<string, (props?: any) => {
61
61
  target: string;
62
62
  mutation: () => {
63
63
  active?: boolean | undefined;