victory-pie 11.2.0 → 11.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/victory-pie.js +25069 -20280
- package/dist/victory-pie.min.js +1 -9
- package/es/components/helper-methods.js +165 -0
- package/es/components/victory-pie.js +140 -0
- package/es/index.js +2 -0
- package/lib/components/helper-methods.js +187 -171
- package/lib/components/victory-pie.js +150 -161
- package/lib/index.js +12 -2
- package/package.json +6 -4
- package/src/components/helper-methods.js +6 -7
- package/src/components/victory-pie.js +1 -1
package/dist/victory-pie.min.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],e):"object"==typeof exports?exports.VictoryPie=e(require("react"),require("prop-types")):t.VictoryPie=e(t.React,t.PropTypes)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return t[r].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,a){r.apply(this,[t,e,a].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.VictoryPie=void 0;var a=n(1),i=r(a);e.VictoryPie=i.default},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(2),l=r(u),c="/Users/boygirl/formidable/v/victory-pie/src/components/victory-pie.js",s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(48),d=r(f),h=n(49),p=r(h),y=n(50),v=n(269),g=r(v),b={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"]},m=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],_=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),s(e,[{key:"shouldAnimate",value:function(){return Boolean(this.props.animate)}},{key:"render",value:function(){var t=this.constructor.role,e=y.Helpers.modifyProps(this.props,b,t);if(this.shouldAnimate())return this.animateComponent(e,m);var n=this.renderData(e);return e.standalone?this.renderContainer(e.containerComponent,n):n}}]),e}(d.default.Component);_.displayName="VictoryPie",_.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(t){return{y_:t._y,label:t.label}}}},_.propTypes={animate:p.default.object,colorScale:p.default.oneOfType([p.default.arrayOf(p.default.string),p.default.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:p.default.element,cornerRadius:y.PropTypes.nonNegative,data:p.default.array,dataComponent:p.default.element,endAngle:p.default.number,eventKey:p.default.oneOfType([p.default.func,y.PropTypes.allOfType([y.PropTypes.integer,y.PropTypes.nonNegative]),p.default.string]),events:p.default.arrayOf(p.default.shape({target:p.default.oneOf(["data","labels","parent"]),eventKey:p.default.oneOfType([p.default.func,y.PropTypes.allOfType([y.PropTypes.integer,y.PropTypes.nonNegative]),p.default.string]),eventHandlers:p.default.object})),groupComponent:p.default.element,height:y.PropTypes.nonNegative,innerRadius:y.PropTypes.nonNegative,labelComponent:p.default.element,labelRadius:p.default.oneOfType([y.PropTypes.nonNegative,p.default.func]),labels:p.default.oneOfType([p.default.func,p.default.array]),name:p.default.string,padAngle:y.PropTypes.nonNegative,padding:p.default.oneOfType([p.default.number,p.default.shape({top:p.default.number,bottom:p.default.number,left:p.default.number,right:p.default.number})]),sharedEvents:p.default.shape({events:p.default.array,getEventState:p.default.func}),sortKey:p.default.oneOfType([p.default.func,y.PropTypes.allOfType([y.PropTypes.integer,y.PropTypes.nonNegative]),p.default.string,p.default.arrayOf(p.default.string)]),standalone:p.default.bool,startAngle:p.default.number,style:p.default.shape({parent:p.default.object,data:p.default.object,labels:p.default.object}),theme:p.default.object,width:y.PropTypes.nonNegative,x:p.default.oneOfType([p.default.func,y.PropTypes.allOfType([y.PropTypes.integer,y.PropTypes.nonNegative]),p.default.string,p.default.arrayOf(p.default.string)]),y:p.default.oneOfType([p.default.func,y.PropTypes.allOfType([y.PropTypes.integer,y.PropTypes.nonNegative]),p.default.string,p.default.arrayOf(p.default.string)])},_.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:d.default.createElement(y.Slice,{__source:{fileName:c,lineNumber:135}}),labelComponent:d.default.createElement(y.VictoryLabel,{__source:{fileName:c,lineNumber:136}}),containerComponent:d.default.createElement(y.VictoryContainer,{__source:{fileName:c,lineNumber:137}}),groupComponent:d.default.createElement("g",{__source:{fileName:c,lineNumber:138}}),theme:y.VictoryTheme.grayscale},_.getBaseProps=(0,l.default)(g.default.getBaseProps.bind(g.default),b),_.getData=y.Data.getData.bind(y.Data),_.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"],e.default=(0,y.addEvents)(_)},function(t,e,n){var r=n(3),a=n(13),i=n(39),o=n(43),u=64,l=r(function(t,e){var n=o(e,i(l));return a(t,u,void 0,e,n)});l.placeholder={},t.exports=l},function(t,e,n){function r(t,e){return o(i(t,e,a),t+"")}var a=n(4),i=n(5),o=n(7);t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,u=i(r.length-e,0),l=Array(u);++o<u;)l[o]=r[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=r[o];return c[e]=n(l),a(t,this,c)}}var a=n(6),i=Math.max;t.exports=r},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){var r=n(8),a=n(12),i=a(r);t.exports=i},function(t,e,n){var r=n(9),a=n(10),i=n(4),o=a?function(t,e){return a(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=o},function(t,e){function n(t){return function(){return t}}t.exports=n},function(t,e,n){var r=n(11),a=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e){function n(t){var e=0,n=0;return function(){var o=i(),u=a-(o-n);if(n=o,u>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,a=16,i=Date.now;t.exports=n},function(t,e,n){function r(t,e,n,r,M,w,O,P){var k=e&v;if(!k&&"function"!=typeof t)throw new TypeError(p);var T=r?r.length:0;if(T||(e&=~(m|_),r=M=void 0),O=void 0===O?O:x(h(O),0),P=void 0===P?P:h(P),T-=M?M.length:0,e&_){var A=r,j=M;r=M=void 0}var E=k?void 0:c(t),S=[t,e,n,r,M,A,j,w,O,P];if(E&&s(S,E),t=S[0],e=S[1],n=S[2],r=S[3],M=S[4],P=S[9]=void 0===S[9]?k?0:t.length:x(S[9]-T,0),!P&&e&(g|b)&&(e&=~(g|b)),e&&e!=y)C=e==g||e==b?o(t,e,P):e!=m&&e!=(y|m)||M.length?u.apply(void 0,S):l(t,e,n,r);else var C=i(t,e,n);var N=E?a:f;return d(N(C,S),t,e)}var a=n(14),i=n(15),o=n(21),u=n(22),l=n(44),c=n(45),s=n(46),f=n(28),d=n(29),h=n(47),p="Expected a function",y=1,v=2,g=8,b=16,m=32,_=64,x=Math.max;t.exports=r},4,function(t,e,n){function r(t,e,n){function r(){var e=this&&this!==i&&this instanceof r?l:t;return e.apply(u?n:this,arguments)}var u=e&o,l=a(t);return r}var a=n(16),i=n(19),o=1;t.exports=r},function(t,e,n){function r(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=a(t.prototype),r=t.apply(n,e);return i(r)?r:n}}var a=n(17),i=n(18);t.exports=r},function(t,e,n){var r=n(18),a=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(a)return a(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var r=n(20),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();t.exports=i},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){function r(t,e,n){function r(){for(var i=arguments.length,d=Array(i),h=i,p=l(r);h--;)d[h]=arguments[h];var y=i<3&&d[0]!==p&&d[i-1]!==p?[]:c(d,p);if(i-=y.length,i<n)return u(t,e,o,r.placeholder,void 0,d,y,void 0,void 0,n-i);var v=this&&this!==s&&this instanceof r?f:t;return a(v,this,d)}var f=i(t);return r}var a=n(6),i=n(16),o=n(22),u=n(26),l=n(39),c=n(43),s=n(19);t.exports=r},function(t,e,n){function r(t,e,n,m,_,x,M,w,O,P){function k(){for(var h=arguments.length,p=Array(h),y=h;y--;)p[y]=arguments[y];if(E)var v=c(k),g=o(p,v);if(m&&(p=a(p,m,_,E)),x&&(p=i(p,x,M,E)),h-=g,E&&h<P){var b=f(p,v);return l(t,e,r,k.placeholder,n,p,b,w,O,P-h)}var N=A?n:this,D=j?N[t]:t;return h=p.length,w?p=s(p,w):S&&h>1&&p.reverse(),T&&O<h&&(p.length=O),this&&this!==d&&this instanceof k&&(D=C||u(D)),D.apply(N,p)}var T=e&g,A=e&h,j=e&p,E=e&(y|v),S=e&b,C=j?void 0:u(t);return k}var a=n(23),i=n(24),o=n(25),u=n(16),l=n(26),c=n(39),s=n(40),f=n(43),d=n(19),h=1,p=2,y=8,v=16,g=128,b=512;t.exports=r},function(t,e){function n(t,e,n,a){for(var i=-1,o=t.length,u=n.length,l=-1,c=e.length,s=r(o-u,0),f=Array(c+s),d=!a;++l<c;)f[l]=e[l];for(;++i<u;)(d||i<o)&&(f[n[i]]=t[i]);for(;s--;)f[l++]=t[i++];return f}var r=Math.max;t.exports=n},function(t,e){function n(t,e,n,a){for(var i=-1,o=t.length,u=-1,l=n.length,c=-1,s=e.length,f=r(o-l,0),d=Array(f+s),h=!a;++i<f;)d[i]=t[i];for(var p=i;++c<s;)d[p+c]=e[c];for(;++u<l;)(h||i<o)&&(d[p+n[u]]=t[i++]);return d}var r=Math.max;t.exports=n},function(t,e){function n(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}t.exports=n},function(t,e,n){function r(t,e,n,r,h,p,y,v,g,b){var m=e&s,_=m?y:void 0,x=m?void 0:y,M=m?p:void 0,w=m?void 0:p;e|=m?f:d,e&=~(m?d:f),e&c||(e&=~(u|l));var O=[t,e,h,M,_,w,x,v,g,b],P=n.apply(void 0,O);return a(t)&&i(P,O),P.placeholder=r,o(P,t,e)}var a=n(27),i=n(28),o=n(29),u=1,l=2,c=4,s=8,f=32,d=64;t.exports=r},function(t,e){function n(){return!1}t.exports=n},4,function(t,e,n){function r(t,e,n){var r=e+"";return o(t,i(r,u(a(r),n)))}var a=n(30),i=n(31),o=n(7),u=n(32);t.exports=r},function(t,e){function n(t){var e=t.match(r);return e?e[1].split(a):[]}var r=/\{\n\/\* \[wrapped with (.+)\] \*/,a=/,? & /;t.exports=n},function(t,e){function n(t,e){var n=e.length;if(!n)return t;var a=n-1;return e[a]=(n>1?"& ":"")+e[a],e=e.join(n>2?", ":" "),t.replace(r,"{\n/* [wrapped with "+e+"] */\n")}var r=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=n},function(t,e,n){function r(t,e){return a(y,function(n){var r="_."+n[0];e&n[1]&&!i(t,r)&&t.push(r)}),t.sort()}var a=n(33),i=n(34),o=1,u=2,l=8,c=16,s=32,f=64,d=128,h=256,p=512,y=[["ary",d],["bind",o],["bindKey",u],["curry",l],["curryRight",c],["flip",p],["partial",s],["partialRight",f],["rearg",h]];t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}t.exports=n},function(t,e,n){function r(t,e){var n=null==t?0:t.length;return!!n&&a(t,e,0)>-1}var a=n(35);t.exports=r},function(t,e,n){function r(t,e,n){return e===e?o(t,e,n):a(t,i,n)}var a=n(36),i=n(37),o=n(38);t.exports=r},function(t,e){function n(t,e,n,r){for(var a=t.length,i=n+(r?1:-1);r?i--:++i<a;)if(e(t[i],i,t))return i;return-1}t.exports=n},function(t,e){function n(t){return t!==t}t.exports=n},function(t,e){function n(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}t.exports=n},function(t,e){function n(t){var e=t;return e.placeholder}t.exports=n},function(t,e,n){function r(t,e){for(var n=t.length,r=o(e.length,n),u=a(t);r--;){var l=e[r];t[r]=i(l,n)?u[l]:void 0}return t}var a=n(41),i=n(42),o=Math.min;t.exports=r},function(t,e){function n(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}t.exports=n},function(t,e){function n(t,e){return e=null==e?r:e,!!e&&("number"==typeof t||a.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e){function n(t,e){for(var n=-1,a=t.length,i=0,o=[];++n<a;){var u=t[n];u!==e&&u!==r||(t[n]=r,o[i++]=n)}return o}var r="__lodash_placeholder__";t.exports=n},function(t,e,n){function r(t,e,n,r){function l(){for(var e=-1,i=arguments.length,u=-1,f=r.length,d=Array(f+i),h=this&&this!==o&&this instanceof l?s:t;++u<f;)d[u]=r[u];for(;i--;)d[u++]=arguments[++e];return a(h,c?n:this,d)}var c=e&u,s=i(t);return l}var a=n(6),i=n(16),o=n(19),u=1;t.exports=r},function(t,e){function n(){}t.exports=n},4,4,function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(51);Object.defineProperty(e,"VictoryAnimation",{enumerable:!0,get:function(){return r(a).default}});var i=n(66);Object.defineProperty(e,"VictoryContainer",{enumerable:!0,get:function(){return r(i).default}});var o=n(127);Object.defineProperty(e,"VictoryLabel",{enumerable:!0,get:function(){return r(o).default}});var u=n(195);Object.defineProperty(e,"VictoryTransition",{enumerable:!0,get:function(){return r(u).default}});var l=n(201);Object.defineProperty(e,"VictorySharedEvents",{enumerable:!0,get:function(){return r(l).default}});var c=n(212);Object.defineProperty(e,"VictoryClipContainer",{enumerable:!0,get:function(){return r(c).default}});var s=n(214);Object.defineProperty(e,"VictoryTheme",{enumerable:!0,get:function(){return r(s).default}});var f=n(217);Object.defineProperty(e,"VictoryLegend",{enumerable:!0,get:function(){return r(f).default}});var d=n(231);Object.defineProperty(e,"VictoryTooltip",{enumerable:!0,get:function(){return r(d).default}});var h=n(148);Object.defineProperty(e,"VictoryPortal",{enumerable:!0,get:function(){return r(h).default}});var p=n(126);Object.defineProperty(e,"Portal",{enumerable:!0,get:function(){return r(p).default}});var y=n(233);Object.defineProperty(e,"Arc",{enumerable:!0,get:function(){return r(y).default}});var v=n(234);Object.defineProperty(e,"Area",{enumerable:!0,get:function(){return r(v).default}});var g=n(238);Object.defineProperty(e,"Bar",{enumerable:!0,get:function(){return r(g).default}});var b=n(239);Object.defineProperty(e,"Candle",{enumerable:!0,get:function(){return r(b).default}});var m=n(213);Object.defineProperty(e,"ClipPath",{enumerable:!0,get:function(){return r(m).default}});var _=n(240);Object.defineProperty(e,"Curve",{enumerable:!0,get:function(){return r(_).default}});var x=n(241);Object.defineProperty(e,"ErrorBar",{enumerable:!0,get:function(){return r(x).default}});var M=n(242);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(M).default}});var w=n(224);Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return r(w).default}});var O=n(243);Object.defineProperty(e,"Slice",{enumerable:!0,get:function(){return r(O).default}});var P=n(244);Object.defineProperty(e,"Voronoi",{enumerable:!0,get:function(){return r(P).default}});var k=n(232);Object.defineProperty(e,"Flyout",{enumerable:!0,get:function(){return r(k).default}});var T=n(245);Object.defineProperty(e,"addEvents",{enumerable:!0,get:function(){return r(T).default}});var A=n(189);Object.defineProperty(e,"Collection",{enumerable:!0,get:function(){return r(A).default}});var j=n(246);Object.defineProperty(e,"Data",{enumerable:!0,get:function(){return r(j).default}});var E=n(264);Object.defineProperty(e,"DefaultTransitions",{enumerable:!0,get:function(){return r(E).default}});var S=n(265);Object.defineProperty(e,"Domain",{enumerable:!0,get:function(){return r(S).default}});var C=n(203);Object.defineProperty(e,"Events",{enumerable:!0,get:function(){return r(C).default}});var N=n(191);Object.defineProperty(e,"Helpers",{enumerable:!0,get:function(){return r(N).default}});var D=n(193);Object.defineProperty(e,"LabelHelpers",{enumerable:!0,get:function(){return r(D).default}});var R=n(149);Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return r(R).default}});var L=n(150);Object.defineProperty(e,"PropTypes",{enumerable:!0,get:function(){return r(L).default}});var F=n(256);Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return r(F).default}});var I=n(268);Object.defineProperty(e,"Selection",{enumerable:!0,get:function(){return r(I).default}});var W=n(194);Object.defineProperty(e,"Style",{enumerable:!0,get:function(){return r(W).default}});var z=n(223);Object.defineProperty(e,"TextSize",{enumerable:!0,get:function(){return r(z).default}});var U=n(64);Object.defineProperty(e,"Timer",{enumerable:!0,get:function(){return r(U).default}});var V=n(200);Object.defineProperty(e,"Transitions",{enumerable:!0,get:function(){return r(V).default}})},function(t,e,n){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function a(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(48),f=a(s),d=n(49),h=a(d),p=n(52),y=r(p),v=n(53),g=n(64),b=a(g),m=function(t){function e(t){o(this,e);var n=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={data:Array.isArray(n.props.data)?n.props.data[0]:n.props.data,animationInfo:{progress:0,animating:!1}},n.interpolator=null,n.queue=Array.isArray(n.props.data)?n.props.data.slice(1):[],n.ease=y[n.toNewName(n.props.easing)],n.functionToBeRunEachFrame=n.functionToBeRunEachFrame.bind(n),n.getTimer=n.getTimer.bind(n),n}return l(e,t),c(e,[{key:"componentDidMount",value:function(){this.queue.length&&this.traverseQueue()}},{key:"componentWillReceiveProps",value:function(t){if(this.getTimer().unsubscribe(this.loopID),Array.isArray(t.data)){var e;(e=this.queue).push.apply(e,i(t.data))}else this.queue.length=0,this.queue.push(t.data);this.traverseQueue()}},{key:"componentWillUnmount",value:function(){this.loopID?this.getTimer().unsubscribe(this.loopID):this.getTimer().stop()}},{key:"getTimer",value:function(){return this.context.getTimer?this.context.getTimer():(this.timer||(this.timer=new b.default),this.timer)}},{key:"toNewName",value:function(t){var e=function(t){return t&&t[0].toUpperCase()+t.slice(1)};return"ease"+e(t)}},{key:"traverseQueue",value:function(){var t=this;if(this.queue.length){var e=this.queue[0];this.interpolator=(0,v.victoryInterpolator)(this.state.data,e),this.props.delay?setTimeout(function(){t.loopID=t.getTimer().subscribe(t.functionToBeRunEachFrame,t.props.duration)},this.props.delay):this.loopID=this.getTimer().subscribe(this.functionToBeRunEachFrame,this.props.duration)}else this.props.onEnd&&this.props.onEnd()}},{key:"functionToBeRunEachFrame",value:function(t,e){e=void 0!==e?e:this.props.duration;var n=e?t/e:1;return n>=1?(this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1}}),this.loopID&&this.getTimer().unsubscribe(this.loopID),this.queue.shift(),void this.traverseQueue()):void this.setState({data:this.interpolator(this.ease(n)),animationInfo:{progress:n,animating:n<1}})}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}]),e}(f.default.Component);m.displayName="VictoryAnimation",m.propTypes={children:h.default.func,data:h.default.oneOfType([h.default.object,h.default.array]),delay:h.default.number,duration:h.default.number,easing:h.default.oneOf(["back","backIn","backOut","backInOut","bounce","bounceIn","bounceOut","bounceInOut","circle","circleIn","circleOut","circleInOut","linear","linearIn","linearOut","linearInOut","cubic","cubicIn","cubicOut","cubicInOut","elastic","elasticIn","elasticOut","elasticInOut","exp","expIn","expOut","expInOut","poly","polyIn","polyOut","polyInOut","quad","quadIn","quadOut","quadInOut","sin","sinIn","sinOut","sinInOut"]),onEnd:h.default.func},m.defaultProps={data:{},delay:0,duration:1e3,easing:"quadInOut"},m.contextTypes={getTimer:h.default.func},e.default=m},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return+t}function n(t){return t*t}function r(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function i(t){return t*t*t}function o(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function l(t){return 1-Math.cos(t*P)}function c(t){return Math.sin(t*P)}function s(t){return(1-Math.cos(O*t))/2}function f(t){return Math.pow(2,10*t-10)}function d(t){return 1-Math.pow(2,-10*t)}function h(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function p(t){return 1-Math.sqrt(1-t*t)}function y(t){return Math.sqrt(1- --t*t)}function v(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function g(t){return 1-b(1-t)}function b(t){return(t=+t)<k?R*t*t:t<A?R*(t-=T)*t+j:t<S?R*(t-=E)*t+C:R*(t-=N)*t+D}function m(t){return((t*=2)<=1?1-b(1-t):b(t-1)+1)/2}var _=3,x=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(_),M=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(_),w=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(_),O=Math.PI,P=O/2,k=4/11,T=6/11,A=8/11,j=.75,E=9/11,S=10/11,C=.9375,N=21/22,D=63/64,R=1/k/k,L=1.70158,F=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(L),I=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(L),W=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(L),z=2*Math.PI,U=1,V=.3,q=function t(e,n){function r(t){return e*Math.pow(2,10*--t)*Math.sin((a-t)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=z);return r.amplitude=function(e){return t(e,n*z)},r.period=function(n){return t(e,n)},r}(U,V),B=function t(e,n){function r(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+a)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=z);return r.amplitude=function(e){return t(e,n*z)},r.period=function(n){return t(e,n)},r}(U,V),H=function t(e,n){function r(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((a-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((a+t)/n))/2}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=z);return r.amplitude=function(e){return t(e,n*z)},r.period=function(n){return t(e,n)},r}(U,V);t.easeLinear=e,t.easeQuad=a,t.easeQuadIn=n,t.easeQuadOut=r,t.easeQuadInOut=a,t.easeCubic=u,t.easeCubicIn=i,t.easeCubicOut=o,t.easeCubicInOut=u,t.easePoly=w,t.easePolyIn=x,t.easePolyOut=M,t.easePolyInOut=w,t.easeSin=s,t.easeSinIn=l,t.easeSinOut=c,t.easeSinInOut=s,t.easeExp=h,t.easeExpIn=f,t.easeExpOut=d,t.easeExpInOut=h,t.easeCircle=v,t.easeCircleIn=p,t.easeCircleOut=y,t.easeCircleInOut=v,t.easeBounce=b,t.easeBounceIn=g,t.easeBounceOut=b,t.easeBounceInOut=m,t.easeBack=W,t.easeBackIn=F,t.easeBackOut=I,t.easeBackInOut=W,t.easeElastic=B,t.easeElasticIn=q,t.easeElasticOut=B,t.easeElasticInOut=H,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.victoryInterpolator=e.interpolateString=e.interpolateObject=e.interpolateFunction=e.interpolateImmediate=e.isInterpolatable=void 0;var a=n(54),i=r(a),o=n(62),u=e.isInterpolatable=function(t){if(null!==t)switch(typeof t){case"undefined":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return t instanceof Date||Array.isArray(t)||(0,i.default)(t);case"function":return!0}return!1},l=e.interpolateImmediate=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r<n?t:e}},c=e.interpolateFunction=function(t,e){return function(n){return n>=1?e:function(){var r="function"==typeof t?t.apply(this,arguments):t,a="function"==typeof e?e.apply(this,arguments):e;return(0,o.interpolate)(r,a)(n)}}},s=e.interpolateObject=function t(e,n){var r=function(e,n){return e!==n&&u(e)&&u(n)?"function"==typeof e||"function"==typeof n?c(e,n):"object"==typeof e&&(0,i.default)(e)||"object"==typeof n&&(0,i.default)(n)?t(e,n):(0,o.interpolate)(e,n):l(e,n)},a={},s={},f=void 0;null!==e&&"object"==typeof e||(e={}),null!==n&&"object"==typeof n||(n={});for(f in n)f in e?a[f]=r(e[f],n[f]):s[f]=n[f];return function(t){for(f in a)s[f]=a[f](t);return s}},f=e.interpolateString=function(t,e){var n=function(t){return"string"==typeof t?t.replace(/,/g,""):t};return(0,o.interpolate)(n(t),n(e))};e.victoryInterpolator=function(t,e){return t!==e&&u(t)&&u(e)?"function"==typeof t||"function"==typeof e?c(t,e):(0,i.default)(t)||(0,i.default)(e)?s(t,e):"string"==typeof t||"string"==typeof e?f(t,e):(0,o.interpolate)(t,e):l(t,e)}},function(t,e,n){function r(t){if(!o(t)||a(t)!=u)return!1;var e=i(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==d}var a=n(55),i=n(59),o=n(61),u="[object Object]",l=Function.prototype,c=Object.prototype,s=l.toString,f=c.hasOwnProperty,d=s.call(Object);t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?l:u:c&&c in Object(t)?i(t):o(t)}var a=n(56),i=n(57),o=n(58),u="[object Null]",l="[object Undefined]",c=a?a.toStringTag:void 0;t.exports=r},function(t,e,n){var r=n(19),a=r.Symbol;t.exports=a},function(t,e,n){function r(t){var e=o.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(t){}var a=u.call(t);return r&&(e?t[l]=n:delete t[l]),a}var a=n(56),i=Object.prototype,o=i.hasOwnProperty,u=i.toString,l=a?a.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return a.call(t)}var r=Object.prototype,a=r.toString;t.exports=n},function(t,e,n){var r=n(60),a=r(Object.getPrototypeOf,Object);t.exports=a},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){!function(t,r){r(e,n(63))}(this,function(t,e){"use strict";function n(t,e,n,r,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*e+(4-6*i+3*o)*n+(1+3*t+3*i-3*o)*r+o*a)/6}function r(t,e){return function(n){return t+n*e}}function a(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function i(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):T(isNaN(t)?e:t)}function o(t){return 1===(t=+t)?u:function(e,n){return n-e?a(e,n,t):T(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?r(t,n):T(isNaN(t)?e:t)}function l(t){return function(n){var r,a,i=n.length,o=new Array(i),u=new Array(i),l=new Array(i);for(r=0;r<i;++r)a=e.rgb(n[r]),o[r]=a.r||0,u[r]=a.g||0,l[r]=a.b||0;return o=t(o),u=t(u),l=t(l),a.opacity=1,function(t){return a.r=o(t),a.g=u(t),a.b=l(t),a+""}}}function c(t){return function(){return t}}function s(t){return function(e){return t(e)+""}}function f(t){return"none"===t?U:(x||(x=document.createElement("DIV"),M=document.documentElement,w=document.defaultView),x.style.transform=t,t=w.getComputedStyle(M.appendChild(x),null).getPropertyValue("transform"),M.removeChild(x),t=t.slice(7,-1).split(","),V(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function d(t){return null==t?U:(O||(O=document.createElementNS("http://www.w3.org/2000/svg","g")),O.setAttribute("transform",t),(t=O.transform.baseVal.consolidate())?(t=t.matrix,V(t.a,t.b,t.c,t.d,t.e,t.f)):U)}function h(t,e,n,r){function a(t){return t.length?t.pop()+" ":""}function i(t,r,a,i,o,u){if(t!==a||r!==i){var l=o.push("translate(",null,e,null,n);u.push({i:l-4,x:N(t,a)},{i:l-2,x:N(r,i)})}else(a||i)&&o.push("translate("+a+e+i+n)}function o(t,e,n,i){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),i.push({i:n.push(a(n)+"rotate(",null,r)-2,x:N(t,e)})):e&&n.push(a(n)+"rotate("+e+r)}function u(t,e,n,i){t!==e?i.push({i:n.push(a(n)+"skewX(",null,r)-2,x:N(t,e)}):e&&n.push(a(n)+"skewX("+e+r)}function l(t,e,n,r,i,o){if(t!==n||e!==r){var u=i.push(a(i)+"scale(",null,",",null,")");o.push({i:u-4,x:N(t,n)},{i:u-2,x:N(e,r)})}else 1===n&&1===r||i.push(a(i)+"scale("+n+","+r+")")}return function(e,n){var r=[],a=[];return e=t(e),n=t(n),i(e.translateX,e.translateY,n.translateX,n.translateY,r,a),o(e.rotate,n.rotate,r,a),u(e.skewX,n.skewX,r,a),l(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,a),e=n=null,function(t){for(var e,n=-1,i=a.length;++n<i;)r[(e=a[n]).i]=e.x(t);return r.join("")}}}function p(t){return((t=Math.exp(t))+1/t)/2}function y(t){return((t=Math.exp(t))-1/t)/2}function v(t){return((t=Math.exp(2*t))-1)/(t+1)}function g(t){return function(n,r){var a=t((n=e.hsl(n)).h,(r=e.hsl(r)).h),i=u(n.s,r.s),o=u(n.l,r.l),l=u(n.opacity,r.opacity);return function(t){return n.h=a(t),n.s=i(t),n.l=o(t),n.opacity=l(t),n+""}}}function b(t,n){var r=u((t=e.lab(t)).l,(n=e.lab(n)).l),a=u(t.a,n.a),i=u(t.b,n.b),o=u(t.opacity,n.opacity);return function(e){return t.l=r(e),t.a=a(e),t.b=i(e),t.opacity=o(e),t+""}}function m(t){return function(n,r){var a=t((n=e.hcl(n)).h,(r=e.hcl(r)).h),i=u(n.c,r.c),o=u(n.l,r.l),l=u(n.opacity,r.opacity);return function(t){return n.h=a(t),n.c=i(t),n.l=o(t),n.opacity=l(t),n+""}}}function _(t){return function n(r){function a(n,a){var i=t((n=e.cubehelix(n)).h,(a=e.cubehelix(a)).h),o=u(n.s,a.s),l=u(n.l,a.l),c=u(n.opacity,a.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=l(Math.pow(t,r)),n.opacity=c(t),n+""}}return r=+r,a.gamma=n,a}(1)}var x,M,w,O,P=function(t){var e=t.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[a],o=t[a+1],u=a>0?t[a-1]:2*i-o,l=a<e-1?t[a+2]:2*o-i;return n((r-a/e)*e,u,i,o,l)}},k=function(t){var e=t.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*e),i=t[(a+e-1)%e],o=t[a%e],u=t[(a+1)%e],l=t[(a+2)%e];return n((r-a/e)*e,i,o,u,l)}},T=function(t){return function(){return t}},A=function t(n){function r(t,n){var r=a((t=e.rgb(t)).r,(n=e.rgb(n)).r),i=a(t.g,n.g),o=a(t.b,n.b),l=u(t.opacity,n.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=l(e),t+""}}var a=o(n);return r.gamma=t,r}(1),j=l(P),E=l(k),S=function(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,i=new Array(r),o=new Array(r);for(n=0;n<a;++n)i[n]=I(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<a;++n)o[n]=i[n](t);return o}},C=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),
|
|
2
|
-
n}},N=function(t,e){return t=+t,e-=t,function(n){return t+e*n}},D=function(t,e){var n,r={},a={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?r[n]=I(t[n],e[n]):a[n]=e[n];return function(t){for(n in r)a[n]=r[n](t);return a}},R=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,L=new RegExp(R.source,"g"),F=function(t,e){var n,r,a,i=R.lastIndex=L.lastIndex=0,o=-1,u=[],l=[];for(t+="",e+="";(n=R.exec(t))&&(r=L.exec(e));)(a=r.index)>i&&(a=e.slice(i,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,l.push({i:o,x:N(n,r)})),i=L.lastIndex;return i<e.length&&(a=e.slice(i),u[o]?u[o]+=a:u[++o]=a),u.length<2?l[0]?s(l[0].x):c(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)u[(n=l[r]).i]=n.x(t);return u.join("")})},I=function(t,n){var r,a=typeof n;return null==n||"boolean"===a?T(n):("number"===a?N:"string"===a?(r=e.color(n))?(n=r,A):F:n instanceof e.color?A:n instanceof Date?C:Array.isArray(n)?S:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?D:N)(t,n)},W=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}},z=180/Math.PI,U={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},V=function(t,e,n,r,a,i){var o,u,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,l/=u),t*r<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:a,translateY:i,rotate:Math.atan2(e,t)*z,skewX:Math.atan(l)*z,scaleX:o,scaleY:u}},q=h(f,"px, ","px)","deg)"),B=h(d,", ",")",")"),H=Math.SQRT2,Y=2,X=4,K=1e-12,G=function(t,e){var n,r,a=t[0],i=t[1],o=t[2],u=e[0],l=e[1],c=e[2],s=u-a,f=l-i,d=s*s+f*f;if(d<K)r=Math.log(c/o)/H,n=function(t){return[a+t*s,i+t*f,o*Math.exp(H*t*r)]};else{var h=Math.sqrt(d),g=(c*c-o*o+X*d)/(2*o*Y*h),b=(c*c-o*o-X*d)/(2*c*Y*h),m=Math.log(Math.sqrt(g*g+1)-g),_=Math.log(Math.sqrt(b*b+1)-b);r=(_-m)/H,n=function(t){var e=t*r,n=p(m),u=o/(Y*h)*(n*v(H*e+m)-y(m));return[a+u*s,i+u*f,o*n/p(H*e+m)]}}return n.duration=1e3*r,n},Z=g(i),$=g(u),Q=m(i),J=m(u),tt=_(i),et=_(u),nt=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n};t.interpolate=I,t.interpolateArray=S,t.interpolateBasis=P,t.interpolateBasisClosed=k,t.interpolateDate=C,t.interpolateNumber=N,t.interpolateObject=D,t.interpolateRound=W,t.interpolateString=F,t.interpolateTransformCss=q,t.interpolateTransformSvg=B,t.interpolateZoom=G,t.interpolateRgb=A,t.interpolateRgbBasis=j,t.interpolateRgbBasisClosed=E,t.interpolateHsl=Z,t.interpolateHslLong=$,t.interpolateLab=b,t.interpolateHcl=Q,t.interpolateHclLong=J,t.interpolateCubehelix=tt,t.interpolateCubehelixLong=et,t.quantize=nt,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function n(){}function r(t){var e;return t=(t+"").trim().toLowerCase(),(e=N.exec(t))?(e=parseInt(e[1],16),new l(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=D.exec(t))?a(parseInt(e[1],16)):(e=R.exec(t))?new l(e[1],e[2],e[3],1):(e=L.exec(t))?new l(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=F.exec(t))?i(e[1],e[2],e[3],e[4]):(e=I.exec(t))?i(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=W.exec(t))?c(e[1],e[2]/100,e[3]/100,1):(e=z.exec(t))?c(e[1],e[2]/100,e[3]/100,e[4]):U.hasOwnProperty(t)?a(U[t]):"transparent"===t?new l(NaN,NaN,NaN,0):null}function a(t){return new l(t>>16&255,t>>8&255,255&t,1)}function i(t,e,n,r){return r<=0&&(t=e=n=NaN),new l(t,e,n,r)}function o(t){return t instanceof n||(t=r(t)),t?(t=t.rgb(),new l(t.r,t.g,t.b,t.opacity)):new l}function u(t,e,n,r){return 1===arguments.length?o(t):new l(t,e,n,null==r?1:r)}function l(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function c(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new d(t,e,n,r)}function s(t){if(t instanceof d)return new d(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=r(t)),!t)return new d;if(t instanceof d)return t;t=t.rgb();var e=t.r/255,a=t.g/255,i=t.b/255,o=Math.min(e,a,i),u=Math.max(e,a,i),l=NaN,c=u-o,s=(u+o)/2;return c?(l=e===u?(a-i)/c+6*(a<i):a===u?(i-e)/c+2:(e-a)/c+4,c/=s<.5?u+o:2-u-o,l*=60):c=s>0&&s<1?0:l,new d(l,c,s,t.opacity)}function f(t,e,n,r){return 1===arguments.length?s(t):new d(t,e,n,null==r?1:r)}function d(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function h(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function p(t){if(t instanceof v)return new v(t.l,t.a,t.b,t.opacity);if(t instanceof w){var e=t.h*V;return new v(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof l||(t=o(t));var n=_(t.r),r=_(t.g),a=_(t.b),i=g((.4124564*n+.3575761*r+.1804375*a)/H),u=g((.2126729*n+.7151522*r+.072175*a)/Y),c=g((.0193339*n+.119192*r+.9503041*a)/X);return new v(116*u-16,500*(i-u),200*(u-c),t.opacity)}function y(t,e,n,r){return 1===arguments.length?p(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function g(t){return t>$?Math.pow(t,1/3):t/Z+K}function b(t){return t>G?t*t*t:Z*(t-K)}function m(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function _(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function x(t){if(t instanceof w)return new w(t.h,t.c,t.l,t.opacity);t instanceof v||(t=p(t));var e=Math.atan2(t.b,t.a)*q;return new w(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function M(t,e,n,r){return 1===arguments.length?x(t):new w(t,e,n,null==r?1:r)}function w(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function O(t){if(t instanceof k)return new k(t.h,t.s,t.l,t.opacity);t instanceof l||(t=o(t));var e=t.r/255,n=t.g/255,r=t.b/255,a=(it*r+rt*e-at*n)/(it+rt-at),i=r-a,u=(nt*(n-a)-tt*i)/et,c=Math.sqrt(u*u+i*i)/(nt*a*(1-a)),s=c?Math.atan2(u,i)*q-120:NaN;return new k(s<0?s+360:s,c,a,t.opacity)}function P(t,e,n,r){return 1===arguments.length?O(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}var T=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},A=.7,j=1/A,E="\\s*([+-]?\\d+)\\s*",S="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",C="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",N=/^#([0-9a-f]{3})$/,D=/^#([0-9a-f]{6})$/,R=new RegExp("^rgb\\("+[E,E,E]+"\\)$"),L=new RegExp("^rgb\\("+[C,C,C]+"\\)$"),F=new RegExp("^rgba\\("+[E,E,E,S]+"\\)$"),I=new RegExp("^rgba\\("+[C,C,C,S]+"\\)$"),W=new RegExp("^hsl\\("+[S,C,C]+"\\)$"),z=new RegExp("^hsla\\("+[S,C,C,S]+"\\)$"),U={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};T(n,r,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),T(l,u,e(n,{brighter:function(t){return t=null==t?j:Math.pow(j,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?A:Math.pow(A,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),T(d,f,e(n,{brighter:function(t){return t=null==t?j:Math.pow(j,t),new d(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?A:Math.pow(A,t),new d(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new l(h(t>=240?t-240:t+120,a,r),h(t,a,r),h(t<120?t+240:t-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var V=Math.PI/180,q=180/Math.PI,B=18,H=.95047,Y=1,X=1.08883,K=4/29,G=6/29,Z=3*G*G,$=G*G*G;T(v,y,e(n,{brighter:function(t){return new v(this.l+B*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new v(this.l-B*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=Y*b(t),e=H*b(e),n=X*b(n),new l(m(3.2404542*e-1.5371385*t-.4985314*n),m(-.969266*e+1.8760108*t+.041556*n),m(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),T(w,M,e(n,{brighter:function(t){return new w(this.h,this.c,this.l+B*(null==t?1:t),this.opacity)},darker:function(t){return new w(this.h,this.c,this.l-B*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}));var Q=-.14861,J=1.78277,tt=-.29227,et=-.90649,nt=1.97294,rt=nt*et,at=nt*J,it=J*tt-et*Q;T(k,P,e(n,{brighter:function(t){return t=null==t?j:Math.pow(j,t),new k(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?A:Math.pow(A,t),new k(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*V,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),a=Math.sin(t);return new l(255*(e+n*(Q*r+J*a)),255*(e+n*(tt*r+et*a)),255*(e+n*(nt*r)),this.opacity)}})),t.color=r,t.rgb=u,t.hsl=f,t.lab=y,t.hcl=M,t.cubehelix=P,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(65),o=function(){function t(){r(this,t),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=(0,i.timer)(this.loop)}return a(t,[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach(function(t){t.callback((0,i.now)()-t.startTime,t.duration)})}},{key:"start",value:function(){this.timer.start()}},{key:"stop",value:function(){this.timer.stop()}},{key:"subscribe",value:function(t,e){return e=this.shouldAnimate?e:0,this.subscribers.push({startTime:(0,i.now)(),callback:t,duration:e})}},{key:"unsubscribe",value:function(t){null!==t&&delete this.subscribers[t-1]}}]),t}();e.default=o},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(){return g||(_(n),g=m.now()+b)}function n(){g=0}function r(){this._call=this._time=this._next=null}function a(t,e,n){var a=new r;return a.restart(t,e,n),a}function i(){e(),++d;for(var t,n=s;n;)(t=g-n._time)>=0&&n._call.call(null,t),n=n._next;--d}function o(){g=(v=m.now())+b,d=h=0;try{i()}finally{d=0,l(),g=0}}function u(){var t=m.now(),e=t-v;e>y&&(b-=e,v=t)}function l(){for(var t,e,n=s,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:s=e);f=t,c(r)}function c(t){if(!d){h&&(h=clearTimeout(h));var e=t-g;e>24?(t<1/0&&(h=setTimeout(o,e)),p&&(p=clearInterval(p))):(p||(v=g,p=setInterval(u,y)),d=1,_(o))}}var s,f,d=0,h=0,p=0,y=1e3,v=0,g=0,b=0,m="object"==typeof performance&&performance.now?performance:Date,_="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};r.prototype=a.prototype={constructor:r,restart:function(t,n,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?e():+r)+(null==n?0:+n),this._next||f===this||(f?f._next=this:s=this,f=this),this._call=t,this._time=r,c()},stop:function(){this._call&&(this._call=null,this._time=1/0,c())}};var x=function(t,e,n){var a=new r;return e=null==e?0:+e,a.restart(function(n){a.stop(),t(n+e)},e,n),a},M=function(t,n,a){var i=new r,o=n;return null==n?(i.restart(t,n,a),i):(n=+n,a=null==a?e():+a,i.restart(function e(r){r+=o,i.restart(e,o+=n,a),t(r)},n,a),i)};t.now=e,t.timer=a,t.timerFlush=i,t.timeout=x,t.interval=M,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(67),l=r(u),c=n(69),s=r(c),f=n(96),d=r(f),h=n(123),p=r(h),y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v="src/victory-container/victory-container.js",g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=n(48),m=r(b),_=n(49),x=r(_),M=n(126),w=r(M),O=n(64),P=r(O),k=function(t){function e(t){a(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.getTimer=n.getTimer.bind(n),n.containerId=(0,l.default)("victory-container-"),n}return o(e,t),g(e,[{key:"getChildContext",value:function(){return{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister,getTimer:this.getTimer}}},{key:"componentWillMount",value:function(){var t=this;this.savePortalRef=function(e){return t.portalRef=e,e},this.portalUpdate=function(e,n){return t.portalRef.portalUpdate(e,n)},this.portalRegister=function(){return t.portalRef.portalRegister()},this.portalDeregister=function(e){return t.portalRef.portalDeregister(e)}}},{key:"componentWillUnmount",value:function(){this.context.getTimer||this.getTimer().stop()}},{key:"getTimer",value:function(){return this.context.getTimer?this.context.getTimer():(this.timer||(this.timer=new P.default),this.timer)}},{key:"getIdForElement",value:function(t){return this.containerId+"-"+t}},{key:"getChildren",value:function(t){return t.children}},{key:"renderContainer",value:function(t,e,n){var r=t.title,a=t.desc,i=t.portalComponent,o=t.className,u=this.getChildren(t),l=(0,s.default)({style:n,className:o},e);return m.default.createElement("svg",y({},l,{overflow:"visible",__source:{fileName:v,lineNumber:101}}),m.default.createElement("svg",y({},l,{__source:{fileName:v,lineNumber:102}}),u),r?m.default.createElement("title",{id:this.getIdForElement("title"),__source:{fileName:v,lineNumber:105}},r):null,a?m.default.createElement("desc",{id:this.getIdForElement("desc"),__source:{fileName:v,lineNumber:106}},a):null,m.default.cloneElement(i,{ref:this.savePortalRef}))}},{key:"render",value:function(){var t=this.props,e=t.width,n=t.height,r=t.responsive,a=t.events,i=r?this.props.style:(0,d.default)(this.props.style,["height","width"]),o=(0,p.default)({width:e,height:n,role:"img","aria-labelledby":this.getIdForElement("title")+" "+this.getIdForElement("desc"),viewBox:r?"0 0 "+e+" "+n:void 0},a);return this.renderContainer(this.props,o,i)}}]),e}(m.default.Component);k.displayName="VictoryContainer",k.role="container",k.propTypes={children:x.default.oneOfType([x.default.arrayOf(x.default.node),x.default.node]),className:x.default.string,desc:x.default.string,events:x.default.object,height:x.default.number,origin:x.default.shape({x:x.default.number,y:x.default.number}),polar:x.default.bool,portalComponent:x.default.element,responsive:x.default.bool,style:x.default.object,theme:x.default.object,title:x.default.string,width:x.default.number},k.defaultProps={portalComponent:m.default.createElement(w.default,{__source:{fileName:v,lineNumber:30}}),responsive:!0},k.contextTypes={getTimer:x.default.func},k.childContextTypes={portalUpdate:x.default.func,portalRegister:x.default.func,portalDeregister:x.default.func,getTimer:x.default.func},e.default=k},function(t,e,n){function r(t){var e=++i;return a(t)+e}var a=n(68),i=0;t.exports=r},4,function(t,e,n){var r=n(6),a=n(70),i=n(3),o=n(95),u=i(function(t){return t.push(void 0,o),r(a,void 0,t)});t.exports=u},function(t,e,n){var r=n(71),a=n(75),i=n(77),o=a(function(t,e,n,a){r(e,i(e),t,a)});t.exports=o},function(t,e,n){function r(t,e,n,r){var o=!n;n||(n={});for(var u=-1,l=e.length;++u<l;){var c=e[u],s=r?r(n[c],t[c],c,n,t):void 0;void 0===s&&(s=t[c]),o?i(n,c,s):a(n,c,s)}return n}var a=n(72),i=n(73);t.exports=r},function(t,e,n){function r(t,e,n){var r=t[e];u.call(t,e)&&i(r,n)&&(void 0!==n||e in t)||a(t,e,n)}var a=n(73),i=n(74),o=Object.prototype,u=o.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e,n){"__proto__"==e&&a?a(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var a=n(10);t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){return a(function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,u=a>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,u&&i(n[0],n[1],u)&&(o=a<3?void 0:o,a=1),e=Object(e);++r<a;){var l=n[r];l&&t(e,l,r,o)}return e})}var a=n(3),i=n(76);t.exports=r},27,function(t,e,n){function r(t){return o(t)?a(t,!0):i(t)}var a=n(78),i=n(90),o=n(93);t.exports=r},function(t,e,n){function r(t,e){var n=o(t),r=!n&&i(t),s=!n&&!r&&u(t),d=!n&&!r&&!s&&c(t),h=n||r||s||d,p=h?a(t.length,String):[],y=p.length;for(var v in t)!e&&!f.call(t,v)||h&&("length"==v||s&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,y))||p.push(v);return p}var a=n(79),i=n(80),o=n(81),u=n(82),l=n(42),c=n(85),s=Object.prototype,f=s.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}t.exports=n},27,function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){(function(t){var r=n(19),a=n(84),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=o&&o.exports===i,l=u?r.Buffer:void 0,c=l?l.isBuffer:void 0,s=c||a;t.exports=s}).call(e,n(83)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},27,function(t,e,n){var r=n(86),a=n(88),i=n(89),o=i&&i.isTypedArray,u=o?a(o):r;t.exports=u},function(t,e,n){function r(t){return o(t)&&i(t.length)&&!!S[a(t)]}var a=n(55),i=n(87),o=n(61),u="[object Arguments]",l="[object Array]",c="[object Boolean]",s="[object Date]",f="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",y="[object Object]",v="[object RegExp]",g="[object Set]",b="[object String]",m="[object WeakMap]",_="[object ArrayBuffer]",x="[object DataView]",M="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",P="[object Int16Array]",k="[object Int32Array]",T="[object Uint8Array]",A="[object Uint8ClampedArray]",j="[object Uint16Array]",E="[object Uint32Array]",S={};S[M]=S[w]=S[O]=S[P]=S[k]=S[T]=S[A]=S[j]=S[E]=!0,S[u]=S[l]=S[_]=S[c]=S[x]=S[s]=S[f]=S[d]=S[h]=S[p]=S[y]=S[v]=S[g]=S[b]=S[m]=!1,t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){(function(t){var r=n(20),a="object"==typeof e&&e&&!e.nodeType&&e,i=a&&"object"==typeof t&&t&&!t.nodeType&&t,o=i&&i.exports===a,u=o&&r.process,l=function(){try{return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=l}).call(e,n(83)(t))},function(t,e,n){function r(t){if(!a(t))return o(t);var e=i(t),n=[];for(var r in t)("constructor"!=r||!e&&l.call(t,r))&&n.push(r);return n}var a=n(18),i=n(91),o=n(92),u=Object.prototype,l=u.hasOwnProperty;t.exports=r},27,function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){function r(t){return null!=t&&i(t.length)&&!a(t)}var a=n(94),i=n(87);t.exports=r},function(t,e,n){function r(t){if(!i(t))return!1;var e=a(t);return e==u||e==l||e==o||e==c}var a=n(55),i=n(18),o="[object AsyncFunction]",u="[object Function]",l="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){function r(t,e,n,r){return void 0===t||a(t,i[n])&&!o.call(r,n)?e:t}var a=n(74),i=Object.prototype,o=i.hasOwnProperty;t.exports=r},function(t,e,n){var r=n(97),a=n(98),i=n(99),o=n(100),u=n(71),l=n(111),c=n(112),s=n(117),f=1,d=2,h=4,p=c(function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,function(e){return e=o(e,t),c||(c=e.length>1),e}),u(t,s(t),n),c&&(n=a(n,f|d|h,l));for(var p=e.length;p--;)i(n,e[p]);return n});t.exports=p},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}t.exports=n},4,function(t,e,n){function r(t,e){return e=a(e,t),t=o(t,e),null==t||delete t[u(i(e))]}var a=n(100),i=n(106),o=n(107),u=n(109);t.exports=r},function(t,e,n){function r(t,e){return a(t)?t:i(t,e)?[t]:o(u(t))}var a=n(81),i=n(101),o=n(103),u=n(68);t.exports=r},function(t,e,n){function r(t,e){if(a(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(u.test(t)||!o.test(t)||null!=e&&t in Object(e))}var a=n(81),i=n(102),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=r},function(t,e,n){function r(t){return"symbol"==typeof t||i(t)&&a(t)==o}var a=n(55),i=n(61),o="[object Symbol]";t.exports=r},function(t,e,n){var r=n(104),a=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=r(function(t){var e=[];return a.test(t)&&e.push(""),t.replace(i,function(t,n,r,a){e.push(r?a.replace(o,"$1"):n||t)}),e});t.exports=u},function(t,e,n){function r(t){var e=a(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}var a=n(105),i=500;t.exports=r},4,function(t,e){function n(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}t.exports=n},function(t,e,n){function r(t,e){return e.length<2?t:a(t,i(e,0,-1))}var a=n(108),i=n(110);t.exports=r},function(t,e,n){function r(t,e){e=a(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[i(e[n++])];return n&&n==r?t:void 0}var a=n(100),i=n(109);t.exports=r},4,function(t,e){function n(t,e,n){var r=-1,a=t.length;e<0&&(e=-e>a?0:a+e),n=n>a?a:n,n<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(a);++r<a;)i[r]=t[r+e];return i}t.exports=n},function(t,e,n){function r(t){return a(t)?void 0:t}var a=n(54);t.exports=r},function(t,e,n){function r(t){return o(i(t,void 0,a),t+"")}var a=n(113),i=n(5),o=n(7);t.exports=r},function(t,e,n){function r(t){var e=null==t?0:t.length;return e?a(t,1):[]}var a=n(114);t.exports=r},function(t,e,n){function r(t,e,n,o,u){var l=-1,c=t.length;for(n||(n=i),u||(u=[]);++l<c;){var s=t[l];e>0&&n(s)?e>1?r(s,e-1,n,o,u):a(u,s):o||(u[u.length]=s)}return u}var a=n(115),i=n(116);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}t.exports=n},function(t,e,n){function r(t){return o(t)||i(t)||!!(u&&t&&t[u])}var a=n(56),i=n(80),o=n(81),u=a?a.isConcatSpreadable:void 0;t.exports=r},function(t,e,n){function r(t){return a(t,o,i)}var a=n(118),i=n(119),o=n(77);t.exports=r},function(t,e,n){function r(t,e,n){var r=e(t);return i(t)?r:a(r,n(t))}var a=n(115),i=n(81);t.exports=r},function(t,e,n){var r=n(115),a=n(59),i=n(120),o=n(122),u=Object.getOwnPropertySymbols,l=u?function(t){for(var e=[];t;)r(e,i(t)),t=a(t);return e}:o;t.exports=l},function(t,e,n){var r=n(121),a=n(122),i=Object.prototype,o=i.propertyIsEnumerable,u=Object.getOwnPropertySymbols,l=u?function(t){return null==t?[]:(t=Object(t),r(u(t),function(e){return o.call(t,e)}))}:a;t.exports=l},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,a=0,i=[];++n<r;){var o=t[n];e(o,n,t)&&(i[a++]=o)}return i}t.exports=n},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){var r=n(72),a=n(71),i=n(75),o=n(93),u=n(91),l=n(124),c=Object.prototype,s=c.hasOwnProperty,f=i(function(t,e){if(u(e)||o(e))return void a(e,l(e),t);for(var n in e)s.call(e,n)&&r(t,n,e[n])});t.exports=f},function(t,e,n){function r(t){if(!a(t))return i(t);var e=[];for(var n in Object(t))u.call(t,n)&&"constructor"!=n&&e.push(n);return e}var a=n(91),i=n(125),o=Object.prototype,u=o.hasOwnProperty;t.exports=r},function(t,e,n){var r=n(60),a=r(Object.keys,Object);t.exports=a},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u="src/victory-portal/portal.js",l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(48),s=r(c),f=n(49),d=r(f),h=function(t){function e(t){a(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.map={},n.index=1,n.portalUpdate=n.portalUpdate.bind(n),n.portalRegister=n.portalRegister.bind(n),n.portalDeregister=n.portalDeregister.bind(n),n}return o(e,t),l(e,[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(t,e){this.map[t]=e,this.forceUpdate()}},{key:"portalDeregister",value:function(t){delete this.map[t]}},{key:"render",value:function(){var t=this;return s.default.cloneElement(this.props.groupComponent,{},Object.keys(this.map).map(function(e){var n=t.map[e];return n?s.default.cloneElement(n,{key:e}):n}))}}]),e}(s.default.Component);h.displayName="Portal",h.propTypes={groupComponent:d.default.element},h.defaultProps={groupComponent:s.default.createElement("g",{__source:{fileName:u,lineNumber:12}})},e.default=h},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(128),l=r(u),c=n(123),s=r(c),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d="src/victory-label/victory-label.js",h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=n(48),y=r(p),v=n(49),g=r(v),b=n(148),m=r(b),_=n(150),x=r(_),M=n(189),w=r(M),O=n(191),P=r(O),k=n(193),T=r(k),A=n(194),j=r(A),E=n(149),S=r(E),C={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},N=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),h(e,[{key:"componentWillMount",value:function(){this.cacheAttributes(this.calculateAttributes(this.props))}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.dx,a=e.dy,i=e.content,o=e.lineHeight,u=e.textAnchor,l=e.transform,c=this.props,s=c.angle,f=c.className,d=c.datum,h=c.x,p=c.y;return!w.default.allSetsEqual([[s,t.angle],[f,t.className],[h,t.x],[p,t.y],[r,this.dx],[a,this.dy],[o,this.lineHeight],[u,this.textAnchor],[l,this.transform],[i,this.content],[n,this.style],[d,t.datum]])&&(this.cacheAttributes(e),!0)}},{key:"cacheAttributes",value:function(t){var e=t.style,n=t.dx,r=t.dy,a=t.content,i=t.textAnchor,o=t.transform,u=t.lineHeight;this.style=e,this.dx=n,this.dy=r,this.content=a,this.textAnchor=i,this.lineHeight=u,this.transform=o}},{key:"calculateAttributes",value:function(t){var e=this.getStyles(t),n=this.getHeight(t,"lineHeight"),r=t.textAnchor?P.default.evaluateProp(t.textAnchor,t.datum):"start",a=this.getContent(t),i=t.dx?P.default.evaluateProp(this.props.dx,t.datum):0,o=this.getDy(t,e,a,n),u=this.getTransform(t,e);return{style:e,dx:i,dy:o,content:a,lineHeight:n,textAnchor:r,transform:u}}},{key:"getStyle",value:function(t,e){e=e?(0,l.default)({},C,e):C;var n=t.datum||t.data,r=P.default.evaluateStyle(e,n,t.active);return(0,s.default)({},r,{fontSize:this.getFontSize(r)})}},{key:"getStyles",value:function(t){var e=this;return Array.isArray(t.style)?t.style.map(function(n){return e.getStyle(t,n)}):[this.getStyle(t,t.style)];
|
|
3
|
-
}},{key:"getHeight",value:function(t,e){var n=t.datum||t.data;return P.default.evaluateProp(t[e],n,t.active)}},{key:"getContent",value:function(t){if(void 0===t.text||null===t.text)return[" "];var e=t.datum||t.data;if(Array.isArray(t.text))return t.text.map(function(n){return P.default.evaluateProp(n,e,t.active)});var n=P.default.evaluateProp(t.text,e,t.active);return(""+n).split("\n")}},{key:"getDy",value:function(t,e,n,r){var a=e[0].fontSize,i=t.datum||t.data,o=t.dy?P.default.evaluateProp(t.dy,i):0,u=n.length,l=this.getHeight(t,"capHeight"),c=e.verticalAnchor||t.verticalAnchor,s=c?P.default.evaluateProp(c,i):"middle";switch(s){case"end":return o+(l/2+(.5-u)*r)*a;case"middle":return o+(l/2+(.5-u/2)*r)*a;default:return o+(l/2+r/2)*a}}},{key:"getTransform",value:function(t,e){var n=t.datum,r=t.x,a=t.y,i=t.polar,o=i?T.default.getPolarAngle(t):0,u=e.angle||t.angle||o,l=t.transform||e.transform,c=l&&P.default.evaluateProp(l,n),s=u&&{rotate:[u,r,a]};return c||u?j.default.toTransformString(c,s):void 0}},{key:"getFontSize",value:function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(void 0===e||null===e)return C.fontSize;if("string"==typeof e){var n=+e.replace("px","");return isNaN(n)?(S.default.warn("fontSize should be expressed as a number of pixels"),C.fontSize):n}return C.fontSize}},{key:"renderElements",value:function(t){var e=this,n={dx:this.dx,dy:this.dy,x:t.x,y:t.y,transform:this.transform,className:t.className};return y.default.createElement("text",f({},n,t.events,{__source:{fileName:d,lineNumber:237}}),this.props.title&&y.default.createElement("title",{__source:{fileName:d,lineNumber:240}},this.props.title),this.props.desc&&y.default.createElement("desc",{__source:{fileName:d,lineNumber:241}},this.props.desc),this.content.map(function(n,r){var a=e.style[r]||e.style[0],i=e.style[r-1]||e.style[0],o=(a.fontSize+i.fontSize)/2,u=a.textAnchor||e.textAnchor,l=r?e.lineHeight*o:void 0;return y.default.createElement("tspan",{key:r,x:t.x,dy:l,dx:e.dx,style:a,textAnchor:u,__source:{fileName:d,lineNumber:249}},n)}))}},{key:"render",value:function(){var t=this.renderElements(this.props);return this.props.renderInPortal?y.default.createElement(m.default,{__source:{fileName:d,lineNumber:260}},t):t}}]),e}(y.default.Component);N.displayName="VictoryLabel",N.role="label",N.propTypes={active:g.default.bool,angle:g.default.oneOfType([g.default.string,g.default.number]),capHeight:g.default.oneOfType([g.default.string,x.default.nonNegative,g.default.func]),className:g.default.string,data:g.default.array,datum:g.default.any,desc:g.default.string,dx:g.default.oneOfType([g.default.number,g.default.string,g.default.func]),dy:g.default.oneOfType([g.default.number,g.default.string,g.default.func]),events:g.default.object,index:g.default.oneOfType([g.default.number,g.default.string]),labelPlacement:g.default.oneOf(["parallel","perpendicular","vertical"]),lineHeight:g.default.oneOfType([g.default.string,x.default.nonNegative,g.default.func]),origin:g.default.shape({x:g.default.number,y:g.default.number}),polar:g.default.bool,renderInPortal:g.default.bool,style:g.default.oneOfType([g.default.object,g.default.array]),text:g.default.oneOfType([g.default.string,g.default.number,g.default.func,g.default.array]),textAnchor:g.default.oneOfType([g.default.oneOf(["start","middle","end","inherit"]),g.default.func]),title:g.default.string,transform:g.default.oneOfType([g.default.string,g.default.object,g.default.func]),verticalAnchor:g.default.oneOfType([g.default.oneOf(["start","middle","end"]),g.default.func]),x:g.default.number,y:g.default.number},N.defaultProps={capHeight:.71,lineHeight:1},e.default=N},function(t,e,n){var r=n(129),a=n(75),i=a(function(t,e,n){r(t,e,n)});t.exports=i},function(t,e,n){function r(t,e,n,s,f){t!==e&&o(e,function(o,c){if(l(o))f||(f=new a),u(t,e,c,n,r,s,f);else{var d=s?s(t[c],o,c+"",t,e,f):void 0;void 0===d&&(d=o),i(t,c,d)}},c)}var a=n(130),i=n(137),o=n(138),u=n(140),l=n(18),c=n(77);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var a=n(131),i=n(132),o=n(134),u=n(135),l=n(136);r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=u,r.prototype.set=l,t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=a(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():o.call(e,n,1),--this.size,!0}var a=n(133),i=Array.prototype,o=i.splice;t.exports=r},function(t,e,n){function r(t,e){for(var n=t.length;n--;)if(a(t[n][0],e))return n;return-1}var a=n(74);t.exports=r},function(t,e,n){function r(t){var e=this.__data__,n=a(e,t);return n<0?void 0:e[n][1]}var a=n(133);t.exports=r},function(t,e,n){function r(t){return a(this.__data__,t)>-1}var a=n(133);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=a(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var a=n(133);t.exports=r},function(t,e,n){function r(t,e,n){(void 0===n||i(t[e],n))&&(void 0!==n||e in t)||a(t,e,n)}var a=n(73),i=n(74);t.exports=r},function(t,e,n){var r=n(139),a=r();t.exports=a},function(t,e){function n(t){return function(e,n,r){for(var a=-1,i=Object(e),o=r(e),u=o.length;u--;){var l=o[t?u:++a];if(n(i[l],l,i)===!1)break}return e}}t.exports=n},function(t,e,n){function r(t,e,n,r,b,m,_){var x=t[n],M=e[n],w=_.get(M);if(w)return void a(t,n,w);var O=m?m(x,M,n+"",t,e,_):void 0,P=void 0===O;if(P){var k=s(M),T=!k&&d(M),A=!k&&!T&&v(M);O=M,k||T||A?s(x)?O=x:f(x)?O=u(x):T?(P=!1,O=i(M,!0)):A?(P=!1,O=o(M,!0)):O=[]:y(M)||c(M)?(O=x,c(x)?O=g(x):(!p(x)||r&&h(x))&&(O=l(M))):P=!1}P&&(_.set(M,O),b(O,M,r,m,_),_.delete(M)),a(t,n,O)}var a=n(137),i=n(141),o=n(142),u=n(41),l=n(145),c=n(80),s=n(81),f=n(146),d=n(82),h=n(94),p=n(18),y=n(54),v=n(85),g=n(147);t.exports=r},function(t,e,n){(function(t){function r(t,e){if(e)return t.slice();var n=t.length,r=c?c(n):new t.constructor(n);return t.copy(r),r}var a=n(19),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=o&&o.exports===i,l=u?a.Buffer:void 0,c=l?l.allocUnsafe:void 0;t.exports=r}).call(e,n(83)(t))},function(t,e,n){function r(t,e){var n=e?a(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var a=n(143);t.exports=r},function(t,e,n){function r(t){var e=new t.constructor(t.byteLength);return new a(e).set(new a(t)),e}var a=n(144);t.exports=r},function(t,e,n){var r=n(19),a=r.Uint8Array;t.exports=a},function(t,e,n){function r(t){return"function"!=typeof t.constructor||o(t)?{}:a(i(t))}var a=n(17),i=n(59),o=n(91);t.exports=r},function(t,e,n){function r(t){return i(t)&&a(t)}var a=n(93),i=n(61);t.exports=r},function(t,e,n){function r(t){return a(t,i(t))}var a=n(71),i=n(77);t.exports=r},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(96),l=r(u),c=n(69),s=r(c),f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),d=n(48),h=r(d),p=n(49),y=r(p),v=n(149),g=r(v),b=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),f(e,[{key:"componentDidMount",value:function(){if(!this.checkedContext){if("function"!=typeof this.context.portalUpdate){var t="`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place";g.default.warn(t),this.renderInPlace=!0}this.checkedContext=!0}this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=this.props.children,e=t&&t.props||{},n=t&&h.default.cloneElement(t,(0,s.default)({},e,(0,l.default)(this.props,"children")));return this.renderPortal(n)}}]),e}(h.default.Component);b.propTypes={children:y.default.node},b.contextTypes={portalDeregister:y.default.func,portalRegister:y.default.func,portalUpdate:y.default.func},e.default=b},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default={warn:function(t){}}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var i=n(151),o=r(i),u=n(94),l=r(u),c=n(149),s=r(c),f=n(49),d=r(f),h=function(t){var e=function(e,n,r,a){var i=n[r];if("undefined"==typeof i||null===i)return e?new Error("Required `"+r+"` was not specified in `"+a+"`."):null;for(var o=arguments.length,u=Array(o>4?o-4:0),l=4;l<o;l++)u[l-4]=arguments[l];return t.apply(void 0,[n,r,a].concat(u))},n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n},p=function(){return null},y=function(){},v=function(t){return"undefined"==typeof t?y:null===t?p:t.constructor},g=function(t){return"undefined"==typeof t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};e.default={deprecated:function(t,e){return function(n,r,i){var o=n[r];return null!==o&&void 0!==o&&s.default.warn('"'+r+'" property of "'+i+'" has been deprecated '+e),d.default.checkPropTypes(a({},r,t),n,r,i)}},allOfType:function(t){return h(function(e,n,r){for(var a=arguments.length,i=Array(a>3?a-3:0),o=3;o<a;o++)i[o-3]=arguments[o];return t.reduce(function(t,a){return t||a.apply(void 0,[e,n,r].concat(i))},void 0)})},nonNegative:h(function(t,e,n){var r=t[e];if("number"!=typeof r||r<0)return new Error("`"+e+"` in `"+n+"` must be a non-negative number.")}),integer:h(function(t,e,n){var r=t[e];if("number"!=typeof r||r%1!==0)return new Error("`"+e+"` in `"+n+"` must be an integer.")}),greaterThanZero:h(function(t,e,n){var r=t[e];if("number"!=typeof r||r<=0)return new Error("`"+e+"` in `"+n+"` must be a number greater than zero.")}),domain:h(function(t,e,n){var r=t[e];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`"+e+"` in `"+n+"` must be an array of two unique numeric values.")}),scale:h(function(t,e,n){var r=["linear","time","log","sqrt"],a=function(t){return(0,l.default)(t)?(0,l.default)(t.copy)&&(0,l.default)(t.domain)&&(0,l.default)(t.range):"string"==typeof t&&r.indexOf(t)!==-1},i=t[e];if(!a(i))return new Error("`"+e+"` in `"+n+"` must be a d3 scale.")}),homogeneousArray:h(function(t,e,n){var r=t[e];if(!Array.isArray(r))return new Error("`"+e+"` in `"+n+"` must be an array.");if(!(r.length<2)){var a=v(r[0]),i=(0,o.default)(r,function(t){return a!==v(t)});if(i){var u=g(r[0]),l=g(i);return new Error("Expected `"+e+"` in `"+n+"` to be a "+("homogeneous array, but found types `"+u+"` and ")+("`"+l+"`."))}}}),matchDataLength:h(function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and "+e+" arrays must match.")})}},function(t,e,n){var r=n(152),a=n(188),i=r(a);t.exports=i},function(t,e,n){function r(t){return function(e,n,r){var u=Object(e);if(!i(e)){var l=a(n,3);e=o(e),n=function(t){return l(u[t],t,u)}}var c=t(e,n,r);return c>-1?u[l?e[c]:c]:void 0}}var a=n(153),i=n(93),o=n(124);t.exports=r},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?u(t)?i(t[0],t[1]):a(t):l(t)}var a=n(154),i=n(180),o=n(4),u=n(81),l=n(185);t.exports=r},function(t,e,n){function r(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||a(n,t,e)}}var a=n(155),i=n(177),o=n(179);t.exports=r},function(t,e,n){function r(t,e,n,r){var l=n.length,c=l,s=!r;if(null==t)return!c;for(t=Object(t);l--;){var f=n[l];if(s&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++l<c;){f=n[l];var d=f[0],h=t[d],p=f[1];if(s&&f[2]){if(void 0===h&&!(d in t))return!1}else{var y=new a;if(r)var v=r(h,p,d,t,e,y);if(!(void 0===v?i(p,h,o|u,r,y):v))return!1}}return!0}var a=n(130),i=n(156),o=1,u=2;t.exports=r},function(t,e,n){function r(t,e,n,o,u){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:a(t,e,n,o,r,u))}var a=n(157),i=n(61);t.exports=r},function(t,e,n){function r(t,e,n,r,v,b){var m=c(t),_=c(e),x=m?p:l(t),M=_?p:l(e);x=x==h?y:x,M=M==h?y:M;var w=x==y,O=M==y,P=x==M;if(P&&s(t)){if(!s(e))return!1;m=!0,w=!1}if(P&&!w)return b||(b=new a),m||f(t)?i(t,e,n,r,v,b):o(t,e,x,n,r,v,b);if(!(n&d)){var k=w&&g.call(t,"__wrapped__"),T=O&&g.call(e,"__wrapped__");if(k||T){var A=k?t.value():t,j=T?e.value():e;return b||(b=new a),v(A,j,n,r,b)}}return!!P&&(b||(b=new a),u(t,e,n,r,v,b))}var a=n(130),i=n(158),o=n(165),u=n(168),l=n(170),c=n(81),s=n(82),f=n(85),d=1,h="[object Arguments]",p="[object Array]",y="[object Object]",v=Object.prototype,g=v.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e,n,r,c,s){var f=n&u,d=t.length,h=e.length;if(d!=h&&!(f&&h>d))return!1;var p=s.get(t);if(p&&s.get(e))return p==e;var y=-1,v=!0,g=n&l?new a:void 0;for(s.set(t,e),s.set(e,t);++y<d;){var b=t[y],m=e[y];if(r)var _=f?r(m,b,y,e,t,s):r(b,m,y,t,e,s);if(void 0!==_){if(_)continue;v=!1;break}if(g){if(!i(e,function(t,e){if(!o(g,e)&&(b===t||c(b,t,n,r,s)))return g.push(e)})){v=!1;break}}else if(b!==m&&!c(b,m,n,r,s)){v=!1;break}}return s.delete(t),s.delete(e),v}var a=n(159),i=n(163),o=n(164),u=1,l=2;t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new a;++e<n;)this.add(t[e])}var a=n(160),i=n(161),o=n(162);r.prototype.add=r.prototype.push=i,r.prototype.has=o,t.exports=r},130,function(t,e){function n(t){return this.__data__.set(t,r),this}var r="__lodash_hash_undefined__";t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}t.exports=n},function(t,e){function n(t,e){return t.has(e)}t.exports=n},function(t,e,n){function r(t,e,n,r,a,w,P){switch(n){case M:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!w(new i(t),new i(e)));case d:case h:case v:return o(+t,+e);case p:return t.name==e.name&&t.message==e.message;case g:case m:return t==e+"";case y:var k=l;case b:var T=r&s;if(k||(k=c),t.size!=e.size&&!T)return!1;var A=P.get(t);if(A)return A==e;r|=f,P.set(t,e);var j=u(k(t),k(e),r,a,w,P);return P.delete(t),j;case _:if(O)return O.call(t)==O.call(e)}return!1}var a=n(56),i=n(144),o=n(74),u=n(158),l=n(166),c=n(167),s=1,f=2,d="[object Boolean]",h="[object Date]",p="[object Error]",y="[object Map]",v="[object Number]",g="[object RegExp]",b="[object Set]",m="[object String]",_="[object Symbol]",x="[object ArrayBuffer]",M="[object DataView]",w=a?a.prototype:void 0,O=w?w.valueOf:void 0;t.exports=r},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},function(t,e,n){function r(t,e,n,r,o,l){var c=n&i,s=a(t),f=s.length,d=a(e),h=d.length;if(f!=h&&!c)return!1;for(var p=f;p--;){var y=s[p];if(!(c?y in e:u.call(e,y)))return!1}var v=l.get(t);if(v&&l.get(e))return v==e;var g=!0;l.set(t,e),l.set(e,t);for(var b=c;++p<f;){y=s[p];var m=t[y],_=e[y];if(r)var x=c?r(_,m,y,e,t,l):r(m,_,y,t,e,l);if(!(void 0===x?m===_||o(m,_,n,r,l):x)){g=!1;break}b||(b="constructor"==y)}if(g&&!b){var M=t.constructor,w=e.constructor;M!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof M&&M instanceof M&&"function"==typeof w&&w instanceof w)&&(g=!1)}return l.delete(t),l.delete(e),g}var a=n(169),i=1,o=Object.prototype,u=o.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){return a(t,o,i)}var a=n(118),i=n(120),o=n(124);t.exports=r},function(t,e,n){var r=n(171),a=n(172),i=n(173),o=n(174),u=n(175),l=n(55),c=n(176),s="[object Map]",f="[object Object]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",y="[object DataView]",v=c(r),g=c(a),b=c(i),m=c(o),_=c(u),x=l;(r&&x(new r(new ArrayBuffer(1)))!=y||a&&x(new a)!=s||i&&x(i.resolve())!=d||o&&x(new o)!=h||u&&x(new u)!=p)&&(x=function(t){var e=l(t),n=e==f?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return y;case g:return s;case b:return d;case m:return h;case _:return p}return e}),t.exports=x},function(t,e,n){var r=n(11),a=n(19),i=r(a,"DataView");t.exports=i},function(t,e,n){var r=n(11),a=n(19),i=r(a,"Map");t.exports=i},function(t,e,n){var r=n(11),a=n(19),i=r(a,"Promise");t.exports=i},function(t,e,n){var r=n(11),a=n(19),i=r(a,"Set");t.exports=i},function(t,e,n){var r=n(11),a=n(19),i=r(a,"WeakMap");t.exports=i},function(t,e){function n(t){if(null!=t){try{return a.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var r=Function.prototype,a=r.toString;t.exports=n},function(t,e,n){function r(t){for(var e=i(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,a(o)]}return e}var a=n(178),i=n(124);t.exports=r},function(t,e,n){function r(t){return t===t&&!a(t)}var a=n(18);t.exports=r},function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},function(t,e,n){function r(t,e){return u(t)&&l(e)?c(s(t),e):function(n){var r=i(n,t);return void 0===r&&r===e?o(n,t):a(e,r,f|d)}}var a=n(156),i=n(181),o=n(182),u=n(101),l=n(178),c=n(179),s=n(109),f=1,d=2;t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?void 0:a(t,e);return void 0===r?n:r}var a=n(108);t.exports=r},function(t,e,n){function r(t,e){return null!=t&&i(t,e,a)}var a=n(183),i=n(184);t.exports=r},function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},function(t,e,n){function r(t,e,n){e=a(e,t);for(var r=-1,s=e.length,f=!1;++r<s;){var d=c(e[r]);if(!(f=null!=t&&n(t,d)))break;t=t[d]}return f||++r!=s?f:(s=null==t?0:t.length,!!s&&l(s)&&u(d,s)&&(o(t)||i(t)))}var a=n(100),i=n(80),o=n(81),u=n(42),l=n(87),c=n(109);t.exports=r},function(t,e,n){function r(t){return o(t)?a(u(t)):i(t)}var a=n(186),i=n(187),o=n(101),u=n(109);t.exports=r},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},function(t,e,n){function r(t){return function(e){return a(e,t)}}var a=n(108);t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var l=null==n?0:o(n);return l<0&&(l=u(r+l,0)),a(t,i(e,3),l)}var a=n(36),i=n(153),o=n(47),u=Math.max;t.exports=r},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(190),o=r(i);e.default={isNonEmptyArray:function(t){return Array.isArray(t)&&t.length>0},containsStrings:function(t){return Array.isArray(t)&&t.some(function(t){return"string"==typeof t})},containsDates:function(t){return Array.isArray(t)&&t.some(function(t){return t instanceof Date})},containsNumbers:function(t){return Array.isArray(t)&&t.some(function(t){return"number"==typeof t})},containsOnlyStrings:function(t){return this.isNonEmptyArray(t)&&t.every(function(t){return"string"==typeof t})},isArrayOfArrays:function(t){return this.isNonEmptyArray(t)&&t.every(Array.isArray)},removeUndefined:function(t){return t.filter(function(t){return void 0!==t})},getMaxValue:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=t.concat(n);return this.containsDates(i)?new Date(Math.max.apply(Math,a(i))):Math.max.apply(Math,a(i))},getMinValue:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=t.concat(n);return this.containsDates(i)?new Date(Math.min.apply(Math,a(i))):Math.min.apply(Math,a(i))},splitArray:function(t,e){var n=0,r=t.reduce(function(r,a,i){return e(a)?(r=r.concat([t.slice(n,i)]),n=i+1):i===t.length-1&&(r=r.concat([t.slice(n,t.length)])),r},[]);return r.filter(function(t){return Array.isArray(t)&&t.length>0})},allSetsEqual:function(t){return t.every(function(t){return(0,o.default)(t[0],t[1])})}}},function(t,e,n){function r(t,e){return a(t,e)}var a=n(156);t.exports=r},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(192),i=r(a),o=n(96),u=r(o),l=n(185),c=r(l),s=n(94),f=r(s),d=n(69),h=r(d),p=n(189),y=r(p),v=n(48),g=r(v);e.default={getPoint:function(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,a=t._x0,i=t._voronoiX,o=t._y,u=t._y1,l=t._y0,c=t._voronoiY,s=e(r)?r:n,f=e(u)?u:o;return{x:e(i)?i:s,x0:e(a)?a:n,y:e(c)?c:f,y0:e(l)?l:o}},scalePoint:function(t,e){var n=t.scale,r=t.polar,a=this.getPoint(e),i=t.origin||{x:0,y:0},o=n.x(a.x),u=n.x(a.x0),l=n.y(a.y),c=n.y(a.y0);return{x:r?l*Math.cos(o)+i.x:o,x0:r?c*Math.cos(u)+i.x:u,y:r?-l*Math.sin(o)+i.y:l,y0:r?-c*Math.sin(u)+i.x:c}},getPadding:function(t){var e="number"==typeof t.padding?t.padding:0,n="object"==typeof t.padding?t.padding:{};return{top:n.top||e,bottom:n.bottom||e,left:n.left||e,right:n.right||e}},getStyles:function(t,e){var n="100%",r="100%";if(!t)return(0,h.default)({parent:{height:r,width:n}},e);var a=t.data,i=t.labels,o=t.parent,u=e&&e.parent||{},l=e&&e.labels||{},c=e&&e.data||{};return{parent:(0,h.default)({},o,u,{width:n,height:r}),labels:(0,h.default)({},i,l),data:(0,h.default)({},a,c)}},evaluateProp:function(t,e,n){return(0,f.default)(t)?t(e,n):t},evaluateStyle:function(t,e,n){var r=this;return t&&Object.keys(t).some(function(e){return(0,f.default)(t[e])})?Object.keys(t).reduce(function(a,i){return a[i]=r.evaluateProp(t[i],e,n),a},{}):t},degreesToRadians:function(t){return t*(Math.PI/180)},radiansToDegrees:function(t){return t/(Math.PI/180)},getRadius:function(t){var e=this.getPadding(t),n=e.left,r=e.right,a=e.top,i=e.bottom,o=t.width,u=t.height;return Math.min(o-n-r,u-a-i)/2},getPolarOrigin:function(t){var e=t.width,n=t.height,r=this.getPadding(t),a=r.top,i=r.bottom,o=r.left,u=r.right,l=Math.min(e-o-u,n-a-i)/2,c=e/2+o-u,s=n/2+a-i;return{x:c+l>e?l+o-u:c,y:s+l>n?l+a-i:s}},getRange:function(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?this.getPolarRange(t,e):this.getCartesianRange(t,e)},getCartesianRange:function(t,e){var n="x"!==e,r=this.getPadding(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]},getPolarRange:function(t,e){if("x"===e){var n=this.degreesToRadians(t.startAngle||0),r=this.degreesToRadians(t.endAngle||360);return[n,r]}return[t.innerRadius||0,this.getRadius(t)]},createAccessor:function(t){return(0,f.default)(t)?t:null===t||"undefined"==typeof t?function(t){return t}:(0,c.default)(t)},modifyProps:function(t,e,n){var r=t.theme&&t.theme[n]?t.theme[n]:{},a=(0,u.default)(r,["style"]);return(0,h.default)({},t,a,e)},getCurrentAxis:function(t,e){var n="x"===t?"y":"x";return e?n:t},isVertical:function(t){var e=t.orientation||(t.dependentAxis?"left":"bottom"),n={top:!1,bottom:!1,left:!0,right:!0};return n[e]},stringTicks:function(t){return void 0!==t.tickValues&&y.default.containsStrings(t.tickValues)},reduceChildren:function(t,e){var n=0,r=function t(r,a){return(0,i.default)(r,function(r,i){var o=i.props.name||n;if(n++,i.props&&i.props.children){var u=g.default.Children.toArray(i.props.children),l=t(u,i);r=r.concat(l)}else{var c=e(i,o,a);r=c?r.concat(c):r}return r},[])};return r(t)}}},function(t,e){function n(t,e,n,r){var a=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++a]);++a<i;)n=e(n,t[a],a,t);return n}t.exports=n},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(191),i=r(a);e.default={getText:function(t,e,n){return void 0!==e.label?e.label:Array.isArray(t.labels)?t.labels[n]:t.labels},getVerticalAnchor:function(t,e){var n=e._y>=0?1:-1,r=t.style&&t.style.labels||{};return e.getVerticalAnchor||r.verticalAnchor?e.getVerticalAnchor||r.verticalAnchor:t.horizontal?"middle":n>=0?"end":"start"},getTextAnchor:function(t,e){var n=t.style,r=t.horizontal,a=e._y>=0?1:-1,i=n&&n.labels||{};return e.getVerticalAnchor||i.verticalAnchor?e.getVerticalAnchor||i.verticalAnchor:r?a>=0?"start":"end":"middle"},getAngle:function(t,e){var n=t.style&&t.style.labels||{};return e.angle||n.angle},getPadding:function(t,e){var n=t.horizontal,r=t.style,a=r.labels||{},i=a.padding||0,o=e._y<0?-1:1;return{x:n?o*i:0,y:n?0:o*i}},getPosition:function(t,e){var n=t.horizontal,r=t.polar,a=i.default.scalePoint(t,e),o=a.x,u=a.y,l=this.getPadding(t,e);if(r){var c=this.getDegrees(t,e),s=this.getPolarPadding(t,c);return{x:o+s.x,y:u+s.y}}return{x:n?u+l.x:o+l.x,y:n?o+l.y:u-l.y}},getPolarPadding:function(t,e){var n=t.style.labels||{},r=n.padding||0,a=i.default.degreesToRadians(e);return{x:r*Math.cos(a),y:-r*Math.sin(a)}},getLabelPlacement:function(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar,a=r?"perpendicular":"vertical";return n?n:e.props&&e.props.labelPlacement||a},getPolarOrientation:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"},getPolarTextAnchor:function(t,e){var n=this.getLabelPlacement(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"},getPolarVerticalAnchor:function(t,e){var n=this.getLabelPlacement(t),r=this.getPolarOrientation(e);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"},getPolarAngle:function(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var a=void 0!==e?e:this.getDegrees(t,r),i=a>90&&a<180||a>270?1:-1,o=void 0;0===a||180===a?o=90:a>0&&a<180?o=90-a:a>180&&a<360&&(o=270-a);var u="perpendicular"===n?0:90;return o+i*u},getDegrees:function(t,e){var n=i.default.getPoint(e),r=n.x;return i.default.radiansToDegrees(t.scale.x(r))},getProps:function(t,e){var n=t.scale,r=t.data,a=t.style,i=t.horizontal,o=t.polar,u=r[e],l=this.getDegrees(t,u),c=o?this.getPolarTextAnchor(t,l):this.getTextAnchor(t,u),s=o?this.getPolarVerticalAnchor(t,l):this.getVerticalAnchor(t,u),f=this.getAngle(t,u),d=this.getText(t,u,e),h=this.getLabelPlacement(t),p=this.getPosition(t,u),y=p.x,v=p.y;return{angle:f,data:r,datum:u,horizontal:i,index:e,polar:o,scale:n,labelPlacement:h,text:d,textAnchor:c,verticalAnchor:s,x:y,y:v,style:a.labels}}}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function t(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(r.length>0)return r.reduce(function(e,n){return[e,t(n)].join(" ")},t(e));if(!e||"string"==typeof e)return e;var i=[];for(var o in e)if(e.hasOwnProperty(o)){var u=e[o];i.push(o+"("+u+")")}return i.join(" ")};e.default={toTransformString:n,getColorScale:function(t){var e={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(196),l=r(u),c=n(94),s=r(c),f=n(69),d=r(f),h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p="src/victory-transition/victory-transition.js",y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=n(48),g=r(v),b=n(49),m=r(b),_=n(51),x=r(_),M=n(189),w=r(M),O=n(191),P=r(O),k=n(64),T=r(k),A=n(200),j=r(A),E=function(t){function e(t){a(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));n.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var r=n.props.children,o=r.props.polar;return n.continuous=!o&&r.type&&r.type.continuous===!0,n.getTransitionState=n.getTransitionState.bind(n),n.getTimer=n.getTimer.bind(n),n}return o(e,t),y(e,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"componentWillReceiveProps",value:function(t){var e=this;this.getTimer().bypassAnimation(),this.setState(this.getTransitionState(this.props,t),function(){return e.getTimer().resumeAnimation()})}},{key:"componentWillUnmount",value:function(){this.getTimer().stop()}},{key:"getTimer",value:function(){return this.context.getTimer?this.context.getTimer():(this.timer||(this.timer=new T.default),this.timer)}},{key:"getTransitionState",value:function(t,e){var n=t.animate;if(n){if(n.parentState){var r=n.parentState,a=r.nodesWillExit?t:null;return{oldProps:a,nextProps:e}}var i=g.default.Children.toArray(t.children),o=g.default.Children.toArray(e.children),u=j.default.getInitialTransitionState(i,o),l=u.nodesWillExit,c=u.nodesWillEnter,s=u.childrenTransitions,f=u.nodesShouldEnter;return{nodesWillExit:l,nodesWillEnter:c,childrenTransitions:s,nodesShouldEnter:f,oldProps:l?t:null,nextProps:e}}return{}}},{key:"getDomainFromChildren",value:function(t,e){var n=function t(n){return n.reduce(function(n,r){if(r.type&&(0,s.default)(r.type.getDomain)){var a=r.props&&r.type.getDomain(r.props,e);return a?n.concat(a):n}return r.props&&r.props.children?n.concat(t(g.default.Children.toArray(r.props.children))):n},[])},r=g.default.Children.toArray(t.children)[0],a=r.props||{},i=Array.isArray(a.domain)?a.domain:a.domain&&a.domain[e];if(!a.children&&i)return i;var o=n([r]);return 0===o.length?[0,1]:[w.default.getMinValue(o),w.default.getMaxValue(o)]}},{key:"pickProps",value:function(){return this.state&&this.state.nodesWillExit?this.state.oldProps||this.props:this.props}},{key:"pickDomainProps",value:function(t){var e=t.animate&&t.animate.parentState;return e&&e.nodesWillExit?this.continous||e.continuous?e.nextProps||this.state.nextProps||t:t:this.continuous&&this.state.nodesWillExit?this.state.nextProps||t:t}},{key:"getClipWidth",value:function(t,e){var n=function(){var n=P.default.getRange(e.props,"x");return n?Math.abs(n[1]-n[0]):t.width},r=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==r?r:n()}},{key:"render",value:function(){var t=this,e=this.pickProps(),n=this.props.animate&&this.props.animate.getTransitions?this.props.animate.getTransitions:j.default.getTransitionPropsFactory(e,this.state,function(e){return t.setState(e)}),r=g.default.Children.toArray(e.children)[0],a=n(r);this.transitionProps=a;var i={x:this.getDomainFromChildren(this.pickDomainProps(e),"x"),y:this.getDomainFromChildren(e,"y")
|
|
4
|
-
},o=this.getClipWidth(e,r),u=(0,d.default)({domain:i,clipWidth:o},a,r.props),c=e.animationWhitelist||[],s=c.concat(["clipWidth"]),f=s.length?(0,l.default)(u,s):u;return g.default.createElement(x.default,h({},u.animate,{data:f,__source:{fileName:p,lineNumber:158}}),function(e){if(r.props.groupComponent){var n=t.continuous?g.default.cloneElement(r.props.groupComponent,{clipWidth:e.clipWidth||0}):r.props.groupComponent;return g.default.cloneElement(r,(0,d.default)({animate:null,groupComponent:n},e,u))}return g.default.cloneElement(r,(0,d.default)({animate:null},e,u))})}}]),e}(g.default.Component);E.displayName="VictoryTransition",E.propTypes={animate:m.default.object,animationWhitelist:m.default.array,children:m.default.node},e.default=E},function(t,e,n){var r=n(197),a=n(112),i=a(function(t,e){return null==t?{}:r(t,e)});t.exports=i},function(t,e,n){function r(t,e){return a(t,e,function(e,n){return i(t,n)})}var a=n(198),i=n(182);t.exports=r},function(t,e,n){function r(t,e,n){for(var r=-1,u=e.length,l={};++r<u;){var c=e[r],s=a(t,c);n(s,c)&&i(l,o(c,t),s)}return l}var a=n(108),i=n(199),o=n(100);t.exports=r},function(t,e,n){function r(t,e,n,r){if(!u(t))return t;e=i(e,t);for(var c=-1,s=e.length,f=s-1,d=t;null!=d&&++c<s;){var h=l(e[c]),p=n;if(c!=f){var y=d[h];p=r?r(y,h,d):void 0,void 0===p&&(p=u(y)?y:o(e[c+1])?[]:{})}a(d,h,p),d=d[h]}return t}var a=n(72),i=n(100),o=n(42),u=n(18),l=n(109);t.exports=r},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){return(t.key||e).toString()}function i(t){return t.reduce(function(t,e,n){var r=a(e,n);return t[r]=e,t},{})}function o(t,e){var n=!1,r=Object.keys(t).reduce(function(t,r){return r in e||(n=!0,t[r]=!0),t},{});return n&&r}function u(t,e){var n=t&&i(t),r=e&&i(e);return{entering:n&&o(r,n),exiting:r&&o(n,r)}}function l(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function c(t,e){var n=!1,r=!1,a=function(t,e){if(!e||t.type!==e.type)return{};var a=u(l(t),l(e))||{},i=a.entering,o=a.exiting;return n=n||!!o,r=r||!!i,{entering:i||!1,exiting:o||!1}},i=function t(e,n){return e.map(function(r,i){return r&&r.props&&r.props.children?t(O.default.Children.toArray(e[i].props.children),O.default.Children.toArray(n[i].props.children)):a(r,n[i])})},o=i(O.default.Children.toArray(t),O.default.Children.toArray(e));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:o,nodesShouldEnter:!1}}function s(t,e){var n=t.onEnter&&t.onEnter.after?t.onEnter.after:b.default;return{data:e.map(function(t,r){return(0,M.default)({},t,n(t,r,e))})}}function f(t,e,n,r){if(t=(0,M.default)({},t,{onEnd:r}),t&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:n};var a=t.onLoad&&t.onLoad.before?t.onLoad.before:b.default;return n=n.map(function(t,e){return(0,M.default)({},t,a(t,e,n))}),{animate:t,data:n,clipWidth:0}}function d(t,e,n){if(t=(0,M.default)({},t,{onEnd:n}),t&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:e};var r=t.onLoad&&t.onLoad.after?t.onLoad.after:b.default;return e=e.map(function(t,n){return(0,M.default)({},t,r(t,n,e))}),{animate:t,data:e}}function h(t,e,n,r,a){var i=t&&t.onExit;if(t=(0,M.default)({},t,i),r){t.onEnd=a;var o=t.onExit&&t.onExit.before?t.onExit.before:b.default;n=n.map(function(t,e){var a=(t.key||e).toString();return r[a]?(0,M.default)({},t,o(t,e,n)):t})}return{animate:t,data:n}}function p(t,e,n,r,a){if(r){t=(0,M.default)({},t,{onEnd:a});var i=t.onEnter&&t.onEnter.before?t.onEnter.before:b.default;n=n.map(function(t,e){var a=(t.key||e).toString();return r[a]?(0,M.default)({},t,i(t,e,n)):t})}return{animate:t,data:n}}function y(t,e,n,r){var i=t&&t.onEnter;if(t=(0,M.default)({},t,i),n){t.onEnd=r;var o=t.onEnter&&t.onEnter.after?t.onEnter.after:b.default;e=e.map(function(t,r){var i=a(t,r);return n[i]?(0,M.default)({},t,o(t,r,e)):t})}return{animate:t,data:e}}function v(t,e,n){var r=e&&e.nodesWillExit,a=e&&e.nodesWillEnter,i=e&&e.nodesShouldEnter,o=e&&e.nodesShouldLoad,u=e&&e.nodesDoneLoad,c=e&&e.childrenTransitions||[],v={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},g=function(t,e,r){return o?d(r,e,function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):f(r,t,e,function(){n({nodesDoneLoad:!0})})},b=function(t,e,r,a){return h(a,e,r,t,function(){n({nodesWillExit:!1})})},m=function(t,e,r,a){return i?y(a,r,t,function(){n({nodesWillEnter:!1})}):p(a,e,r,t,function(){n({nodesShouldEnter:!0})})},x=function(t,e){var n=t.props.animate;if(!t.type)return{};var r=t.props&&t.props.polar?t.type.defaultPolarTransitions||t.type.defaultTransitions:t.type.defaultTransitions;if(r){var a=n[e]&&n[e].duration;return void 0!==a?a:r[e]&&r[e].duration}return{}};return function(n,o){var f=l(n)||[],d=(0,_.default)({},t.animate,n.props.animate),h=n.props.polar?n.type.defaultPolarTransitions||n.type.defaultTransitions:n.type.defaultTransitions;d.onExit=(0,_.default)({},d.onExit,h&&h.onExit),d.onEnter=(0,_.default)({},d.onEnter,h&&h.onEnter),d.onLoad=(0,_.default)({},d.onLoad,h&&h.onLoad);var p=c[o]||c[0];if(!u){var y=void 0!==v.load?v.load:x(n,"onLoad"),w={duration:y};return g(n,f,(0,M.default)({},d,w))}if(r){var O=p&&p.exiting,P=void 0!==v.exit?v.exit:x(n,"onExit"),k=O?{duration:P}:{delay:P};return b(O,n,f,(0,M.default)({},d,k))}if(a){var T=p&&p.entering,A=void 0!==v.enter?v.enter:x(n,"onEnter"),j=void 0!==v.move?v.move:n.props.animate&&n.props.animate.duration,E={duration:i&&T?A:j};return m(T,n,f,(0,M.default)({},d,E))}return!e&&d&&d.onExit?s(d,f):{animate:d,data:f}}}Object.defineProperty(e,"__esModule",{value:!0});var g=n(4),b=r(g),m=n(69),_=r(m),x=n(123),M=r(x),w=n(48),O=r(w);e.default={getInitialTransitionState:c,getTransitionPropsFactory:v}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(202),c=r(l),s=n(69),f=r(s),d=n(2),h=r(d),p=n(94),y=r(p),v=n(123),g=r(v),b="src/victory-shared-events/victory-shared-events.js",m=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),_=n(48),x=r(_),M=n(49),w=r(M),O=n(150),P=r(O),k=n(203),T=r(k),A=n(191),j=r(A),E=n(64),S=r(E),C=function(t){function e(){i(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.state=t.state||{},t.getScopedEvents=T.default.getScopedEvents.bind(t),t.getEventState=T.default.getEventState.bind(t),t.getTimer=t.getTimer.bind(t),t}return u(e,t),m(e,[{key:"getChildContext",value:function(){return{getTimer:this.getTimer}}},{key:"componentWillMount",value:function(){this.setUpChildren(this.props)}},{key:"componentWillReceiveProps",value:function(t){this.setUpChildren(t)}},{key:"getTimer",value:function(){return this.context.getTimer?this.context.getTimer():(this.timer||(this.timer=new S.default),this.timer)}},{key:"getAllEvents",value:function(t){var e=["container","groupComponent"];if(this.componentEvents=T.default.getComponentEvents(t,e),Array.isArray(this.componentEvents)){var n;return Array.isArray(t.events)?(n=this.componentEvents).concat.apply(n,a(t.events)):this.componentEvents}return t.events}},{key:"setUpChildren",value:function(t){if(this.events=this.getAllEvents(t),this.events){this.childComponents=x.default.Children.toArray(t.children);var e=this.getBasePropsFromChildren(this.childComponents),n=t.container?t.container.props:{};this.baseProps=(0,g.default)({},e,{parent:n})}}},{key:"getBasePropsFromChildren",value:function(t){var e=function(t,e,n){if(t.type&&(0,y.default)(t.type.getBaseProps)){t=n?x.default.cloneElement(t,n.props):t;var r=t.props&&t.type.getBaseProps(t.props);return r?[[e,r]]:null}return null},n=j.default.reduceChildren(t,e);return(0,c.default)(n)}},{key:"getNewChildren",value:function(t){var e=this,n=t.events,r=t.eventKey,a=Object.keys(this.baseProps),i=function t(i){return i.reduce(function(i,o,u){if(o.props.children)return i.concat(x.default.cloneElement(o,o.props,t(x.default.Children.toArray(o.props.children))));if(o.type&&(0,y.default)(o.type.getBaseProps)){var l=o.props.name||a.shift()||u,c=Array.isArray(n)&&n.filter(function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(l)>-1:t.childName===l||"all"===t.childName)}),s={events:c,getEvents:(0,h.default)(e.getScopedEvents,l,e.baseProps),getEventState:(0,h.default)(e.getEventState,l)};return i.concat(x.default.cloneElement(o,(0,g.default)({key:"events-"+l,sharedEvents:s,eventKey:r},o.props)))}return i.concat(o)},[])};return i(this.childComponents)}},{key:"getContainer",value:function(t,e){var n=Array.isArray(this.events)&&this.events.filter(function(t){return"parent"===t.target}),r=n.length>0?{events:n,getEvents:(0,h.default)(this.getScopedEvents,null,this.baseProps),getEventState:(0,h.default)(this.getEventState,null)}:null,a=this.props.container||this.props.groupComponent,i=a.props||{},o=T.default.getEvents.bind(this),u=r&&o({sharedEvents:r},"parent"),l=(0,f.default)({},this.getEventState("parent","parent"),i,this.baseProps.parent,{children:e}),c=(0,f.default)({},T.default.getPartialEvents(u,"parent",l),i.events);return x.default.cloneElement(a,(0,g.default)({},l,{events:c}))}},{key:"render",value:function(){if(this.events){var t=this.getNewChildren(this.props);return this.getContainer(this.props,t)}return x.default.cloneElement(this.props.container,{children:this.props.children})}}]),e}(x.default.Component);C.displayName="VictorySharedEvents",C.role="shared-event-wrapper",C.propTypes={children:w.default.oneOfType([w.default.arrayOf(w.default.node),w.default.node]),container:w.default.node,eventKey:w.default.oneOfType([w.default.array,w.default.func,P.default.allOfType([P.default.integer,P.default.nonNegative]),w.default.string]),events:w.default.arrayOf(w.default.shape({childName:w.default.oneOfType([w.default.string,w.default.array]),eventHandlers:w.default.object,eventKey:w.default.oneOfType([w.default.array,w.default.func,P.default.allOfType([P.default.integer,P.default.nonNegative]),w.default.string]),target:w.default.string})),groupComponent:w.default.node},C.defaultProps={groupComponent:x.default.createElement("g",{__source:{fileName:b,lineNumber:44}})},C.contextTypes={getTimer:w.default.func},C.childContextTypes={getTimer:w.default.func},e.default=C},function(t,e){function n(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var a=t[e];r[a[0]]=a[1]}return r}t.exports=n},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(204),u=r(o),l=n(94),c=r(l),s=n(207),f=r(s),d=n(209),h=r(d),p=n(128),y=r(p),v=n(210),g=r(v),b=n(123),m=r(b);e.default={getEvents:function(t,e,n,r){var a=this,o=function(t){var r=function(){var r=t.reduce(function(t,n){return void 0!==n.target?""+n.target==""+e?t.concat(n):t:t.concat(n)},[]);return void 0!==n&&"parent"!==e?r.filter(function(t){var e=t.eventKey,r=function(t){return!t||""+t==""+n};return Array.isArray(e)?e.some(function(t){return r(t)}):r(e)}):r},a=r();return Array.isArray(a)&&a.reduce(function(t,e){return e?(0,m.default)(t,e.eventHandlers):t},{})},u=function(){if(Array.isArray(a.componentEvents)){var e;return Array.isArray(t.events)?(e=a.componentEvents).concat.apply(e,i(t.events)):a.componentEvents}return t.events},l=u(),s=l&&(0,c.default)(r)?r(o(l),e):void 0;if(!t.sharedEvents)return s;var f=t.sharedEvents.getEvents,d=t.sharedEvents.events&&f(o(t.sharedEvents.events),e);return(0,m.default)({},d,s)},getScopedEvents:function(t,e,n,r){var i=this;if((0,f.default)(t))return{};r=r||this.baseProps;var o=function(t,e){var n=t.childName,a=t.target,o=t.key,u="props"===e?r:i.state,l=void 0!==n&&null!==n&&u[n]?u[n]:u;return"parent"===o?l.parent:l[o]&&l[o][a]},l=function(t,l){var c="parent"===e?t.childName:t.childName||n,s=t.target||e,f=function(e){return"all"===t.eventKey?r[e]?(0,u.default)(Object.keys(r[e]),"parent"):(0,u.default)(Object.keys(r),"parent"):void 0===t.eventKey&&"parent"===l?r[e]?Object.keys(r[e]):Object.keys(r):void 0!==t.eventKey?t.eventKey:l},d=function(e,n){var u=function(){return null},l=o({childName:n,key:e,target:s},"props"),c=o({childName:n,key:e,target:s},"state"),f=t.mutation||u,d=f((0,m.default)({},l,c),r),h=i.state[n]||{},p=function(t){return"parent"===s?(0,g.default)(t[e],d):(0,g.default)(t[e],a({},s,d))};return void 0!==n&&null!==n?(0,g.default)(i.state,a({},n,(0,g.default)(h,a({},e,p(h))))):(0,g.default)(i.state,a({},e,p(i.state)))},h=function(t){var e=f(t);return Array.isArray(e)?e.reduce(function(e,n){return(0,m.default)(e,d(n,t))},{}):d(e,t)},p="all"===c?(0,u.default)(Object.keys(r),"parent"):c;return Array.isArray(p)?p.reduce(function(t,e){return(0,m.default)(t,h(e))},{}):h(p)},s=function(t,e){return Array.isArray(t)?t.reduce(function(t,n){return t=(0,y.default)({},t,l(n,e))},{}):l(t,e)},d=function(t){var e=function(t){return(0,c.default)(t.callback)&&t.callback},n=Array.isArray(t)?t.map(function(t){return e(t)}):[e(t)],r=n.filter(function(t){return t!==!1});return r.length?function(){return r.forEach(function(t){return t()})}:void 0},h=function(e,n,r,a){var o=t[a](e,n,r,i);if(o){var u=d(o);i.setState(s(o,r),u)}};return Object.keys(t).reduce(function(t,e){return t[e]=h,t},{})},getPartialEvents:function(t,e,n){return t?Object.keys(t).reduce(function(r,a){return r[a]=(0,h.default)(t[a],h.default.placeholder,n,e,a),r},{}):{}},getEventState:function(t,e,n){return n?this.state[n]&&this.state[n][t]&&this.state[n][t][e]:"parent"===t?this.state[t]&&this.state[t][e]||this.state[t]:this.state[t]&&this.state[t][e]},getComponentEvents:function(t,e){var n=Array.isArray(e)&&e.reduce(function(e,n){var r,a=t[n],o=a&&a.type&&a.type.defaultEvents;return e=Array.isArray(o)?(r=e).concat.apply(r,i(o)):e},[]);return n&&n.length?n:void 0}}},function(t,e,n){var r=n(205),a=n(3),i=n(146),o=a(function(t,e){return i(t)?r(t,e):[]});t.exports=o},function(t,e,n){function r(t,e,n,r){var f=-1,d=i,h=!0,p=t.length,y=[],v=e.length;if(!p)return y;n&&(e=u(e,l(n))),r?(d=o,h=!1):e.length>=s&&(d=c,h=!1,e=new a(e));t:for(;++f<p;){var g=t[f],b=null==n?g:n(g);if(g=r||0!==g?g:0,h&&b===b){for(var m=v;m--;)if(e[m]===b)continue t;y.push(g)}else d(e,b,r)||y.push(g)}return y}var a=n(159),i=n(34),o=n(206),u=n(97),l=n(88),c=n(164),s=200;t.exports=r},function(t,e){function n(t,e,n){for(var r=-1,a=null==t?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1}t.exports=n},function(t,e,n){function r(t){if(null==t)return!0;if(l(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||f(t)||o(t)))return!t.length;var e=i(t);if(e==d||e==h)return!t.size;if(s(t))return!a(t).length;for(var n in t)if(y.call(t,n))return!1;return!0}var a=n(208),i=n(170),o=n(80),u=n(81),l=n(93),c=n(82),s=n(91),f=n(85),d="[object Map]",h="[object Set]",p=Object.prototype,y=p.hasOwnProperty;t.exports=r},124,function(t,e,n){var r=n(3),a=n(13),i=n(39),o=n(43),u=32,l=r(function(t,e){var n=o(e,i(l));return a(t,u,void 0,e,n)});l.placeholder={},t.exports=l},function(t,e,n){t.exports=n(211)},function(t,e,n){var r=n(71),a=n(75),i=n(77),o=a(function(t,e){r(e,i(e),t)});t.exports=o},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(94),c=r(l),s=n(69),f=r(s),d=n(123),h=r(d),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y="src/victory-clip-container/victory-clip-container.js",v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=n(48),b=r(g),m=n(49),_=r(m),x=n(213),M=r(x),w=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.clipId=void 0!==t.clipId?t.clipId:Math.round(1e4*Math.random()),n}return u(e,t),v(e,[{key:"renderClippedGroup",value:function(t,e){var n=t.style,r=t.events,a=t.transform,i=t.children,o=t.className,u=this.renderClipComponent(t,e);return b.default.createElement("g",p({className:o,style:n},r,{transform:a,__source:{fileName:y,lineNumber:49}}),u,b.default.createElement("g",{clipPath:"url(#"+e+")",__source:{fileName:y,lineNumber:56}},i))}},{key:"renderGroup",value:function(t){var e=t.style,n=t.events,r=t.transform,a=t.children,i=t.className;return b.default.createElement("g",p({className:i,style:e},n,{transform:r,__source:{fileName:y,lineNumber:67}}),a)}},{key:"renderClipComponent",value:function(t,e){return b.default.cloneElement(t.clipPathComponent,(0,h.default)({},t,{clipId:e}))}},{key:"getClipValue",value:function(t,e){var n={x:t.clipWidth,y:t.clipHeight};if(void 0!==n[e])return n[e];var r=this.getRange(t,e);return r?Math.abs(r[0]-r[1])||void 0:void 0}},{key:"getTranslateValue",value:function(t,e){var n={x:t.translateX,y:t.translateY};if(void 0!==n[e])return n[e];var r=this.getRange(t,e);return r?Math.min.apply(Math,a(r)):void 0}},{key:"getRange",value:function(t,e){var n=t.scale||{};if(n[e])return(0,c.default)(n[e].range)?n[e].range():void 0}},{key:"render",value:function(){var t=this.getClipValue(this.props,"y"),e=this.getClipValue(this.props,"x");if(void 0===e||void 0===t)return this.renderGroup(this.props);var n=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),a=(0,f.default)({},this.props,{clipHeight:t,clipWidth:e,translateX:n,translateY:r});return this.renderClippedGroup(a,this.clipId)}}]),e}(b.default.Component);w.displayName="VictoryClipContainer",w.role="container",w.propTypes={children:_.default.oneOfType([_.default.arrayOf(_.default.node),_.default.node]),className:_.default.string,clipHeight:_.default.number,clipId:_.default.number,clipPadding:_.default.shape({top:_.default.number,bottom:_.default.number,left:_.default.number,right:_.default.number}),clipPathComponent:_.default.element,clipWidth:_.default.number,events:_.default.object,origin:_.default.shape({x:_.default.number,y:_.default.number}),polar:_.default.bool,radius:_.default.number,style:_.default.object,transform:_.default.string,translateX:_.default.number,translateY:_.default.number},w.defaultProps={clipPathComponent:b.default.createElement(M.default,{__source:{fileName:y,lineNumber:34}})},e.default=w},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u="src/victory-primitives/clip-path.js",l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(48),f=r(s),d=n(49),h=r(d),p=n(150),y=r(p),v=n(191),g=r(v),b=n(189),m=r(b),_=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),c(e,[{key:"componentWillMount",value:function(){l(this,this.calculateAttributes(this.props))}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=this.props,r=n.className,a=n.clipId,i=n.clipWidth,o=n.translateX,u=n.translateY;return!m.default.allSetsEqual([[r,t.className],[a,t.clipId],[i,t.clipWidth],[o,t.translateX],[u,t.translateY],[this.x,e.x],[this.y,e.y],[this.height,e.height],[this.width,e.width]])&&(l(this,e),!0)}},{key:"calculateAttributes",value:function(t){var e=t.polar,n=t.origin,r=t.clipWidth,a=void 0===r?0:r,i=t.clipHeight,o=void 0===i?0:i,u=t.translateX,l=void 0===u?0:u,c=t.translateY,s=void 0===c?0:c,f=g.default.getPadding({padding:t.clipPadding}),d=t.radius||g.default.getRadius(t);return{x:(e?n.x:l)-f.left,y:(e?n.y:s)-f.top,width:Math.max((e?d:a)+f.left+f.right,0),height:Math.max((e?d:o)+f.top+f.bottom,0)}}},{key:"renderClipPath",value:function(t,e){return f.default.createElement("defs",{__source:{fileName:u,lineNumber:70}},f.default.createElement("clipPath",{id:e,__source:{fileName:u,lineNumber:71}},f.default.createElement("rect",l({},t,{__source:{fileName:u,lineNumber:72}}))))}},{key:"renderPolarClipPath",value:function(t,e){return f.default.createElement("defs",{__source:{fileName:u,lineNumber:80}},f.default.createElement("clipPath",{id:e,__source:{fileName:u,lineNumber:81}},f.default.createElement("circle",l({},t,{__source:{fileName:u,lineNumber:82}}))))}},{key:"render",value:function(){var t=this.props,e=t.clipId,n=t.className,r=t.polar,a=r?{className:n,cx:this.x,cy:this.y,r:Math.max(this.width,this.height)}:{className:n,x:this.x,y:this.y,width:this.width,height:this.height};return r?this.renderPolarClipPath(a,e):this.renderClipPath(a,e)}}]),e}(f.default.Component);_.propTypes={className:h.default.string,clipHeight:y.default.nonNegative,clipId:h.default.number,clipPadding:h.default.oneOfType([h.default.number,h.default.shape({top:h.default.number,bottom:h.default.number,left:h.default.number,right:h.default.number})]),clipWidth:y.default.nonNegative,origin:h.default.shape({x:h.default.number,y:h.default.number}),polar:h.default.bool,radius:h.default.number,translateX:h.default.number,translateY:h.default.number},e.default=_},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(215),i=r(a),o=n(216),u=r(o);e.default={material:i.default,grayscale:u.default}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(123),i=r(a),o="#FFF59D",u="#F4511E",l="#DCE775",c="#8BC34A",s="#00796B",f="#006064",d=[u,o,l,c,s,f],h="#ECEFF1",p="#90A4AE",y="#455A64",v="#212121",g="'Roboto', 'Helvetica Neue', Helvetica, sans-serif",b="normal",m=12,_=8,x={width:350,height:350,padding:50},M={fontFamily:g,fontSize:m,letterSpacing:b,padding:_,fill:y,stroke:"transparent",strokeWidth:0},w=(0,i.default)({textAnchor:"middle"},M),O="10, 5",P="round",k="round";e.default={area:(0,i.default)({style:{data:{fill:v},labels:w}},x),axis:(0,i.default)({style:{axis:{fill:"transparent",stroke:p,strokeWidth:2,strokeLinecap:P,strokeLinejoin:k},axisLabel:(0,i.default)({},w,{padding:_,stroke:"transparent"}),grid:{fill:"transparent",stroke:h,strokeDasharray:O,strokeLinecap:P,strokeLinejoin:k,pointerEvents:"none"},ticks:{fill:"transparent",size:5,stroke:p,strokeWidth:1,strokeLinecap:P,strokeLinejoin:k},tickLabels:(0,i.default)({},M,{fill:y})}},x),bar:(0,i.default)({style:{data:{fill:y,padding:_,strokeWidth:0},labels:M}},x),candlestick:(0,i.default)({style:{data:{stroke:y},labels:w},candleColors:{positive:"#ffffff",negative:y}},x),chart:x,errorbar:(0,i.default)({style:{data:{fill:"transparent",opacity:1,stroke:y,strokeWidth:2},labels:w}},x),group:(0,i.default)({colorScale:d},x),line:(0,i.default)({style:{data:{fill:"transparent",opacity:1,stroke:y,strokeWidth:2},labels:w}},x),pie:(0,i.default)({colorScale:d,style:{data:{padding:_,stroke:h,strokeWidth:1},labels:(0,i.default)({},M,{padding:20})}},x),scatter:(0,i.default)({style:{data:{fill:y,opacity:1,stroke:"transparent",strokeWidth:0},labels:w}},x),stack:(0,i.default)({colorScale:d},x),tooltip:{style:(0,i.default)({},w,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:v,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:(0,i.default)({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:(0,i.default)({},w,{padding:5,pointerEvents:"none"}),flyout:{stroke:v,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},x),legend:{colorScale:d,style:{data:{type:"circle"},labels:M}}}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(123),i=r(a),o=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],u="#252525",l="'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",c="normal",s=14,f={width:450,height:300,padding:50,colorScale:o},d={fontFamily:l,fontSize:s,letterSpacing:c,padding:10,fill:u,stroke:"transparent"},h=(0,i.default)({textAnchor:"middle"},d),p="round",y="round";e.default={area:(0,i.default)({style:{data:{fill:u},labels:h}},f),axis:(0,i.default)({style:{axis:{fill:"transparent",stroke:u,strokeWidth:1,strokeLinecap:p,strokeLinejoin:y},axisLabel:(0,i.default)({},h,{padding:25}),grid:{fill:"transparent",stroke:"transparent",pointerEvents:"none"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:d}},f),bar:(0,i.default)({style:{data:{fill:u,padding:8,strokeWidth:0},labels:d}},f),candlestick:(0,i.default)({style:{data:{stroke:u,strokeWidth:1},labels:h},candleColors:{positive:"#ffffff",negative:u}},f),chart:f,errorbar:(0,i.default)({style:{data:{fill:"transparent",stroke:u,strokeWidth:2},labels:h}},f),group:(0,i.default)({colorScale:o},f),line:(0,i.default)({style:{data:{fill:"transparent",stroke:u,strokeWidth:2},labels:h}},f),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:(0,i.default)({},d,{padding:20})},colorScale:o,width:400,height:400,padding:50},scatter:(0,i.default)({style:{data:{fill:u,stroke:"transparent",strokeWidth:0},labels:h}},f),stack:(0,i.default)({colorScale:o},f),tooltip:{style:(0,i.default)({},h,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:u,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:(0,i.default)({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:(0,i.default)({},h,{padding:5,pointerEvents:"none"}),flyout:{stroke:u,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},f),legend:{colorScale:o,style:{data:{type:"circle"},labels:d}}}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(218),c=r(l),s=n(221),f=r(s),d=n(69),h=r(d),p=n(207),y=r(p),v=n(128),g=r(v),b="src/victory-legend/victory-legend.js",m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),x=n(48),M=r(x),w=n(49),O=r(w),P=n(150),k=r(P),T=n(194),A=r(T),j=n(223),E=r(j),S=n(191),C=r(S),N=n(127),D=r(N),R=n(66),L=r(R),F=n(214),I=r(F),W=n(224),z=r(W),U=[{name:"Series 1"},{name:"Series 2"}],V=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),_(e,[{key:"calculateLegendHeight",value:function(t,e,n){var r=this.props,a=r.gutter,i=r.itemsPerRow,o=t.length,u=i?Math.ceil(o/i):1,l=n?(0,c.default)(t,"height").height*u+a*(u-1):((0,f.default)(t,"height")+a*(o-1))/u;return e.top+l+e.bottom}},{key:"calculateLegendWidth",value:function(t,e,n,r){var a=this.props,i=a.gutter,o=a.itemsPerRow,u=a.symbolSpacer,l=o?Math.ceil(t/o):1,c=o||t,s=void 0;if(n){var f=i*c,d=3*u*c,h=r*c;s=d+h+f}else s=(r+2*u+i)*l;return e.left+s+e.right}},{key:"getColorScale",value:function(t){var e=this.props.colorScale||t.colorScale;return"string"==typeof e&&(e=A.default.getColorScale(e)),(0,y.default)(t)?e||[]:e||t.colorScale}},{key:"getCalculatedProps",value:function(){var t=this,e=this.constructor.role,n=this.props,r=n.data,a=n.orientation,i=n.theme,o=i&&i[e]?i[e]:{},u=this.getStyles({},o,"parent"),l=this.getColorScale(o),c="horizontal"===a,s=[],f=[],d=this.props,h=d.height,p=d.padding,y=d.width,v=0;p=C.default.getPadding({padding:p||i.padding}),h=C.default.evaluateProp(h||i.height,r),y=C.default.evaluateProp(y||i.width,r);var g=r.map(function(e,n){var r=t.getStyles(e,o,"labels"),a=E.default.approximateTextSize(e.name,r);return v=a.width>v?a.width:v,s[n]=t.getStyles(e,o,"symbol",l[n]),f[n]=r,a});return h||(h=this.calculateLegendHeight(g,p,c)),y||(y=this.calculateLegendWidth(g.length,p,c,v)),m({},this.props,{isHorizontal:c,height:h,labelStyles:f,maxTextWidth:v,padding:p,parentStyles:u,symbolStyles:s,width:y})}},{key:"getStyles",value:function(t,e,n,r){var a=this.props.style,i="symbol"===n?"data":n,o=r?{fill:r}:{},u=(0,g.default)({},e.style[i],o,a[i],t[n]);return C.default.evaluateStyle(u,t)}},{key:"getSymbolSize",value:function(t,e){return t.symbol&&t.symbol.size?t.symbol.size:e/2.5}},{key:"getSymbolProps",value:function(t,e,n){var r=e.dataComponent,a=e.gutter,i=e.isHorizontal,o=e.itemsPerRow,u=e.labelStyles,l=e.maxTextWidth,c=e.padding,s=e.symbolSpacer,f=e.symbolStyles,d=u[n].fontSize,p=d/2,y=f[n],v=d+a,g=n,b=0,_=0;o&&(_=Math.floor(n/o),b=v*_,g=n%o);var x=i?{x:c.left+p+(d+s+l+a)*g,y:c.top+p+b}:{x:c.left+p+(v+l)*_,y:c.top+p+v*g};return(0,h.default)({},r.props,m({key:"symbol-"+n,style:y,size:this.getSymbolSize(t,d),symbol:y.type},x))}},{key:"getLabelProps",value:function(t,e,n){var r=e.gutter,a=e.isHorizontal,i=e.itemsPerRow,o=e.labelComponent,u=e.labelStyles,l=e.maxTextWidth,c=e.padding,s=e.symbolSpacer,f=u[n],d=f.fontSize,p=d/2,y=d+r,v=d+s,g=n,b=0,_=0;
|
|
5
|
-
i&&(_=Math.floor(n/i),b=y*_,g=n%i);var x=a?{x:c.left+v*(g+1)+(l+r)*g,y:c.top+p+b}:{x:c.left+v+(y+l)*_,y:c.top+p+y*g};return(0,h.default)({},o.props,m({key:"label-"+n,style:f,text:t.name},x))}},{key:"renderLegendItems",value:function(t){var e=this,n=t.data,r=t.dataComponent,i=t.labelComponent,o=(0,y.default)(n)?U:n,u=o.map(function(n,a){return M.default.cloneElement(r,e.getSymbolProps(n,t,a))}),l=o.map(function(n,r){return M.default.cloneElement(i,e.getLabelProps(n,t,r))});return[].concat(a(u),a(l))}},{key:"renderGroup",value:function(t,e){var n=t.groupComponent,r=t.height,a=t.parentStyles,i=t.standalone,o=t.width,u=t.x,l=t.y,c={role:"presentation"};return i||(c=m({height:r,width:o,transform:"translate("+u+", "+l+")",style:a},c)),M.default.cloneElement(n,c,e)}},{key:"renderContainer",value:function(t,e){var n=t.containerComponent,r=t.height,a=t.parentStyles,i=t.width;return M.default.cloneElement(n,{height:r,width:i,style:a},e)}},{key:"render",value:function(){var t=this.getCalculatedProps(),e=this.renderGroup(t,this.renderLegendItems(t));return t.standalone?this.renderContainer(t,e):e}}]),e}(M.default.Component);V.displayName="VictoryLegend",V.role="legend",V.propTypes={colorScale:O.default.oneOfType([O.default.arrayOf(O.default.string),O.default.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:O.default.element,data:O.default.arrayOf(O.default.shape({name:O.default.string.isRequired,label:O.default.object,symbol:O.default.object})),dataComponent:O.default.element,groupComponent:O.default.element,gutter:O.default.number,height:O.default.oneOfType([k.default.nonNegative,O.default.func]),itemsPerRow:O.default.number,labelComponent:O.default.element,orientation:O.default.oneOf(["horizontal","vertical"]),padding:O.default.oneOfType([O.default.number,O.default.shape({top:O.default.number,bottom:O.default.number,left:O.default.number,right:O.default.number})]),standalone:O.default.bool,style:O.default.shape({data:O.default.object,labels:O.default.object,parent:O.default.object}),symbolSpacer:O.default.number,theme:O.default.object,width:O.default.oneOfType([k.default.nonNegative,O.default.func]),x:O.default.number,y:O.default.number},V.defaultProps={data:U,containerComponent:M.default.createElement(L.default,{__source:{fileName:b,lineNumber:76}}),dataComponent:M.default.createElement(z.default,{__source:{fileName:b,lineNumber:77}}),groupComponent:M.default.createElement("g",{__source:{fileName:b,lineNumber:78}}),gutter:10,labelComponent:M.default.createElement(D.default,{__source:{fileName:b,lineNumber:80}}),orientation:"vertical",standalone:!0,style:{},symbolSpacer:8,theme:I.default.grayscale,x:0,y:0},e.default=V},function(t,e,n){function r(t,e){return t&&t.length?a(t,o(e,2),i):void 0}var a=n(219),i=n(220),o=n(153);t.exports=r},function(t,e,n){function r(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],u=e(o);if(null!=u&&(void 0===l?u===u&&!a(u):n(u,l)))var l=u,c=o}return c}var a=n(102);t.exports=r},function(t,e){function n(t,e){return t>e}t.exports=n},function(t,e,n){function r(t,e){return t&&t.length?i(t,a(e,2)):0}var a=n(153),i=n(222);t.exports=r},function(t,e){function n(t,e){for(var n,r=-1,a=t.length;++r<a;){var i=e(t[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}t.exports=n},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(69),o=r(i),u=n(128),l=r(u),c={"American Typewriter":2.09,Baskerville:2.51,Georgia:2.27,"Hoefler Text":2.39,Palatino:2.26,"Times New Roman":2.48,Arial:2.26,"Gill Sans":2.47,"Gill Sans 300":2.58,"Helvetica Neue":2.24,"Lucida Grande":2.05,Tahoma:2.25,"Trebuchet MS":2.2,Verdana:1.96,"Courier New":1.67,cursive:1.84,fantasy:2.09,monospace:1.81,serif:2.04,"sans-serif":1.89},s={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},f={em:1,ex:.5},d={averageFontConstant:2.1675,widthOverlapCoef:1.25,heightOverlapCoef:1.05,lineCapitalCoef:1.15,lineSpaceHeightCoef:.2},h={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},p=function(t){return t*Math.PI/180},y=function(t){var e=t.split(",")[0].replace(/'|"/g,"");return c[e]||d.averageFontConstant},v=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},g=function(t,e,n){var r=p(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},b=function(t,e){var n=t.match(/[a-zA-Z%]+/)[0],r=t.match(/[0-9.,]+/),a=void 0;return a=s.hasOwnProperty(n)?r*s[n]:f.hasOwnProperty(n)?(e?r*e:r*d.defaultFontSize)*f[n]:r},m=function(t,e){var n=Array.isArray(t)?t[e]:t,r=(0,o.default)({},n,h);return(0,l.default)({},r,{characterConstant:r.characterConstant||y(r.fontFamily),letterSpacing:b(r.letterSpacing,r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:b(String(r.fontSize))})},_=function(t,e){var n=v(t).map(function(t,n){var r=t.toString().length,a=m(e,n),i=a.fontSize,o=a.characterConstant,u=a.letterSpacing;return r*i/o+u*Math.max(r-1,0)});return Math.max.apply(Math,a(n))},x=function(t,e){return v(t).reduce(function(t,n,r){var a=m(e,r),i=a.fontSize*d.lineCapitalCoef,o=0===r?0:a.fontSize*d.lineSpaceHeightCoef;return t+a.lineHeight*(i+o)},0)},M=function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=x(t,e),a=_(t,e),i=n?g(a,r,n):a,o=n?g(r,a,n):r;return{width:i*d.widthOverlapCoef,height:o*d.heightOverlapCoef}};e.default={approximateTextSize:M,convertLengthToPixels:b}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l="src/victory-primitives/point.js",c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(48),f=r(s),d=n(49),h=r(d),p=n(191),y=r(p),v=n(189),g=r(v),b=n(225),m=r(b),_=n(230),x=r(_),M=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),c(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.datum,u=a.x,l=a.y,c=a.size,s=a.symbol;return!g.default.allSetsEqual([[i,t.className],[u,t.x],[l,t.y],[c,t.size],[s,t.symbol],[r,this.path],[n,this.style],[o,t.datum]])&&(this.style=n,this.path=r,!0)}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.datum,r=t.active;return{style:y.default.evaluateStyle(e,n,r),path:this.getPath(t)}}},{key:"getPath",value:function(t){var e=t.datum,n=t.active,r=t.x,a=t.y,i={circle:m.default.circle,square:m.default.square,diamond:m.default.diamond,triangleDown:m.default.triangleDown,triangleUp:m.default.triangleUp,plus:m.default.plus,star:m.default.star},o=y.default.evaluateProp(t.symbol,e,n),u=y.default.evaluateProp(t.size,e,n);return i[o].call(null,r,a,u)}},{key:"renderPoint",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className;return f.default.createElement("path",u({},n,{d:t,className:o,role:a||"presentation",shapeRendering:i||"auto",style:e,__source:{fileName:l,lineNumber:80}}))}},{key:"render",value:function(){return this.renderPoint(this.path,this.style,this.props.events)}}]),e}(f.default.Component);M.propTypes=u({},x.default,{datum:h.default.object,size:h.default.oneOfType([h.default.number,h.default.func]),symbol:h.default.oneOfType([h.default.oneOf(["circle","diamond","plus","square","star","triangleDown","triangleUp"]),h.default.func]),x:h.default.number,y:h.default.number}),e.default=M},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(226),i=r(a);e.default={circle:function(t,e,n){var r=Math.round(n);return"M "+Math.round(t)+", "+Math.round(e)+" m "+-r+", 0\n a "+r+", "+r+" 0 1,0 "+2*r+",0\n a "+r+", "+r+" 0 1,0 "+2*-r+",0"},square:function(t,e,n){var r=.87*n,a=Math.round(t-r),i=Math.round(t+r),o=Math.round(e-r),u=Math.round(e+r);return"M "+a+", "+u+"\n L "+i+", "+u+"\n L "+i+", "+o+"\n L "+a+", "+o+"\n z"},diamond:function(t,e,n){var r=.87*n,a=Math.sqrt(2*(r*r));return"M "+Math.round(t)+", "+Math.round(e+a)+"\n L "+Math.round(t+a)+", "+Math.round(e)+"\n L "+Math.round(t)+", "+Math.round(e-a)+"\n L "+Math.round(t-a)+", "+Math.round(e)+"\n z"},triangleDown:function(t,e,n){var r=n/2*Math.sqrt(3),a=Math.round(t-n),i=Math.round(t+n),o=Math.round(e-n),u=Math.round(e+r);return"M "+a+", "+o+"\n L "+i+", "+o+"\n L "+Math.round(t)+", "+u+"\n z"},triangleUp:function(t,e,n){var r=n/2*Math.sqrt(3),a=Math.round(t-n),i=Math.round(t+n),o=Math.round(e-r),u=Math.round(e+n);return"M "+a+", "+u+"\n L "+i+", "+u+"\n L "+Math.round(t)+", "+o+"\n z"},plus:function(t,e,n){var r=1.1*n;return"M "+Math.round(t-r/2.5)+", "+Math.round(e+r)+"\n L "+Math.round(t+r/2.5)+", "+Math.round(e+r)+"\n L "+Math.round(t+r/2.5)+", "+Math.round(e+r/2.5)+"\n L "+Math.round(t+r)+", "+Math.round(e+r/2.5)+"\n L "+Math.round(t+r)+", "+Math.round(e-r/2.5)+"\n L "+Math.round(t+r/2.5)+", "+Math.round(e-r/2.5)+"\n L "+Math.round(t+r/2.5)+", "+Math.round(e-r)+"\n L "+Math.round(t-r/2.5)+", "+Math.round(e-r)+"\n L "+Math.round(t-r/2.5)+", "+Math.round(e-r/2.5)+"\n L "+Math.round(t-r)+", "+Math.round(e-r/2.5)+"\n L "+Math.round(t-r)+", "+Math.round(e+r/2.5)+"\n L "+Math.round(t-r/2.5)+", "+Math.round(e+r/2.5)+"\n z"},star:function(t,e,n){var r=1.35*n,a=Math.PI/5,o=(0,i.default)(10).map(function(n){var i=n%2===0?r:r/2;return i*Math.sin(a*(n+1))+t+",\n "+(i*Math.cos(a*(n+1))+e)});return"M "+o.join("L")+" z"}}},function(t,e,n){var r=n(227),a=r();t.exports=a},function(t,e,n){function r(t){return function(e,n,r){return r&&"number"!=typeof r&&i(e,n,r)&&(n=r=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),r=void 0===r?e<n?1:-1:o(r),a(e,n,r,t)}}var a=n(228),i=n(76),o=n(229);t.exports=r},function(t,e){function n(t,e,n,i){for(var o=-1,u=a(r((e-t)/(n||1)),0),l=Array(u);u--;)l[i?u:++o]=t,t+=n;return l}var r=Math.ceil,a=Math.max;t.exports=n},4,function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(49),i=r(a),o=n(150),u=r(o);e.default={active:i.default.bool,className:i.default.string,data:i.default.array,events:i.default.object,index:i.default.oneOfType([i.default.number,i.default.string]),origin:i.default.shape({x:i.default.number,y:i.default.number}),polar:i.default.bool,role:i.default.string,scale:i.default.oneOfType([u.default.scale,i.default.shape({x:u.default.scale,y:u.default.scale})]),shapeRendering:i.default.string,style:i.default.object}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(69),c=r(l),s=n(123),f=r(s),d="src/victory-tooltip/victory-tooltip.js",h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=n(48),y=r(p),v=n(49),g=r(v),b=n(150),m=r(b),_=n(223),x=r(_),M=n(191),w=r(M),O=n(193),P=r(O),k=n(127),T=r(k),A=n(214),j=r(A),E=n(232),S=r(E),C=n(148),N=r(C),D={cornerRadius:5,pointerLength:10,pointerWidth:10},R=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),h(e,[{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal,r=t.polar;if(r)return this.getPolarOrientation(t,e);var a=n?"right":"top",i=n?"left":"bottom";return e&&e.y<0?i:a}},{key:"getPolarOrientation",value:function(t,e){var n=P.default.getDegrees(t,e),r=t.labelPlacement||"vertical";return" vertical"===r?this.getVerticalOrientations(n):"parallel"===r?n<90||n>270?"right":"left":n>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getEvaluatedProps",value:function(t){var e=t.horizontal,n=t.datum,r=t.pointerLength,a=t.pointerWidth,i=t.cornerRadius,o=t.width,u=t.height,l=t.dx,c=t.dy,s=t.text,d=t.active,h=Array.isArray(t.style)?t.style.map(function(t){return w.default.evaluateStyle(t,n,d)}):w.default.evaluateStyle(t.style,n,d),p=w.default.evaluateStyle(t.flyoutStyle,n,d),y=p&&p.padding||0,v=e?y:0,g=e?0:y,b=w.default.evaluateProp(t.orientation,n,d)||this.getDefaultOrientation(t);return(0,f.default)({},t,{style:h,flyoutStyle:p,orientation:b,dx:void 0!==l?w.default.evaluateProp(l,n,d):v,dy:void 0!==c?w.default.evaluateProp(c,n,d):g,cornerRadius:w.default.evaluateProp(i,n,d),pointerLength:w.default.evaluateProp(r,n,d),pointerWidth:w.default.evaluateProp(a,n,d),width:w.default.evaluateProp(o,n,d),height:w.default.evaluateProp(u,n,d),active:w.default.evaluateProp(d,n,d),text:w.default.evaluateProp(s,n,d)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,r=t.datum,a=t.theme,i=t.active,o=a&&a.tooltip&&a.tooltip.style?a.tooltip.style:{},u=Array.isArray(e)?e.map(function(t){return(0,c.default)({},t,o)}):(0,c.default)({},e,o),l=a&&a.tooltip&&a.tooltip.flyoutStyle?a.tooltip.flyoutStyle:{},s=t.flyoutStyle?(0,c.default)({},t.flyoutStyle,l):l,f=Array.isArray(u)?u.map(function(t){return w.default.evaluateStyle(t,r,i)}):w.default.evaluateStyle(u,r,i),d=x.default.approximateTextSize(n,f),h=this.getDimensions(t,d,f),p=this.getFlyoutCenter(t,h),y=this.getTransform(t);return{labelStyle:f,flyoutStyle:s,labelSize:d,flyoutDimensions:h,flyoutCenter:p,transform:y}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,r=t.style,a=r||{},i=a.angle||t.angle||this.getDefaultAngle(t);return i?"rotate("+i+" "+e+" "+n+")":void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,r=t.orientation,a=t.datum;if(!e||!n||"vertical"===n)return 0;var i=P.default.getDegrees(t,a),o=i>90&&i<180||i>270?1:-1,u="perpendicular"===n?0:90,l=void 0;return 0===i||180===i?l="top"===r&&180===i?270:90:i>0&&i<180?l=90-i:i>180&&i<360&&(l=270-i),l+o*u}},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,r=t.y,a=t.dx,i=t.dy,o=t.pointerLength,u=t.orientation,l=e.height,c=e.width,s="right"===u||"top"===u?1:-1;return{x:"left"===u||"right"===u?n+s*(o+c/2+a):n+s*a,y:"top"===u||"bottom"===u?r-s*(o+l/2+i):r-s*i}}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e=Array.isArray(t)?t.map(function(t){return t.padding}):[t.padding];return Math.max.apply(Math,a(e).concat([0]))}},{key:"getDimensions",value:function(t,e,n){var r=t.orientation,a=t.cornerRadius,i=t.pointerLength,o=t.pointerWidth,u=this.getLabelPadding(n),l=function(){var t=e.height+u,n="top"===r||"bottom"===r?2*a:2*a+o;return Math.max(n,t)},c=function(){var t=e.width+u,n="left"===r||"right"===r?2*a+i:2*a;return Math.max(n,t)};return{height:t.height||l(t,e,r)+u/2,width:t.width||c(t,e,r)+u}}},{key:"getLabelProps",value:function(t,e){var n=e.flyoutCenter,r=e.labelStyle,a=e.labelSize,i=e.dy,o=e.dx,u=t.text,l=t.datum,s=t.labelComponent,f=t.index,d=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle",h=function(){var t="end"===d?-1:1;return n.x-t*(a.width/2)};return(0,c.default)({},s.props,{key:"label-"+f,text:u,datum:l,textAnchor:d,dy:i,dx:o,style:r,x:d&&"middle"!==d?h():n.x,y:n.y,verticalAnchor:"middle",angle:r.angle})}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,r=e.flyoutStyle,a=t.x,i=t.y,o=t.dx,u=t.dy,l=t.datum,s=t.index,f=t.orientation,d=t.pointerLength,h=t.pointerWidth,p=t.cornerRadius,y=t.events,v=t.flyoutComponent;return(0,c.default)({},v.props,{x:a,y:i,dx:o,dy:u,datum:l,index:s,orientation:f,pointerLength:d,pointerWidth:h,cornerRadius:p,events:y,key:"flyout-"+s,width:n.width,height:n.height,style:r})}},{key:"renderTooltip",value:function(t){var e=this.getEvaluatedProps(t),n=e.flyoutComponent,r=e.labelComponent,a=e.groupComponent,i=e.active,o=e.renderInPortal;if(!i)return null;var u=this.getCalculatedValues(e),l=[y.default.cloneElement(n,this.getFlyoutProps(e,u)),y.default.cloneElement(r,this.getLabelProps(e,u))],c=y.default.cloneElement(a,{role:"presentation",transform:u.transform},l);return o?y.default.createElement(N.default,{__source:{fileName:d,lineNumber:348}},c):c}},{key:"render",value:function(){var t=w.default.modifyProps(this.props,D,"tooltip");return this.renderTooltip(t)}}]),e}(y.default.Component);R.displayName="VictoryTooltip",R.propTypes={activateData:g.default.bool,active:g.default.oneOfType([g.default.bool,g.default.func]),angle:g.default.number,cornerRadius:g.default.oneOfType([m.default.nonNegative,g.default.func]),data:g.default.array,datum:g.default.object,dx:g.default.oneOfType([g.default.number,g.default.func]),dy:g.default.oneOfType([g.default.number,g.default.func]),events:g.default.object,flyoutComponent:g.default.element,flyoutStyle:g.default.object,groupComponent:g.default.element,height:g.default.oneOfType([m.default.nonNegative,g.default.func]),horizontal:g.default.bool,index:g.default.oneOfType([g.default.number,g.default.string]),labelComponent:g.default.element,orientation:g.default.oneOfType([g.default.oneOf(["top","bottom","left","right"]),g.default.func]),pointerLength:g.default.oneOfType([m.default.nonNegative,g.default.func]),pointerWidth:g.default.oneOfType([m.default.nonNegative,g.default.func]),polar:g.default.bool,renderInPortal:g.default.bool,style:g.default.oneOfType([g.default.object,g.default.array]),text:g.default.oneOfType([g.default.string,g.default.number,g.default.func,g.default.array]),theme:g.default.object,width:g.default.oneOfType([m.default.nonNegative,g.default.func]),x:g.default.number,y:g.default.number},R.defaultProps={theme:j.default.grayscale,active:!1,renderInPortal:!0,labelComponent:y.default.createElement(T.default,{__source:{fileName:d,lineNumber:91}}),flyoutComponent:y.default.createElement(S.default,{__source:{fileName:d,lineNumber:92}}),groupComponent:y.default.createElement("g",{__source:{fileName:d,lineNumber:93}})},R.defaultEvents=[{target:"data",eventHandlers:{onMouseOver:function(t){return[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return t.activateData?{active:!0}:{active:void 0}}}]},onMouseOut:function(){return[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]}}}],e.default=R},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l="src/victory-primitives/flyout.js",c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(48),f=r(s),d=n(49),h=r(d),p=n(191),y=r(p),v=n(189),g=r(v),b=n(230),m=r(b),_=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),c(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.cornerRadius,u=a.datum,l=a.dx,c=a.dy,s=a.height,f=a.width,d=a.orientation,h=a.pointerLength,p=a.pointerWidth,y=a.x,v=a.y;return!g.default.allSetsEqual([[i,t.className],[o,t.cornerRadius],[l,t.dx],[c,t.dy],[y,t.x],[v,t.y],[s,t.height],[f,t.width],[d,t.orientation],[h,t.pointerLength],[p,t.pointerWidth],[r,this.path],[n,this.style],[u,t.datum]])&&(this.style=n,this.path=r,!0)}},{key:"calculateAttributes",value:function(t){var e=t.datum,n=t.active,r=t.style;return{style:y.default.evaluateStyle(r,e,n),path:this.getFlyoutPath(t)}}},{key:"getVerticalPath",value:function(t){var e=t.pointerLength,n=t.pointerWidth,r=t.cornerRadius,a=t.orientation,i=t.width,o=t.height,u="top"===a?1:-1,l=t.x+(t.dx||0),c=t.y-u*(t.dy||0),s=c-u*e,f=c-u*e-u*o,d=l+i/2,h=l-i/2,p="top"===a?"0 0 0":"0 0 1",y=Math.round(r)+" "+Math.round(r)+" "+p;return"M "+Math.round(l-n/2)+", "+Math.round(s)+"\n L "+Math.round(l)+", "+Math.round(c)+"\n L "+Math.round(l+n/2)+", "+Math.round(s)+"\n L "+Math.round(d-r)+", "+Math.round(s)+"\n A "+y+" "+Math.round(d)+", "+Math.round(s-u*r)+"\n L "+Math.round(d)+", "+Math.round(f+u*r)+"\n A "+y+" "+Math.round(d-r)+", "+Math.round(f)+"\n L "+Math.round(h+r)+", "+Math.round(f)+"\n A "+y+" "+Math.round(h)+", "+Math.round(f+u*r)+"\n L "+Math.round(h)+", "+Math.round(s-u*r)+"\n A "+y+" "+Math.round(h+r)+", "+Math.round(s)+"\n z"}},{key:"getHorizontalPath",value:function(t){var e=t.pointerLength,n=t.pointerWidth,r=t.cornerRadius,a=t.orientation,i=t.width,o=t.height,u="right"===a?1:-1,l=t.x+u*(t.dx||0),c=t.y-(t.dy||0),s=l+u*e,f=l+u*e+u*i,d=c+o/2,h=c-o/2,p="right"===a?"0 0 0":"0 0 1",y=Math.round(r)+" "+Math.round(r)+" "+p;return"M "+Math.round(s)+", "+Math.round(c-n/2)+"\n L "+Math.round(l)+", "+Math.round(c)+"\n L "+Math.round(s)+", "+Math.round(c+n/2)+"\n L "+Math.round(s)+", "+Math.round(d-r)+"\n A "+y+" "+Math.round(s+u*r)+", "+Math.round(d)+"\n L "+(f-u*r)+", "+d+"\n A "+y+" "+Math.round(f)+", "+Math.round(d-r)+"\n L "+f+", "+(h+r)+"\n A "+y+" "+Math.round(f-u*r)+", "+Math.round(h)+"\n L "+Math.round(s+u*r)+", "+Math.round(h)+"\n A "+y+" "+Math.round(s)+", "+Math.round(h+r)+"\n z"}},{key:"getFlyoutPath",value:function(t){var e=t.orientation||"top";return"left"===e||"right"===e?this.getHorizontalPath(t):this.getVerticalPath(t)}},{key:"renderFlyout",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className;return f.default.createElement("path",u({className:o,d:t,style:e,shapeRendering:i||"auto",role:a||"presentation"},n,{__source:{fileName:l,lineNumber:129}}))}},{key:"render",value:function(){return this.renderFlyout(this.path,this.style,this.props.events)}}]),e}(f.default.Component);_.propTypes=u({},m.default,{cornerRadius:h.default.number,datum:h.default.object,dx:h.default.number,dy:h.default.number,height:h.default.number,orientation:h.default.oneOf(["top","bottom","left","right"]),pointerLength:h.default.number,pointerWidth:h.default.number,width:h.default.number,x:h.default.number,y:h.default.number}),e.default=_},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(190),l=r(u),c=n(123),s=r(c),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d="src/victory-primitives/arc.js",h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=n(48),y=r(p),v=n(49),g=r(v),b=n(191),m=r(b),_=n(230),x=r(_),M=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),h(e,[{key:"componentWillMount",value:function(){this.style=this.getStyle(this.props)}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.cx,r=e.cy,a=e.r,i=this.getStyle(t);return n!==t.cx||r!==t.cy||a!==t.r?(this.style=i,!0):!(0,l.default)(i,this.style)&&(this.style=i,!0)}},{key:"getStyle",value:function(t){var e=t.style,n=t.datum,r=t.active;return m.default.evaluateStyle((0,s.default)({stroke:"black",fill:"none"},e),n,r)}},{key:"getArcPath",value:function(t){var e=t.cx,n=t.cy,r=t.r,a=t.startAngle,i=t.endAngle,o=t.closedPath,u=Math.abs(i-a)/2+a,l=e+r*Math.cos(m.default.degreesToRadians(a)),c=n-r*Math.sin(m.default.degreesToRadians(a)),s=e+r*Math.cos(m.default.degreesToRadians(u)),f=n-r*Math.sin(m.default.degreesToRadians(u)),d=e+r*Math.cos(m.default.degreesToRadians(i)),h=n-r*Math.sin(m.default.degreesToRadians(i)),p=u-a<=180?0:1,y=i-u<=180?0:1,v=o?" M "+e+", "+n+" L "+l+", "+c:"M "+l+", "+c,g="A "+r+", "+r+", 0, "+p+", 0, "+s+", "+f,b="A "+r+", "+r+", 0, "+y+", 0, "+d+", "+h,_=o?"Z":"";return v+" "+g+" "+b+" "+_}},{key:"renderAxisLine",value:function(t,e,n){var r=t.role,a=t.shapeRendering,i=t.className,o=this.getArcPath(t);return y.default.createElement("path",f({className:i,d:o,style:e,role:r||"presentation",shapeRendering:a||"auto"},n,{__source:{fileName:d,lineNumber:67}}))}},{key:"render",value:function(){return this.renderAxisLine(this.props,this.style,this.props.events)}}]),e}(y.default.Component);M.propTypes=f({},x.default,{closedPath:g.default.bool,cx:g.default.number,cy:g.default.number,datum:g.default.any,endAngle:g.default.number,r:g.default.number,startAngle:g.default.number}),e.default=M},function(t,e,n){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function a(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(123),c=a(l),s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f="src/victory-primitives/area.js",d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=n(48),p=a(h),y=n(49),v=a(y),g=n(189),b=a(g),m=n(191),_=a(m),x=n(235),M=n(236),w=r(M),O=n(230),P=a(O),k=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),d(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.areaPath,r=t.linePath;this.style=e,this.areaPath=n,this.linePath=r}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.areaPath,a=e.linePath,i=this.props,o=i.className,u=i.interpolation;return!b.default.allSetsEqual([[o,t.className],[u,t.interpolation],[a,this.linePath],[r,this.areaPath],[n,this.style]])&&(this.style=n,this.areaPath=r,this.linePath=a,!0)}},{key:"getLineFunction",value:function(t){var e=t.polar,n=t.scale,r=this.toNewName(t.interpolation);return e?w.lineRadial().defined(x.defined).curve(w[r+"Closed"]).angle((0,x.getAngleAccessor)(n)).radius((0,x.getY0Accessor)(n)):w.line().defined(x.defined).curve(w[r]).x((0,x.getXAccessor)(n)).y((0,x.getYAccessor)(n))}},{key:"getAreaFunction",value:function(t){var e=t.polar,n=t.scale,r=this.toNewName(t.interpolation);return e?w.radialArea().defined(x.defined).curve(w[r+"Closed"]).angle((0,x.getAngleAccessor)(n)).outerRadius((0,x.getYAccessor)(n)).innerRadius((0,x.getY0Accessor)(n)):w.area().defined(x.defined).curve(w[r]).x((0,x.getXAccessor)(n)).y1((0,x.getYAccessor)(n)).y0((0,x.getY0Accessor)(n))}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.data,r=t.active,a=this.getAreaFunction(t),i=this.getLineFunction(t);return{style:_.default.evaluateStyle((0,c.default)({fill:"black"},e),n,r),areaPath:a(n),linePath:i(n)}}},{key:"toNewName",value:function(t){var e=function(t){return t&&t[0].toUpperCase()+t.slice(1)};return"curve"+e(t)}},{key:"renderArea",value:function(t,e,n){var r=e.stroke?"none":e.fill,a=(0,c.default)({},e,{stroke:r}),i=this.props,o=i.role,u=i.shapeRendering,l=i.className,d=i.polar,h=i.origin,y=d&&h?"translate("+h.x+", "+h.y+")":void 0;return p.default.createElement("path",s({key:"area",style:a,shapeRendering:u||"auto",role:o||"presentation",d:t,transform:y,className:l},n,{__source:{fileName:f,lineNumber:105}}))}},{key:"renderLine",value:function(t,e,n){if(!e.stroke||"none"===e.stroke||"transparent"===e.stroke)return null;var r=this.props,a=r.role,i=r.shapeRendering,o=r.className,u=r.polar,l=r.origin,d=u&&l?"translate("+l.x+", "+l.y+")":void 0,h=(0,c.default)({},e,{fill:"none"});return p.default.createElement("path",s({key:"area-stroke",style:h,shapeRendering:i||"auto",role:a||"presentation",d:t,transform:d,className:o},n,{__source:{fileName:f,lineNumber:127}}))}},{key:"render",value:function(){var t=this.props,e=t.events,n=t.groupComponent,r=this.renderArea(this.areaPath,this.style,e),a=this.renderLine(this.linePath,this.style,e);if(!a)return r;var i=[r,a].map(function(t,e){return p.default.cloneElement(t,{key:e})});return p.default.cloneElement(n,{},i)}}]),e}(p.default.Component);
|
|
6
|
-
k.propTypes=s({},P.default,{groupComponent:v.default.element,interpolation:v.default.string}),k.defaultProps={groupComponent:p.default.createElement("g",{__source:{fileName:f,lineNumber:19}})},e.default=k},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){var e=void 0!==t._y1?t._y1:t._y;return null!==e&&void 0!==e&&null!==t._y0},r=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},a=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},i=function(t){return function(e){return t.y(e._y0)}},o=function(t){return function(e){var n=t.x(void 0!==e._x1?e._x1:e._x);return-1*n+Math.PI/2}};e.defined=n,e.getXAccessor=r,e.getYAccessor=a,e.getY0Accessor=i,e.getAngleAccessor=o},function(t,e,n){!function(t,r){r(e,n(237))}(this,function(t,e){"use strict";function n(t){return t>1?0:t<-1?ft:Math.acos(t)}function r(t){return t>=1?dt:t<=-1?-dt:Math.asin(t)}function a(t){return t.innerRadius}function i(t){return t.outerRadius}function o(t){return t.startAngle}function u(t){return t.endAngle}function l(t){return t&&t.padAngle}function c(t,e,n,r,a,i,o,u){var l=n-t,c=r-e,s=o-a,f=u-i,d=(s*(e-i)-f*(t-a))/(f*l-s*c);return[t+d*l,e+d*c]}function s(t,e,n,r,a,i,o){var u=t-n,l=e-r,c=(o?i:-i)/ct(u*u+l*l),s=c*l,f=-c*u,d=t+s,h=e+f,p=n+s,y=r+f,v=(d+p)/2,g=(h+y)/2,b=p-d,m=y-h,_=b*b+m*m,x=a-i,M=d*y-p*h,w=(m<0?-1:1)*ct(ot(0,x*x*_-M*M)),O=(M*m-b*w)/_,P=(-M*b-m*w)/_,k=(M*m+b*w)/_,T=(-M*b+m*w)/_,A=O-v,j=P-g,E=k-v,S=T-g;return A*A+j*j>E*E+S*S&&(O=k,P=T),{cx:O,cy:P,x01:-s,y01:-f,x11:O*(a/x-1),y11:P*(a/x-1)}}function f(t){this._context=t}function d(t){return t[0]}function h(t){return t[1]}function p(t){this._curve=t}function y(t){function e(e){return new p(t(e))}return e._curve=t,e}function v(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(y(t)):e()._curve},t}function g(t){return t.source}function b(t){return t.target}function m(t){function n(){var n,l=Pt.call(arguments),c=r.apply(this,l),s=a.apply(this,l);if(u||(u=n=e.path()),t(u,+i.apply(this,(l[0]=c,l)),+o.apply(this,l),+i.apply(this,(l[0]=s,l)),+o.apply(this,l)),n)return u=null,n+""||null}var r=g,a=b,i=d,o=h,u=null;return n.source=function(t){return arguments.length?(r=t,n):r},n.target=function(t){return arguments.length?(a=t,n):a},n.x=function(t){return arguments.length?(i="function"==typeof t?t:nt(+t),n):i},n.y=function(t){return arguments.length?(o="function"==typeof t?t:nt(+t),n):o},n.context=function(t){return arguments.length?(u=null==t?null:t,n):u},n}function _(t,e,n,r,a){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,a,r,a)}function x(t,e,n,r,a){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+a)/2,r,n,r,a)}function M(t,e,n,r,a){var i=Ot(e,n),o=Ot(e,n=(n+a)/2),u=Ot(r,n),l=Ot(r,a);t.moveTo(i[0],i[1]),t.bezierCurveTo(o[0],o[1],u[0],u[1],l[0],l[1])}function w(){return m(_)}function O(){return m(x)}function P(){var t=m(M);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function k(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function T(t){this._context=t}function A(t){this._context=t}function j(t){this._context=t}function E(t,e){this._basis=new T(t),this._beta=e}function S(t,e,n){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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function C(t,e){this._context=t,this._k=(1-e)/6}function N(t,e){this._context=t,this._k=(1-e)/6}function D(t,e){this._context=t,this._k=(1-e)/6}function R(t,e,n){var r=t._x1,a=t._y1,i=t._x2,o=t._y2;if(t._l01_a>st){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,a=(a*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>st){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*c+t._x1*t._l23_2a-e*t._l12_2a)/s,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/s}t._context.bezierCurveTo(r,a,i,o,t._x2,t._y2)}function L(t,e){this._context=t,this._alpha=e}function F(t,e){this._context=t,this._alpha=e}function I(t,e){this._context=t,this._alpha=e}function W(t){this._context=t}function z(t){return t<0?-1:1}function U(t,e,n){var r=t._x1-t._x0,a=e-t._x1,i=(t._y1-t._y0)/(r||a<0&&-0),o=(n-t._y1)/(a||r<0&&-0),u=(i*a+o*r)/(r+a);return(z(i)+z(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(u))||0}function V(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function q(t,e,n){var r=t._x0,a=t._y0,i=t._x1,o=t._y1,u=(i-r)/3;t._context.bezierCurveTo(r+u,a+u*e,i-u,o-u*n,i,o)}function B(t){this._context=t}function H(t){this._context=new Y(t)}function Y(t){this._context=t}function X(t){return new B(t)}function K(t){return new H(t)}function G(t){this._context=t}function Z(t){var e,n,r=t.length-1,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)a[e]=1,i[e]=4,o[e]=4*t[e]+2*t[e+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=a[e]/i[e-1],i[e]-=n,o[e]-=n*o[e-1];for(a[r-1]=o[r-1]/i[r-1],e=r-2;e>=0;--e)a[e]=(o[e]-a[e+1])/i[e];for(i[r-1]=(t[r]+a[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-a[e+1];return[a,i]}function $(t,e){this._context=t,this._t=e}function Q(t){return new $(t,0)}function J(t){return new $(t,1)}function tt(t,e){return t[e]}function et(t){for(var e,n=0,r=-1,a=t.length;++r<a;)(e=+t[r][1])&&(n+=e);return n}var nt=function(t){return function(){return t}},rt=Math.abs,at=Math.atan2,it=Math.cos,ot=Math.max,ut=Math.min,lt=Math.sin,ct=Math.sqrt,st=1e-12,ft=Math.PI,dt=ft/2,ht=2*ft,pt=function(){function t(){var t,a,i=+f.apply(this,arguments),o=+d.apply(this,arguments),u=y.apply(this,arguments)-dt,l=v.apply(this,arguments)-dt,m=rt(l-u),_=l>u;if(b||(b=t=e.path()),o<i&&(a=o,o=i,i=a),o>st)if(m>ht-st)b.moveTo(o*it(u),o*lt(u)),b.arc(0,0,o,u,l,!_),i>st&&(b.moveTo(i*it(l),i*lt(l)),b.arc(0,0,i,l,u,_));else{var x,M,w=u,O=l,P=u,k=l,T=m,A=m,j=g.apply(this,arguments)/2,E=j>st&&(p?+p.apply(this,arguments):ct(i*i+o*o)),S=ut(rt(o-i)/2,+h.apply(this,arguments)),C=S,N=S;if(E>st){var D=r(E/i*lt(j)),R=r(E/o*lt(j));(T-=2*D)>st?(D*=_?1:-1,P+=D,k-=D):(T=0,P=k=(u+l)/2),(A-=2*R)>st?(R*=_?1:-1,w+=R,O-=R):(A=0,w=O=(u+l)/2)}var L=o*it(w),F=o*lt(w),I=i*it(k),W=i*lt(k);if(S>st){var z=o*it(O),U=o*lt(O),V=i*it(P),q=i*lt(P);if(m<ft){var B=T>st?c(L,F,V,q,z,U,I,W):[I,W],H=L-B[0],Y=F-B[1],X=z-B[0],K=U-B[1],G=1/lt(n((H*X+Y*K)/(ct(H*H+Y*Y)*ct(X*X+K*K)))/2),Z=ct(B[0]*B[0]+B[1]*B[1]);C=ut(S,(i-Z)/(G-1)),N=ut(S,(o-Z)/(G+1))}}A>st?N>st?(x=s(V,q,L,F,o,N,_),M=s(z,U,I,W,o,N,_),b.moveTo(x.cx+x.x01,x.cy+x.y01),N<S?b.arc(x.cx,x.cy,N,at(x.y01,x.x01),at(M.y01,M.x01),!_):(b.arc(x.cx,x.cy,N,at(x.y01,x.x01),at(x.y11,x.x11),!_),b.arc(0,0,o,at(x.cy+x.y11,x.cx+x.x11),at(M.cy+M.y11,M.cx+M.x11),!_),b.arc(M.cx,M.cy,N,at(M.y11,M.x11),at(M.y01,M.x01),!_))):(b.moveTo(L,F),b.arc(0,0,o,w,O,!_)):b.moveTo(L,F),i>st&&T>st?C>st?(x=s(I,W,z,U,i,-C,_),M=s(L,F,V,q,i,-C,_),b.lineTo(x.cx+x.x01,x.cy+x.y01),C<S?b.arc(x.cx,x.cy,C,at(x.y01,x.x01),at(M.y01,M.x01),!_):(b.arc(x.cx,x.cy,C,at(x.y01,x.x01),at(x.y11,x.x11),!_),b.arc(0,0,i,at(x.cy+x.y11,x.cx+x.x11),at(M.cy+M.y11,M.cx+M.x11),_),b.arc(M.cx,M.cy,C,at(M.y11,M.x11),at(M.y01,M.x01),!_))):b.arc(0,0,i,k,P,_):b.lineTo(I,W)}else b.moveTo(0,0);if(b.closePath(),t)return b=null,t+""||null}var f=a,d=i,h=nt(0),p=null,y=o,v=u,g=l,b=null;return t.centroid=function(){var t=(+f.apply(this,arguments)+ +d.apply(this,arguments))/2,e=(+y.apply(this,arguments)+ +v.apply(this,arguments))/2-ft/2;return[it(e)*t,lt(e)*t]},t.innerRadius=function(e){return arguments.length?(f="function"==typeof e?e:nt(+e),t):f},t.outerRadius=function(e){return arguments.length?(d="function"==typeof e?e:nt(+e),t):d},t.cornerRadius=function(e){return arguments.length?(h="function"==typeof e?e:nt(+e),t):h},t.padRadius=function(e){return arguments.length?(p=null==e?null:"function"==typeof e?e:nt(+e),t):p},t.startAngle=function(e){return arguments.length?(y="function"==typeof e?e:nt(+e),t):y},t.endAngle=function(e){return arguments.length?(v="function"==typeof e?e:nt(+e),t):v},t.padAngle=function(e){return arguments.length?(g="function"==typeof e?e:nt(+e),t):g},t.context=function(e){return arguments.length?(b=null==e?null:e,t):b},t};f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var yt=function(t){return new f(t)},vt=function(){function t(t){var l,c,s,f=t.length,d=!1;for(null==i&&(u=o(s=e.path())),l=0;l<=f;++l)!(l<f&&a(c=t[l],l,t))===d&&((d=!d)?u.lineStart():u.lineEnd()),d&&u.point(+n(c,l,t),+r(c,l,t));if(s)return u=null,s+""||null}var n=d,r=h,a=nt(!0),i=null,o=yt,u=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:nt(+e),t):n},t.y=function(e){return arguments.length?(r="function"==typeof e?e:nt(+e),t):r},t.defined=function(e){return arguments.length?(a="function"==typeof e?e:nt(!!e),t):a},t.curve=function(e){return arguments.length?(o=e,null!=i&&(u=o(i)),t):o},t.context=function(e){return arguments.length?(null==e?i=u=null:u=o(i=e),t):i},t},gt=function(){function t(t){var n,f,d,h,p,y=t.length,v=!1,g=new Array(y),b=new Array(y);for(null==l&&(s=c(p=e.path())),n=0;n<=y;++n){if(!(n<y&&u(h=t[n],n,t))===v)if(v=!v)f=n,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=n-1;d>=f;--d)s.point(g[d],b[d]);s.lineEnd(),s.areaEnd()}v&&(g[n]=+r(h,n,t),b[n]=+i(h,n,t),s.point(a?+a(h,n,t):g[n],o?+o(h,n,t):b[n]))}if(p)return s=null,p+""||null}function n(){return vt().defined(u).curve(c).context(l)}var r=d,a=null,i=nt(0),o=h,u=nt(!0),l=null,c=yt,s=null;return t.x=function(e){return arguments.length?(r="function"==typeof e?e:nt(+e),a=null,t):r},t.x0=function(e){return arguments.length?(r="function"==typeof e?e:nt(+e),t):r},t.x1=function(e){return arguments.length?(a=null==e?null:"function"==typeof e?e:nt(+e),t):a},t.y=function(e){return arguments.length?(i="function"==typeof e?e:nt(+e),o=null,t):i},t.y0=function(e){return arguments.length?(i="function"==typeof e?e:nt(+e),t):i},t.y1=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:nt(+e),t):o},t.lineX0=t.lineY0=function(){return n().x(r).y(i)},t.lineY1=function(){return n().x(r).y(o)},t.lineX1=function(){return n().x(a).y(i)},t.defined=function(e){return arguments.length?(u="function"==typeof e?e:nt(!!e),t):u},t.curve=function(e){return arguments.length?(c=e,null!=l&&(s=c(l)),t):c},t.context=function(e){return arguments.length?(null==e?l=s=null:s=c(l=e),t):l},t},bt=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},mt=function(t){return t},_t=function(){function t(t){var u,l,c,s,f,d=t.length,h=0,p=new Array(d),y=new Array(d),v=+a.apply(this,arguments),g=Math.min(ht,Math.max(-ht,i.apply(this,arguments)-v)),b=Math.min(Math.abs(g)/d,o.apply(this,arguments)),m=b*(g<0?-1:1);for(u=0;u<d;++u)(f=y[p[u]=u]=+e(t[u],u,t))>0&&(h+=f);for(null!=n?p.sort(function(t,e){return n(y[t],y[e])}):null!=r&&p.sort(function(e,n){return r(t[e],t[n])}),u=0,c=h?(g-d*m)/h:0;u<d;++u,v=s)l=p[u],f=y[l],s=v+(f>0?f*c:0)+m,y[l]={data:t[l],index:u,value:f,startAngle:v,endAngle:s,padAngle:b};return y}var e=mt,n=bt,r=null,a=nt(0),i=nt(ht),o=nt(0);return t.value=function(n){return arguments.length?(e="function"==typeof n?n:nt(+n),t):e},t.sortValues=function(e){return arguments.length?(n=e,r=null,t):n},t.sort=function(e){return arguments.length?(r=e,n=null,t):r},t.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:nt(+e),t):a},t.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:nt(+e),t):i},t.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:nt(+e),t):o},t},xt=y(yt);p.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Mt=function(){return v(vt().curve(xt))},wt=function(){var t=gt().curve(xt),e=t.curve,n=t.lineX0,r=t.lineX1,a=t.lineY0,i=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 v(n())},delete t.lineX0,t.lineEndAngle=function(){return v(r())},delete t.lineX1,t.lineInnerRadius=function(){return v(a())},delete t.lineY0,t.lineOuterRadius=function(){return v(i())},delete t.lineY1,t.curve=function(t){return arguments.length?e(y(t)):e()._curve},t},Ot=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},Pt=Array.prototype.slice,kt={draw:function(t,e){var n=Math.sqrt(e/ft);t.moveTo(n,0),t.arc(0,0,n,0,ht)}},Tt={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},At=Math.sqrt(1/3),jt=2*At,Et={draw:function(t,e){var n=Math.sqrt(e/jt),r=n*At;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},St=.8908130915292852,Ct=Math.sin(ft/10)/Math.sin(7*ft/10),Nt=Math.sin(ht/10)*Ct,Dt=-Math.cos(ht/10)*Ct,Rt={draw:function(t,e){var n=Math.sqrt(e*St),r=Nt*n,a=Dt*n;t.moveTo(0,-n),t.lineTo(r,a);for(var i=1;i<5;++i){var o=ht*i/5,u=Math.cos(o),l=Math.sin(o);t.lineTo(l*n,-u*n),t.lineTo(u*r-l*a,l*r+u*a)}t.closePath()}},Lt={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Ft=Math.sqrt(3),It={draw:function(t,e){var n=-Math.sqrt(e/(3*Ft));t.moveTo(0,2*n),t.lineTo(-Ft*n,-n),t.lineTo(Ft*n,-n),t.closePath()}},Wt=-.5,zt=Math.sqrt(3)/2,Ut=1/Math.sqrt(12),Vt=3*(Ut/2+1),qt={draw:function(t,e){var n=Math.sqrt(e/Vt),r=n/2,a=n*Ut,i=r,o=n*Ut+n,u=-i,l=o;t.moveTo(r,a),t.lineTo(i,o),t.lineTo(u,l),t.lineTo(Wt*r-zt*a,zt*r+Wt*a),t.lineTo(Wt*i-zt*o,zt*i+Wt*o),t.lineTo(Wt*u-zt*l,zt*u+Wt*l),t.lineTo(Wt*r+zt*a,Wt*a-zt*r),t.lineTo(Wt*i+zt*o,Wt*o-zt*i),t.lineTo(Wt*u+zt*l,Wt*l-zt*u),t.closePath()}},Bt=[kt,Tt,Et,Lt,Rt,It,qt],Ht=function(){function t(){var t;if(a||(a=t=e.path()),n.apply(this,arguments).draw(a,+r.apply(this,arguments)),t)return a=null,t+""||null}var n=nt(kt),r=nt(64),a=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:nt(e),t):n},t.size=function(e){return arguments.length?(r="function"==typeof e?e:nt(+e),t):r},t.context=function(e){return arguments.length?(a=null==e?null:e,t):a},t},Yt=function(){};T.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:k(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:k(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Xt=function(t){return new T(t)};A.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:k(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Kt=function(t){return new A(t)};j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:k(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Gt=function(t){return new j(t)};E.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,a=t[0],i=e[0],o=t[n]-a,u=e[n]-i,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+r*o),this._beta*e[l]+(1-this._beta)*(i+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Zt=function t(e){function n(t){return 1===e?new T(t):new E(t,e)}return n.beta=function(e){return t(+e)},n}(.85);C.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:S(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:S(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var $t=function t(e){function n(t){return new C(t,e)}return n.tension=function(e){return t(+e)},n}(0);N.prototype={areaStart:Yt,areaEnd:Yt,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:S(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Qt=function t(e){function n(t){return new N(t,e)}return n.tension=function(e){return t(+e)},n}(0);D.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:S(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Jt=function t(e){function n(t){return new D(t,e)}return n.tension=function(e){return t(+e)},n}(0);L.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:R(this,t,e)}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=e}};var te=function t(e){function n(t){return e?new L(t,e):new C(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);F.prototype={areaStart:Yt,areaEnd:Yt,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:R(this,t,e)}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=e}};var ee=function t(e){function n(t){return e?new F(t,e):new N(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);I.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:R(this,t,e)}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=e}};var ne=function t(e){function n(t){return e?new I(t,e):new D(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);W.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var re=function(t){return new W(t)};B.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:q(this,this._t0,V(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,q(this,V(this,n=U(this,t,e)),n);break;default:q(this,this._t0,n=U(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(H.prototype=Object.create(B.prototype)).point=function(t,e){B.prototype.point.call(this,e,t)},Y.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,a,i){this._context.bezierCurveTo(e,t,r,n,i,a)}},G.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Z(t),a=Z(e),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ae=function(t){return new G(t)};$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var ie=function(t){return new $(t,.5)},oe=function(t,e){if((a=t.length)>1)for(var n,r,a,i=1,o=t[e[0]],u=o.length;i<a;++i)for(r=o,o=t[e[i]],n=0;n<u;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},ue=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n},le=function(){function t(t){var i,o,u=e.apply(this,arguments),l=t.length,c=u.length,s=new Array(c);for(i=0;i<c;++i){for(var f,d=u[i],h=s[i]=new Array(l),p=0;p<l;++p)h[p]=f=[0,+a(t[p],d,p,t)],f.data=t[p];h.key=d}for(i=0,o=n(s);i<c;++i)s[o[i]].index=i;return r(s,o),s}var e=nt([]),n=ue,r=oe,a=tt;return t.keys=function(n){return arguments.length?(e="function"==typeof n?n:nt(Pt.call(n)),t):e},t.value=function(e){return arguments.length?(a="function"==typeof e?e:nt(+e),t):a},t.order=function(e){return arguments.length?(n=null==e?ue:"function"==typeof e?e:nt(Pt.call(e)),t):n},t.offset=function(e){return arguments.length?(r=null==e?oe:e,t):r},t},ce=function(t,e){if((r=t.length)>0){for(var n,r,a,i=0,o=t[0].length;i<o;++i){for(a=n=0;n<r;++n)a+=t[n][i][1]||0;if(a)for(n=0;n<r;++n)t[n][i][1]/=a}oe(t,e)}},se=function(t,e){if((u=t.length)>1)for(var n,r,a,i,o,u,l=0,c=t[e[0]].length;l<c;++l)for(i=o=0,n=0;n<u;++n)(a=(r=t[e[n]][l])[1]-r[0])>=0?(r[0]=i,r[1]=i+=a):a<0?(r[1]=o,r[0]=o+=a):r[0]=i},fe=function(t,e){if((n=t.length)>0){for(var n,r=0,a=t[e[0]],i=a.length;r<i;++r){for(var o=0,u=0;o<n;++o)u+=t[o][r][1]||0;a[r][1]+=a[r][0]=-u/2}oe(t,e)}},de=function(t,e){if((a=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,a,i=0,o=1;o<r;++o){for(var u=0,l=0,c=0;u<a;++u){for(var s=t[e[u]],f=s[o][1]||0,d=s[o-1][1]||0,h=(f-d)/2,p=0;p<u;++p){var y=t[e[p]],v=y[o][1]||0,g=y[o-1][1]||0;h+=v-g}l+=f,c+=h*f}n[o-1][1]+=n[o-1][0]=i,l&&(i-=c/l)}n[o-1][1]+=n[o-1][0]=i,oe(t,e)}},he=function(t){var e=t.map(et);return ue(t).sort(function(t,n){return e[t]-e[n]})},pe=function(t){return he(t).reverse()},ye=function(t){var e,n,r=t.length,a=t.map(et),i=ue(t).sort(function(t,e){return a[e]-a[t]}),o=0,u=0,l=[],c=[];for(e=0;e<r;++e)n=i[e],o<u?(o+=a[n],l.push(n)):(u+=a[n],c.push(n));return c.reverse().concat(l)},ve=function(t){return ue(t).reverse()};t.arc=pt,t.area=gt,t.line=vt,t.pie=_t,t.areaRadial=wt,t.radialArea=wt,t.lineRadial=Mt,t.radialLine=Mt,t.pointRadial=Ot,t.linkHorizontal=w,t.linkVertical=O,t.linkRadial=P,t.symbol=Ht,t.symbols=Bt,t.symbolCircle=kt,t.symbolCross=Tt,t.symbolDiamond=Et,t.symbolSquare=Lt,t.symbolStar=Rt,t.symbolTriangle=It,t.symbolWye=qt,t.curveBasisClosed=Kt,t.curveBasisOpen=Gt,t.curveBasis=Xt,t.curveBundle=Zt,t.curveCardinalClosed=Qt,t.curveCardinalOpen=Jt,t.curveCardinal=$t,t.curveCatmullRomClosed=ee,t.curveCatmullRomOpen=ne,t.curveCatmullRom=te,t.curveLinearClosed=re,t.curveLinear=yt,t.curveMonotoneX=X,t.curveMonotoneY=K,t.curveNatural=ae,t.curveStep=ie,t.curveStepAfter=J,t.curveStepBefore=Q,t.stack=le,t.stackOffsetExpand=ce,t.stackOffsetDiverging=se,t.stackOffsetNone=oe,t.stackOffsetSilhouette=fe,t.stackOffsetWiggle=de,t.stackOrderAscending=he,t.stackOrderDescending=pe,t.stackOrderInsideOut=ye,t.stackOrderNone=ue,t.stackOrderReverse=ve,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function n(){return new e}var r=Math.PI,a=2*r,i=1e-6,o=a-i;e.prototype=n.prototype={constructor:e,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,a,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(t,e,n,a,o){t=+t,e=+e,n=+n,a=+a,o=+o;var u=this._x1,l=this._y1,c=n-t,s=a-e,f=u-t,d=l-e,h=f*f+d*d;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>i)if(Math.abs(d*c-s*f)>i&&o){var p=n-u,y=a-l,v=c*c+s*s,g=p*p+y*y,b=Math.sqrt(v),m=Math.sqrt(h),_=o*Math.tan((r-Math.acos((v+h-g)/(2*b*m)))/2),x=_/m,M=_/b;Math.abs(x-1)>i&&(this._+="L"+(t+x*f)+","+(e+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*p>f*y)+","+(this._x1=t+M*c)+","+(this._y1=e+M*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,u,l,c){t=+t,e=+e,n=+n;var s=n*Math.cos(u),f=n*Math.sin(u),d=t+s,h=e+f,p=1^c,y=c?u-l:l-u;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>i||Math.abs(this._y1-h)>i)&&(this._+="L"+d+","+h),n&&(y<0&&(y=y%a+a),y>o?this._+="A"+n+","+n+",0,1,"+p+","+(t-s)+","+(e-f)+"A"+n+","+n+",0,1,"+p+","+(this._x1=d)+","+(this._y1=h):y>i&&(this._+="A"+n+","+n+",0,"+ +(y>=r)+","+p+","+(this._x1=t+n*Math.cos(l))+","+(this._y1=e+n*Math.sin(l))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.path=n,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function a(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{
|
|
7
|
-
constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n(123),s=a(c),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d="src/victory-primitives/bar.js",h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=n(48),y=a(p),v=n(49),g=a(v),b=n(191),m=a(b),_=n(189),x=a(_),M=n(230),w=a(M),O=n(236),P=r(O),k=function(t){function e(){return o(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),h(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.datum,u=a.horizontal,l=a.x,c=a.y,s=a.y0;return!x.default.allSetsEqual([[i,t.className],[l,t.x],[c,t.y],[s,t.y0],[u,t.horizontal],[r,this.path],[n,this.style],[o,t.datum]])&&(this.style=n,this.path=r,!0)}},{key:"calculateAttributes",value:function(t){var e=t.datum,n=t.active,r=t.polar,a=t.style&&t.style.fill||"black",i={fill:"black",stroke:a},o=m.default.evaluateStyle((0,s.default)(i,t.style),e,n),u=this.getBarWidth(t,o),l=r?this.getPolarBarPath(t,u):this.getBarPath(t,u);return{style:o,path:l}}},{key:"getPosition",value:function(t,e){var n=e/2,r=t.x,a=t.y,i=t.y0;return{y0:Math.round(i),y1:Math.round(a),x0:Math.round(r-n),x1:Math.round(r+n)}}},{key:"getVerticalBarPath",value:function(t,e){var n=this.getPosition(t,e),r=n.x0,a=n.x1,i=n.y0,o=n.y1;return"M "+r+", "+i+"\n L "+r+", "+o+"\n L "+a+", "+o+"\n L "+a+", "+i+"\n L "+r+", "+i+"\n z"}},{key:"getHorizontalBarPath",value:function(t,e){var n=this.getPosition(t,e),r=n.x0,a=n.x1,i=n.y0,o=n.y1;return"M "+i+", "+r+"\n L "+i+", "+a+"\n L "+o+", "+a+"\n L "+o+", "+r+"\n L "+i+", "+r+"\n z"}},{key:"transformAngle",value:function(t){return-1*t+Math.PI/2}},{key:"getAngularWidth",value:function(t,e){var n=t.scale,r=n.y.range(),a=Math.max.apply(Math,i(r)),o=Math.abs(n.x.range()[1]-n.x.range()[0]);return e/(2*Math.PI*a)*o}},{key:"getAngle",value:function(t,e){var n=t.data,r=t.scale,a=void 0===n[e]._x1?"_x":"_x1";return r.x(n[e][a])}},{key:"getStartAngle",value:function(t,e){var n=t.data,r=t.scale,a=this.getAngle(t,e),i=Math.abs(r.x.range()[1]-r.x.range()[0]),o=0===e?this.getAngle(t,n.length-1)-2*Math.PI:this.getAngle(t,e-1);return 0===e&&i<2*Math.PI?r.x.range()[0]:(a+o)/2}},{key:"getEndAngle",value:function(t,e){var n=t.data,r=t.scale,a=this.getAngle(t,e),i=Math.abs(r.x.range()[1]-r.x.range()[0]),o=r.x.range()[1]===2*Math.PI?this.getAngle(t,0)+2*Math.PI:r.x.range()[1],u=e===n.length-1?this.getAngle(t,0)+2*Math.PI:this.getAngle(t,e+1);return e===n.length-1&&i<2*Math.PI?o:(a+u)/2}},{key:"getVerticalPolarBarPath",value:function(t){var e=t.datum,n=t.scale,r=t.style,a=t.index,i=n.y(e._y0||0),o=n.y(void 0!==e._y1?e._y1:e._y),u=n.x(void 0!==e._x1?e._x1:e._x),l=void 0,c=void 0;if(r.width){var s=this.getAngularWidth(t,r.width);l=u-s/2,c=u+s/2}else l=this.getStartAngle(t,a),c=this.getEndAngle(t,a);var f=P.arc().innerRadius(i).outerRadius(o).startAngle(this.transformAngle(l)).endAngle(this.transformAngle(c));return f()}},{key:"getBarPath",value:function(t,e){return this.props.horizontal?this.getHorizontalBarPath(t,e):this.getVerticalBarPath(t,e)}},{key:"getPolarBarPath",value:function(t){return this.getVerticalPolarBarPath(t)}},{key:"getBarWidth",value:function(t,e){if(e.width)return e.width;var n=t.scale,r=t.data,a=t.horizontal,i=a?n.y.range():n.x.range(),o=Math.abs(i[1]-i[0]),u=r.length+2,l=.5,c=r.length<2?8:l*o/u;return Math.max(1,Math.round(c))}},{key:"renderBar",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className,u=r.origin,l=r.polar,c=l&&u?"translate("+u.x+", "+u.y+")":void 0;return y.default.createElement("path",f({d:t,transform:c,className:o,style:e,role:a||"presentation",shapeRendering:i||"auto"},n,{__source:{fileName:d,lineNumber:185}}))}},{key:"render",value:function(){return this.renderBar(this.path,this.style,this.props.events)}}]),e}(y.default.Component);k.propTypes=f({},w.default,{datum:g.default.object,horizontal:g.default.bool,padding:g.default.oneOfType([g.default.number,g.default.object]),width:g.default.number,x:g.default.number,y:g.default.number,y0:g.default.number}),e.default=k},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(123),l=r(u),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s="src/victory-primitives/candle.js",f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),d=n(48),h=r(d),p=n(49),y=r(p),v=n(191),g=r(v),b=n(189),m=r(b),_=n(230),x=r(_),M=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),f(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.candleWidth;this.style=e,this.candleWidth=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.className,r=e.candleHeight,a=e.datum,i=e.x,o=e.y,u=e.y1,l=e.y2,c=this.calculateAttributes(t),s=c.style,f=c.candleWidth;return!m.default.allSetsEqual([[n,t.className],[r,t.candleHeight],[i,t.x],[o,t.y],[u,t.y1],[l,t.y2],[f,this.candleWidth],[s,this.style],[a,t.datum]])&&(this.style=s,this.candleWidth=f,!0)}},{key:"calculateAttributes",value:function(t){var e=t.data,n=t.datum,r=t.active,a=t.width,i=g.default.evaluateStyle((0,l.default)({stroke:"black"},t.style),n,r),o=t.padding.left||t.padding,u=i.width||.5*(a-2*o)/e.length;return{style:i,candleWidth:u}}},{key:"renderWick",value:function(t){return h.default.createElement("line",c({},t,{__source:{fileName:s,lineNumber:68}}))}},{key:"renderCandle",value:function(t){return h.default.createElement("rect",c({},t,{__source:{fileName:s,lineNumber:73}}))}},{key:"getCandleProps",value:function(t){var e=t.candleHeight,n=t.x,r=t.y,a=t.events,i=t.role,o=t.className,u=t.shapeRendering||"auto",c=n-this.candleWidth/2;return(0,l.default)({x:c,y:r,style:this.style,role:i,width:this.candleWidth,height:e,shapeRendering:u,className:o},a)}},{key:"getWickProps",value:function(t){var e=t.x,n=t.y1,r=t.y2,a=t.events,i=t.className,o=t.shapeRendering||"auto",u=t.role||"presentation";return(0,l.default)({x1:e,x2:e,y1:n,y2:r,style:this.style,role:u,shapeRendering:o,className:i},a)}},{key:"render",value:function(){var t=this.getCandleProps(this.props),e=this.getWickProps(this.props);return h.default.cloneElement(this.props.groupComponent,{},this.renderWick(e),this.renderCandle(t))}}]),e}(h.default.Component);M.propTypes=c({},x.default,{candleHeight:y.default.number,datum:y.default.object,groupComponent:y.default.element,padding:y.default.oneOfType([y.default.number,y.default.object]),width:y.default.number,x:y.default.number,y:y.default.number,y1:y.default.number,y2:y.default.number}),M.defaultProps={groupComponent:h.default.createElement("g",{__source:{fileName:s,lineNumber:27}})},e.default=M},function(t,e,n){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function a(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(123),c=a(l),s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f="src/victory-primitives/curve.js",d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=n(48),p=a(h),y=n(49),v=a(y),g=n(191),b=a(g),m=n(235),_=n(189),x=a(_),M=n(236),w=r(M),O=n(230),P=a(O),k=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),d(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.interpolation;return!x.default.allSetsEqual([[i,t.className],[o,t.interpolation],[r,this.path],[n,this.style]])&&(this.style=n,this.path=r,!0)}},{key:"getLineFunction",value:function(t){var e=t.polar,n=t.scale,r=t.openCurve,a=e&&!r?this.toNewName(t.interpolation)+"Closed":this.toNewName(t.interpolation);return e?w.lineRadial().defined(m.defined).curve(w[a]).angle((0,m.getAngleAccessor)(n)).radius((0,m.getYAccessor)(n)):w.line().defined(m.defined).curve(w[a]).x((0,m.getXAccessor)(n)).y((0,m.getYAccessor)(n))}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.data,r=t.active,a=this.getLineFunction(t);return{style:b.default.evaluateStyle((0,c.default)({fill:"none",stroke:"black"},e),n,r),path:a(n)}}},{key:"toNewName",value:function(t){var e=function(t){return t&&t[0].toUpperCase()+t.slice(1)};return"curve"+e(t)}},{key:"renderLine",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className,u=r.polar,l=r.origin,c=u&&l?"translate("+l.x+", "+l.y+")":void 0;return p.default.createElement("path",s({style:e,shapeRendering:i||"auto",role:a||"presentation",d:t,transform:c,className:o},n,{__source:{fileName:f,lineNumber:81}}))}},{key:"render",value:function(){var t=this.props.events;return this.renderLine(this.path,this.style,t)}}]),e}(p.default.Component);k.propTypes=s({},P.default,{interpolation:v.default.string,openCurve:v.default.bool,origin:v.default.object,polar:v.default.bool}),e.default=k},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(123),l=r(u),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s="src/victory-primitives/error-bar.js",f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),d=n(48),h=r(d),p=n(49),y=r(p),v=n(191),g=r(v),b=n(189),m=r(b),_=n(230),x=r(_),M=function(t){function e(t){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return o(e,t),f(e,[{key:"componentWillMount",value:function(){this.style=this.getStyle(this.props)}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.borderWidth,r=e.className,a=e.datum,i=e.x,o=e.y,u=e.errorX,l=e.errorY,c=this.getStyle(t);return!m.default.allSetsEqual([[n,t.borderWidth],[r,t.className],[i,t.x],[o,t.y],[u,t.errorX],[l,t.errorY],[this.style,c],[a,t.datum]])&&(this.style=c,!0)}},{key:"getStyle",value:function(t){var e=t.style,n=t.datum,r=t.active;return g.default.evaluateStyle((0,l.default)({stroke:"black"},e),n,r)}},{key:"renderLine",value:function(t,e,n){return h.default.createElement("line",c({},t,{style:e},n,{__source:{fileName:s,lineNumber:70}}))}},{key:"renderBorder",value:function(t,e,n){var r=t.x,a=t.y,i=t.borderWidth,o=t.events,u=t.style,l=t.role,c=t.shapeRendering,s=t.className,f="Right"===n||"Left"===n,d=e["error"+n],h={role:l,shapeRendering:c,className:s,key:"border"+n,x1:f?d:r-i,x2:f?d:r+i,y1:f?a-i:d,y2:f?a+i:d};return this.renderLine(h,u,o)}},{key:"renderCross",value:function(t,e,n){var r=t.x,a=t.y,i=t.events,o=t.style,u=t.role,l=t.shapeRendering,c=t.className,s="Top"===n||"Bottom"===n,f=e["error"+n],d={role:u,shapeRendering:l,className:c,key:"cross"+n,x1:r,x2:s?r:f,y1:a,y2:s?f:a};return this.renderLine(d,o,i)}},{key:"renderErrorBar",value:function(t,e){var n=e.groupComponent;return h.default.cloneElement(n,{},t.errorRight?this.renderBorder(e,t,"Right"):null,t.errorLeft?this.renderBorder(e,t,"Left"):null,t.errorBottom?this.renderBorder(e,t,"Bottom"):null,t.errorTop?this.renderBorder(e,t,"Top"):null,t.errorRight?this.renderCross(e,t,"Right"):null,t.errorLeft?this.renderCross(e,t,"Left"):null,t.errorBottom?this.renderCross(e,t,"Bottom"):null,t.errorTop?this.renderCross(e,t,"Top"):null)}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.borderWidth,a=t.groupComponent,i=t.events,o=t.errorX,u=t.errorY,l=t.scale,c=t.role,s=t.shapeRendering,f=t.className,d=void 0,p=void 0,y=void 0,v=void 0,g=void 0,b=void 0,m=void 0,_=void 0,x=void 0,M=void 0;o&&(d=l.x.range(),y=o[0],v=o[1],x=y>=d[1]?d[1]:y,M=v<=d[0]?d[0]:v),u&&(p=l.y.range(),g=u[1],b=u[0],m=g>=p[0]?p[0]:g,_=b<=p[1]?p[1]:b);var w={x:e,y:n,borderWidth:r,groupComponent:a,events:i,className:f,role:c||"presentation",shapeRendering:s||"auto",style:this.style};return h.default.cloneElement(this.props.groupComponent,{},this.renderErrorBar({errorTop:m,errorBottom:_,errorRight:x,errorLeft:M},w))}}]),e}(h.default.Component);M.propTypes=c({},x.default,{borderWidth:y.default.number,datum:y.default.object,errorX:y.default.oneOfType([y.default.number,y.default.array,y.default.bool]),errorY:y.default.oneOfType([y.default.number,y.default.array,y.default.bool]),groupComponent:y.default.element,x:y.default.number,y:y.default.number}),M.defaultProps={borderWidth:10,groupComponent:h.default.createElement("g",{__source:{fileName:s,lineNumber:31}})},e.default=M},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(123),l=r(u),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s="src/victory-primitives/line.js",f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),d=n(48),h=r(d),p=n(49),y=r(p),v=n(191),g=r(v),b=n(189),m=r(b),_=n(230),x=r(_),M=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),f(e,[{key:"componentWillMount",value:function(){this.style=this.getStyle(this.props)}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.className,r=e.datum,a=e.x1,i=e.x2,o=e.y1,u=e.y2,l=this.getStyle(t);return!m.default.allSetsEqual([[n,t.className],[a,t.x1],[i,t.x2],[o,t.y1],[u,t.y2],[l,this.style],[r,t.datum]])&&(this.style=l,!0)}},{key:"getStyle",value:function(t){var e=t.style,n=t.datum,r=t.active;return g.default.evaluateStyle((0,l.default)({stroke:"black"},e),n,r)}},{key:"renderAxisLine",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className;return h.default.createElement("line",c({},t,{className:o,style:e,role:a||"presentation",shapeRendering:i||"auto",vectorEffect:"non-scaling-stroke"},n,{__source:{fileName:s,lineNumber:49}}))}},{key:"render",value:function(){var t=this.props,e=t.x1,n=t.x2,r=t.y1,a=t.y2,i=t.events;return this.renderAxisLine({x1:e,x2:n,y1:r,y2:a},this.style,i)}}]),e}(h.default.Component);M.propTypes=c({},x.default,{datum:y.default.any,x1:y.default.number,x2:y.default.number,y1:y.default.number,y2:y.default.number}),e.default=M},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l="src/victory-primitives/slice.js",c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(48),f=r(s),d=n(49),h=r(d),p=n(191),y=r(p),v=n(189),g=r(v),b=n(230),m=r(b),_=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),c(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.datum,u=a.slice;return!g.default.allSetsEqual([[i,t.className],[r,this.path],[n,this.style],[o,t.datum],[u,t.slice]])&&(this.style=n,this.path=r,!0)}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.datum,r=t.active,a=t.pathFunction,i=t.slice;return{style:y.default.evaluateStyle(e,n,r),path:a(i)}}},{key:"renderSlice",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className,c=r.origin,s=c?"translate("+c.x+", "+c.y+")":void 0;return f.default.createElement("path",u({d:t,className:o,role:a||"presentation",style:e,transform:s,shapeRendering:i||"auto"},n,{__source:{fileName:l,lineNumber:51}}))}},{key:"render",value:function(){return this.renderSlice(this.path,this.style,this.props.events)}}]),e}(f.default.Component);_.propTypes=u({},m.default,{datum:h.default.object,pathFunction:h.default.func,slice:h.default.object}),e.default=_},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l="src/victory-primitives/voronoi.js",c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(48),f=r(s),d=n(49),h=r(d),p=n(191),y=r(p),v=n(189),g=r(v),b=n(230),m=r(b),_=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),c(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.circle,r=t.voronoi;this.style=e,this.circle=n,this.voronoi=r}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.circle,a=e.voronoi,i=this.props,o=i.className,u=i.x,l=i.y,c=i.datum;return!g.default.allSetsEqual([[o,t.className],[u,t.x],[l,t.y],[r,this.circle],[a,this.voronoi],[n,this.style],[c,t.datum]])&&(this.style=n,this.circle=r,this.voronoi=a,!0)}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.datum,r=t.active;return{style:y.default.evaluateStyle(e,n,r),circle:this.getCirclePath(t),voronoi:this.getVoronoiPath(t)}}},{key:"getVoronoiPath",value:function(t){var e=t.polygon;return Array.isArray(e)&&e.length?"M "+t.polygon.join("L")+" Z":""}},{key:"getCirclePath",value:function(t){if(!t.size)return null;var e=t.x,n=t.y,r=t.datum,a=t.active,i=y.default.evaluateProp(t.size,r,a);return"M "+e+", "+n+" m "+-i+", 0\n a "+i+", "+i+" 0 1,0 "+2*i+",0\n a "+i+", "+i+" 0 1,0 "+2*-i+",0"}},{key:"renderPoint",value:function(t,e,n){var r=t.circle&&"clipPath-"+Math.random(),a=t.circle?"url(#"+r+")":void 0,i=this.props,o=i.role,c=i.shapeRendering,s=i.className,d=f.default.createElement("path",u({d:t.circle||t.voronoi,className:s,clipPath:a,style:e,role:o||"presentation",shapeRendering:c||"auto"},n,{__source:{fileName:l,lineNumber:77}}));return t.circle?f.default.createElement("g",{__source:{fileName:l,lineNumber:89}},f.default.createElement("defs",{__source:{fileName:l,lineNumber:90}},f.default.createElement("clipPath",{id:r,__source:{fileName:l,lineNumber:91}},f.default.createElement("path",{d:t.voronoi,className:s,__source:{fileName:l,lineNumber:92}}))),d):d}},{key:"render",value:function(){var t={circle:this.circle,voronoi:this.voronoi};return this.renderPoint(t,this.style,this.props.events)}}]),e}(f.default.Component);_.propTypes=u({},m.default,{datum:h.default.object,polygon:h.default.array,size:h.default.number,x:h.default.number,y:h.default.number}),e.default=_},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(204),c=r(l),s=n(196),f=r(s),d=n(2),h=r(d),p=n(94),y=r(p),v=n(123),g=r(v),b=n(69),m=r(b),_="src/victory-util/add-events.js",x=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),M=function t(e,n,r){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,n);if(void 0===a){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in a)return a.value;var o=a.get;if(void 0!==o)return o.call(r)},w=n(48),O=r(w),P=n(203),k=r(P),T=n(195),A=r(T);e.default=function(t){return function(e){function n(){return i(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return u(n,e),x(n,[{key:"componentWillMount",value:function(){(0,y.default)(M(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillMount",this))&&M(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillMount",this).call(this),this.state=this.state||{};var t=k.default.getScopedEvents.bind(this);this.getEvents=(0,h.default)(k.default.getEvents.bind(this),t),this.getEventState=k.default.getEventState.bind(this),this.setupEvents(this.props)}},{key:"componentWillUpdate",value:function(t){(0,y.default)(M(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillReceiveProps",this))&&M(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillReceiveProps",this).call(this),this.setupEvents(t)}},{key:"setupEvents",value:function(e){var n=e.sharedEvents,r=t.expectedComponents;this.componentEvents=k.default.getComponentEvents(e,r),this.getSharedEventState=n&&(0,y.default)(n.getEventState)?n.getEventState:function(){},this.baseProps=this.getBaseProps(e),this.dataKeys=Object.keys(this.baseProps).filter(function(t){return"parent"!==t}),this.hasEvents=e.events||e.sharedEvents||this.componentEvents,this.events=this.getAllEvents(e)}},{key:"getBaseProps",value:function(e){var n=this.getSharedEventState("parent","parent"),r=this.getEventState("parent","parent"),a=(0,m.default)({},r,n),i=a.parentControlledProps,o=i?(0,f.default)(a,i):{},u=(0,m.default)({},o,e);return(0,y.default)(t.getBaseProps)?t.getBaseProps(u):{}}},{key:"getAllEvents",value:function(t){if(Array.isArray(this.componentEvents)){var e;return Array.isArray(t.events)?(e=this.componentEvents).concat.apply(e,a(t.events)):this.componentEvents}return t.events}},{key:"getComponentProps",value:function(e,n,r){var a=t.role,i=this.dataKeys&&this.dataKeys[r]||r,o=this.baseProps[i][n]||this.baseProps[i];if(o||this.hasEvents){if(this.hasEvents){var u=this.getEvents(this.props,n,i),l=(0,m.default)({index:r,key:a+"-"+n+"-"+i},this.getEventState(i,n),this.getSharedEventState(i,n),e.props,o),c=(0,m.default)({},k.default.getPartialEvents(u,i,l),l.events);return(0,g.default)({},l,{events:c})}return(0,m.default)({index:r,key:a+"-"+n+"-"+i},e.props,o)}}},{key:"renderContainer",value:function(t,e){var n=t.type&&"container"===t.type.role,r=n?this.getComponentProps(t,"parent","parent"):{};return O.default.cloneElement(t,r,e)}},{key:"animateComponent",value:function(t,e){return O.default.createElement(A.default,{animate:t.animate,animationWhitelist:e,__source:{fileName:_,lineNumber:96}},O.default.createElement(this.constructor,t))}},{key:"renderContinuousData",value:function(t){var e=this,n=t.dataComponent,r=t.labelComponent,i=t.groupComponent,o=(0,c.default)(this.dataKeys,"all"),u=o.reduce(function(t,n){var a=e.getComponentProps(r,"labels",n);return a&&void 0!==a.text&&null!==a.text&&(t=t.concat(O.default.cloneElement(r,a))),t},[]),l=this.getComponentProps(n,"data","all"),s=[O.default.cloneElement(n,l)].concat(a(u));return this.renderContainer(i,s)}},{key:"renderData",value:function(t){var e=this,n=t.dataComponent,r=t.labelComponent,i=t.groupComponent,o=this.dataKeys.map(function(t,r){var a=e.getComponentProps(n,"data",r);return O.default.cloneElement(n,a)}),u=this.dataKeys.map(function(t,n){var a=e.getComponentProps(r,"labels",n);if(void 0!==a.text&&null!==a.text)return O.default.cloneElement(r,a)}).filter(Boolean),l=[].concat(a(o),a(u));return this.renderContainer(i,l)}}]),n}(t)}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(247),o=r(i),u=n(185),l=r(u),c=n(94),s=r(c),f=n(106),d=r(f),h=n(226),p=r(h),y=n(253),v=r(y),g=n(123),b=r(g),m=n(191),_=r(m),x=n(189),M=r(x),w=n(256),O=r(w);e.default={getData:function(t){var e=void 0;if(t.data){if(t.data.length<1)return[];e=this.formatData(t.data,t)}else e=this.formatData(this.generateData(t),t);return this.addEventKeys(t,e)},generateDataArray:function(t,e){var n=t.domain&&Array.isArray(t.domain)?t.domain:t.domain&&t.domain[e],r=n||O.default.getBaseScale(t,e).domain(),i=t.samples||1,o=Math.max.apply(Math,a(r)),u=Math.min.apply(Math,a(r)),l=(o-u)/i,c=(0,p.default)(u,o,l);return(0,d.default)(c)===o?c:c.concat(o)},generateData:function(t){var e=this.generateDataArray(t,"x"),n=this.generateDataArray(t,"y"),r=e.map(function(t,e){return{x:t,y:n[e]}});return r},formatData:function(t,e,n){if(!Array.isArray(t))return[];n=n||{x:this.createStringMap(e,"x"),y:this.createStringMap(e,"y")};var r={x:_.default.createAccessor(void 0!==e.x?e.x:"x"),y:_.default.createAccessor(void 0!==e.y?e.y:"y"),y0:_.default.createAccessor(void 0!==e.y0?e.y0:"y0")},a=t.map(function(t,e){var a=void 0!==t._x?t._x:r.x(t),i=void 0!==t._y?t._y:r.y(t),o=void 0!==t._y0?t._y0:r.y0(t),u=void 0!==a?a:e,l=void 0!==i?i:t,c=void 0===o?{x:u,y:l}:{x:u,y:l,y0:o},s=void 0===o?{_x:u,_y:l}:{_x:u,_y:l,_y0:o};return(0,b.default)(c,t,s,"string"==typeof u?{_x:n.x[u],xName:u}:{},"string"==typeof l?{_y:n.y[l],yName:l}:{},"string"==typeof o?{_y0:n.y[o],yName:o}:{})}),i=this.sortData(a,e.sortKey);return this.cleanData(i,e)},sortData:function(t,e){return e?("x"!==e&&"y"!==e||(e="_"+e),(0,o.default)(t,e)):t},cleanData:function(t,e){var n={x:O.default.getScaleType(e,"x"),y:O.default.getScaleType(e,"y")};if("log"!==n.x&&"log"!==n.y)return t;var r=function(t,e){return"log"!==n[e]||0!==t["_"+e]};return t.filter(function(t){return r(t,"x")&&r(t,"y")&&r(t,"y0")})},getEventKey:function(t){return(0,s.default)(t)?t:null===t||"undefined"==typeof t?function(){}:(0,l.default)(t)},addEventKeys:function(t,e){var n=this.getEventKey(t.eventKey);return e.map(function(t,e){var r=t.eventKey||n(t)||e;return(0,b.default)({eventKey:r},t)})},createStringMap:function(t,e){var n=this.getStringsFromAxes(t,e),r=this.getStringsFromCategories(t,e),i=this.getStringsFromData(t,e),o=(0,v.default)([].concat(a(n),a(r),a(i)));return 0===o.length?null:o.reduce(function(t,e,n){return t[e]=n+1,t},{})},getStringsFromData:function(t,e){if(!Array.isArray(t.data))return[];var n="undefined"==typeof t[e]?e:t[e],r=_.default.createAccessor(n),a=t.data.map(function(t){return r(t)}).filter(function(t){return"string"==typeof t});return a.reduce(function(t,e){return"undefined"!=typeof e&&null!==e&&t.indexOf(e)===-1&&t.push(e),
|
|
8
|
-
t},[])},getStringsFromAxes:function(t,e){if(!t.tickValues||!Array.isArray(t.tickValues)&&!t.tickValues[e])return[];var n=t.tickValues[e]||t.tickValues;return n.filter(function(t){return"string"==typeof t})},getStringsFromCategories:function(t,e){if(!t.categories)return[];var n=this.getCategories(t,e),r=n&&n.filter(function(t){return"string"==typeof t});return r?M.default.removeUndefined(r):[]},getCategories:function(t,e){return t.categories&&!Array.isArray(t.categories)?t.categories[e]:t.categories}}},function(t,e,n){var r=n(114),a=n(248),i=n(3),o=n(76),u=i(function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),a(t,r(e,1),[])});t.exports=u},function(t,e,n){function r(t,e,n){var r=-1;e=a(e.length?e:[s],l(i));var f=o(t,function(t,n,i){var o=a(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return u(f,function(t,e){return c(t,e,n)})}var a=n(97),i=n(153),o=n(249),u=n(250),l=n(88),c=n(251),s=n(4);t.exports=r},97,function(t,e){function n(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}t.exports=n},function(t,e,n){function r(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,l=n.length;++r<u;){var c=a(i[r],o[r]);if(c){if(r>=l)return c;var s=n[r];return c*("desc"==s?-1:1)}}return t.index-e.index}var a=n(252);t.exports=r},function(t,e,n){function r(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t===t,o=a(t),u=void 0!==e,l=null===e,c=e===e,s=a(e);if(!l&&!s&&!o&&t>e||o&&u&&c&&!l&&!s||r&&u&&c||!n&&c||!i)return 1;if(!r&&!o&&!s&&t<e||s&&n&&i&&!r&&!o||l&&n&&i||!u&&i||!c)return-1}return 0}var a=n(102);t.exports=r},function(t,e,n){function r(t){return t&&t.length?a(t):[]}var a=n(254);t.exports=r},function(t,e,n){function r(t,e,n){var r=-1,f=i,d=t.length,h=!0,p=[],y=p;if(n)h=!1,f=o;else if(d>=s){var v=e?null:l(t);if(v)return c(v);h=!1,f=u,y=new a}else y=e?[]:p;t:for(;++r<d;){var g=t[r],b=e?e(g):g;if(g=n||0!==g?g:0,h&&b===b){for(var m=y.length;m--;)if(y[m]===b)continue t;e&&y.push(b),p.push(g)}else f(y,b,n)||(y!==p&&y.push(b),p.push(g))}return p}var a=n(159),i=n(34),o=n(206),u=n(164),l=n(255),c=n(167),s=200;t.exports=r},45,function(t,e,n){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(94),o=a(i),u=n(257),l=a(u),c=n(191),s=a(c),f=n(189),d=a(f),h=n(258),p=r(h),y=["linear","time","log","sqrt"];e.default={getDefaultScale:function(){return p.scaleLinear()},toNewName:function(t){var e=function(t){return t&&t[0].toUpperCase()+t.slice(1)};return"scale"+e(t)},validScale:function(t){return"function"==typeof t?(0,o.default)(t.copy)&&(0,o.default)(t.domain)&&(0,o.default)(t.range):"string"==typeof t&&(0,l.default)(y,t)},isScaleDefined:function(t,e){return!!t.scale&&(!t.scale.x&&!t.scale.y||!!t.scale[e])},getScaleTypeFromProps:function(t,e){if(this.isScaleDefined(t,e)){var n=t.scale[e]||t.scale;return"string"==typeof n?n:this.getType(n)}},getScaleFromProps:function(t,e){if(this.isScaleDefined(t,e)){var n=t.scale[e]||t.scale;return this.validScale(n)?(0,o.default)(n)?n:p[this.toNewName(n)]():void 0}},getScaleTypeFromData:function(t,e){if(!t.data)return"linear";var n=s.default.createAccessor(t[e]),r=t.data.map(n);return d.default.containsDates(r)?"time":"linear"},getBaseScale:function(t,e){var n=this.getScaleFromProps(t,e);if(n)return n;var r=this.getScaleTypeFromData(t,e);return p[this.toNewName(r)]()},getType:function(t){var e=[{name:"log",method:"base"},{name:"ordinal",method:"unknown"},{name:"pow-sqrt",method:"exponent"},{name:"quantile",method:"quantiles"},{name:"quantize-threshold",method:"invertExtent"}],n=e.filter(function(e){return void 0!==t[e.method]})[0];return n?n.name:void 0},getScaleType:function(t,e){return this.getScaleTypeFromProps(t,e)||this.getScaleTypeFromData(t,e)}}},34,function(t,e,n){!function(t,r){r(e,n(259),n(260),n(62),n(261),n(262),n(263),n(63))}(this,function(t,e,n,r,a,i,o,u){"use strict";function l(t){function e(e){var n=e+"",o=r.get(n);if(!o){if(i!==q)return i;r.set(n,o=a.push(e))}return t[(o-1)%t.length]}var r=n.map(),a=[],i=q;return t=null==t?[]:V.call(t),e.domain=function(t){if(!arguments.length)return a.slice();a=[],r=n.map();for(var i,o,u=-1,l=t.length;++u<l;)r.has(o=(i=t[u])+"")||r.set(o,a.push(i));return e},e.range=function(n){return arguments.length?(t=V.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(i=t,e):i},e.copy=function(){return l().domain(a).range(t).unknown(i)},e}function c(){function t(){var t=i().length,a=u[1]<u[0],l=u[a-0],c=u[1-a];n=(c-l)/Math.max(1,t-f+2*d),s&&(n=Math.floor(n)),l+=(c-l-n*(t-f))*h,r=n*(1-f),s&&(l=Math.round(l),r=Math.round(r));var p=e.range(t).map(function(t){return l+n*t});return o(a?p.reverse():p)}var n,r,a=l().unknown(void 0),i=a.domain,o=a.range,u=[0,1],s=!1,f=0,d=0,h=.5;return delete a.unknown,a.domain=function(e){return arguments.length?(i(e),t()):i()},a.range=function(e){return arguments.length?(u=[+e[0],+e[1]],t()):u.slice()},a.rangeRound=function(e){return u=[+e[0],+e[1]],s=!0,t()},a.bandwidth=function(){return r},a.step=function(){return n},a.round=function(e){return arguments.length?(s=!!e,t()):s},a.padding=function(e){return arguments.length?(f=d=Math.max(0,Math.min(1,e)),t()):f},a.paddingInner=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),t()):f},a.paddingOuter=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),t()):d},a.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),t()):h},a.copy=function(){return c().domain(i()).range(u).round(s).paddingInner(f).paddingOuter(d).align(h)},t()}function s(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return s(e())},t}function f(){return s(c().paddingInner(1))}function d(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:B(e)}function h(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}function p(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function y(t,e,n,r){var a=t[0],i=t[1],o=e[0],u=e[1];return i<a?(a=n(i,a),o=r(u,o)):(a=n(a,i),o=r(o,u)),function(t){return o(a(t))}}function v(t,n,r,a){var i=Math.min(t.length,n.length)-1,o=new Array(i),u=new Array(i),l=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++l<i;)o[l]=r(t[l],t[l+1]),u[l]=a(n[l],n[l+1]);return function(n){var r=e.bisect(t,n,1,i)-1;return u[r](o[r](n))}}function g(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function b(t,e){function n(){return i=Math.min(l.length,c.length)>2?v:y,o=u=null,a}function a(e){return(o||(o=i(l,c,f?h(t):t,s)))(+e)}var i,o,u,l=Y,c=Y,s=r.interpolate,f=!1;return a.invert=function(t){return(u||(u=i(c,l,d,f?p(e):e)))(+t)},a.domain=function(t){return arguments.length?(l=U.call(t,H),n()):l.slice()},a.range=function(t){return arguments.length?(c=V.call(t),n()):c.slice()},a.rangeRound=function(t){return c=V.call(t),s=r.interpolateRound,n()},a.clamp=function(t){return arguments.length?(f=!!t,n()):f},a.interpolate=function(t){return arguments.length?(s=t,n()):s},n()}function m(t){var n=t.domain;return t.ticks=function(t){var r=n();return e.ticks(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,e){return X(n(),t,e)},t.nice=function(r){null==r&&(r=10);var a,i=n(),o=0,u=i.length-1,l=i[o],c=i[u];return c<l&&(a=l,l=c,c=a,a=o,o=u,u=a),a=e.tickIncrement(l,c,r),a>0?(l=Math.floor(l/a)*a,c=Math.ceil(c/a)*a,a=e.tickIncrement(l,c,r)):a<0&&(l=Math.ceil(l*a)/a,c=Math.floor(c*a)/a,a=e.tickIncrement(l,c,r)),a>0?(i[o]=Math.floor(l/a)*a,i[u]=Math.ceil(c/a)*a,n(i)):a<0&&(i[o]=Math.ceil(l*a)/a,i[u]=Math.floor(c*a)/a,n(i)),t},t}function _(){var t=b(d,r.interpolateNumber);return t.copy=function(){return g(t,_())},m(t)}function x(){function t(t){return+t}var e=[0,1];return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=U.call(n,H),t):e.slice()},t.copy=function(){return x().domain(e)},m(t)}function M(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:B(e)}function w(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function O(t){return isFinite(t)?+("1e"+t):t<0?0:t}function P(t){return 10===t?O:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function k(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function T(t){return function(e){return-t(-e)}}function A(){function t(){return o=k(i),u=P(i),r()[0]<0&&(o=T(o),u=T(u)),n}var n=b(M,w).domain([1,10]),r=n.domain,i=10,o=k(10),u=P(10);return n.base=function(e){return arguments.length?(i=+e,t()):i},n.domain=function(e){return arguments.length?(r(e),t()):r()},n.ticks=function(t){var n,a=r(),l=a[0],c=a[a.length-1];(n=c<l)&&(h=l,l=c,c=h);var s,f,d,h=o(l),p=o(c),y=null==t?10:+t,v=[];if(!(i%1)&&p-h<y){if(h=Math.round(h)-1,p=Math.round(p)+1,l>0){for(;h<p;++h)for(f=1,s=u(h);f<i;++f)if(d=s*f,!(d<l)){if(d>c)break;v.push(d)}}else for(;h<p;++h)for(f=i-1,s=u(h);f>=1;--f)if(d=s*f,!(d<l)){if(d>c)break;v.push(d)}}else v=e.ticks(h,p,Math.min(p-h,y)).map(u);return n?v.reverse():v},n.tickFormat=function(t,e){if(null==e&&(e=10===i?".0e":","),"function"!=typeof e&&(e=a.format(e)),t===1/0)return e;null==t&&(t=10);var r=Math.max(1,i*t/n.ticks().length);return function(t){var n=t/u(Math.round(o(t)));return n*i<i-.5&&(n*=i),n<=r?e(t):""}},n.nice=function(){return r(K(r(),{floor:function(t){return u(Math.floor(o(t)))},ceil:function(t){return u(Math.ceil(o(t)))}}))},n.copy=function(){return g(n,A().base(i))},n}function j(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function E(){function t(t,e){return(e=j(e,n)-(t=j(t,n)))?function(r){return(j(r,n)-t)/e}:B(e)}function e(t,e){return e=j(e,n)-(t=j(t,n)),function(r){return j(t+e*r,1/n)}}var n=1,r=b(t,e),a=r.domain;return r.exponent=function(t){return arguments.length?(n=+t,a(a())):n},r.copy=function(){return g(r,E().exponent(n))},m(r)}function S(){return E().exponent(.5)}function C(){function t(){var t=0,o=Math.max(1,a.length);for(i=new Array(o-1);++t<o;)i[t-1]=e.quantile(r,t/o);return n}function n(t){if(!isNaN(t=+t))return a[e.bisect(i,t)]}var r=[],a=[],i=[];return n.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[e]:r[r.length-1]]},n.domain=function(n){if(!arguments.length)return r.slice();r=[];for(var a,i=0,o=n.length;i<o;++i)a=n[i],null==a||isNaN(a=+a)||r.push(a);return r.sort(e.ascending),t()},n.range=function(e){return arguments.length?(a=V.call(e),t()):a.slice()},n.quantiles=function(){return i.slice()},n.copy=function(){return C().domain(r).range(a)},n}function N(){function t(t){if(t<=t)return u[e.bisect(o,t,0,i)]}function n(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*a-(e-i)*r)/(i+1);return t}var r=0,a=1,i=1,o=[.5],u=[0,1];return t.domain=function(t){return arguments.length?(r=+t[0],a=+t[1],n()):[r,a]},t.range=function(t){return arguments.length?(i=(u=V.call(t)).length-1,n()):u.slice()},t.invertExtent=function(t){var e=u.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,o[0]]:e>=i?[o[i-1],a]:[o[e-1],o[e]]},t.copy=function(){return N().domain([r,a]).range(u)},m(t)}function D(){function t(t){if(t<=t)return r[e.bisect(n,t,0,a)]}var n=[.5],r=[0,1],a=1;return t.domain=function(e){return arguments.length?(n=V.call(e),a=Math.min(n.length,r.length-1),t):n.slice()},t.range=function(e){return arguments.length?(r=V.call(e),a=Math.min(n.length,r.length-1),t):r.slice()},t.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},t.copy=function(){return D().domain(n).range(r)},t}function R(t){return new Date(t)}function L(t){return t instanceof Date?+t:+new Date(+t)}function F(t,n,a,i,o,u,l,c,s){function f(e){return(l(e)<e?m:u(e)<e?_:o(e)<e?x:i(e)<e?M:n(e)<e?a(e)<e?w:O:t(e)<e?P:k)(e)}function h(n,r,a,i){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(a-r)/n,u=e.bisector(function(t){return t[2]}).right(T,o);u===T.length?(i=e.tickStep(r/et,a/et,n),n=t):u?(u=T[o/T[u-1][2]<T[u][2]/o?u-1:u],i=u[1],n=u[0]):(i=e.tickStep(r,a,n),n=c)}return null==i?n:n.every(i)}var p=b(d,r.interpolateNumber),y=p.invert,v=p.domain,m=s(".%L"),_=s(":%S"),x=s("%I:%M"),M=s("%I %p"),w=s("%a %d"),O=s("%b %d"),P=s("%B"),k=s("%Y"),T=[[l,1,G],[l,5,5*G],[l,15,15*G],[l,30,30*G],[u,1,Z],[u,5,5*Z],[u,15,15*Z],[u,30,30*Z],[o,1,$],[o,3,3*$],[o,6,6*$],[o,12,12*$],[i,1,Q],[i,2,2*Q],[a,1,J],[n,1,tt],[n,3,3*tt],[t,1,et]];return p.invert=function(t){return new Date(y(t))},p.domain=function(t){return arguments.length?v(U.call(t,L)):v().map(R)},p.ticks=function(t,e){var n,r=v(),a=r[0],i=r[r.length-1],o=i<a;return o&&(n=a,a=i,i=n),n=h(t,a,i,e),n=n?n.range(a,i+1):[],o?n.reverse():n},p.tickFormat=function(t,e){return null==e?f:s(e)},p.nice=function(t,e){var n=v();return(t=h(t,n[0],n[n.length-1],e))?v(K(n,t)):p},p.copy=function(){return g(p,F(t,n,a,i,o,u,l,c,s))},p}function I(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function W(t){function e(e){var i=(e-n)/(r-n);return t(a?Math.max(0,Math.min(1,i)):i)}var n=0,r=1,a=!1;return e.domain=function(t){return arguments.length?(n=+t[0],r=+t[1],e):[n,r]},e.clamp=function(t){return arguments.length?(a=!!t,e):a},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return W(t).domain([n,r]).clamp(a)},m(e)}var z=Array.prototype,U=z.map,V=z.slice,q={name:"implicit"},B=function(t){return function(){return t}},H=function(t){return+t},Y=[0,1],X=function(t,n,r){var i,o=t[0],u=t[t.length-1],l=e.tickStep(o,u,null==n?10:n);switch(r=a.formatSpecifier(null==r?",f":r),r.type){case"s":var c=Math.max(Math.abs(o),Math.abs(u));return null!=r.precision||isNaN(i=a.precisionPrefix(l,c))||(r.precision=i),a.formatPrefix(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=a.precisionRound(l,Math.max(Math.abs(o),Math.abs(u))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=a.precisionFixed(l))||(r.precision=i-2*("%"===r.type))}return a.format(r)},K=function(t,e){t=t.slice();var n,r=0,a=t.length-1,i=t[r],o=t[a];return o<i&&(n=r,r=a,a=n,n=i,i=o,o=n),t[r]=e.floor(i),t[a]=e.ceil(o),t},G=1e3,Z=60*G,$=60*Z,Q=24*$,J=7*Q,tt=30*Q,et=365*Q,nt=function(){return F(i.timeYear,i.timeMonth,i.timeWeek,i.timeDay,i.timeHour,i.timeMinute,i.timeSecond,i.timeMillisecond,o.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},rt=function(){return F(i.utcYear,i.utcMonth,i.utcWeek,i.utcDay,i.utcHour,i.utcMinute,i.utcSecond,i.utcMillisecond,o.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},at=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},it=at("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ot=at("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),ut=at("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),lt=at("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),ct=r.interpolateCubehelixLong(u.cubehelix(300,.5,0),u.cubehelix(-240,.5,1)),st=r.interpolateCubehelixLong(u.cubehelix(-100,.75,.35),u.cubehelix(80,1.5,.8)),ft=r.interpolateCubehelixLong(u.cubehelix(260,.75,.35),u.cubehelix(80,1.5,.8)),dt=u.cubehelix(),ht=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return dt.h=360*t-100,dt.s=1.5-1.5*e,dt.l=.8-.9*e,dt+""},pt=I(at("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),yt=I(at("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),vt=I(at("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),gt=I(at("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));t.scaleBand=c,t.scalePoint=f,t.scaleIdentity=x,t.scaleLinear=_,t.scaleLog=A,t.scaleOrdinal=l,t.scaleImplicit=q,t.scalePow=E,t.scaleSqrt=S,t.scaleQuantile=C,t.scaleQuantize=N,t.scaleThreshold=D,t.scaleTime=nt,t.scaleUtc=rt,t.schemeCategory10=it,t.schemeCategory20b=ot,t.schemeCategory20c=ut,t.schemeCategory20=lt,t.interpolateCubehelixDefault=ct,t.interpolateRainbow=ht,t.interpolateWarm=st,t.interpolateCool=ft,t.interpolateViridis=pt,t.interpolateMagma=yt,t.interpolateInferno=vt,t.interpolatePlasma=gt,t.scaleSequential=W,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return function(e,n){return o(t(e),n)}}function n(t,e){return[t,e]}function r(t,e,n){var r=(e-t)/Math.max(0,n),a=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,a);return a>=0?(i>=O?10:i>=P?5:i>=k?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=O?10:i>=P?5:i>=k?2:1)}function a(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/a;return i>=O?a*=10:i>=P?a*=5:i>=k&&(a*=2),e<t?-a:a}function i(t){return t.length}var o=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},u=function(t){return 1===t.length&&(t=e(t)),{left:function(e,n,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r<a;){var i=r+a>>>1;t(e[i],n)<0?r=i+1:a=i}return r},right:function(e,n,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r<a;){var i=r+a>>>1;t(e[i],n)>0?a=i:r=i+1}return r}}},l=u(o),c=l.right,s=l.left,f=function(t,e){null==e&&(e=n);for(var r=0,a=t.length-1,i=t[0],o=new Array(a<0?0:a);r<a;)o[r]=e(i,i=t[++r]);return o},d=function(t,e,r){var a,i,o,u,l=t.length,c=e.length,s=new Array(l*c);for(null==r&&(r=n),a=o=0;a<l;++a)for(u=t[a],i=0;i<c;++i,++o)s[o]=r(u,e[i]);return s},h=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},p=function(t){return null===t?NaN:+t},y=function(t,e){var n,r,a=t.length,i=0,o=-1,u=0,l=0;if(null==e)for(;++o<a;)isNaN(n=p(t[o]))||(r=n-u,u+=r/++i,l+=r*(n-u));else for(;++o<a;)isNaN(n=p(e(t[o],o,t)))||(r=n-u,u+=r/++i,l+=r*(n-u));if(i>1)return l/(i-1)},v=function(t,e){var n=y(t,e);return n?Math.sqrt(n):n},g=function(t,e){var n,r,a,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=a=n;++o<i;)null!=(n=t[o])&&(r>n&&(r=n),a<n&&(a=n))}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=a=n;++o<i;)null!=(n=e(t[o],o,t))&&(r>n&&(r=n),a<n&&(a=n));return[r,a]},b=Array.prototype,m=b.slice,_=b.map,x=function(t){return function(){return t}},M=function(t){return t},w=function(t,e,n){t=+t,e=+e,n=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(a);++r<a;)i[r]=t+r*n;return i},O=Math.sqrt(50),P=Math.sqrt(10),k=Math.sqrt(2),T=function(t,e,n){var a,i,o,u=e<t,l=-1;if(u&&(a=t,t=e,e=a),0===(o=r(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),i=new Array(a=Math.ceil(e-t+1));++l<a;)i[l]=(t+l)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),i=new Array(a=Math.ceil(t-e+1));++l<a;)i[l]=(t-l)/o;return u&&i.reverse(),i},A=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},j=function(){function t(t){var i,o,u=t.length,l=new Array(u);for(i=0;i<u;++i)l[i]=e(t[i],i,t);var s=n(l),f=s[0],d=s[1],h=r(l,f,d);Array.isArray(h)||(h=a(f,d,h),h=w(Math.ceil(f/h)*h,Math.floor(d/h)*h,h));for(var p=h.length;h[0]<=f;)h.shift(),--p;for(;h[p-1]>d;)h.pop(),--p;var y,v=new Array(p+1);for(i=0;i<=p;++i)y=v[i]=[],y.x0=i>0?h[i-1]:f,y.x1=i<p?h[i]:d;for(i=0;i<u;++i)o=l[i],f<=o&&o<=d&&v[c(h,o,0,p)].push(t[i]);return v}var e=M,n=g,r=A;return t.value=function(n){return arguments.length?(e="function"==typeof n?n:x(n),t):e},t.domain=function(e){return arguments.length?(n="function"==typeof e?e:x([e[0],e[1]]),t):n},t.thresholds=function(e){return arguments.length?(r="function"==typeof e?e:x(Array.isArray(e)?m.call(e):e),t):r},t},E=function(t,e,n){if(null==n&&(n=p),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,a=(r-1)*e,i=Math.floor(a),o=+n(t[i],i,t),u=+n(t[i+1],i+1,t);return o+(u-o)*(a-i)}},S=function(t,e,n){return t=_.call(t,p).sort(o),Math.ceil((n-e)/(2*(E(t,.75)-E(t,.25))*Math.pow(t.length,-1/3)))},C=function(t,e,n){return Math.ceil((n-e)/(3.5*v(t)*Math.pow(t.length,-1/3)))},N=function(t,e){var n,r,a=t.length,i=-1;if(null==e){for(;++i<a;)if(null!=(n=t[i])&&n>=n)for(r=n;++i<a;)null!=(n=t[i])&&n>r&&(r=n)}else for(;++i<a;)if(null!=(n=e(t[i],i,t))&&n>=n)for(r=n;++i<a;)null!=(n=e(t[i],i,t))&&n>r&&(r=n);return r},D=function(t,e){var n,r=t.length,a=r,i=-1,o=0;if(null==e)for(;++i<r;)isNaN(n=p(t[i]))?--a:o+=n;else for(;++i<r;)isNaN(n=p(e(t[i],i,t)))?--a:o+=n;if(a)return o/a},R=function(t,e){var n,r=t.length,a=-1,i=[];if(null==e)for(;++a<r;)isNaN(n=p(t[a]))||i.push(n);else for(;++a<r;)isNaN(n=p(e(t[a],a,t)))||i.push(n);return E(i.sort(o),.5)},L=function(t){for(var e,n,r,a=t.length,i=-1,o=0;++i<a;)o+=t[i].length;for(n=new Array(o);--a>=0;)for(r=t[a],e=r.length;--e>=0;)n[--o]=r[e];return n},F=function(t,e){var n,r,a=t.length,i=-1;if(null==e){for(;++i<a;)if(null!=(n=t[i])&&n>=n)for(r=n;++i<a;)null!=(n=t[i])&&r>n&&(r=n)}else for(;++i<a;)if(null!=(n=e(t[i],i,t))&&n>=n)for(r=n;++i<a;)null!=(n=e(t[i],i,t))&&r>n&&(r=n);return r},I=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},W=function(t,e){if(n=t.length){var n,r,a=0,i=0,u=t[i];for(null==e&&(e=o);++a<n;)(e(r=t[a],u)<0||0!==e(u,u))&&(u=r,i=a);return 0===e(u,u)?i:void 0}},z=function(t,e,n){for(var r,a,i=(null==n?t.length:n)-(e=null==e?0:+e);i;)a=Math.random()*i--|0,r=t[i+e],t[i+e]=t[a+e],t[a+e]=r;return t},U=function(t,e){var n,r=t.length,a=-1,i=0;if(null==e)for(;++a<r;)(n=+t[a])&&(i+=n);else for(;++a<r;)(n=+e(t[a],a,t))&&(i+=n);return i},V=function(t){if(!(a=t.length))return[];for(var e=-1,n=F(t,i),r=new Array(n);++e<n;)for(var a,o=-1,u=r[e]=new Array(a);++o<a;)u[o]=t[o][e];return r},q=function(){return V(arguments)};t.bisect=c,t.bisectRight=c,t.bisectLeft=s,t.ascending=o,t.bisector=u,t.cross=d,t.descending=h,t.deviation=v,t.extent=g,t.histogram=j,t.thresholdFreedmanDiaconis=S,t.thresholdScott=C,t.thresholdSturges=A,t.max=N,t.mean=D,t.median=R,t.merge=L,t.min=F,t.pairs=f,t.permute=I,t.quantile=E,t.range=w,t.scan=W,t.shuffle=z,t.sum=U,t.ticks=T,t.tickIncrement=r,t.tickStep=a,t.transpose=V,t.variance=y,t.zip=q,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(){}function n(t,n){var r=new e;if(t instanceof e)t.each(function(t,e){r.set(e,t)});else if(Array.isArray(t)){var a,i=-1,o=t.length;if(null==n)for(;++i<o;)r.set(i,t[i]);else for(;++i<o;)r.set(n(a=t[i],i,t),a)}else if(t)for(var u in t)r.set(u,t[u]);return r}function r(){return{}}function a(t,e,n){t[e]=n}function i(){return n()}function o(t,e,n){t.set(e,n)}function u(){}function l(t,e){var n=new u;if(t instanceof u)t.each(function(t){n.add(t)});else if(t){var r=-1,a=t.length;if(null==e)for(;++r<a;)n.add(t[r]);else for(;++r<a;)n.add(e(t[r],r,t))}return n}var c="$";e.prototype=n.prototype={constructor:e,has:function(t){return c+t in this},get:function(t){return this[c+t]},set:function(t,e){return this[c+t]=e,this},remove:function(t){var e=c+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===c&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===c&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===c&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===c&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===c&&++t;return t},empty:function(){for(var t in this)if(t[0]===c)return!1;return!0},each:function(t){for(var e in this)e[0]===c&&t(this[e],e.slice(1),this)}};var s=function(){function t(e,r,a,i){if(r>=s.length)return null!=u&&e.sort(u),null!=l?l(e):e;for(var o,c,f,d=-1,h=e.length,p=s[r++],y=n(),v=a();++d<h;)(f=y.get(o=p(c=e[d])+""))?f.push(c):y.set(o,[c]);return y.each(function(e,n){i(v,n,t(e,r,a,i))}),v}function e(t,n){if(++n>s.length)return t;var r,a=f[n-1];return null!=l&&n>=s.length?r=t.entries():(r=[],t.each(function(t,a){r.push({key:a,values:e(t,n)})})),null!=a?r.sort(function(t,e){return a(t.key,e.key)}):r}var u,l,c,s=[],f=[];return c={object:function(e){return t(e,0,r,a)},map:function(e){return t(e,0,i,o)},entries:function(n){return e(t(n,0,i,o),0)},key:function(t){return s.push(t),c},sortKeys:function(t){return f[s.length-1]=t,c},sortValues:function(t){return u=t,c},rollup:function(t){return l=t,c}}},f=n.prototype;u.prototype=l.prototype={constructor:u,has:f.has,add:function(t){return t+="",this[c+t]=t,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};var d=function(t){var e=[];for(var n in t)e.push(n);return e},h=function(t){var e=[];for(var n in t)e.push(t[n]);return e},p=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e};t.nest=s,t.set=l,t.map=n,t.keys=d,t.values=h,t.entries=p,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t){return new n(t)}function n(t){if(!(e=h.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",a=e[3]||"-",i=e[4]||"",o=!!e[5],u=e[6]&&+e[6],l=!!e[7],c=e[8]&&+e[8].slice(1),s=e[9]||"";"n"===s?(l=!0,s="g"):d[s]||(s=""),(o||"0"===n&&"="===r)&&(o=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=a,this.symbol=i,this.zero=o,this.width=u,this.comma=l,this.precision=c,this.type=s}function r(e){return p=g(e),t.format=p.format,t.formatPrefix=p.formatPrefix,p}var a,i=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},o=function(t){return t=i(Math.abs(t)),t?t[1]:NaN},u=function(t,e){return function(n,r){for(var a=n.length,i=[],o=0,u=t[0],l=0;a>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),i.push(n.substring(a-=u,a+u)),!((l+=u+1)>r));)u=t[o=(o+1)%t.length];return i.reverse().join(e)}},l=function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}},c=function(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,a=1,i=-1;a<r;++a)switch(t[a]){case".":i=n=a;break;case"0":0===i&&(i=a),n=a;break;case"e":break t;default:i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t;
|
|
9
|
-
},s=function(t,e){var n=i(t,e);if(!n)return t+"";var r=n[0],o=n[1],u=o-(a=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=r.length;return u===l?r:u>l?r+new Array(u-l+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+i(t,Math.max(0,e+u-1))[0]},f=function(t,e){var n=i(t,e);if(!n)return t+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")},d={"":c,"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return f(100*t,e)},r:f,s:s,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},h=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;e.prototype=n.prototype,n.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var p,y=function(t){return t},v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],g=function(t){function n(t){function n(t){var e,n,l,c=_,d=x;if("c"===m)d=M(t)+d,t="";else{t=+t;var h=t<0;if(t=M(Math.abs(t),b),h&&0===+t&&(h=!1),c=(h?"("===u?u:"-":"-"===u||"("===u?"":u)+c,d=d+("s"===m?v[8+a/3]:"")+(h&&"("===u?")":""),w)for(e=-1,n=t.length;++e<n;)if(l=t.charCodeAt(e),48>l||l>57){d=(46===l?s+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}g&&!p&&(t=i(t,1/0));var O=c.length+t.length+d.length,P=O<y?new Array(y-O+1).join(r):"";switch(g&&p&&(t=i(P+t,P.length?y-d.length:1/0),P=""),o){case"<":t=c+t+d+P;break;case"=":t=c+P+t+d;break;case"^":t=P.slice(0,O=P.length>>1)+c+t+d+P.slice(O);break;default:t=P+c+t+d}return f(t)}t=e(t);var r=t.fill,o=t.align,u=t.sign,l=t.symbol,p=t.zero,y=t.width,g=t.comma,b=t.precision,m=t.type,_="$"===l?c[0]:"#"===l&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===l?c[1]:/[%p]/.test(m)?h:"",M=d[m],w=!m||/[defgprs%]/.test(m);return b=null==b?m?6:12:/[gprs]/.test(m)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),n.toString=function(){return t+""},n}function r(t,r){var a=n((t=e(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(o(r)/3))),u=Math.pow(10,-i),l=v[8+i/3];return function(t){return a(u*t)+l}}var i=t.grouping&&t.thousands?u(t.grouping,t.thousands):y,c=t.currency,s=t.decimal,f=t.numerals?l(t.numerals):y,h=t.percent||"%";return{format:n,formatPrefix:r}};r({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var b=function(t){return Math.max(0,-o(Math.abs(t)))},m=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(o(e)/3)))-o(Math.abs(t)))},_=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,o(e)-o(t))+1};t.formatDefaultLocale=r,t.formatLocale=g,t.formatSpecifier=e,t.precisionFixed=b,t.precisionPrefix=m,t.precisionRound=_,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,n){n(e)}(this,function(t){"use strict";function e(t,n,r,o){function u(e){return t(e=new Date(+e)),e}return u.floor=u,u.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e<n-t?e:n},u.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},u.range=function(e,r,a){var i=[];if(e=u.ceil(e),a=null==a?1:Math.floor(a),!(e<r&&a>0))return i;do i.push(new Date(+e));while(n(e,a),t(e),e<r);return i},u.filter=function(r){return e(function(e){if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!r(t););else for(;--e>=0;)for(;n(t,1),!r(t););})},r&&(u.count=function(e,n){return a.setTime(+e),i.setTime(+n),t(a),t(i),Math.floor(r(a,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(o?function(e){return o(e)%t===0}:function(e){return u.count(0,e)%t===0}):u:null}),u}function n(t){return e(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/d})}function r(t){return e(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/d})}var a=new Date,i=new Date,o=e(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?e(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):o:null};var u=o.range,l=1e3,c=6e4,s=36e5,f=864e5,d=6048e5,h=e(function(t){t.setTime(Math.floor(t/l)*l)},function(t,e){t.setTime(+t+e*l)},function(t,e){return(e-t)/l},function(t){return t.getUTCSeconds()}),p=h.range,y=e(function(t){t.setTime(Math.floor(t/c)*c)},function(t,e){t.setTime(+t+e*c)},function(t,e){return(e-t)/c},function(t){return t.getMinutes()}),v=y.range,g=e(function(t){var e=t.getTimezoneOffset()*c%s;e<0&&(e+=s),t.setTime(Math.floor((+t-e)/s)*s+e)},function(t,e){t.setTime(+t+e*s)},function(t,e){return(e-t)/s},function(t){return t.getHours()}),b=g.range,m=e(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/f},function(t){return t.getDate()-1}),_=m.range,x=n(0),M=n(1),w=n(2),O=n(3),P=n(4),k=n(5),T=n(6),A=x.range,j=M.range,E=w.range,S=O.range,C=P.range,N=k.range,D=T.range,R=e(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),L=R.range,F=e(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});F.every=function(t){return isFinite(t=Math.floor(t))&&t>0?e(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var I=F.range,W=e(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*c)},function(t,e){return(e-t)/c},function(t){return t.getUTCMinutes()}),z=W.range,U=e(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*s)},function(t,e){return(e-t)/s},function(t){return t.getUTCHours()}),V=U.range,q=e(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/f},function(t){return t.getUTCDate()-1}),B=q.range,H=r(0),Y=r(1),X=r(2),K=r(3),G=r(4),Z=r(5),$=r(6),Q=H.range,J=Y.range,tt=X.range,et=K.range,nt=G.range,rt=Z.range,at=$.range,it=e(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),ot=it.range,ut=e(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});ut.every=function(t){return isFinite(t=Math.floor(t))&&t>0?e(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var lt=ut.range;t.timeInterval=e,t.timeMillisecond=o,t.timeMilliseconds=u,t.utcMillisecond=o,t.utcMilliseconds=u,t.timeSecond=h,t.timeSeconds=p,t.utcSecond=h,t.utcSeconds=p,t.timeMinute=y,t.timeMinutes=v,t.timeHour=g,t.timeHours=b,t.timeDay=m,t.timeDays=_,t.timeWeek=x,t.timeWeeks=A,t.timeSunday=x,t.timeSundays=A,t.timeMonday=M,t.timeMondays=j,t.timeTuesday=w,t.timeTuesdays=E,t.timeWednesday=O,t.timeWednesdays=S,t.timeThursday=P,t.timeThursdays=C,t.timeFriday=k,t.timeFridays=N,t.timeSaturday=T,t.timeSaturdays=D,t.timeMonth=R,t.timeMonths=L,t.timeYear=F,t.timeYears=I,t.utcMinute=W,t.utcMinutes=z,t.utcHour=U,t.utcHours=V,t.utcDay=q,t.utcDays=B,t.utcWeek=H,t.utcWeeks=Q,t.utcSunday=H,t.utcSundays=Q,t.utcMonday=Y,t.utcMondays=J,t.utcTuesday=X,t.utcTuesdays=tt,t.utcWednesday=K,t.utcWednesdays=et,t.utcThursday=G,t.utcThursdays=nt,t.utcFriday=Z,t.utcFridays=rt,t.utcSaturday=$,t.utcSaturdays=at,t.utcMonth=it,t.utcMonths=ot,t.utcYear=ut,t.utcYears=lt,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){!function(t,r){r(e,n(262))}(this,function(t,e){"use strict";function n(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function r(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function a(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function i(t){function e(t,e){return function(n){var r,a,i,o=[],u=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++u<c;)37===t.charCodeAt(u)&&(o.push(t.slice(l,u)),null!=(a=rt[r=t.charAt(++u)])?r=t.charAt(++u):a="e"===r?" ":"0",(i=e[r])&&(r=i(n,a)),o.push(r),l=u+1);return o.push(t.slice(l,u)),o.join("")}}function i(t,e){return function(n){var i=a(1900),u=o(i,t,n+="",0);if(u!=n.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var l="Z"in i?r(a(i.y)).getUTCDay():e(a(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(l+5)%7:i.w+7*i.U-(l+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,r(i)):e(i)}}function o(t,e,n,r){for(var a,i,o=0,u=e.length,l=n.length;o<u;){if(r>=l)return-1;if(a=e.charCodeAt(o++),37===a){if(a=e.charAt(o++),i=Ft[a in rt?e.charAt(o++):a],!i||(r=i(t,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}function u(t,e,n){var r=Pt.exec(e.slice(n));return r?(t.p=kt[r[0].toLowerCase()],n+r[0].length):-1}function J(t,e,n){var r=jt.exec(e.slice(n));return r?(t.w=Et[r[0].toLowerCase()],n+r[0].length):-1}function tt(t,e,n){var r=Tt.exec(e.slice(n));return r?(t.w=At[r[0].toLowerCase()],n+r[0].length):-1}function et(t,e,n){var r=Nt.exec(e.slice(n));return r?(t.m=Dt[r[0].toLowerCase()],n+r[0].length):-1}function nt(t,e,n){var r=St.exec(e.slice(n));return r?(t.m=Ct[r[0].toLowerCase()],n+r[0].length):-1}function at(t,e,n){return o(t,gt,e,n)}function it(t,e,n){return o(t,bt,e,n)}function ot(t,e,n){return o(t,mt,e,n)}function ut(t){return Mt[t.getDay()]}function lt(t){return xt[t.getDay()]}function ct(t){return Ot[t.getMonth()]}function st(t){return wt[t.getMonth()]}function ft(t){return _t[+(t.getHours()>=12)]}function dt(t){return Mt[t.getUTCDay()]}function ht(t){return xt[t.getUTCDay()]}function pt(t){return Ot[t.getUTCMonth()]}function yt(t){return wt[t.getUTCMonth()]}function vt(t){return _t[+(t.getUTCHours()>=12)]}var gt=t.dateTime,bt=t.date,mt=t.time,_t=t.periods,xt=t.days,Mt=t.shortDays,wt=t.months,Ot=t.shortMonths,Pt=l(_t),kt=c(_t),Tt=l(xt),At=c(xt),jt=l(Mt),Et=c(Mt),St=l(wt),Ct=c(wt),Nt=l(Ot),Dt=c(Ot),Rt={a:ut,A:lt,b:ct,B:st,c:null,d:O,e:O,H:P,I:k,j:T,L:A,m:j,M:E,p:ft,S:S,U:C,w:N,W:D,x:null,X:null,y:R,Y:L,Z:F,"%":Q},Lt={a:dt,A:ht,b:pt,B:yt,c:null,d:I,e:I,H:W,I:z,j:U,L:V,m:q,M:B,p:vt,S:H,U:Y,w:X,W:K,x:null,X:null,y:G,Y:Z,Z:$,"%":Q},Ft={a:J,A:tt,b:et,B:nt,c:at,d:g,e:g,H:m,I:m,j:b,L:M,m:v,M:_,p:u,S:x,U:f,w:s,W:d,x:it,X:ot,y:p,Y:h,Z:y,"%":w};return Rt.x=e(bt,Rt),Rt.X=e(mt,Rt),Rt.c=e(gt,Rt),Lt.x=e(bt,Lt),Lt.X=e(mt,Lt),Lt.c=e(gt,Lt),{format:function(t){var n=e(t+="",Rt);return n.toString=function(){return t},n},parse:function(t){var e=i(t+="",n);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",Lt);return n.toString=function(){return t},n},utcParse:function(t){var e=i(t,r);return e.toString=function(){return t},e}}}function o(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(e)+a:a)}function u(t){return t.replace(ot,"\\$&")}function l(t){return new RegExp("^(?:"+t.map(u).join("|")+")","i")}function c(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function s(t,e,n){var r=at.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function f(t,e,n){var r=at.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function d(t,e,n){var r=at.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function h(t,e,n){var r=at.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function p(t,e,n){var r=at.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function y(t,e,n){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function v(t,e,n){var r=at.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function g(t,e,n){var r=at.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function b(t,e,n){var r=at.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function m(t,e,n){var r=at.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function _(t,e,n){var r=at.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function x(t,e,n){var r=at.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function M(t,e,n){var r=at.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function w(t,e,n){var r=it.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function O(t,e){return o(t.getDate(),e,2)}function P(t,e){return o(t.getHours(),e,2)}function k(t,e){return o(t.getHours()%12||12,e,2)}function T(t,n){return o(1+e.timeDay.count(e.timeYear(t),t),n,3)}function A(t,e){return o(t.getMilliseconds(),e,3)}function j(t,e){return o(t.getMonth()+1,e,2)}function E(t,e){return o(t.getMinutes(),e,2)}function S(t,e){return o(t.getSeconds(),e,2)}function C(t,n){return o(e.timeSunday.count(e.timeYear(t),t),n,2)}function N(t){return t.getDay()}function D(t,n){return o(e.timeMonday.count(e.timeYear(t),t),n,2)}function R(t,e){return o(t.getFullYear()%100,e,2)}function L(t,e){return o(t.getFullYear()%1e4,e,4)}function F(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+o(e/60|0,"0",2)+o(e%60,"0",2)}function I(t,e){return o(t.getUTCDate(),e,2)}function W(t,e){return o(t.getUTCHours(),e,2)}function z(t,e){return o(t.getUTCHours()%12||12,e,2)}function U(t,n){return o(1+e.utcDay.count(e.utcYear(t),t),n,3)}function V(t,e){return o(t.getUTCMilliseconds(),e,3)}function q(t,e){return o(t.getUTCMonth()+1,e,2)}function B(t,e){return o(t.getUTCMinutes(),e,2)}function H(t,e){return o(t.getUTCSeconds(),e,2)}function Y(t,n){return o(e.utcSunday.count(e.utcYear(t),t),n,2)}function X(t){return t.getUTCDay()}function K(t,n){return o(e.utcMonday.count(e.utcYear(t),t),n,2)}function G(t,e){return o(t.getUTCFullYear()%100,e,2)}function Z(t,e){return o(t.getUTCFullYear()%1e4,e,4)}function $(){return"+0000"}function Q(){return"%"}function J(e){return nt=i(e),t.timeFormat=nt.format,t.timeParse=nt.parse,t.utcFormat=nt.utcFormat,t.utcParse=nt.utcParse,nt}function tt(t){return t.toISOString()}function et(t){var e=new Date(t);return isNaN(e)?null:e}var nt,rt={"-":"",_:" ",0:"0"},at=/^\s*\d+/,it=/^%/,ot=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;J({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ut="%Y-%m-%dT%H:%M:%S.%LZ",lt=Date.prototype.toISOString?tt:t.utcFormat(ut),ct=+new Date("2000-01-01T00:00:00.000Z")?et:t.utcParse(ut);t.timeFormatDefaultLocale=J,t.timeFormatLocale=i,t.isoFormat=lt,t.isoParse=ct,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={continuousTransitions:function(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}},continuousPolarTransitions:function(){return{onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,n){var r=function(t){var r=0===e?n[e+1]:n[e-1];return r[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(t,e,n){var r=function(t){var r=0===e?n[e+1]:n[e-1];return r[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}}},discreteTransitions:function(){return{onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}}}}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(266),o=r(i),u=n(54),l=r(u),c=n(257),s=r(c),f=n(113),d=r(f),h=n(246),p=r(h),y=n(256),v=r(y),g=n(191),b=r(g),m=n(189),_=r(m);e.default={getDomain:function(t,e){var n=this.getDomainFromProps(t,e);if(n)return this.padDomain(n,t,e);var r=this.getDomainFromCategories(t,e);if(r)return this.padDomain(r,t,e);var a=p.default.getData(t),i=this.getDomainFromData(t,e,a);return this.cleanDomain(this.padDomain(i,t,e),t,e)},cleanDomain:function(t,e,n){var r=v.default.getScaleType(e,n);if("log"!==r)return t;var a=function(t){var e=t[0]<0||t[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,n=0===t[0]?e:t[0],r=0===t[1]?e:t[1];return[n,r]};return a(t)},getDomainWithZero:function(t,e){var n=this,r=this.getDomainFromProps(t,e);if(r)return this.cleanDomain(this.padDomain(r,t,e),t,e);var a=t.horizontal,i=function(r){var i="y"===e&&!a||"x"===e&&a,o=_.default.getMinValue(r,0),u=_.default.getMaxValue(r,0),l=i?[o,u]:r;return n.padDomain(l,t,e)},o=this.getDomainFromCategories(t,e);if(o)return this.cleanDomain(this.padDomain(i(o),t,e),t,e);var u=p.default.getData(t),l=i(this.getDomainFromData(t,e,u));return this.cleanDomain(this.padDomain(l,t,e),t,e)},getDomainFromProps:function(t,e){return t.domain&&t.domain[e]?t.domain[e]:t.domain&&Array.isArray(t.domain)?t.domain:void 0},getDomainFromData:function(t,e,n){var r=b.default.getCurrentAxis(e,t.horizontal),a=(0,d.default)(n).map(function(t){return t["_"+r]});if(a.length<1)return v.default.getBaseScale(t,e).domain();var i=_.default.getMinValue(a),o=_.default.getMaxValue(a),u=void 0;i===o&&(u=this.getSinglePointDomain(o)),u=[i,o];var l=Math.abs((t.startAngle||0)-(t.endAngle||360));return t.polar&&"x"===e&&360===l?this.getSymmetricDomain(u,a):u},getSinglePointDomain:function(t){var e=Math.pow(10,-15),n=t instanceof Date?new Date(t-1):t-e,r=t instanceof Date?new Date(t+1):t+e;return[n,r]},getSymmetricDomain:function(t,e){var n=(0,o.default)(e.sort(function(t,e){return t-e})),r=n[1]-n[0];return[t[0],t[1]+r]},getDomainFromTickValues:function(t,e){var n=void 0;if(b.default.stringTicks(t))n=[1,t.tickValues.length];else{var r=t.tickValues.map(function(t){return+t}),a=[_.default.getMinValue(r),_.default.getMaxValue(r)];n=t.polar&&"x"===e?this.getSymmetricDomain(a,r):a}return b.default.isVertical(t)&&n.reverse(),n},getDomainFromCategories:function(t,e){var n=p.default.getCategories(t,e);if(n){var r=_.default.containsStrings(n)?p.default.getStringsFromCategories(t,e):[],a=0===r.length?null:r.reduce(function(t,e,n){return t[e]=n+1,t},{}),i=a?n.map(function(t){return a[t]}):n;return[_.default.getMinValue(i),_.default.getMaxValue(i)]}},getDomainFromGroupedData:function(t,e,n){var r=t.horizontal,i="x"===e&&!r||"y"===e&&r;if(i&&t.categories)return this.getDomainFromCategories(t,e);var o=this.getDomainFromData(t,e,n),u=i?[]:this.getCumulativeData(t,e,n),l=u.map(function(t){return t.reduce(function(t,e){return e>0?+e+ +t:t},0)}),c=u.map(function(t){return t.reduce(function(t,e){return e<0?+e+ +t:t},0)}),s=Math.min.apply(Math,a(c)),f=s<0?s:_.default.getMinValue(o),d=_.default.getMaxValue.apply(_.default,[o].concat(a(l)));return f===d?this.getSinglePointDomain(d):[f,d]},getCumulativeData:function(t,e,n){var r=b.default.getCurrentAxis(e,t.horizontal),a=[],i=[];n.forEach(function(t){t.forEach(function(t){void 0===t.category||(0,s.default)(a,t.category)?(0,s.default)(i,t[r])||i.push(t[r]):a.push(t.category)})});var o=function(){return a.map(function(t){return n.reduce(function(n,r){return r.category===t?n.concat(r[e]):n},[])})},u=function(){return i.map(function(t,e){return n.map(function(t){return t[e]&&t[e]["_"+r]})})};return 0===a.length?u():o()},getDomainPadding:function(t,e){var n=function(t){return Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t}};return n((0,l.default)(t.domainPadding)?t.domainPadding[e]:t.domainPadding)},padDomain:function(t,e,n){if(!e.domainPadding)return t;var r=this.getDomainPadding(e,n);if(!r.left&&!r.right)return t;var i=_.default.getMinValue(t),o=_.default.getMaxValue(t),u=b.default.getRange(e,n),l=Math.abs(Math.max.apply(Math,a(u))-Math.min.apply(Math,a(u))),c={left:Math.abs(o-i)*r.left/l,right:Math.abs(o-i)*r.right/l},s={min:i>=0&&i-c.left<=0?0:i.valueOf()-c.left,max:o<=0&&o+c.right>=0?0:o.valueOf()+c.right},f={left:Math.abs(s.max-s.min)*r.left/l,right:Math.abs(s.max-s.min)*r.right/l},d={min:i>=0&&i-f.left<=0?0:i.valueOf()-f.left,max:o>=0&&o+f.right<=0?0:o.valueOf()+f.right};return i instanceof Date||o instanceof Date?[new Date(d.min),new Date(d.max)]:[d.min,d.max]},orientDomain:function(t,e,n){var r="x"===n?"y":"x",a=function(t){return"x"===t?"bottom":"left"},i="left"===e.x||"right"===e.x,o=i?e[r]===a(n):e[r]===a(r);return i?o?t.concat().reverse():t:o?t:t.concat().reverse()}}},function(t,e,n){function r(t){return t&&t.length?a(t):[]}var a=n(267);t.exports=r},function(t,e,n){function r(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n],l=e?e(u):u;if(!n||!a(l,c)){var c=l;o[i++]=0===u?0:u}}return o}var a=n(74);t.exports=r},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(94),i=r(a),o=n(48),u=r(o),l=n(246),c=r(l),s=n(189),f=r(s);e.default={getParentSVG:function(t){return"svg"===t.nodeName?t:this.getParentSVG(t.parentNode)},getTransformationMatrix:function(t){return t.getScreenCTM().inverse()},getSVGEventCoordinates:function(t){if("undefined"==typeof document)return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};var e=this.getParentSVG(t.target),n=this.getTransformationMatrix(e);return{x:this.transformTarget(t.clientX,n,"x"),y:this.transformTarget(t.clientY,n,"y")}},transformTarget:function(t,e,n){var r=e.a,a=e.d,i=e.e,o=e.f;return"y"===n?a*t+o:r*t+i},getDomainCoordinates:function(t,e){var n=t.scale;return e=e||{x:n.x.domain(),y:n.y.domain()},{x:[n.x(e.x[0]),n.x(e.x[1])],y:[n.y(e.y[0]),n.y(e.y[1])]}},getDataCoordinates:function(t,e,n,r){var a=t.polar;if(a){var i=t.origin||{x:0,y:0},o=n-i.x,u=r-i.y,l=Math.abs(o*Math.sqrt(1+Math.pow(-u/o,2))),c=(-Math.atan2(u,o)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(c),y:e.y.invert(l)}}return{x:e.x.invert(n),y:e.y.invert(r)}},getBounds:function(t){var e=t.x1,n=t.x2,r=t.y1,a=t.y2,i=t.scale,o=this.getDataCoordinates(t,i,e,r),u=this.getDataCoordinates(t,i,n,a),l=function(t,e){return[f.default.getMinValue([t,e]),f.default.getMaxValue([t,e])]};return{x:l(o.x,u.x),y:l(o.y,u.y)}},getDatasets:function(t){if(t.data)return[{data:t.data}];for(var e=function(t){var e=c.default.getData(t);return Array.isArray(e)&&e.length>0?e:void 0},n=u.default.Children.toArray(t.children).reverse(),r=n.length,a=[],o=0,l=0;r>0;){var s=n[--r],f=s.props.name||l;if(l++,s.type&&"axis"===s.type.role)l++;else if(s.type&&(0,i.default)(s.type.getData))a[o++]={childName:f,data:s.type.getData(s.props)};else if(s.props&&s.props.children)for(var d=u.default.Children.toArray(s.props.children),h=d.length,p=0;p<h;p++)n[r++]=d[p];else a[o++]={childName:f,data:e(s.props)}}return a},filterDatasets:function(t,e){var n=this,r=t.reduce(function(t,r){var a=n.getSelectedData(r.data,e);return t=a?t.concat({childName:r.childName,eventKey:a.eventKey,data:a.data}):t},[]);return r.length?r:null},getSelectedData:function(t,e){var n=e.x,r=e.y,a=function(t){return t._x>=n[0]&&t._x<=n[1]&&t._y>=r[0]&&t._y<=r[1]},i=t.reduce(function(t,e,n){return a(e)&&(t.data.push(e),t.eventKey.push(void 0===e.eventKey?n:e.eventKey)),t},{data:[],eventKey:[]});return i.data.length>0?i:null}}},function(t,e,n){function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(96),o=a(i),u=n(94),l=a(u),c=n(69),s=a(c),f=n(123),d=a(f),h=n(236),p=r(h),y=n(50);e.default={degreesToRadians:function(t){return t*(Math.PI/180)},checkForValidText:function(t){return void 0===t||null===t?t:""+t},getSliceStyle:function(t,e,n){var r=n.style,a=n.colors,i=this.getColor(r,a,e),u=(0,o.default)(t,["_x","_y","x","y","label"]);return(0,s.default)({},u,{fill:i},r.data)},getBaseProps:function(t,e){t=y.Helpers.modifyProps(t,e,"pie");for(var n=this.getCalculatedValues(t),r=n.slices,a=n.style,i=n.pathFunction,o=n.data,u=n.origin,l={parent:{standalone:t.standalone,slices:r,pathFunction:i,width:t.width,height:t.height,style:a.parent}},c=0,s=r.length;c<s;c++){var f=r[c],d=o[c],h=d.eventKey||c,p={index:c,slice:f,pathFunction:i,datum:d,data:o,origin:u,style:this.getSliceStyle(d,c,n)};l[h]={data:p,labels:this.getLabelProps(t,p,n)}}return l},getLabelProps:function(t,e,n){var r=e.index,a=e.datum,i=e.data,o=e.slice,u=n.style,l=n.radius,c=n.origin,s=(0,d.default)({padding:0},u.labels),f=y.Helpers.evaluateProp(t.labelRadius,a),h=this.getLabelPosition(l,f,s),p=h.centroid(o),v=this.getLabelOrientation(o);return{index:r,datum:a,data:i,slice:o,orientation:v,style:s,x:Math.round(p[0])+c.x,y:Math.round(p[1])+c.y,text:this.getLabelText(t,a,r),textAnchor:s.textAnchor||this.getTextAnchor(v),verticalAnchor:s.verticalAnchor||this.getVerticalAnchor(v),angle:s.angle}},getCalculatedValues:function(t){var e=t.theme,n=t.colorScale,r=t.width,a=t.height,i=e&&e.pie&&e.pie.style?e.pie.style:{},o=y.Helpers.getStyles(t.style,i,"auto","100%"),u=Array.isArray(n)?n:y.Style.getColorScale(n),l=y.Helpers.getPadding(t),c=this.getRadius(t,l),s=r/2+l.left-l.right,f=a/2+l.top-l.bottom,d={x:s+c>r?c+l.left-l.right:s,y:f+c>a?c+l.top-l.bottom:f},h=y.Data.getData(t),v=this.getSlices(t,h),g=p.arc().cornerRadius(t.cornerRadius).outerRadius(c).innerRadius(t.innerRadius);return{style:o,colors:u,padding:l,radius:c,data:h,slices:v,pathFunction:g,origin:d}},getColor:function(t,e,n){return t&&t.data&&t.data.fill?t.data.fill:e&&e[n%e.length]},getRadius:function(t,e){return Math.min(t.width-e.left-e.right,t.height-e.top-e.bottom)/2},getLabelPosition:function(t,e,n){var r=n&&n.padding||0,a=e||t+r;return p.arc().outerRadius(a).innerRadius(a)},getLabelOrientation:function(t){var e=function(t){return t*(180/Math.PI)},n=e(t.startAngle),r=e(t.endAngle),a=n+(r-n)/2;return a<45||a>315?"top":a>=45&&a<135?"right":a>=135&&a<225?"bottom":"left"},getTextAnchor:function(t){return"top"===t||"bottom"===t?"middle":"right"===t?"start":"end"},getVerticalAnchor:function(t){return"left"===t||"right"===t?"middle":"bottom"===t?"start":"end"},getLabelText:function(t,e,n){var r=void 0;return r=e.label?e.label:Array.isArray(t.labels)?t.labels[n]:(0,l.default)(t.labels)?t.labels(e):e.xName||e._x,this.checkForValidText(r)},getSlices:function(t,e){var n=p.pie().sort(null).startAngle(this.degreesToRadians(t.startAngle)).endAngle(this.degreesToRadians(t.endAngle)).padAngle(this.degreesToRadians(t.padAngle)).value(function(t){return t._y});return n(e)}}}]))});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],e):"object"==typeof exports?exports.VictoryPie=e(require("react"),require("prop-types")):t.VictoryPie=e(t.React,t.PropTypes)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=193)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";var r=n(292),a=n.n(r),i=n(51),o=n.n(i),u=n(72),c=n.n(u),s=n(6),l=n.n(s),f=n(7),h=n.n(f),p=n(3),d=n(0),y=n.n(d);e.a={getPoint:function(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,a=t._x0,i=t._voronoiX,o=t._y,u=t._y1,c=t._y0,s=t._voronoiY,l=e(r)?r:n,f=e(u)?u:o;return{x:e(i)?i:l,x0:e(a)?a:n,y:e(s)?s:f,y0:e(c)?c:o}},scalePoint:function(t,e){var n=t.scale,r=t.polar,a=this.getPoint(e),i=t.origin||{x:0,y:0},o=n.x(a.x),u=n.x(a.x0),c=n.y(a.y),s=n.y(a.y0);return{x:r?c*Math.cos(o)+i.x:o,x0:r?s*Math.cos(u)+i.x:u,y:r?-c*Math.sin(o)+i.y:c,y0:r?-s*Math.sin(u)+i.x:s}},getPadding:function(t){var e="number"==typeof t.padding?t.padding:0,n="object"==typeof t.padding?t.padding:{};return{top:n.top||e,bottom:n.bottom||e,left:n.left||e,right:n.right||e}},getStyles:function(t,e){if(!t)return h()({parent:{height:"100%",width:"100%"}},e);var n=t.data,r=t.labels,a=t.parent,i=e&&e.parent||{},o=e&&e.labels||{},u=e&&e.data||{};return{parent:h()({},a,i,{width:"100%",height:"100%"}),labels:h()({},r,o),data:h()({},n,u)}},evaluateProp:function(t,e,n){return l()(t)?t(e,n):t},evaluateStyle:function(t,e,n){var r=this;return t&&Object.keys(t).some(function(e){return l()(t[e])})?Object.keys(t).reduce(function(a,i){return a[i]=r.evaluateProp(t[i],e,n),a},{}):t},degreesToRadians:function(t){return t*(Math.PI/180)},radiansToDegrees:function(t){return t/(Math.PI/180)},getRadius:function(t){var e=this.getPadding(t),n=e.left,r=e.right,a=e.top,i=e.bottom,o=t.width,u=t.height;return Math.min(o-n-r,u-a-i)/2},getPolarOrigin:function(t){var e=t.width,n=t.height,r=this.getPadding(t),a=r.top,i=r.bottom,o=r.left,u=r.right,c=Math.min(e-o-u,n-a-i)/2,s=e/2+o-u,l=n/2+a-i;return{x:s+c>e?c+o-u:s,y:l+c>n?c+a-i:l}},getRange:function(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?this.getPolarRange(t,e):this.getCartesianRange(t,e)},getCartesianRange:function(t,e){var n="x"!==e,r=this.getPadding(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]},getPolarRange:function(t,e){if("x"===e){return[this.degreesToRadians(t.startAngle||0),this.degreesToRadians(t.endAngle||360)]}return[t.innerRadius||0,this.getRadius(t)]},createAccessor:function(t){return l()(t)?t:null===t||void 0===t?function(t){return t}:c()(t)},modifyProps:function(t,e,n){var r=t.theme&&t.theme[n]?t.theme[n]:{},a=o()(r,["style"]);return h()({},t,a,e)},getCurrentAxis:function(t,e){var n="x"===t?"y":"x";return e?n:t},isVertical:function(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]},stringTicks:function(t){return void 0!==t.tickValues&&p.a.containsStrings(t.tickValues)},reduceChildren:function(t,e){var n=0,r=function(t,i){return a()(t,function(t,a){var o=a.props.name||n;if(n++,a.props&&a.props.children){var u=y.a.Children.toArray(a.props.children),c=r(u,a);t=t.concat(c)}else{var s=e(a,o,i);t=s?t.concat(s):t}return t},[])};return r(t)}}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var a=n(26),i=n.n(a),o=n(85),u=n.n(o),c=n(25),s=n.n(c),l=n(141),f=n.n(l);e.a={isNonEmptyArray:function(t){return Array.isArray(t)&&t.length>0},containsStrings:function(t){return Array.isArray(t)&&t.some(function(t){return"string"==typeof t})},containsDates:function(t){return Array.isArray(t)&&t.some(function(t){return t instanceof Date})},containsNumbers:function(t){return Array.isArray(t)&&t.some(function(t){return"number"==typeof t})},containsOnlyStrings:function(t){return this.isNonEmptyArray(t)&&t.every(function(t){return"string"==typeof t})},isArrayOfArrays:function(t){return this.isNonEmptyArray(t)&&t.every(Array.isArray)},removeUndefined:function(t){return t.filter(function(t){return void 0!==t})},getMaxValue:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];var i=t.concat(n);return this.containsDates(i)?new Date(Math.max.apply(Math,r(i))):Math.max.apply(Math,r(i))},getMinValue:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];var i=t.concat(n);return this.containsDates(i)?new Date(Math.min.apply(Math,r(i))):Math.min.apply(Math,r(i))},splitArray:function(t,e){var n=0;return t.reduce(function(r,a,i){return e(a)?(r=r.concat([t.slice(n,i)]),n=i+1):i===t.length-1&&(r=r.concat([t.slice(n,t.length)])),r},[]).filter(function(t){return Array.isArray(t)&&t.length>0})},allSetsEqual:function(t){return t.every(function(t){return f()(t[0],t[1])})},areVictoryPropsEqual:function(t,e){return this.checkEquality(t,e)},checkEquality:function(t,e){var n=this,r=function(t,e){return t===e||typeof t==typeof e&&("function"==typeof t||("object"!=typeof t||s()(t).length===s()(e).length)&&("object"!=typeof t||0===s()(t).length?f()(t,e):void 0))},a=r(t,e);return"boolean"==typeof a?a:s()(t).reduce(function(a,o){if(!a)return!1;var c=t[o],s=e[o],l=r(c,s);return"boolean"==typeof l?l:i()(c)?!!i()(s)&&(u()(c)&&u()(s)||n.checkEquality(c,s)):Array.isArray(c)?!!Array.isArray(s)&&(u()(c)&&u()(s)||n.checkEquality(c,s)):f()(c,s)},!0)}}},function(t,e,n){var r=n(79),a=n(29),i=n(49),o=n(52),u=n(81),c=n(25),s=Object.prototype,l=s.hasOwnProperty,f=i(function(t,e){if(u(e)||o(e))return void a(e,c(e),t);for(var n in e)l.call(e,n)&&r(t,n,e[n])});t.exports=f},function(t,e,n){"use strict";function r(t,e,n,o){function u(e){return t(e=new Date(+e)),e}return u.floor=u,u.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},u.round=function(t){var e=u(t),n=u.ceil(t);return t-e<n-t?e:n},u.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},u.range=function(n,r,a){var i=[];if(n=u.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return i;do{i.push(new Date(+n))}while(e(n,a),t(n),n<r);return i},u.filter=function(n){return r(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(u.count=function(e,r){return a.setTime(+e),i.setTime(+r),t(a),t(i),Math.floor(n(a,i))},u.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u.filter(o?function(e){return o(e)%t==0}:function(e){return u.count(0,e)%t==0}):u:null}),u}e.a=r;var a=new Date,i=new Date},function(t,e,n){function r(t){if(!i(t))return!1;var e=a(t);return e==u||e==c||e==o||e==s}var a=n(124),i=n(9),o="[object AsyncFunction]",u="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";t.exports=r},function(t,e,n){var r=n(39),a=n(266),i=n(18),o=n(269),u=i(function(t){return t.push(void 0,o),r(a,void 0,t)});t.exports=u},function(t,e,n){"use strict";var r=n(1),a=n.n(r),i=n(15);e.a={active:a.a.bool,className:a.a.string,data:a.a.array,events:a.a.object,index:a.a.oneOfType([a.a.number,a.a.string]),origin:a.a.shape({x:a.a.number,y:a.a.number}),polar:a.a.bool,role:a.a.string,scale:a.a.oneOfType([i.a.scale,a.a.shape({x:i.a.scale,y:i.a.scale})]),shapeRendering:a.a.string,style:a.a.object}},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";var r=n(169);n.d(e,"b",function(){return r.a});var a=n(22);n.d(e,"a",function(){return a.a});var i=n(170);n.d(e,"c",function(){return i.a});var o=(n(358),n(359),n(172),n(174),n(360),n(363),n(364),n(178),n(365),n(366),n(367),n(368),n(179),n(171),n(369),n(97));n.d(e,"d",function(){return o.a});var u=n(176);n.d(e,"e",function(){return u.a});var c=(n(370),n(371),n(372),n(177));n.d(e,"h",function(){return c.a}),n.d(e,"f",function(){return c.b}),n.d(e,"g",function(){return c.c});n(180),n(173),n(373)},function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return u});var r=1e3,a=6e4,i=36e5,o=864e5,u=6048e5},function(t,e,n){"use strict";var r=n(75);n.d(e,"a",function(){return r.e}),n.d(e,"f",function(){return r.g}),n.d(e,"d",function(){return r.f});var a=n(250);n.d(e,"e",function(){return a.a}),n.d(e,"c",function(){return a.b});var i=n(251);n.d(e,"b",function(){return i.a})},function(t,e,n){var r=n(197),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();t.exports=i},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(287),i=n.n(a),o=n(6),u=n.n(o),c=n(53),s=n(1),l=n.n(s),f=function(t){var e=function(e,n,r,a){var i=n[r];if(void 0===i||null===i)return e?new Error("Required `"+r+"` was not specified in `"+a+"`."):null;for(var o=arguments.length,u=Array(o>4?o-4:0),c=4;c<o;c++)u[c-4]=arguments[c];return t.apply(void 0,[n,r,a].concat(u))},n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n},h=function(){return null},p=function(){},d=function(t){return void 0===t?p:null===t?h:t.constructor},y=function(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).slice(8,-1)};e.a={deprecated:function(t,e){return function(n,a,i){var o=n[a];return null!==o&&void 0!==o&&c.a.warn('"'+a+'" property of "'+i+'" has been deprecated '+e),l.a.checkPropTypes(r({},a,t),n,a,i)}},allOfType:function(t){return f(function(e,n,r){for(var a=arguments.length,i=Array(a>3?a-3:0),o=3;o<a;o++)i[o-3]=arguments[o];return t.reduce(function(t,a){return t||a.apply(void 0,[e,n,r].concat(i))},void 0)})},nonNegative:f(function(t,e,n){var r=t[e];if("number"!=typeof r||r<0)return new Error("`"+e+"` in `"+n+"` must be a non-negative number.")}),integer:f(function(t,e,n){var r=t[e];if("number"!=typeof r||r%1!=0)return new Error("`"+e+"` in `"+n+"` must be an integer.")}),greaterThanZero:f(function(t,e,n){var r=t[e];if("number"!=typeof r||r<=0)return new Error("`"+e+"` in `"+n+"` must be a number greater than zero.")}),domain:f(function(t,e,n){var r=t[e];if(!Array.isArray(r)||2!==r.length||r[1]===r[0])return new Error("`"+e+"` in `"+n+"` must be an array of two unique numeric values.")}),scale:f(function(t,e,n){var r=["linear","time","log","sqrt"],a=t[e];if(!function(t){return u()(t)?u()(t.copy)&&u()(t.domain)&&u()(t.range):"string"==typeof t&&-1!==r.indexOf(t)}(a))return new Error("`"+e+"` in `"+n+"` must be a d3 scale.")}),homogeneousArray:f(function(t,e,n){var r=t[e];if(!Array.isArray(r))return new Error("`"+e+"` in `"+n+"` must be an array.");if(!(r.length<2)){var a=d(r[0]),o=i()(r,function(t){return a!==d(t)});if(o){var u=y(r[0]),c=y(o);return new Error("Expected `"+e+"` in `"+n+"` to be a homogeneous array, but found types `"+u+"` and `"+c+"`.")}}}),matchDataLength:f(function(t,e){if(t[e]&&Array.isArray(t[e])&&t[e].length!==t.data.length)return new Error("Length of data and "+e+" arrays must match.")})}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return i});var r=Array.prototype,a=r.map,i=r.slice},function(t,e,n){function r(t,e){return o(i(t,e,a),t+"")}var a=n(38),i=n(103),o=n(104);t.exports=r},function(t,e,n){function r(t,e){return a(t)?t:i(t,e)?[t]:o(u(t))}var a=n(10),i=n(71),o=n(240),u=n(120);t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){"use strict";var r=n(74);n.d(e,"a",function(){return r.a});var a=(n(130),n(77),n(128),n(131),n(48));n.d(e,"c",function(){return a.a});var i=(n(132),n(252));n.d(e,"d",function(){return i.a});var o=(n(133),n(253),n(256),n(127),n(257),n(258),n(259),n(260));n.d(e,"b",function(){return o.a});n(261)},function(t,e,n){"use strict";e.a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?u(t)?i(t[0],t[1]):a(t):c(t)}var a=n(224),i=n(238),o=n(38),u=n(10),c=n(72);t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){var r=n(45),a=r(Object.keys,Object);t.exports=a},function(t,e,n){function r(t){if(!o(t)||a(t)!=u)return!1;var e=i(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}var a=n(124),i=n(125),o=n(70),u="[object Object]",c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,h=l.call(Object);t.exports=r},function(t,e,n){"use strict";function r(t,e){return function(n){return t+n*e}}function a(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function i(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(c.a)(isNaN(t)?e:t)}function o(t){return 1==(t=+t)?u:function(e,n){return n-e?a(e,n,t):Object(c.a)(isNaN(e)?n:e)}}function u(t,e){var n=e-t;return n?r(t,n):Object(c.a)(isNaN(t)?e:t)}e.c=i,e.b=o,e.a=u;var c=n(129)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=n(262),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(){r(this,t),this.shouldAnimate=!0,this.subscribers=[],this.loop=this.loop.bind(this),this.timer=Object(a.b)(this.loop)}return i(t,[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"loop",value:function(){this.subscribers.forEach(function(t){t.callback(Object(a.a)()-t.startTime,t.duration)})}},{key:"start",value:function(){this.timer.start()}},{key:"stop",value:function(){this.timer.stop()}},{key:"subscribe",value:function(t,e){return e=this.shouldAnimate?e:0,this.subscribers.push({startTime:Object(a.a)(),callback:t,duration:e})}},{key:"unsubscribe",value:function(t){null!==t&&delete this.subscribers[t-1]}}]),t}();e.a=o},function(t,e,n){function r(t,e,n,r){var o=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var s=e[u],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),o?i(n,s,l):a(n,s,l)}return n}var a=n(79),i=n(80);t.exports=r},function(t,e,n){"use strict";var r=n(321);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(t){return t>1?0:t<-1?p:Math.acos(t)}function a(t){return t>=1?d:t<=-1?-d:Math.asin(t)}n.d(e,"a",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return s}),n.d(e,"k",function(){return l}),n.d(e,"l",function(){return f}),n.d(e,"f",function(){return h}),n.d(e,"j",function(){return p}),n.d(e,"g",function(){return d}),n.d(e,"m",function(){return y}),e.b=r,e.c=a;var i=Math.abs,o=Math.atan2,u=Math.cos,c=Math.max,s=Math.min,l=Math.sin,f=Math.sqrt,h=1e-12,p=Math.PI,d=p/2,y=2*p},function(t,e,n){"use strict";e.a=function(t,e){if((a=t.length)>1)for(var n,r,a,i=1,o=t[e[0]],u=o.length;i<a;++i)for(r=o,o=t[e[i]],n=0;n<u;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}},function(t,e,n){"use strict";e.a=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}},function(t,e,n){"use strict";e.a=function(t){return null===t?NaN:+t}},function(t,e,n){"use strict";function r(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(i.h)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Object(c.a)(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,a=e(),o=0,u=a.length-1,c=a[o],s=a[u];return s<c&&(r=c,c=s,s=r,r=o,o=u,u=r),r=Object(i.f)(c,s,n),r>0?(c=Math.floor(c/r)*r,s=Math.ceil(s/r)*r,r=Object(i.f)(c,s,n)):r<0&&(c=Math.ceil(c*r)/r,s=Math.floor(s*r)/r,r=Object(i.f)(c,s,n)),r>0?(a[o]=Math.floor(c/r)*r,a[u]=Math.ceil(s/r)*r,e(a)):r<0&&(a[o]=Math.ceil(c*r)/r,a[u]=Math.floor(s*r)/r,e(a)),t},t}function a(){var t=Object(u.b)(u.c,o.c);return t.copy=function(){return Object(u.a)(t,a())},r(t)}e.b=r,e.a=a;var i=n(11),o=n(21),u=n(59),c=n(381)},function(t,e,n){"use strict";e.a=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}},function(t,e,n){var r=n(18),a=n(105),i=n(41),o=n(42),u=r(function(t,e){var n=o(e,i(u));return a(t,64,void 0,e,n)});u.placeholder={},t.exports=u},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){function r(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=a(t.prototype),r=t.apply(n,e);return i(r)?r:n}}var a=n(106),i=n(9);t.exports=r},function(t,e){function n(t){return t.placeholder}t.exports=n},function(t,e){function n(t,e){for(var n=-1,a=t.length,i=0,o=[];++n<a;){var u=t[n];u!==e&&u!==r||(t[n]=r,o[i++]=n)}return o}var r="__lodash_placeholder__";t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){function r(t,e){for(var n=t.length;n--;)if(a(t[n][0],e))return n;return-1}var a=n(24);t.exports=r},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function r(t,e){e=a(e,t);for(var n=0,r=e.length;null!=t&&n<r;)t=t[i(e[n++])];return n&&n==r?t:void 0}var a=n(19),i=n(20);t.exports=r},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){function r(t){return a(function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,u=a>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,u&&i(n[0],n[1],u)&&(o=a<3?void 0:o,a=1),e=Object(e);++r<a;){var c=n[r];c&&t(e,c,r,o)}return e})}var a=n(18),i=n(73);t.exports=r},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){var r=n(62),a=n(270),i=n(271),o=n(19),u=n(29),c=n(274),s=n(136),l=n(275),f=s(function(t,e){var n={};if(null==t)return n;var s=!1;e=r(e,function(e){return e=o(e,t),s||(s=e.length>1),e}),u(t,l(t),n),s&&(n=a(n,7,c));for(var f=e.length;f--;)i(n,e[f]);return n});t.exports=f},function(t,e,n){function r(t){return null!=t&&i(t.length)&&!a(t)}var a=n(6),i=n(122);t.exports=r},function(t,e,n){"use strict";e.a={warn:function(t){}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(320);n.d(e,"arc",function(){return r.a});var a=n(154);n.d(e,"area",function(){return a.a});var i=n(91);n.d(e,"line",function(){return i.a});var o=n(322);n.d(e,"pie",function(){return o.a});var u=n(325);n.d(e,"areaRadial",function(){return u.a}),n.d(e,"radialArea",function(){return u.a});var c=n(156);n.d(e,"lineRadial",function(){return c.a}),n.d(e,"radialLine",function(){return c.a});var s=n(157);n.d(e,"pointRadial",function(){return s.a});var l=n(326);n.d(e,"linkHorizontal",function(){return l.a}),n.d(e,"linkVertical",function(){return l.c}),n.d(e,"linkRadial",function(){return l.b});var f=n(327);n.d(e,"symbol",function(){return f.a}),n.d(e,"symbols",function(){return f.b});var h=n(159);n.d(e,"symbolCircle",function(){return h.a});var p=n(160);n.d(e,"symbolCross",function(){return p.a});var d=n(161);n.d(e,"symbolDiamond",function(){return d.a});var y=n(163);n.d(e,"symbolSquare",function(){return y.a});var v=n(162);n.d(e,"symbolStar",function(){return v.a});var b=n(164);n.d(e,"symbolTriangle",function(){return b.a});var g=n(165);n.d(e,"symbolWye",function(){return g.a});var m=n(328);n.d(e,"curveBasisClosed",function(){return m.a});var _=n(329);n.d(e,"curveBasisOpen",function(){return _.a});var x=n(57);n.d(e,"curveBasis",function(){return x.b});var O=n(330);n.d(e,"curveBundle",function(){return O.a});var w=n(166);n.d(e,"curveCardinalClosed",function(){return w.b});var j=n(167);n.d(e,"curveCardinalOpen",function(){return j.b});var M=n(58);n.d(e,"curveCardinal",function(){return M.b});var k=n(331);n.d(e,"curveCatmullRomClosed",function(){return k.a});var T=n(332);n.d(e,"curveCatmullRomOpen",function(){return T.a});var A=n(93);n.d(e,"curveCatmullRom",function(){return A.a});var P=n(333);n.d(e,"curveLinearClosed",function(){return P.a});var E=n(55);n.d(e,"curveLinear",function(){return E.a});var C=n(334);n.d(e,"curveMonotoneX",function(){return C.a}),n.d(e,"curveMonotoneY",function(){return C.b});var S=n(335);n.d(e,"curveNatural",function(){return S.a});var N=n(336);n.d(e,"curveStep",function(){return N.a}),n.d(e,"curveStepAfter",function(){return N.b}),n.d(e,"curveStepBefore",function(){return N.c});var R=n(337);n.d(e,"stack",function(){return R.a});var D=n(338);n.d(e,"stackOffsetExpand",function(){return D.a});var L=n(339);n.d(e,"stackOffsetDiverging",function(){return L.a});var F=n(32);n.d(e,"stackOffsetNone",function(){return F.a});var I=n(340);n.d(e,"stackOffsetSilhouette",function(){return I.a});var W=n(341);n.d(e,"stackOffsetWiggle",function(){return W.a});var U=n(94);n.d(e,"stackOrderAscending",function(){return U.a});var z=n(342);n.d(e,"stackOrderDescending",function(){return z.a});var q=n(343);n.d(e,"stackOrderInsideOut",function(){return q.a});var B=n(33);n.d(e,"stackOrderNone",function(){return B.a});var V=n(344);n.d(e,"stackOrderReverse",function(){return V.a})},function(t,e,n){"use strict";function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function a(t){this._context=t}e.c=r,e.a=a,a.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:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.b=function(t){return new a(t)}},function(t,e,n){"use strict";function r(t,e,n){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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}e.c=r,e.a=a,a.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:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:r(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.b=function t(e){function n(t){return new a(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Object(p.a)(e)}function a(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}function i(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function o(t,e,n,r){var a=t[0],i=t[1],o=e[0],u=e[1];return i<a?(a=n(i,a),o=r(u,o)):(a=n(a,i),o=r(o,u)),function(t){return o(a(t))}}function u(t,e,n,r){var a=Math.min(t.length,e.length)-1,i=new Array(a),o=new Array(a),u=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++u<a;)i[u]=n(t[u],t[u+1]),o[u]=r(e[u],e[u+1]);return function(e){var n=Object(l.b)(t,e,1,a)-1;return o[n](i[n](e))}}function c(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function s(t,e){function n(){return s=Math.min(v.length,b.length)>2?u:o,l=p=null,c}function c(e){return(l||(l=s(v,b,m?a(t):t,g)))(+e)}var s,l,p,v=y,b=y,g=f.a,m=!1;return c.invert=function(t){return(p||(p=s(b,v,r,m?i(e):e)))(+t)},c.domain=function(t){return arguments.length?(v=h.a.call(t,d.a),n()):v.slice()},c.range=function(t){return arguments.length?(b=h.b.call(t),n()):b.slice()},c.rangeRound=function(t){return b=h.b.call(t),g=f.d,n()},c.clamp=function(t){return arguments.length?(m=!!t,n()):m},c.interpolate=function(t){return arguments.length?(g=t,n()):g},n()}e.c=r,e.a=c,e.b=s;var l=n(11),f=n(21),h=n(17),p=n(99),d=n(182),y=[0,1]},function(t,e,n){"use strict";var r=n(100);e.a=function(t){return t=Object(r.a)(Math.abs(t)),t?t[1]:NaN}},function(t,e){function n(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||a.test(t))&&t>-1&&t%1==0&&t<e}var r=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}t.exports=n},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var a=n(226),i=n(227),o=n(228),u=n(229),c=n(230);r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=o,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){function r(t,e,n,o,u){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:a(t,e,n,o,r,u))}var a=n(231),i=n(70);t.exports=r},function(t,e,n){function r(){if(!arguments.length)return[];var t=arguments[0];return a(t)?t:[t]}var a=n(10);t.exports=r},function(t,e,n){function r(t,e){return!!(null==t?0:t.length)&&a(t,e,0)>-1}var a=n(67);t.exports=r},function(t,e){function n(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){function r(t,e){if(a(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(u.test(t)||!o.test(t)||null!=e&&t in Object(e))}var a=n(10),i=n(47),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=r},function(t,e,n){function r(t){return o(t)?a(u(t)):i(t)}var a=n(244),i=n(245),o=n(71),u=n(20);t.exports=r},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){"use strict";var r=n(13),a=n(127),i=n(130),o=n(131),u=n(48),c=n(132),s=n(133),l=n(129);e.a=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(l.a)(e):("number"===f?u.a:"string"===f?(n=Object(r.a)(e))?(e=n,a.a):s.a:e instanceof r.a?a.a:e instanceof Date?o.a:Array.isArray(e)?i.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.a:u.a)(t,e)}},function(t,e,n){"use strict";function r(){}function a(t){var e;return t=(t+"").trim().toLowerCase(),(e=x.exec(t))?(e=parseInt(e[1],16),new s(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=O.exec(t))?i(parseInt(e[1],16)):(e=w.exec(t))?new s(e[1],e[2],e[3],1):(e=j.exec(t))?new s(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=M.exec(t))?o(e[1],e[2],e[3],e[4]):(e=k.exec(t))?o(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=T.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=A.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):P.hasOwnProperty(t)?i(P[t]):"transparent"===t?new s(NaN,NaN,NaN,0):null}function i(t){return new s(t>>16&255,t>>8&255,255&t,1)}function o(t,e,n,r){return r<=0&&(t=e=n=NaN),new s(t,e,n,r)}function u(t){return t instanceof r||(t=a(t)),t?(t=t.rgb(),new s(t.r,t.g,t.b,t.opacity)):new s}function c(t,e,n,r){return 1===arguments.length?u(t):new s(t,e,n,null==r?1:r)}function s(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new p(t,e,n,r)}function f(t){if(t instanceof p)return new p(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=a(t)),!t)return new p;if(t instanceof p)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),u=Math.max(e,n,i),c=NaN,s=u-o,l=(u+o)/2;return s?(c=e===u?(n-i)/s+6*(n<i):n===u?(i-e)/s+2:(e-n)/s+4,s/=l<.5?u+o:2-u-o,c*=60):s=l>0&&l<1?0:c,new p(c,s,l,t.opacity)}function h(t,e,n,r){return 1===arguments.length?f(t):new p(t,e,n,null==r?1:r)}function p(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function d(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return v}),n.d(e,"c",function(){return b}),e.e=a,e.h=u,e.g=c,e.b=s,e.f=h;var y=n(76),v=.7,b=1/v,g="\\s*([+-]?\\d+)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x=/^#([0-9a-f]{3})$/,O=/^#([0-9a-f]{6})$/,w=new RegExp("^rgb\\("+[g,g,g]+"\\)$"),j=new RegExp("^rgb\\("+[_,_,_]+"\\)$"),M=new RegExp("^rgba\\("+[g,g,g,m]+"\\)$"),k=new RegExp("^rgba\\("+[_,_,_,m]+"\\)$"),T=new RegExp("^hsl\\("+[m,_,_]+"\\)$"),A=new RegExp("^hsla\\("+[m,_,_,m]+"\\)$"),P={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(y.a)(r,a,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(y.a)(s,c,Object(y.b)(r,{brighter:function(t){return t=null==t?b:Math.pow(b,t),new s(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?v:Math.pow(v,t),new s(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(y.a)(p,h,Object(y.b)(r,{brighter:function(t){return t=null==t?b:Math.pow(b,t),new p(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?v:Math.pow(v,t),new p(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new s(d(t>=240?t-240:t+120,a,r),d(t,a,r),d(t<120?t+240:t-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*e+(4-6*i+3*o)*n+(1+3*t+3*i-3*o)*r+o*a)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[a],o=t[a+1],u=a>0?t[a-1]:2*i-o,c=a<e-1?t[a+2]:2*o-i;return r((n-a/e)*e,u,i,o,c)}}},function(t,e,n){"use strict";function r(){return m||(O(a),m=x.now()+_)}function a(){m=0}function i(){this._call=this._time=this._next=null}function o(t,e,n){var r=new i;return r.restart(t,e,n),r}function u(){r(),++d;for(var t,e=h;e;)(t=m-e._time)>=0&&e._call.call(null,t),e=e._next;--d}function c(){m=(g=x.now())+_,d=y=0;try{u()}finally{d=0,l(),m=0}}function s(){var t=x.now(),e=t-g;e>b&&(_-=e,g=t)}function l(){for(var t,e,n=h,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);p=t,f(r)}function f(t){if(!d){y&&(y=clearTimeout(y));var e=t-m;e>24?(t<1/0&&(y=setTimeout(c,e)),v&&(v=clearInterval(v))):(v||(g=m,v=setInterval(s,b)),d=1,O(c))}}e.b=r,e.a=i,e.c=o;var h,p,d=0,y=0,v=0,b=1e3,g=0,m=0,_=0,x="object"==typeof performance&&performance.now?performance:Date,O="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};i.prototype=o.prototype={constructor:i,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||p===this||(p?p._next=this:h=this,p=this),this._call=t,this._time=n,f()},stop:function(){this._call&&(this._call=null,this._time=1/0,f())}}},function(t,e,n){function r(t,e,n){var r=t[e];u.call(t,e)&&i(r,n)&&(void 0!==n||e in t)||a(t,e,n)}var a=n(80),i=n(24),o=Object.prototype,u=o.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e,n){"__proto__"==e&&a?a(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var a=n(267);t.exports=r},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(83),u=n.n(o),c=n(4),s=n.n(c),l=n(0),f=n.n(l),h=n(1),p=n.n(h),d=n(84),y=n(15),v=n(3),b=n(2),g=n(86),m=n(87),_=n(53),x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),w={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},j=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),O(e,[{key:"componentWillMount",value:function(){this.cacheAttributes(this.calculateAttributes(this.props))}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.dx,a=e.dy,i=e.content,o=e.lineHeight,u=e.textAnchor,c=e.transform,s=this.props,l=s.angle,f=s.className,h=s.datum,p=s.x,d=s.y,y=s.active;return!v.a.allSetsEqual([[y,t.active],[l,t.angle],[f,t.className],[p,t.x],[d,t.y],[r,this.dx],[a,this.dy],[o,this.lineHeight],[u,this.textAnchor],[c,this.transform],[i,this.content],[n,this.style],[h,t.datum]])&&(this.cacheAttributes(e),!0)}},{key:"cacheAttributes",value:function(t){var e=t.style,n=t.dx,r=t.dy,a=t.content,i=t.textAnchor,o=t.transform,u=t.lineHeight;this.style=e,this.dx=n,this.dy=r,this.content=a,this.textAnchor=i,this.lineHeight=u,this.transform=o}},{key:"calculateAttributes",value:function(t){var e=this.getStyles(t),n=this.getHeight(t,"lineHeight"),r=t.textAnchor?b.a.evaluateProp(t.textAnchor,t.datum):"start",a=this.getContent(t);return{style:e,dx:t.dx?b.a.evaluateProp(this.props.dx,t.datum):0,dy:this.getDy(t,e,a,n),content:a,lineHeight:n,textAnchor:r,transform:this.getTransform(t,e)}}},{key:"getStyle",value:function(t,e){e=e?u()({},w,e):w;var n=t.datum||t.data,r=b.a.evaluateStyle(e,n,t.active);return s()({},r,{fontSize:this.getFontSize(r)})}},{key:"getStyles",value:function(t){var e=this;return Array.isArray(t.style)?t.style.map(function(n){return e.getStyle(t,n)}):[this.getStyle(t,t.style)]}},{key:"getHeight",value:function(t,e){var n=t.datum||t.data;return b.a.evaluateProp(t[e],n,t.active)}},{key:"getContent",value:function(t){if(void 0===t.text||null===t.text)return[" "];var e=t.datum||t.data;return Array.isArray(t.text)?t.text.map(function(n){return b.a.evaluateProp(n,e,t.active)}):(""+b.a.evaluateProp(t.text,e,t.active)).split("\n")}},{key:"getDy",value:function(t,e,n,r){var a=e[0].fontSize,i=t.datum||t.data,o=t.dy?b.a.evaluateProp(t.dy,i):0,u=n.length,c=this.getHeight(t,"capHeight"),s=e.verticalAnchor||t.verticalAnchor;switch(s?b.a.evaluateProp(s,i):"middle"){case"end":return o+(c/2+(.5-u)*r)*a;case"middle":return o+(c/2+(.5-u/2)*r)*a;default:return o+(c/2+r/2)*a}}},{key:"getTransform",value:function(t,e){var n=t.datum,r=t.x,a=t.y,i=t.polar,o=i?g.a.getPolarAngle(t):0,u=e.angle||t.angle||o,c=t.transform||e.transform,s=c&&b.a.evaluateProp(c,n),l=u&&{rotate:[u,r,a]};return s||u?m.a.toTransformString(s,l):void 0}},{key:"getFontSize",value:function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(void 0===e||null===e)return w.fontSize;if("string"==typeof e){var n=+e.replace("px","");return isNaN(n)?(_.a.warn("fontSize should be expressed as a number of pixels"),w.fontSize):n}return w.fontSize}},{key:"renderElements",value:function(t){var e=this,n={dx:this.dx,dy:this.dy,x:t.x,y:t.y,transform:this.transform,className:t.className};return f.a.createElement("text",x({},n,t.events),this.props.title&&f.a.createElement("title",null,this.props.title),this.props.desc&&f.a.createElement("desc",null,this.props.desc),this.content.map(function(n,r){var a=e.style[r]||e.style[0],i=e.style[r-1]||e.style[0],o=(a.fontSize+i.fontSize)/2,u=a.textAnchor||e.textAnchor,c=r?e.lineHeight*o:void 0;return f.a.createElement("tspan",{key:r,x:t.x,dy:c,dx:e.dx,style:a,textAnchor:u},n)}))}},{key:"render",value:function(){var t=this.renderElements(this.props);return this.props.renderInPortal?f.a.createElement(d.a,null,t):t}}]),e}(f.a.Component);j.displayName="VictoryLabel",j.role="label",j.propTypes={active:p.a.bool,angle:p.a.oneOfType([p.a.string,p.a.number]),capHeight:p.a.oneOfType([p.a.string,y.a.nonNegative,p.a.func]),className:p.a.string,data:p.a.array,datum:p.a.any,desc:p.a.string,dx:p.a.oneOfType([p.a.number,p.a.string,p.a.func]),dy:p.a.oneOfType([p.a.number,p.a.string,p.a.func]),events:p.a.object,index:p.a.oneOfType([p.a.number,p.a.string]),labelPlacement:p.a.oneOf(["parallel","perpendicular","vertical"]),lineHeight:p.a.oneOfType([p.a.string,y.a.nonNegative,p.a.func]),origin:p.a.shape({x:p.a.number,y:p.a.number}),polar:p.a.bool,renderInPortal:p.a.bool,style:p.a.oneOfType([p.a.object,p.a.array]),text:p.a.oneOfType([p.a.string,p.a.number,p.a.func,p.a.array]),textAnchor:p.a.oneOfType([p.a.oneOf(["start","middle","end","inherit"]),p.a.func]),title:p.a.string,transform:p.a.oneOfType([p.a.string,p.a.object,p.a.func]),verticalAnchor:p.a.oneOfType([p.a.oneOf(["start","middle","end"]),p.a.func]),x:p.a.oneOfType([p.a.number,p.a.string]),y:p.a.oneOfType([p.a.number,p.a.string])},j.defaultProps={capHeight:.71,lineHeight:1},e.a=j},function(t,e,n){var r=n(276),a=n(49),i=a(function(t,e,n){r(t,e,n)});t.exports=i},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(51),u=n.n(o),c=n(7),s=n.n(c),l=n(0),f=n.n(l),h=n(1),p=n.n(h),d=n(53),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),y(e,[{key:"componentDidMount",value:function(){if(!this.checkedContext){if("function"!=typeof this.context.portalUpdate){d.a.warn("`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place"),this.renderInPlace=!0}this.checkedContext=!0}this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=this.props.children,e=t&&t.props||{},n=t&&f.a.cloneElement(t,s()({},e,u()(this.props,"children")));return this.renderPortal(n)}}]),e}(f.a.Component);v.propTypes={children:p.a.node},v.contextTypes={portalDeregister:p.a.func,portalRegister:p.a.func,portalUpdate:p.a.func},e.a=v},function(t,e,n){function r(t){if(null==t)return!0;if(c(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||f(t)||o(t)))return!t.length;var e=i(t);if(e==h||e==p)return!t.size;if(l(t))return!a(t).length;for(var n in t)if(y.call(t,n))return!1;return!0}var a=n(291),i=n(117),o=n(43),u=n(10),c=n(52),s=n(68),l=n(81),f=n(69),h="[object Map]",p="[object Set]",d=Object.prototype,y=d.hasOwnProperty;t.exports=r},function(t,e,n){"use strict";var r=n(2);e.a={getText:function(t,e,n){return void 0!==e.label?e.label:Array.isArray(t.labels)?t.labels[n]:t.labels},getVerticalAnchor:function(t,e){var n=e._y>=0?1:-1,r=t.style&&t.style.labels||{};return e.getVerticalAnchor||r.verticalAnchor?e.getVerticalAnchor||r.verticalAnchor:t.horizontal?"middle":n>=0?"end":"start"},getTextAnchor:function(t,e){var n=t.style,r=t.horizontal,a=e._y>=0?1:-1,i=n&&n.labels||{};return e.getVerticalAnchor||i.verticalAnchor?e.getVerticalAnchor||i.verticalAnchor:r?a>=0?"start":"end":"middle"},getAngle:function(t,e){var n=t.style&&t.style.labels||{};return e.angle||n.angle},getPadding:function(t,e){var n=t.horizontal,a=t.style,i=t.active,o=a.labels||{},u=r.a.evaluateProp(o.padding,e,i)||0,c=e._y<0?-1:1;return{x:n?c*u:0,y:n?0:c*u}},getPosition:function(t,e){var n=t.horizontal,a=t.polar,i=r.a.scalePoint(t,e),o=i.x,u=i.y,c=this.getPadding(t,e);if(a){var s=this.getPolarPadding(t,e);return{x:o+s.x,y:u+s.y}}return{x:n?u+c.x:o+c.x,y:n?o+c.y:u-c.y}},getPolarPadding:function(t,e){var n=t.active,a=t.style,i=this.getDegrees(t,e),o=a.labels||{},u=r.a.evaluateProp(o.padding,e,n)||0,c=r.a.degreesToRadians(i);return{x:u*Math.cos(c),y:-u*Math.sin(c)}},getLabelPlacement:function(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar,a=r?"perpendicular":"vertical";return n||(e.props&&e.props.labelPlacement||a)},getPolarOrientation:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"},getPolarTextAnchor:function(t,e){var n=this.getLabelPlacement(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"},getPolarVerticalAnchor:function(t,e){var n=this.getLabelPlacement(t),r=this.getPolarOrientation(e);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"},getPolarAngle:function(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var a=void 0!==e?e:this.getDegrees(t,r),i=a>90&&a<180||a>270?1:-1,o=void 0;return 0===a||180===a?o=90:a>0&&a<180?o=90-a:a>180&&a<360&&(o=270-a),o+i*("perpendicular"===n?0:90)},getDegrees:function(t,e){var n=r.a.getPoint(e),a=n.x;return r.a.radiansToDegrees(t.scale.x(a))},getProps:function(t,e){var n=t.scale,r=t.data,a=t.style,i=t.horizontal,o=t.polar,u=r[e],c=this.getDegrees(t,u),s=o?this.getPolarTextAnchor(t,c):this.getTextAnchor(t,u),l=o?this.getPolarVerticalAnchor(t,c):this.getVerticalAnchor(t,u),f=this.getAngle(t,u),h=this.getText(t,u,e),p=this.getLabelPlacement(t),d=this.getPosition(t,u);return{angle:f,data:r,datum:u,horizontal:i,index:e,polar:o,scale:n,labelPlacement:p,text:h,textAnchor:s,verticalAnchor:l,x:d.x,y:d.y,style:a.labels}}}},function(t,e,n){"use strict";var r=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];if(n.length>0)return n.reduce(function(t,e){return[t,r(e)].join(" ")},r(t));if(!t||"string"==typeof t)return t;var i=[];for(var o in t)if(t.hasOwnProperty(o)){var u=t[o];i.push(o+"("+u+")")}return i.join(" ")};e.a={toTransformString:r,getColorScale:function(t){var e={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var i=n(145),o=n.n(i),u=n(6),c=n.n(u),s=n(85),l=n.n(s),f=n(299),h=n.n(f),p=n(83),d=n.n(p),y=n(300),v=n.n(y),b=n(4),g=n.n(b);e.a={getEvents:function(t,e,n,r){var i=this,o=function(t){var r=function(){var r=t.reduce(function(t,n){return void 0!==n.target?""+n.target==""+e?t.concat(n):t:t.concat(n)},[]);return void 0!==n&&"parent"!==e?r.filter(function(t){var e=t.eventKey,r=function(t){return!t||""+t==""+n};return Array.isArray(e)?e.some(function(t){return r(t)}):r(e)}):r}();return Array.isArray(r)&&r.reduce(function(t,e){return e?g()(t,e.eventHandlers):t},{})},u=function(){if(Array.isArray(i.componentEvents)){var e;return Array.isArray(t.events)?(e=i.componentEvents).concat.apply(e,a(t.events)):i.componentEvents}return t.events}(),s=u&&c()(r)?r(o(u),e):void 0;if(!t.sharedEvents)return s;var l=t.sharedEvents.getEvents,f=t.sharedEvents.events&&l(o(t.sharedEvents.events),e);return g()({},f,s)},getScopedEvents:function(t,e,n,a){var i=this;if(l()(t))return{};a=a||this.baseProps;var u=function(t,e){var n=t.childName,r=t.target,o=t.key,u="props"===e?a:i.state,c=void 0!==n&&null!==n&&u[n]?u[n]:u;return"parent"===o?c.parent:c[o]&&c[o][r]},s=function(t,c){var s="parent"===e?t.childName:t.childName||n,l=t.target||e,f=function(e){return"all"===t.eventKey?a[e]?o()(Object.keys(a[e]),"parent"):o()(Object.keys(a),"parent"):void 0===t.eventKey&&"parent"===c?a[e]?Object.keys(a[e]):Object.keys(a):void 0!==t.eventKey?t.eventKey:c},h=function(e,n){var o=function(){return null},c=u({childName:n,key:e,target:l},"props"),s=u({childName:n,key:e,target:l},"state"),f=t.mutation||o,h=f(g()({},c,s),a),p=i.state[n]||{},d=function(t){return"parent"===l?v()(t[e],h):v()(t[e],r({},l,h))};return void 0!==n&&null!==n?v()(i.state,r({},n,v()(p,r({},e,d(p))))):v()(i.state,r({},e,d(i.state)))},p=function(t){var e=f(t);return Array.isArray(e)?e.reduce(function(e,n){return g()(e,h(n,t))},{}):h(e,t)},d="all"===s?o()(Object.keys(a),"parent"):s;return Array.isArray(d)?d.reduce(function(t,e){return g()(t,p(e))},{}):p(d)},f=function(t,e){return Array.isArray(t)?t.reduce(function(t,n){return t=d()({},t,s(n,e))},{}):s(t,e)},h=function(t){var e=function(t){return c()(t.callback)&&t.callback},n=Array.isArray(t)?t.map(function(t){return e(t)}):[e(t)],r=n.filter(function(t){return!1!==t});return r.length?function(){return r.forEach(function(t){return t()})}:void 0},p=function(e,n,r,a){var o=t[a](e,n,r,i);if(o){var u=h(o);i.setState(f(o,r),u)}};return Object.keys(t).reduce(function(t,e){return t[e]=p,t},{})},getPartialEvents:function(t,e,n){return t?Object.keys(t).reduce(function(r,a){return r[a]=h()(t[a],h.a.placeholder,n,e,a),r},{}):{}},getEventState:function(t,e,n){return n?this.state[n]&&this.state[n][t]&&this.state[n][t][e]:"parent"===t?this.state[t]&&this.state[t][e]||this.state[t]:this.state[t]&&this.state[t][e]},getComponentEvents:function(t,e){var n=Array.isArray(e)&&e.reduce(function(e,n){var r,i=t[n],o=i&&i.type&&i.type.defaultEvents,u=c()(o)?o(i.props):o;return e=Array.isArray(u)?(r=e).concat.apply(r,a(u)):e},[]);return n&&n.length?n:void 0}}},function(t,e,n){"use strict";var r=n(303),a=n(304);e.a={material:r.a,grayscale:a.a}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var a=n(7),i=n.n(a),o=n(83),u=n.n(o),c={"American Typewriter":2.09,Baskerville:2.51,Georgia:2.27,"Hoefler Text":2.39,Palatino:2.26,"Times New Roman":2.48,Arial:2.26,"Gill Sans":2.47,"Gill Sans 300":2.58,"Helvetica Neue":2.24,"Lucida Grande":2.05,Tahoma:2.25,"Trebuchet MS":2.2,Verdana:1.96,"Courier New":1.67,cursive:1.84,fantasy:2.09,monospace:1.81,serif:2.04,"sans-serif":1.89},s={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},l={em:1,ex:.5},f={averageFontConstant:2.1675,widthOverlapCoef:1.25,heightOverlapCoef:1.05,lineCapitalCoef:1.15,lineSpaceHeightCoef:.2},h={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},p=function(t){return t*Math.PI/180},d=function(t){var e=t.split(",")[0].replace(/'|"/g,"");return c[e]||f.averageFontConstant},y=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},v=function(t,e,n){var r=p(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},b=function(t,e){var n=t.match(/[a-zA-Z%]+/)[0],r=t.match(/[0-9.,]+/);return s.hasOwnProperty(n)?r*s[n]:l.hasOwnProperty(n)?(e?r*e:r*f.defaultFontSize)*l[n]:r},g=function(t,e){var n=Array.isArray(t)?t[e]:t,r=i()({},n,h);return u()({},r,{characterConstant:r.characterConstant||d(r.fontFamily),letterSpacing:b(r.letterSpacing,r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:b(String(r.fontSize))})},m=function(t,e){var n=y(t).map(function(t,n){var r=t.toString().length,a=g(e,n);return r*a.fontSize/a.characterConstant+a.letterSpacing*Math.max(r-1,0)});return Math.max.apply(Math,r(n))},_=function(t,e){return y(t).reduce(function(t,n,r){var a=g(e,r),i=a.fontSize*f.lineCapitalCoef,o=0===r?0:a.fontSize*f.lineSpaceHeightCoef;return t+a.lineHeight*(i+o)},0)},x=function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=_(t,e),a=m(t,e),i=n?v(a,r,n):a,o=n?v(r,a,n):r;return{width:i*f.widthOverlapCoef,height:o*f.heightOverlapCoef}};e.a={approximateTextSize:x,convertLengthToPixels:b}},function(t,e,n){"use strict";var r=n(30),a=n(16),i=n(55),o=n(92);e.a=function(){function t(t){var a,i,o,f=t.length,h=!1;for(null==c&&(l=s(o=Object(r.a)())),a=0;a<=f;++a)!(a<f&&u(i=t[a],a,t))===h&&((h=!h)?l.lineStart():l.lineEnd()),h&&l.point(+e(i,a,t),+n(i,a,t));if(o)return l=null,o+""||null}var e=o.a,n=o.b,u=Object(a.a)(!0),c=null,s=i.a,l=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Object(a.a)(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Object(a.a)(+e),t):n},t.defined=function(e){return arguments.length?(u="function"==typeof e?e:Object(a.a)(!!e),t):u},t.curve=function(e){return arguments.length?(s=e,null!=c&&(l=s(c)),t):s},t.context=function(e){return arguments.length?(null==e?c=l=null:l=s(c=e),t):c},t}},function(t,e,n){"use strict";function r(t){return t[0]}function a(t){return t[1]}e.a=r,e.b=a},function(t,e,n){"use strict";function r(t,e,n){var r=t._x1,a=t._y1,o=t._x2,u=t._y2;if(t._l01_a>i.f){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,a=(a*c-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>i.f){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/f,u=(u*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,a,o,u,t._x2,t._y2)}function a(t,e){this._context=t,this._alpha=e}e.b=r;var i=n(31),o=n(58);a.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:r(this,t,e)}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=e}},e.a=function t(e){function n(t){return e?new a(t,e):new o.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t){for(var e,n=0,r=-1,a=t.length;++r<a;)(e=+t[r][1])&&(n+=e);return n}e.b=r;var a=n(33);e.a=function(t){var e=t.map(r);return Object(a.a)(t).sort(function(t,n){return e[t]-e[n]})}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var a=n(115),i=n.n(a),o=n(72),u=n.n(o),c=n(6),s=n.n(c),l=n(135),f=n.n(l),h=n(151),p=n.n(h),d=n(352),y=n.n(d),v=n(4),b=n.n(v),g=n(2),m=n(3),_=n(96);e.a={getData:function(t){var e=void 0;if(t.data){if(t.data.length<1)return[];e=this.formatData(t.data,t)}else e=this.formatData(this.generateData(t),t);return this.addEventKeys(t,e)},generateDataArray:function(t,e){var n=t.domain&&Array.isArray(t.domain)?t.domain:t.domain&&t.domain[e],a=n||_.a.getBaseScale(t,e).domain(),i=t.samples||1,o=Math.max.apply(Math,r(a)),u=Math.min.apply(Math,r(a)),c=(o-u)/i,s=p()(u,o,c);return f()(s)===o?s:s.concat(o)},generateData:function(t){var e=this.generateDataArray(t,"x"),n=this.generateDataArray(t,"y");return e.map(function(t,e){return{x:t,y:n[e]}})},formatData:function(t,e,n){if(!Array.isArray(t))return[];n=n||{x:this.createStringMap(e,"x"),y:this.createStringMap(e,"y")};var r={x:g.a.createAccessor(void 0!==e.x?e.x:"x"),y:g.a.createAccessor(void 0!==e.y?e.y:"y"),y0:g.a.createAccessor(void 0!==e.y0?e.y0:"y0")},a=t.map(function(t,e){var a=void 0!==t._x?t._x:r.x(t),i=void 0!==t._y?t._y:r.y(t),o=void 0!==t._y0?t._y0:r.y0(t),u=void 0!==a?a:e,c=void 0!==i?i:t,s=void 0===o?{x:u,y:c}:{x:u,y:c,y0:o},l=void 0===o?{_x:u,_y:c}:{_x:u,_y:c,_y0:o};return b()(s,t,l,"string"==typeof u?{_x:n.x[u],xName:u}:{},"string"==typeof c?{_y:n.y[c],yName:c}:{},"string"==typeof o?{_y0:n.y[o],yName:o}:{})}),i=this.sortData(a,e.sortKey);return this.cleanData(i,e)},sortData:function(t,e){return e?("x"!==e&&"y"!==e||(e="_"+e),i()(t,e)):t},cleanData:function(t,e){var n={x:_.a.getScaleType(e,"x"),y:_.a.getScaleType(e,"y")};if("log"!==n.x&&"log"!==n.y)return t;var r=function(t,e){return"log"!==n[e]||0!==t["_"+e]};return t.filter(function(t){return r(t,"x")&&r(t,"y")&&r(t,"y0")})},getEventKey:function(t){return s()(t)?t:null===t||void 0===t?function(){}:u()(t)},addEventKeys:function(t,e){var n=this.getEventKey(t.eventKey);return e.map(function(t,e){var r=t.eventKey||n(t)||e;return b()({eventKey:r},t)})},createStringMap:function(t,e){var n=this.getStringsFromAxes(t,e),a=this.getStringsFromCategories(t,e),i=this.getStringsFromData(t,e),o=y()([].concat(r(n),r(a),r(i)));return 0===o.length?null:o.reduce(function(t,e,n){return t[e]=n+1,t},{})},getStringsFromData:function(t,e){if(!Array.isArray(t.data))return[];var n=void 0===t[e]?e:t[e],r=g.a.createAccessor(n);return t.data.map(function(t){return r(t)}).filter(function(t){return"string"==typeof t}).reduce(function(t,e){return void 0!==e&&null!==e&&-1===t.indexOf(e)&&t.push(e),t},[])},getStringsFromAxes:function(t,e){return t.tickValues&&(Array.isArray(t.tickValues)||t.tickValues[e])?(t.tickValues[e]||t.tickValues).filter(function(t){return"string"==typeof t}):[]},getStringsFromCategories:function(t,e){if(!t.categories)return[];var n=this.getCategories(t,e),r=n&&n.filter(function(t){return"string"==typeof t});return r?m.a.removeUndefined(r):[]},getCategories:function(t,e){return t.categories&&!Array.isArray(t.categories)?t.categories[e]:t.categories},downsample:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.length>e){var r=Math.pow(2,Math.ceil(Math.log2(t.length/e)));return t.filter(function(t,e){return(e+n)%r==0})}return t}}},function(t,e,n){"use strict";var r=n(6),a=n.n(r),i=n(168),o=n.n(i),u=n(2),c=n(3),s=n(356),l=["linear","time","log","sqrt"];e.a={getDefaultScale:function(){return s.scaleLinear()},toNewName:function(t){return"scale"+function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t)},validScale:function(t){return"function"==typeof t?a()(t.copy)&&a()(t.domain)&&a()(t.range):"string"==typeof t&&o()(l,t)},isScaleDefined:function(t,e){return!!t.scale&&(!t.scale.x&&!t.scale.y||!!t.scale[e])},getScaleTypeFromProps:function(t,e){if(this.isScaleDefined(t,e)){var n=t.scale[e]||t.scale;return"string"==typeof n?n:this.getType(n)}},getScaleFromProps:function(t,e){if(this.isScaleDefined(t,e)){var n=t.scale[e]||t.scale;return this.validScale(n)?a()(n)?n:s[this.toNewName(n)]():void 0}},getScaleTypeFromData:function(t,e){if(!t.data)return"linear";var n=u.a.createAccessor(t[e]),r=t.data.map(n);return c.a.containsDates(r)?"time":"linear"},getBaseScale:function(t,e){var n=this.getScaleFromProps(t,e);if(n)return n;var r=this.getScaleTypeFromData(t,e);return s[this.toNewName(r)]()},getType:function(t){var e=[{name:"log",method:"base"},{name:"ordinal",method:"unknown"},{name:"pow-sqrt",method:"exponent"},{name:"quantile",method:"quantiles"},{name:"quantize-threshold",method:"invertExtent"}],n=e.filter(function(e){return void 0!==t[e.method]})[0];return n?n.name:void 0},getScaleType:function(t,e){return this.getScaleTypeFromProps(t,e)||this.getScaleTypeFromData(t,e)}}},function(t,e,n){"use strict";var r=n(34);e.a=function(t,e,n){if(null==n&&(n=r.a),a=t.length){if((e=+e)<=0||a<2)return+n(t[0],0,t);if(e>=1)return+n(t[a-1],a-1,t);var a,i=(a-1)*e,o=Math.floor(i),u=+n(t[o],o,t);return u+(+n(t[o+1],o+1,t)-u)*(i-o)}}},function(t,e,n){"use strict";function r(){}function a(t,e){var n=new r;if(t instanceof r)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var a,i=-1,o=t.length;if(null==e)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e(a=t[i],i,t),a)}else if(t)for(var u in t)n.set(u,t[u]);return n}n.d(e,"b",function(){return i});var i="$";r.prototype=a.prototype={constructor:r,has:function(t){return i+t in this},get:function(t){return this[i+t]},set:function(t,e){return this[i+t]=e,this},remove:function(t){var e=i+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===i&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===i&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===i&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===i&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===i&&++t;return t},empty:function(){for(var t in this)if(t[0]===i)return!1;return!0},each:function(t){for(var e in this)e[0]===i&&t(this[e],e.slice(1),this)}},e.a=a},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}},function(t,e,n){"use strict";var r=(n(5),n(396));n.d(e,"c",function(){return r.a}),n.d(e,"m",function(){return r.a});var a=n(397);n.d(e,"g",function(){return a.a}),n.d(e,"q",function(){return a.a});var i=n(398);n.d(e,"d",function(){return i.a});var o=n(399);n.d(e,"b",function(){return o.a});var u=n(400);n.d(e,"a",function(){return u.a});var c=n(401);n.d(e,"i",function(){return c.b}),n.d(e,"h",function(){return c.b}),n.d(e,"e",function(){return c.a});var s=n(402);n.d(e,"f",function(){return s.a});var l=n(403);n.d(e,"j",function(){return l.a});var f=n(404);n.d(e,"n",function(){return f.a});var h=n(405);n.d(e,"l",function(){return h.a});var p=n(406);n.d(e,"k",function(){return p.a});var d=n(407);n.d(e,"s",function(){return d.b}),n.d(e,"r",function(){return d.b}),n.d(e,"o",function(){return d.a});var y=n(408);n.d(e,"p",function(){return y.a});var v=n(409);n.d(e,"t",function(){return v.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return u});var r,a,i,o,u,c=n(191);!function(t){r=Object(c.a)(t),a=r.format,i=r.parse,o=r.utcFormat,u=r.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})},function(t,e,n){function r(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,u=i(r.length-e,0),c=Array(u);++o<u;)c[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(c),a(t,this,s)}}var a=n(39),i=Math.max;t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t,e,n,r,O,w,j,M){var k=e&v;if(!k&&"function"!=typeof t)throw new TypeError(d);var T=r?r.length:0;if(T||(e&=~(m|_),r=O=void 0),j=void 0===j?j:x(p(j),0),M=void 0===M?M:p(M),T-=O?O.length:0,e&_){var A=r,P=O;r=O=void 0}var E=k?void 0:s(t),C=[t,e,n,r,O,A,P,w,j,M];if(E&&l(C,E),t=C[0],e=C[1],n=C[2],r=C[3],O=C[4],M=C[9]=void 0===C[9]?k?0:t.length:x(C[9]-T,0),!M&&e&(b|g)&&(e&=~(b|g)),e&&e!=y)S=e==b||e==g?o(t,e,M):e!=m&&e!=(y|m)||O.length?u.apply(void 0,C):c(t,e,n,r);else var S=i(t,e,n);return h((E?a:f)(S,C),t,e)}var a=n(195),i=n(196),o=n(199),u=n(107),c=n(205),s=n(206),l=n(207),f=n(109),h=n(110),p=n(112),d="Expected a function",y=1,v=2,b=8,g=16,m=32,_=64,x=Math.max;t.exports=r},function(t,e,n){var r=n(9),a=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(a)return a(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t,e,n){function r(t,e,n,m,_,x,O,w,j,M){function k(){for(var p=arguments.length,d=Array(p),y=p;y--;)d[y]=arguments[y];if(E)var v=s(k),b=o(d,v);if(m&&(d=a(d,m,_,E)),x&&(d=i(d,x,O,E)),p-=b,E&&p<M){var g=f(d,v);return c(t,e,r,k.placeholder,n,d,g,w,j,M-p)}var N=A?n:this,R=P?N[t]:t;return p=d.length,w?d=l(d,w):C&&p>1&&d.reverse(),T&&j<p&&(d.length=j),this&&this!==h&&this instanceof k&&(R=S||u(R)),R.apply(N,d)}var T=e&b,A=e&p,P=e&d,E=e&(y|v),C=e&g,S=P?void 0:u(t);return k}var a=n(200),i=n(201),o=n(202),u=n(40),c=n(108),s=n(41),l=n(204),f=n(42),h=n(14),p=1,d=2,y=8,v=16,b=128,g=512;t.exports=r},function(t,e,n){function r(t,e,n,r,p,d,y,v,b,g){var m=e&l,_=m?y:void 0,x=m?void 0:y,O=m?d:void 0,w=m?void 0:d;e|=m?f:h,(e&=~(m?h:f))&s||(e&=~(u|c));var j=[t,e,p,O,_,w,x,v,b,g],M=n.apply(void 0,j);return a(t)&&i(M,j),M.placeholder=r,o(M,t,e)}var a=n(203),i=n(109),o=n(110),u=1,c=2,s=4,l=8,f=32,h=64;t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){"use strict";var r=(n(114),n(134));n.d(e,"f",function(){return r.a});var a=n(82);n.d(e,"g",function(){return a.a});var i=(n(142),n(296),n(302),n(89));n.d(e,"h",function(){return i.a});var o=(n(305),n(317),n(84),n(138),n(318),n(319),n(345),n(346),n(148),n(347),n(348),n(349),n(150),n(350));n.d(e,"d",function(){return o.a});var u=(n(351),n(152),n(149));n.d(e,"i",function(){return u.a});var c=(n(3),n(95));n.d(e,"a",function(){return c.a});var s=(n(420),n(421),n(88),n(2));n.d(e,"b",function(){return s.a});var l=(n(86),n(53),n(15));n.d(e,"c",function(){return l.a});var f=(n(96),n(424),n(87));n.d(e,"e",function(){return f.a});n(90),n(28),n(144)},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(0),c=n.n(u),s=n(1),l=n.n(s),f=n(208),h=n(219),p=n(28),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(t){a(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={data:Array.isArray(n.props.data)?n.props.data[0]:n.props.data,animationInfo:{progress:0,animating:!1}},n.interpolator=null,n.queue=Array.isArray(n.props.data)?n.props.data.slice(1):[],n.ease=f[n.toNewName(n.props.easing)],n.functionToBeRunEachFrame=n.functionToBeRunEachFrame.bind(n),n.getTimer=n.getTimer.bind(n),n}return o(e,t),d(e,[{key:"componentDidMount",value:function(){this.queue.length&&this.traverseQueue()}},{key:"componentWillReceiveProps",value:function(t){if(this.getTimer().unsubscribe(this.loopID),Array.isArray(t.data)){var e;(e=this.queue).push.apply(e,r(t.data))}else this.queue.length=0,this.queue.push(t.data);this.traverseQueue()}},{key:"componentWillUnmount",value:function(){this.loopID?this.getTimer().unsubscribe(this.loopID):this.getTimer().stop()}},{key:"getTimer",value:function(){return this.context.getTimer?this.context.getTimer():(this.timer||(this.timer=new p.a),this.timer)}},{key:"toNewName",value:function(t){return"ease"+function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t)}},{key:"traverseQueue",value:function(){var t=this;if(this.queue.length){var e=this.queue[0];this.interpolator=Object(h.a)(this.state.data,e),this.props.delay?setTimeout(function(){t.loopID=t.getTimer().subscribe(t.functionToBeRunEachFrame,t.props.duration)},this.props.delay):this.loopID=this.getTimer().subscribe(this.functionToBeRunEachFrame,this.props.duration)}else this.props.onEnd&&this.props.onEnd()}},{key:"functionToBeRunEachFrame",value:function(t,e){e=void 0!==e?e:this.props.duration;var n=e?t/e:1;if(n>=1)return this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1}}),this.loopID&&this.getTimer().unsubscribe(this.loopID),this.queue.shift(),void this.traverseQueue();this.setState({data:this.interpolator(this.ease(n)),animationInfo:{progress:n,animating:n<1}})}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}]),e}(c.a.Component);y.displayName="VictoryAnimation",y.propTypes={children:l.a.func,data:l.a.oneOfType([l.a.object,l.a.array]),delay:l.a.number,duration:l.a.number,easing:l.a.oneOf(["back","backIn","backOut","backInOut","bounce","bounceIn","bounceOut","bounceInOut","circle","circleIn","circleOut","circleInOut","linear","linearIn","linearOut","linearInOut","cubic","cubicIn","cubicOut","cubicInOut","elastic","elasticIn","elasticOut","elasticInOut","exp","expIn","expOut","expInOut","poly","polyIn","polyOut","polyInOut","quad","quadIn","quadOut","quadInOut","sin","sinIn","sinOut","sinInOut"]),onEnd:l.a.func},y.defaultProps={data:{},delay:0,duration:1e3,easing:"quadInOut"},y.contextTypes={getTimer:l.a.func},e.a=y},function(t,e,n){var r=n(116),a=n(223),i=n(18),o=n(73),u=i(function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),a(t,r(e,1),[])});t.exports=u},function(t,e,n){function r(t,e,n,o,u){var c=-1,s=t.length;for(n||(n=i),u||(u=[]);++c<s;){var l=t[c];e>0&&n(l)?e>1?r(l,e-1,n,o,u):a(u,l):o||(u[u.length]=l)}return u}var a=n(220),i=n(221);t.exports=r},function(t,e){function n(t){return a.call(t)}var r=Object.prototype,a=r.toString;t.exports=n},function(t,e,n){function r(t){return t===t&&!a(t)}var a=n(9);t.exports=r},function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t,e){return null!=t&&i(t,e,a)}var a=n(242),i=n(243);t.exports=r},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e){function n(t){return a.call(t)}var r=Object.prototype,a=r.toString;t.exports=n},function(t,e,n){var r=n(45),a=r(Object.getPrototypeOf,Object);t.exports=a},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a});var r=Math.PI/180,a=180/Math.PI},function(t,e,n){"use strict";function r(t){return function(e){var n,r,i=e.length,o=new Array(i),u=new Array(i),c=new Array(i);for(n=0;n<i;++n)r=Object(a.f)(e[n]),o[n]=r.r||0,u[n]=r.g||0,c[n]=r.b||0;return o=t(o),u=t(u),c=t(c),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=c(t),r+""}}}var a=n(13),i=n(77),o=n(128),u=n(27);e.a=function t(e){function n(t,e){var n=r((t=Object(a.f)(t)).r,(e=Object(a.f)(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),c=Object(u.a)(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=c(e),t+""}}var r=Object(u.b)(e);return n.gamma=t,n}(1);r(i.b),r(o.a)},function(t,e,n){"use strict";var r=n(77);e.a=function(t){var e=t.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*e),i=t[(a+e-1)%e],o=t[a%e],u=t[(a+1)%e],c=t[(a+2)%e];return Object(r.a)((n-a/e)*e,i,o,u,c)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(74);e.a=function(t,e){var n,a=e?e.length:0,i=t?Math.min(a,t.length):0,o=new Array(a),u=new Array(a);for(n=0;n<i;++n)o[n]=Object(r.a)(t[n],e[n]);for(;n<a;++n)u[n]=e[n];return function(t){for(n=0;n<i;++n)u[n]=o[n](t);return u}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(74);e.a=function(t,e){var n,a={},i={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?a[n]=Object(r.a)(t[n],e[n]):i[n]=e[n];return function(t){for(n in a)i[n]=a[n](t);return i}}},function(t,e,n){"use strict";function r(t){return function(){return t}}function a(t){return function(e){return t(e)+""}}var i=n(48),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u=new RegExp(o.source,"g");e.a=function(t,e){var n,c,s,l=o.lastIndex=u.lastIndex=0,f=-1,h=[],p=[];for(t+="",e+="";(n=o.exec(t))&&(c=u.exec(e));)(s=c.index)>l&&(s=e.slice(l,s),h[f]?h[f]+=s:h[++f]=s),(n=n[0])===(c=c[0])?h[f]?h[f]+=c:h[++f]=c:(h[++f]=null,p.push({i:f,x:Object(i.a)(n,c)})),l=u.lastIndex;return l<e.length&&(s=e.slice(l),h[f]?h[f]+=s:h[++f]=s),h.length<2?p[0]?a(p[0].x):r(e):(e=p.length,function(t){for(var n,r=0;r<e;++r)h[(n=p[r]).i]=n.x(t);return h.join("")})}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(9),u=n.n(o),c=n(265),s=n.n(c),l=n(7),f=n.n(l),h=n(51),p=n.n(h),d=n(4),y=n.n(d),v=n(0),b=n.n(v),g=n(1),m=n.n(g),_=n(138),x=n(28),O=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},w=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),j=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.getTimer=n.getTimer.bind(n),n.containerId=u()(t)&&void 0===t.containerId?t.containerId:s()("victory-container-"),n}return i(e,t),w(e,[{key:"getChildContext",value:function(){return{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister,getTimer:this.getTimer}}},{key:"componentWillMount",value:function(){var t=this;this.savePortalRef=function(e){return t.portalRef=e,e},this.portalUpdate=function(e,n){return t.portalRef.portalUpdate(e,n)},this.portalRegister=function(){return t.portalRef.portalRegister()},this.portalDeregister=function(e){return t.portalRef.portalDeregister(e)}}},{key:"componentWillUnmount",value:function(){this.context.getTimer||this.getTimer().stop()}},{key:"getTimer",value:function(){return this.context.getTimer?this.context.getTimer():(this.timer||(this.timer=new x.a),this.timer)}},{key:"getIdForElement",value:function(t){return this.containerId+"-"+t}},{key:"getChildren",value:function(t){return t.children}},{key:"renderContainer",value:function(t,e,n){var r=t.title,a=t.desc,i=t.portalComponent,o=t.className,u=this.getChildren(t),c=f()({style:n,className:o},e);return b.a.createElement("svg",O({},c,{overflow:"visible"}),b.a.createElement("svg",c,u),r?b.a.createElement("title",{id:this.getIdForElement("title")},r):null,a?b.a.createElement("desc",{id:this.getIdForElement("desc")},a):null,b.a.cloneElement(i,{ref:this.savePortalRef}))}},{key:"render",value:function(){var t=this.props,e=t.width,n=t.height,r=t.responsive,a=t.events,i=r?this.props.style:p()(this.props.style,["height","width"]),o=f()({},i,{touchAction:"none"}),u=y()({width:e,height:n,role:"img","aria-labelledby":this.getIdForElement("title")+" "+this.getIdForElement("desc"),viewBox:r?"0 0 "+e+" "+n:void 0},a);return this.renderContainer(this.props,u,o)}}]),e}(b.a.Component);j.displayName="VictoryContainer",j.role="container",j.propTypes={children:m.a.oneOfType([m.a.arrayOf(m.a.node),m.a.node]),className:m.a.string,containerId:m.a.oneOfType([m.a.number,m.a.string]),desc:m.a.string,events:m.a.object,height:m.a.number,origin:m.a.shape({x:m.a.number,y:m.a.number}),polar:m.a.bool,portalComponent:m.a.element,responsive:m.a.bool,style:m.a.object,theme:m.a.object,title:m.a.string,width:m.a.number},j.defaultProps={portalComponent:b.a.createElement(_.a,null),responsive:!0},j.contextTypes={getTimer:m.a.func},j.childContextTypes={portalUpdate:m.a.func,portalRegister:m.a.func,portalDeregister:m.a.func,getTimer:m.a.func},e.a=j},function(t,e){function n(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}t.exports=n},function(t,e,n){function r(t){return o(i(t,void 0,a),t+"")}var a=n(137),i=n(103),o=n(104);t.exports=r},function(t,e,n){function r(t){return(null==t?0:t.length)?a(t,1):[]}var a=n(116);t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(0),u=n.n(o),c=n(1),s=n.n(c),l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.map={},n.index=1,n.portalUpdate=n.portalUpdate.bind(n),n.portalRegister=n.portalRegister.bind(n),n.portalDeregister=n.portalDeregister.bind(n),n}return i(e,t),l(e,[{key:"portalRegister",value:function(){return++this.index}},{key:"portalUpdate",value:function(t,e){this.map[t]=e,this.forceUpdate()}},{key:"portalDeregister",value:function(t){delete this.map[t]}},{key:"render",value:function(){var t=this;return u.a.cloneElement(this.props.groupComponent,{},Object.keys(this.map).map(function(e){var n=t.map[e];return n?u.a.cloneElement(n,{key:e}):n}))}}]),e}(u.a.Component);f.displayName="Portal",f.propTypes={groupComponent:s.a.element},f.defaultProps={groupComponent:u.a.createElement("g",null)},e.a=f},function(t,e,n){function r(t,e,n){(void 0===n||i(t[e],n))&&(void 0!==n||e in t)||a(t,e,n)}var a=n(80),i=n(24);t.exports=r},function(t,e,n){function r(t){return i(t)&&a(t)}var a=n(52),i=n(70);t.exports=r},function(t,e,n){function r(t,e){return a(t,e)}var a=n(64);t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(9),u=n.n(o),c=n(143),s=n.n(c),l=n(6),f=n.n(l),h=n(7),p=n.n(h),d=n(0),y=n.n(d),v=n(1),b=n.n(v),g=n(114),m=n(3),_=n(2),x=n(28),O=n(144),w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),M=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));n.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var i=n.props.children,o=i.props.polar;return n.continuous=!o&&i.type&&!0===i.type.continuous,n.getTransitionState=n.getTransitionState.bind(n),n.getTimer=n.getTimer.bind(n),n}return i(e,t),j(e,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"componentWillReceiveProps",value:function(t){var e=this;this.getTimer().bypassAnimation(),this.setState(this.getTransitionState(this.props,t),function(){return e.getTimer().resumeAnimation()})}},{key:"componentWillUnmount",value:function(){this.getTimer().stop()}},{key:"getTimer",value:function(){return this.context.getTimer?this.context.getTimer():(this.timer||(this.timer=new x.a),this.timer)}},{key:"getTransitionState",value:function(t,e){var n=t.animate;if(n){if(n.parentState){return{oldProps:n.parentState.nodesWillExit?t:null,nextProps:e}}var r=y.a.Children.toArray(t.children),a=y.a.Children.toArray(e.children),i=O.a.getInitialTransitionState(r,a),o=i.nodesWillExit;return{nodesWillExit:o,nodesWillEnter:i.nodesWillEnter,childrenTransitions:i.childrenTransitions,nodesShouldEnter:i.nodesShouldEnter,oldProps:o?t:null,nextProps:e}}return{}}},{key:"getDomainFromChildren",value:function(t,e){var n=function(t){return t.reduce(function(t,r){if(r.type&&f()(r.type.getDomain)){var a=r.props&&r.type.getDomain(r.props,e);return a?t.concat(a):t}return r.props&&r.props.children?t.concat(n(y.a.Children.toArray(r.props.children))):t},[])},r=y.a.Children.toArray(t.children)[0],a=r.props||{},i=Array.isArray(a.domain)?a.domain:a.domain&&a.domain[e];if(!a.children&&i)return i;var o=n([r]);return 0===o.length?[0,1]:[m.a.getMinValue(o),m.a.getMaxValue(o)]}},{key:"pickProps",value:function(){return this.state&&this.state.nodesWillExit?this.state.oldProps||this.props:this.props}},{key:"pickDomainProps",value:function(t){var e=u()(t.animate)&&t.animate.parentState;return e&&e.nodesWillExit?this.continous||e.continuous?e.nextProps||this.state.nextProps||t:t:this.continuous&&this.state.nodesWillExit?this.state.nextProps||t:t}},{key:"getClipWidth",value:function(t,e){var n=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==n?n:function(){var n=_.a.getRange(e.props,"x");return n?Math.abs(n[1]-n[0]):t.width}()}},{key:"render",value:function(){var t=this,e=this.pickProps(),n=u()(this.props.animate)&&this.props.animate.getTransitions?this.props.animate.getTransitions:O.a.getTransitionPropsFactory(e,this.state,function(e){return t.setState(e)}),r=y.a.Children.toArray(e.children)[0],a=n(r);this.transitionProps=a;var i={x:this.getDomainFromChildren(this.pickDomainProps(e),"x"),y:this.getDomainFromChildren(e,"y")},o=this.getClipWidth(e,r),c=p()({domain:i,clipWidth:o},a,r.props),l=e.animationWhitelist||[],f=l.concat(["clipWidth"]),h=f.length?s()(c,f):c;return y.a.createElement(g.a,w({},c.animate,{data:h}),function(e){if(r.props.groupComponent){var n=t.continuous?y.a.cloneElement(r.props.groupComponent,{clipWidth:e.clipWidth||0}):r.props.groupComponent;return y.a.cloneElement(r,p()({animate:null,animating:!0,groupComponent:n},e,c))}return y.a.cloneElement(r,p()({animate:null,animating:!0},e,c))})}}]),e}(y.a.Component);M.displayName="VictoryTransition",M.propTypes={animate:b.a.oneOfType([b.a.bool,b.a.object]),animationWhitelist:b.a.array,children:b.a.node},e.a=M},function(t,e,n){var r=n(293),a=n(136),i=a(function(t,e){return null==t?{}:r(t,e)});t.exports=i},function(t,e,n){"use strict";function r(t,e){return(t.key||e).toString()}function a(t){return t.reduce(function(t,e,n){return t[r(e,n)]=e,t},{})}function i(t,e){var n=!1,r=Object.keys(t).reduce(function(t,r){return r in e||(n=!0,t[r]=!0),t},{});return n&&r}function o(t,e){var n=t&&a(t),r=e&&a(e);return{entering:n&&i(r,n),exiting:r&&i(n,r)}}function u(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function c(t,e){var n=!1,r=!1,a=function(t,e){if(!e||t.type!==e.type)return{};var a=o(u(t),u(e))||{},i=a.entering,c=a.exiting;return n=n||!!c,r=r||!!i,{entering:i||!1,exiting:c||!1}},i=function(t,e){return t.map(function(n,r){return n&&n.props&&n.props.children?i(w.a.Children.toArray(t[r].props.children),w.a.Children.toArray(e[r].props.children)):a(n,e[r])})},c=i(w.a.Children.toArray(t),w.a.Children.toArray(e));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:c,nodesShouldEnter:!1}}function s(t,e){var n=t.onEnter&&t.onEnter.after?t.onEnter.after:b.a;return{data:e.map(function(t,r){return x()({},t,n(t,r,e))})}}function l(t,e,n,r){if((t=x()({},t,{onEnd:r}))&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:n};var a=t.onLoad&&t.onLoad.before?t.onLoad.before:b.a;return n=n.map(function(t,e){return x()({},t,a(t,e,n))}),{animate:t,data:n,clipWidth:0}}function f(t,e,n){if((t=x()({},t,{onEnd:n}))&&t.onLoad&&!t.onLoad.duration)return{animate:t,data:e};var r=t.onLoad&&t.onLoad.after?t.onLoad.after:b.a;return e=e.map(function(t,n){return x()({},t,r(t,n,e))}),{animate:t,data:e}}function h(t,e,n,r,a){var i=t&&t.onExit;if(t=x()({},t,i),r){t.onEnd=a;var o=t.onExit&&t.onExit.before?t.onExit.before:b.a;n=n.map(function(t,e){var a=(t.key||e).toString();return r[a]?x()({},t,o(t,e,n)):t})}return{animate:t,data:n}}function p(t,e,n,r,a){if(r){t=x()({},t,{onEnd:a});var i=t.onEnter&&t.onEnter.before?t.onEnter.before:b.a;n=n.map(function(t,e){var a=(t.key||e).toString();return r[a]?x()({},t,i(t,e,n)):t})}return{animate:t,data:n}}function d(t,e,n,a){var i=t&&t.onEnter;if(t=x()({},t,i),n){t.onEnd=a;var o=t.onEnter&&t.onEnter.after?t.onEnter.after:b.a;e=e.map(function(t,a){var i=r(t,a);return n[i]?x()({},t,o(t,a,e)):t})}return{animate:t,data:e}}function y(t,e,n){var r=e&&e.nodesWillExit,a=e&&e.nodesWillEnter,i=e&&e.nodesShouldEnter,o=e&&e.nodesShouldLoad,c=e&&e.nodesDoneLoad,y=e&&e.childrenTransitions||[],v={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},b=function(t,e,r){return o?f(r,e,function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):l(r,t,e,function(){n({nodesDoneLoad:!0})})},g=function(t,e,r,a){return h(a,e,r,t,function(){n({nodesWillExit:!1})})},_=function(t,e,r,a){return i?d(a,r,t,function(){n({nodesWillEnter:!1})}):p(a,e,r,t,function(){n({nodesShouldEnter:!0})})},O=function(t,e){var n=t.props.animate;if(!t.type)return{};var r=t.props&&t.props.polar?t.type.defaultPolarTransitions||t.type.defaultTransitions:t.type.defaultTransitions;if(r){var a=n[e]&&n[e].duration;return void 0!==a?a:r[e]&&r[e].duration}return{}};return function(n,o){var l=u(n)||[],f=m()({},t.animate,n.props.animate),h=n.props.polar?n.type.defaultPolarTransitions||n.type.defaultTransitions:n.type.defaultTransitions;f.onExit=m()({},f.onExit,h&&h.onExit),f.onEnter=m()({},f.onEnter,h&&h.onEnter),f.onLoad=m()({},f.onLoad,h&&h.onLoad);var p=y[o]||y[0];if(!c){var d=void 0!==v.load?v.load:O(n,"onLoad"),w={duration:d};return b(n,l,x()({},f,w))}if(r){var j=p&&p.exiting,M=void 0!==v.exit?v.exit:O(n,"onExit"),k=j?{duration:M}:{delay:M};return g(j,n,l,x()({},f,k))}if(a){var T=p&&p.entering,A=void 0!==v.enter?v.enter:O(n,"onEnter"),P=void 0!==v.move?v.move:n.props.animate&&n.props.animate.duration,E={duration:i&&T?A:P};return _(T,n,l,x()({},f,E))}return!e&&f&&f.onExit?s(f,l):{animate:f,data:l}}}var v=n(38),b=n.n(v),g=n(7),m=n.n(g),_=n(4),x=n.n(_),O=n(0),w=n.n(O);e.a={getInitialTransitionState:c,getTransitionPropsFactory:y}},function(t,e,n){var r=n(298),a=n(18),i=n(140),o=a(function(t,e){return i(t)?r(t,e):[]});t.exports=o},function(t,e,n){function r(t,e){return!!(null==t?0:t.length)&&a(t,e,0)>-1}var a=n(67);t.exports=r},function(t,e){function n(t,e,n){for(var r=-1,a=null==t?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1}t.exports=n},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(0),u=n.n(o),c=n(1),s=n.n(c),l=n(15),f=n(2),h=n(3),p=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),d=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),p(e,[{key:"componentWillMount",value:function(){Object.assign(this,this.calculateAttributes(this.props))}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=this.props,r=n.className,a=n.clipId,i=n.clipWidth,o=n.translateX,u=n.translateY;return!h.a.allSetsEqual([[r,t.className],[a,t.clipId],[i,t.clipWidth],[o,t.translateX],[u,t.translateY],[this.x,e.x],[this.y,e.y],[this.height,e.height],[this.width,e.width]])&&(Object.assign(this,e),!0)}},{key:"calculateAttributes",value:function(t){var e=t.polar,n=t.origin,r=t.clipWidth,a=void 0===r?0:r,i=t.clipHeight,o=void 0===i?0:i,u=t.translateX,c=void 0===u?0:u,s=t.translateY,l=void 0===s?0:s,h=f.a.getPadding({padding:t.clipPadding}),p=t.radius||f.a.getRadius(t);return{x:(e?n.x:c)-h.left,y:(e?n.y:l)-h.top,width:Math.max((e?p:a)+h.left+h.right,0),height:Math.max((e?p:o)+h.top+h.bottom,0)}}},{key:"renderClipPath",value:function(t,e){return u.a.createElement("defs",null,u.a.createElement("clipPath",{id:e},u.a.createElement("rect",t)))}},{key:"renderPolarClipPath",value:function(t,e){return u.a.createElement("defs",null,u.a.createElement("clipPath",{id:e},u.a.createElement("circle",t)))}},{key:"render",value:function(){var t=this.props,e=t.clipId,n=t.className,r=t.polar,a=r?{className:n,cx:this.x,cy:this.y,r:Math.max(this.width,this.height)}:{className:n,x:this.x,y:this.y,width:this.width,height:this.height};return r?this.renderPolarClipPath(a,e):this.renderClipPath(a,e)}}]),e}(u.a.Component);d.propTypes={className:s.a.string,clipHeight:l.a.nonNegative,clipId:s.a.number,clipPadding:s.a.oneOfType([s.a.number,s.a.shape({top:s.a.number,bottom:s.a.number,left:s.a.number,right:s.a.number})]),clipWidth:l.a.nonNegative,origin:s.a.shape({x:s.a.number,y:s.a.number}),polar:s.a.bool,radius:s.a.number,translateX:s.a.number,translateY:s.a.number},e.a=d},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(85),c=n.n(u),s=n(145),l=n.n(s),f=n(143),h=n.n(f),p=n(37),d=n.n(p),y=n(6),v=n.n(y),b=n(25),g=n.n(b),m=n(4),_=n.n(m),x=n(7),O=n.n(x),w=n(0),j=n.n(w),M=n(88),k=n(3),T=n(142),A=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),P=function t(e,n,r){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,n);if(void 0===a){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in a)return a.value;var o=a.get;if(void 0!==o)return o.call(r)},E=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];e.a=function(t,e){return function(n){function u(){return a(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return o(u,n),A(u,[{key:"componentWillMount",value:function(){v()(P(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"componentWillMount",this))&&P(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"componentWillMount",this).call(this),this.state=this.state||{};var t=M.a.getScopedEvents.bind(this);this.getEvents=d()(M.a.getEvents.bind(this),t),this.getEventState=M.a.getEventState.bind(this);var e=this.getCalculatedValues(this.props);this.cacheValues(e),this.stateChanges=this.getStateChanges(this.props,e)}},{key:"shouldComponentUpdate",value:function(t){var e=this.getCalculatedValues(t);if(this.props.animate||this.props.animating)return this.cacheValues(e),!0;var n=this.getStateChanges(t,e);return k.a.areVictoryPropsEqual(this.calculatedState,n)?!k.a.areVictoryPropsEqual(this.props,t)&&(this.cacheValues(e),!0):(this.cacheValues(e),this.calculatedState=n,!0)}},{key:"getStateChanges",value:function(t,n){var r=this,a=n.hasEvents,i=n.getSharedEventState;if(!a)return{};var o=function(t,e){var n=O()({},r.getEventState(t,e),i(t,e));return c()(n)?void 0:n};return e=e||{},(e.components||E).map(function(e){return t.standalone||"parent"!==e.name?void 0!==e.index?o(e.index,e.name):n.dataKeys.map(function(t){return o(t,e.name)}):void 0}).filter(Boolean)}},{key:"getCalculatedValues",value:function(e){var n=e.sharedEvents,r=t.expectedComponents,a=M.a.getComponentEvents(e,r),i=n&&v()(n.getEventState)?n.getEventState:function(){},o=this.getBaseProps(e,i);return{componentEvents:a,getSharedEventState:i,baseProps:o,dataKeys:g()(o).filter(function(t){return"parent"!==t}),hasEvents:e.events||e.sharedEvents||a,events:this.getAllEvents(e)}}},{key:"cacheValues",value:function(t){var e=this;g()(t).forEach(function(n){e[n]=t[n]})}},{key:"getBaseProps",value:function(e,n){n=n||this.getSharedEventState;var r=n("parent","parent"),a=this.getEventState("parent","parent"),i=O()({},a,r),o=i.parentControlledProps,u=o?h()(i,o):{},c=O()({},u,e);return v()(t.getBaseProps)?t.getBaseProps(c):{}}},{key:"getAllEvents",value:function(t){if(Array.isArray(this.componentEvents)){var e;return Array.isArray(t.events)?(e=this.componentEvents).concat.apply(e,r(t.events)):this.componentEvents}return t.events}},{key:"getComponentProps",value:function(e,n,r){var a=t.role,i=this.dataKeys&&this.dataKeys[r]||r,o=this.baseProps[i][n]||this.baseProps[i];if(o||this.hasEvents){if(this.hasEvents){var u=this.getEvents(this.props,n,i),c=O()({index:r,key:a+"-"+n+"-"+i},this.getEventState(i,n),this.getSharedEventState(i,n),e.props,o),s=O()({},M.a.getPartialEvents(u,i,c),c.events);return _()({},c,{events:s})}return O()({index:r,key:a+"-"+n+"-"+i},e.props,o)}}},{key:"renderContainer",value:function(t,e){var n=t.type&&"container"===t.type.role,r=n?this.getComponentProps(t,"parent","parent"):{};return j.a.cloneElement(t,r,e)}},{key:"animateComponent",value:function(t,e){return j.a.createElement(T.a,{animate:t.animate,animationWhitelist:e},j.a.createElement(this.constructor,t))}},{key:"renderContinuousData",value:function(t){var e=this,n=t.dataComponent,a=t.labelComponent,i=t.groupComponent,o=l()(this.dataKeys,"all"),u=o.reduce(function(t,n){var r=e.getComponentProps(a,"labels",n);return r&&void 0!==r.text&&null!==r.text&&(t=t.concat(j.a.cloneElement(a,r))),t},[]),c=this.getComponentProps(n,"data","all"),s=[j.a.cloneElement(n,c)].concat(r(u));return this.renderContainer(i,s)}},{key:"renderData",value:function(t){var e=this,n=t.dataComponent,a=t.labelComponent,i=t.groupComponent,o=this.dataKeys.map(function(t,r){var a=e.getComponentProps(n,"data",r);return j.a.cloneElement(n,a)}),u=this.dataKeys.map(function(t,n){var r=e.getComponentProps(a,"labels",n);if(void 0!==r.text&&null!==r.text)return j.a.cloneElement(a,r)}).filter(Boolean),c=[].concat(r(o),r(u));return this.renderContainer(i,c)}}]),u}(t)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(0),u=n.n(o),c=n(1),s=n.n(c),l=n(2),f=n(3),h=n(312),p=n(8),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),y(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.datum,u=a.x,c=a.y,s=a.size,l=a.symbol;return!f.a.allSetsEqual([[i,t.className],[u,t.x],[c,t.y],[s,t.size],[l,t.symbol],[r,this.path],[n,this.style],[o,t.datum]])&&(this.style=n,this.path=r,!0)}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.datum,r=t.active;return{style:l.a.evaluateStyle(e,n,r),path:this.getPath(t)}}},{key:"getPath",value:function(t){var e=t.datum,n=t.active,r=t.x,a=t.y,i={circle:h.a.circle,square:h.a.square,diamond:h.a.diamond,triangleDown:h.a.triangleDown,triangleUp:h.a.triangleUp,plus:h.a.plus,star:h.a.star},o=l.a.evaluateProp(t.symbol,e,n),u=l.a.evaluateProp(t.size,e,n);return i[o].call(null,r,a,u)}},{key:"renderPoint",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className;return u.a.createElement("path",d({},n,{d:t,className:o,role:a||"presentation",shapeRendering:i||"auto",style:e}))}},{key:"render",value:function(){return this.renderPoint(this.path,this.style,this.props.events)}}]),e}(u.a.Component);v.propTypes=d({},p.a,{datum:s.a.object,size:s.a.oneOfType([s.a.number,s.a.func]),symbol:s.a.oneOfType([s.a.oneOf(["circle","diamond","plus","square","star","triangleDown","triangleUp"]),s.a.func]),x:s.a.number,y:s.a.number}),e.a=v},function(t,e,n){var r=n(313),a=r();t.exports=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(0),u=n.n(o),c=n(1),s=n.n(c),l=n(2),f=n(3),h=n(8),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),d(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.cornerRadius,u=a.datum,c=a.dx,s=a.dy,l=a.height,h=a.width,p=a.orientation,d=a.pointerLength,y=a.pointerWidth,v=a.x,b=a.y;return!f.a.allSetsEqual([[i,t.className],[o,t.cornerRadius],[c,t.dx],[s,t.dy],[v,t.x],[b,t.y],[l,t.height],[h,t.width],[p,t.orientation],[d,t.pointerLength],[y,t.pointerWidth],[r,this.path],[n,this.style],[u,t.datum]])&&(this.style=n,this.path=r,!0)}},{key:"calculateAttributes",value:function(t){var e=t.datum,n=t.active,r=t.style;return{style:l.a.evaluateStyle(r,e,n),path:this.getFlyoutPath(t)}}},{key:"getVerticalPath",value:function(t){var e=t.pointerLength,n=t.pointerWidth,r=t.cornerRadius,a=t.orientation,i=t.width,o=t.height,u="top"===a?1:-1,c=t.x+(t.dx||0),s=t.y-u*(t.dy||0),l=s-u*e,f=s-u*e-u*o,h=c+i/2,p=c-i/2,d="top"===a?"0 0 0":"0 0 1",y=Math.round(r)+" "+Math.round(r)+" "+d;return"M "+Math.round(c-n/2)+", "+Math.round(l)+"\n L "+Math.round(c)+", "+Math.round(s)+"\n L "+Math.round(c+n/2)+", "+Math.round(l)+"\n L "+Math.round(h-r)+", "+Math.round(l)+"\n A "+y+" "+Math.round(h)+", "+Math.round(l-u*r)+"\n L "+Math.round(h)+", "+Math.round(f+u*r)+"\n A "+y+" "+Math.round(h-r)+", "+Math.round(f)+"\n L "+Math.round(p+r)+", "+Math.round(f)+"\n A "+y+" "+Math.round(p)+", "+Math.round(f+u*r)+"\n L "+Math.round(p)+", "+Math.round(l-u*r)+"\n A "+y+" "+Math.round(p+r)+", "+Math.round(l)+"\n z"}},{key:"getHorizontalPath",value:function(t){var e=t.pointerLength,n=t.pointerWidth,r=t.cornerRadius,a=t.orientation,i=t.width,o=t.height,u="right"===a?1:-1,c=t.x+u*(t.dx||0),s=t.y-(t.dy||0),l=c+u*e,f=c+u*e+u*i,h=s+o/2,p=s-o/2,d="right"===a?"0 0 0":"0 0 1",y=Math.round(r)+" "+Math.round(r)+" "+d;return"M "+Math.round(l)+", "+Math.round(s-n/2)+"\n L "+Math.round(c)+", "+Math.round(s)+"\n L "+Math.round(l)+", "+Math.round(s+n/2)+"\n L "+Math.round(l)+", "+Math.round(h-r)+"\n A "+y+" "+Math.round(l+u*r)+", "+Math.round(h)+"\n L "+(f-u*r)+", "+h+"\n A "+y+" "+Math.round(f)+", "+Math.round(h-r)+"\n L "+f+", "+(p+r)+"\n A "+y+" "+Math.round(f-u*r)+", "+Math.round(p)+"\n L "+Math.round(l+u*r)+", "+Math.round(p)+"\n A "+y+" "+Math.round(l)+", "+Math.round(p+r)+"\n z"}},{key:"getFlyoutPath",value:function(t){var e=t.orientation||"top";return"left"===e||"right"===e?this.getHorizontalPath(t):this.getVerticalPath(t)}},{key:"renderFlyout",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className;return u.a.createElement("path",p({className:o,d:t,style:e,shapeRendering:i||"auto",role:a||"presentation"},n))}},{key:"render",value:function(){return this.renderFlyout(this.path,this.style,this.props.events)}}]),e}(u.a.Component);y.propTypes=p({},h.a,{cornerRadius:s.a.number,datum:s.a.object,dx:s.a.number,dy:s.a.number,height:s.a.number,orientation:s.a.oneOf(["top","bottom","left","right"]),pointerLength:s.a.number,pointerWidth:s.a.number,width:s.a.number,x:s.a.number,y:s.a.number}),e.a=y},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"e",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"b",function(){return u});var r=function(t){var e=void 0!==t._y1?t._y1:t._y;return null!==e&&void 0!==e&&null!==t._y0},a=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},i=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},o=function(t){return function(e){return t.y(e._y0)}},u=function(t){return function(e){return-1*t.x(void 0!==e._x1?e._x1:e._x)+Math.PI/2}}},function(t,e,n){"use strict";var r=n(30),a=n(16),i=n(55),o=n(91),u=n(92);e.a=function(){function t(t){var e,a,i,o,u,y=t.length,v=!1,b=new Array(y),g=new Array(y);for(null==h&&(d=p(u=Object(r.a)())),e=0;e<=y;++e){if(!(e<y&&f(o=t[e],e,t))===v)if(v=!v)a=e,d.areaStart(),d.lineStart();else{for(d.lineEnd(),d.lineStart(),i=e-1;i>=a;--i)d.point(b[i],g[i]);d.lineEnd(),d.areaEnd()}v&&(b[e]=+n(o,e,t),g[e]=+s(o,e,t),d.point(c?+c(o,e,t):b[e],l?+l(o,e,t):g[e]))}if(u)return d=null,u+""||null}function e(){return Object(o.a)().defined(f).curve(p).context(h)}var n=u.a,c=null,s=Object(a.a)(0),l=u.b,f=Object(a.a)(!0),h=null,p=i.a,d=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Object(a.a)(+e),c=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:Object(a.a)(+e),t):n},t.x1=function(e){return arguments.length?(c=null==e?null:"function"==typeof e?e:Object(a.a)(+e),t):c},t.y=function(e){return arguments.length?(s="function"==typeof e?e:Object(a.a)(+e),l=null,t):s},t.y0=function(e){return arguments.length?(s="function"==typeof e?e:Object(a.a)(+e),t):s},t.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:Object(a.a)(+e),t):l},t.lineX0=t.lineY0=function(){return e().x(n).y(s)},t.lineY1=function(){return e().x(n).y(l)},t.lineX1=function(){return e().x(c).y(s)},t.defined=function(e){return arguments.length?(f="function"==typeof e?e:Object(a.a)(!!e),t):f},t.curve=function(e){return arguments.length?(p=e,null!=h&&(d=p(h)),t):p},t.context=function(e){return arguments.length?(null==e?h=d=null:d=p(h=e),t):h},t}},function(t,e,n){"use strict";function r(t){this._curve=t}function a(t){function e(e){return new r(t(e))}return e._curve=t,e}n.d(e,"a",function(){return o}),e.b=a;var i=n(55),o=a(i.a);r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}}},function(t,e,n){"use strict";function r(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Object(a.b)(t)):e()._curve},t}e.b=r;var a=n(155),i=n(91);e.a=function(){return r(Object(i.a)().curve(a.a))}},function(t,e,n){"use strict";e.a=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.prototype.slice},function(t,e,n){"use strict";var r=n(31);e.a={draw:function(t,e){var n=Math.sqrt(e/r.j);t.moveTo(n,0),t.arc(0,0,n,0,r.m)}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},function(t,e,n){"use strict";var r=Math.sqrt(1/3),a=2*r;e.a={draw:function(t,e){var n=Math.sqrt(e/a),i=n*r;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}}},function(t,e,n){"use strict";var r=n(31),a=Math.sin(r.j/10)/Math.sin(7*r.j/10),i=Math.sin(r.m/10)*a,o=-Math.cos(r.m/10)*a;e.a={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),a=i*n,u=o*n;t.moveTo(0,-n),t.lineTo(a,u);for(var c=1;c<5;++c){var s=r.m*c/5,l=Math.cos(s),f=Math.sin(s);t.lineTo(f*n,-l*n),t.lineTo(l*a-f*u,f*a+l*u)}t.closePath()}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}}},function(t,e,n){"use strict";var r=Math.sqrt(3);e.a={draw:function(t,e){var n=-Math.sqrt(e/(3*r));t.moveTo(0,2*n),t.lineTo(-r*n,-n),t.lineTo(r*n,-n),t.closePath()}}},function(t,e,n){"use strict";var r=-.5,a=Math.sqrt(3)/2,i=1/Math.sqrt(12),o=3*(i/2+1);e.a={draw:function(t,e){var n=Math.sqrt(e/o),u=n/2,c=n*i,s=u,l=n*i+n,f=-s,h=l;t.moveTo(u,c),t.lineTo(s,l),t.lineTo(f,h),t.lineTo(r*u-a*c,a*u+r*c),t.lineTo(r*s-a*l,a*s+r*l),t.lineTo(r*f-a*h,a*f+r*h),t.lineTo(r*u+a*c,r*c-a*u),t.lineTo(r*s+a*l,r*l-a*s),t.lineTo(r*f+a*h,r*h-a*f),t.closePath()}}},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var a=n(56),i=n(58);r.prototype={areaStart:a.a,areaEnd:a.a,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(i.c)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.b=function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var a=n(58);r.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(a.c)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.b=function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){function r(t,e){return!!(null==t?0:t.length)&&a(t,e,0)>-1}var a=n(67);t.exports=r},function(t,e,n){"use strict";var r=n(22),a=n(170),i=Object(a.a)(r.a),o=i.right;i.left;e.a=o},function(t,e,n){"use strict";function r(t){return function(e,n){return Object(a.a)(t(e),n)}}var a=n(22);e.a=function(t){return 1===t.length&&(t=r(t)),{left:function(e,n,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r<a;){var i=r+a>>>1;t(e[i],n)<0?r=i+1:a=i}return r},right:function(e,n,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r<a;){var i=r+a>>>1;t(e[i],n)>0?a=i:r=i+1}return r}}}},function(t,e,n){"use strict";function r(t,e){return[t,e]}e.a=r},function(t,e,n){"use strict";var r=n(173);e.a=function(t,e){var n=Object(r.a)(t,e);return n?Math.sqrt(n):n}},function(t,e,n){"use strict";var r=n(34);e.a=function(t,e){var n,a,i=t.length,o=0,u=-1,c=0,s=0;if(null==e)for(;++u<i;)isNaN(n=Object(r.a)(t[u]))||(a=n-c,c+=a/++o,s+=a*(n-c));else for(;++u<i;)isNaN(n=Object(r.a)(e(t[u],u,t)))||(a=n-c,c+=a/++o,s+=a*(n-c));if(o>1)return s/(o-1)}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,a,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n>=n)for(r=a=n;++o<i;)null!=(n=t[o])&&(r>n&&(r=n),a<n&&(a=n))}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=a=n;++o<i;)null!=(n=e(t[o],o,t))&&(r>n&&(r=n),a<n&&(a=n));return[r,a]}},function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return i});var r=Array.prototype,a=r.slice,i=r.map},function(t,e,n){"use strict";e.a=function(t,e,n){t=+t,e=+e,n=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(a);++r<a;)i[r]=t+r*n;return i}},function(t,e,n){"use strict";function r(t,e,n){var r=(e-t)/Math.max(0,n),a=Math.floor(Math.log(r)/Math.LN10),c=r/Math.pow(10,a);return a>=0?(c>=i?10:c>=o?5:c>=u?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(c>=i?10:c>=o?5:c>=u?2:1)}function a(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),c=r/a;return c>=i?a*=10:c>=o?a*=5:c>=u&&(a*=2),e<t?-a:a}e.b=r,e.c=a;var i=Math.sqrt(50),o=Math.sqrt(10),u=Math.sqrt(2);e.a=function(t,e,n){var a,i,o,u=e<t,c=-1;if(u&&(a=t,t=e,e=a),0===(o=r(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),i=new Array(a=Math.ceil(e-t+1));++c<a;)i[c]=(t+c)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),i=new Array(a=Math.ceil(t-e+1));++c<a;)i[c]=(t-c)/o;return u&&i.reverse(),i}},function(t,e,n){"use strict";e.a=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,a=t.length,i=-1;if(null==e){for(;++i<a;)if(null!=(n=t[i])&&n>=n)for(r=n;++i<a;)null!=(n=t[i])&&r>n&&(r=n)}else for(;++i<a;)if(null!=(n=e(t[i],i,t))&&n>=n)for(r=n;++i<a;)null!=(n=e(t[i],i,t))&&r>n&&(r=n);return r}},function(t,e,n){"use strict";function r(t){return t.length}var a=n(179);e.a=function(t){if(!(o=t.length))return[];for(var e=-1,n=Object(a.a)(t,r),i=new Array(n);++e<n;)for(var o,u=-1,c=i[e]=new Array(o);++u<o;)c[u]=t[u][e];return i}},function(t,e,n){"use strict";function r(t){function e(e){var r=e+"",a=n.get(r);if(!a){if(c!==o)return c;n.set(r,a=u.push(e))}return t[(a-1)%t.length]}var n=Object(a.a)(),u=[],c=o;return t=null==t?[]:i.b.call(t),e.domain=function(t){if(!arguments.length)return u.slice();u=[],n=Object(a.a)();for(var r,i,o=-1,c=t.length;++o<c;)n.has(i=(r=t[o])+"")||n.set(i,u.push(r));return e},e.range=function(n){return arguments.length?(t=i.b.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(c=t,e):c},e.copy=function(){return r().domain(u).range(t).unknown(c)},e}n.d(e,"b",function(){return o}),e.a=r;var a=n(374),i=n(17),o={name:"implicit"}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";var r=n(382);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var a=(n(184),n(185));n.d(e,"c",function(){return a.a});var i=n(388);n.d(e,"d",function(){return i.a});var o=n(389);n.d(e,"e",function(){return o.a});var u=n(390);n.d(e,"f",function(){return u.a})},function(t,e,n){"use strict";var r=n(60),a=n(383),i=n(384),o=n(185),u=n(186),c=n(187),s=n(387),l=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){function e(t){function e(t){var e,i,o,u=_,h=x;if("c"===m)h=O(t)+h,t="";else{t=+t;var y=t<0;if(t=O(Math.abs(t),g),y&&0==+t&&(y=!1),u=(y?"("===a?a:"-":"-"===a||"("===a?"":a)+u,h=h+("s"===m?l[8+c.b/3]:"")+(y&&"("===a?")":""),w)for(e=-1,i=t.length;++e<i;)if(48>(o=t.charCodeAt(e))||o>57){h=(46===o?p+t.slice(e+1):t.slice(e))+h,t=t.slice(0,e);break}}b&&!s&&(t=f(t,1/0));var j=u.length+t.length+h.length,M=j<v?new Array(v-j+1).join(n):"";switch(b&&s&&(t=f(M+t,M.length?v-h.length:1/0),M=""),r){case"<":t=u+t+h+M;break;case"=":t=u+M+t+h;break;case"^":t=M.slice(0,j=M.length>>1)+u+t+h+M.slice(j);break;default:t=M+u+t+h}return d(t)}t=Object(o.a)(t);var n=t.fill,r=t.align,a=t.sign,i=t.symbol,s=t.zero,v=t.width,b=t.comma,g=t.precision,m=t.type,_="$"===i?h[0]:"#"===i&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===i?h[1]:/[%p]/.test(m)?y:"",O=u.a[m],w=!m||/[defgprs%]/.test(m);return g=null==g?m?6:12:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),e.toString=function(){return t+""},e}function n(t,n){var a=e((t=Object(o.a)(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),u=Math.pow(10,-i),c=l[8+i/3];return function(t){return a(u*t)+c}}var f=t.grouping&&t.thousands?Object(a.a)(t.grouping,t.thousands):s.a,h=t.currency,p=t.decimal,d=t.numerals?Object(i.a)(t.numerals):s.a,y=t.percent||"%";return{format:e,formatPrefix:n}}},function(t,e,n){"use strict";function r(t){return new a(t)}function a(t){if(!(e=o.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",a=e[3]||"-",u=e[4]||"",c=!!e[5],s=e[6]&&+e[6],l=!!e[7],f=e[8]&&+e[8].slice(1),h=e[9]||"";"n"===h?(l=!0,h="g"):i.a[h]||(h=""),(c||"0"===n&&"="===r)&&(c=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=a,this.symbol=u,this.zero=c,this.width=s,this.comma=l,this.precision=f,this.type=h}e.a=r;var i=n(186),o=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;r.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type}},function(t,e,n){"use strict";var r=n(385),a=n(187),i=n(386);e.a={"":r.a,"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Object(i.a)(100*t,e)},r:i.a,s:a.a,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r,a=n(100);e.a=function(t,e){var n=Object(a.a)(t,e);if(!n)return t+"";var i=n[0],o=n[1],u=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,c=i.length;return u===c?i:u>c?i+new Array(u-c+1).join("0"):u>0?i.slice(0,u)+"."+i.slice(u):"0."+new Array(1-u).join("0")+Object(a.a)(t,Math.max(0,e+u-1))[0]}},function(t,e,n){"use strict";e.a=function(t,e){t=t.slice();var n,r=0,a=t.length-1,i=t[r],o=t[a];return o<i&&(n=r,r=a,a=n,n=i,i=o,o=n),t[r]=e.floor(i),t[a]=e.ceil(o),t}},function(t,e,n){"use strict";function r(t){return new Date(t)}function a(t){return t instanceof Date?+t:+new Date(+t)}function i(t,e,n,c,s,_,x,O,w){function j(r){return(x(r)<r?P:_(r)<r?E:s(r)<r?C:c(r)<r?S:e(r)<r?n(r)<r?N:R:t(r)<r?D:L)(r)}function M(e,n,r,a){if(null==e&&(e=10),"number"==typeof e){var i=Math.abs(r-n)/e,u=Object(o.c)(function(t){return t[2]}).right(F,i);u===F.length?(a=Object(o.g)(n/m,r/m,e),e=t):u?(u=F[i/F[u-1][2]<F[u][2]/i?u-1:u],a=u[1],e=u[0]):(a=Object(o.g)(n,r,e),e=O)}return null==a?e:e.every(a)}var k=Object(f.b)(f.c,u.c),T=k.invert,A=k.domain,P=w(".%L"),E=w(":%S"),C=w("%I:%M"),S=w("%I %p"),N=w("%a %d"),R=w("%b %d"),D=w("%B"),L=w("%Y"),F=[[x,1,p],[x,5,5*p],[x,15,15*p],[x,30,30*p],[_,1,d],[_,5,5*d],[_,15,15*d],[_,30,30*d],[s,1,y],[s,3,3*y],[s,6,6*y],[s,12,12*y],[c,1,v],[c,2,2*v],[n,1,b],[e,1,g],[e,3,3*g],[t,1,m]];return k.invert=function(t){return new Date(T(t))},k.domain=function(t){return arguments.length?A(l.a.call(t,a)):A().map(r)},k.ticks=function(t,e){var n,r=A(),a=r[0],i=r[r.length-1],o=i<a;return o&&(n=a,a=i,i=n),n=M(t,a,i,e),n=n?n.range(a,i+1):[],o?n.reverse():n},k.tickFormat=function(t,e){return null==e?j:w(e)},k.nice=function(t,e){var n=A();return(t=M(t,n[0],n[n.length-1],e))?A(Object(h.a)(n,t)):k},k.copy=function(){return Object(f.a)(k,i(t,e,n,c,s,_,x,O,w))},k}e.a=i;var o=n(11),u=n(21),c=n(101),s=n(190),l=n(17),f=n(59),h=n(188),p=1e3,d=60*p,y=60*d,v=24*y,b=7*v,g=30*v,m=365*v;e.b=function(){return i(c.j,c.f,c.i,c.a,c.b,c.d,c.g,c.c,s.a).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}},function(t,e,n){"use strict";var r=n(102);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});n(191),n(192),n(410)},function(t,e,n){"use strict";function r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function a(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function o(t){function e(t,e){return function(n){var r,a,i,o=[],u=-1,c=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++u<s;)37===t.charCodeAt(u)&&(o.push(t.slice(c,u)),null!=(a=et[r=t.charAt(++u)])?r=t.charAt(++u):a="e"===r?" ":"0",(i=e[r])&&(r=i(n,a)),o.push(r),c=u+1);return o.push(t.slice(c,u)),o.join("")}}function n(t,e){return function(n){var r=i(1900);if(o(r,t,n+="",0)!=n.length)return null;if("p"in r&&(r.H=r.H%12+12*r.p),"W"in r||"U"in r){"w"in r||(r.w="W"in r?1:0);var u="Z"in r?a(i(r.y)).getUTCDay():e(i(r.y)).getDay();r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(u+5)%7:r.w+7*r.U-(u+6)%7}return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,a(r)):e(r)}}function o(t,e,n,r){for(var a,i,o=0,u=e.length,c=n.length;o<u;){if(r>=c)return-1;if(37===(a=e.charCodeAt(o++))){if(a=e.charAt(o++),!(i=Ft[a in et?e.charAt(o++):a])||(r=i(t,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}function u(t,e,n){var r=Mt.exec(e.slice(n));return r?(t.p=kt[r[0].toLowerCase()],n+r[0].length):-1}function c(t,e,n){var r=Pt.exec(e.slice(n));return r?(t.w=Et[r[0].toLowerCase()],n+r[0].length):-1}function tt(t,e,n){var r=Tt.exec(e.slice(n));return r?(t.w=At[r[0].toLowerCase()],n+r[0].length):-1}function nt(t,e,n){var r=Nt.exec(e.slice(n));return r?(t.m=Rt[r[0].toLowerCase()],n+r[0].length):-1}function rt(t,e,n){var r=Ct.exec(e.slice(n));return r?(t.m=St[r[0].toLowerCase()],n+r[0].length):-1}function at(t,e,n){return o(t,bt,e,n)}function it(t,e,n){return o(t,gt,e,n)}function ot(t,e,n){return o(t,mt,e,n)}function ut(t){return Ot[t.getDay()]}function ct(t){return xt[t.getDay()]}function st(t){return jt[t.getMonth()]}function lt(t){return wt[t.getMonth()]}function ft(t){return _t[+(t.getHours()>=12)]}function ht(t){return Ot[t.getUTCDay()]}function pt(t){return xt[t.getUTCDay()]}function dt(t){return jt[t.getUTCMonth()]}function yt(t){return wt[t.getUTCMonth()]}function vt(t){return _t[+(t.getUTCHours()>=12)]}var bt=t.dateTime,gt=t.date,mt=t.time,_t=t.periods,xt=t.days,Ot=t.shortDays,wt=t.months,jt=t.shortMonths,Mt=s(_t),kt=l(_t),Tt=s(xt),At=l(xt),Pt=s(Ot),Et=l(Ot),Ct=s(wt),St=l(wt),Nt=s(jt),Rt=l(jt),Dt={a:ut,A:ct,b:st,B:lt,c:null,d:M,e:M,H:k,I:T,j:A,L:P,m:E,M:C,p:ft,S:S,U:N,w:R,W:D,x:null,X:null,y:L,Y:F,Z:I,"%":J},Lt={a:ht,A:pt,b:dt,B:yt,c:null,d:W,e:W,H:U,I:z,j:q,L:B,m:V,M:H,p:vt,S:Y,U:X,w:K,W:$,x:null,X:null,y:Z,Y:G,Z:Q,"%":J},Ft={a:c,A:tt,b:nt,B:rt,c:at,d:g,e:g,H:_,I:_,j:m,L:w,m:b,M:x,p:u,S:O,U:h,w:f,W:p,x:it,X:ot,y:y,Y:d,Z:v,"%":j};return Dt.x=e(gt,Dt),Dt.X=e(mt,Dt),Dt.c=e(bt,Dt),Lt.x=e(gt,Lt),Lt.X=e(mt,Lt),Lt.c=e(bt,Lt),{format:function(t){var n=e(t+="",Dt);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",r);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",Lt);return n.toString=function(){return t},n},utcParse:function(t){var e=n(t,a);return e.toString=function(){return t},e}}}function u(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(e)+a:a)}function c(t){return t.replace(at,"\\$&")}function s(t){return new RegExp("^(?:"+t.map(c).join("|")+")","i")}function l(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function f(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function h(t,e,n){var r=nt.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function p(t,e,n){var r=nt.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function d(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function y(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function v(t,e,n){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function b(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function g(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function m(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function _(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function x(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function O(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function w(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function j(t,e,n){var r=rt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function M(t,e){return u(t.getDate(),e,2)}function k(t,e){return u(t.getHours(),e,2)}function T(t,e){return u(t.getHours()%12||12,e,2)}function A(t,e){return u(1+tt.a.count(Object(tt.j)(t),t),e,3)}function P(t,e){return u(t.getMilliseconds(),e,3)}function E(t,e){return u(t.getMonth()+1,e,2)}function C(t,e){return u(t.getMinutes(),e,2)}function S(t,e){return u(t.getSeconds(),e,2)}function N(t,e){return u(tt.h.count(Object(tt.j)(t),t),e,2)}function R(t){return t.getDay()}function D(t,e){return u(tt.e.count(Object(tt.j)(t),t),e,2)}function L(t,e){return u(t.getFullYear()%100,e,2)}function F(t,e){return u(t.getFullYear()%1e4,e,4)}function I(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+u(e/60|0,"0",2)+u(e%60,"0",2)}function W(t,e){return u(t.getUTCDate(),e,2)}function U(t,e){return u(t.getUTCHours(),e,2)}function z(t,e){return u(t.getUTCHours()%12||12,e,2)}function q(t,e){return u(1+tt.k.count(Object(tt.t)(t),t),e,3)}function B(t,e){return u(t.getUTCMilliseconds(),e,3)}function V(t,e){return u(t.getUTCMonth()+1,e,2)}function H(t,e){return u(t.getUTCMinutes(),e,2)}function Y(t,e){return u(t.getUTCSeconds(),e,2)}function X(t,e){return u(tt.r.count(Object(tt.t)(t),t),e,2)}function K(t){return t.getUTCDay()}function $(t,e){return u(tt.o.count(Object(tt.t)(t),t),e,2)}function Z(t,e){return u(t.getUTCFullYear()%100,e,2)}function G(t,e){return u(t.getUTCFullYear()%1e4,e,4)}function Q(){return"+0000"}function J(){return"%"}e.a=o;var tt=n(101),et={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,rt=/^%/,at=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g},function(t,e,n){"use strict";function r(t){return t.toISOString()}n.d(e,"a",function(){return i});var a=n(102),i="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Object(a.b)(i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(194);n.d(e,"VictoryPie",function(){return r.a})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(37),u=n.n(o),c=n(0),s=n.n(c),l=n(1),f=n.n(l),h=n(113),p=n(425),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"]},v=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],b=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),d(e,[{key:"shouldAnimate",value:function(){return Boolean(this.props.animate)}},{key:"render",value:function(){var t=this.constructor.role,e=h.b.modifyProps(this.props,y,t);if(this.shouldAnimate())return this.animateComponent(e,v);var n=this.renderData(e);return e.standalone?this.renderContainer(e.containerComponent,n):n}}]),e}(s.a.Component);b.displayName="VictoryPie",b.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(t){return{y_:t._y,label:t.label}}}},b.propTypes={animate:f.a.oneOfType([f.a.bool,f.a.object]),colorScale:f.a.oneOfType([f.a.arrayOf(f.a.string),f.a.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:f.a.element,cornerRadius:h.c.nonNegative,data:f.a.array,dataComponent:f.a.element,endAngle:f.a.number,eventKey:f.a.oneOfType([f.a.func,h.c.allOfType([h.c.integer,h.c.nonNegative]),f.a.string]),events:f.a.arrayOf(f.a.shape({target:f.a.oneOf(["data","labels","parent"]),eventKey:f.a.oneOfType([f.a.func,h.c.allOfType([h.c.integer,h.c.nonNegative]),f.a.string]),eventHandlers:f.a.object})),groupComponent:f.a.element,height:h.c.nonNegative,innerRadius:h.c.nonNegative,labelComponent:f.a.element,labelRadius:f.a.oneOfType([h.c.nonNegative,f.a.func]),labels:f.a.oneOfType([f.a.func,f.a.array]),name:f.a.string,padAngle:h.c.nonNegative,padding:f.a.oneOfType([f.a.number,f.a.shape({top:f.a.number,bottom:f.a.number,left:f.a.number,right:f.a.number})]),sharedEvents:f.a.shape({events:f.a.array,getEventState:f.a.func}),sortKey:f.a.oneOfType([f.a.func,h.c.allOfType([h.c.integer,h.c.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)]),standalone:f.a.bool,startAngle:f.a.number,style:f.a.shape({parent:f.a.object,data:f.a.object,labels:f.a.object}),theme:f.a.object,width:h.c.nonNegative,x:f.a.oneOfType([f.a.func,h.c.allOfType([h.c.integer,h.c.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)]),y:f.a.oneOfType([f.a.func,h.c.allOfType([h.c.integer,h.c.nonNegative]),f.a.string,f.a.arrayOf(f.a.string)])},b.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:s.a.createElement(h.d,null),labelComponent:s.a.createElement(h.g,null),containerComponent:s.a.createElement(h.f,null),groupComponent:s.a.createElement("g",null),theme:h.h.grayscale},b.getBaseProps=u()(p.a.getBaseProps.bind(p.a),y),b.getData=h.a.getData.bind(h.a),b.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"],e.a=Object(h.i)(b)},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t,e,n){function r(){return(this&&this!==i&&this instanceof r?c:t).apply(u?n:this,arguments)}var u=e&o,c=a(t);return r}var a=n(40),i=n(14),o=1;t.exports=r},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(198))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t,e,n){function r(){for(var i=arguments.length,h=Array(i),p=i,d=c(r);p--;)h[p]=arguments[p];var y=i<3&&h[0]!==d&&h[i-1]!==d?[]:s(h,d);return(i-=y.length)<n?u(t,e,o,r.placeholder,void 0,h,y,void 0,void 0,n-i):a(this&&this!==l&&this instanceof r?f:t,this,h)}var f=i(t);return r}var a=n(39),i=n(40),o=n(107),u=n(108),c=n(41),s=n(42),l=n(14);t.exports=r},function(t,e){function n(t,e,n,a){for(var i=-1,o=t.length,u=n.length,c=-1,s=e.length,l=r(o-u,0),f=Array(s+l),h=!a;++c<s;)f[c]=e[c];for(;++i<u;)(h||i<o)&&(f[n[i]]=t[i]);for(;l--;)f[c++]=t[i++];return f}var r=Math.max;t.exports=n},function(t,e){function n(t,e,n,a){for(var i=-1,o=t.length,u=-1,c=n.length,s=-1,l=e.length,f=r(o-c,0),h=Array(f+l),p=!a;++i<f;)h[i]=t[i];for(var d=i;++s<l;)h[d+s]=e[s];for(;++u<c;)(p||i<o)&&(h[d+n[u]]=t[i++]);return h}var r=Math.max;t.exports=n},function(t,e){function n(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}t.exports=n},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){function r(t,e){for(var n=t.length,r=o(e.length,n),u=a(t);r--;){var c=e[r];t[r]=i(c,n)?u[c]:void 0}return t}var a=n(111),i=n(61),o=Math.min;t.exports=r},function(t,e,n){function r(t,e,n,r){function c(){for(var e=-1,i=arguments.length,u=-1,f=r.length,h=Array(f+i),p=this&&this!==o&&this instanceof c?l:t;++u<f;)h[u]=r[u];for(;i--;)h[u++]=arguments[++e];return a(p,s?n:this,h)}var s=e&u,l=i(t);return c}var a=n(39),i=n(40),o=n(14),u=1;t.exports=r},function(t,e){function n(){}t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(209);n.d(e,"easeLinear",function(){return r.a});var a=n(210);n.d(e,"easeQuad",function(){return a.b}),n.d(e,"easeQuadIn",function(){return a.a}),n.d(e,"easeQuadOut",function(){return a.c}),n.d(e,"easeQuadInOut",function(){return a.b});var i=n(211);n.d(e,"easeCubic",function(){return i.b}),n.d(e,"easeCubicIn",function(){return i.a}),n.d(e,"easeCubicOut",function(){return i.c}),n.d(e,"easeCubicInOut",function(){return i.b});var o=n(212);n.d(e,"easePoly",function(){return o.b}),n.d(e,"easePolyIn",function(){return o.a}),n.d(e,"easePolyOut",function(){return o.c}),n.d(e,"easePolyInOut",function(){return o.b});var u=n(213);n.d(e,"easeSin",function(){return u.b}),n.d(e,"easeSinIn",function(){return u.a}),n.d(e,"easeSinOut",function(){return u.c}),n.d(e,"easeSinInOut",function(){return u.b});var c=n(214);n.d(e,"easeExp",function(){return c.b}),n.d(e,"easeExpIn",function(){return c.a}),n.d(e,"easeExpOut",function(){return c.c}),n.d(e,"easeExpInOut",function(){return c.b});var s=n(215);n.d(e,"easeCircle",function(){return s.b}),n.d(e,"easeCircleIn",function(){return s.a}),n.d(e,"easeCircleOut",function(){return s.c}),n.d(e,"easeCircleInOut",function(){return s.b});var l=n(216);n.d(e,"easeBounce",function(){return l.c}),n.d(e,"easeBounceIn",function(){return l.a}),n.d(e,"easeBounceOut",function(){return l.c}),n.d(e,"easeBounceInOut",function(){return l.b});var f=n(217);n.d(e,"easeBack",function(){return f.b}),n.d(e,"easeBackIn",function(){return f.a}),n.d(e,"easeBackOut",function(){return f.c}),n.d(e,"easeBackInOut",function(){return f.b});var h=n(218);n.d(e,"easeElastic",function(){return h.c}),n.d(e,"easeElasticIn",function(){return h.a}),n.d(e,"easeElasticOut",function(){return h.c}),n.d(e,"easeElasticInOut",function(){return h.b})},function(t,e,n){"use strict";function r(t){return+t}e.a=r},function(t,e,n){"use strict";function r(t){return t*t}function a(t){return t*(2-t)}function i(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}e.a=r,e.c=a,e.b=i},function(t,e,n){"use strict";function r(t){return t*t*t}function a(t){return--t*t*t+1}function i(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}e.a=r,e.c=a,e.b=i},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return i});var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),a=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";function r(t){return 1-Math.cos(t*u)}function a(t){return Math.sin(t*u)}function i(t){return(1-Math.cos(o*t))/2}e.a=r,e.c=a,e.b=i;var o=Math.PI,u=o/2},function(t,e,n){"use strict";function r(t){return Math.pow(2,10*t-10)}function a(t){return 1-Math.pow(2,-10*t)}function i(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}e.a=r,e.c=a,e.b=i},function(t,e,n){"use strict";function r(t){return 1-Math.sqrt(1-t*t)}function a(t){return Math.sqrt(1- --t*t)}function i(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}e.a=r,e.c=a,e.b=i},function(t,e,n){"use strict";function r(t){return 1-a(1-t)}function a(t){return(t=+t)<o?y*t*t:t<c?y*(t-=u)*t+s:t<f?y*(t-=l)*t+h:y*(t-=p)*t+d}function i(t){return((t*=2)<=1?1-a(1-t):a(t-1)+1)/2}e.a=r,e.c=a,e.b=i;var o=4/11,u=6/11,c=8/11,s=.75,l=9/11,f=10/11,h=.9375,p=21/22,d=63/64,y=1/o/o},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return i});var r=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),a=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),i=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o});var r=2*Math.PI,a=function t(e,n){function a(t){return e*Math.pow(2,10*--t)*Math.sin((i-t)/n)}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return a.amplitude=function(e){return t(e,n*r)},a.period=function(n){return t(e,n)},a}(1,.3),i=function t(e,n){function a(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/n)}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return a.amplitude=function(e){return t(e,n*r)},a.period=function(n){return t(e,n)},a}(1,.3),o=function t(e,n){function a(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((i-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((i+t)/n))/2}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=r);return a.amplitude=function(e){return t(e,n*r)},a.period=function(n){return t(e,n)},a}(1,.3)},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(115),a=n.n(r),i=n(26),o=n.n(i),u=n(21),c=function(t){if(null!==t)switch(typeof t){case"undefined":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return t instanceof Date||Array.isArray(t)||o()(t);case"function":return!0}return!1},s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r<n?t:e}},l=function(t,e){return function(n){return n>=1?e:function(){var r="function"==typeof t?t.apply(this,arguments):t,a="function"==typeof e?e.apply(this,arguments):e;return Object(u.a)(r,a)(n)}}},f=function(t,e){var n=function(t){return Array.isArray(t)?a()(t,"key"):t},r={},i={},h=void 0;null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(h in e)h in t?r[h]=function(t,e){return t!==e&&c(t)&&c(e)?"function"==typeof t||"function"==typeof e?l(t,e):"object"==typeof t&&o()(t)||"object"==typeof e&&o()(e)?f(t,e):Object(u.a)(t,e):s(t,e)}(n(t[h]),n(e[h])):i[h]=e[h];return function(t){for(h in r)i[h]=r[h](t);return i}},h=function(t,e){var n=function(t){return"string"==typeof t?t.replace(/,/g,""):t};return Object(u.a)(n(t),n(e))},p=function(t,e){return t!==e&&c(t)&&c(e)?"function"==typeof t||"function"==typeof e?l(t,e):o()(t)||o()(e)?f(t,e):"string"==typeof t||"string"==typeof e?h(t,e):Object(u.a)(t,e):s(t,e)}},function(t,e){function n(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}t.exports=n},function(t,e,n){function r(t){return o(t)||i(t)||!!(u&&t&&t[u])}var a=n(222),i=n(43),o=n(10),u=a?a.isConcatSpreadable:void 0;t.exports=r},function(t,e,n){var r=n(14),a=r.Symbol;t.exports=a},function(t,e,n){function r(t,e,n){var r=-1;e=a(e.length?e:[l],c(i));var f=o(t,function(t,n,i){return{criteria:a(e,function(e){return e(t)}),index:++r,value:t}});return u(f,function(t,e){return s(t,e,n)})}var a=n(62),i=n(23),o=n(246),u=n(247),c=n(123),s=n(248),l=n(38);t.exports=r},function(t,e,n){function r(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||a(n,t,e)}}var a=n(225),i=n(237),o=n(119);t.exports=r},function(t,e,n){function r(t,e,n,r){var c=n.length,s=c,l=!r;if(null==t)return!s;for(t=Object(t);c--;){var f=n[c];if(l&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++c<s;){f=n[c];var h=f[0],p=t[h],d=f[1];if(l&&f[2]){if(void 0===p&&!(h in t))return!1}else{var y=new a;if(r)var v=r(p,d,h,t,e,y);if(!(void 0===v?i(d,p,o|u,r,y):v))return!1}}return!0}var a=n(63),i=n(64),o=1,u=2;t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=a(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}var a=n(44),i=Array.prototype,o=i.splice;t.exports=r},function(t,e,n){function r(t){var e=this.__data__,n=a(e,t);return n<0?void 0:e[n][1]}var a=n(44);t.exports=r},function(t,e,n){function r(t){return a(this.__data__,t)>-1}var a=n(44);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=a(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var a=n(44);t.exports=r},function(t,e,n){function r(t,e,n,r,v,g){var m=s(t),_=s(e),x=m?d:c(t),O=_?d:c(e);x=x==p?y:x,O=O==p?y:O;var w=x==y,j=O==y,M=x==O;if(M&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(M&&!w)return g||(g=new a),m||f(t)?i(t,e,n,r,v,g):o(t,e,x,n,r,v,g);if(!(n&h)){var k=w&&b.call(t,"__wrapped__"),T=j&&b.call(e,"__wrapped__");if(k||T){var A=k?t.value():t,P=T?e.value():e;return g||(g=new a),v(A,P,n,r,g)}}return!!M&&(g||(g=new a),u(t,e,n,r,v,g))}var a=n(63),i=n(232),o=n(234),u=n(235),c=n(117),s=n(10),l=n(68),f=n(69),h=1,p="[object Arguments]",d="[object Array]",y="[object Object]",v=Object.prototype,b=v.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e,n,r,s,l){var f=n&u,h=t.length,p=e.length;if(h!=p&&!(f&&p>h))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var y=-1,v=!0,b=n&c?new a:void 0;for(l.set(t,e),l.set(e,t);++y<h;){var g=t[y],m=e[y];if(r)var _=f?r(m,g,y,e,t,l):r(g,m,y,t,e,l);if(void 0!==_){if(_)continue;v=!1;break}if(b){if(!i(e,function(t,e){if(!o(b,e)&&(g===t||s(g,t,n,r,l)))return b.push(e)})){v=!1;break}}else if(g!==m&&!s(g,m,n,r,l)){v=!1;break}}return l.delete(t),l.delete(e),v}var a=n(65),i=n(233),o=n(66),u=1,c=2;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}t.exports=n},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t,e,n,r,o,c){var s=n&i,l=a(t),f=l.length;if(f!=a(e).length&&!s)return!1;for(var h=f;h--;){var p=l[h];if(!(s?p in e:u.call(e,p)))return!1}var d=c.get(t);if(d&&c.get(e))return d==e;var y=!0;c.set(t,e),c.set(e,t);for(var v=s;++h<f;){p=l[h];var b=t[p],g=e[p];if(r)var m=s?r(g,b,p,e,t,c):r(b,g,p,t,e,c);if(!(void 0===m?b===g||o(b,g,n,r,c):m)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var _=t.constructor,x=e.constructor;_!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(y=!1)}return c.delete(t),c.delete(e),y}var a=n(236),i=1,o=Object.prototype,u=o.hasOwnProperty;t.exports=r},function(t,e,n){var r=n(45),a=r(Object.keys,Object);t.exports=a},function(t,e,n){function r(t){for(var e=i(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,a(o)]}return e}var a=n(118),i=n(25);t.exports=r},function(t,e,n){function r(t,e){return u(t)&&c(e)?s(l(t),e):function(n){var r=i(n,t);return void 0===r&&r===e?o(n,t):a(e,r,f|h)}}var a=n(64),i=n(239),o=n(121),u=n(71),c=n(118),s=n(119),l=n(20),f=1,h=2;t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?void 0:a(t,e);return void 0===r?n:r}var a=n(46);t.exports=r},function(t,e,n){var r=n(241),a=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=r(function(t){var e=[];return a.test(t)&&e.push(""),t.replace(i,function(t,n,r,a){e.push(r?a.replace(o,"$1"):n||t)}),e});t.exports=u},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},function(t,e,n){function r(t,e,n){e=a(e,t);for(var r=-1,l=e.length,f=!1;++r<l;){var h=s(e[r]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++r!=l?f:!!(l=null==t?0:t.length)&&c(l)&&u(h,l)&&(o(t)||i(t))}var a=n(19),i=n(43),o=n(10),u=n(61),c=n(122),s=n(20);t.exports=r},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},function(t,e,n){function r(t){return function(e){return a(e,t)}}var a=n(46);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}t.exports=n},function(t,e){function n(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}t.exports=n},function(t,e,n){function r(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,c=n.length;++r<u;){var s=a(i[r],o[r]);if(s){if(r>=c)return s;return s*("desc"==n[r]?-1:1)}}return t.index-e.index}var a=n(249);t.exports=r},function(t,e,n){function r(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t===t,o=a(t),u=void 0!==e,c=null===e,s=e===e,l=a(e);if(!c&&!l&&!o&&t>e||o&&u&&s&&!c&&!l||r&&u&&s||!n&&s||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||c&&n&&i||!u&&i||!s)return-1}return 0}var a=n(47);t.exports=r},function(t,e,n){"use strict";function r(t){if(t instanceof i)return new i(t.l,t.a,t.b,t.opacity);if(t instanceof h){var e=t.h*y.a;return new i(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof d.b||(t=Object(d.h)(t));var n=s(t.r),r=s(t.g),a=s(t.b),u=o((.4124564*n+.3575761*r+.1804375*a)/v),c=o((.2126729*n+.7151522*r+.072175*a)/b);return new i(116*c-16,500*(u-c),200*(c-o((.0193339*n+.119192*r+.9503041*a)/g)),t.opacity)}function a(t,e,n,a){return 1===arguments.length?r(t):new i(t,e,n,null==a?1:a)}function i(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function o(t){return t>O?Math.pow(t,1/3):t/x+m}function u(t){return t>_?t*t*t:x*(t-m)}function c(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function s(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t){if(t instanceof h)return new h(t.h,t.c,t.l,t.opacity);t instanceof i||(t=r(t));var e=Math.atan2(t.b,t.a)*y.b;return new h(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function f(t,e,n,r){return 1===arguments.length?l(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e.a=a,e.b=f;var p=n(76),d=n(75),y=n(126),v=.95047,b=1,g=1.08883,m=4/29,_=6/29,x=3*_*_,O=_*_*_;Object(p.a)(i,a,Object(p.b)(d.a,{brighter:function(t){return new i(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new i(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=b*u(t),e=v*u(e),n=g*u(n),new d.b(c(3.2404542*e-1.5371385*t-.4985314*n),c(-.969266*e+1.8760108*t+.041556*n),c(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(p.a)(h,f,Object(p.b)(d.a,{brighter:function(t){return new h(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new h(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,e,n){"use strict";function r(t){if(t instanceof i)return new i(t.h,t.s,t.l,t.opacity);t instanceof u.b||(t=Object(u.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,a=(v*r+d*e-y*n)/(v+d-y),o=r-a,s=(p*(n-a)-f*o)/h,l=Math.sqrt(s*s+o*o)/(p*a*(1-a)),b=l?Math.atan2(s,o)*c.b-120:NaN;return new i(b<0?b+360:b,l,a,t.opacity)}function a(t,e,n,a){return 1===arguments.length?r(t):new i(t,e,n,null==a?1:a)}function i(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.a=a;var o=n(76),u=n(75),c=n(126),s=-.14861,l=1.78277,f=-.29227,h=-.90649,p=1.97294,d=p*h,y=p*l,v=l*f-h*s;Object(o.a)(i,a,Object(o.b)(u.a,{brighter:function(t){return t=null==t?u.c:Math.pow(u.c,t),new i(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?u.d:Math.pow(u.d,t),new i(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*c.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),a=Math.sin(t);return new u.b(255*(e+n*(s*r+l*a)),255*(e+n*(f*r+h*a)),255*(e+n*(p*r)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function r(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,u,c){if(t!==i||r!==o){var s=u.push("translate(",null,e,null,n);c.push({i:s-4,x:Object(a.a)(t,i)},{i:s-2,x:Object(a.a)(r,o)})}else(i||o)&&u.push("translate("+i+e+o+n)}function u(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(a.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function c(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(a.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function s(t,e,n,r,o,u){if(t!==n||e!==r){var c=o.push(i(o)+"scale(",null,",",null,")");u.push({i:c-4,x:Object(a.a)(t,n)},{i:c-2,x:Object(a.a)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(e,n){var r=[],a=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,a),u(e.rotate,n.rotate,r,a),c(e.skewX,n.skewX,r,a),s(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,a),e=n=null,function(t){for(var e,n=-1,i=a.length;++n<i;)r[(e=a[n]).i]=e.x(t);return r.join("")}}}var a=n(48),i=n(254);r(i.a,"px, ","px)","deg)"),r(i.b,", ",")",")")},function(t,e,n){"use strict";function r(t){return"none"===t?s.b:(i||(i=document.createElement("DIV"),o=document.documentElement,u=document.defaultView),i.style.transform=t,t=u.getComputedStyle(o.appendChild(i),null).getPropertyValue("transform"),o.removeChild(i),t=t.slice(7,-1).split(","),Object(s.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function a(t){return null==t?s.b:(c||(c=document.createElementNS("http://www.w3.org/2000/svg","g")),c.setAttribute("transform",t),(t=c.transform.baseVal.consolidate())?(t=t.matrix,Object(s.a)(t.a,t.b,t.c,t.d,t.e,t.f)):s.b)}e.a=r,e.b=a;var i,o,u,c,s=n(255)},function(t,e,n){"use strict";n.d(e,"b",function(){return a});var r=180/Math.PI,a={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,a,i,o){var u,c,s;return(u=Math.sqrt(t*t+e*e))&&(t/=u,e/=u),(s=t*n+e*a)&&(n-=t*s,a-=e*s),(c=Math.sqrt(n*n+a*a))&&(n/=c,a/=c,s/=c),t*a<e*n&&(t=-t,e=-e,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(s)*r,scaleX:u,scaleY:c}}},function(t,e,n){"use strict";Math.SQRT2},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(a.d)(e)).h,(n=Object(a.d)(n)).h),o=Object(i.a)(e.s,n.s),u=Object(i.a)(e.l,n.l),c=Object(i.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=u(t),e.opacity=c(t),e+""}}}var a=n(13),i=n(27);r(i.c),r(i.a)},function(t,e,n){"use strict";n(13),n(27)},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(a.c)(e)).h,(n=Object(a.c)(n)).h),o=Object(i.a)(e.c,n.c),u=Object(i.a)(e.l,n.l),c=Object(i.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=u(t),e.opacity=c(t),e+""}}}var a=n(13),i=n(27);r(i.c),r(i.a)},function(t,e,n){"use strict";function r(t){return function e(n){function r(e,r){var o=t((e=Object(a.b)(e)).h,(r=Object(a.b)(r)).h),u=Object(i.a)(e.s,r.s),c=Object(i.a)(e.l,r.l),s=Object(i.a)(e.opacity,r.opacity);return function(t){return e.h=o(t),e.s=u(t),e.l=c(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}n.d(e,"a",function(){return o});var a=n(13),i=n(27),o=(r(i.c),r(i.a))},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=n(78);n.d(e,"a",function(){return r.b}),n.d(e,"b",function(){return r.c});n(263),n(264)},function(t,e,n){"use strict";n(78)},function(t,e,n){"use strict";n(78)},function(t,e,n){function r(t){var e=++i;return a(t)+e}var a=n(120),i=0;t.exports=r},function(t,e,n){var r=n(29),a=n(49),i=n(50),o=a(function(t,e,n,a){r(e,i(e),t,a)});t.exports=o},function(t,e,n){var r=n(268),a=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){function r(t,e,n,r){return void 0===t||a(t,i[n])&&!o.call(r,n)?e:t}var a=n(24),i=Object.prototype,o=i.hasOwnProperty;t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t,e){return e=a(e,t),null==(t=o(t,e))||delete t[u(i(e))]}var a=n(19),i=n(135),o=n(272),u=n(20);t.exports=r},function(t,e,n){function r(t,e){return e.length<2?t:a(t,i(e,0,-1))}var a=n(46),i=n(273);t.exports=r},function(t,e){function n(t,e,n){var r=-1,a=t.length;e<0&&(e=-e>a?0:a+e),n=n>a?a:n,n<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(a);++r<a;)i[r]=t[r+e];return i}t.exports=n},function(t,e,n){function r(t){return a(t)?void 0:t}var a=n(26);t.exports=r},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){function r(t,e,n,l,f){t!==e&&o(e,function(o,s){if(c(o))f||(f=new a),u(t,e,s,n,r,l,f);else{var h=l?l(t[s],o,s+"",t,e,f):void 0;void 0===h&&(h=o),i(t,s,h)}},s)}var a=n(63),i=n(139),o=n(277),u=n(279),c=n(9),s=n(50);t.exports=r},function(t,e,n){var r=n(278),a=r();t.exports=a},function(t,e){function n(t){return function(e,n,r){for(var a=-1,i=Object(e),o=r(e),u=o.length;u--;){var c=o[t?u:++a];if(!1===n(i[c],c,i))break}return e}}t.exports=n},function(t,e,n){function r(t,e,n,r,g,m,_){var x=t[n],O=e[n],w=_.get(O);if(w)return void a(t,n,w);var j=m?m(x,O,n+"",t,e,_):void 0,M=void 0===j;if(M){var k=l(O),T=!k&&h(O),A=!k&&!T&&v(O);j=O,k||T||A?l(x)?j=x:f(x)?j=u(x):T?(M=!1,j=i(O,!0)):A?(M=!1,j=o(O,!0)):j=[]:y(O)||s(O)?(j=x,s(x)?j=b(x):(!d(x)||r&&p(x))&&(j=c(O))):M=!1}M&&(_.set(O,j),g(j,O,r,m,_),_.delete(O)),a(t,n,j)}var a=n(139),i=n(280),o=n(282),u=n(111),c=n(285),s=n(43),l=n(10),f=n(140),h=n(68),p=n(6),d=n(9),y=n(26),v=n(69),b=n(286);t.exports=r},function(t,e,n){(function(t){function r(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}var a=n(14),i="object"==typeof e&&e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=o&&o.exports===i,c=u?a.Buffer:void 0,s=c?c.allocUnsafe:void 0;t.exports=r}).call(e,n(281)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){function r(t,e){var n=e?a(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var a=n(283);t.exports=r},function(t,e,n){function r(t){var e=new t.constructor(t.byteLength);return new a(e).set(new a(t)),e}var a=n(284);t.exports=r},function(t,e,n){var r=n(14),a=r.Uint8Array;t.exports=a},function(t,e,n){function r(t){return"function"!=typeof t.constructor||o(t)?{}:a(i(t))}var a=n(106),i=n(125),o=n(81);t.exports=r},function(t,e,n){function r(t){return a(t,i(t))}var a=n(29),i=n(50);t.exports=r},function(t,e,n){var r=n(288),a=n(289),i=r(a);t.exports=i},function(t,e,n){function r(t){return function(e,n,r){var u=Object(e);if(!i(e)){var c=a(n,3);e=o(e),n=function(t){return c(u[t],t,u)}}var s=t(e,n,r);return s>-1?u[c?e[s]:s]:void 0}}var a=n(23),i=n(52),o=n(25);t.exports=r},function(t,e,n){function r(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var c=null==n?0:o(n);return c<0&&(c=u(r+c,0)),a(t,i(e,3),c)}var a=n(290),i=n(23),o=n(112),u=Math.max;t.exports=r},function(t,e){function n(t,e,n,r){for(var a=t.length,i=n+(r?1:-1);r?i--:++i<a;)if(e(t[i],i,t))return i;return-1}t.exports=n},function(t,e,n){var r=n(45),a=r(Object.keys,Object);t.exports=a},function(t,e){function n(t,e,n,r){var a=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++a]);++a<i;)n=e(n,t[a],a,t);return n}t.exports=n},function(t,e,n){function r(t,e){return a(t,e,function(e,n){return i(t,n)})}var a=n(294),i=n(121);t.exports=r},function(t,e,n){function r(t,e,n){for(var r=-1,u=e.length,c={};++r<u;){var s=e[r],l=a(t,s);n(l,s)&&i(c,o(s,t),l)}return c}var a=n(46),i=n(295),o=n(19);t.exports=r},function(t,e,n){function r(t,e,n,r){if(!u(t))return t;e=i(e,t);for(var s=-1,l=e.length,f=l-1,h=t;null!=h&&++s<l;){var p=c(e[s]),d=n;if(s!=f){var y=h[p];d=r?r(y,p,h):void 0,void 0===d&&(d=u(y)?y:o(e[s+1])?[]:{})}a(h,p,d),h=h[p]}return t}var a=n(79),i=n(19),o=n(61),u=n(9),c=n(20);t.exports=r},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(297),c=n.n(u),s=n(7),l=n.n(s),f=n(37),h=n.n(f),p=n(6),d=n.n(p),y=n(4),v=n.n(y),b=n(0),g=n.n(b),m=n(1),_=n.n(m),x=n(15),O=n(88),w=n(2),j=n(28),M=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),k=function(t){function e(){a(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.state=t.state||{},t.getScopedEvents=O.a.getScopedEvents.bind(t),t.getEventState=O.a.getEventState.bind(t),t.getTimer=t.getTimer.bind(t),t}return o(e,t),M(e,[{key:"getChildContext",value:function(){return{getTimer:this.getTimer}}},{key:"componentWillMount",value:function(){this.setUpChildren(this.props)}},{key:"componentWillReceiveProps",value:function(t){this.setUpChildren(t)}},{key:"getTimer",value:function(){return this.context.getTimer?this.context.getTimer():(this.timer||(this.timer=new j.a),this.timer)}},{key:"getAllEvents",value:function(t){var e=["container","groupComponent"];if(this.componentEvents=O.a.getComponentEvents(t,e),Array.isArray(this.componentEvents)){var n;return Array.isArray(t.events)?(n=this.componentEvents).concat.apply(n,r(t.events)):this.componentEvents}return t.events}},{key:"setUpChildren",value:function(t){if(this.events=this.getAllEvents(t),this.events){this.childComponents=g.a.Children.toArray(t.children);var e=this.getBasePropsFromChildren(this.childComponents),n=t.container?t.container.props:{};this.baseProps=v()({},e,{parent:n})}}},{key:"getBasePropsFromChildren",value:function(t){var e=function(t,e,n){if(t.type&&d()(t.type.getBaseProps)){t=n?g.a.cloneElement(t,n.props):t;var r=t.props&&t.type.getBaseProps(t.props);return r?[[e,r]]:null}return null},n=w.a.reduceChildren(t,e);return c()(n)}},{key:"getNewChildren",value:function(t){var e=this,n=t.events,r=t.eventKey,a=Object.keys(this.baseProps),i=function(t){return t.reduce(function(t,o,u){if(o.props.children)return t.concat(g.a.cloneElement(o,o.props,i(g.a.Children.toArray(o.props.children))));if(o.type&&d()(o.type.getBaseProps)){var c=o.props.name||a.shift()||u,s=Array.isArray(n)&&n.filter(function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(c)>-1:t.childName===c||"all"===t.childName)}),l={events:s,getEvents:h()(e.getScopedEvents,c,e.baseProps),getEventState:h()(e.getEventState,c)};return t.concat(g.a.cloneElement(o,v()({key:"events-"+c,sharedEvents:l,eventKey:r},o.props)))}return t.concat(o)},[])};return i(this.childComponents)}},{key:"getContainer",value:function(t,e){var n=Array.isArray(this.events)&&this.events.filter(function(t){return"parent"===t.target}),r=n.length>0?{events:n,getEvents:h()(this.getScopedEvents,null,this.baseProps),getEventState:h()(this.getEventState,null)}:null,a=this.props.container||this.props.groupComponent,i=a.type&&a.type.role,o=a.props||{},u=O.a.getEvents.bind(this),c=r&&u({sharedEvents:r},"parent"),s=l()({},this.getEventState("parent","parent"),o,this.baseProps.parent,{children:e}),f=l()({},O.a.getPartialEvents(c,"parent",s),o.events);return"container"===i?g.a.cloneElement(a,v()({},s,{events:f})):g.a.cloneElement(a,f,e)}},{key:"render",value:function(){if(this.events){var t=this.getNewChildren(this.props);return this.getContainer(this.props,t)}return g.a.cloneElement(this.props.container,{children:this.props.children})}}]),e}(g.a.Component);k.displayName="VictorySharedEvents",k.role="shared-event-wrapper",k.propTypes={children:_.a.oneOfType([_.a.arrayOf(_.a.node),_.a.node]),container:_.a.node,eventKey:_.a.oneOfType([_.a.array,_.a.func,x.a.allOfType([x.a.integer,x.a.nonNegative]),_.a.string]),events:_.a.arrayOf(_.a.shape({childName:_.a.oneOfType([_.a.string,_.a.array]),eventHandlers:_.a.object,eventKey:_.a.oneOfType([_.a.array,_.a.func,x.a.allOfType([x.a.integer,x.a.nonNegative]),_.a.string]),target:_.a.string})),groupComponent:_.a.node},k.defaultProps={groupComponent:g.a.createElement("g",null)},k.contextTypes={getTimer:_.a.func},k.childContextTypes={getTimer:_.a.func}},function(t,e){function n(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var a=t[e];r[a[0]]=a[1]}return r}t.exports=n},function(t,e,n){function r(t,e,n,r){var f=-1,h=i,p=!0,d=t.length,y=[],v=e.length;if(!d)return y;n&&(e=u(e,c(n))),r?(h=o,p=!1):e.length>=l&&(h=s,p=!1,e=new a(e));t:for(;++f<d;){var b=t[f],g=null==n?b:n(b);if(b=r||0!==b?b:0,p&&g===g){for(var m=v;m--;)if(e[m]===g)continue t;y.push(b)}else h(e,g,r)||y.push(b)}return y}var a=n(65),i=n(146),o=n(147),u=n(62),c=n(123),s=n(66),l=200;t.exports=r},function(t,e,n){var r=n(18),a=n(105),i=n(41),o=n(42),u=r(function(t,e){var n=o(e,i(u));return a(t,32,void 0,e,n)});u.placeholder={},t.exports=u},function(t,e,n){t.exports=n(301)},function(t,e,n){var r=n(29),a=n(49),i=n(50),o=a(function(t,e){r(e,i(e),t)});t.exports=o},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(6),c=n.n(u),s=n(7),l=n.n(s),f=n(4),h=n.n(f),p=n(0),d=n.n(p),y=n(1),v=n.n(y),b=n(148),g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},m=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),_=function(t){function e(t){a(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.clipId=void 0!==t.clipId?t.clipId:Math.round(1e4*Math.random()),n}return o(e,t),m(e,[{key:"renderClippedGroup",value:function(t,e){var n=t.style,r=t.events,a=t.transform,i=t.children,o=t.className,u=this.renderClipComponent(t,e);return d.a.createElement("g",g({className:o,style:n},r,{transform:a}),u,d.a.createElement("g",{clipPath:"url(#"+e+")"},i))}},{key:"renderGroup",value:function(t){var e=t.style,n=t.events,r=t.transform,a=t.children,i=t.className;return d.a.createElement("g",g({className:i,style:e},n,{transform:r}),a)}},{key:"renderClipComponent",value:function(t,e){return d.a.cloneElement(t.clipPathComponent,h()({},t,{clipId:e}))}},{key:"getClipValue",value:function(t,e){var n={x:t.clipWidth,y:t.clipHeight};if(void 0!==n[e])return n[e];var r=this.getRange(t,e);return r?Math.abs(r[0]-r[1])||void 0:void 0}},{key:"getTranslateValue",value:function(t,e){var n={x:t.translateX,y:t.translateY};if(void 0!==n[e])return n[e];var a=this.getRange(t,e);return a?Math.min.apply(Math,r(a)):void 0}},{key:"getRange",value:function(t,e){var n=t.scale||{};if(n[e])return c()(n[e].range)?n[e].range():void 0}},{key:"render",value:function(){var t=this.getClipValue(this.props,"y"),e=this.getClipValue(this.props,"x");if(void 0===e||void 0===t)return this.renderGroup(this.props);var n=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),a=l()({},this.props,{clipHeight:t,clipWidth:e,translateX:n,translateY:r});return this.renderClippedGroup(a,this.clipId)}}]),e}(d.a.Component);_.displayName="VictoryClipContainer",_.role="container",_.propTypes={children:v.a.oneOfType([v.a.arrayOf(v.a.node),v.a.node]),className:v.a.string,clipHeight:v.a.number,clipId:v.a.number,clipPadding:v.a.shape({top:v.a.number,bottom:v.a.number,left:v.a.number,right:v.a.number}),clipPathComponent:v.a.element,clipWidth:v.a.number,events:v.a.object,origin:v.a.shape({x:v.a.number,y:v.a.number}),polar:v.a.bool,radius:v.a.number,style:v.a.object,transform:v.a.string,translateX:v.a.number,translateY:v.a.number},_.defaultProps={clipPathComponent:d.a.createElement(b.a,null)}},function(t,e,n){"use strict";var r=n(4),a=n.n(r),i=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],o={width:350,height:350,padding:50},u={fontFamily:"'Roboto', 'Helvetica Neue', Helvetica, sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:"#455A64",stroke:"transparent",strokeWidth:0},c=a()({textAnchor:"middle"},u);e.a={area:a()({style:{data:{fill:"#212121"},labels:c}},o),axis:a()({style:{axis:{fill:"transparent",stroke:"#90A4AE",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:a()({},c,{padding:8,stroke:"transparent"}),grid:{fill:"transparent",stroke:"#ECEFF1",strokeDasharray:"10, 5",strokeLinecap:"round",strokeLinejoin:"round",pointerEvents:"none"},ticks:{fill:"transparent",size:5,stroke:"#90A4AE",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},tickLabels:a()({},u,{fill:"#455A64"})}},o),bar:a()({style:{data:{fill:"#455A64",padding:8,strokeWidth:0},labels:u}},o),candlestick:a()({style:{data:{stroke:"#455A64"},labels:c},candleColors:{positive:"#ffffff",negative:"#455A64"}},o),chart:o,errorbar:a()({style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:c}},o),group:a()({colorScale:i},o),line:a()({style:{data:{fill:"transparent",opacity:1,stroke:"#455A64",strokeWidth:2},labels:c}},o),pie:a()({colorScale:i,style:{data:{padding:8,stroke:"#ECEFF1",strokeWidth:1},labels:a()({},u,{padding:20})}},o),scatter:a()({style:{data:{fill:"#455A64",opacity:1,stroke:"transparent",strokeWidth:0},labels:c}},o),stack:a()({colorScale:i},o),tooltip:{style:a()({},c,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:a()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:a()({},c,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#212121",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},o),legend:{colorScale:i,gutter:10,orientation:"vertical",style:{data:{type:"circle"},labels:u},symbolSpacer:8}}},function(t,e,n){"use strict";var r=n(4),a=n.n(r),i=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],o={width:450,height:300,padding:50,colorScale:i},u={fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:"#252525",stroke:"transparent"},c=a()({textAnchor:"middle"},u);e.a={area:a()({style:{data:{fill:"#252525"},labels:c}},o),axis:a()({style:{axis:{fill:"transparent",stroke:"#252525",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:a()({},c,{padding:25}),grid:{fill:"transparent",stroke:"transparent",pointerEvents:"none"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:u}},o),bar:a()({style:{data:{fill:"#252525",padding:8,strokeWidth:0},labels:u}},o),candlestick:a()({style:{data:{stroke:"#252525",strokeWidth:1},labels:c},candleColors:{positive:"#ffffff",negative:"#252525"}},o),chart:o,errorbar:a()({style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:c}},o),group:a()({colorScale:i},o),line:a()({style:{data:{fill:"transparent",stroke:"#252525",strokeWidth:2},labels:c}},o),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:a()({},u,{padding:20})},colorScale:i,width:400,height:400,padding:50},scatter:a()({style:{data:{fill:"#252525",stroke:"transparent",strokeWidth:0},labels:c}},o),stack:a()({colorScale:i},o),tooltip:{style:a()({},c,{padding:5,pointerEvents:"none"}),flyoutStyle:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},cornerRadius:5,pointerLength:10},voronoi:a()({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:a()({},c,{padding:5,pointerEvents:"none"}),flyout:{stroke:"#252525",strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},o),legend:{colorScale:i,gutter:10,orientation:"vertical",style:{data:{type:"circle"},labels:u},symbolSpacer:8}}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(37),u=n.n(o),c=n(0),s=n.n(c),l=n(1),f=n.n(l),h=n(306),p=n(15),d=n(149),y=n(2),v=n(82),b=n(134),g=n(89),m=n(150),_=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),x={orientation:"vertical",x:0,y:0},O=[{name:"Series 1"},{name:"Series 2"}],w=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),_(e,[{key:"render",value:function(){var t=this.constructor.role,e=y.a.modifyProps(this.props,x,t),n=this.renderData(e);return e.standalone?this.renderContainer(e.containerComponent,n):n}}]),e}(s.a.Component);w.displayName="VictoryLegend",w.role="legend",w.propTypes={colorScale:f.a.oneOfType([f.a.arrayOf(f.a.string),f.a.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:f.a.element,data:f.a.arrayOf(f.a.shape({name:f.a.string.isRequired,label:f.a.object,symbol:f.a.object})),dataComponent:f.a.element,eventKey:f.a.oneOfType([f.a.func,p.a.allOfType([p.a.integer,p.a.nonNegative]),f.a.string]),events:f.a.arrayOf(f.a.shape({target:f.a.oneOf(["data","labels","parent"]),eventKey:f.a.oneOfType([f.a.array,p.a.allOfType([p.a.integer,p.a.nonNegative]),f.a.string]),eventHandlers:f.a.object})),groupComponent:f.a.element,gutter:f.a.number,height:f.a.oneOfType([p.a.nonNegative,f.a.func]),itemsPerRow:f.a.number,labelComponent:f.a.element,orientation:f.a.oneOf(["horizontal","vertical"]),padding:f.a.oneOfType([f.a.number,f.a.shape({top:f.a.number,bottom:f.a.number,left:f.a.number,right:f.a.number})]),sharedEvents:f.a.shape({events:f.a.array,getEventState:f.a.func}),standalone:f.a.bool,style:f.a.shape({data:f.a.object,labels:f.a.object,parent:f.a.object}),symbolSpacer:f.a.number,theme:f.a.object,width:f.a.oneOfType([p.a.nonNegative,f.a.func]),x:f.a.number,y:f.a.number},w.defaultProps={data:O,containerComponent:s.a.createElement(b.a,null),dataComponent:s.a.createElement(m.a,null),groupComponent:s.a.createElement("g",null),labelComponent:s.a.createElement(v.a,null),standalone:!0,theme:g.a.grayscale},w.getBaseProps=u()(h.a,x),w.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];Object(d.a)(w)},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var a=n(307),i=n.n(a),o=n(309),u=n.n(o),c=n(4),s=n.n(c),l=n(7),f=n.n(l),h=n(2),p=n(87),d=n(90),y=function(t,e){var n=t.gutter,r=t.itemsPerRow,a=t.padding,o=t.isHorizontal,c=e.length,s=r?Math.ceil(c/r):1,l=o?u()(e,"height").height*s+n*(s-1):(i()(e,"height")+n*(c-1))/s;return a.top+l+a.bottom},v=function(t,e,n){var r=t.gutter,a=t.itemsPerRow,i=t.symbolSpacer,o=t.padding,u=t.isHorizontal,c=a?Math.ceil(e/a):1,s=a||e,l=void 0;if(u){l=3*i*s+n*s+r*s}else l=(n+2*i+r)*c;return o.left+l+o.right},b=function(t){var e=t.colorScale;return"string"==typeof e?p.a.getColorScale(e):e||[]},g=function(t){var e=t.data,n=t.style;return e.map(function(t){var e=f()({},t.labels,n.labels);return h.a.evaluateStyle(e,t)})},m=function(t,e){return t.data.map(function(t,n){return d.a.approximateTextSize(t.name,e[n])})},_=function(t){var e=t.orientation,n=t.theme,r=n&&n.legend&&n.legend.style?n.legend.style:{},a=h.a.getStyles(t.style,r),i=b(t),o="horizontal"===e,u=h.a.getPadding(t);return s()({},t,{style:a,isHorizontal:o,colorScale:i,padding:u})},x=function(t,e){return t.symbol&&t.symbol.size?t.symbol.size:e/2.5};e.a=function(t,e){var n=h.a.modifyProps(t,e,"legend");t=s()({},n,_(n));var a=t,i=a.data,o=a.standalone,u=a.theme,c=a.padding,l=a.style,p=a.colorScale,d=a.itemsPerRow,b=a.gutter,O=a.isHorizontal,w=a.symbolSpacer,j=g(t),M=m(t,j),k=Math.max.apply(Math,r(M.map(function(t){return t.width}))),T=t.height||y(t,M),A=t.width||v(t,M.width,k),P={parent:{width:A,height:T,data:i,standalone:o,theme:u,padding:c,style:l.parent}};return i.reduce(function(t,e,n){var r=j[n].fontSize,a=r/2,o=r+w,u=r+b,s=d?n%d:n,h=d?Math.floor(n/d):0,y=d?u*h:0,v=e.eventKey||n,g=O?c.top+a+y:c.top+a+u*s,m=p[n%p.length],_=f()({},e.symbol,l.data,{fill:m}),M={index:n,data:i,datum:e,key:"legend-symbol-"+n,symbol:_.type||"circle",size:x(e,r),style:_,y:g,x:O?c.left+a+(r+w+k+b)*s:c.left+a+(u+k)*h},T={datum:e,data:i,key:"legend-label-"+n,text:e.name,style:j[n],y:g,x:O?c.left+o*(s+1)+(k+b)*s:c.left+o+(u+k)*h};return t[v]={data:M,labels:T},t},P)}},function(t,e,n){function r(t,e){return t&&t.length?i(t,a(e,2)):0}var a=n(23),i=n(308);t.exports=r},function(t,e){function n(t,e){for(var n,r=-1,a=t.length;++r<a;){var i=e(t[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}t.exports=n},function(t,e,n){function r(t,e){return t&&t.length?a(t,o(e,2),i):void 0}var a=n(310),i=n(311),o=n(23);t.exports=r},function(t,e,n){function r(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],u=e(o);if(null!=u&&(void 0===c?u===u&&!a(u):n(u,c)))var c=u,s=o}return s}var a=n(47);t.exports=r},function(t,e){function n(t,e){return t>e}t.exports=n},function(t,e,n){"use strict";var r=n(151),a=n.n(r);e.a={circle:function(t,e,n){var r=Math.round(n);return"M "+Math.round(t)+", "+Math.round(e)+" m "+-r+", 0\n a "+r+", "+r+" 0 1,0 "+2*r+",0\n a "+r+", "+r+" 0 1,0 "+2*-r+",0"},square:function(t,e,n){var r=.87*n,a=Math.round(t-r),i=Math.round(t+r),o=Math.round(e-r),u=Math.round(e+r);return"M "+a+", "+u+"\n L "+i+", "+u+"\n L "+i+", "+o+"\n L "+a+", "+o+"\n z"},diamond:function(t,e,n){var r=.87*n,a=Math.sqrt(r*r*2);return"M "+Math.round(t)+", "+Math.round(e+a)+"\n L "+Math.round(t+a)+", "+Math.round(e)+"\n L "+Math.round(t)+", "+Math.round(e-a)+"\n L "+Math.round(t-a)+", "+Math.round(e)+"\n z"},triangleDown:function(t,e,n){var r=n/2*Math.sqrt(3),a=Math.round(t-n),i=Math.round(t+n),o=Math.round(e-n),u=Math.round(e+r);return"M "+a+", "+o+"\n L "+i+", "+o+"\n L "+Math.round(t)+", "+u+"\n z"},triangleUp:function(t,e,n){var r=n/2*Math.sqrt(3),a=Math.round(t-n),i=Math.round(t+n),o=Math.round(e-r),u=Math.round(e+n);return"M "+a+", "+u+"\n L "+i+", "+u+"\n L "+Math.round(t)+", "+o+"\n z"},plus:function(t,e,n){var r=1.1*n;return"M "+Math.round(t-r/2.5)+", "+Math.round(e+r)+"\n L "+Math.round(t+r/2.5)+", "+Math.round(e+r)+"\n L "+Math.round(t+r/2.5)+", "+Math.round(e+r/2.5)+"\n L "+Math.round(t+r)+", "+Math.round(e+r/2.5)+"\n L "+Math.round(t+r)+", "+Math.round(e-r/2.5)+"\n L "+Math.round(t+r/2.5)+", "+Math.round(e-r/2.5)+"\n L "+Math.round(t+r/2.5)+", "+Math.round(e-r)+"\n L "+Math.round(t-r/2.5)+", "+Math.round(e-r)+"\n L "+Math.round(t-r/2.5)+", "+Math.round(e-r/2.5)+"\n L "+Math.round(t-r)+", "+Math.round(e-r/2.5)+"\n L "+Math.round(t-r)+", "+Math.round(e+r/2.5)+"\n L "+Math.round(t-r/2.5)+", "+Math.round(e+r/2.5)+"\n z"},star:function(t,e,n){var r=1.35*n,i=Math.PI/5;return"M "+a()(10).map(function(n){var a=n%2==0?r:r/2;return a*Math.sin(i*(n+1))+t+",\n "+(a*Math.cos(i*(n+1))+e)}).join("L")+" z"}}},function(t,e,n){function r(t){return function(e,n,r){return r&&"number"!=typeof r&&i(e,n,r)&&(n=r=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),r=void 0===r?e<n?1:-1:o(r),a(e,n,r,t)}}var a=n(314),i=n(73),o=n(315);t.exports=r},function(t,e){function n(t,e,n,i){for(var o=-1,u=a(r((e-t)/(n||1)),0),c=Array(u);u--;)c[i?u:++o]=t,t+=n;return c}var r=Math.ceil,a=Math.max;t.exports=n},function(t,e,n){function r(t){if(!t)return 0===t?t:0;if((t=a(t))===i||t===-i){return(t<0?-1:1)*o}return t===t?t:0}var a=n(316),i=1/0,o=1.7976931348623157e308;t.exports=r},function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return o;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var n=s.test(t);return n||l.test(t)?f(t.slice(2),n?2:8):c.test(t)?o:+t}var a=n(9),i=n(47),o=NaN,u=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;t.exports=r},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(7),c=n.n(u),s=n(4),l=n.n(s),f=n(0),h=n.n(f),p=n(1),d=n.n(p),y=n(15),v=n(90),b=n(2),g=n(3),m=n(86),_=n(82),x=n(89),O=n(152),w=n(84),j=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),M={cornerRadius:5,pointerLength:10,pointerWidth:10},k=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),j(e,[{key:"shouldComponentUpdate",value:function(t){return!g.a.areVictoryPropsEqual(this.props,t)}},{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal;if(t.polar)return this.getPolarOrientation(t,e);var r=n?"right":"top",a=n?"left":"bottom";return e&&e.y<0?a:r}},{key:"getPolarOrientation",value:function(t,e){var n=m.a.getDegrees(t,e),r=t.labelPlacement||"vertical";return" vertical"===r?this.getVerticalOrientations(n):"parallel"===r?n<90||n>270?"right":"left":n>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getEvaluatedProps",value:function(t){var e=t.horizontal,n=t.datum,r=t.pointerLength,a=t.pointerWidth,i=t.cornerRadius,o=t.width,u=t.height,c=t.dx,s=t.dy,f=t.text,h=t.active,p=Array.isArray(t.style)?t.style.map(function(t){return b.a.evaluateStyle(t,n,h)}):b.a.evaluateStyle(t.style,n,h),d=b.a.evaluateStyle(t.flyoutStyle,n,h),y=d&&d.padding||0,v=e?y:0,g=e?0:y,m=b.a.evaluateProp(t.orientation,n,h)||this.getDefaultOrientation(t);return l()({},t,{style:p,flyoutStyle:d,orientation:m,dx:void 0!==c?b.a.evaluateProp(c,n,h):v,dy:void 0!==s?b.a.evaluateProp(s,n,h):g,cornerRadius:b.a.evaluateProp(i,n,h),pointerLength:b.a.evaluateProp(r,n,h),pointerWidth:b.a.evaluateProp(a,n,h),width:b.a.evaluateProp(o,n,h),height:b.a.evaluateProp(u,n,h),active:b.a.evaluateProp(h,n,h),text:b.a.evaluateProp(f,n,h)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,r=t.datum,a=t.theme,i=t.active,o=a&&a.tooltip&&a.tooltip.style?a.tooltip.style:{},u=Array.isArray(e)?e.map(function(t){return c()({},t,o)}):c()({},e,o),s=a&&a.tooltip&&a.tooltip.flyoutStyle?a.tooltip.flyoutStyle:{},l=t.flyoutStyle?c()({},t.flyoutStyle,s):s,f=Array.isArray(u)?u.map(function(t){return b.a.evaluateStyle(t,r,i)}):b.a.evaluateStyle(u,r,i),h=v.a.approximateTextSize(n,f),p=this.getDimensions(t,h,f);return{labelStyle:f,flyoutStyle:l,labelSize:h,flyoutDimensions:p,flyoutCenter:this.getFlyoutCenter(t,p),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,r=t.style,a=r||{},i=a.angle||t.angle||this.getDefaultAngle(t);return i?"rotate("+i+" "+e+" "+n+")":void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,r=t.orientation,a=t.datum;if(!e||!n||"vertical"===n)return 0;var i=m.a.getDegrees(t,a),o=i>90&&i<180||i>270?1:-1,u="perpendicular"===n?0:90,c=void 0;return 0===i||180===i?c="top"===r&&180===i?270:90:i>0&&i<180?c=90-i:i>180&&i<360&&(c=270-i),c+o*u}},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,r=t.y,a=t.dx,i=t.dy,o=t.pointerLength,u=t.orientation,c=e.height,s=e.width,l="left"===u?-1:1,f="bottom"===u?-1:1;return{x:"left"===u||"right"===u?n+l*(o+s/2+a):n+a,y:"top"===u||"bottom"===u?r-f*(o+c/2+i):r-i}}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e=Array.isArray(t)?t.map(function(t){return t.padding}):[t.padding];return Math.max.apply(Math,r(e).concat([0]))}},{key:"getDimensions",value:function(t,e,n){var r=t.orientation,a=t.cornerRadius,i=t.pointerLength,o=t.pointerWidth,u=this.getLabelPadding(n);return{height:t.height||function(){var t=e.height+u,n="top"===r||"bottom"===r?2*a:2*a+o;return Math.max(n,t)}()+u/2,width:t.width||function(){var t=e.width+u,n="left"===r||"right"===r?2*a+i:2*a;return Math.max(n,t)}()+u}}},{key:"getLabelProps",value:function(t,e){var n=e.flyoutCenter,r=e.labelStyle,a=e.labelSize,i=e.dy,o=e.dx,u=t.text,s=t.datum,l=t.labelComponent,f=t.index,h=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return c()({},l.props,{key:"label-"+f,text:u,datum:s,textAnchor:h,dy:i,dx:o,style:r,x:h&&"middle"!==h?function(){var t="end"===h?-1:1;return n.x-t*(a.width/2)}():n.x,y:n.y,verticalAnchor:"middle",angle:r.angle})}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,r=e.flyoutStyle,a=t.x,i=t.y,o=t.dx,u=t.dy,s=t.datum,l=t.index,f=t.orientation,h=t.pointerLength,p=t.pointerWidth,d=t.cornerRadius,y=t.events,v=t.flyoutComponent;return c()({},v.props,{x:a,y:i,dx:o,dy:u,datum:s,index:l,orientation:f,pointerLength:h,pointerWidth:p,cornerRadius:d,events:y,key:"flyout-"+l,width:n.width,height:n.height,style:r})}},{key:"renderTooltip",value:function(t){var e=this.getEvaluatedProps(t),n=e.flyoutComponent,r=e.labelComponent,a=e.groupComponent,i=e.active,o=e.renderInPortal;if(!i)return o?h.a.createElement(w.a,null,null):null;var u=this.getCalculatedValues(e),c=[h.a.cloneElement(n,this.getFlyoutProps(e,u)),h.a.cloneElement(r,this.getLabelProps(e,u))],s=h.a.cloneElement(a,{role:"presentation",transform:u.transform},c);return o?h.a.createElement(w.a,null,s):s}},{key:"render",value:function(){var t=b.a.modifyProps(this.props,M,"tooltip");return this.renderTooltip(t)}}]),e}(h.a.Component);k.displayName="VictoryTooltip",k.propTypes={activateData:d.a.bool,active:d.a.oneOfType([d.a.bool,d.a.func]),angle:d.a.number,cornerRadius:d.a.oneOfType([y.a.nonNegative,d.a.func]),data:d.a.array,datum:d.a.object,dx:d.a.oneOfType([d.a.number,d.a.func]),dy:d.a.oneOfType([d.a.number,d.a.func]),events:d.a.object,flyoutComponent:d.a.element,flyoutStyle:d.a.object,groupComponent:d.a.element,height:d.a.oneOfType([y.a.nonNegative,d.a.func]),horizontal:d.a.bool,index:d.a.oneOfType([d.a.number,d.a.string]),labelComponent:d.a.element,orientation:d.a.oneOfType([d.a.oneOf(["top","bottom","left","right"]),d.a.func]),pointerLength:d.a.oneOfType([y.a.nonNegative,d.a.func]),pointerWidth:d.a.oneOfType([y.a.nonNegative,d.a.func]),polar:d.a.bool,renderInPortal:d.a.bool,style:d.a.oneOfType([d.a.object,d.a.array]),text:d.a.oneOfType([d.a.string,d.a.number,d.a.func,d.a.array]),theme:d.a.object,width:d.a.oneOfType([y.a.nonNegative,d.a.func]),x:d.a.number,y:d.a.number},k.defaultProps={theme:x.a.grayscale,active:!1,renderInPortal:!0,labelComponent:h.a.createElement(_.a,null),flyoutComponent:h.a.createElement(O.a,null),groupComponent:h.a.createElement("g",null)},k.defaultEvents=function(t){return[{target:"data",eventHandlers:{onMouseOver:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onTouchStart:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}]},onMouseOut:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!1}}},{target:"data",mutation:function(){return{active:!1}}}]:[{target:"labels",mutation:function(){return{active:!1}}}]},onTouchEnd:function(){return t.activateData?[{target:"labels",mutation:function(){return{active:!1}}},{target:"data",mutation:function(){return{active:!1}}}]:[{target:"labels",mutation:function(){return{active:!1}}}]}}}]}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(141),u=n.n(o),c=n(4),s=n.n(c),l=n(0),f=n.n(l),h=n(1),p=n.n(h),d=n(2),y=n(8),v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),b(e,[{key:"componentWillMount",value:function(){this.style=this.getStyle(this.props)}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.cx,r=e.cy,a=e.r,i=this.getStyle(t);return n!==t.cx||r!==t.cy||a!==t.r?(this.style=i,!0):!u()(i,this.style)&&(this.style=i,!0)}},{key:"getStyle",value:function(t){var e=t.style,n=t.datum,r=t.active;return d.a.evaluateStyle(s()({stroke:"black",fill:"none"},e),n,r)}},{key:"getArcPath",value:function(t){var e=t.cx,n=t.cy,r=t.r,a=t.startAngle,i=t.endAngle,o=t.closedPath,u=Math.abs(i-a)/2+a,c=e+r*Math.cos(d.a.degreesToRadians(a)),s=n-r*Math.sin(d.a.degreesToRadians(a)),l=e+r*Math.cos(d.a.degreesToRadians(u)),f=n-r*Math.sin(d.a.degreesToRadians(u)),h=e+r*Math.cos(d.a.degreesToRadians(i)),p=n-r*Math.sin(d.a.degreesToRadians(i)),y=u-a<=180?0:1,v=i-u<=180?0:1;return(o?" M "+e+", "+n+" L "+c+", "+s:"M "+c+", "+s)+" A "+r+", "+r+", 0, "+y+", 0, "+l+", "+f+" A "+r+", "+r+", 0, "+v+", 0, "+h+", "+p+" "+(o?"Z":"")}},{key:"renderAxisLine",value:function(t,e,n){var r=t.role,a=t.shapeRendering,i=t.className,o=this.getArcPath(t);return f.a.createElement("path",v({className:i,d:o,style:e,role:r||"presentation",shapeRendering:a||"auto"},n))}},{key:"render",value:function(){return this.renderAxisLine(this.props,this.style,this.props.events)}}]),e}(f.a.Component);g.propTypes=v({},y.a,{closedPath:p.a.bool,cx:p.a.number,cy:p.a.number,datum:p.a.any,endAngle:p.a.number,r:p.a.number,startAngle:p.a.number})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(4),u=n.n(o),c=n(0),s=n.n(c),l=n(1),f=n.n(l),h=n(3),p=n(2),d=n(153),y=n(54),v=n(8),b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),m=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),g(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.areaPath,r=t.linePath;this.style=e,this.areaPath=n,this.linePath=r}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.areaPath,a=e.linePath,i=this.props,o=i.className,u=i.interpolation;return!h.a.allSetsEqual([[o,t.className],[u,t.interpolation],[a,this.linePath],[r,this.areaPath],[n,this.style]])&&(this.style=n,this.areaPath=r,this.linePath=a,!0)}},{key:"getLineFunction",value:function(t){var e=t.polar,n=t.scale,r=this.toNewName(t.interpolation);return e?y.lineRadial().defined(d.a).curve(y[r+"Closed"]).angle(Object(d.b)(n)).radius(Object(d.d)(n)):y.line().defined(d.a).curve(y[r]).x(Object(d.c)(n)).y(Object(d.e)(n))}},{key:"getAreaFunction",value:function(t){var e=t.polar,n=t.scale,r=this.toNewName(t.interpolation);return e?y.radialArea().defined(d.a).curve(y[r+"Closed"]).angle(Object(d.b)(n)).outerRadius(Object(d.e)(n)).innerRadius(Object(d.d)(n)):y.area().defined(d.a).curve(y[r]).x(Object(d.c)(n)).y1(Object(d.e)(n)).y0(Object(d.d)(n))}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.data,r=t.active,a=this.getAreaFunction(t),i=this.getLineFunction(t);return{style:p.a.evaluateStyle(u()({fill:"black"},e),n,r),areaPath:a(n),linePath:i(n)}}},{key:"toNewName",value:function(t){return"curve"+function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t)}},{key:"renderArea",value:function(t,e,n){var r=e.stroke?"none":e.fill,a=u()({},e,{stroke:r}),i=this.props,o=i.role,c=i.shapeRendering,l=i.className,f=i.polar,h=i.origin,p=f&&h?"translate("+h.x+", "+h.y+")":void 0;return s.a.createElement("path",b({key:"area",style:a,shapeRendering:c||"auto",role:o||"presentation",d:t,transform:p,className:l},n))}},{key:"renderLine",value:function(t,e,n){if(!e.stroke||"none"===e.stroke||"transparent"===e.stroke)return null;var r=this.props,a=r.role,i=r.shapeRendering,o=r.className,c=r.polar,l=r.origin,f=c&&l?"translate("+l.x+", "+l.y+")":void 0,h=u()({},e,{fill:"none"});return s.a.createElement("path",b({key:"area-stroke",style:h,shapeRendering:i||"auto",role:a||"presentation",d:t,transform:f,className:o},n))}},{key:"render",value:function(){var t=this.props,e=t.events,n=t.groupComponent,r=this.renderArea(this.areaPath,this.style,e),a=this.renderLine(this.linePath,this.style,e);if(!a)return r;var i=[r,a].map(function(t,e){return s.a.cloneElement(t,{key:e})});return s.a.cloneElement(n,{},i)}}]),e}(s.a.Component);m.propTypes=b({},v.a,{groupComponent:f.a.element,interpolation:f.a.string}),m.defaultProps={groupComponent:s.a.createElement("g",null)}},function(t,e,n){"use strict";function r(t){return t.innerRadius}function a(t){return t.outerRadius}function i(t){return t.startAngle}function o(t){return t.endAngle}function u(t){return t&&t.padAngle}function c(t,e,n,r,a,i,o,u){var c=n-t,s=r-e,l=o-a,f=u-i,h=(l*(e-i)-f*(t-a))/(f*c-l*s);return[t+h*c,e+h*s]}function s(t,e,n,r,a,i,o){var u=t-n,c=e-r,s=(o?i:-i)/Object(h.l)(u*u+c*c),l=s*c,f=-s*u,p=t+l,d=e+f,y=n+l,v=r+f,b=(p+y)/2,g=(d+v)/2,m=y-p,_=v-d,x=m*m+_*_,O=a-i,w=p*v-y*d,j=(_<0?-1:1)*Object(h.l)(Object(h.h)(0,O*O*x-w*w)),M=(w*_-m*j)/x,k=(-w*m-_*j)/x,T=(w*_+m*j)/x,A=(-w*m+_*j)/x,P=M-b,E=k-g,C=T-b,S=A-g;return P*P+E*E>C*C+S*S&&(M=T,k=A),{cx:M,cy:k,x01:-l,y01:-f,x11:M*(a/O-1),y11:k*(a/O-1)}}var l=n(30),f=n(16),h=n(31);e.a=function(){function t(){var t,r,a=+e.apply(this,arguments),i=+n.apply(this,arguments),o=y.apply(this,arguments)-h.g,u=v.apply(this,arguments)-h.g,f=Object(h.a)(u-o),m=u>o;if(g||(g=t=Object(l.a)()),i<a&&(r=i,i=a,a=r),i>h.f)if(f>h.m-h.f)g.moveTo(i*Object(h.e)(o),i*Object(h.k)(o)),g.arc(0,0,i,o,u,!m),a>h.f&&(g.moveTo(a*Object(h.e)(u),a*Object(h.k)(u)),g.arc(0,0,a,u,o,m));else{var _,x,O=o,w=u,j=o,M=u,k=f,T=f,A=b.apply(this,arguments)/2,P=A>h.f&&(d?+d.apply(this,arguments):Object(h.l)(a*a+i*i)),E=Object(h.i)(Object(h.a)(i-a)/2,+p.apply(this,arguments)),C=E,S=E;if(P>h.f){var N=Object(h.c)(P/a*Object(h.k)(A)),R=Object(h.c)(P/i*Object(h.k)(A));(k-=2*N)>h.f?(N*=m?1:-1,j+=N,M-=N):(k=0,j=M=(o+u)/2),(T-=2*R)>h.f?(R*=m?1:-1,O+=R,w-=R):(T=0,O=w=(o+u)/2)}var D=i*Object(h.e)(O),L=i*Object(h.k)(O),F=a*Object(h.e)(M),I=a*Object(h.k)(M);if(E>h.f){var W=i*Object(h.e)(w),U=i*Object(h.k)(w),z=a*Object(h.e)(j),q=a*Object(h.k)(j);if(f<h.j){var B=k>h.f?c(D,L,z,q,W,U,F,I):[F,I],V=D-B[0],H=L-B[1],Y=W-B[0],X=U-B[1],K=1/Object(h.k)(Object(h.b)((V*Y+H*X)/(Object(h.l)(V*V+H*H)*Object(h.l)(Y*Y+X*X)))/2),$=Object(h.l)(B[0]*B[0]+B[1]*B[1]);C=Object(h.i)(E,(a-$)/(K-1)),S=Object(h.i)(E,(i-$)/(K+1))}}T>h.f?S>h.f?(_=s(z,q,D,L,i,S,m),x=s(W,U,F,I,i,S,m),g.moveTo(_.cx+_.x01,_.cy+_.y01),S<E?g.arc(_.cx,_.cy,S,Object(h.d)(_.y01,_.x01),Object(h.d)(x.y01,x.x01),!m):(g.arc(_.cx,_.cy,S,Object(h.d)(_.y01,_.x01),Object(h.d)(_.y11,_.x11),!m),g.arc(0,0,i,Object(h.d)(_.cy+_.y11,_.cx+_.x11),Object(h.d)(x.cy+x.y11,x.cx+x.x11),!m),g.arc(x.cx,x.cy,S,Object(h.d)(x.y11,x.x11),Object(h.d)(x.y01,x.x01),!m))):(g.moveTo(D,L),g.arc(0,0,i,O,w,!m)):g.moveTo(D,L),a>h.f&&k>h.f?C>h.f?(_=s(F,I,W,U,a,-C,m),x=s(D,L,z,q,a,-C,m),g.lineTo(_.cx+_.x01,_.cy+_.y01),C<E?g.arc(_.cx,_.cy,C,Object(h.d)(_.y01,_.x01),Object(h.d)(x.y01,x.x01),!m):(g.arc(_.cx,_.cy,C,Object(h.d)(_.y01,_.x01),Object(h.d)(_.y11,_.x11),!m),g.arc(0,0,a,Object(h.d)(_.cy+_.y11,_.cx+_.x11),Object(h.d)(x.cy+x.y11,x.cx+x.x11),m),g.arc(x.cx,x.cy,C,Object(h.d)(x.y11,x.x11),Object(h.d)(x.y01,x.x01),!m))):g.arc(0,0,a,M,j,m):g.lineTo(F,I)}else g.moveTo(0,0);if(g.closePath(),t)return g=null,t+""||null}var e=r,n=a,p=Object(f.a)(0),d=null,y=i,v=o,b=u,g=null;return t.centroid=function(){var t=(+e.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+y.apply(this,arguments)+ +v.apply(this,arguments))/2-h.j/2;return[Object(h.e)(r)*t,Object(h.k)(r)*t]},t.innerRadius=function(n){return arguments.length?(e="function"==typeof n?n:Object(f.a)(+n),t):e},t.outerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Object(f.a)(+e),t):n},t.cornerRadius=function(e){return arguments.length?(p="function"==typeof e?e:Object(f.a)(+e),t):p},t.padRadius=function(e){return arguments.length?(d=null==e?null:"function"==typeof e?e:Object(f.a)(+e),t):d},t.startAngle=function(e){return arguments.length?(y="function"==typeof e?e:Object(f.a)(+e),t):y},t.endAngle=function(e){return arguments.length?(v="function"==typeof e?e:Object(f.a)(+e),t):v},t.padAngle=function(e){return arguments.length?(b="function"==typeof e?e:Object(f.a)(+e),t):b},t.context=function(e){return arguments.length?(g=null==e?null:e,t):g},t}},function(t,e,n){"use strict";function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new r}var i=Math.PI,o=2*i,u=o-1e-6;r.prototype=a.prototype={constructor:r,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,a,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+i)},arcTo:function(t,e,n,r,a){t=+t,e=+e,n=+n,r=+r,a=+a;var o=this._x1,u=this._y1,c=n-t,s=r-e,l=o-t,f=u-e,h=l*l+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(f*c-s*l)>1e-6&&a){var p=n-o,d=r-u,y=c*c+s*s,v=p*p+d*d,b=Math.sqrt(y),g=Math.sqrt(h),m=a*Math.tan((i-Math.acos((y+h-v)/(2*b*g)))/2),_=m/g,x=m/b;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*l)+","+(e+_*f)),this._+="A"+a+","+a+",0,0,"+ +(f*p>l*d)+","+(this._x1=t+x*c)+","+(this._y1=e+x*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,a,c){t=+t,e=+e,n=+n;var s=n*Math.cos(r),l=n*Math.sin(r),f=t+s,h=e+l,p=1^c,d=c?r-a:a-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(d<0&&(d=d%o+o),d>u?this._+="A"+n+","+n+",0,1,"+p+","+(t-s)+","+(e-l)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=i)+","+p+","+(this._x1=t+n*Math.cos(a))+","+(this._y1=e+n*Math.sin(a))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.a=a},function(t,e,n){"use strict";var r=n(16),a=n(323),i=n(324),o=n(31);e.a=function(){function t(t){var r,a,i,f,h,p=t.length,d=0,y=new Array(p),v=new Array(p),b=+c.apply(this,arguments),g=Math.min(o.m,Math.max(-o.m,s.apply(this,arguments)-b)),m=Math.min(Math.abs(g)/p,l.apply(this,arguments)),_=m*(g<0?-1:1);for(r=0;r<p;++r)(h=v[y[r]=r]=+e(t[r],r,t))>0&&(d+=h);for(null!=n?y.sort(function(t,e){return n(v[t],v[e])}):null!=u&&y.sort(function(e,n){return u(t[e],t[n])}),r=0,i=d?(g-p*_)/d:0;r<p;++r,b=f)a=y[r],h=v[a],f=b+(h>0?h*i:0)+_,v[a]={data:t[a],index:r,value:h,startAngle:b,endAngle:f,padAngle:m};return v}var e=i.a,n=a.a,u=null,c=Object(r.a)(0),s=Object(r.a)(o.m),l=Object(r.a)(0);return t.value=function(n){return arguments.length?(e="function"==typeof n?n:Object(r.a)(+n),t):e},t.sortValues=function(e){return arguments.length?(n=e,u=null,t):n},t.sort=function(e){return arguments.length?(u=e,n=null,t):u},t.startAngle=function(e){return arguments.length?(c="function"==typeof e?e:Object(r.a)(+e),t):c},t.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:Object(r.a)(+e),t):s},t.padAngle=function(e){return arguments.length?(l="function"==typeof e?e:Object(r.a)(+e),t):l},t}},function(t,e,n){"use strict";e.a=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(155),a=n(154),i=n(156);e.a=function(){var t=Object(a.a)().curve(r.a),e=t.curve,n=t.lineX0,o=t.lineX1,u=t.lineY0,c=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 Object(i.b)(n())},delete t.lineX0,t.lineEndAngle=function(){return Object(i.b)(o())},delete t.lineX1,t.lineInnerRadius=function(){return Object(i.b)(u())},delete t.lineY0,t.lineOuterRadius=function(){return Object(i.b)(c())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Object(r.b)(t)):e()._curve},t}},function(t,e,n){"use strict";function r(t){return t.source}function a(t){return t.target}function i(t){function e(){var e,r=p.a.call(arguments),a=n.apply(this,r),s=i.apply(this,r);if(c||(c=e=Object(h.a)()),t(c,+o.apply(this,(r[0]=a,r)),+u.apply(this,r),+o.apply(this,(r[0]=s,r)),+u.apply(this,r)),e)return c=null,e+""||null}var n=r,i=a,o=y.a,u=y.b,c=null;return e.source=function(t){return arguments.length?(n=t,e):n},e.target=function(t){return arguments.length?(i=t,e):i},e.x=function(t){return arguments.length?(o="function"==typeof t?t:Object(d.a)(+t),e):o},e.y=function(t){return arguments.length?(u="function"==typeof t?t:Object(d.a)(+t),e):u},e.context=function(t){return arguments.length?(c=null==t?null:t,e):c},e}function o(t,e,n,r,a){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,a,r,a)}function u(t,e,n,r,a){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+a)/2,r,n,r,a)}function c(t,e,n,r,a){var i=Object(v.a)(e,n),o=Object(v.a)(e,n=(n+a)/2),u=Object(v.a)(r,n),c=Object(v.a)(r,a);t.moveTo(i[0],i[1]),t.bezierCurveTo(o[0],o[1],u[0],u[1],c[0],c[1])}function s(){return i(o)}function l(){return i(u)}function f(){var t=i(c);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}e.a=s,e.c=l,e.b=f;var h=n(30),p=n(158),d=n(16),y=n(92),v=n(157)},function(t,e,n){"use strict";n.d(e,"b",function(){return h});var r=n(30),a=n(159),i=n(160),o=n(161),u=n(162),c=n(163),s=n(164),l=n(165),f=n(16),h=[a.a,i.a,o.a,c.a,u.a,s.a,l.a];e.a=function(){function t(){var t;if(i||(i=t=Object(r.a)()),e.apply(this,arguments).draw(i,+n.apply(this,arguments)),t)return i=null,t+""||null}var e=Object(f.a)(a.a),n=Object(f.a)(64),i=null;return t.type=function(n){return arguments.length?(e="function"==typeof n?n:Object(f.a)(n),t):e},t.size=function(e){return arguments.length?(n="function"==typeof e?e:Object(f.a)(+e),t):n},t.context=function(e){return arguments.length?(i=null==e?null:e,t):i},t}},function(t,e,n){"use strict";function r(t){this._context=t}var a=n(56),i=n(57);r.prototype={areaStart:a.a,areaEnd:a.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Object(i.c)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t){this._context=t}var a=n(57);r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Object(a.c)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t,e){this._basis=new a.a(t),this._beta=e}var a=n(57);r.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,a=t[0],i=e[0],o=t[n]-a,u=e[n]-i,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(a+r*o),this._beta*e[c]+(1-this._beta)*(i+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}},e.a=function t(e){function n(t){return 1===e?new a.a(t):new r(t,e)}return n.beta=function(e){return t(+e)},n}(.85)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._alpha=e}var a=n(166),i=n(56),o=n(93);r.prototype={areaStart:i.a,areaEnd:i.a,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(o.b)(this,t,e)}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=e}},e.a=function t(e){function n(t){return e?new r(t,e):new a.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._alpha=e}var a=n(167),i=n(93);r.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Object(i.b)(this,t,e)}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=e}},e.a=function t(e){function n(t){return e?new r(t,e):new a.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t){this._context=t}var a=n(56);r.prototype={areaStart:a.a,areaEnd:a.a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t){return t<0?-1:1}function a(t,e,n){var a=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(a||i<0&&-0),u=(n-t._y1)/(i||a<0&&-0),c=(o*i+u*a)/(a+i);return(r(o)+r(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(c))||0}function i(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function o(t,e,n){var r=t._x0,a=t._y0,i=t._x1,o=t._y1,u=(i-r)/3;t._context.bezierCurveTo(r+u,a+u*e,i-u,o-u*n,i,o)}function u(t){this._context=t}function c(t){this._context=new s(t)}function s(t){this._context=t}function l(t){return new u(t)}function f(t){return new c(t)}e.a=l,e.b=f,u.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:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,o(this,i(this,n=a(this,t,e)),n);break;default:o(this,this._t0,n=a(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(c.prototype=Object.create(u.prototype)).point=function(t,e){u.prototype.point.call(this,e,t)},s.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,a,i){this._context.bezierCurveTo(e,t,r,n,i,a)}}},function(t,e,n){"use strict";function r(t){this._context=t}function a(t){var e,n,r=t.length-1,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)a[e]=1,i[e]=4,o[e]=4*t[e]+2*t[e+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=a[e]/i[e-1],i[e]-=n,o[e]-=n*o[e-1];for(a[r-1]=o[r-1]/i[r-1],e=r-2;e>=0;--e)a[e]=(o[e]-a[e+1])/i[e];for(i[r-1]=(t[r]+a[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-a[e+1];return[a,i]}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=a(t),i=a(e),o=0,u=1;u<n;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],e[u]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t,e){this._context=t,this._t=e}function a(t){return new r(t,0)}function i(t){return new r(t,1)}e.c=a,e.b=i,r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},e.a=function(t){return new r(t,.5)}},function(t,e,n){"use strict";function r(t,e){return t[e]}var a=n(158),i=n(16),o=n(32),u=n(33);e.a=function(){function t(t){var r,a,i=e.apply(this,arguments),o=t.length,u=i.length,l=new Array(u);for(r=0;r<u;++r){for(var f,h=i[r],p=l[r]=new Array(o),d=0;d<o;++d)p[d]=f=[0,+s(t[d],h,d,t)],f.data=t[d];p.key=h}for(r=0,a=n(l);r<u;++r)l[a[r]].index=r;return c(l,a),l}var e=Object(i.a)([]),n=u.a,c=o.a,s=r;return t.keys=function(n){return arguments.length?(e="function"==typeof n?n:Object(i.a)(a.a.call(n)),t):e},t.value=function(e){return arguments.length?(s="function"==typeof e?e:Object(i.a)(+e),t):s},t.order=function(e){return arguments.length?(n=null==e?u.a:"function"==typeof e?e:Object(i.a)(a.a.call(e)),t):n},t.offset=function(e){return arguments.length?(c=null==e?o.a:e,t):c},t}},function(t,e,n){"use strict";var r=n(32);e.a=function(t,e){if((a=t.length)>0){for(var n,a,i,o=0,u=t[0].length;o<u;++o){for(i=n=0;n<a;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<a;++n)t[n][o][1]/=i}Object(r.a)(t,e)}}},function(t,e,n){"use strict";e.a=function(t,e){if((u=t.length)>1)for(var n,r,a,i,o,u,c=0,s=t[e[0]].length;c<s;++c)for(i=o=0,n=0;n<u;++n)(a=(r=t[e[n]][c])[1]-r[0])>=0?(r[0]=i,r[1]=i+=a):a<0?(r[1]=o,r[0]=o+=a):r[0]=i}},function(t,e,n){"use strict";var r=n(32);e.a=function(t,e){if((n=t.length)>0){for(var n,a=0,i=t[e[0]],o=i.length;a<o;++a){for(var u=0,c=0;u<n;++u)c+=t[u][a][1]||0;i[a][1]+=i[a][0]=-c/2}Object(r.a)(t,e)}}},function(t,e,n){"use strict";var r=n(32);e.a=function(t,e){if((i=t.length)>0&&(a=(n=t[e[0]]).length)>0){for(var n,a,i,o=0,u=1;u<a;++u){for(var c=0,s=0,l=0;c<i;++c){for(var f=t[e[c]],h=f[u][1]||0,p=f[u-1][1]||0,d=(h-p)/2,y=0;y<c;++y){var v=t[e[y]];d+=(v[u][1]||0)-(v[u-1][1]||0)}s+=h,l+=d*h}n[u-1][1]+=n[u-1][0]=o,s&&(o-=l/s)}n[u-1][1]+=n[u-1][0]=o,Object(r.a)(t,e)}}},function(t,e,n){"use strict";var r=n(94);e.a=function(t){return Object(r.a)(t).reverse()}},function(t,e,n){"use strict";var r=n(33),a=n(94);e.a=function(t){var e,n,i=t.length,o=t.map(a.b),u=Object(r.a)(t).sort(function(t,e){return o[e]-o[t]}),c=0,s=0,l=[],f=[];for(e=0;e<i;++e)n=u[e],c<s?(c+=o[n],l.push(n)):(s+=o[n],f.push(n));return f.reverse().concat(l)}},function(t,e,n){"use strict";var r=n(33);e.a=function(t){return Object(r.a)(t).reverse()}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(4),c=n.n(u),s=n(0),l=n.n(s),f=n(1),h=n.n(f),p=n(2),d=n(3),y=n(8),v=n(54),b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),m=function(t){function e(){return a(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),g(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.datum,u=a.horizontal,c=a.x,s=a.y,l=a.y0;return!d.a.allSetsEqual([[i,t.className],[c,t.x],[s,t.y],[l,t.y0],[u,t.horizontal],[r,this.path],[n,this.style],[o,t.datum]])&&(this.style=n,this.path=r,!0)}},{key:"calculateAttributes",value:function(t){var e=t.datum,n=t.active,r=t.polar,a=t.style&&t.style.fill||"black",i={fill:"black",stroke:a},o=p.a.evaluateStyle(c()(i,t.style),e,n),u=this.getBarWidth(t,o);return{style:o,path:r?this.getPolarBarPath(t,u):this.getBarPath(t,u)}}},{key:"getPosition",value:function(t,e){var n=e/2,r=t.x,a=t.y,i=t.y0;return{y0:Math.round(i),y1:Math.round(a),x0:Math.round(r-n),x1:Math.round(r+n)}}},{key:"getVerticalBarPath",value:function(t,e){var n=this.getPosition(t,e),r=n.x0,a=n.x1,i=n.y0,o=n.y1;return"M "+r+", "+i+"\n L "+r+", "+o+"\n L "+a+", "+o+"\n L "+a+", "+i+"\n L "+r+", "+i+"\n z"}},{key:"getHorizontalBarPath",value:function(t,e){var n=this.getPosition(t,e),r=n.x0,a=n.x1,i=n.y0,o=n.y1;return"M "+i+", "+r+"\n L "+i+", "+a+"\n L "+o+", "+a+"\n L "+o+", "+r+"\n L "+i+", "+r+"\n z"}},{key:"transformAngle",value:function(t){return-1*t+Math.PI/2}},{key:"getAngularWidth",value:function(t,e){var n=t.scale,a=n.y.range(),i=Math.max.apply(Math,r(a)),o=Math.abs(n.x.range()[1]-n.x.range()[0]);return e/(2*Math.PI*i)*o}},{key:"getAngle",value:function(t,e){var n=t.data,r=t.scale,a=void 0===n[e]._x1?"_x":"_x1";return r.x(n[e][a])}},{key:"getStartAngle",value:function(t,e){var n=t.data,r=t.scale,a=this.getAngle(t,e),i=Math.abs(r.x.range()[1]-r.x.range()[0]),o=0===e?this.getAngle(t,n.length-1)-2*Math.PI:this.getAngle(t,e-1);return 0===e&&i<2*Math.PI?r.x.range()[0]:(a+o)/2}},{key:"getEndAngle",value:function(t,e){var n=t.data,r=t.scale,a=this.getAngle(t,e),i=Math.abs(r.x.range()[1]-r.x.range()[0]),o=r.x.range()[1]===2*Math.PI?this.getAngle(t,0)+2*Math.PI:r.x.range()[1],u=e===n.length-1?this.getAngle(t,0)+2*Math.PI:this.getAngle(t,e+1);return e===n.length-1&&i<2*Math.PI?o:(a+u)/2}},{key:"getVerticalPolarBarPath",value:function(t){var e=t.datum,n=t.scale,r=t.style,a=t.index,i=n.y(e._y0||0),o=n.y(void 0!==e._y1?e._y1:e._y),u=n.x(void 0!==e._x1?e._x1:e._x),c=void 0,s=void 0;if(r.width){var l=this.getAngularWidth(t,r.width);c=u-l/2,s=u+l/2}else c=this.getStartAngle(t,a),s=this.getEndAngle(t,a);return v.arc().innerRadius(i).outerRadius(o).startAngle(this.transformAngle(c)).endAngle(this.transformAngle(s))()}},{key:"getBarPath",value:function(t,e){return this.props.horizontal?this.getHorizontalBarPath(t,e):this.getVerticalBarPath(t,e)}},{key:"getPolarBarPath",value:function(t){return this.getVerticalPolarBarPath(t)}},{key:"getBarWidth",value:function(t,e){if(e.width)return e.width;var n=t.scale,r=t.data,a=n.x.range(),i=Math.abs(a[1]-a[0]),o=r.length+2,u=r.length<2?8:.5*i/o;return Math.max(1,Math.round(u))}},{key:"renderBar",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className,u=r.origin,c=r.polar,s=c&&u?"translate("+u.x+", "+u.y+")":void 0;return l.a.createElement("path",b({d:t,transform:s,className:o,style:e,role:a||"presentation",shapeRendering:i||"auto"},n))}},{key:"render",value:function(){return this.renderBar(this.path,this.style,this.props.events)}}]),e}(l.a.Component);m.propTypes=b({},y.a,{datum:h.a.object,horizontal:h.a.bool,padding:h.a.oneOfType([h.a.number,h.a.object]),width:h.a.number,x:h.a.number,y:h.a.number,y0:h.a.number})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(4),u=n.n(o),c=n(0),s=n.n(c),l=n(1),f=n.n(l),h=n(2),p=n(3),d=n(8),y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),v(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.candleWidth;this.style=e,this.candleWidth=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.className,r=e.candleHeight,a=e.datum,i=e.x,o=e.y,u=e.y1,c=e.y2,s=this.calculateAttributes(t),l=s.style,f=s.candleWidth;return!p.a.allSetsEqual([[n,t.className],[r,t.candleHeight],[i,t.x],[o,t.y],[u,t.y1],[c,t.y2],[f,this.candleWidth],[l,this.style],[a,t.datum]])&&(this.style=l,this.candleWidth=f,!0)}},{key:"calculateAttributes",value:function(t){var e=t.data,n=t.datum,r=t.active,a=t.width,i=h.a.evaluateStyle(u()({stroke:"black"},t.style),n,r),o=t.padding.left||t.padding;return{style:i,candleWidth:i.width||.5*(a-2*o)/e.length}}},{key:"renderWick",value:function(t){return s.a.createElement("line",t)}},{key:"renderCandle",value:function(t){return s.a.createElement("rect",t)}},{key:"getCandleProps",value:function(t){var e=t.candleHeight,n=t.x,r=t.y,a=t.events,i=t.role,o=t.className,c=t.shapeRendering||"auto",s=n-this.candleWidth/2;return u()({x:s,y:r,style:this.style,role:i,width:this.candleWidth,height:e,shapeRendering:c,className:o},a)}},{key:"getWickProps",value:function(t){var e=t.x,n=t.y1,r=t.y2,a=t.events,i=t.className,o=t.shapeRendering||"auto",c=t.role||"presentation";return u()({x1:e,x2:e,y1:n,y2:r,style:this.style,role:c,shapeRendering:o,className:i},a)}},{key:"render",value:function(){var t=this.getCandleProps(this.props),e=this.getWickProps(this.props);return s.a.cloneElement(this.props.groupComponent,{},this.renderWick(e),this.renderCandle(t))}}]),e}(s.a.Component);b.propTypes=y({},d.a,{candleHeight:f.a.number,datum:f.a.object,groupComponent:f.a.element,padding:f.a.oneOfType([f.a.number,f.a.object]),width:f.a.number,x:f.a.number,y:f.a.number,y1:f.a.number,y2:f.a.number}),b.defaultProps={groupComponent:s.a.createElement("g",null)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(4),u=n.n(o),c=n(0),s=n.n(c),l=n(1),f=n.n(l),h=n(2),p=n(153),d=n(3),y=n(54),v=n(8),b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),m=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),g(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.interpolation;return!d.a.allSetsEqual([[i,t.className],[o,t.interpolation],[r,this.path],[n,this.style]])&&(this.style=n,this.path=r,!0)}},{key:"getLineFunction",value:function(t){var e=t.polar,n=t.scale,r=t.openCurve,a=e&&!r?this.toNewName(t.interpolation)+"Closed":this.toNewName(t.interpolation);return e?y.lineRadial().defined(p.a).curve(y[a]).angle(Object(p.b)(n)).radius(Object(p.e)(n)):y.line().defined(p.a).curve(y[a]).x(Object(p.c)(n)).y(Object(p.e)(n))}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.data,r=t.active,a=this.getLineFunction(t);return{style:h.a.evaluateStyle(u()({fill:"none",stroke:"black"},e),n,r),path:a(n)}}},{key:"toNewName",value:function(t){return"curve"+function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t)}},{key:"renderLine",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className,u=r.polar,c=r.origin,l=u&&c?"translate("+c.x+", "+c.y+")":void 0;return s.a.createElement("path",b({style:e,shapeRendering:i||"auto",role:a||"presentation",d:t,transform:l,className:o},n))}},{key:"render",value:function(){var t=this.props.events;return this.renderLine(this.path,this.style,t)}}]),e}(s.a.Component);m.propTypes=b({},v.a,{interpolation:f.a.string,openCurve:f.a.bool,origin:f.a.object,polar:f.a.bool})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(4),u=n.n(o),c=n(0),s=n.n(c),l=n(1),f=n.n(l),h=n(2),p=n(3),d=n(8),y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=function(t){function e(t){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t))}return i(e,t),v(e,[{key:"componentWillMount",value:function(){this.style=this.getStyle(this.props)}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.borderWidth,r=e.className,a=e.datum,i=e.x,o=e.y,u=e.errorX,c=e.errorY,s=this.getStyle(t);return!p.a.allSetsEqual([[n,t.borderWidth],[r,t.className],[i,t.x],[o,t.y],[u,t.errorX],[c,t.errorY],[this.style,s],[a,t.datum]])&&(this.style=s,!0)}},{key:"getStyle",value:function(t){var e=t.style,n=t.datum,r=t.active;return h.a.evaluateStyle(u()({stroke:"black"},e),n,r)}},{key:"renderLine",value:function(t,e,n){return s.a.createElement("line",y({},t,{style:e},n))}},{key:"renderBorder",value:function(t,e,n){var r=t.x,a=t.y,i=t.borderWidth,o=t.events,u=t.style,c=t.role,s=t.shapeRendering,l=t.className,f="Right"===n||"Left"===n,h=e["error"+n],p={role:c,shapeRendering:s,className:l,key:"border"+n,x1:f?h:r-i,x2:f?h:r+i,y1:f?a-i:h,y2:f?a+i:h};return this.renderLine(p,u,o)}},{key:"renderCross",value:function(t,e,n){var r=t.x,a=t.y,i=t.events,o=t.style,u=t.role,c=t.shapeRendering,s=t.className,l="Top"===n||"Bottom"===n,f=e["error"+n],h={role:u,shapeRendering:c,className:s,key:"cross"+n,x1:r,x2:l?r:f,y1:a,y2:l?f:a};return this.renderLine(h,o,i)}},{key:"renderErrorBar",value:function(t,e){var n=e.groupComponent;return s.a.cloneElement(n,{},t.errorRight?this.renderBorder(e,t,"Right"):null,t.errorLeft?this.renderBorder(e,t,"Left"):null,t.errorBottom?this.renderBorder(e,t,"Bottom"):null,t.errorTop?this.renderBorder(e,t,"Top"):null,t.errorRight?this.renderCross(e,t,"Right"):null,t.errorLeft?this.renderCross(e,t,"Left"):null,t.errorBottom?this.renderCross(e,t,"Bottom"):null,t.errorTop?this.renderCross(e,t,"Top"):null)}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.borderWidth,a=t.groupComponent,i=t.events,o=t.errorX,u=t.errorY,c=t.scale,l=t.role,f=t.shapeRendering,h=t.className,p=void 0,d=void 0,y=void 0,v=void 0,b=void 0,g=void 0,m=void 0,_=void 0,x=void 0,O=void 0;o&&(p=c.x.range(),y=o[0],v=o[1],x=y>=p[1]?p[1]:y,O=v<=p[0]?p[0]:v),u&&(d=c.y.range(),b=u[1],g=u[0],m=b>=d[0]?d[0]:b,_=g<=d[1]?d[1]:g);var w={x:e,y:n,borderWidth:r,groupComponent:a,events:i,className:h,role:l||"presentation",shapeRendering:f||"auto",style:this.style};return s.a.cloneElement(this.props.groupComponent,{},this.renderErrorBar({errorTop:m,errorBottom:_,errorRight:x,errorLeft:O},w))}}]),e}(s.a.Component);b.propTypes=y({},d.a,{borderWidth:f.a.number,datum:f.a.object,errorX:f.a.oneOfType([f.a.number,f.a.array,f.a.bool]),errorY:f.a.oneOfType([f.a.number,f.a.array,f.a.bool]),groupComponent:f.a.element,x:f.a.number,y:f.a.number}),b.defaultProps={borderWidth:10,groupComponent:s.a.createElement("g",null)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(4),u=n.n(o),c=n(0),s=n.n(c),l=n(1),f=n.n(l),h=n(2),p=n(3),d=n(8),y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),v(e,[{key:"componentWillMount",value:function(){this.style=this.getStyle(this.props)}},{key:"shouldComponentUpdate",value:function(t){var e=this.props,n=e.className,r=e.datum,a=e.x1,i=e.x2,o=e.y1,u=e.y2,c=this.getStyle(t);return!p.a.allSetsEqual([[n,t.className],[a,t.x1],[i,t.x2],[o,t.y1],[u,t.y2],[c,this.style],[r,t.datum]])&&(this.style=c,!0)}},{key:"getStyle",value:function(t){var e=t.style,n=t.datum,r=t.active;return h.a.evaluateStyle(u()({stroke:"black"},e),n,r)}},{key:"renderAxisLine",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className;return s.a.createElement("line",y({},t,{className:o,style:e,role:a||"presentation",shapeRendering:i||"auto",vectorEffect:"non-scaling-stroke"},n))}},{key:"render",value:function(){var t=this.props,e=t.x1,n=t.x2,r=t.y1,a=t.y2,i=t.events;return this.renderAxisLine({x1:e,x2:n,y1:r,y2:a},this.style,i)}}]),e}(s.a.Component);b.propTypes=y({},d.a,{datum:f.a.any,x1:f.a.number,x2:f.a.number,y1:f.a.number,y2:f.a.number})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(0),u=n.n(o),c=n(1),s=n.n(c),l=n(2),f=n(3),h=n(8),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),d(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.path;this.style=e,this.path=n}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.path,a=this.props,i=a.className,o=a.datum,u=a.slice;return!f.a.allSetsEqual([[i,t.className],[r,this.path],[n,this.style],[o,t.datum],[u,t.slice]])&&(this.style=n,this.path=r,!0)}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.datum,r=t.active,a=t.pathFunction,i=t.slice;return{style:l.a.evaluateStyle(e,n,r),path:a(i)}}},{key:"renderSlice",value:function(t,e,n){var r=this.props,a=r.role,i=r.shapeRendering,o=r.className,c=r.origin,s=c?"translate("+c.x+", "+c.y+")":void 0;return u.a.createElement("path",p({d:t,className:o,role:a||"presentation",style:e,transform:s,shapeRendering:i||"auto"},n))}},{key:"render",value:function(){return this.renderSlice(this.path,this.style,this.props.events)}}]),e}(u.a.Component);y.propTypes=p({},h.a,{datum:s.a.object,pathFunction:s.a.func,slice:s.a.object}),e.a=y},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=n(0),u=n.n(o),c=n(1),s=n.n(c),l=n(2),f=n(3),h=n(8),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),d(e,[{key:"componentWillMount",value:function(){var t=this.calculateAttributes(this.props),e=t.style,n=t.circle,r=t.voronoi;this.style=e,this.circle=n,this.voronoi=r}},{key:"shouldComponentUpdate",value:function(t){var e=this.calculateAttributes(t),n=e.style,r=e.circle,a=e.voronoi,i=this.props,o=i.className,u=i.x,c=i.y,s=i.datum;return!f.a.allSetsEqual([[o,t.className],[u,t.x],[c,t.y],[r,this.circle],[a,this.voronoi],[n,this.style],[s,t.datum]])&&(this.style=n,this.circle=r,this.voronoi=a,!0)}},{key:"calculateAttributes",value:function(t){var e=t.style,n=t.datum,r=t.active;return{style:l.a.evaluateStyle(e,n,r),circle:this.getCirclePath(t),voronoi:this.getVoronoiPath(t)}}},{key:"getVoronoiPath",value:function(t){var e=t.polygon;return Array.isArray(e)&&e.length?"M "+t.polygon.join("L")+" Z":""}},{key:"getCirclePath",value:function(t){if(!t.size)return null;var e=t.x,n=t.y,r=t.datum,a=t.active,i=l.a.evaluateProp(t.size,r,a);return"M "+e+", "+n+" m "+-i+", 0\n a "+i+", "+i+" 0 1,0 "+2*i+",0\n a "+i+", "+i+" 0 1,0 "+2*-i+",0"}},{key:"renderPoint",value:function(t,e,n){var r=t.circle&&"clipPath-"+Math.random(),a=t.circle?"url(#"+r+")":void 0,i=this.props,o=i.role,c=i.shapeRendering,s=i.className,l=u.a.createElement("path",p({d:t.circle||t.voronoi,className:s,clipPath:a,style:e,role:o||"presentation",shapeRendering:c||"auto"},n));return t.circle?u.a.createElement("g",null,u.a.createElement("defs",null,u.a.createElement("clipPath",{id:r},u.a.createElement("path",{d:t.voronoi,className:s}))),l):l}},{key:"render",value:function(){var t={circle:this.circle,voronoi:this.voronoi};return this.renderPoint(t,this.style,this.props.events)}}]),e}(u.a.Component);y.propTypes=p({},h.a,{datum:s.a.object,polygon:s.a.array,size:s.a.number,x:s.a.number,y:s.a.number})},function(t,e,n){function r(t){return t&&t.length?a(t):[]}var a=n(353);t.exports=r},function(t,e,n){function r(t,e,n){var r=-1,f=i,h=t.length,p=!0,d=[],y=d;if(n)p=!1,f=o;else if(h>=l){var v=e?null:c(t);if(v)return s(v);p=!1,f=u,y=new a}else y=e?[]:d;t:for(;++r<h;){var b=t[r],g=e?e(b):b;if(b=n||0!==b?b:0,p&&g===g){for(var m=y.length;m--;)if(y[m]===g)continue t;e&&y.push(g),d.push(b)}else f(y,g,n)||(y!==d&&y.push(g),d.push(b))}return d}var a=n(65),i=n(146),o=n(147),u=n(66),c=n(354),s=n(355),l=200;t.exports=r},function(t,e){function n(){}t.exports=n},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(357);n.d(e,"scaleBand",function(){return r.a}),n.d(e,"scalePoint",function(){return r.b});var a=n(380);n.d(e,"scaleIdentity",function(){return a.a});var i=n(35);n.d(e,"scaleLinear",function(){return i.a});var o=n(391);n.d(e,"scaleLog",function(){return o.a});var u=n(181);n.d(e,"scaleOrdinal",function(){return u.a}),n.d(e,"scaleImplicit",function(){return u.b});var c=n(392);n.d(e,"scalePow",function(){return c.a}),n.d(e,"scaleSqrt",function(){return c.b});var s=n(393);n.d(e,"scaleQuantile",function(){return s.a});var l=n(394);n.d(e,"scaleQuantize",function(){return l.a});var f=n(395);n.d(e,"scaleThreshold",function(){return f.a});var h=n(189);n.d(e,"scaleTime",function(){return h.b});var p=n(411);n.d(e,"scaleUtc",function(){return p.a});var d=n(412);n.d(e,"schemeCategory10",function(){return d.a});var y=n(413);n.d(e,"schemeCategory20b",function(){return y.a});var v=n(414);n.d(e,"schemeCategory20c",function(){return v.a});var b=n(415);n.d(e,"schemeCategory20",function(){return b.a});var g=n(416);n.d(e,"interpolateCubehelixDefault",function(){return g.a});var m=n(417);n.d(e,"interpolateRainbow",function(){return m.b}),n.d(e,"interpolateWarm",function(){return m.c}),n.d(e,"interpolateCool",function(){return m.a});var _=n(418);n.d(e,"interpolateViridis",function(){return _.a}),n.d(e,"interpolateMagma",function(){return _.c}),n.d(e,"interpolateInferno",function(){return _.b}),n.d(e,"interpolatePlasma",function(){return _.d});var x=n(419);n.d(e,"scaleSequential",function(){return x.a})},function(t,e,n){"use strict";function r(){function t(){var t=i().length,r=s[1]<s[0],a=s[r-0],u=s[1-r];e=(u-a)/Math.max(1,t-f+2*h),l&&(e=Math.floor(e)),a+=(u-a-e*(t-f))*p,n=e*(1-f),l&&(a=Math.round(a),n=Math.round(n));var d=Object(o.e)(t).map(function(t){return a+e*t});return c(r?d.reverse():d)}var e,n,a=Object(u.a)().unknown(void 0),i=a.domain,c=a.range,s=[0,1],l=!1,f=0,h=0,p=.5;return delete a.unknown,a.domain=function(e){return arguments.length?(i(e),t()):i()},a.range=function(e){return arguments.length?(s=[+e[0],+e[1]],t()):s.slice()},a.rangeRound=function(e){return s=[+e[0],+e[1]],l=!0,t()},a.bandwidth=function(){return n},a.step=function(){return e},a.round=function(e){return arguments.length?(l=!!e,t()):l},a.padding=function(e){return arguments.length?(f=h=Math.max(0,Math.min(1,e)),t()):f},a.paddingInner=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),t()):f},a.paddingOuter=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),t()):h},a.align=function(e){return arguments.length?(p=Math.max(0,Math.min(1,e)),t()):p},a.copy=function(){return r().domain(i()).range(s).round(l).paddingInner(f).paddingOuter(h).align(p)},t()}function a(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return a(e())},t}function i(){return a(r().paddingInner(1))}e.a=r,e.b=i;var o=n(11),u=n(181)},function(t,e,n){"use strict";n(171)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(175),n(169),n(361),n(174),n(362),n(176),n(177),n(178)},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";n(175),n(22),n(34),n(97)},function(t,e,n){"use strict";n(172)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(34)},function(t,e,n){"use strict";n(22),n(34),n(97)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(22)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(180)},function(t,e,n){"use strict";var r=(n(375),n(376),n(98));n.d(e,"a",function(){return r.a});n(377),n(378),n(379)},function(t,e,n){"use strict";n(98)},function(t,e,n){"use strict";function r(){}function a(t,e){var n=new r;if(t instanceof r)t.each(function(t){n.add(t)});else if(t){var a=-1,i=t.length;if(null==e)for(;++a<i;)n.add(t[a]);else for(;++a<i;)n.add(e(t[a],a,t))}return n}var i=n(98),o=i.a.prototype;r.prototype=a.prototype={constructor:r,has:o.has,add:function(t){return t+="",this[i.b+t]=t,this},remove:o.remove,clear:o.clear,values:o.keys,size:o.size,empty:o.empty,each:o.each}},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";function r(){function t(t){return+t}var e=[0,1];return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=a.a.call(n,o.a),t):e.slice()},t.copy=function(){return r().domain(e)},Object(i.b)(t)}e.a=r;var a=n(17),i=n(35),o=n(182)},function(t,e,n){"use strict";var r=n(11),a=n(183);e.a=function(t,e,n){var i,o=t[0],u=t[t.length-1],c=Object(r.g)(o,u,null==e?10:e);switch(n=Object(a.c)(null==n?",f":n),n.type){case"s":var s=Math.max(Math.abs(o),Math.abs(u));return null!=n.precision||isNaN(i=Object(a.e)(c,s))||(n.precision=i),Object(a.b)(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=Object(a.f)(c,Math.max(Math.abs(o),Math.abs(u))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=Object(a.d)(c))||(n.precision=i-2*("%"===n.type))}return Object(a.a)(n)}},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return i});var r,a,i,o=n(184);!function(t){r=Object(o.a)(t),a=r.format,i=r.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]})},function(t,e,n){"use strict";e.a=function(t,e){return function(n,r){for(var a=n.length,i=[],o=0,u=t[0],c=0;a>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(n.substring(a-=u,a+u)),!((c+=u+1)>r));)u=t[o=(o+1)%t.length];return i.reverse().join(e)}}},function(t,e,n){"use strict";e.a=function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}},function(t,e,n){"use strict";e.a=function(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,a=1,i=-1;a<r;++a)switch(t[a]){case".":i=n=a;break;case"0":0===i&&(i=a),n=a;break;case"e":break t;default:i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}},function(t,e,n){"use strict";var r=n(100);e.a=function(t,e){var n=Object(r.a)(t,e);if(!n)return t+"";var a=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(60);e.a=function(t){return Math.max(0,-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(60);e.a=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(e)/3)))-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(60);e.a=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Object(r.a)(e)-Object(r.a)(t))+1}},function(t,e,n){"use strict";function r(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:Object(h.a)(e)}function a(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function i(t){return isFinite(t)?+("1e"+t):t<0?0:t}function o(t){return 10===t?i:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function u(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function c(t){return function(e){return-t(-e)}}function s(){function t(){return h=u(i),y=o(i),n()[0]<0&&(h=c(h),y=c(y)),e}var e=Object(d.b)(r,a).domain([1,10]),n=e.domain,i=10,h=u(10),y=o(10);return e.base=function(e){return arguments.length?(i=+e,t()):i},e.domain=function(e){return arguments.length?(n(e),t()):n()},e.ticks=function(t){var e,r=n(),a=r[0],o=r[r.length-1];(e=o<a)&&(f=a,a=o,o=f);var u,c,s,f=h(a),p=h(o),d=null==t?10:+t,v=[];if(!(i%1)&&p-f<d){if(f=Math.round(f)-1,p=Math.round(p)+1,a>0){for(;f<p;++f)for(c=1,u=y(f);c<i;++c)if(!((s=u*c)<a)){if(s>o)break;v.push(s)}}else for(;f<p;++f)for(c=i-1,u=y(f);c>=1;--c)if(!((s=u*c)<a)){if(s>o)break;v.push(s)}}else v=Object(l.h)(f,p,Math.min(p-f,d)).map(y);return e?v.reverse():v},e.tickFormat=function(t,n){if(null==n&&(n=10===i?".0e":","),"function"!=typeof n&&(n=Object(f.a)(n)),t===1/0)return n;null==t&&(t=10);var r=Math.max(1,i*t/e.ticks().length);return function(t){var e=t/y(Math.round(h(t)));return e*i<i-.5&&(e*=i),e<=r?n(t):""}},e.nice=function(){return n(Object(p.a)(n(),{floor:function(t){return y(Math.floor(h(t)))},ceil:function(t){return y(Math.ceil(h(t)))}}))},e.copy=function(){return Object(d.a)(e,s().base(i))},e}e.a=s;var l=n(11),f=n(183),h=n(99),p=n(188),d=n(59)},function(t,e,n){"use strict";function r(t,e){return t<0?-Math.pow(-t,e):Math.pow(t,e)}function a(){function t(t,e){return(e=r(e,n)-(t=r(t,n)))?function(a){return(r(a,n)-t)/e}:Object(o.a)(e)}function e(t,e){return e=r(e,n)-(t=r(t,n)),function(a){return r(t+e*a,1/n)}}var n=1,i=Object(c.b)(t,e),s=i.domain;return i.exponent=function(t){return arguments.length?(n=+t,s(s())):n},i.copy=function(){return Object(c.a)(i,a().exponent(n))},Object(u.b)(i)}function i(){return a().exponent(.5)}e.a=a,e.b=i;var o=n(99),u=n(35),c=n(59)},function(t,e,n){"use strict";function r(){function t(){var t=0,r=Math.max(1,o.length);for(u=new Array(r-1);++t<r;)u[t-1]=Object(a.d)(n,t/r);return e}function e(t){if(!isNaN(t=+t))return o[Object(a.b)(u,t)]}var n=[],o=[],u=[];return e.invertExtent=function(t){var e=o.indexOf(t);return e<0?[NaN,NaN]:[e>0?u[e-1]:n[0],e<u.length?u[e]:n[n.length-1]]},e.domain=function(e){if(!arguments.length)return n.slice();n=[];for(var r,i=0,o=e.length;i<o;++i)null==(r=e[i])||isNaN(r=+r)||n.push(r);return n.sort(a.a),t()},e.range=function(e){return arguments.length?(o=i.b.call(e),t()):o.slice()},e.quantiles=function(){return u.slice()},e.copy=function(){return r().domain(n).range(o)},e}e.a=r;var a=n(11),i=n(17)},function(t,e,n){"use strict";function r(){function t(t){if(t<=t)return l[Object(a.b)(s,t,0,c)]}function e(){var e=-1;for(s=new Array(c);++e<c;)s[e]=((e+1)*u-(e-c)*n)/(c+1);return t}var n=0,u=1,c=1,s=[.5],l=[0,1];return t.domain=function(t){return arguments.length?(n=+t[0],u=+t[1],e()):[n,u]},t.range=function(t){return arguments.length?(c=(l=i.b.call(t)).length-1,e()):l.slice()},t.invertExtent=function(t){var e=l.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,s[0]]:e>=c?[s[c-1],u]:[s[e-1],s[e]]},t.copy=function(){return r().domain([n,u]).range(l)},Object(o.b)(t)}e.a=r;var a=n(11),i=n(17),o=n(35)},function(t,e,n){"use strict";function r(){function t(t){if(t<=t)return n[Object(a.b)(e,t,0,o)]}var e=[.5],n=[0,1],o=1;return t.domain=function(r){return arguments.length?(e=i.b.call(r),o=Math.min(e.length,n.length-1),t):e.slice()},t.range=function(r){return arguments.length?(n=i.b.call(r),o=Math.min(e.length,n.length-1),t):n.slice()},t.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},t.copy=function(){return r().domain(e).range(n)},t}e.a=r;var a=n(11),i=n(17)},function(t,e,n){"use strict";var r=n(5),a=Object(r.a)(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.a)(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):a:null},e.a=a;a.range},function(t,e,n){"use strict";var r=n(5),a=n(12),i=Object(r.a)(function(t){t.setTime(Math.floor(t/a.d)*a.d)},function(t,e){t.setTime(+t+e*a.d)},function(t,e){return(e-t)/a.d},function(t){return t.getUTCSeconds()});e.a=i;i.range},function(t,e,n){"use strict";var r=n(5),a=n(12),i=Object(r.a)(function(t){t.setTime(Math.floor(t/a.c)*a.c)},function(t,e){t.setTime(+t+e*a.c)},function(t,e){return(e-t)/a.c},function(t){return t.getMinutes()});e.a=i;i.range},function(t,e,n){"use strict";var r=n(5),a=n(12),i=Object(r.a)(function(t){var e=t.getTimezoneOffset()*a.c%a.b;e<0&&(e+=a.b),t.setTime(Math.floor((+t-e)/a.b)*a.b+e)},function(t,e){t.setTime(+t+e*a.b)},function(t,e){return(e-t)/a.b},function(t){return t.getHours()});e.a=i;i.range},function(t,e,n){"use strict";var r=n(5),a=n(12),i=Object(r.a)(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*a.c)/a.a},function(t){return t.getDate()-1});e.a=i;i.range},function(t,e,n){"use strict";function r(t){return Object(a.a)(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.e})}n.d(e,"b",function(){return o}),n.d(e,"a",function(){return u});var a=n(5),i=n(12),o=r(0),u=r(1),c=r(2),s=r(3),l=r(4),f=r(5),h=r(6);o.range,u.range,c.range,s.range,l.range,f.range,h.range},function(t,e,n){"use strict";var r=n(5),a=Object(r.a)(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});e.a=a;a.range},function(t,e,n){"use strict";var r=n(5),a=Object(r.a)(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});a.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null},e.a=a;a.range},function(t,e,n){"use strict";var r=n(5),a=n(12),i=Object(r.a)(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*a.c)},function(t,e){return(e-t)/a.c},function(t){return t.getUTCMinutes()});e.a=i;i.range},function(t,e,n){"use strict";var r=n(5),a=n(12),i=Object(r.a)(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*a.b)},function(t,e){return(e-t)/a.b},function(t){return t.getUTCHours()});e.a=i;i.range},function(t,e,n){"use strict";var r=n(5),a=n(12),i=Object(r.a)(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/a.a},function(t){return t.getUTCDate()-1});e.a=i;i.range},function(t,e,n){"use strict";function r(t){return Object(a.a)(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/i.e})}n.d(e,"b",function(){return o}),n.d(e,"a",function(){return u});var a=n(5),i=n(12),o=r(0),u=r(1),c=r(2),s=r(3),l=r(4),f=r(5),h=r(6);o.range,u.range,c.range,s.range,l.range,f.range,h.range},function(t,e,n){"use strict";var r=n(5),a=Object(r.a)(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});e.a=a;a.range},function(t,e,n){"use strict";var r=n(5),a=Object(r.a)(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});a.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null},e.a=a;a.range},function(t,e,n){"use strict";function r(t){var e=new Date(t);return isNaN(e)?null:e}var a=n(192),i=n(102);+new Date("2000-01-01T00:00:00.000Z")||Object(i.c)(a.a)},function(t,e,n){"use strict";var r=n(189),a=n(190),i=n(101);e.a=function(){return Object(r.a)(i.t,i.p,i.s,i.k,i.l,i.n,i.q,i.m,a.b).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}},function(t,e,n){"use strict";var r=n(36);e.a=Object(r.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},function(t,e,n){"use strict";var r=n(36);e.a=Object(r.a)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6")},function(t,e,n){"use strict";var r=n(36);e.a=Object(r.a)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9")},function(t,e,n){"use strict";var r=n(36);e.a=Object(r.a)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5")},function(t,e,n){"use strict";var r=n(13),a=n(21);e.a=Object(a.b)(Object(r.b)(300,.5,0),Object(r.b)(-240,.5,1))},function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"a",function(){return o});var r=n(13),a=n(21),i=Object(a.b)(Object(r.b)(-100,.75,.35),Object(r.b)(80,1.5,.8)),o=Object(a.b)(Object(r.b)(260,.75,.35),Object(r.b)(80,1.5,.8)),u=Object(r.b)();e.b=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return u.h=360*t-100,u.s=1.5-1.5*e,u.l=.8-.9*e,u+""}},function(t,e,n){"use strict";function r(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"d",function(){return u});var a=n(36);e.a=r(Object(a.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var i=r(Object(a.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),o=r(Object(a.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),u=r(Object(a.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},function(t,e,n){"use strict";function r(t){function e(e){var r=(e-n)/(i-n);return t(o?Math.max(0,Math.min(1,r)):r)}var n=0,i=1,o=!1;return e.domain=function(t){return arguments.length?(n=+t[0],i=+t[1],e):[n,i]},e.clamp=function(t){return arguments.length?(o=!!t,e):o},e.interpolator=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return r(t).domain([n,i]).clamp(o)},Object(a.b)(e)}e.a=r;var a=n(35)},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=n(422),a=(n.n(r),n(26)),i=(n.n(a),n(168)),o=(n.n(i),n(137));n.n(o),n(95),n(96),n(2),n(3)},function(t,e,n){function r(t){return t&&t.length?a(t):[]}var a=n(423);t.exports=r},function(t,e,n){function r(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var u=t[n],c=e?e(u):u;if(!n||!a(c,s)){var s=c;o[i++]=0===u?0:u}}return o}var a=n(24);t.exports=r},function(t,e,n){"use strict";var r=n(6),a=(n.n(r),n(0));n.n(a),n(95),n(3)},function(t,e,n){"use strict";var r=n(51),a=n.n(r),i=n(6),o=n.n(i),u=n(7),c=n.n(u),s=n(4),l=n.n(s),f=n(54),h=n(113);e.a={degreesToRadians:function(t){return t*(Math.PI/180)},checkForValidText:function(t){return void 0===t||null===t?t:""+t},getSliceStyle:function(t,e,n){var r=n.style,i=n.colors,o=this.getColor(r,i,e),u=a()(t,["_x","_y","x","y","label"]);return c()({},u,{fill:o},r.data)},getBaseProps:function(t,e){t=h.b.modifyProps(t,e,"pie");for(var n=this.getCalculatedValues(t),r=n.slices,a=n.style,i=n.pathFunction,o=n.data,u=n.origin,c={parent:{standalone:t.standalone,slices:r,pathFunction:i,width:t.width,height:t.height,style:a.parent}},s=0,l=r.length;s<l;s++){var f=r[s],p=o[s],d=p.eventKey||s,y={index:s,slice:f,pathFunction:i,datum:p,data:o,origin:u,style:this.getSliceStyle(p,s,n)};c[d]={data:y,labels:this.getLabelProps(t,y,n)}}return c},getLabelProps:function(t,e,n){var r=e.index,a=e.datum,i=e.data,o=e.slice,u=n.style,c=n.radius,s=n.origin,f=h.b.evaluateStyle(l()({padding:0},u.labels),a,t.active),p=h.b.evaluateProp(t.labelRadius,a),d=this.getLabelPosition(c,p,f),y=d.centroid(o),v=this.getLabelOrientation(o);return{index:r,datum:a,data:i,slice:o,orientation:v,style:f,x:Math.round(y[0])+s.x,y:Math.round(y[1])+s.y,text:this.getLabelText(t,a,r),textAnchor:f.textAnchor||this.getTextAnchor(v),verticalAnchor:f.verticalAnchor||this.getVerticalAnchor(v),angle:f.angle}},getCalculatedValues:function(t){var e=t.theme,n=t.colorScale,r=t.width,a=t.height,i=e&&e.pie&&e.pie.style?e.pie.style:{},o=h.b.getStyles(t.style,i,"auto","100%"),u=Array.isArray(n)?n:h.e.getColorScale(n),c=h.b.getPadding(t),s=this.getRadius(t,c),l=(s+c.left+(r-s-c.right))/2,p=(s+c.top+(a-s-c.bottom))/2,d={x:l,y:p},y=h.a.getData(t);return{style:o,colors:u,padding:c,radius:s,data:y,slices:this.getSlices(t,y),pathFunction:f.arc().cornerRadius(t.cornerRadius).outerRadius(s).innerRadius(t.innerRadius),origin:d}},getColor:function(t,e,n){return t&&t.data&&t.data.fill?t.data.fill:e&&e[n%e.length]},getRadius:function(t,e){return Math.min(t.width-e.left-e.right,t.height-e.top-e.bottom)/2},getLabelPosition:function(t,e,n){var r=n&&n.padding||0,a=e||t+r;return f.arc().outerRadius(a).innerRadius(a)},getLabelOrientation:function(t){var e=function(t){return t*(180/Math.PI)},n=e(t.startAngle),r=e(t.endAngle),a=n+(r-n)/2;return a<45||a>315?"top":a>=45&&a<135?"right":a>=135&&a<225?"bottom":"left"},getTextAnchor:function(t){return"top"===t||"bottom"===t?"middle":"right"===t?"start":"end"},getVerticalAnchor:function(t){return"left"===t||"right"===t?"middle":"bottom"===t?"start":"end"},getLabelText:function(t,e,n){var r=void 0;return r=e.label?e.label:Array.isArray(t.labels)?t.labels[n]:o()(t.labels)?t.labels(e):e.xName||e._x,this.checkForValidText(r)},getSlices:function(t,e){return f.pie().sort(null).startAngle(this.degreesToRadians(t.startAngle)).endAngle(this.degreesToRadians(t.endAngle)).padAngle(this.degreesToRadians(t.padAngle)).value(function(t){return t._y})(e)}}}])});
|
|
10
2
|
//# sourceMappingURL=victory-pie.min.js.map
|