victory-canvas 36.3.2 → 36.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/victory-canvas.js +8628 -8197
- package/dist/victory-canvas.min.js +1 -1
- package/es/canvas-curve.js +4 -2
- package/es/canvas-group.js +3 -3
- package/es/canvas-point.js +4 -2
- package/es/hooks/use-canvas-context.js +1 -1
- package/lib/canvas-bar.js +1 -1
- package/lib/canvas-curve.js +4 -2
- package/lib/canvas-group.js +3 -3
- package/lib/canvas-point.js +4 -2
- package/lib/hooks/use-canvas-context.js +1 -1
- package/lib/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryCanvas=n(require("react")):t.VictoryCanvas=n(t.React)}(self,(function(t){return(()=>{var n={1124:(t,n,e)=>{var r=e(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},4281:(t,n,e)=>{var r=e(7168),i=e(6582),o=e(3867),a=e(9557),c=e(2726);function s(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=i,s.prototype.get=o,s.prototype.has=a,s.prototype.set=c,t.exports=s},4690:(t,n,e)=>{var r=e(441).Symbol;t.exports=r},5198:t=>{t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},6460:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},3848:t=>{t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},4793:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},7596:(t,n,e)=>{var r=e(999),i=e(6530),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3833:(t,n,e)=>{var r=e(6530);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},999:(t,n,e)=>{var r=e(9346);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},2327:t=>{t.exports=function(t){return t}},528:t=>{t.exports=function(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}},314:(t,n,e)=>{var r=e(3848),i=e(1754);t.exports=function t(n,e,o,a,c){var s=-1,u=n.length;for(o||(o=i),c||(c=[]);++s<u;){var h=n[s];e>0&&o(h)?e>1?t(h,e-1,o,a,c):r(c,h):a||(c[c.length]=h)}return c}},166:(t,n,e)=>{var r=e(8422),i=e(8780);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},4318:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7:t=>{t.exports=function(t,n){return null!=t&&n in Object(t)}},7650:t=>{t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},1071:(t,n,e)=>{var r=e(7229),i=e(3387);t.exports=function t(n,e,o,a,c){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,c))}},7229:(t,n,e)=>{var r=e(4281),i=e(2503),o=e(6001),a=e(8784),c=e(6686),s=e(7236),u=e(8752),h=e(4812),l="[object Arguments]",f="[object Array]",_="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,y,x,v){var d=s(t),b=s(n),g=d?f:c(t),m=b?f:c(n),O=(g=g==l?_:g)==_,T=(m=m==l?_:m)==_,w=g==m;if(w&&u(t)){if(!u(n))return!1;d=!0,O=!1}if(w&&!O)return v||(v=new r),d||h(t)?i(t,n,e,y,x,v):o(t,n,g,e,y,x,v);if(!(1&e)){var M=O&&p.call(t,"__wrapped__"),j=T&&p.call(n,"__wrapped__");if(M||j){var k=M?t.value():t,P=j?n.value():n;return v||(v=new r),x(k,P,e,y,v)}}return!!w&&(v||(v=new r),a(t,n,e,y,x,v))}},9157:(t,n,e)=>{var r=e(4281),i=e(1071);t.exports=function(t,n,e,o){var a=e.length,c=a,s=!o;if(null==t)return!c;for(t=Object(t);a--;){var u=e[a];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<c;){var h=(u=e[a])[0],l=t[h],f=u[1];if(s&&u[2]){if(void 0===l&&!(h in t))return!1}else{var _=new r;if(o)var p=o(l,f,h,t,n,_);if(!(void 0===p?i(f,l,3,o,_):p))return!1}}return!0}},1131:(t,n,e)=>{var r=e(4318),i=e(3387);t.exports=function(t){return i(t)&&"[object RegExp]"==r(t)}},8904:(t,n,e)=>{var r=e(8418),i=e(4555),o=e(5362),a=e(7236),c=e(1651);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):c(t)}},8418:(t,n,e)=>{var r=e(9157),i=e(9182),o=e(7375);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},4555:(t,n,e)=>{var r=e(1071),i=e(3795),o=e(3646),a=e(3266),c=e(1457),s=e(7375),u=e(8780);t.exports=function(t,n){return a(t)&&c(n)?s(u(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},7410:(t,n,e)=>{var r=e(6621),i=e(3646);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6621:(t,n,e)=>{var r=e(166),i=e(8116),o=e(8422);t.exports=function(t,n,e){for(var a=-1,c=n.length,s={};++a<c;){var u=n[a],h=r(t,u);e(h,u)&&i(s,o(u,t),h)}return s}},1712:t=>{t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},4815:(t,n,e)=>{var r=e(166);t.exports=function(t){return function(n){return r(n,t)}}},797:t=>{var n=Math.ceil,e=Math.max;t.exports=function(t,r,i,o){for(var a=-1,c=e(n((r-t)/(i||1)),0),s=Array(c);c--;)s[o?c:++a]=t,t+=i;return s}},4569:(t,n,e)=>{var r=e(5362),i=e(4468),o=e(8756);t.exports=function(t,n){return o(i(t,n,r),t+"")}},8116:(t,n,e)=>{var r=e(7596),i=e(8422),o=e(4363),a=e(5973),c=e(8780);t.exports=function(t,n,e,s){if(!a(t))return t;for(var u=-1,h=(n=i(n,t)).length,l=h-1,f=t;null!=f&&++u<h;){var _=c(n[u]),p=e;if("__proto__"===_||"constructor"===_||"prototype"===_)return t;if(u!=l){var y=f[_];void 0===(p=s?s(y,_,f):void 0)&&(p=a(y)?y:o(n[u+1])?[]:{})}r(f,_,p),f=f[_]}return t}},4293:t=>{t.exports=function(t,n,e){var r=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+n];return o}},3349:(t,n,e)=>{var r=e(5720),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},6535:t=>{t.exports=function(t){return function(n){return t(n)}}},9386:(t,n,e)=>{var r=e(8422),i=e(2972),o=e(8293),a=e(8780);t.exports=function(t,n){return n=r(n,t),null==(t=o(t,n))||delete t[a(i(n))]}},555:(t,n,e)=>{var r=e(7650);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},8422:(t,n,e)=>{var r=e(7236),i=e(3266),o=e(3879),a=e(1119);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},6051:(t,n,e)=>{var r=e(7596),i=e(999);t.exports=function(t,n,e,o){var a=!e;e||(e={});for(var c=-1,s=n.length;++c<s;){var u=n[c],h=o?o(e[u],t[u],u,e,t):void 0;void 0===h&&(h=t[u]),a?i(e,u,h):r(e,u,h)}return e}},2544:(t,n,e)=>{var r=e(4569),i=e(3108);t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,a=o>1?e[o-1]:void 0,c=o>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,c&&i(e[0],e[1],c)&&(a=o<3?void 0:a,o=1),n=Object(n);++r<o;){var s=e[r];s&&t(n,s,r,a)}return n}))}},3086:(t,n,e)=>{var r=e(8904),i=e(1580),o=e(2635);t.exports=function(t){return function(n,e,a){var c=Object(n);if(!i(n)){var s=r(e,3);n=o(n),e=function(t){return s(c[t],t,c)}}var u=t(n,e,a);return u>-1?c[s?n[u]:u]:void 0}}},9833:(t,n,e)=>{var r=e(797),i=e(3108),o=e(992);t.exports=function(t){return function(n,e,a){return a&&"number"!=typeof a&&i(n,e,a)&&(e=a=void 0),n=o(n),void 0===e?(e=n,n=0):e=o(e),a=void 0===a?n<e?1:-1:o(a),r(n,e,a,t)}}},9294:(t,n,e)=>{var r=e(9636);t.exports=function(t){return r(t)?void 0:t}},9346:(t,n,e)=>{var r=e(4457),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},2503:(t,n,e)=>{var r=e(1124),i=e(4793),o=e(555);t.exports=function(t,n,e,a,c,s){var u=1&e,h=t.length,l=n.length;if(h!=l&&!(u&&l>h))return!1;var f=s.get(t),_=s.get(n);if(f&&_)return f==n&&_==t;var p=-1,y=!0,x=2&e?new r:void 0;for(s.set(t,n),s.set(n,t);++p<h;){var v=t[p],d=n[p];if(a)var b=u?a(d,v,p,n,t,s):a(v,d,p,t,n,s);if(void 0!==b){if(b)continue;y=!1;break}if(x){if(!i(n,(function(t,n){if(!o(x,n)&&(v===t||c(v,t,e,a,s)))return x.push(n)}))){y=!1;break}}else if(v!==d&&!c(v,d,e,a,s)){y=!1;break}}return s.delete(t),s.delete(n),y}},6001:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},8784:(t,n,e)=>{var r=e(6094),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,c){var s=1&e,u=r(t),h=u.length;if(h!=r(n).length&&!s)return!1;for(var l=h;l--;){var f=u[l];if(!(s?f in n:i.call(n,f)))return!1}var _=c.get(t),p=c.get(n);if(_&&p)return _==n&&p==t;var y=!0;c.set(t,n),c.set(n,t);for(var x=s;++l<h;){var v=t[f=u[l]],d=n[f];if(o)var b=s?o(d,v,f,n,t,c):o(v,d,f,t,n,c);if(!(void 0===b?v===d||a(v,d,e,o,c):b)){y=!1;break}x||(x="constructor"==f)}if(y&&!x){var g=t.constructor,m=n.constructor;g==m||!("constructor"in t)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m||(y=!1)}return c.delete(t),c.delete(n),y}},3368:(t,n,e)=>{var r=e(5453),i=e(4468),o=e(8756);t.exports=function(t){return o(i(t,void 0,r),t+"")}},4414:(t,n,e)=>{var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},6094:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},5559:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},9182:(t,n,e)=>{var r=e(1457),i=e(2635);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},4457:t=>{t.exports=function(t,n){return null==t?void 0:t[n]}},1407:(t,n,e)=>{var r=e(3717)(Object.getPrototypeOf,Object);t.exports=r},6686:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7383:(t,n,e)=>{var r=e(8422),i=e(6981),o=e(7236),a=e(4363),c=e(9216),s=e(8780);t.exports=function(t,n,e){for(var u=-1,h=(n=r(n,t)).length,l=!1;++u<h;){var f=s(n[u]);if(!(l=null!=t&&e(t,f)))break;t=t[f]}return l||++u!=h?l:!!(h=null==t?0:t.length)&&c(h)&&a(f,h)&&(o(t)||i(t))}},1754:(t,n,e)=>{var r=e(4690),i=e(6981),o=e(7236),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},4363:t=>{var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},3108:t=>{t.exports=function(){return!1}},3266:(t,n,e)=>{var r=e(7236),i=e(2945),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5003:t=>{t.exports=function(){return!1}},1457:(t,n,e)=>{var r=e(5973);t.exports=function(t){return t==t&&!r(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,n,e)=>{var r=e(3833),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},3867:(t,n,e)=>{var r=e(3833);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},9557:(t,n,e)=>{var r=e(3833);t.exports=function(t){return r(this.__data__,t)>-1}},2726:(t,n,e)=>{var r=e(3833);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},7375:t=>{t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,n,e)=>{t=e.nmd(t);var r=e(4414),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,c=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},3717:t=>{t.exports=function(t,n){return function(e){return t(n(e))}}},4468:(t,n,e)=>{var r=e(5198),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,c=i(o.length-n,0),s=Array(c);++a<c;)s[a]=o[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=o[a];return u[n]=e(s),r(t,this,u)}}},8293:(t,n,e)=>{var r=e(166),i=e(4293);t.exports=function(t,n){return n.length<2?t:r(t,i(n,0,-1))}},441:(t,n,e)=>{var r=e(4414),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},8756:t=>{t.exports=function(t){return t}},3879:(t,n,e)=>{var r=e(7085),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},8780:t=>{t.exports=function(t){return t}},5720:t=>{var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},6782:(t,n,e)=>{var r=e(7596),i=e(6051),o=e(2544),a=e(1580),c=e(5003),s=e(2635),u=Object.prototype.hasOwnProperty,h=o((function(t,n){if(c(n)||a(n))i(n,s(n),t);else for(var e in n)u.call(n,e)&&r(t,e,n[e])}));t.exports=h},7901:(t,n,e)=>{var r=e(4569),i=e(6530),o=e(3108),a=e(5850),c=Object.prototype,s=c.hasOwnProperty,u=r((function(t,n){t=Object(t);var e=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&o(n[0],n[1],u)&&(r=1);++e<r;)for(var h=n[e],l=a(h),f=-1,_=l.length;++f<_;){var p=l[f],y=t[p];(void 0===y||i(y,c[p])&&!s.call(t,p))&&(t[p]=h[p])}return t}));t.exports=u},6530:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},6786:(t,n,e)=>{var r=e(3086)(e(8611));t.exports=r},8611:(t,n,e)=>{var r=e(528),i=e(8904),o=e(5225),a=Math.max;t.exports=function(t,n,e){var c=null==t?0:t.length;if(!c)return-1;var s=null==e?0:o(e);return s<0&&(s=a(c+s,0)),r(t,i(n,3),s)}},5453:(t,n,e)=>{var r=e(314);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},3795:(t,n,e)=>{var r=e(166);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},3646:(t,n,e)=>{var r=e(7),i=e(7383);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5362:t=>{t.exports=function(t){return t}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var n=Array.isArray;t.exports=n},1580:(t,n,e)=>{var r=e(3839),i=e(9216);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,n,e)=>{var r=e(4318),i=e(5973);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6866:t=>{t.exports=function(t){return null==t}},5973:t=>{t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},9636:(t,n,e)=>{var r=e(4318),i=e(1407),o=e(3387),a=Function.prototype,c=Object.prototype,s=a.toString,u=c.hasOwnProperty,h=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=u.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&s.call(e)==h}},2654:(t,n,e)=>{var r=e(1131),i=e(6535),o=e(1782),a=o&&o.isRegExp,c=a?i(a):r;t.exports=c},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},5850:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},2972:t=>{t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},9086:(t,n,e)=>{var r=e(6460),i=e(2327),o=e(9386),a=e(8422),c=e(6051),s=e(9294),u=e(3368),h=e(5559),l=u((function(t,n){var e={};if(null==t)return e;var u=!1;n=r(n,(function(n){return n=a(n,t),u||(u=n.length>1),n})),c(t,h(t),e),u&&(e=i(e,7,s));for(var l=n.length;l--;)o(e,n[l]);return e}));t.exports=l},8423:(t,n,e)=>{var r=e(7410),i=e(3368)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},1651:(t,n,e)=>{var r=e(1712),i=e(4815),o=e(3266),a=e(8780);t.exports=function(t){return o(t)?r(a(t)):i(t)}},9717:(t,n,e)=>{var r=e(9833)();t.exports=r},992:(t,n,e)=>{var r=e(8746);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,n,e)=>{var r=e(992);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},8746:(t,n,e)=>{var r=e(3349),i=e(5973),o=e(2945),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=c.test(t);return e||s.test(t)?u(t.slice(2),e?2:8):a.test(t)?NaN:+t}},1119:t=>{t.exports=function(t){return t}},459:(t,n,e)=>{"use strict";var r=e(5704);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,n,e,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return e.PropTypes=e,e}},216:(t,n,e)=>{t.exports=e(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:n=>{"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,r),o.loaded=!0,o.exports}r.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return r.d(n,{a:n}),n},r.d=(t,n)=>{for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var i={};return(()=>{"use strict";r.r(i),r.d(i,{CanvasBar:()=>St,CanvasCurve:()=>qe,CanvasGroup:()=>Ct,CanvasPoint:()=>Xe,useCanvasContext:()=>Et});var t={};r.r(t),r.d(t,{arc:()=>H,area:()=>Wt,areaRadial:()=>Vt,curveBasis:()=>En,curveBasisClosed:()=>Sn,curveBasisOpen:()=>Cn,curveBundle:()=>Ln,curveCardinal:()=>In,curveCardinalClosed:()=>Dn,curveCardinalOpen:()=>Xn,curveCatmullRom:()=>$n,curveCatmullRomClosed:()=>Zn,curveCatmullRomOpen:()=>Gn,curveLinear:()=>Lt,curveLinearClosed:()=>Kn,curveMonotoneX:()=>oe,curveMonotoneY:()=>ae,curveNatural:()=>ue,curveStep:()=>le,curveStepAfter:()=>_e,curveStepBefore:()=>fe,line:()=>It,lineRadial:()=>Zt,linkHorizontal:()=>rn,linkRadial:()=>an,linkVertical:()=>on,pie:()=>Xt,pointRadial:()=>Gt,radialArea:()=>Vt,radialLine:()=>Zt,stack:()=>ve,stackOffsetDiverging:()=>be,stackOffsetExpand:()=>de,stackOffsetNone:()=>pe,stackOffsetSilhouette:()=>ge,stackOffsetWiggle:()=>me,stackOrderAppearance:()=>Oe,stackOrderAscending:()=>we,stackOrderDescending:()=>je,stackOrderInsideOut:()=>ke,stackOrderNone:()=>ye,stackOrderReverse:()=>Pe,symbol:()=>Mn,symbolCircle:()=>cn,symbolCross:()=>sn,symbolDiamond:()=>ln,symbolSquare:()=>xn,symbolStar:()=>yn,symbolTriangle:()=>dn,symbolWye:()=>Tn,symbols:()=>wn});var n=r(9086),e=r.n(n),o=r(6782),a=r.n(o),c=r(9787),s=r.n(c),u=r(9636),h=r.n(u),l=r(6866),f=r.n(l),_=r(2635),p=r.n(_),y=(r(8423),r(1651),r(3839)),x=r.n(y);function v(t,n){return x()(t)?t(n):t}function d(t,n){return n.disableInlineStyles?{}:t&&p()(t).some((function(n){return x()(t[n])}))?p()(t).reduce((function(e,r){return e[r]=v(t[r],n),e}),{}):t}r(7901);var b=function(t,n){var e=n.scale,r=n.data,i=n.defaultBarWidth,o=n.style;if(t)return v(t,n);if(o.width)return o.width;var a=e.x.range(),c=Math.abs(a[1]-a[0]),s=r.length+2,u=(n.barRatio||.5)*(r.length<2?i:c/s);return Math.max(1,u)},g=function(t,n){var e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?h()(t)?function(t,n){var e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(r,i){f()(t[r])?f()(t[i])||(e[r]=v(t[i],n)):e[r]=v(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e}(t,n):(e.topLeft=v(t,n),e.topRight=v(t,n),e):e},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(n.disableInlineStyles)return{};var e=t.fill||"black",r={fill:"black",stroke:e};return d(a()(r,t),n)},O=Math.PI,T=2*O,w=1e-6,M=T-w;function j(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function k(){return new j}j.prototype=k.prototype={constructor:j,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,c=e-t,s=r-n,u=o-t,h=a-n,l=u*u+h*h;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>w)if(Math.abs(h*c-s*u)>w&&i){var f=e-o,_=r-a,p=c*c+s*s,y=f*f+_*_,x=Math.sqrt(p),v=Math.sqrt(l),d=i*Math.tan((O-Math.acos((p+l-y)/(2*x*v)))/2),b=d/v,g=d/x;Math.abs(b-1)>w&&(this._+="L"+(t+b*u)+","+(n+b*h)),this._+="A"+i+","+i+",0,0,"+ +(h*f>u*_)+","+(this._x1=t+g*c)+","+(this._y1=n+g*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),c=e*Math.sin(r),s=t+a,u=n+c,h=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+u:(Math.abs(this._x1-s)>w||Math.abs(this._y1-u)>w)&&(this._+="L"+s+","+u),e&&(l<0&&(l=l%T+T),l>M?this._+="A"+e+","+e+",0,1,"+h+","+(t-a)+","+(n-c)+"A"+e+","+e+",0,1,"+h+","+(this._x1=s)+","+(this._y1=u):l>w&&(this._+="A"+e+","+e+",0,"+ +(l>=O)+","+h+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const P=k;function E(t){return function(){return t}}var R=Math.abs,S=Math.atan2,A=Math.cos,C=Math.max,N=Math.min,L=Math.sin,q=Math.sqrt,z=1e-12,I=Math.PI,W=I/2,D=2*I;function Y(t){return t>1?0:t<-1?I:Math.acos(t)}function X(t){return t>=1?W:t<=-1?-W:Math.asin(t)}function B(t){return t.innerRadius}function F(t){return t.outerRadius}function $(t){return t.startAngle}function U(t){return t.endAngle}function Z(t){return t&&t.padAngle}function V(t,n,e,r,i,o,a,c){var s=e-t,u=r-n,h=a-i,l=c-o,f=l*s-h*u;if(!(f*f<z))return[t+(f=(h*(n-o)-l*(t-i))/f)*s,n+f*u]}function G(t,n,e,r,i,o,a){var c=t-e,s=n-r,u=(a?o:-o)/q(c*c+s*s),h=u*s,l=-u*c,f=t+h,_=n+l,p=e+h,y=r+l,x=(f+p)/2,v=(_+y)/2,d=p-f,b=y-_,g=d*d+b*b,m=i-o,O=f*y-p*_,T=(b<0?-1:1)*q(C(0,m*m*g-O*O)),w=(O*b-d*T)/g,M=(-O*d-b*T)/g,j=(O*b+d*T)/g,k=(-O*d+b*T)/g,P=w-x,E=M-v,R=j-x,S=k-v;return P*P+E*E>R*R+S*S&&(w=j,M=k),{cx:w,cy:M,x01:-h,y01:-l,x11:w*(i/m-1),y11:M*(i/m-1)}}function H(){var t=B,n=F,e=E(0),r=null,i=$,o=U,a=Z,c=null;function s(){var s,u,h=+t.apply(this,arguments),l=+n.apply(this,arguments),f=i.apply(this,arguments)-W,_=o.apply(this,arguments)-W,p=R(_-f),y=_>f;if(c||(c=s=P()),l<h&&(u=l,l=h,h=u),l>z)if(p>D-z)c.moveTo(l*A(f),l*L(f)),c.arc(0,0,l,f,_,!y),h>z&&(c.moveTo(h*A(_),h*L(_)),c.arc(0,0,h,_,f,y));else{var x,v,d=f,b=_,g=f,m=_,O=p,T=p,w=a.apply(this,arguments)/2,M=w>z&&(r?+r.apply(this,arguments):q(h*h+l*l)),j=N(R(l-h)/2,+e.apply(this,arguments)),k=j,E=j;if(M>z){var C=X(M/h*L(w)),B=X(M/l*L(w));(O-=2*C)>z?(g+=C*=y?1:-1,m-=C):(O=0,g=m=(f+_)/2),(T-=2*B)>z?(d+=B*=y?1:-1,b-=B):(T=0,d=b=(f+_)/2)}var F=l*A(d),$=l*L(d),U=h*A(m),Z=h*L(m);if(j>z){var H,K=l*A(b),Q=l*L(b),J=h*A(g),tt=h*L(g);if(p<I&&(H=V(F,$,J,tt,K,Q,U,Z))){var nt=F-H[0],et=$-H[1],rt=K-H[0],it=Q-H[1],ot=1/L(Y((nt*rt+et*it)/(q(nt*nt+et*et)*q(rt*rt+it*it)))/2),at=q(H[0]*H[0]+H[1]*H[1]);k=N(j,(h-at)/(ot-1)),E=N(j,(l-at)/(ot+1))}}T>z?E>z?(x=G(J,tt,F,$,l,E,y),v=G(K,Q,U,Z,l,E,y),c.moveTo(x.cx+x.x01,x.cy+x.y01),E<j?c.arc(x.cx,x.cy,E,S(x.y01,x.x01),S(v.y01,v.x01),!y):(c.arc(x.cx,x.cy,E,S(x.y01,x.x01),S(x.y11,x.x11),!y),c.arc(0,0,l,S(x.cy+x.y11,x.cx+x.x11),S(v.cy+v.y11,v.cx+v.x11),!y),c.arc(v.cx,v.cy,E,S(v.y11,v.x11),S(v.y01,v.x01),!y))):(c.moveTo(F,$),c.arc(0,0,l,d,b,!y)):c.moveTo(F,$),h>z&&O>z?k>z?(x=G(U,Z,K,Q,h,-k,y),v=G(F,$,J,tt,h,-k,y),c.lineTo(x.cx+x.x01,x.cy+x.y01),k<j?c.arc(x.cx,x.cy,k,S(x.y01,x.x01),S(v.y01,v.x01),!y):(c.arc(x.cx,x.cy,k,S(x.y01,x.x01),S(x.y11,x.x11),!y),c.arc(0,0,h,S(x.cy+x.y11,x.cx+x.x11),S(v.cy+v.y11,v.cx+v.x11),y),c.arc(v.cx,v.cy,k,S(v.y11,v.x11),S(v.y01,v.x01),!y))):c.arc(0,0,h,m,g,y):c.lineTo(U,Z)}else c.moveTo(0,0);if(c.closePath(),s)return c=null,s+""||null}return s.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-I/2;return[A(r)*e,L(r)*e]},s.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:E(+n),s):t},s.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:E(+t),s):n},s.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:E(+t),s):e},s.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:E(+t),s):r},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:E(+t),s):i},s.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:E(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:E(+t),s):a},s.context=function(t){return arguments.length?(c=null==t?null:t,s):c},s}var K=function(t,n){return{x:t,y:n,distance:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add:function(t){return K(this.x+t.x,this.y+t.y)},subtract:function(t){return K(this.x-t.x,this.y-t.y)},scalarMult:function(t){return K(this.x*t,this.y*t)},scalarDivide:function(t){if(0===t)throw new Error("Division by 0 error");return K(this.x/t,this.y/t)},equals:function(t){return this.x===t.x&&this.y===t.y}}},Q=function(t,n){return{center:t,radius:n,hasIntersection:function(t){var n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);return!(o>r+i||o<Math.abs(r-i))},equals:function(t){var n=this.center,e=t.center;return this.radius===t.radius&&n.equals(e)},intersection:function(t){var n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);if(!this.hasIntersection(t)||this.equals(t))return[];var a=(Math.pow(r,2)-Math.pow(i,2)+Math.pow(o,2))/(2*o),c=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),s=n.add(e.subtract(n).scalarMult(a).scalarDivide(o)),u=n.x,h=n.y,l=e.x,f=e.y,_=s.x,p=s.y,y=[K(_-c*(f-h)/o,p+c*(l-u)/o),K(_+c*(f-h)/o,p-c*(l-u)/o)];return y.sort((function(t,n){return t.x-n.x})),y},solveX:function(t){var n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-n,this.center.x+n]},solveY:function(t){var n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-n,this.center.y+n]}}};function J(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function tt(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var nt=function(t,n){var e=t.x,r=t.x0,i=t.y,o=t.y0,a=t.horizontal,c=t.alignment||"middle",s="middle"===c?n/2:n,u=a?-1:1;return a?{x0:r,x1:e,y0:"start"===c?i:i-u*s,y1:"end"===c?i:i+u*s}:{x0:"start"===c?e:e-u*s,x1:"end"===c?e:e+u*s,y0:o,y1:i}},et=function(t,n){var e=t.data,r=t.scale,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},rt=function(t){return-1*t+Math.PI/2},it=function(t,n,e){var r="".concat(n.topLeft," ").concat(n.topLeft," ").concat(e),i="".concat(n.topRight," ").concat(n.topRight," ").concat(e),o="".concat(n.bottomLeft," ").concat(n.bottomLeft," ").concat(e),a="".concat(n.bottomRight," ").concat(n.bottomRight," ").concat(e),c=["M","A ".concat(o,","),"L","A ".concat(r,","),"L","A ".concat(i,","),"L","A ".concat(a,",")].reduce((function(n,e,r){return n+"".concat(e," ").concat(t[r].x,", ").concat(t[r].y," \n")}),"");return"".concat(c," z")},ot=function(t,n,e){return t.getPath?function(t,n){var e=t.getPath,r=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){J(t,n,e[n])}))}return t}({},t,nt(t,n));return e(r)}(t,n):t.horizontal?function(t,n,e){var r=nt(t,n),i=r.x0<r.x1?1:-1,o={topRight:i>0?e.topLeft:e.bottomLeft,bottomRight:i>0?e.topRight:e.bottomRight,bottomLeft:i>0?e.bottomRight:e.topRight,topLeft:i>0?e.bottomLeft:e.topLeft},a=function(t,n,e){var r=t.y0,i=t.y1,o=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,c=function(t){var c="top"===t,s=c?-1:1,u=c?i:r,h={x:o,y:u-s*e["".concat(t,"Left")]},l={x:o+e["".concat(t,"Left")],y:u},f={x:a-e["".concat(t,"Right")],y:u},_={x:a,y:u-s*e["".concat(t,"Right")]};if(l.x>f.x){var p=K(o+e["".concat(t,"Left")],u-s*e["".concat(t,"Left")]),y=Q(p,e["".concat(t,"Left")]),x=K(a-e["".concat(t,"Right")],u-s*e["".concat(t,"Right")]),v=Q(x,e["".concat(t,"Right")]),d=y.intersection(v);if(d.length>0){var b=d[n>0?1:0];l={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(e["".concat(t,"Right")]>e["".concat(t,"Left")]){var g=v.solveY(o)[c?0:1];h={x:o,y:g},l={x:o,y:g},f={x:o,y:g}}else{var m=y.solveY(a)[c?0:1];_={x:a,y:m},f={x:a,y:m},l={x:a,y:m}}}return[h,l,f,_]},s=c("top"),u=c("bottom");return[u[1],u[0]].concat(tt(s),[u[3],u[2]])}(r,i,o);return it(a,o,"0 0 1")}(t,n,e):function(t,n,e){var r=nt(t,n),i=r.y0>r.y1?1:-1,o=i>0?"0 0 1":"0 0 0",a=function(t,n,e){var r=t.x0,i=t.x1,o=t.y0,a=t.y1,c=function(t){var c="Left"===t,s=c?1:-1,u=c?r:i,h={x:u+s*e["bottom".concat(t)],y:o},l={x:u,y:o-n*e["bottom".concat(t)]},f={x:u,y:a+n*e["top".concat(t)]},_={x:u+s*e["top".concat(t)],y:a};if(1===n?o-e["bottom".concat(t)]<a+e["top".concat(t)]:o+e["bottom".concat(t)]>a-e["top".concat(t)]){var p=K(u+s*e["top".concat(t)],a+n*e["top".concat(t)]),y=Q(p,e["top".concat(t)]),x=K(u+s*e["bottom".concat(t)],o-n*e["bottom".concat(t)]),v=Q(x,e["bottom".concat(t)]),d=y.intersection(v);if(d.length>0){var b=d[c?0:1];l={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(e["top".concat(t)]>e["bottom".concat(t)]){var g=y.solveX(o)[c?0:1];h={x:g,y:o},l={x:g,y:o},f={x:g,y:o}}else{var m=v.solveX(a)[c?0:1];l={x:m,y:a},f={x:m,y:a},_={x:m,y:a}}}var O=[h,l,f,_];return c?O:O.reverse()};return c("Left").concat(c("Right"))}(r,i,e);return it(a,e,o)}(t,n,e)},at=function(t,n){return function(t,n){var e,r,i=t.datum,o=t.scale,a=t.index,c=t.alignment,s=t.style,u=o.y(i._y0||0),h=o.y(void 0!==i._y1?i._y1:i._y),l=o.x(void 0!==i._x1?i._x1:i._x);if(s.width){var f=function(t,n){var e=t.scale,r=e.y.range(),i=Math.max.apply(Math,tt(r)),o=Math.abs(e.x.range()[1]-e.x.range()[0]);return n/(2*Math.PI*i)*o}(t,s.width),_="middle"===c?f/2:f;e="start"===c?l:l-_,r="end"===c?l:l+_}else e=function(t,n){var e=t.data,r=t.scale,i=t.alignment,o=et(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),c=0===n?et(t,e.length-1)-2*Math.PI:et(t,n-1);return 0===n&&a<2*Math.PI?r.x.range()[0]:"start"===i||"end"===i?"start"===i?c:o:(o+c)/2}(t,a),r=function(t,n){var e=t.data,r=t.scale,i=t.alignment,o=et(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),c=r.x.range()[1]===2*Math.PI?et(t,0)+2*Math.PI:r.x.range()[1],s=n===e.length-1?et(t,0)+2*Math.PI:et(t,n+1);return n===e.length-1&&a<2*Math.PI?c:"start"===i||"end"===i?"start"===i?o:s:(o+s)/2}(t,a);var p=function(t){return H().innerRadius(u).outerRadius(h).startAngle(rt(e)).endAngle(rt(r)).cornerRadius(n[t])()},y=function(t){var n=p("".concat(t,"Right")),e=n.match(/[A-Z]/g),r=n.split(/[A-Z]/).slice(1),i=e.indexOf("L"),o=p("".concat(t,"Left")),a=o.match(/[A-Z]/g),c=o.split(/[A-Z]/).slice(1),s=a.indexOf("L");return{rightMoves:e,rightCoords:r,rightMiddle:i,leftMoves:a,leftCoords:c,leftMiddle:s}},x=function(){var t,i,o=n.topRight,a=n.topLeft,c=h*Math.abs(r-e),s=y("top"),u=s.rightMoves,l=s.rightCoords,f=s.rightMiddle,_=s.leftMoves,p=s.leftCoords,x=s.leftMiddle;if(o===a||c<2*o+2*a)t=o>a?u:_,i=o>a?l:p;else{var v,d=function(t){return t<3},b=a>o&&d(f)?1:2;if(o>a){var g=d(f)?x:x-2;v=d(x)?x-1:g}else{var m=d(x)?1:2;v=d(f)?m:x-2}t=tt(u.slice(0,b)).concat(tt(_.slice(v))),i=tt(l.slice(0,b)).concat(tt(p.slice(v)))}var O=t.indexOf("L"),T=t.slice(0,O),w=i.slice(0,O);return T.map((function(t,n){return{command:t,coords:w[n].split(",")}}))}(),v=function(){var t,i,o=n.bottomRight,a=n.bottomLeft,c=u*Math.abs(r-e),s=y("bottom"),h=s.rightMoves,l=s.rightCoords,f=s.rightMiddle,_=s.leftMoves,p=s.leftCoords,x=s.leftMiddle;if(o===a||c<2*o+2*a)t=o>a?h:_,i=o>a?l:p;else{var v=function(t,n){return t.length-n<4},d=(o>a?v(h,f):v(_,x))?-1:-3;t=tt(_.slice(0,x+2)).concat(tt(h.slice(d))),i=tt(p.slice(0,x+2)).concat(tt(l.slice(d)))}var b=t.indexOf("L"),g=t.slice(b,-1),m=i.slice(b,-1);return g.map((function(t,n){return{command:t,coords:m[n].split(",")}}))}(),d=tt(x).concat(tt(v)).reduce((function(t,n){return t+"".concat(n.command," ").concat(n.coords.join())}),"");return"".concat(d," z")}(t,n)},ct=r(216),st=r.n(ct),ut=r(2654),ht=r.n(ut),lt=r(6786),ft=r.n(lt),_t=function(t){var n=function(n,e,r,i){var o=e[r];if(null==o)return n?new Error("Required `".concat(r,"` was not specified in `").concat(i,"`.")):null;for(var a=arguments.length,c=new Array(a>4?a-4:0),s=4;s<a;s++)c[s-4]=arguments[s];return t.apply(void 0,[e,r,i].concat(c))},e=n.bind(null,!1);return e.isRequired=n.bind(null,!0),e},pt=function(){return null},yt=function(){},xt=function(t){return void 0===t?yt:null===t?pt:t.constructor},vt=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function dt(t){return _t((function(n,e,r){for(var i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return t.reduce((function(t,i){return t||i.apply(void 0,[n,e,r].concat(o))}),void 0)}))}var bt=_t((function(t,n,e){var r=t[n];if("number"!=typeof r||r<0)return new Error("`".concat(n,"` in `").concat(e,"` must be a non-negative number."))})),gt=_t((function(t,n,e){var r=t[n];if("number"!=typeof r||r%1!=0)return new Error("`".concat(n,"` in `").concat(e,"` must be an integer."))})),mt=(_t((function(t,n,e){var r=t[n];if("number"!=typeof r||r<=0)return new Error("`".concat(n,"` in `").concat(e,"` must be a number greater than zero."))})),_t((function(t,n,e){var r=t[n];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(n,"` in `").concat(e,"` must be an array of two unique numeric values."))}))),Ot=_t((function(t,n,e){var r;if(r=t[n],!(x()(r)?x()(r.copy)&&x()(r.domain)&&x()(r.range):"string"==typeof r&&-1!==["linear","time","log","sqrt"].indexOf(r)))return new Error("`".concat(n,"` in `").concat(e,"` must be a d3 scale."))})),Tt=(_t((function(t,n,e){var r=t[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(e,"` must be an array."));if(!(r.length<2)){var i=xt(r[0]),o=ft()(r,(function(t){return i!==xt(t)}));if(o){var a=vt(r[0]),c=vt(o);return new Error("Expected `".concat(n,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(c,"`."))}}})),_t((function(t,n){if(t[n]&&Array.isArray(t[n])&&t[n].length!==t.data.length)return new Error("Length of data and ".concat(n," arrays must match."))})),_t((function(t,n,e){if(t[n]&&!ht()(t[n]))return new Error("`".concat(n,"` in `").concat(e,"` must be a regular expression."))})),st().oneOfType([st().arrayOf(st().string),st().shape({x:st().arrayOf(st().string),y:st().arrayOf(st().string)})]),st().oneOfType([st().array,st().object]),st().element,st().bool,st().element,st().oneOfType([st().func,st().array]),st().oneOfType([st().func,dt([gt,bt]),st().string,st().arrayOf(st().string)]),st().oneOf(["ascending","descending"]),st().shape({parent:st().object,data:st().object,labels:st().object}),st().oneOfType([st().func,dt([gt,bt]),st().string,st().arrayOf(st().string)]),st().oneOfType([st().func,dt([gt,bt]),st().string,st().arrayOf(st().string)]),st().oneOfType([st().func,dt([gt,bt]),st().string,st().arrayOf(st().string)]),st().oneOfType([st().bool,st().object]),st().element,st().oneOfType([mt,st().shape({x:mt,y:mt})]),st().oneOfType([st().number,st().instanceOf(Date),st().shape({x:st().oneOfType([st().number,st().instanceOf(Date)]),y:st().oneOfType([st().number,st().instanceOf(Date)])})]),st().oneOfType([st().number,st().instanceOf(Date),st().shape({x:st().oneOfType([st().number,st().instanceOf(Date)]),y:st().oneOfType([st().number,st().instanceOf(Date)])})]),st().oneOfType([st().shape({x:st().oneOfType([st().number,st().arrayOf(st().number)]),y:st().oneOfType([st().number,st().arrayOf(st().number)])}),st().number,st().arrayOf(st().number)]),st().oneOfType([st().func,dt([gt,bt]),st().string]),st().arrayOf(st().shape({target:st().oneOf(["data","labels","parent"]),eventKey:st().oneOfType([st().array,dt([gt,bt]),st().string]),eventHandlers:st().object})),st().arrayOf(st().shape({callback:st().function,childName:st().oneOfType([st().string,st().array]),eventKey:st().oneOfType([st().array,dt([gt,bt]),st().string]),mutation:st().function,target:st().oneOfType([st().string,st().array])})),st().element,st().string,st().shape({x:st().number,y:st().number}),st().oneOfType([st().number,st().shape({top:st().number,bottom:st().number,left:st().number,right:st().number})]),st().bool,st().oneOfType([mt,st().shape({x:mt,y:mt})]),st().oneOfType([Ot,st().shape({x:Ot,y:Ot})]),st().shape({events:st().array,getEventState:st().func}),st().oneOfType([st().bool,st().shape({x:st().oneOfType([st().bool]),y:st().oneOfType([st().bool])})]),st().bool,st().object,{active:st().bool,ariaLabel:st().oneOfType([st().string,st().func]),className:st().string,clipPath:st().string,data:st().oneOfType([st().array,st().object]),desc:st().oneOfType([st().string,st().func]),disableInlineStyles:st().bool,events:st().object,id:st().oneOfType([st().number,st().string,st().func]),index:st().oneOfType([st().number,st().string]),origin:st().shape({x:st().number,y:st().number}),polar:st().bool,role:st().string,scale:st().oneOfType([Ot,st().shape({x:Ot,y:Ot})]),shapeRendering:st().string,style:st().object,tabIndex:st().oneOfType([st().number,st().func]),transform:st().string});function wt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){Mt(t,n,e[n])}))}return t}function Mt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var jt=function(t){t=function(t){var n=m(t.style,t),e=b(t.barWidth,a()({},t,{style:n})),r=g(t.cornerRadius,a()({},t,{style:n,barWidth:e})),i=v(t.ariaLabel,t),o=v(t.desc,t),c=v(t.id,t),s=v(t.tabIndex,t);return a()({},t,{ariaLabel:i,style:n,barWidth:e,cornerRadius:r,desc:o,id:c,tabIndex:s})}(t);var n=t,e=n.polar,r=n.origin,i=n.style,o=n.barWidth,c=n.cornerRadius,u=e?at(t,c):ot(t,o,c),h=e&&r?"translate(".concat(r.x,", ").concat(r.y,")"):void 0;return s().cloneElement(t.pathComponent,wt({},t.events,{"aria-label":t.ariaLabel,style:i,d:u,className:t.className,clipPath:t.clipPath,desc:t.desc,index:t.index,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform||h,tabIndex:t.tabIndex}))};jt.propTypes=wt({},Tt,{alignment:st().oneOf(["start","middle","end"]),barRatio:st().number,barWidth:st().oneOfType([st().number,st().func]),cornerRadius:st().oneOfType([st().number,st().func,st().shape({top:st().oneOfType([st().number,st().func]),topLeft:st().oneOfType([st().number,st().func]),topRight:st().oneOfType([st().number,st().func]),bottom:st().oneOfType([st().number,st().func]),bottomLeft:st().oneOfType([st().number,st().func]),bottomRight:st().oneOfType([st().number,st().func])})]),datum:st().object,getPath:st().func,horizontal:st().bool,pathComponent:st().element,width:st().number,x:st().number,y:st().number,y0:st().number}),jt.defaultProps={defaultBarWidth:8,pathComponent:s().createElement((function(t){var n=t.desc,e=function(t,n){if(null==t)return{};var e,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e=o[r],n.indexOf(e)>=0||(i[e]=t[e]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}(t,["desc"]);return n?s().createElement("path",e,s().createElement("desc",null,n)):s().createElement("path",e)}),null),role:"presentation",shapeRendering:"auto"};const kt=jt;var Pt=s().createContext(),Et=function(){var t=s().useContext(Pt);if(!t)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return t},Rt=function(t){var n,e,r=Et().canvasRef,i=function(t){var n=m(t.style,t),e=b(t.barWidth,a()({},t,{style:n})),r=g(t.cornerRadius,a()({},t,{style:n,barWidth:e}));return a()({},t,{style:n,barWidth:e,cornerRadius:r})}(t),o=i.polar,c=i.style,u=i.barWidth,h=i.cornerRadius,l=i.origin,f=s().useMemo((function(){var t=o?at(i,h):ot(i,u,h);return new Path2D(t)}),[o,u,h,i]),_=(n=f,e=s().useRef(),s().useEffect((function(){e.current=n})),e.current),p=s().useCallback((function(t,n){t.fillStyle=c.fill,t.strokeStyle=c.stroke,t.globalAlpha=c.fillOpacity,t.lineWidth=c.strokeWidth,o&&t.translate(l.x,l.y),t.fill(n),t.setTransform(1,0,0,1,0,0)}),[c,l,o]),y=s().useCallback((function(t){_&&(t.save(),t.lineWidth=c.strokeWidth+2,t.globalCompositeOperation="destination-out",p(t,_),t.stroke(_),t.restore())}),[p,_,c]);return s().useEffect((function(){var t=r.current.getContext("2d");y(t),p(t,f)}),[r,p,o,u,h,i,f,y]),null};Rt.propTypes=e()(kt.propTypes,"pathComponent");const St=Rt;var At=function(t){var n=s().useRef(),e=t.children,r=t.width,i=t.height,o=t.clipWidth,a=t.padding,c=s().useCallback((function(t){return t.clearRect(0,0,r,i)}),[r,i]),u=s().useCallback((function(t){var n=r-a.right-a.left;t.clearRect(r-a.right,0,-1*(n-o),i)}),[r,i,a,o]);return s().createElement(Pt.Provider,{value:{canvasRef:n,clear:c,clip:u}},s().createElement("foreignObject",{width:r,height:i,x:0,y:0},s().createElement("canvas",{width:r,height:i,ref:n})),e)};At.propTypes={"aria-label":st().string,children:st().oneOfType([st().arrayOf(st().node),st().node]),className:st().string,clipWidth:bt,height:st().number,padding:st().oneOfType([st().number,st().shape({top:st().number,bottom:st().number,left:st().number,right:st().number})]),width:st().number},At.role="container",At.displayName="CanvasGroup";const Ct=At;function Nt(t){this._context=t}function Lt(t){return new Nt(t)}function qt(t){return t[0]}function zt(t){return t[1]}function It(){var t=qt,n=zt,e=E(!0),r=null,i=Lt,o=null;function a(a){var c,s,u,h=a.length,l=!1;for(null==r&&(o=i(u=P())),c=0;c<=h;++c)!(c<h&&e(s=a[c],c,a))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(s,c,a),+n(s,c,a));if(u)return o=null,u+""||null}return a.x=function(n){return arguments.length?(t="function"==typeof n?n:E(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:E(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:E(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function Wt(){var t=qt,n=null,e=E(0),r=zt,i=E(!0),o=null,a=Lt,c=null;function s(s){var u,h,l,f,_,p=s.length,y=!1,x=new Array(p),v=new Array(p);for(null==o&&(c=a(_=P())),u=0;u<=p;++u){if(!(u<p&&i(f=s[u],u,s))===y)if(y=!y)h=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),l=u-1;l>=h;--l)c.point(x[l],v[l]);c.lineEnd(),c.areaEnd()}y&&(x[u]=+t(f,u,s),v[u]=+e(f,u,s),c.point(n?+n(f,u,s):x[u],r?+r(f,u,s):v[u]))}if(_)return c=null,_+""||null}function u(){return It().defined(i).curve(a).context(o)}return s.x=function(e){return arguments.length?(t="function"==typeof e?e:E(+e),n=null,s):t},s.x0=function(n){return arguments.length?(t="function"==typeof n?n:E(+n),s):t},s.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:E(+t),s):n},s.y=function(t){return arguments.length?(e="function"==typeof t?t:E(+t),r=null,s):e},s.y0=function(t){return arguments.length?(e="function"==typeof t?t:E(+t),s):e},s.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:E(+t),s):r},s.lineX0=s.lineY0=function(){return u().x(t).y(e)},s.lineY1=function(){return u().x(t).y(r)},s.lineX1=function(){return u().x(n).y(e)},s.defined=function(t){return arguments.length?(i="function"==typeof t?t:E(!!t),s):i},s.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),s):a},s.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),s):o},s}function Dt(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Yt(t){return t}function Xt(){var t=Yt,n=Dt,e=null,r=E(0),i=E(D),o=E(0);function a(a){var c,s,u,h,l,f=a.length,_=0,p=new Array(f),y=new Array(f),x=+r.apply(this,arguments),v=Math.min(D,Math.max(-D,i.apply(this,arguments)-x)),d=Math.min(Math.abs(v)/f,o.apply(this,arguments)),b=d*(v<0?-1:1);for(c=0;c<f;++c)(l=y[p[c]=c]=+t(a[c],c,a))>0&&(_+=l);for(null!=n?p.sort((function(t,e){return n(y[t],y[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),c=0,u=_?(v-f*b)/_:0;c<f;++c,x=h)s=p[c],h=x+((l=y[s])>0?l*u:0)+b,y[s]={data:a[s],index:c,value:l,startAngle:x,endAngle:h,padAngle:d};return y}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:E(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:E(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:E(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:E(+t),a):o},a}Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Bt=$t(Lt);function Ft(t){this._curve=t}function $t(t){function n(n){return new Ft(t(n))}return n._curve=t,n}function Ut(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n($t(t)):n()._curve},t}function Zt(){return Ut(It().curve(Bt))}function Vt(){var t=Wt().curve(Bt),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Ut(e())},delete t.lineX0,t.lineEndAngle=function(){return Ut(r())},delete t.lineX1,t.lineInnerRadius=function(){return Ut(i())},delete t.lineY0,t.lineOuterRadius=function(){return Ut(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n($t(t)):n()._curve},t}function Gt(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}Ft.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Ht=Array.prototype.slice;function Kt(t){return t.source}function Qt(t){return t.target}function Jt(t){var n=Kt,e=Qt,r=qt,i=zt,o=null;function a(){var a,c=Ht.call(arguments),s=n.apply(this,c),u=e.apply(this,c);if(o||(o=a=P()),t(o,+r.apply(this,(c[0]=s,c)),+i.apply(this,c),+r.apply(this,(c[0]=u,c)),+i.apply(this,c)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(n=t,a):n},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(r="function"==typeof t?t:E(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:E(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function tn(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function nn(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function en(t,n,e,r,i){var o=Gt(n,e),a=Gt(n,e=(e+i)/2),c=Gt(r,e),s=Gt(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],c[0],c[1],s[0],s[1])}function rn(){return Jt(tn)}function on(){return Jt(nn)}function an(){var t=Jt(en);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const cn={draw:function(t,n){var e=Math.sqrt(n/I);t.moveTo(e,0),t.arc(0,0,e,0,D)}},sn={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};var un=Math.sqrt(1/3),hn=2*un;const ln={draw:function(t,n){var e=Math.sqrt(n/hn),r=e*un;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}};var fn=Math.sin(I/10)/Math.sin(7*I/10),_n=Math.sin(D/10)*fn,pn=-Math.cos(D/10)*fn;const yn={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=_n*e,i=pn*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=D*o/5,c=Math.cos(a),s=Math.sin(a);t.lineTo(s*e,-c*e),t.lineTo(c*r-s*i,s*r+c*i)}t.closePath()}},xn={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}};var vn=Math.sqrt(3);const dn={draw:function(t,n){var e=-Math.sqrt(n/(3*vn));t.moveTo(0,2*e),t.lineTo(-vn*e,-e),t.lineTo(vn*e,-e),t.closePath()}};var bn=-.5,gn=Math.sqrt(3)/2,mn=1/Math.sqrt(12),On=3*(mn/2+1);const Tn={draw:function(t,n){var e=Math.sqrt(n/On),r=e/2,i=e*mn,o=r,a=e*mn+e,c=-o,s=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(c,s),t.lineTo(bn*r-gn*i,gn*r+bn*i),t.lineTo(bn*o-gn*a,gn*o+bn*a),t.lineTo(bn*c-gn*s,gn*c+bn*s),t.lineTo(bn*r+gn*i,bn*i-gn*r),t.lineTo(bn*o+gn*a,bn*a-gn*o),t.lineTo(bn*c+gn*s,bn*s-gn*c),t.closePath()}};var wn=[cn,sn,ln,xn,yn,dn,Tn];function Mn(){var t=E(cn),n=E(64),e=null;function r(){var r;if(e||(e=r=P()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:E(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:E(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function jn(){}function kn(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Pn(t){this._context=t}function En(t){return new Pn(t)}function Rn(t){this._context=t}function Sn(t){return new Rn(t)}function An(t){this._context=t}function Cn(t){return new An(t)}function Nn(t,n){this._basis=new Pn(t),this._beta=n}Pn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:kn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:kn(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Rn.prototype={areaStart:jn,areaEnd:jn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:kn(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},An.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:kn(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Nn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,c=n[e]-o,s=-1;++s<=e;)r=s/e,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*a),this._beta*n[s]+(1-this._beta)*(o+r*c));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const Ln=function t(n){function e(t){return 1===n?new Pn(t):new Nn(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function qn(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function zn(t,n){this._context=t,this._k=(1-n)/6}zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:qn(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:qn(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const In=function t(n){function e(t){return new zn(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Wn(t,n){this._context=t,this._k=(1-n)/6}Wn.prototype={areaStart:jn,areaEnd:jn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:qn(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Dn=function t(n){function e(t){return new Wn(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Yn(t,n){this._context=t,this._k=(1-n)/6}Yn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:qn(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Xn=function t(n){function e(t){return new Yn(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Bn(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>z){var c=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,s=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*c-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>z){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-n*t._l12_2a)/h,a=(a*u+t._y1*t._l23_2a-e*t._l12_2a)/h}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Fn(t,n){this._context=t,this._alpha=n}Fn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Bn(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const $n=function t(n){function e(t){return n?new Fn(t,n):new zn(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Un(t,n){this._context=t,this._alpha=n}Un.prototype={areaStart:jn,areaEnd:jn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Bn(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Zn=function t(n){function e(t){return n?new Un(t,n):new Wn(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Vn(t,n){this._context=t,this._alpha=n}Vn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Bn(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const Gn=function t(n){function e(t){return n?new Vn(t,n):new Yn(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Hn(t){this._context=t}function Kn(t){return new Hn(t)}function Qn(t){return t<0?-1:1}function Jn(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),c=(o*i+a*r)/(r+i);return(Qn(o)+Qn(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function te(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function ne(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,c=(o-r)/3;t._context.bezierCurveTo(r+c,i+c*n,o-c,a-c*e,o,a)}function ee(t){this._context=t}function re(t){this._context=new ie(t)}function ie(t){this._context=t}function oe(t){return new ee(t)}function ae(t){return new re(t)}function ce(t){this._context=t}function se(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function ue(t){return new ce(t)}function he(t,n){this._context=t,this._t=n}function le(t){return new he(t,.5)}function fe(t){return new he(t,0)}function _e(t){return new he(t,1)}function pe(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],c=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<c;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function ye(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function xe(t,n){return t[n]}function ve(){var t=E([]),n=ye,e=pe,r=xe;function i(i){var o,a,c=t.apply(this,arguments),s=i.length,u=c.length,h=new Array(u);for(o=0;o<u;++o){for(var l,f=c[o],_=h[o]=new Array(s),p=0;p<s;++p)_[p]=l=[0,+r(i[p],f,p,i)],l.data=i[p];_.key=f}for(o=0,a=n(h);o<u;++o)h[a[o]].index=o;return e(h,a),h}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:E(Ht.call(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:E(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?ye:"function"==typeof t?t:E(Ht.call(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?pe:t,i):e},i}function de(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}pe(t,n)}}function be(t,n){if((c=t.length)>0)for(var e,r,i,o,a,c,s=0,u=t[n[0]].length;s<u;++s)for(o=a=0,e=0;e<c;++e)(i=(r=t[n[e]][s])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function ge(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,c=0;a<e;++a)c+=t[a][r][1]||0;i[r][1]+=i[r][0]=-c/2}pe(t,n)}}function me(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var c=0,s=0,u=0;c<i;++c){for(var h=t[n[c]],l=h[a][1]||0,f=(l-(h[a-1][1]||0))/2,_=0;_<c;++_){var p=t[n[_]];f+=(p[a][1]||0)-(p[a-1][1]||0)}s+=l,u+=f*l}e[a-1][1]+=e[a-1][0]=o,s&&(o-=u/s)}e[a-1][1]+=e[a-1][0]=o,pe(t,n)}}function Oe(t){var n=t.map(Te);return ye(t).sort((function(t,e){return n[t]-n[e]}))}function Te(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function we(t){var n=t.map(Me);return ye(t).sort((function(t,e){return n[t]-n[e]}))}function Me(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function je(t){return we(t).reverse()}function ke(t){var n,e,r=t.length,i=t.map(Me),o=Oe(t),a=0,c=0,s=[],u=[];for(n=0;n<r;++n)e=o[n],a<c?(a+=i[e],s.push(e)):(c+=i[e],u.push(e));return u.reverse().concat(s)}function Pe(t){return ye(t).reverse()}Hn.prototype={areaStart:jn,areaEnd:jn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ne(this,this._t0,te(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,ne(this,te(this,e=Jn(this,t,n)),e);break;default:ne(this,this._t0,e=Jn(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(re.prototype=Object.create(ee.prototype)).point=function(t,n){ee.prototype.point.call(this,n,t)},ie.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=se(t),i=se(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},he.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Ee=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},Re=function(t){return function(n){return t.x(void 0!==n._x1?n._x1:n._x)}},Se=function(t){return function(n){return t.y(void 0!==n._y1?n._y1:n._y)}},Ae=function(t){return"curve".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))},Ce=function(n){var e=n.polar,r=n.scale,i=n.horizontal,o=!e,a=void 0===n.openCurve?o:n.openCurve,c="function"==typeof n.interpolation&&n.interpolation,s="string"==typeof n.interpolation&&(a?Ae(n.interpolation):"".concat(Ae(n.interpolation),"Closed"));return e?Zt().defined(Ee).curve(c||t[s]).angle(function(t){return function(n){return-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2}}(r)).radius(Se(r)):It().defined(Ee).curve(c||t[s]).x(i?Se(r):Re(r)).y(i?Re(r):Se(r))};function Ne(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var Le=function(t){var n=Et(),e=n.canvasRef,r=n.clear,i=n.clip,o=t.style,a=t.data,c=o.stroke,u=o.strokeWidth,h=s().useCallback((function(n){var e=Ce(t);n.strokeStyle=c,n.lineWidth=u,e.context(n)(a),n.stroke()}),[a,t,c,u]);return s().useEffect((function(){var t=e.current.getContext("2d");r(t),h(t),i(t)}),[e,h,r,i]),null};Le.propTypes=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){Ne(t,n,e[n])}))}return t}({},Tt,{interpolation:st().oneOfType([st().string,st().func]),openCurve:st().bool,origin:st().object,polar:st().bool});const qe=Le;var ze=r(9717),Ie=r.n(ze);const We={circle:function(t,n,e){return"M ".concat(t,", ").concat(n,"\n m ").concat(-e,", 0\n a ").concat(e,", ").concat(e," 0 1,0 ").concat(2*e,",0\n a ").concat(e,", ").concat(e," 0 1,0 ").concat(2*-e,",0")},square:function(t,n,e){var r=.87*e,i=t-r,o=n+r,a=t+r-i;return"M ".concat(i,", ").concat(o,"\n h").concat(a,"\n v-").concat(a,"\n h-").concat(a,"\n z")},diamond:function(t,n,e){var r=.87*e,i=Math.sqrt(r*r*2);return"M ".concat(t,", ").concat(n+i,"\n l ").concat(i,", -").concat(i,"\n l -").concat(i,", -").concat(i,"\n l -").concat(i,", ").concat(i,"\n l ").concat(i,", ").concat(i,"\n z")},triangleDown:function(t,n,e){var r=t+e,i=n-e,o=n+e/2*Math.sqrt(3);return"M ".concat(t-e,", ").concat(i,"\n L ").concat(r,", ").concat(i,"\n L ").concat(t,", ").concat(o,"\n z")},triangleUp:function(t,n,e){var r=t+e,i=n-e/2*Math.sqrt(3),o=n+e;return"M ".concat(t-e,", ").concat(o,"\n L ").concat(r,", ").concat(o,"\n L ").concat(t,", ").concat(i,"\n z")},plus:function(t,n,e){var r=1.1*e,i=r/1.5;return"\n M ".concat(t-i/2,", ").concat(n+r,"\n v-").concat(i,"\n h-").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h-").concat(i,"\n v").concat(i,"\n z")},cross:function(t,n,e){var r=.8*e,i=r/1.5;return"\n M ".concat(t-i/2,", ").concat(n+r+i,"\n v-").concat(2*i,"\n h-").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h-").concat(i,"\n v").concat(2*i,"\n z")},minus:function(t,n,e){var r=1.1*e,i=r-.3*r,o=t-r,a=n+i/2,c=t+r-o;return"M ".concat(o,", ").concat(a,"\n h").concat(c,"\n v-").concat(i,"\n h-").concat(c,"\n z")},star:function(t,n,e){var r=1.35*e,i=Math.PI/5,o=Ie()(10).map((function(e){var o=e%2==0?r:r/2;return"".concat(o*Math.sin(i*(e+1))+t,",\n ").concat(o*Math.cos(i*(e+1))+n)}));return"M ".concat(o.join("L")," z")}};function De(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var Ye=function(t){var n=Et().canvasRef,e=function(t){var n=v(t.size,t),e=d(t.style,t),r=v(t.symbol,t);return a()({},t,{size:n,style:e,symbol:r})}(t),r=s().useCallback((function(t){var n=e.style,r=function(t){var n=t.x,e=t.y,r=t.size,i=t.symbol;if(t.getPath)return t.getPath(n,e,r);var o={circle:We.circle,square:We.square,diamond:We.diamond,triangleDown:We.triangleDown,triangleUp:We.triangleUp,plus:We.plus,minus:We.minus,star:We.star,cross:We.cross};return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)}(e);t.fillStyle=n.fill;var i=new Path2D(r);t.fill(i)}),[e]);return s().useEffect((function(){var t=n.current.getContext("2d");r(t)}),[]),null};Ye.propTypes=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{},r=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),r.forEach((function(n){De(t,n,e[n])}))}return t}({},Tt,{datum:st().object,size:st().oneOfType([st().number,st().func]),x:st().number,y:st().number});const Xe=Ye})(),i})()}));
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.VictoryCanvas=n(require("react")):t.VictoryCanvas=n(t.React)}(self,(function(t){return(()=>{var n={1124:(t,n,e)=>{var r=e(7236);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},4281:(t,n,e)=>{var r=e(7168),i=e(6582),o=e(3867),a=e(9557),s=e(2726);function c(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},4690:(t,n,e)=>{var r=e(441).Symbol;t.exports=r},5198:t=>{t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},6460:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},3848:t=>{t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},4793:t=>{t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},7596:(t,n,e)=>{var r=e(999),i=e(6530),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3833:(t,n,e)=>{var r=e(6530);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},999:(t,n,e)=>{var r=e(9346);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},2327:t=>{t.exports=function(t){return t}},528:t=>{t.exports=function(t,n,e,r){for(var i=t.length,o=e+(r?1:-1);r?o--:++o<i;)if(n(t[o],o,t))return o;return-1}},314:(t,n,e)=>{var r=e(3848),i=e(1754);t.exports=function t(n,e,o,a,s){var c=-1,u=n.length;for(o||(o=i),s||(s=[]);++c<u;){var h=n[c];e>0&&o(h)?e>1?t(h,e-1,o,a,s):r(s,h):a||(s[s.length]=h)}return s}},166:(t,n,e)=>{var r=e(8422),i=e(8780);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},4318:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7:t=>{t.exports=function(t,n){return null!=t&&n in Object(t)}},7650:t=>{t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},1071:(t,n,e)=>{var r=e(7229),i=e(3387);t.exports=function t(n,e,o,a,s){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,s))}},7229:(t,n,e)=>{var r=e(4281),i=e(2503),o=e(6001),a=e(8784),s=e(6686),c=e(7236),u=e(8752),h=e(4812),l="[object Arguments]",f="[object Array]",_="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,y,x,v){var d=c(t),b=c(n),g=d?f:s(t),m=b?f:s(n),O=(g=g==l?_:g)==_,T=(m=m==l?_:m)==_,w=g==m;if(w&&u(t)){if(!u(n))return!1;d=!0,O=!1}if(w&&!O)return v||(v=new r),d||h(t)?i(t,n,e,y,x,v):o(t,n,g,e,y,x,v);if(!(1&e)){var j=O&&p.call(t,"__wrapped__"),M=T&&p.call(n,"__wrapped__");if(j||M){var P=j?t.value():t,k=M?n.value():n;return v||(v=new r),x(P,k,e,y,v)}}return!!w&&(v||(v=new r),a(t,n,e,y,x,v))}},9157:(t,n,e)=>{var r=e(4281),i=e(1071);t.exports=function(t,n,e,o){var a=e.length,s=a,c=!o;if(null==t)return!s;for(t=Object(t);a--;){var u=e[a];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var h=(u=e[a])[0],l=t[h],f=u[1];if(c&&u[2]){if(void 0===l&&!(h in t))return!1}else{var _=new r;if(o)var p=o(l,f,h,t,n,_);if(!(void 0===p?i(f,l,3,o,_):p))return!1}}return!0}},1131:(t,n,e)=>{var r=e(4318),i=e(3387);t.exports=function(t){return i(t)&&"[object RegExp]"==r(t)}},8904:(t,n,e)=>{var r=e(8418),i=e(4555),o=e(5362),a=e(7236),s=e(1651);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)}},8418:(t,n,e)=>{var r=e(9157),i=e(9182),o=e(7375);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},4555:(t,n,e)=>{var r=e(1071),i=e(3795),o=e(3646),a=e(3266),s=e(1457),c=e(7375),u=e(8780);t.exports=function(t,n){return a(t)&&s(n)?c(u(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},7410:(t,n,e)=>{var r=e(6621),i=e(3646);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6621:(t,n,e)=>{var r=e(166),i=e(8116),o=e(8422);t.exports=function(t,n,e){for(var a=-1,s=n.length,c={};++a<s;){var u=n[a],h=r(t,u);e(h,u)&&i(c,o(u,t),h)}return c}},1712:t=>{t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},4815:(t,n,e)=>{var r=e(166);t.exports=function(t){return function(n){return r(n,t)}}},797:t=>{var n=Math.ceil,e=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=e(n((r-t)/(i||1)),0),c=Array(s);s--;)c[o?s:++a]=t,t+=i;return c}},4569:(t,n,e)=>{var r=e(5362),i=e(4468),o=e(8756);t.exports=function(t,n){return o(i(t,n,r),t+"")}},8116:(t,n,e)=>{var r=e(7596),i=e(8422),o=e(4363),a=e(5973),s=e(8780);t.exports=function(t,n,e,c){if(!a(t))return t;for(var u=-1,h=(n=i(n,t)).length,l=h-1,f=t;null!=f&&++u<h;){var _=s(n[u]),p=e;if("__proto__"===_||"constructor"===_||"prototype"===_)return t;if(u!=l){var y=f[_];void 0===(p=c?c(y,_,f):void 0)&&(p=a(y)?y:o(n[u+1])?[]:{})}r(f,_,p),f=f[_]}return t}},4293:t=>{t.exports=function(t,n,e){var r=-1,i=t.length;n<0&&(n=-n>i?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+n];return o}},3349:(t,n,e)=>{var r=e(5720),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},6535:t=>{t.exports=function(t){return function(n){return t(n)}}},9386:(t,n,e)=>{var r=e(8422),i=e(2972),o=e(8293),a=e(8780);t.exports=function(t,n){return n=r(n,t),null==(t=o(t,n))||delete t[a(i(n))]}},555:(t,n,e)=>{var r=e(7650);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},8422:(t,n,e)=>{var r=e(7236),i=e(3266),o=e(3879),a=e(1119);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},6051:(t,n,e)=>{var r=e(7596),i=e(999);t.exports=function(t,n,e,o){var a=!e;e||(e={});for(var s=-1,c=n.length;++s<c;){var u=n[s],h=o?o(e[u],t[u],u,e,t):void 0;void 0===h&&(h=t[u]),a?i(e,u,h):r(e,u,h)}return e}},2544:(t,n,e)=>{var r=e(4569),i=e(3108);t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,a=o>1?e[o-1]:void 0,s=o>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(e[0],e[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++r<o;){var c=e[r];c&&t(n,c,r,a)}return n}))}},3086:(t,n,e)=>{var r=e(8904),i=e(1580),o=e(2635);t.exports=function(t){return function(n,e,a){var s=Object(n);if(!i(n)){var c=r(e,3);n=o(n),e=function(t){return c(s[t],t,s)}}var u=t(n,e,a);return u>-1?s[c?n[u]:u]:void 0}}},9833:(t,n,e)=>{var r=e(797),i=e(3108),o=e(992);t.exports=function(t){return function(n,e,a){return a&&"number"!=typeof a&&i(n,e,a)&&(e=a=void 0),n=o(n),void 0===e?(e=n,n=0):e=o(e),a=void 0===a?n<e?1:-1:o(a),r(n,e,a,t)}}},9294:(t,n,e)=>{var r=e(9636);t.exports=function(t){return r(t)?void 0:t}},9346:(t,n,e)=>{var r=e(4457),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},2503:(t,n,e)=>{var r=e(1124),i=e(4793),o=e(555);t.exports=function(t,n,e,a,s,c){var u=1&e,h=t.length,l=n.length;if(h!=l&&!(u&&l>h))return!1;var f=c.get(t),_=c.get(n);if(f&&_)return f==n&&_==t;var p=-1,y=!0,x=2&e?new r:void 0;for(c.set(t,n),c.set(n,t);++p<h;){var v=t[p],d=n[p];if(a)var b=u?a(d,v,p,n,t,c):a(v,d,p,t,n,c);if(void 0!==b){if(b)continue;y=!1;break}if(x){if(!i(n,(function(t,n){if(!o(x,n)&&(v===t||s(v,t,e,a,c)))return x.push(n)}))){y=!1;break}}else if(v!==d&&!s(v,d,e,a,c)){y=!1;break}}return c.delete(t),c.delete(n),y}},6001:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},8784:(t,n,e)=>{var r=e(6094),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,s){var c=1&e,u=r(t),h=u.length;if(h!=r(n).length&&!c)return!1;for(var l=h;l--;){var f=u[l];if(!(c?f in n:i.call(n,f)))return!1}var _=s.get(t),p=s.get(n);if(_&&p)return _==n&&p==t;var y=!0;s.set(t,n),s.set(n,t);for(var x=c;++l<h;){var v=t[f=u[l]],d=n[f];if(o)var b=c?o(d,v,f,n,t,s):o(v,d,f,t,n,s);if(!(void 0===b?v===d||a(v,d,e,o,s):b)){y=!1;break}x||(x="constructor"==f)}if(y&&!x){var g=t.constructor,m=n.constructor;g==m||!("constructor"in t)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m||(y=!1)}return s.delete(t),s.delete(n),y}},3368:(t,n,e)=>{var r=e(5453),i=e(4468),o=e(8756);t.exports=function(t){return o(i(t,void 0,r),t+"")}},4414:(t,n,e)=>{var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},6094:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},5559:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},9182:(t,n,e)=>{var r=e(1457),i=e(2635);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},4457:t=>{t.exports=function(t,n){return null==t?void 0:t[n]}},1407:(t,n,e)=>{var r=e(3717)(Object.getPrototypeOf,Object);t.exports=r},6686:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},7383:(t,n,e)=>{var r=e(8422),i=e(6981),o=e(7236),a=e(4363),s=e(9216),c=e(8780);t.exports=function(t,n,e){for(var u=-1,h=(n=r(n,t)).length,l=!1;++u<h;){var f=c(n[u]);if(!(l=null!=t&&e(t,f)))break;t=t[f]}return l||++u!=h?l:!!(h=null==t?0:t.length)&&s(h)&&a(f,h)&&(o(t)||i(t))}},1754:(t,n,e)=>{var r=e(4690),i=e(6981),o=e(7236),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},4363:t=>{var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},3108:t=>{t.exports=function(){return!1}},3266:(t,n,e)=>{var r=e(7236),i=e(2945),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5003:t=>{t.exports=function(){return!1}},1457:(t,n,e)=>{var r=e(5973);t.exports=function(t){return t==t&&!r(t)}},7168:t=>{t.exports=function(){this.__data__=[],this.size=0}},6582:(t,n,e)=>{var r=e(3833),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},3867:(t,n,e)=>{var r=e(3833);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},9557:(t,n,e)=>{var r=e(3833);t.exports=function(t){return r(this.__data__,t)>-1}},2726:(t,n,e)=>{var r=e(3833);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},7375:t=>{t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},7085:t=>{t.exports=function(t){return t}},1782:(t,n,e)=>{t=e.nmd(t);var r=e(4414),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},3717:t=>{t.exports=function(t,n){return function(e){return t(n(e))}}},4468:(t,n,e)=>{var r=e(5198),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,s=i(o.length-n,0),c=Array(s);++a<s;)c[a]=o[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=o[a];return u[n]=e(c),r(t,this,u)}}},8293:(t,n,e)=>{var r=e(166),i=e(4293);t.exports=function(t,n){return n.length<2?t:r(t,i(n,0,-1))}},441:(t,n,e)=>{var r=e(4414),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},8756:t=>{t.exports=function(t){return t}},3879:(t,n,e)=>{var r=e(7085),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},8780:t=>{t.exports=function(t){return t}},5720:t=>{var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},6782:(t,n,e)=>{var r=e(7596),i=e(6051),o=e(2544),a=e(1580),s=e(5003),c=e(2635),u=Object.prototype.hasOwnProperty,h=o((function(t,n){if(s(n)||a(n))i(n,c(n),t);else for(var e in n)u.call(n,e)&&r(t,e,n[e])}));t.exports=h},7901:(t,n,e)=>{var r=e(4569),i=e(6530),o=e(3108),a=e(5850),s=Object.prototype,c=s.hasOwnProperty,u=r((function(t,n){t=Object(t);var e=-1,r=n.length,u=r>2?n[2]:void 0;for(u&&o(n[0],n[1],u)&&(r=1);++e<r;)for(var h=n[e],l=a(h),f=-1,_=l.length;++f<_;){var p=l[f],y=t[p];(void 0===y||i(y,s[p])&&!c.call(t,p))&&(t[p]=h[p])}return t}));t.exports=u},6530:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},6786:(t,n,e)=>{var r=e(3086)(e(8611));t.exports=r},8611:(t,n,e)=>{var r=e(528),i=e(8904),o=e(5225),a=Math.max;t.exports=function(t,n,e){var s=null==t?0:t.length;if(!s)return-1;var c=null==e?0:o(e);return c<0&&(c=a(s+c,0)),r(t,i(n,3),c)}},5453:(t,n,e)=>{var r=e(314);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},3795:(t,n,e)=>{var r=e(166);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},3646:(t,n,e)=>{var r=e(7),i=e(7383);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5362:t=>{t.exports=function(t){return t}},6981:t=>{t.exports=function(){return!1}},7236:t=>{var n=Array.isArray;t.exports=n},1580:(t,n,e)=>{var r=e(3839),i=e(9216);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},8752:t=>{t.exports=function(){return!1}},3839:(t,n,e)=>{var r=e(4318),i=e(5973);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},9216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6866:t=>{t.exports=function(t){return null==t}},5973:t=>{t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3387:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},9636:(t,n,e)=>{var r=e(4318),i=e(1407),o=e(3387),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,h=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=u.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&c.call(e)==h}},2654:(t,n,e)=>{var r=e(1131),i=e(6535),o=e(1782),a=o&&o.isRegExp,s=a?i(a):r;t.exports=s},2945:t=>{t.exports=function(){return!1}},4812:t=>{t.exports=function(){return!1}},2635:(t,n,e)=>{var r=e(3717)(Object.keys,Object);t.exports=r},5850:t=>{t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},2972:t=>{t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},9086:(t,n,e)=>{var r=e(6460),i=e(2327),o=e(9386),a=e(8422),s=e(6051),c=e(9294),u=e(3368),h=e(5559),l=u((function(t,n){var e={};if(null==t)return e;var u=!1;n=r(n,(function(n){return n=a(n,t),u||(u=n.length>1),n})),s(t,h(t),e),u&&(e=i(e,7,c));for(var l=n.length;l--;)o(e,n[l]);return e}));t.exports=l},8423:(t,n,e)=>{var r=e(7410),i=e(3368)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},1651:(t,n,e)=>{var r=e(1712),i=e(4815),o=e(3266),a=e(8780);t.exports=function(t){return o(t)?r(a(t)):i(t)}},9717:(t,n,e)=>{var r=e(9833)();t.exports=r},992:(t,n,e)=>{var r=e(8746);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5225:(t,n,e)=>{var r=e(992);t.exports=function(t){var n=r(t),e=n%1;return n==n?e?n-e:n:0}},8746:(t,n,e)=>{var r=e(3349),i=e(5973),o=e(2945),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=s.test(t);return e||c.test(t)?u(t.slice(2),e?2:8):a.test(t)?NaN:+t}},1119:t=>{t.exports=function(t){return t}},459:(t,n,e)=>{"use strict";var r=e(5704);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,n,e,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return e.PropTypes=e,e}},216:(t,n,e)=>{t.exports=e(459)()},5704:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9787:n=>{"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t](o,o.exports,r),o.loaded=!0,o.exports}r.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return r.d(n,{a:n}),n},r.d=(t,n)=>{for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var i={};return(()=>{"use strict";r.r(i),r.d(i,{CanvasBar:()=>zt,CanvasCurve:()=>rr,CanvasGroup:()=>qt,CanvasPoint:()=>lr,useCanvasContext:()=>Lt});var t={};r.r(t),r.d(t,{arc:()=>H,area:()=>Zt,areaRadial:()=>en,curveBasis:()=>Zn,curveBasisClosed:()=>Gn,curveBasisOpen:()=>Kn,curveBumpX:()=>sn,curveBumpY:()=>cn,curveBundle:()=>Jn,curveCardinal:()=>ee,curveCardinalClosed:()=>ie,curveCardinalOpen:()=>ae,curveCatmullRom:()=>ue,curveCatmullRomClosed:()=>le,curveCatmullRomOpen:()=>_e,curveLinear:()=>Bt,curveLinearClosed:()=>ye,curveMonotoneX:()=>Te,curveMonotoneY:()=>we,curveNatural:()=>Pe,curveStep:()=>Se,curveStepAfter:()=>Re,curveStepBefore:()=>Ee,line:()=>Ut,lineRadial:()=>nn,link:()=>fn,linkHorizontal:()=>_n,linkRadial:()=>yn,linkVertical:()=>pn,pie:()=>Ht,pointRadial:()=>rn,radialArea:()=>en,radialLine:()=>nn,stack:()=>De,stackOffsetDiverging:()=>Ie,stackOffsetExpand:()=>ze,stackOffsetNone:()=>Ae,stackOffsetSilhouette:()=>qe,stackOffsetWiggle:()=>We,stackOrderAppearance:()=>Xe,stackOrderAscending:()=>Be,stackOrderDescending:()=>$e,stackOrderInsideOut:()=>Ue,stackOrderNone:()=>Ce,stackOrderReverse:()=>Ze,symbol:()=>Bn,symbolAsterisk:()=>vn,symbolCircle:()=>dn,symbolCross:()=>bn,symbolDiamond:()=>On,symbolDiamond2:()=>Tn,symbolPlus:()=>wn,symbolSquare:()=>jn,symbolSquare2:()=>Mn,symbolStar:()=>En,symbolTriangle:()=>An,symbolTriangle2:()=>Nn,symbolWye:()=>qn,symbolX:()=>Wn,symbols:()=>Xn,symbolsFill:()=>Xn,symbolsStroke:()=>Yn});var n=r(9086),e=r.n(n),o=r(6782),a=r.n(o),s=r(9787),c=r.n(s),u=r(9636),h=r.n(u),l=r(6866),f=r.n(l),_=r(2635),p=r.n(_),y=(r(8423),r(1651),r(3839)),x=r.n(y);function v(t,n){return x()(t)?t(n):t}function d(t,n){return n.disableInlineStyles?{}:t&&p()(t).some((function(n){return x()(t[n])}))?p()(t).reduce((function(e,r){return e[r]=v(t[r],n),e}),{}):t}r(7901);var b=function(t,n){var e=n.scale,r=n.data,i=n.defaultBarWidth,o=n.style;if(t)return v(t,n);if(o.width)return o.width;var a=e.x.range(),s=Math.abs(a[1]-a[0]),c=r.length+2,u=(n.barRatio||.5)*(r.length<2?i:s/c);return Math.max(1,u)},g=function(t,n){var e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?h()(t)?function(t,n){var e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(r,i){f()(t[r])?f()(t[i])||(e[r]=v(t[i],n)):e[r]=v(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e}(t,n):(e.topLeft=v(t,n),e.topRight=v(t,n),e):e},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(n.disableInlineStyles)return{};var e=t.fill||"black",r={fill:"black",stroke:e};return d(a()(r,t),n)};const O=Math.PI,T=2*O,w=1e-6,j=T-w;function M(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function P(){return new M}M.prototype=P.prototype={constructor:M,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,s=e-t,c=r-n,u=o-t,h=a-n,l=u*u+h*h;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>w)if(Math.abs(h*s-c*u)>w&&i){var f=e-o,_=r-a,p=s*s+c*c,y=f*f+_*_,x=Math.sqrt(p),v=Math.sqrt(l),d=i*Math.tan((O-Math.acos((p+l-y)/(2*x*v)))/2),b=d/v,g=d/x;Math.abs(b-1)>w&&(this._+="L"+(t+b*u)+","+(n+b*h)),this._+="A"+i+","+i+",0,0,"+ +(h*f>u*_)+","+(this._x1=t+g*s)+","+(this._y1=n+g*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),s=e*Math.sin(r),c=t+a,u=n+s,h=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>w||Math.abs(this._y1-u)>w)&&(this._+="L"+c+","+u),e&&(l<0&&(l=l%T+T),l>j?this._+="A"+e+","+e+",0,1,"+h+","+(t-a)+","+(n-s)+"A"+e+","+e+",0,1,"+h+","+(this._x1=c)+","+(this._y1=u):l>w&&(this._+="A"+e+","+e+",0,"+ +(l>=O)+","+h+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const k=P;function S(t){return function(){return t}}const E=Math.abs,R=Math.atan2,A=Math.cos,C=Math.max,N=Math.min,L=Math.sin,D=Math.sqrt,z=1e-12,I=Math.PI,q=I/2,W=2*I;function X(t){return t>1?0:t<-1?I:Math.acos(t)}function Y(t){return t>=1?q:t<=-1?-q:Math.asin(t)}function B(t){return t.innerRadius}function F(t){return t.outerRadius}function $(t){return t.startAngle}function U(t){return t.endAngle}function Z(t){return t&&t.padAngle}function V(t,n,e,r,i,o,a,s){var c=e-t,u=r-n,h=a-i,l=s-o,f=l*c-h*u;if(!(f*f<z))return[t+(f=(h*(n-o)-l*(t-i))/f)*c,n+f*u]}function G(t,n,e,r,i,o,a){var s=t-e,c=n-r,u=(a?o:-o)/D(s*s+c*c),h=u*c,l=-u*s,f=t+h,_=n+l,p=e+h,y=r+l,x=(f+p)/2,v=(_+y)/2,d=p-f,b=y-_,g=d*d+b*b,m=i-o,O=f*y-p*_,T=(b<0?-1:1)*D(C(0,m*m*g-O*O)),w=(O*b-d*T)/g,j=(-O*d-b*T)/g,M=(O*b+d*T)/g,P=(-O*d+b*T)/g,k=w-x,S=j-v,E=M-x,R=P-v;return k*k+S*S>E*E+R*R&&(w=M,j=P),{cx:w,cy:j,x01:-h,y01:-l,x11:w*(i/m-1),y11:j*(i/m-1)}}function H(){var t=B,n=F,e=S(0),r=null,i=$,o=U,a=Z,s=null;function c(){var c,u,h=+t.apply(this,arguments),l=+n.apply(this,arguments),f=i.apply(this,arguments)-q,_=o.apply(this,arguments)-q,p=E(_-f),y=_>f;if(s||(s=c=k()),l<h&&(u=l,l=h,h=u),l>z)if(p>W-z)s.moveTo(l*A(f),l*L(f)),s.arc(0,0,l,f,_,!y),h>z&&(s.moveTo(h*A(_),h*L(_)),s.arc(0,0,h,_,f,y));else{var x,v,d=f,b=_,g=f,m=_,O=p,T=p,w=a.apply(this,arguments)/2,j=w>z&&(r?+r.apply(this,arguments):D(h*h+l*l)),M=N(E(l-h)/2,+e.apply(this,arguments)),P=M,S=M;if(j>z){var C=Y(j/h*L(w)),B=Y(j/l*L(w));(O-=2*C)>z?(g+=C*=y?1:-1,m-=C):(O=0,g=m=(f+_)/2),(T-=2*B)>z?(d+=B*=y?1:-1,b-=B):(T=0,d=b=(f+_)/2)}var F=l*A(d),$=l*L(d),U=h*A(m),Z=h*L(m);if(M>z){var H,K=l*A(b),Q=l*L(b),J=h*A(g),tt=h*L(g);if(p<I&&(H=V(F,$,J,tt,K,Q,U,Z))){var nt=F-H[0],et=$-H[1],rt=K-H[0],it=Q-H[1],ot=1/L(X((nt*rt+et*it)/(D(nt*nt+et*et)*D(rt*rt+it*it)))/2),at=D(H[0]*H[0]+H[1]*H[1]);P=N(M,(h-at)/(ot-1)),S=N(M,(l-at)/(ot+1))}}T>z?S>z?(x=G(J,tt,F,$,l,S,y),v=G(K,Q,U,Z,l,S,y),s.moveTo(x.cx+x.x01,x.cy+x.y01),S<M?s.arc(x.cx,x.cy,S,R(x.y01,x.x01),R(v.y01,v.x01),!y):(s.arc(x.cx,x.cy,S,R(x.y01,x.x01),R(x.y11,x.x11),!y),s.arc(0,0,l,R(x.cy+x.y11,x.cx+x.x11),R(v.cy+v.y11,v.cx+v.x11),!y),s.arc(v.cx,v.cy,S,R(v.y11,v.x11),R(v.y01,v.x01),!y))):(s.moveTo(F,$),s.arc(0,0,l,d,b,!y)):s.moveTo(F,$),h>z&&O>z?P>z?(x=G(U,Z,K,Q,h,-P,y),v=G(F,$,J,tt,h,-P,y),s.lineTo(x.cx+x.x01,x.cy+x.y01),P<M?s.arc(x.cx,x.cy,P,R(x.y01,x.x01),R(v.y01,v.x01),!y):(s.arc(x.cx,x.cy,P,R(x.y01,x.x01),R(x.y11,x.x11),!y),s.arc(0,0,h,R(x.cy+x.y11,x.cx+x.x11),R(v.cy+v.y11,v.cx+v.x11),y),s.arc(v.cx,v.cy,P,R(v.y11,v.x11),R(v.y01,v.x01),!y))):s.arc(0,0,h,m,g,y):s.lineTo(U,Z)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-I/2;return[A(r)*e,L(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:S(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:S(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:S(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:S(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:S(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}var K=function(t,n){return{x:t,y:n,distance:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add:function(t){return K(this.x+t.x,this.y+t.y)},subtract:function(t){return K(this.x-t.x,this.y-t.y)},scalarMult:function(t){return K(this.x*t,this.y*t)},scalarDivide:function(t){if(0===t)throw new Error("Division by 0 error");return K(this.x/t,this.y/t)},equals:function(t){return this.x===t.x&&this.y===t.y}}},Q=function(t,n){return{center:t,radius:n,hasIntersection:function(t){var n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);return!(o>r+i||o<Math.abs(r-i))},equals:function(t){var n=this.center,e=t.center;return this.radius===t.radius&&n.equals(e)},intersection:function(t){var n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);if(!this.hasIntersection(t)||this.equals(t))return[];var a=(Math.pow(r,2)-Math.pow(i,2)+Math.pow(o,2))/(2*o),s=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),c=n.add(e.subtract(n).scalarMult(a).scalarDivide(o)),u=n.x,h=n.y,l=e.x,f=e.y,_=c.x,p=c.y,y=[K(_-s*(f-h)/o,p+s*(l-u)/o),K(_+s*(f-h)/o,p-s*(l-u)/o)];return y.sort((function(t,n){return t.x-n.x})),y},solveX:function(t){var n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-n,this.center.x+n]},solveY:function(t){var n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-n,this.center.y+n]}}};function J(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function tt(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?J(Object(e),!0).forEach((function(n){nt(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):J(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function nt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function et(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return rt(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?rt(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var it=function(t,n){var e=t.x,r=t.x0,i=t.y,o=t.y0,a=t.horizontal,s=t.alignment||"middle",c="middle"===s?n/2:n,u=a?-1:1;return a?{x0:r,x1:e,y0:"start"===s?i:i-u*c,y1:"end"===s?i:i+u*c}:{x0:"start"===s?e:e-u*c,x1:"end"===s?e:e+u*c,y0:o,y1:i}},ot=function(t,n){var e=t.data,r=t.scale,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},at=function(t){return-1*t+Math.PI/2},st=function(t,n,e){var r="".concat(n.topLeft," ").concat(n.topLeft," ").concat(e),i="".concat(n.topRight," ").concat(n.topRight," ").concat(e),o="".concat(n.bottomLeft," ").concat(n.bottomLeft," ").concat(e),a="".concat(n.bottomRight," ").concat(n.bottomRight," ").concat(e),s=["M","A ".concat(o,","),"L","A ".concat(r,","),"L","A ".concat(i,","),"L","A ".concat(a,",")].reduce((function(n,e,r){return n+"".concat(e," ").concat(t[r].x,", ").concat(t[r].y," \n")}),"");return"".concat(s," z")},ct=function(t,n,e){return t.getPath?function(t,n){return(0,t.getPath)(tt(tt({},t),it(t,n)))}(t,n):t.horizontal?function(t,n,e){var r=it(t,n),i=r.x0<r.x1?1:-1,o={topRight:i>0?e.topLeft:e.bottomLeft,bottomRight:i>0?e.topRight:e.bottomRight,bottomLeft:i>0?e.bottomRight:e.topRight,topLeft:i>0?e.bottomLeft:e.topLeft},a=function(t,n,e){var r=t.y0,i=t.y1,o=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,s=function(t){var s="top"===t,c=s?-1:1,u=s?i:r,h={x:o,y:u-c*e["".concat(t,"Left")]},l={x:o+e["".concat(t,"Left")],y:u},f={x:a-e["".concat(t,"Right")],y:u},_={x:a,y:u-c*e["".concat(t,"Right")]};if(l.x>f.x){var p=K(o+e["".concat(t,"Left")],u-c*e["".concat(t,"Left")]),y=Q(p,e["".concat(t,"Left")]),x=K(a-e["".concat(t,"Right")],u-c*e["".concat(t,"Right")]),v=Q(x,e["".concat(t,"Right")]),d=y.intersection(v);if(d.length>0){var b=d[n>0?1:0];l={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(e["".concat(t,"Right")]>e["".concat(t,"Left")]){var g=v.solveY(o)[s?0:1];h={x:o,y:g},l={x:o,y:g},f={x:o,y:g}}else{var m=y.solveY(a)[s?0:1];_={x:a,y:m},f={x:a,y:m},l={x:a,y:m}}}return[h,l,f,_]},c=s("top"),u=s("bottom");return[u[1],u[0]].concat(et(c),[u[3],u[2]])}(r,i,o);return st(a,o,"0 0 1")}(t,n,e):function(t,n,e){var r=it(t,n),i=r.y0>r.y1?1:-1,o=i>0?"0 0 1":"0 0 0",a=function(t,n,e){var r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=function(t){var s="Left"===t,c=s?1:-1,u=s?r:i,h={x:u+c*e["bottom".concat(t)],y:o},l={x:u,y:o-n*e["bottom".concat(t)]},f={x:u,y:a+n*e["top".concat(t)]},_={x:u+c*e["top".concat(t)],y:a};if(1===n?o-e["bottom".concat(t)]<a+e["top".concat(t)]:o+e["bottom".concat(t)]>a-e["top".concat(t)]){var p=K(u+c*e["top".concat(t)],a+n*e["top".concat(t)]),y=Q(p,e["top".concat(t)]),x=K(u+c*e["bottom".concat(t)],o-n*e["bottom".concat(t)]),v=Q(x,e["bottom".concat(t)]),d=y.intersection(v);if(d.length>0){var b=d[s?0:1];l={x:b.x,y:b.y},f={x:b.x,y:b.y}}else if(e["top".concat(t)]>e["bottom".concat(t)]){var g=y.solveX(o)[s?0:1];h={x:g,y:o},l={x:g,y:o},f={x:g,y:o}}else{var m=v.solveX(a)[s?0:1];l={x:m,y:a},f={x:m,y:a},_={x:m,y:a}}}var O=[h,l,f,_];return s?O:O.reverse()};return s("Left").concat(s("Right"))}(r,i,e);return st(a,e,o)}(t,n,e)},ut=function(t,n){return function(t,n){var e,r,i=t.datum,o=t.scale,a=t.index,s=t.alignment,c=t.style,u=o.y(i._y0||0),h=o.y(void 0!==i._y1?i._y1:i._y),l=o.x(void 0!==i._x1?i._x1:i._x);if(c.width){var f=function(t,n){var e=t.scale,r=e.y.range(),i=Math.max.apply(Math,et(r)),o=Math.abs(e.x.range()[1]-e.x.range()[0]);return n/(2*Math.PI*i)*o}(t,c.width),_="middle"===s?f/2:f;e="start"===s?l:l-_,r="end"===s?l:l+_}else e=function(t,n){var e=t.data,r=t.scale,i=t.alignment,o=ot(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=0===n?ot(t,e.length-1)-2*Math.PI:ot(t,n-1);return 0===n&&a<2*Math.PI?r.x.range()[0]:"start"===i||"end"===i?"start"===i?s:o:(o+s)/2}(t,a),r=function(t,n){var e=t.data,r=t.scale,i=t.alignment,o=ot(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=r.x.range()[1]===2*Math.PI?ot(t,0)+2*Math.PI:r.x.range()[1],c=n===e.length-1?ot(t,0)+2*Math.PI:ot(t,n+1);return n===e.length-1&&a<2*Math.PI?s:"start"===i||"end"===i?"start"===i?o:c:(o+c)/2}(t,a);var p=function(t){return H().innerRadius(u).outerRadius(h).startAngle(at(e)).endAngle(at(r)).cornerRadius(n[t])()},y=function(t){var n=p("".concat(t,"Right")),e=n.match(/[A-Z]/g),r=n.split(/[A-Z]/).slice(1),i=e.indexOf("L"),o=p("".concat(t,"Left")),a=o.match(/[A-Z]/g),s=o.split(/[A-Z]/).slice(1),c=a.indexOf("L");return{rightMoves:e,rightCoords:r,rightMiddle:i,leftMoves:a,leftCoords:s,leftMiddle:c}},x=function(){var t,i,o=n.topRight,a=n.topLeft,s=h*Math.abs(r-e),c=y("top"),u=c.rightMoves,l=c.rightCoords,f=c.rightMiddle,_=c.leftMoves,p=c.leftCoords,x=c.leftMiddle;if(o===a||s<2*o+2*a)t=o>a?u:_,i=o>a?l:p;else{var v,d=function(t){return t<3},b=a>o&&d(f)?1:2;if(o>a){var g=d(f)?x:x-2;v=d(x)?x-1:g}else{var m=d(x)?1:2;v=d(f)?m:x-2}t=[].concat(et(u.slice(0,b)),et(_.slice(v))),i=[].concat(et(l.slice(0,b)),et(p.slice(v)))}var O=t.indexOf("L"),T=t.slice(0,O),w=i.slice(0,O);return T.map((function(t,n){return{command:t,coords:w[n].split(",")}}))}(),v=function(){var t,i,o=n.bottomRight,a=n.bottomLeft,s=u*Math.abs(r-e),c=y("bottom"),h=c.rightMoves,l=c.rightCoords,f=c.rightMiddle,_=c.leftMoves,p=c.leftCoords,x=c.leftMiddle;if(o===a||s<2*o+2*a)t=o>a?h:_,i=o>a?l:p;else{var v=function(t,n){return t.length-n<4},d=(o>a?v(h,f):v(_,x))?-1:-3;t=[].concat(et(_.slice(0,x+2)),et(h.slice(d))),i=[].concat(et(p.slice(0,x+2)),et(l.slice(d)))}var b=t.indexOf("L"),g=t.slice(b,-1),m=i.slice(b,-1);return g.map((function(t,n){return{command:t,coords:m[n].split(",")}}))}(),d=[].concat(et(x),et(v)).reduce((function(t,n){return t+"".concat(n.command," ").concat(n.coords.join())}),"");return"".concat(d," z")}(t,n)},ht=r(216),lt=r.n(ht),ft=r(2654),_t=r.n(ft),pt=r(6786),yt=r.n(pt),xt=function(t){var n=function(n,e,r,i){var o=e[r];if(null==o)return n?new Error("Required `".concat(r,"` was not specified in `").concat(i,"`.")):null;for(var a=arguments.length,s=new Array(a>4?a-4:0),c=4;c<a;c++)s[c-4]=arguments[c];return t.apply(void 0,[e,r,i].concat(s))},e=n.bind(null,!1);return e.isRequired=n.bind(null,!0),e},vt=function(){return null},dt=function(){},bt=function(t){return void 0===t?dt:null===t?vt:t.constructor},gt=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};function mt(t){return xt((function(n,e,r){for(var i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return t.reduce((function(t,i){return t||i.apply(void 0,[n,e,r].concat(o))}),void 0)}))}var Ot=xt((function(t,n,e){var r=t[n];if("number"!=typeof r||r<0)return new Error("`".concat(n,"` in `").concat(e,"` must be a non-negative number."))})),Tt=xt((function(t,n,e){var r=t[n];if("number"!=typeof r||r%1!=0)return new Error("`".concat(n,"` in `").concat(e,"` must be an integer."))})),wt=(xt((function(t,n,e){var r=t[n];if("number"!=typeof r||r<=0)return new Error("`".concat(n,"` in `").concat(e,"` must be a number greater than zero."))})),xt((function(t,n,e){var r=t[n];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`".concat(n,"` in `").concat(e,"` must be an array of two unique numeric values."))}))),jt=xt((function(t,n,e){var r;if(r=t[n],!(x()(r)?x()(r.copy)&&x()(r.domain)&&x()(r.range):"string"==typeof r&&-1!==["linear","time","log","sqrt"].indexOf(r)))return new Error("`".concat(n,"` in `").concat(e,"` must be a d3 scale."))})),Mt=(xt((function(t,n,e){var r=t[n];if(!Array.isArray(r))return new Error("`".concat(n,"` in `").concat(e,"` must be an array."));if(!(r.length<2)){var i=bt(r[0]),o=yt()(r,(function(t){return i!==bt(t)}));if(o){var a=gt(r[0]),s=gt(o);return new Error("Expected `".concat(n,"` in `").concat(e,"` to be a ")+"homogeneous array, but found types `".concat(a,"` and ")+"`".concat(s,"`."))}}})),xt((function(t,n){if(t[n]&&Array.isArray(t[n])&&t[n].length!==t.data.length)return new Error("Length of data and ".concat(n," arrays must match."))})),xt((function(t,n,e){if(t[n]&&!_t()(t[n]))return new Error("`".concat(n,"` in `").concat(e,"` must be a regular expression."))})),lt().oneOfType([lt().arrayOf(lt().string),lt().shape({x:lt().arrayOf(lt().string),y:lt().arrayOf(lt().string)})]),lt().oneOfType([lt().array,lt().object]),lt().element,lt().bool,lt().element,lt().oneOfType([lt().func,lt().array]),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string,lt().arrayOf(lt().string)]),lt().oneOf(["ascending","descending"]),lt().shape({parent:lt().object,data:lt().object,labels:lt().object}),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string,lt().arrayOf(lt().string)]),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string,lt().arrayOf(lt().string)]),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string,lt().arrayOf(lt().string)]),lt().oneOfType([lt().bool,lt().object]),lt().element,lt().oneOfType([wt,lt().shape({x:wt,y:wt})]),lt().oneOfType([lt().number,lt().instanceOf(Date),lt().shape({x:lt().oneOfType([lt().number,lt().instanceOf(Date)]),y:lt().oneOfType([lt().number,lt().instanceOf(Date)])})]),lt().oneOfType([lt().number,lt().instanceOf(Date),lt().shape({x:lt().oneOfType([lt().number,lt().instanceOf(Date)]),y:lt().oneOfType([lt().number,lt().instanceOf(Date)])})]),lt().oneOfType([lt().shape({x:lt().oneOfType([lt().number,lt().arrayOf(lt().number)]),y:lt().oneOfType([lt().number,lt().arrayOf(lt().number)])}),lt().number,lt().arrayOf(lt().number)]),lt().oneOfType([lt().func,mt([Tt,Ot]),lt().string]),lt().arrayOf(lt().shape({target:lt().oneOf(["data","labels","parent"]),eventKey:lt().oneOfType([lt().array,mt([Tt,Ot]),lt().string]),eventHandlers:lt().object})),lt().arrayOf(lt().shape({callback:lt().function,childName:lt().oneOfType([lt().string,lt().array]),eventKey:lt().oneOfType([lt().array,mt([Tt,Ot]),lt().string]),mutation:lt().function,target:lt().oneOfType([lt().string,lt().array])})),lt().element,lt().string,lt().shape({x:lt().number,y:lt().number}),lt().oneOfType([lt().number,lt().shape({top:lt().number,bottom:lt().number,left:lt().number,right:lt().number})]),lt().bool,lt().oneOfType([wt,lt().shape({x:wt,y:wt})]),lt().oneOfType([jt,lt().shape({x:jt,y:jt})]),lt().shape({events:lt().array,getEventState:lt().func}),lt().oneOfType([lt().bool,lt().shape({x:lt().oneOfType([lt().bool]),y:lt().oneOfType([lt().bool])})]),lt().bool,lt().object,{active:lt().bool,ariaLabel:lt().oneOfType([lt().string,lt().func]),className:lt().string,clipPath:lt().string,data:lt().oneOfType([lt().array,lt().object]),desc:lt().oneOfType([lt().string,lt().func]),disableInlineStyles:lt().bool,events:lt().object,id:lt().oneOfType([lt().number,lt().string,lt().func]),index:lt().oneOfType([lt().number,lt().string]),origin:lt().shape({x:lt().number,y:lt().number}),polar:lt().bool,role:lt().string,scale:lt().oneOfType([jt,lt().shape({x:jt,y:jt})]),shapeRendering:lt().string,style:lt().object,tabIndex:lt().oneOfType([lt().number,lt().func]),transform:lt().string}),Pt=["desc"];const kt=function(t){var n=t.desc,e=function(t,n){if(null==t)return{};var e,r,i=function(t,n){if(null==t)return{};var e,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e=o[r],n.indexOf(e)>=0||(i[e]=t[e]);return i}(t,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)e=o[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}(t,Pt);return n?c().createElement("path",e,c().createElement("desc",null,n)):c().createElement("path",e)};function St(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Et(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?St(Object(e),!0).forEach((function(n){Rt(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):St(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function Rt(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var At=function(t){t=function(t){var n=m(t.style,t),e=b(t.barWidth,a()({},t,{style:n})),r=g(t.cornerRadius,a()({},t,{style:n,barWidth:e})),i=v(t.ariaLabel,t),o=v(t.desc,t),s=v(t.id,t),c=v(t.tabIndex,t);return a()({},t,{ariaLabel:i,style:n,barWidth:e,cornerRadius:r,desc:o,id:s,tabIndex:c})}(t);var n=t,e=n.polar,r=n.origin,i=n.style,o=n.barWidth,s=n.cornerRadius,u=e?ut(t,s):ct(t,o,s),h=e&&r?"translate(".concat(r.x,", ").concat(r.y,")"):void 0;return c().cloneElement(t.pathComponent,Et(Et({},t.events),{},{"aria-label":t.ariaLabel,style:i,d:u,className:t.className,clipPath:t.clipPath,desc:t.desc,index:t.index,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform||h,tabIndex:t.tabIndex}))};At.propTypes=Et(Et({},Mt),{},{alignment:lt().oneOf(["start","middle","end"]),barRatio:lt().number,barWidth:lt().oneOfType([lt().number,lt().func]),cornerRadius:lt().oneOfType([lt().number,lt().func,lt().shape({top:lt().oneOfType([lt().number,lt().func]),topLeft:lt().oneOfType([lt().number,lt().func]),topRight:lt().oneOfType([lt().number,lt().func]),bottom:lt().oneOfType([lt().number,lt().func]),bottomLeft:lt().oneOfType([lt().number,lt().func]),bottomRight:lt().oneOfType([lt().number,lt().func])})]),datum:lt().object,getPath:lt().func,horizontal:lt().bool,pathComponent:lt().element,width:lt().number,x:lt().number,y:lt().number,y0:lt().number}),At.defaultProps={defaultBarWidth:8,pathComponent:c().createElement(kt,null),role:"presentation",shapeRendering:"auto"};const Ct=At;var Nt=c().createContext(),Lt=function(){var t=c().useContext(Nt);if(!t)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return t},Dt=function(t){var n,e,r=Lt().canvasRef,i=function(t){var n=m(t.style,t),e=b(t.barWidth,a()({},t,{style:n})),r=g(t.cornerRadius,a()({},t,{style:n,barWidth:e}));return a()({},t,{style:n,barWidth:e,cornerRadius:r})}(t),o=i.polar,s=i.style,u=i.barWidth,h=i.cornerRadius,l=i.origin,f=c().useMemo((function(){var t=o?ut(i,h):ct(i,u,h);return new Path2D(t)}),[o,u,h,i]),_=(n=f,e=c().useRef(),c().useEffect((function(){e.current=n})),e.current),p=c().useCallback((function(t,n){t.fillStyle=s.fill,t.strokeStyle=s.stroke,t.globalAlpha=s.fillOpacity,t.lineWidth=s.strokeWidth,o&&t.translate(l.x,l.y),t.fill(n),t.setTransform(1,0,0,1,0,0)}),[s,l,o]),y=c().useCallback((function(t){_&&(t.save(),t.lineWidth=s.strokeWidth+2,t.globalCompositeOperation="destination-out",p(t,_),t.stroke(_),t.restore())}),[p,_,s]);return c().useEffect((function(){var t=r.current.getContext("2d");y(t),p(t,f)}),[r,p,o,u,h,i,f,y]),null};Dt.propTypes=e()(Ct.propTypes,"pathComponent");const zt=Dt;var It=function(t){var n=c().useRef(),e=t.children,r=t.width,i=t.height,o=t.clipWidth,a=t.padding,s=c().useCallback((function(t){return t.clearRect(0,0,r,i)}),[r,i]),u=c().useCallback((function(t){var n=r-a.right-a.left;t.clearRect(r-a.right,0,-1*(n-o),i)}),[r,i,a,o]);return c().createElement(Nt.Provider,{value:{canvasRef:n,clear:s,clip:u}},c().createElement("foreignObject",{width:r,height:i,x:0,y:0},c().createElement("canvas",{width:r,height:i,ref:n})),e)};It.propTypes={"aria-label":lt().string,children:lt().oneOfType([lt().arrayOf(lt().node),lt().node]),className:lt().string,clipWidth:Ot,height:lt().number,padding:lt().oneOfType([lt().number,lt().shape({top:lt().number,bottom:lt().number,left:lt().number,right:lt().number})]),width:lt().number},It.role="container",It.displayName="CanvasGroup";const qt=It;var Wt=Array.prototype.slice;function Xt(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Yt(t){this._context=t}function Bt(t){return new Yt(t)}function Ft(t){return t[0]}function $t(t){return t[1]}function Ut(t,n){var e=S(!0),r=null,i=Bt,o=null;function a(a){var s,c,u,h=(a=Xt(a)).length,l=!1;for(null==r&&(o=i(u=k())),s=0;s<=h;++s)!(s<h&&e(c=a[s],s,a))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(c,s,a),+n(c,s,a));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?Ft:S(t),n="function"==typeof n?n:void 0===n?$t:S(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:S(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function Zt(t,n,e){var r=null,i=S(!0),o=null,a=Bt,s=null;function c(c){var u,h,l,f,_,p=(c=Xt(c)).length,y=!1,x=new Array(p),v=new Array(p);for(null==o&&(s=a(_=k())),u=0;u<=p;++u){if(!(u<p&&i(f=c[u],u,c))===y)if(y=!y)h=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),l=u-1;l>=h;--l)s.point(x[l],v[l]);s.lineEnd(),s.areaEnd()}y&&(x[u]=+t(f,u,c),v[u]=+n(f,u,c),s.point(r?+r(f,u,c):x[u],e?+e(f,u,c):v[u]))}if(_)return s=null,_+""||null}function u(){return Ut().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Ft:S(+t),n="function"==typeof n?n:S(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?$t:S(+e),c.x=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),r=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:S(+t),c):r},c.y=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),e=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),c):n},c.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:S(+t),c):e},c.lineX0=c.lineY0=function(){return u().x(t).y(n)},c.lineY1=function(){return u().x(t).y(e)},c.lineX1=function(){return u().x(r).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:S(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c}function Vt(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Gt(t){return t}function Ht(){var t=Gt,n=Vt,e=null,r=S(0),i=S(W),o=S(0);function a(a){var s,c,u,h,l,f=(a=Xt(a)).length,_=0,p=new Array(f),y=new Array(f),x=+r.apply(this,arguments),v=Math.min(W,Math.max(-W,i.apply(this,arguments)-x)),d=Math.min(Math.abs(v)/f,o.apply(this,arguments)),b=d*(v<0?-1:1);for(s=0;s<f;++s)(l=y[p[s]=s]=+t(a[s],s,a))>0&&(_+=l);for(null!=n?p.sort((function(t,e){return n(y[t],y[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),s=0,u=_?(v-f*b)/_:0;s<f;++s,x=h)c=p[s],h=x+((l=y[c])>0?l*u:0)+b,y[c]={data:a[c],index:s,value:l,startAngle:x,endAngle:h,padAngle:d};return y}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:S(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:S(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:S(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:S(+t),a):o},a}Yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Kt=Jt(Bt);function Qt(t){this._curve=t}function Jt(t){function n(n){return new Qt(t(n))}return n._curve=t,n}function tn(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Jt(t)):n()._curve},t}function nn(){return tn(Ut().curve(Kt))}function en(){var t=Zt().curve(Kt),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return tn(e())},delete t.lineX0,t.lineEndAngle=function(){return tn(r())},delete t.lineX1,t.lineInnerRadius=function(){return tn(i())},delete t.lineY0,t.lineOuterRadius=function(){return tn(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Jt(t)):n()._curve},t}function rn(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}Qt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};class on{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}class an{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,0==this._point++)this._x0=t,this._y0=n;else{const e=rn(this._x0,this._y0),r=rn(this._x0,this._y0=(this._y0+n)/2),i=rn(t,this._y0),o=rn(t,n);this._context.moveTo(...e),this._context.bezierCurveTo(...r,...i,...o)}}}function sn(t){return new on(t,!0)}function cn(t){return new on(t,!1)}function un(t){return new an(t)}function hn(t){return t.source}function ln(t){return t.target}function fn(t){let n=hn,e=ln,r=Ft,i=$t,o=null,a=null;function s(){let s;const c=Wt.call(arguments),u=n.apply(this,c),h=e.apply(this,c);if(null==o&&(a=t(s=k())),a.lineStart(),c[0]=u,a.point(+r.apply(this,c),+i.apply(this,c)),c[0]=h,a.point(+r.apply(this,c),+i.apply(this,c)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.x=function(t){return arguments.length?(r="function"==typeof t?t:S(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:S(+t),s):i},s.context=function(n){return arguments.length?(null==n?o=a=null:a=t(o=n),s):o},s}function _n(){return fn(sn)}function pn(){return fn(cn)}function yn(){const t=fn(un);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const xn=D(3),vn={draw(t,n){const e=.59436*D(n+N(n/28,.75)),r=e/2,i=r*xn;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},dn={draw(t,n){const e=D(n/I);t.moveTo(e,0),t.arc(0,0,e,0,W)}},bn={draw(t,n){const e=D(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},gn=D(1/3),mn=2*gn,On={draw(t,n){const e=D(n/mn),r=e*gn;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},Tn={draw(t,n){const e=.62625*D(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},wn={draw(t,n){const e=.87559*D(n-N(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},jn={draw(t,n){const e=D(n),r=-e/2;t.rect(r,r,e,e)}},Mn={draw(t,n){const e=.4431*D(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}},Pn=L(I/10)/L(7*I/10),kn=L(W/10)*Pn,Sn=-A(W/10)*Pn,En={draw(t,n){const e=D(.8908130915292852*n),r=kn*e,i=Sn*e;t.moveTo(0,-e),t.lineTo(r,i);for(let n=1;n<5;++n){const o=W*n/5,a=A(o),s=L(o);t.lineTo(s*e,-a*e),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}},Rn=D(3),An={draw(t,n){const e=-D(n/(3*Rn));t.moveTo(0,2*e),t.lineTo(-Rn*e,-e),t.lineTo(Rn*e,-e),t.closePath()}},Cn=D(3),Nn={draw(t,n){const e=.6824*D(n),r=e/2,i=e*Cn/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},Ln=-.5,Dn=D(3)/2,zn=1/D(12),In=3*(zn/2+1),qn={draw(t,n){const e=D(n/In),r=e/2,i=e*zn,o=r,a=e*zn+e,s=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,c),t.lineTo(Ln*r-Dn*i,Dn*r+Ln*i),t.lineTo(Ln*o-Dn*a,Dn*o+Ln*a),t.lineTo(Ln*s-Dn*c,Dn*s+Ln*c),t.lineTo(Ln*r+Dn*i,Ln*i-Dn*r),t.lineTo(Ln*o+Dn*a,Ln*a-Dn*o),t.lineTo(Ln*s+Dn*c,Ln*c-Dn*s),t.closePath()}},Wn={draw(t,n){const e=.6189*D(n-N(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}},Xn=[dn,bn,On,jn,En,An,qn],Yn=[dn,wn,Wn,Nn,vn,Mn,Tn];function Bn(t,n){let e=null;function r(){let r;if(e||(e=r=k()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:S(t||dn),n="function"==typeof n?n:S(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:S(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:S(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function Fn(){}function $n(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Un(t){this._context=t}function Zn(t){return new Un(t)}function Vn(t){this._context=t}function Gn(t){return new Vn(t)}function Hn(t){this._context=t}function Kn(t){return new Hn(t)}function Qn(t,n){this._basis=new Un(t),this._beta=n}Un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$n(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$n(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Vn.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:$n(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Hn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:$n(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Qn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,s=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const Jn=function t(n){function e(t){return 1===n?new Un(t):new Qn(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function te(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function ne(t,n){this._context=t,this._k=(1-n)/6}ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:te(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:te(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const ee=function t(n){function e(t){return new ne(t,n)}return e.tension=function(n){return t(+n)},e}(0);function re(t,n){this._context=t,this._k=(1-n)/6}re.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:te(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const ie=function t(n){function e(t){return new re(t,n)}return e.tension=function(n){return t(+n)},e}(0);function oe(t,n){this._context=t,this._k=(1-n)/6}oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:te(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const ae=function t(n){function e(t){return new oe(t,n)}return e.tension=function(n){return t(+n)},e}(0);function se(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>z){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>z){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-n*t._l12_2a)/h,a=(a*u+t._y1*t._l23_2a-e*t._l12_2a)/h}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function ce(t,n){this._context=t,this._alpha=n}ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:se(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const ue=function t(n){function e(t){return n?new ce(t,n):new ne(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function he(t,n){this._context=t,this._alpha=n}he.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:se(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const le=function t(n){function e(t){return n?new he(t,n):new re(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function fe(t,n){this._context=t,this._alpha=n}fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:se(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const _e=function t(n){function e(t){return n?new fe(t,n):new oe(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function pe(t){this._context=t}function ye(t){return new pe(t)}function xe(t){return t<0?-1:1}function ve(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(xe(o)+xe(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function de(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function be(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*n,o-s,a-s*e,o,a)}function ge(t){this._context=t}function me(t){this._context=new Oe(t)}function Oe(t){this._context=t}function Te(t){return new ge(t)}function we(t){return new me(t)}function je(t){this._context=t}function Me(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function Pe(t){return new je(t)}function ke(t,n){this._context=t,this._t=n}function Se(t){return new ke(t,.5)}function Ee(t){return new ke(t,0)}function Re(t){return new ke(t,1)}function Ae(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],s=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<s;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function Ce(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function Ne(t,n){return t[n]}function Le(t){const n=[];return n.key=t,n}function De(){var t=S([]),n=Ce,e=Ae,r=Ne;function i(i){var o,a,s=Array.from(t.apply(this,arguments),Le),c=s.length,u=-1;for(const t of i)for(o=0,++u;o<c;++o)(s[o][u]=[0,+r(t,s[o].key,u,i)]).data=t;for(o=0,a=Xt(n(s));o<c;++o)s[a[o]].index=o;return e(s,a),s}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:S(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:S(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?Ce:"function"==typeof t?t:S(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?Ae:t,i):e},i}function ze(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}Ae(t,n)}}function Ie(t,n){if((s=t.length)>0)for(var e,r,i,o,a,s,c=0,u=t[n[0]].length;c<u;++c)for(o=a=0,e=0;e<s;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function qe(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<e;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}Ae(t,n)}}function We(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var s=0,c=0,u=0;s<i;++s){for(var h=t[n[s]],l=h[a][1]||0,f=(l-(h[a-1][1]||0))/2,_=0;_<s;++_){var p=t[n[_]];f+=(p[a][1]||0)-(p[a-1][1]||0)}c+=l,u+=f*l}e[a-1][1]+=e[a-1][0]=o,c&&(o-=u/c)}e[a-1][1]+=e[a-1][0]=o,Ae(t,n)}}function Xe(t){var n=t.map(Ye);return Ce(t).sort((function(t,e){return n[t]-n[e]}))}function Ye(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function Be(t){var n=t.map(Fe);return Ce(t).sort((function(t,e){return n[t]-n[e]}))}function Fe(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function $e(t){return Be(t).reverse()}function Ue(t){var n,e,r=t.length,i=t.map(Fe),o=Xe(t),a=0,s=0,c=[],u=[];for(n=0;n<r;++n)e=o[n],a<s?(a+=i[e],c.push(e)):(s+=i[e],u.push(e));return u.reverse().concat(c)}function Ze(t){return Ce(t).reverse()}pe.prototype={areaStart:Fn,areaEnd:Fn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:be(this,this._t0,de(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,be(this,de(this,e=ve(this,t,n)),e);break;default:be(this,this._t0,e=ve(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(me.prototype=Object.create(ge.prototype)).point=function(t,n){ge.prototype.point.call(this,n,t)},Oe.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},je.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Me(t),i=Me(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Ve=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},Ge=function(t){return function(n){return t.x(void 0!==n._x1?n._x1:n._x)}},He=function(t){return function(n){return t.y(void 0!==n._y1?n._y1:n._y)}},Ke=function(t){return"curve".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))},Qe=function(n){var e=n.polar,r=n.scale,i=n.horizontal,o=!e,a=void 0===n.openCurve?o:n.openCurve,s="function"==typeof n.interpolation&&n.interpolation,c="string"==typeof n.interpolation&&(a?Ke(n.interpolation):"".concat(Ke(n.interpolation),"Closed"));return e?nn().defined(Ve).curve(s||t[c]).angle(function(t){return function(n){return-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2}}(r)).radius(He(r)):Ut().defined(Ve).curve(s||t[c]).x(i?He(r):Ge(r)).y(i?Ge(r):He(r))};function Je(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function tr(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Je(Object(e),!0).forEach((function(n){nr(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Je(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function nr(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var er=function(t){var n=Lt(),e=n.canvasRef,r=n.clear,i=n.clip,o=t.style,a=t.data,s=o.stroke,u=o.strokeWidth,h=c().useCallback((function(n){var e=Qe(t);n.strokeStyle=s,n.lineWidth=u,e.context(n)(a),n.stroke()}),[a,t,s,u]);return c().useEffect((function(){var t=e.current.getContext("2d");r(t),h(t),i(t)}),[e,h,r,i]),null};er.propTypes=tr(tr({},Mt),{},{interpolation:lt().oneOfType([lt().string,lt().func]),openCurve:lt().bool,origin:lt().object,polar:lt().bool});const rr=er;var ir=r(9717),or=r.n(ir);const ar={circle:function(t,n,e){return"M ".concat(t,", ").concat(n,"\n m ").concat(-e,", 0\n a ").concat(e,", ").concat(e," 0 1,0 ").concat(2*e,",0\n a ").concat(e,", ").concat(e," 0 1,0 ").concat(2*-e,",0")},square:function(t,n,e){var r=.87*e,i=t-r,o=n+r,a=t+r-i;return"M ".concat(i,", ").concat(o,"\n h").concat(a,"\n v-").concat(a,"\n h-").concat(a,"\n z")},diamond:function(t,n,e){var r=.87*e,i=Math.sqrt(r*r*2);return"M ".concat(t,", ").concat(n+i,"\n l ").concat(i,", -").concat(i,"\n l -").concat(i,", -").concat(i,"\n l -").concat(i,", ").concat(i,"\n l ").concat(i,", ").concat(i,"\n z")},triangleDown:function(t,n,e){var r=t+e,i=n-e,o=n+e/2*Math.sqrt(3);return"M ".concat(t-e,", ").concat(i,"\n L ").concat(r,", ").concat(i,"\n L ").concat(t,", ").concat(o,"\n z")},triangleUp:function(t,n,e){var r=t+e,i=n-e/2*Math.sqrt(3),o=n+e;return"M ".concat(t-e,", ").concat(o,"\n L ").concat(r,", ").concat(o,"\n L ").concat(t,", ").concat(i,"\n z")},plus:function(t,n,e){var r=1.1*e,i=r/1.5;return"\n M ".concat(t-i/2,", ").concat(n+r,"\n v-").concat(i,"\n h-").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h-").concat(i,"\n v").concat(i,"\n z")},cross:function(t,n,e){var r=.8*e,i=r/1.5;return"\n M ".concat(t-i/2,", ").concat(n+r+i,"\n v-").concat(2*i,"\n h-").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v-").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h").concat(i,"\n v").concat(i,"\n h-").concat(i,"\n v").concat(2*i,"\n z")},minus:function(t,n,e){var r=1.1*e,i=r-.3*r,o=t-r,a=n+i/2,s=t+r-o;return"M ".concat(o,", ").concat(a,"\n h").concat(s,"\n v-").concat(i,"\n h-").concat(s,"\n z")},star:function(t,n,e){var r=1.35*e,i=Math.PI/5,o=or()(10).map((function(e){var o=e%2==0?r:r/2;return"".concat(o*Math.sin(i*(e+1))+t,",\n ").concat(o*Math.cos(i*(e+1))+n)}));return"M ".concat(o.join("L")," z")}};function sr(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function cr(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?sr(Object(e),!0).forEach((function(n){ur(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):sr(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function ur(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var hr=function(t){var n=Lt().canvasRef,e=function(t){var n=v(t.size,t),e=d(t.style,t),r=v(t.symbol,t);return a()({},t,{size:n,style:e,symbol:r})}(t),r=c().useCallback((function(t){var n=e.style,r=function(t){var n=t.x,e=t.y,r=t.size,i=t.symbol;if(t.getPath)return t.getPath(n,e,r);var o={circle:ar.circle,square:ar.square,diamond:ar.diamond,triangleDown:ar.triangleDown,triangleUp:ar.triangleUp,plus:ar.plus,minus:ar.minus,star:ar.star,cross:ar.cross};return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)}(e);t.fillStyle=n.fill;var i=new Path2D(r);t.fill(i)}),[e]);return c().useEffect((function(){var t=n.current.getContext("2d");r(t)}),[]),null};hr.propTypes=cr(cr({},Mt),{},{datum:lt().object,size:lt().oneOfType([lt().number,lt().func]),x:lt().number,y:lt().number});const lr=hr})(),i})()}));
|
|
2
2
|
//# sourceMappingURL=victory-canvas.min.js.map
|
package/es/canvas-curve.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
|
|
3
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
6
|
|
|
@@ -33,7 +35,7 @@ var CanvasCurve = function (props) {
|
|
|
33
35
|
return null;
|
|
34
36
|
};
|
|
35
37
|
|
|
36
|
-
CanvasCurve.propTypes = _objectSpread({}, CommonProps.primitiveProps, {
|
|
38
|
+
CanvasCurve.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
|
|
37
39
|
interpolation: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
38
40
|
openCurve: PropTypes.bool,
|
|
39
41
|
origin: PropTypes.object,
|
package/es/canvas-group.js
CHANGED
|
@@ -19,18 +19,18 @@ var CanvasGroup = function (props) {
|
|
|
19
19
|
var maxClipWidth = width - padding.right - padding.left;
|
|
20
20
|
ctx.clearRect(width - padding.right, 0, (maxClipWidth - clipWidth) * -1, height);
|
|
21
21
|
}, [width, height, padding, clipWidth]);
|
|
22
|
-
return React.createElement(CanvasContext.Provider, {
|
|
22
|
+
return /*#__PURE__*/React.createElement(CanvasContext.Provider, {
|
|
23
23
|
value: {
|
|
24
24
|
canvasRef: canvasRef,
|
|
25
25
|
clear: clear,
|
|
26
26
|
clip: clip
|
|
27
27
|
}
|
|
28
|
-
}, React.createElement("foreignObject", {
|
|
28
|
+
}, /*#__PURE__*/React.createElement("foreignObject", {
|
|
29
29
|
width: width,
|
|
30
30
|
height: height,
|
|
31
31
|
x: 0,
|
|
32
32
|
y: 0
|
|
33
|
-
}, React.createElement("canvas", {
|
|
33
|
+
}, /*#__PURE__*/React.createElement("canvas", {
|
|
34
34
|
width: width,
|
|
35
35
|
height: height,
|
|
36
36
|
ref: canvasRef
|
package/es/canvas-point.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _assign from "lodash/assign";
|
|
2
2
|
|
|
3
|
-
function
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
6
|
|
|
5
7
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
8
|
|
|
@@ -71,7 +73,7 @@ var CanvasPoint = function (initialProps) {
|
|
|
71
73
|
return null;
|
|
72
74
|
};
|
|
73
75
|
|
|
74
|
-
CanvasPoint.propTypes = _objectSpread({}, CommonProps.primitiveProps, {
|
|
76
|
+
CanvasPoint.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {}, {
|
|
75
77
|
datum: PropTypes.object,
|
|
76
78
|
size: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
77
79
|
x: PropTypes.number,
|
package/lib/canvas-bar.js
CHANGED
package/lib/canvas-curve.js
CHANGED
|
@@ -15,7 +15,9 @@ var _useCanvasContext2 = require("./hooks/use-canvas-context");
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
function
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
21
|
|
|
20
22
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
23
|
|
|
@@ -49,7 +51,7 @@ var CanvasCurve = function (props) {
|
|
|
49
51
|
return null;
|
|
50
52
|
};
|
|
51
53
|
|
|
52
|
-
CanvasCurve.propTypes = _objectSpread({}, _victoryCore.CommonProps.primitiveProps, {
|
|
54
|
+
CanvasCurve.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.primitiveProps), {}, {
|
|
53
55
|
interpolation: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
|
|
54
56
|
openCurve: _propTypes.default.bool,
|
|
55
57
|
origin: _propTypes.default.object,
|
package/lib/canvas-group.js
CHANGED
|
@@ -35,18 +35,18 @@ var CanvasGroup = function (props) {
|
|
|
35
35
|
ctx.clearRect(width - padding.right, 0, (maxClipWidth - clipWidth) * -1, height);
|
|
36
36
|
}, [width, height, padding, clipWidth]);
|
|
37
37
|
|
|
38
|
-
return _react.default.createElement(_useCanvasContext.CanvasContext.Provider, {
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_useCanvasContext.CanvasContext.Provider, {
|
|
39
39
|
value: {
|
|
40
40
|
canvasRef: canvasRef,
|
|
41
41
|
clear: clear,
|
|
42
42
|
clip: clip
|
|
43
43
|
}
|
|
44
|
-
}, _react.default.createElement("foreignObject", {
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement("foreignObject", {
|
|
45
45
|
width: width,
|
|
46
46
|
height: height,
|
|
47
47
|
x: 0,
|
|
48
48
|
y: 0
|
|
49
|
-
}, _react.default.createElement("canvas", {
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement("canvas", {
|
|
50
50
|
width: width,
|
|
51
51
|
height: height,
|
|
52
52
|
ref: canvasRef
|
package/lib/canvas-point.js
CHANGED
|
@@ -17,7 +17,9 @@ var _useCanvasContext2 = require("./hooks/use-canvas-context");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
23
|
|
|
22
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
25
|
|
|
@@ -89,7 +91,7 @@ var CanvasPoint = function (initialProps) {
|
|
|
89
91
|
return null;
|
|
90
92
|
};
|
|
91
93
|
|
|
92
|
-
CanvasPoint.propTypes = _objectSpread({}, _victoryCore.CommonProps.primitiveProps, {
|
|
94
|
+
CanvasPoint.propTypes = _objectSpread(_objectSpread({}, _victoryCore.CommonProps.primitiveProps), {}, {
|
|
93
95
|
datum: _propTypes.default.object,
|
|
94
96
|
size: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.func]),
|
|
95
97
|
x: _propTypes.default.number,
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
var CanvasContext = _react.default.createContext();
|
|
12
|
+
var CanvasContext = /*#__PURE__*/_react.default.createContext();
|
|
13
13
|
|
|
14
14
|
exports.CanvasContext = CanvasContext;
|
|
15
15
|
|
package/lib/index.js
CHANGED
|
@@ -9,16 +9,16 @@ Object.defineProperty(exports, "CanvasBar", {
|
|
|
9
9
|
return _canvasBar.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "CanvasCurve", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function () {
|
|
15
|
-
return
|
|
15
|
+
return _canvasCurve.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "CanvasGroup", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function () {
|
|
21
|
-
return
|
|
21
|
+
return _canvasGroup.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "CanvasPoint", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-canvas",
|
|
3
|
-
"version": "36.
|
|
3
|
+
"version": "36.4.0",
|
|
4
4
|
"description": "HTML5 Canvas Components for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash": "^4.17.19",
|
|
23
23
|
"prop-types": "^15.5.8",
|
|
24
|
-
"victory-core": "^36.
|
|
24
|
+
"victory-core": "^36.4.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^16.6.0 || ^17.0.0"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"version": "yarn run nps build-libs && nps build-dists"
|
|
31
31
|
},
|
|
32
32
|
"sideEffects": false,
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "2e05481eeb34f9801a90023a131a21aa7deff082"
|
|
34
34
|
}
|