text: !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("d3-path")):"function"==typeof define&&define.amd?define("d3-shape",["exports","d3-path"],i):i(t.d3_shape={},t.d3_path)}(this,function(t,i){"use strict";function n(t){return function(){return t}}function e(t){return t.innerRadius}function s(t){return t.outerRadius}function h(t){return t.startAngle}function _(t){return t.endAngle}function a(t){return t&&t.padAngle}function o(t){return t>=1?Nt:-1>=t?-Nt:Math.asin(t)}function r(t,i,n,e,s,h,_,a){var o=n-t,r=e-i,l=_-s,u=a-h,c=(l*(i-h)-u*(t-s))/(u*o-l*r);return[t+c*o,i+c*r]}function l(t,i,n,e,s,h,_){var a=t-n,o=i-e,r=(_?h:-h)/Math.sqrt(a*a+o*o),l=r*o,u=-r*a,c=t+l,f=i+u,x=n+l,y=e+u,p=(c+x)/2,v=(f+y)/2,g=x-c,d=y-f,m=g*g+d*d,T=s-h,M=c*y-x*f,b=(0>d?-1:1)*Math.sqrt(Math.max(0,T*T*m-M*M)),w=(M*d-g*b)/m,k=(-M*g-d*b)/m,N=(M*d+g*b)/m,S=(-M*g+d*b)/m,E=w-p,A=k-v,P=N-p,q=S-v;return E*E+A*A>P*P+q*q&&(w=N,k=S),{cx:w,cy:k,x01:-l,y01:-u,x11:w*(s/T-1),y11:k*(s/T-1)}}function u(){function t(){var t,n,e=+u.apply(this,arguments),s=+c.apply(this,arguments),h=y.apply(this,arguments)-Nt,_=p.apply(this,arguments)-Nt,a=Math.abs(_-h),d=_>h;if(g||(g=t=i.path()),e>s&&(n=s,s=e,e=n),s>wt)if(a>St-wt)g.moveTo(s*Math.cos(h),s*Math.sin(h)),g.arc(0,0,s,h,_,!d),e>wt&&(g.moveTo(e*Math.cos(_),e*Math.sin(_)),g.arc(0,0,e,_,h,d));else{var m=h,T=_,M=h,b=_,w=a,k=a,N=v.apply(this,arguments)/2,S=N>wt&&(x?+x.apply(this,arguments):Math.sqrt(e*e+s*s)),E=Math.min(Math.abs(s-e)/2,+f.apply(this,arguments)),A=E,P=E;if(S>wt){var q=o(S/e*Math.sin(N)),C=o(S/s*Math.sin(N));(w-=2*q)>wt?(q*=d?1:-1,M+=q,b-=q):(w=0,M=b=(h+_)/2),(k-=2*C)>wt?(C*=d?1:-1,m+=C,T-=C):(k=0,m=T=(h+_)/2)}var O=s*Math.cos(m),R=s*Math.sin(m),z=e*Math.cos(b),B=e*Math.sin(b);if(E>wt){var D=s*Math.cos(T),L=s*Math.sin(T),I=e*Math.cos(M),W=e*Math.sin(M);if(kt>a){var j=w>wt?r(O,R,I,W,D,L,z,B):[z,B],V=O-j[0],Z=R-j[1],F=D-j[0],G=L-j[1],H=1/Math.sin(Math.acos((V*F+Z*G)/(Math.sqrt(V*V+Z*Z)*Math.sqrt(F*F+G*G)))/2),J=Math.sqrt(j[0]*j[0]+j[1]*j[1]);A=Math.min(E,(e-J)/(H-1)),P=Math.min(E,(s-J)/(H+1))}}if(k>wt)if(P>wt){var K=l(I,W,O,R,s,P,d),Q=l(D,L,z,B,s,P,d);g.moveTo(K.cx+K.x01,K.cy+K.y01),E>P?g.arc(K.cx,K.cy,P,Math.atan2(K.y01,K.x01),Math.atan2(Q.y01,Q.x01),!d):(g.arc(K.cx,K.cy,P,Math.atan2(K.y01,K.x01),Math.atan2(K.y11,K.x11),!d),g.arc(0,0,s,Math.atan2(K.cy+K.y11,K.cx+K.x11),Math.atan2(Q.cy+Q.y11,Q.cx+Q.x11),!d),g.arc(Q.cx,Q.cy,P,Math.atan2(Q.y11,Q.x11),Math.atan2(Q.y01,Q.x01),!d))}else g.moveTo(O,R),g.arc(0,0,s,m,T,!d);else g.moveTo(O,R);if(e>wt&&w>wt)if(A>wt){var K=l(z,B,D,L,e,-A,d),Q=l(O,R,I,W,e,-A,d);g.lineTo(K.cx+K.x01,K.cy+K.y01),E>A?g.arc(K.cx,K.cy,A,Math.atan2(K.y01,K.x01),Math.atan2(Q.y01,Q.x01),!d):(g.arc(K.cx,K.cy,A,Math.atan2(K.y01,K.x01),Math.atan2(K.y11,K.x11),!d),g.arc(0,0,e,Math.atan2(K.cy+K.y11,K.cx+K.x11),Math.atan2(Q.cy+Q.y11,Q.cx+Q.x11),d),g.arc(Q.cx,Q.cy,A,Math.atan2(Q.y11,Q.x11),Math.atan2(Q.y01,Q.x01),!d))}else g.arc(0,0,e,b,M,d);else g.lineTo(z,B)}else g.moveTo(0,0);return g.closePath(),t?(g=null,t+""||null):void 0}var u=e,c=s,f=n(0),x=null,y=h,p=_,v=a,g=null,d=null;return t.centroid=function(){var t=(+u.apply(this,arguments)+ +c.apply(this,arguments))/2,i=(+y.apply(this,arguments)+ +p.apply(this,arguments))/2-kt/2;return[Math.cos(i)*t,Math.sin(i)*t]},t.innerRadius=function(i){return arguments.length?(u="function"==typeof i?i:n(+i),t):u},t.outerRadius=function(i){return arguments.length?(c="function"==typeof i?i:n(+i),t):c},t.cornerRadius=function(i){return arguments.length?(f="function"==typeof i?i:n(+i),t):f},t.padRadius=function(i){return arguments.length?(x=null==i?null:"function"==typeof i?i:n(+i),t):x},t.startAngle=function(i){return arguments.length?(y="function"==typeof i?i:n(+i),t):y},t.endAngle=function(i){return arguments.length?(p="function"==typeof i?i:n(+i),t):p},t.padAngle=function(i){return arguments.length?(v="function"==typeof i?i:n(+i),t):v},t.context=function(i){return arguments.length?(g=d=null==i?null:i,t):g},t}function c(t,i){return i.length<2?t:(i=Et.call(i),i[0]=null,function(n){return i[0]=n,t.apply(null,i)})}function f(t){this._context=t}function x(t){return new f(t)}function y(t){return t[0]}function p(t){return t[1]}function v(){function t(t){var n,u,c,f,x,y=t.length,p=!1,v=new Array(y),g=new Array(y);for(o||(l=r(x=i.path())),n=0;y>=n;++n){if(!(y>n&&a(f=t[n],n,t))===p)if(p=!p)u=n,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),c=n-1;c>=u;--c)l.point(v[c],g[c]);l.lineEnd(),l.areaEnd()}p&&(v[n]=+e(f,n,t),g[n]=+h(f,n,t),l.point(s?+s(f,n,t):v[n],_?+_(f,n,t):g[n]))}return x?(l=null,x+""||null):void 0}var e=y,s=null,h=n(0),_=p,a=n(!0),o=null,r=x,l=null;return t.x=function(i){return arguments.length?(e="function"==typeof i?i:n(+i),s=null,t):e},t.x0=function(i){return arguments.length?(e="function"==typeof i?i:n(+i),t):e},t.x1=function(i){return arguments.length?(s=null==i?null:"function"==typeof i?i:n(+i),t):s},t.y=function(i){return arguments.length?(h="function"==typeof i?i:n(+i),_=null,t):h},t.y0=function(i){return arguments.length?(h="function"==typeof i?i:n(+i),t):h},t.y1=function(i){return arguments.length?(_=null==i?null:"function"==typeof i?i:n(+i),t):_},t.defined=function(i){return arguments.length?(a="function"==typeof i?i:n(!!i),t):a},t.curve=function(i){return arguments.length?(r=c(i,arguments),null!=o&&(l=r(o)),t):r},t.context=function(i){return arguments.length?(null==i?o=l=null:l=r(o=i),t):o},t}function g(){function t(t){var n,r,l,u=t.length,c=!1;for(_||(o=a(l=i.path())),n=0;u>=n;++n)!(u>n&&h(r=t[n],n,t))===c&&((c=!c)?o.lineStart():o.lineEnd()),c&&o.point(+e(r,n,t),+s(r,n,t));return l?(o=null,l+""||null):void 0}var e=y,s=p,h=n(!0),_=null,a=x,o=null;return t.x=function(i){return arguments.length?(e="function"==typeof i?i:n(+i),t):e},t.y=function(i){return arguments.length?(s="function"==typeof i?i:n(+i),t):s},t.defined=function(i){return arguments.length?(h="function"==typeof i?i:n(!!i),t):h},t.curve=function(i){return arguments.length?(a=c(i,arguments),null!=_&&(o=a(_)),t):a},t.context=function(i){return arguments.length?(null==i?_=o=null:o=a(_=i),t):_},t}function d(t,i){return t>i?-1:i>t?1:i>=t?0:NaN}function m(t){return t}function T(){function t(t){for(var n,o,r=t.length,l=0,u=new Array(r),c=new Array(r),f=+h.apply(this,arguments),x=Math.min(St,Math.max(-St,_.apply(this,arguments)-f)),y=Math.min(Math.abs(x)/r,a.apply(this,arguments)),p=y*(0>x?-1:1),v=0;r>v;++v)(o=c[u[v]=v]=+i(t[v],v,t))>0&&(l+=o);null!=e?u.sort(function(t,i){return e(c[t],c[i])}):null!==s&&u.sort(function(i,n){return s(t[i],t[n])});for(var g,v=0,d=l?(x-r*p)/l:0;r>v;++v,f=n)g=u[v],o=c[g],n=f+(o>0?o*d:0)+p,c[g]={data:t[g],index:v,value:o,startAngle:f,endAngle:n,padAngle:y};return c}var i=m,e=d,s=null,h=n(0),_=n(St),a=n(0);return t.value=function(e){return arguments.length?(i="function"==typeof e?e:n(+e),t):i},t.sortValues=function(i){return arguments.length?(e=i,s=null,t):e},t.sort=function(i){return arguments.length?(s=i,e=null,t):s},t.startAngle=function(i){return arguments.length?(h="function"==typeof i?i:n(+i),t):h},t.endAngle=function(i){return arguments.length?(_="function"==typeof i?i:n(+i),t):_},t.padAngle=function(i){return arguments.length?(a="function"==typeof i?i:n(+i),t):a},t}function M(t){this._curve=t}function b(t,i){function n(i){return new M(t(i))}return t=c(t,i),n._curve=t,n}function w(){var t=v(),i=t.curve;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.curve=function(t){return arguments.length?i(b(t,arguments)):i()._curve},t.curve(x)}function k(){var t=g(),i=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?i(b(t,arguments)):i()._curve},t.curve(x)}function N(){function t(){var t;return h||(h=t=i.path()),e.apply(this,arguments).draw(h,+s.apply(this,arguments)),t?(h=null,t+""||null):void 0}var e=n(Ht),s=n(64),h=null;return t.type=function(i){return arguments.length?(e="function"==typeof i?i:n(i),t):e},t.size=function(i){return arguments.length?(s="function"==typeof i?i:n(+i),t):s},t.context=function(i){return arguments.length?(h=null==i?null:i,t):h},t}function S(){}function E(t,i,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+i)/6,(t._y0+4*t._y1+n)/6)}function A(t){this._context=t}function P(t){return new A(t)}function q(t){this._context=t}function C(t){return new q(t)}function O(t){this._context=t}function R(t){return new O(t)}function z(t,i){this._basis=P(t),this._beta=i}function B(t,i){return null==i?new z(t,.85):1===(i=+i)?P(t):new z(t,i)}function D(t,i,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-i),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function L(t,i){this._context=t,this._k=i}function I(t,i){return new L(t,(null==i?1:1-i)/6)}function W(t,i){this._context=t,this._k=i}function j(t,i){return new W(t,(null==i?1:1-i)/6)}function V(t,i){this._context=t,this._k=i}function Z(t,i){return new V(t,(null==i?1:1-i)/6)}function F(t,i,n){var e=t._x1,s=t._y1,h=t._x2,_=t._y2;if(t._l01_a>wt){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,o=3*t._l01_a*(t._l01_a+t._l12_a);e=(e*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/o,s=(s*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/o}if(t._l23_a>wt){var r=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);h=(h*r+t._x1*t._l23_2a-i*t._l12_2a)/l,_=(_*r+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(e,s,h,_,t._x2,t._y2)}function G(t,i){this._context=t,this._alpha=i}function H(t,i){return(i=null==i?.5:+i)?new G(t,i):I(t,0)}function J(t,i){this._context=t,this._alpha=i}function K(t,i){return(i=null==i?.5:+i)?new J(t,i):j(t,0)}function Q(t,i){this._context=t,this._alpha=i}function U(t,i){return(i=null==i?.5:+i)?new Q(t,i):Z(t,0)}function X(t){this._context=t}function Y(t){return new X(t)}function $(t){return 0>t?-1:1}function tt(t,i,n){var e=t._x1-t._x0,s=i-t._x1,h=(t._y1-t._y0)/e,_=(n-t._y1)/s,a=(h*s+_*e)/(e+s);return($(h)+$(_))*Math.min(Math.abs(h),Math.abs(_),.5*Math.abs(a))||0}function it(t,i){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-i)/2:i}function nt(t,i,n){var e=t._x0,s=t._y0,h=t._x1,_=t._y1,a=(h-e)/3;t._context.bezierCurveTo(e+a,s+a*i,h-a,_-a*n,h,_)}function et(t){this._context=t}function st(t){return new et(t)}function ht(t){this._context=t}function _t(t){var i,n,e=t.length-1,s=new Array(e),h=new Array(e),_=new Array(e);for(s[0]=0,h[0]=2,_[0]=t[0]+2*t[1],i=1;e-1>i;++i)s[i]=1,h[i]=4,_[i]=4*t[i]+2*t[i+1];for(s[e-1]=2,h[e-1]=7,_[e-1]=8*t[e-1]+t[e],i=1;e>i;++i)n=s[i]/h[i-1],h[i]-=n,_[i]-=n*_[i-1];for(s[e-1]=_[e-1]/h[e-1],i=e-2;i>=0;--i)s[i]=(_[i]-s[i+1])/h[i];for(h[e-1]=(t[e]+s[e-1])/2,i=0;e-1>i;++i)h[i]=2*t[i+1]-s[i+1];return[s,h]}function at(t){return new ht(t)}function ot(t,i){this._context=t,this._t=i}function rt(t){return new ot(t,.5)}function lt(t){return new ot(t,0)}function ut(t){return new ot(t,1)}function ct(t,i){if((e=t.length)>1)for(var n,e,s=1,h=t[i[0]],_=h.length;e>s;++s){n=h,h=t[i[s]];for(var a=0;_>a;++a)h[a][1]+=h[a][0]=isNaN(n[a][1])?n[a][0]:n[a][1]}}function ft(t){for(var i=t.length,n=new Array(i);--i>=0;)n[i]=i;return n}function xt(t,i){return t[i]}function yt(){function t(t){for(var n=i.apply(this,arguments),_=t.length,a=n.length,o=new Array(a),r=0;a>r;++r){for(var l,u=n[r],c=o[r]=new Array(_),f=0;_>f;++f)c[f]=l=[0,+h(t[f],u,f,t)],l.data=t[f];c.key=u}for(var r=0,x=e(o);a>r;++r)o[x[r]].index=r;return s(o,x),o}var i=n([]),e=ft,s=ct,h=xt;return t.keys=function(e){return arguments.length?(i="function"==typeof e?e:n(Kt.call(e)),t):i},t.value=function(i){return arguments.length?(h="function"==typeof i?i:n(+i),t):h},t.order=function(i){return arguments.length?(e=null==i?orderDefault:"function"==typeof i?i:n(Kt.call(i)),t):e},t.offset=function(i){return arguments.length?(s=null==i?offsetZero:i,t):s},t}function pt(t,i){if((n=t.length)>0){for(var n,e=0,s=t[0].length;s>e;++e){for(var h=0,_=0;n>h;++h)_+=t[h][e][1]||0;if(_)for(var h=0;n>h;++h)t[h][e][1]/=_}ct(t,i)}}function vt(t,i){if((n=t.length)>0){for(var n,e=0,s=t[i[0]],h=s.length;h>e;++e){for(var _=0,a=0;n>_;++_)a+=t[_][e][1]||0;s[e][1]+=s[e][0]=-a/2}ct(t,i)}}function gt(t,i){if((s=t.length)>0&&(e=(n=t[i[0]]).length)>0){for(var n,e,s,h=0,_=1;e>_;++_){for(var a=0,o=0,r=0;s>a;++a){for(var l=t[i[a]],u=l[_][1]||0,c=l[_-1][1]||0,f=(u-c)/2,x=0;a>x;++x){var y=t[i[x]],p=y[_][1]||0,v=y[_-1][1]||0;f+=p-v}o+=u,r+=f*u}n[_-1][1]+=n[_-1][0]=h,o&&(h-=r/o)}n[_-1][1]+=n[_-1][0]=h,ct(t,i)}}function dt(t){var i=t.map(mt);return ft(t).sort(function(t,n){return i[t]-i[n]})}function mt(t){for(var i,n=0,e=-1,s=t.length;++e<s;)(i=+t[e][1])&&(n+=i);return n}function Tt(t){return dt(t).reverse()}function Mt(t){var i,n,e=t.length,s=t.map(mt),h=ft(t).sort(function(t,i){return s[i]-s[t]}),_=0,a=0,o=[],r=[];for(i=0;e>i;++i)n=h[i],a>_?(_+=s[n],o.push(n)):(a+=s[n],r.push(n));return r.reverse().concat(o)}function bt(t){return ft(t).reverse()}var wt=1e-12,kt=Math.PI,Nt=kt/2,St=2*kt,Et=Array.prototype.slice;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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i)}}},M.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,i){t-=Nt,this._curve.point(i*Math.cos(t),i*Math.sin(t))}};var At=-.5,Pt=Math.sqrt(3)/2,qt=1/Math.sqrt(12),Ct=3*(qt/2+1),Ot={draw:function(t,i){var n=Math.sqrt(i/Ct),e=n/2,s=n*qt,h=e,_=n*qt+n,a=-h,o=_;t.moveTo(e,s),t.lineTo(h,_),t.lineTo(a,o),t.lineTo(At*e-Pt*s,Pt*e+At*s),t.lineTo(At*h-Pt*_,Pt*h+At*_),t.lineTo(At*a-Pt*o,Pt*a+At*o),t.lineTo(At*e+Pt*s,At*s-Pt*e),t.lineTo(At*h+Pt*_,At*_-Pt*h),t.lineTo(At*a+Pt*o,At*o-Pt*a),t.closePath()}},Rt=Math.sqrt(3),zt={draw:function(t,i){var n=-Math.sqrt(i/(3*Rt));t.moveTo(0,2*n),t.lineTo(-Rt*n,-n),t.lineTo(Rt*n,-n),t.closePath()}},Bt=.8908130915292852,Dt=Math.sin(kt/10)/Math.sin(7*kt/10),Lt=Math.sin(St/10)*Dt,It=-Math.cos(St/10)*Dt,Wt={draw:function(t,i){var n=Math.sqrt(i*Bt),e=Lt*n,s=It*n;t.moveTo(0,-n),t.lineTo(e,s);for(var h=1;5>h;++h){var _=St*h/5,a=Math.cos(_),o=Math.sin(_);t.lineTo(o*n,-a*n),t.lineTo(a*e-o*s,o*e+a*s)}t.closePath()}},jt={draw:function(t,i){var n=Math.sqrt(i),e=-n/2;t.rect(e,e,n,n)}},Vt=Math.sqrt(1/3),Zt=2*Vt,Ft={draw:function(t,i){var n=Math.sqrt(i/Zt),e=n*Vt;t.moveTo(0,-n),t.lineTo(e,0),t.lineTo(0,n),t.lineTo(-e,0),t.closePath()}},Gt={draw:function(t,i){var n=Math.sqrt(i/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()}},Ht={draw:function(t,i){var n=Math.sqrt(i/kt);t.moveTo(n,0),t.arc(0,0,n,0,St)}},Jt=[Ht,Gt,Ft,jt,Wt,zt,Ot];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:E(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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);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:E(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},q.prototype={areaStart:S,areaEnd:S,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:E(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},O.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,i){switch(t=+t,i=+i,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,e=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 3:this._point=4;default:E(this,t,i)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}},z.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,n=t.length-1;if(n>0)for(var e,s=t[0],h=i[0],_=t[n]-s,a=i[n]-h,o=-1;++o<=n;)e=o/n,this._basis.point(this._beta*t[o]+(1-this._beta)*(s+e*_),this._beta*i[o]+(1-this._beta)*(h+e*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}},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._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:D(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:D(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}},W.prototype={areaStart:S,areaEnd:S,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:D(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}},V.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,i){switch(t=+t,i=+i,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:D(this,t,i)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}},G.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,this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){if(t=+t,i=+i,this._point){var n=this._x2-t,e=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:F(this,t,i)}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=i}},J.prototype={areaStart:S,areaEnd:S,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,i){if(t=+t,i=+i,this._point){var n=this._x2-t,e=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+e*e,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:F(this,t,i)}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=i}},Q.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,i){if(t=+t,i=+i,this._point){var n=this._x2-t,e=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+e*e,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:F(this,t,i)}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=i}},X.prototype={areaStart:S,areaEnd:S,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}},et.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:nt(this,this._t0,it(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var n=NaN;if(t=+t,i=+i,t!==this._x1||i!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,nt(this,it(this,n=tt(this,t,i)),n);break;default:nt(this,this._t0,n=tt(this,t,i))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=n}}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),2===n)this._context.lineTo(t[1],i[1]);else for(var e=_t(t),s=_t(i),h=0,_=1;n>_;++h,++_)this._context.bezierCurveTo(e[0][h],s[0][h],e[1][h],s[1][h],t[_],i[_]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}},ot.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=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:var n=t>this._x?this._t:1-this._t;if(0>=n)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else if(n>=1)this._context.lineTo(t,this._y),this._context.lineTo(t,i);else{var e=(this._x+t)*n;this._context.lineTo(e,this._y),this._context.lineTo(e,i)}}this._x=t,this._y=i}};var Kt=Array.prototype.slice,Qt="0.4.0";t.version=Qt,t.arc=u,t.area=v,t.line=g,t.pie=T,t.radialArea=w,t.radialLine=k,t.symbol=N,t.symbols=Jt,t.symbolCircle=Ht,t.symbolCross=Gt,t.symbolDiamond=Ft,t.symbolSquare=jt,t.symbolStar=Wt,t.symbolTriangle=zt,t.symbolWye=Ot,t.curveBasisClosed=C,t.curveBasisOpen=R,t.curveBasis=P,t.curveBundle=B,t.curveCardinalClosed=j,t.curveCardinalOpen=Z,t.curveCardinal=I,t.curveCatmullRomClosed=K,t.curveCatmullRomOpen=U,t.curveCatmullRom=H,t.curveLinearClosed=Y,t.curveLinear=x,t.curveMonotone=st,t.curveNatural=at,t.curveStep=rt,t.curveStepAfter=ut,t.curveStepBefore=lt,t.stack=yt,t.stackOffsetExpand=pt,t.stackOffsetNone=ct,t.stackOffsetSilhouette=vt,t.stackOffsetWiggle=gt,t.stackOrderAscending=dt,t.stackOrderDescending=Tt,t.stackOrderInsideOut=Mt,t.stackOrderNone=ft,t.stackOrderReverse=bt});