This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
/
d3.v4.0.0-alpha.27.min.js
5 lines (5 loc) · 144 KB
/
d3.v4.0.0-alpha.27.min.js
1
2
3
4
5
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3=t.d3||{})}(this,function(t){"use strict";function n(t,n){return n>t?-1:t>n?1:t>=n?0:NaN}function e(t){return 1===t.length&&(t=r(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}}function r(t){return function(e,r){return n(t(e),r)}}function i(t,n){return t>n?-1:n>t?1:n>=t?0:NaN}function a(t){return null===t?NaN:+t}function o(t,n){var e,r,i=t.length,o=0,u=0,s=-1,c=0;if(null==n)for(;++s<i;)isNaN(e=a(t[s]))||(r=e-o,o+=r/++c,u+=r*(e-o));else for(;++s<i;)isNaN(e=a(n(t[s],s,t)))||(r=e-o,o+=r/++c,u+=r*(e-o));return c>1?u/(c-1):void 0}function u(t,n){var e=o(t,n);return e?Math.sqrt(e):e}function s(t,n){var e,r,i,a=-1,o=t.length;if(null==n){for(;++a<o;)if(null!=(r=t[a])&&r>=r){e=i=r;break}for(;++a<o;)null!=(r=t[a])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++a<o;)if(null!=(r=n(t[a],a,t))&&r>=r){e=i=r;break}for(;++a<o;)null!=(r=n(t[a],a,t))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]}function c(t){return function(){return t}}function f(t){return t}function l(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):3>i?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),a=new Array(i);++r<i;)a[r]=t+r*e;return a}function h(t,n,e){var r=d(t,n,e);return l(Math.ceil(t/r)*r,Math.floor(n/r)*r+r/2,r)}function d(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Ac?i*=10:a>=Nc?i*=5:a>=Cc&&(i*=2),t>n?-i:i}function p(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function _(t){return+t}function y(){function t(t){var i,a,o=t.length,u=new Array(o);for(i=0;o>i;++i)u[i]=+n(t[i],i,t);var s=e(u),c=+s[0],f=+s[1],l=r(u,c,f);Array.isArray(l)||(l=h(c,f,+l));var d=l.length;for(i=0;d>i;++i)l[i]=+l[i];for(;l[0]<=c;)l.shift(),--d;for(;l[d-1]>=f;)l.pop(),--d;var p,_=new Array(d+1);for(i=0;d>=i;++i)p=_[i]=[],p.x0=i>0?l[i-1]:c,p.x1=d>i?l[i]:f;for(i=0;o>i;++i)a=u[i],a>=c&&f>=a&&_[kc(l,a,0,d)].push(t[i]);return _}var n=f,e=s,r=p;return t.value=function(e){return arguments.length?(n="function"==typeof e?e:c(+e),t):n},t.domain=function(n){return arguments.length?(e="function"==typeof n?n:c([+n[0],+n[1]]),t):e},t.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:c(Array.isArray(n)?Array.prototype.map.call(n,_):+n),t):r},t}function g(t,n,e){if(null==e&&(e=a),r=t.length){if((n=+n)<=0||2>r)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),u=+e(t[o],o,t),s=+e(t[o+1],o+1,t);return u+(s-u)*(i-o)}}function m(t,e,r){return t.sort(n),Math.ceil((r-e)/(2*(g(t,.75)-g(t,.25))*Math.pow(t.length,-1/3)))}function v(t,n,e){return Math.ceil((e-n)/(3.5*u(t)*Math.pow(t.length,-1/3)))}function b(t,n){var e,r,i=-1,a=t.length;if(null==n){for(;++i<a;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<a;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<a;)if(null!=(r=n(t[i],i,t))&&r>=r){e=r;break}for(;++i<a;)null!=(r=n(t[i],i,t))&&r>e&&(e=r)}return e}function x(t,n){var e,r=0,i=t.length,o=-1,u=i;if(null==n)for(;++o<i;)isNaN(e=a(t[o]))?--u:r+=e;else for(;++o<i;)isNaN(e=a(n(t[o],o,t)))?--u:r+=e;return u?r/u:void 0}function M(t,e){var r,i=[],o=t.length,u=-1;if(null==e)for(;++u<o;)isNaN(r=a(t[u]))||i.push(r);else for(;++u<o;)isNaN(r=a(e(t[u],u,t)))||i.push(r);return g(i.sort(n),.5)}function w(t){for(var n,e,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(e=new Array(o);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--o]=r[n];return e}function T(t,n){var e,r,i=-1,a=t.length;if(null==n){for(;++i<a;)if(null!=(r=t[i])&&r>=r){e=r;break}for(;++i<a;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<a;)if(null!=(r=n(t[i],i,t))&&r>=r){e=r;break}for(;++i<a;)null!=(r=n(t[i],i,t))&&e>r&&(e=r)}return e}function k(t){for(var n=0,e=t.length-1,r=t[0],i=new Array(0>e?0:e);e>n;)i[n]=[r,r=t[++n]];return i}function S(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}function A(t,e){if(r=t.length){var r,i,a=0,o=0,u=t[o];for(e||(e=n);++a<r;)(e(i=t[a],u)<0||0!==e(u,u))&&(u=i,o=a);return 0===e(u,u)?o:void 0}}function N(t,n,e){for(var r,i,a=(null==e?t.length:e)-(n=null==n?0:+n);a;)i=Math.random()*a--|0,r=t[a+n],t[a+n]=t[i+n],t[i+n]=r;return t}function C(t,n){var e,r=0,i=t.length,a=-1;if(null==n)for(;++a<i;)(e=+t[a])&&(r+=e);else for(;++a<i;)(e=+n(t[a],a,t))&&(r+=e);return r}function E(t){if(!(i=t.length))return[];for(var n=-1,e=T(t,P),r=new Array(e);++n<e;)for(var i,a=-1,o=r[n]=new Array(i);++a<i;)o[a]=t[a][n];return r}function P(t){return t.length}function D(){return E(arguments)}function F(){}function L(t,n){var e=new F;if(t instanceof F)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==n)for(;++i<a;)e.set(i,t[i]);else for(;++i<a;)e.set(n(r=t[i],i,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}function U(){function t(n,i,o,u){if(i>=a.length)return r?r(n):e?n.sort(e):n;for(var s,c,f,l=-1,h=n.length,d=a[i++],p=L(),_=o();++l<h;)(f=p.get(s=d(c=n[l])+""))?f.push(c):p.set(s,[c]);return p.each(function(n,e){u(_,e,t(n,i,o,u))}),_}function n(t,e){if(e>=a.length)return t;var r=[],i=o[e++];return t.each(function(t,i){r.push({key:i,values:n(t,e)})}),i?r.sort(function(t,n){return i(t.key,n.key)}):r}var e,r,i,a=[],o=[];return i={object:function(n){return t(n,0,Y,O)},map:function(n){return t(n,0,H,R)},entries:function(e){return n(t(e,0,H,R),0)},key:function(t){return a.push(t),i},sortKeys:function(t){return o[a.length-1]=t,i},sortValues:function(t){return e=t,i},rollup:function(t){return r=t,i}}}function Y(){return{}}function O(t,n,e){t[n]=e}function H(){return L()}function R(t,n,e){t.set(n,e)}function j(){}function z(t,n){var e=new j;if(t instanceof j)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}function q(t){var n=[];for(var e in t)n.push(e);return n}function I(t){var n=[];for(var e in t)n.push(t[e]);return n}function X(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n}function J(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return Math.random()*n+t}}function B(t,n){var e,r;return t=null==t?0:+t,n=null==n?1:+n,function(){var i;if(null!=e)i=e,e=null;else do e=2*Math.random()-1,i=2*Math.random()-1,r=e*e+i*i;while(!r||r>1);return t+n*i*Math.sqrt(-2*Math.log(r)/r)}}function W(){var t=B.apply(this,arguments);return function(){return Math.exp(t())}}function V(t){return function(){for(var n=0,e=0;t>e;++e)n+=Math.random();return n}}function $(t){var n=V(t);return function(){return n()/t}}function Z(t){return function(){return-Math.log(1-Math.random())/t}}function G(t){return+t}function K(t){return t*t}function Q(t){return t*(2-t)}function tt(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function nt(t){return t*t*t}function et(t){return--t*t*t+1}function rt(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function it(t){return 1-Math.cos(t*Oc)}function at(t){return Math.sin(t*Oc)}function ot(t){return(1-Math.cos(Yc*t))/2}function ut(t){return Math.pow(2,10*t-10)}function st(t){return 1-Math.pow(2,-10*t)}function ct(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function ft(t){return 1-Math.sqrt(1-t*t)}function lt(t){return Math.sqrt(1- --t*t)}function ht(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function dt(t){return 1-pt(1-t)}function pt(t){return(t=+t)<Hc?Wc*t*t:jc>t?Wc*(t-=Rc)*t+zc:Ic>t?Wc*(t-=qc)*t+Xc:Wc*(t-=Jc)*t+Bc}function _t(t){return((t*=2)<=1?1-pt(1-t):pt(t-1)+1)/2}function yt(t){for(var n,e=-1,r=t.length,i=t[r-1],a=0;++e<r;)n=i,i=t[e],a+=n[1]*i[0]-n[0]*i[1];return a/2}function gt(t){for(var n,e,r=-1,i=t.length,a=0,o=0,u=t[i-1],s=0;++r<i;)n=u,u=t[r],s+=e=n[0]*u[1]-u[0]*n[1],a+=(n[0]+u[0])*e,o+=(n[1]+u[1])*e;return s*=3,[a/s,o/s]}function mt(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function vt(t,n){return t[0]-n[0]||t[1]-n[1]}function bt(t){for(var n=t.length,e=[0,1],r=2,i=2;n>i;++i){for(;r>1&&mt(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function xt(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;e>n;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(vt),n=0;e>n;++n)i[n]=[r[n][0],-r[n][1]];var a=bt(r),o=bt(i),u=o[0]===a[0],s=o[o.length-1]===a[a.length-1],c=[];for(n=a.length-1;n>=0;--n)c.push(t[r[a[n]][2]]);for(n=+u;n<o.length-s;++n)c.push(t[r[o[n]][2]]);return c}function Mt(t,n){for(var e,r,i=t.length,a=t[i-1],o=n[0],u=n[1],s=a[0],c=a[1],f=!1,l=0;i>l;++l)a=t[l],e=a[0],r=a[1],r>u!=c>u&&(s-e)*(u-r)/(c-r)+e>o&&(f=!f),s=e,c=r;return f}function wt(t){for(var n,e,r=-1,i=t.length,a=t[i-1],o=a[0],u=a[1],s=0;++r<i;)n=o,e=u,a=t[r],o=a[0],u=a[1],n-=o,e-=u,s+=Math.sqrt(n*n+e*e);return s}function Tt(){this._x0=this._y0=this._x1=this._y1=null,this._=[]}function kt(){return new Tt}function St(t){return t[0]}function At(t){return t[1]}function Nt(t){return function(){return t}}function Ct(){this.x=null,this.y=null,this.leaf=!0,this.data=null,this.nodes=[]}function Et(t,n,e,r,i,a){if(!t(n,e,r,i,a)){var o=(e+i)/2,u=(r+a)/2,s=n.nodes;s[0]&&Et(t,s[0],e,r,o,u),s[1]&&Et(t,s[1],o,r,i,u),s[2]&&Et(t,s[2],e,u,o,a),s[3]&&Et(t,s[3],o,u,i,a)}}function Pt(t,n,e,r,i,a,o){var u,s=1/0;return function c(t,f,l,h,d){if(!(f>a||l>o||r>h||i>d)){if(null!=t.x){var p=n-t.x,_=e-t.y,y=p*p+_*_;if(s>y){var g=Math.sqrt(s=y);r=n-g,i=e-g,a=n+g,o=e+g,u=t}}for(var m=t.nodes,v=(f+h)/2,b=(l+d)/2,x=n>=v,M=e>=b,w=M<<1|x,T=w+4;T>w;++w)if(t=m[3&w])switch(3&w){case 0:c(t,f,l,v,b);break;case 1:c(t,v,l,h,b);break;case 2:c(t,f,b,v,d);break;case 3:c(t,v,b,h,d)}}}(t,r,i,a,o),u&&u.data}function Dt(){function t(t){function u(t,n,e,r,i,a,o,u){if(!isNaN(e)&&!isNaN(r))if(t.leaf){var c=t.x,f=t.y;if(null!=c)if(Math.abs(c-e)+Math.abs(f-r)<.01)s(t,n,e,r,i,a,o,u);else{var l=t.data;t.x=t.y=t.data=null,s(t,l,c,f,i,a,o,u),s(t,n,e,r,i,a,o,u)}else t.x=e,t.y=r,t.data=n}else s(t,n,e,r,i,a,o,u)}function s(t,n,e,r,i,a,o,s){var c=(i+o)/2,f=(a+s)/2,l=e>=c,h=r>=f,d=h<<1|l;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=new Ct),l?i=c:o=c,h?a=f:s=f,u(t,n,e,r,i,a,o,s)}var c,f,l,h,d,p,_,y,g,m="function"==typeof a?a:Nt(a),v="function"==typeof o?o:Nt(o);if(t||(t=[]),null!=n)p=n,_=r,y=e,g=i;else for(y=g=-(p=_=1/0),f=[],l=[],d=t.length,h=0;d>h;++h){var b=+m(c=t[h],h,t),x=+v(c,h,t);p>b&&(p=b),_>x&&(_=x),b>y&&(y=b),x>g&&(g=x),f.push(b),l.push(x)}var M=y-p,w=g-_;isFinite(M)&&isFinite(w)&&(M>w?g=_+M:y=p+w);var T=new Ct;if(T.add=function(t){return u(T,t,+m(t,++h),+v(t,h),p,_,y,g),T},T.visit=function(t){return Et(t,T,p,_,y,g),T},T.find=function(t,n){return Pt(T,t,n,p,_,y,g)},h=-1,null==n){for(;++h<d;)u(T,t[h],f[h],l[h],p,_,y,g);--h}else t.forEach(T.add);return f=l=t=c=null,T}var n,e,r,i,a=St,o=At;return t.x=function(n){return arguments.length?(a=n,t):a},t.y=function(n){return arguments.length?(o=n,t):o},t.extent=function(a){return arguments.length?(null==a?n=r=e=i=null:(n=+a[0][0],r=+a[0][1],e=+a[1][0],i=+a[1][1]),t):null==n?null:[[n,r],[e,i]]},t.size=function(a){return arguments.length?(null==a?n=r=e=i=null:(n=r=0,e=+a[0],i=+a[1]),t):null==n?null:[e-n,i-r]},t}function Ft(t){if(!(t>=1))throw new Error;this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Lt(t){if(!t._start)try{Ut(t)}catch(n){t._tasks[t._ended+t._active-1]&&Ot(t,n)}}function Ut(t){for(;t._start=t._waiting&&t._active<t._size;){var n=t._ended+t._active,e=t._tasks[n],r=e.length-1,i=e[r];e[r]=Yt(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||ff)}}function Yt(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?Ot(t,e):(t._data[n]=r,t._waiting?Lt(t):Ht(t))))}}function Ot(t,n){var e,r=t._tasks.length;for(t._error=n,t._data=void 0,t._waiting=NaN;--r>=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,Ht(t)}function Ht(t){!t._active&&t._call&&t._call(t._error,t._data)}function Rt(t){return new Ft(arguments.length?+t:1/0)}function jt(t){return function(){return t}}function zt(t){return t.innerRadius}function qt(t){return t.outerRadius}function It(t){return t.startAngle}function Xt(t){return t.endAngle}function Jt(t){return t&&t.padAngle}function Bt(t){return t>=1?df:-1>=t?-df:Math.asin(t)}function Wt(t,n,e,r,i,a,o,u){var s=e-t,c=r-n,f=o-i,l=u-a,h=(f*(n-a)-l*(t-i))/(l*s-f*c);return[t+h*s,n+h*c]}function Vt(t,n,e,r,i,a,o){var u=t-e,s=n-r,c=(o?a:-a)/Math.sqrt(u*u+s*s),f=c*s,l=-c*u,h=t+f,d=n+l,p=e+f,_=r+l,y=(h+p)/2,g=(d+_)/2,m=p-h,v=_-d,b=m*m+v*v,x=i-a,M=h*_-p*d,w=(0>v?-1:1)*Math.sqrt(Math.max(0,x*x*b-M*M)),T=(M*v-m*w)/b,k=(-M*m-v*w)/b,S=(M*v+m*w)/b,A=(-M*m+v*w)/b,N=T-y,C=k-g,E=S-y,P=A-g;return N*N+C*C>E*E+P*P&&(T=S,k=A),{cx:T,cy:k,x01:-f,y01:-l,x11:T*(i/x-1),y11:k*(i/x-1)}}function $t(){function t(){var t,c,f=+n.apply(this,arguments),l=+e.apply(this,arguments),h=a.apply(this,arguments)-df,d=o.apply(this,arguments)-df,p=Math.abs(d-h),_=d>h;if(s||(s=t=kt()),f>l&&(c=l,l=f,f=c),l>lf)if(p>pf-lf)s.moveTo(l*Math.cos(h),l*Math.sin(h)),s.arc(0,0,l,h,d,!_),f>lf&&(s.moveTo(f*Math.cos(d),f*Math.sin(d)),s.arc(0,0,f,d,h,_));else{var y,g,m=h,v=d,b=h,x=d,M=p,w=p,T=u.apply(this,arguments)/2,k=T>lf&&(i?+i.apply(this,arguments):Math.sqrt(f*f+l*l)),S=Math.min(Math.abs(l-f)/2,+r.apply(this,arguments)),A=S,N=S;if(k>lf){var C=Bt(k/f*Math.sin(T)),E=Bt(k/l*Math.sin(T));(M-=2*C)>lf?(C*=_?1:-1,b+=C,x-=C):(M=0,b=x=(h+d)/2),(w-=2*E)>lf?(E*=_?1:-1,m+=E,v-=E):(w=0,m=v=(h+d)/2)}var P=l*Math.cos(m),D=l*Math.sin(m),F=f*Math.cos(x),L=f*Math.sin(x);if(S>lf){var U=l*Math.cos(v),Y=l*Math.sin(v),O=f*Math.cos(b),H=f*Math.sin(b);if(hf>p){var R=M>lf?Wt(P,D,O,H,U,Y,F,L):[F,L],j=P-R[0],z=D-R[1],q=U-R[0],I=Y-R[1],X=1/Math.sin(Math.acos((j*q+z*I)/(Math.sqrt(j*j+z*z)*Math.sqrt(q*q+I*I)))/2),J=Math.sqrt(R[0]*R[0]+R[1]*R[1]);A=Math.min(S,(f-J)/(X-1)),N=Math.min(S,(l-J)/(X+1))}}w>lf?N>lf?(y=Vt(O,H,P,D,l,N,_),g=Vt(U,Y,F,L,l,N,_),s.moveTo(y.cx+y.x01,y.cy+y.y01),S>N?s.arc(y.cx,y.cy,N,Math.atan2(y.y01,y.x01),Math.atan2(g.y01,g.x01),!_):(s.arc(y.cx,y.cy,N,Math.atan2(y.y01,y.x01),Math.atan2(y.y11,y.x11),!_),s.arc(0,0,l,Math.atan2(y.cy+y.y11,y.cx+y.x11),Math.atan2(g.cy+g.y11,g.cx+g.x11),!_),s.arc(g.cx,g.cy,N,Math.atan2(g.y11,g.x11),Math.atan2(g.y01,g.x01),!_))):(s.moveTo(P,D),s.arc(0,0,l,m,v,!_)):s.moveTo(P,D),f>lf&&M>lf?A>lf?(y=Vt(F,L,U,Y,f,-A,_),g=Vt(P,D,O,H,f,-A,_),s.lineTo(y.cx+y.x01,y.cy+y.y01),S>A?s.arc(y.cx,y.cy,A,Math.atan2(y.y01,y.x01),Math.atan2(g.y01,g.x01),!_):(s.arc(y.cx,y.cy,A,Math.atan2(y.y01,y.x01),Math.atan2(y.y11,y.x11),!_),s.arc(0,0,f,Math.atan2(y.cy+y.y11,y.cx+y.x11),Math.atan2(g.cy+g.y11,g.cx+g.x11),_),s.arc(g.cx,g.cy,A,Math.atan2(g.y11,g.x11),Math.atan2(g.y01,g.x01),!_))):s.arc(0,0,f,x,b,_):s.lineTo(F,L)}else s.moveTo(0,0);return s.closePath(),t?(s=null,t+""||null):void 0}var n=zt,e=qt,r=jt(0),i=null,a=It,o=Xt,u=Jt,s=null;return t.centroid=function(){var t=(+n.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-hf/2;return[Math.cos(r)*t,Math.sin(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:jt(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:jt(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:jt(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:jt(+n),t):i},t.startAngle=function(n){return arguments.length?(a="function"==typeof n?n:jt(+n),t):a},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:jt(+n),t):o},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:jt(+n),t):u},t.context=function(n){return arguments.length?(s=null==n?null:n,t):s},t}function Zt(t,n){return n.length<2?t:(n=_f.call(n),n[0]=null,function(e){return n[0]=e,t.apply(null,n)})}function Gt(t){this._context=t}function Kt(t){return new Gt(t)}function Qt(t){return t[0]}function tn(t){return t[1]}function nn(){function t(t){var c,f,l,h,d,p=t.length,_=!1,y=new Array(p),g=new Array(p);for(o||(s=u(d=kt())),c=0;p>=c;++c){if(!(p>c&&a(h=t[c],c,t))===_)if(_=!_)f=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),l=c-1;l>=f;--l)s.point(y[l],g[l]);s.lineEnd(),s.areaEnd()}_&&(y[c]=+n(h,c,t),g[c]=+r(h,c,t),s.point(e?+e(h,c,t):y[c],i?+i(h,c,t):g[c]))}return d?(s=null,d+""||null):void 0}var n=Qt,e=null,r=jt(0),i=tn,a=jt(!0),o=null,u=Kt,s=null;return t.x=function(r){return arguments.length?(n="function"==typeof r?r:jt(+r),e=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:jt(+e),t):n},t.x1=function(n){return arguments.length?(e=null==n?null:"function"==typeof n?n:jt(+n),t):e},t.y=function(n){return arguments.length?(r="function"==typeof n?n:jt(+n),i=null,t):r},t.y0=function(n){return arguments.length?(r="function"==typeof n?n:jt(+n),t):r},t.y1=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:jt(+n),t):i},t.defined=function(n){return arguments.length?(a="function"==typeof n?n:jt(!!n),t):a},t.curve=function(n){return arguments.length?(u=Zt(n,arguments),null!=o&&(s=u(o)),t):u},t.context=function(n){return arguments.length?(null==n?o=s=null:s=u(o=n),t):o},t}function en(){function t(t){var u,s,c,f=t.length,l=!1;for(i||(o=a(c=kt())),u=0;f>=u;++u)!(f>u&&r(s=t[u],u,t))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+n(s,u,t),+e(s,u,t));return c?(o=null,c+""||null):void 0}var n=Qt,e=tn,r=jt(!0),i=null,a=Kt,o=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:jt(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:jt(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:jt(!!n),t):r},t.curve=function(n){return arguments.length?(a=Zt(n,arguments),null!=i&&(o=a(i)),t):a},t.context=function(n){return arguments.length?(null==n?i=o=null:o=a(i=n),t):i},t}function rn(t,n){return t>n?-1:n>t?1:n>=t?0:NaN}function an(t){return t}function on(){function t(t){var u,s,c,f,l,h=t.length,d=0,p=new Array(h),_=new Array(h),y=+i.apply(this,arguments),g=Math.min(pf,Math.max(-pf,a.apply(this,arguments)-y)),m=Math.min(Math.abs(g)/h,o.apply(this,arguments)),v=m*(0>g?-1:1);for(u=0;h>u;++u)(l=_[p[u]=u]=+n(t[u],u,t))>0&&(d+=l);for(null!=e?p.sort(function(t,n){return e(_[t],_[n])}):null!==r&&p.sort(function(n,e){return r(t[n],t[e])}),u=0,c=d?(g-h*v)/d:0;h>u;++u,y=f)s=p[u],l=_[s],f=y+(l>0?l*c:0)+v,_[s]={data:t[s],index:u,value:l,startAngle:y,endAngle:f,padAngle:m};return _}var n=an,e=rn,r=null,i=jt(0),a=jt(pf),o=jt(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:jt(+e),t):n},t.sortValues=function(n){return arguments.length?(e=n,r=null,t):e},t.sort=function(n){return arguments.length?(r=n,e=null,t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:jt(+n),t):i},t.endAngle=function(n){return arguments.length?(a="function"==typeof n?n:jt(+n),t):a},t.padAngle=function(n){return arguments.length?(o="function"==typeof n?n:jt(+n),t):o},t}function un(t){this._curve=t}function sn(t,n){function e(n){return new un(t(n))}return t=Zt(t,n),e._curve=t,e}function cn(){var t=nn(),n=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?n(sn(t,arguments)):n()._curve},t.curve(Kt)}function fn(){var t=en(),n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(sn(t,arguments)):n()._curve},t.curve(Kt)}function ln(){function t(){var t;return r||(r=t=kt()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t?(r=null,t+""||null):void 0}var n=jt(yf),e=jt(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:jt(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:jt(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t}function hn(){}function dn(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function pn(t){this._context=t}function _n(t){return new pn(t)}function yn(t){this._context=t}function gn(t){return new yn(t)}function mn(t){this._context=t}function vn(t){return new mn(t)}function bn(t,n){this._basis=_n(t),this._beta=n}function xn(t,n){return null==n?new bn(t,.85):1===(n=+n)?_n(t):new bn(t,n)}function Mn(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function wn(t,n){this._context=t,this._k=n}function Tn(t,n){return new wn(t,(null==n?1:1-n)/6)}function kn(t,n){this._context=t,this._k=n}function Sn(t,n){return new kn(t,(null==n?1:1-n)/6)}function An(t,n){this._context=t,this._k=n}function Nn(t,n){return new An(t,(null==n?1:1-n)/6)}function Cn(t,n,e){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>lf){var u=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*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/s,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/s}if(t._l23_a>lf){var c=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);a=(a*c+t._x1*t._l23_2a-n*t._l12_2a)/f,o=(o*c+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function En(t,n){this._context=t,this._alpha=n}function Pn(t,n){return(n=null==n?.5:+n)?new En(t,n):Tn(t,0)}function Dn(t,n){this._context=t,this._alpha=n}function Fn(t,n){return(n=null==n?.5:+n)?new Dn(t,n):Sn(t,0)}function Ln(t,n){this._context=t,this._alpha=n}function Un(t,n){return(n=null==n?.5:+n)?new Ln(t,n):Nn(t,0)}function Yn(t){this._context=t}function On(t){return new Yn(t)}function Hn(t){return 0>t?-1:1}function Rn(t,n,e){var r=t._x1-t._x0,i=n-t._x1,a=(t._y1-t._y0)/(r||0>i&&-0),o=(e-t._y1)/(i||0>r&&-0),u=(a*i+o*r)/(r+i);return(Hn(a)+Hn(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function jn(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function zn(t,n,e){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,u=(a-r)/3;t._context.bezierCurveTo(r+u,i+u*n,a-u,o-u*e,a,o)}function qn(t){this._context=t}function In(t){this._context=new Xn(t)}function Xn(t){this._context=t}function Jn(t){return new qn(t)}function Bn(t){return new In(t)}function Wn(t){this._context=t}function Vn(t){var n,e,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],n=1;r-1>n;++n)i[n]=1,a[n]=4,o[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],n=1;r>n;++n)e=i[n]/a[n-1],a[n]-=e,o[n]-=e*o[n-1];for(i[r-1]=o[r-1]/a[r-1],n=r-2;n>=0;--n)i[n]=(o[n]-i[n+1])/a[n];for(a[r-1]=(t[r]+i[r-1])/2,n=0;r-1>n;++n)a[n]=2*t[n+1]-i[n+1];return[i,a]}function $n(t){return new Wn(t)}function Zn(t,n){this._context=t,this._t=n}function Gn(t){return new Zn(t,.5)}function Kn(t){return new Zn(t,0)}function Qn(t){return new Zn(t,1)}function te(t,n){if((r=t.length)>1)for(var e,r,i=1,a=t[n[0]],o=a.length;r>i;++i){e=a,a=t[n[i]];for(var u=0;o>u;++u)a[u][1]+=a[u][0]=isNaN(e[u][1])?e[u][0]:e[u][1]}}function ne(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function ee(t,n){return t[n]}function re(){function t(t){var a,o,u=n.apply(this,arguments),s=t.length,c=u.length,f=new Array(c);for(a=0;c>a;++a){for(var l,h=u[a],d=f[a]=new Array(s),p=0;s>p;++p)d[p]=l=[0,+i(t[p],h,p,t)],l.data=t[p];d.key=h}for(a=0,o=e(f);c>a;++a)f[o[a]].index=a;return r(f,o),f}var n=jt([]),e=ne,r=te,i=ee;return t.keys=function(e){return arguments.length?(n="function"==typeof e?e:jt(Uf.call(e)),t):n},t.value=function(n){return arguments.length?(i="function"==typeof n?n:jt(+n),t):i},t.order=function(n){return arguments.length?(e=null==n?ne:"function"==typeof n?n:jt(Uf.call(n)),t):e},t.offset=function(n){return arguments.length?(r=null==n?te:n,t):r},t}function ie(t,n){if((r=t.length)>0){for(var e,r,i,a=0,o=t[0].length;o>a;++a){for(i=e=0;r>e;++e)i+=t[e][a][1]||0;if(i)for(e=0;r>e;++e)t[e][a][1]/=i}te(t,n)}}function ae(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],a=i.length;a>r;++r){for(var o=0,u=0;e>o;++o)u+=t[o][r][1]||0;i[r][1]+=i[r][0]=-u/2}te(t,n)}}function oe(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,a=0,o=1;r>o;++o){for(var u=0,s=0,c=0;i>u;++u){for(var f=t[n[u]],l=f[o][1]||0,h=f[o-1][1]||0,d=(l-h)/2,p=0;u>p;++p){var _=t[n[p]],y=_[o][1]||0,g=_[o-1][1]||0;d+=y-g}s+=l,c+=d*l}e[o-1][1]+=e[o-1][0]=a,s&&(a-=c/s)}e[o-1][1]+=e[o-1][0]=a,te(t,n)}}function ue(t){var n=t.map(se);return ne(t).sort(function(t,e){return n[t]-n[e]})}function se(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function ce(t){return ue(t).reverse()}function fe(t){var n,e,r=t.length,i=t.map(se),a=ne(t).sort(function(t,n){return i[n]-i[t]}),o=0,u=0,s=[],c=[];for(n=0;r>n;++n)e=a[n],u>o?(o+=i[e],s.push(e)):(u+=i[e],c.push(e));return c.reverse().concat(s)}function le(t){return ne(t).reverse()}function he(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function de(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function pe(){}function _e(t){var n;return t=(t+"").trim().toLowerCase(),(n=Hf.exec(t))?(n=parseInt(n[1],16),new be(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Rf.exec(t))?ye(parseInt(n[1],16)):(n=jf.exec(t))?new be(n[1],n[2],n[3],1):(n=zf.exec(t))?new be(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=qf.exec(t))?ge(n[1],n[2],n[3],n[4]):(n=If.exec(t))?ge(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Xf.exec(t))?xe(n[1],n[2]/100,n[3]/100,1):(n=Jf.exec(t))?xe(n[1],n[2]/100,n[3]/100,n[4]):Bf.hasOwnProperty(t)?ye(Bf[t]):"transparent"===t?new be(NaN,NaN,NaN,0):null}function ye(t){return new be(t>>16&255,t>>8&255,255&t,1)}function ge(t,n,e,r){return 0>=r&&(t=n=e=NaN),new be(t,n,e,r)}function me(t){return t instanceof pe||(t=_e(t)),t?(t=t.rgb(),new be(t.r,t.g,t.b,t.opacity)):new be}function ve(t,n,e,r){return 1===arguments.length?me(t):new be(t,n,e,null==r?1:r)}function be(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function xe(t,n,e,r){return 0>=r?t=n=e=NaN:0>=e||e>=1?t=n=NaN:0>=n&&(t=NaN),new Te(t,n,e,r)}function Me(t){if(t instanceof Te)return new Te(t.h,t.s,t.l,t.opacity);if(t instanceof pe||(t=_e(t)),!t)return new Te;if(t instanceof Te)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),o=NaN,u=a-i,s=(a+i)/2;return u?(o=n===a?(e-r)/u+6*(r>e):e===a?(r-n)/u+2:(n-e)/u+4,u/=.5>s?a+i:2-a-i,o*=60):u=s>0&&1>s?0:o,new Te(o,u,s,t.opacity)}function we(t,n,e,r){return 1===arguments.length?Me(t):new Te(t,n,e,null==r?1:r)}function Te(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function ke(t,n,e){return 255*(60>t?n+(e-n)*t/60:180>t?e:240>t?n+(e-n)*(240-t)/60:n)}function Se(t){if(t instanceof Ne)return new Ne(t.l,t.a,t.b,t.opacity);if(t instanceof Ue){var n=t.h*Wf;return new Ne(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof be||(t=me(t));var e=De(t.r),r=De(t.g),i=De(t.b),a=Ce((.4124564*e+.3575761*r+.1804375*i)/Zf),o=Ce((.2126729*e+.7151522*r+.072175*i)/Gf),u=Ce((.0193339*e+.119192*r+.9503041*i)/Kf);return new Ne(116*o-16,500*(a-o),200*(o-u),t.opacity)}function Ae(t,n,e,r){return 1===arguments.length?Se(t):new Ne(t,n,e,null==r?1:r)}function Ne(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Ce(t){return t>el?Math.pow(t,1/3):t/nl+Qf}function Ee(t){return t>tl?t*t*t:nl*(t-Qf)}function Pe(t){return 255*(.0031308>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function De(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Fe(t){if(t instanceof Ue)return new Ue(t.h,t.c,t.l,t.opacity);t instanceof Ne||(t=Se(t));var n=Math.atan2(t.b,t.a)*Vf;return new Ue(0>n?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Le(t,n,e,r){return 1===arguments.length?Fe(t):new Ue(t,n,e,null==r?1:r)}function Ue(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Ye(t){if(t instanceof He)return new He(t.h,t.s,t.l,t.opacity);t instanceof be||(t=me(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(fl*r+sl*n-cl*e)/(fl+sl-cl),a=r-i,o=(ul*(e-i)-al*a)/ol,u=Math.sqrt(o*o+a*a)/(ul*i*(1-i)),s=u?Math.atan2(o,a)*Vf-120:NaN;return new He(0>s?s+360:s,u,i,t.opacity)}function Oe(t,n,e,r){return 1===arguments.length?Ye(t):new He(t,n,e,null==r?1:r)}function He(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Re(t){return function(){return t}}function je(t,n){return function(e){return t+e*n}}function ze(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function qe(t,n){var e=n-t;return e?je(t,e>180||-180>e?e-360*Math.round(e/360):e):Re(isNaN(t)?n:t)}function Ie(t){return 1===(t=+t)?Xe:function(n,e){return e-n?ze(n,e,t):Re(isNaN(n)?e:n)}}function Xe(t,n){var e=n-t;return e?je(t,e):Re(isNaN(t)?n:t)}function Je(t,n){var e,r=[],i=[],a=t?t.length:0,o=n?n.length:0,u=Math.min(a,o);for(e=0;u>e;++e)r.push(Ge(t[e],n[e]));for(;a>e;++e)i[e]=t[e];for(;o>e;++e)i[e]=n[e];return function(t){for(e=0;u>e;++e)i[e]=r[e](t);return i}}function Be(t,n){return t=+t,n-=t,function(e){return t+n*e}}function We(t,n){var e,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={});for(e in t)e in n?r[e]=Ge(t[e],n[e]):i[e]=t[e];for(e in n)e in t||(i[e]=n[e]);return function(t){for(e in r)i[e]=r[e](t);return i}}function Ve(t){return function(){return t}}function $e(t){return function(n){return t(n)+""}}function Ze(t,n){var e,r,i,a=yl.lastIndex=gl.lastIndex=0,o=-1,u=[],s=[];for(t+="",n+="";(e=yl.exec(t))&&(r=gl.exec(n));)(i=r.index)>a&&(i=n.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:Be(e,r)})),a=gl.lastIndex;return a<n.length&&(i=n.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?$e(s[0].x):Ve(n):(n=s.length,function(t){for(var e,r=0;n>r;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function Ge(t,n){var e,r=typeof n;return null==n||"boolean"===r?Re(n):("number"===r?Be:"string"===r?(e=_e(n))?(n=e,_l):Ze:n instanceof _e?_l:Array.isArray(n)?Je:We)(t,n)}function Ke(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}}function Qe(t,n,e,r,i,a){if(t*r===n*e)return null;var o=Math.sqrt(t*t+n*n);t/=o,n/=o;var u=t*e+n*r;e-=t*u,r-=n*u;var s=Math.sqrt(e*e+r*r);return e/=s,r/=s,u/=s,n*e>t*r&&(t=-t,n=-n,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(n,t)*ml,skewX:Math.atan(u)*ml,scaleX:o,scaleY:s}}function tr(t){if("none"===t)return vl;ll||(ll=document.createElement("DIV"),hl=document.documentElement,dl=document.defaultView),ll.style.transform=t,t=dl.getComputedStyle(hl.appendChild(ll),null).getPropertyValue("transform"),hl.removeChild(ll);var n=t.slice(7,-1).split(",");return Qe(+n[0],+n[1],+n[2],+n[3],+n[4],+n[5])}function nr(t){pl||(pl=document.createElementNS("http://www.w3.org/2000/svg","g")),pl.setAttribute("transform",null==t?"":t);var n=pl.transform.baseVal.consolidate().matrix;return Qe(n.a,n.b,n.c,n.d,n.e,n.f)}function er(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function a(t,r,i,a,o,u){if(t!==i||r!==a){var s=o.push("translate(",null,n,null,e);u.push({i:s-4,x:Be(t,i)},{i:s-2,x:Be(r,a)})}else(i||a)&&o.push("translate("+i+n+a+e)}function o(t,n,e,a){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),a.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Be(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function u(t,n,e,a){t!==n?a.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Be(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function s(t,n,e,r,a,o){if(t!==e||n!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:Be(t,e)},{i:u-2,x:Be(n,r)})}else 1===e&&1===r||a.push(i(a)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),a(n.translateX,n.translateY,e.translateX,e.translateY,r,i),o(n.rotate,e.rotate,r,i),u(n.skewX,e.skewX,r,i),s(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,a=i.length;++e<a;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function rr(t){return((t=Math.exp(t))+1/t)/2}function ir(t){return((t=Math.exp(t))-1/t)/2}function ar(t){return((t=Math.exp(2*t))-1)/(t+1);
}function or(t,n){var e,r,i=t[0],a=t[1],o=t[2],u=n[0],s=n[1],c=n[2],f=u-i,l=s-a,h=f*f+l*l;if(kl>h)r=Math.log(c/o)/Ml,e=function(t){return[i+t*f,a+t*l,o*Math.exp(Ml*t*r)]};else{var d=Math.sqrt(h),p=(c*c-o*o+Tl*h)/(2*o*wl*d),_=(c*c-o*o-Tl*h)/(2*c*wl*d),y=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(_*_+1)-_);r=(g-y)/Ml,e=function(t){var n=t*r,e=rr(y),u=o/(wl*d)*(e*ar(Ml*n+y)-ir(y));return[i+u*f,a+u*l,o*e/rr(Ml*n+y)]}}return e.duration=1e3*r,e}function ur(t,n){var e=qe((t=we(t)).h,(n=we(n)).h),r=Xe(t.s,n.s),i=Xe(t.l,n.l),a=Xe(t.opacity,n.opacity);return function(n){return t.h=e(n),t.s=r(n),t.l=i(n),t.opacity=a(n),t+""}}function sr(t,n){var e=Xe((t=we(t)).h,(n=we(n)).h),r=Xe(t.s,n.s),i=Xe(t.l,n.l),a=Xe(t.opacity,n.opacity);return function(n){return t.h=e(n),t.s=r(n),t.l=i(n),t.opacity=a(n),t+""}}function cr(t,n){var e=Xe((t=Ae(t)).l,(n=Ae(n)).l),r=Xe(t.a,n.a),i=Xe(t.b,n.b),a=Xe(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=a(n),t+""}}function fr(t,n){var e=qe((t=Le(t)).h,(n=Le(n)).h),r=Xe(t.c,n.c),i=Xe(t.l,n.l),a=Xe(t.opacity,n.opacity);return function(n){return t.h=e(n),t.c=r(n),t.l=i(n),t.opacity=a(n),t+""}}function lr(t,n){var e=Xe((t=Le(t)).h,(n=Le(n)).h),r=Xe(t.c,n.c),i=Xe(t.l,n.l),a=Xe(t.opacity,n.opacity);return function(n){return t.h=e(n),t.c=r(n),t.l=i(n),t.opacity=a(n),t+""}}function hr(){for(var t,n=0,e=arguments.length,r={};e>n;++n){if(!(t=arguments[n]+"")||t in r)throw new Error;r[t]=[]}return new dr(r)}function dr(t){this._=t}function pr(t,n){return t.trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw new Error;return{type:t,name:e}})}function _r(t,n){for(var e,r=0,i=t.length;i>r;++r)if((e=t[r]).name===n)return e.value}function yr(t,n,e){for(var r=0,i=t.length;i>r;++r)if(t[r].name===n){t[r]=Nl,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function gr(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}function mr(t,n){var e=gr(t);return function(r,i){return n(e(r),i,t)}}function vr(t){var n=Object.create(null),e=[];return t.forEach(function(t){for(var r in t)r in n||e.push(n[r]=r)}),e}function br(t){function n(t,n){var r,i,a=e(t,function(t,e){return r?r(t,e-1):(i=t,void(r=n?mr(t,n):gr(t)))});return a.columns=i,a}function e(t,n){function e(){if(f>=c)return o;if(i)return i=!1,a;var n,e=f;if(34===t.charCodeAt(e)){for(var r=e;r++<c;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return f=r+2,n=t.charCodeAt(r+1),13===n?(i=!0,10===t.charCodeAt(r+2)&&++f):10===n&&(i=!0),t.slice(e+1,r).replace(/""/g,'"')}for(;c>f;){var u=1;if(n=t.charCodeAt(f++),10===n)i=!0;else if(13===n)i=!0,10===t.charCodeAt(f)&&(++f,++u);else if(n!==s)continue;return t.slice(e,f-u)}return t.slice(e)}for(var r,i,a={},o={},u=[],c=t.length,f=0,l=0;(r=e())!==o;){for(var h=[];r!==a&&r!==o;)h.push(r),r=e();n&&null==(h=n(h,l++))||u.push(h)}return u}function r(n,e){return null==e&&(e=vr(n)),[e.map(o).join(t)].concat(n.map(function(n){return e.map(function(t){return o(n[t])}).join(t)})).join("\n")}function i(t){return t.map(a).join("\n")}function a(n){return n.map(o).join(t)}function o(t){return u.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),s=t.charCodeAt(0);return{parse:n,parseRows:e,format:r,formatRows:i}}function xr(t,n){function e(t){var n,e=c.status;if(!e&&wr(c)||e>=200&&300>e||304===e){if(a)try{n=a.call(r,c)}catch(i){return void u.call("error",r,i)}else n=c;u.call("load",r,n)}else u.call("error",r,t)}var r,i,a,o,u=hr("beforesend","progress","load","error"),s=L(),c=new XMLHttpRequest,f=null,l=null,h=0;return"undefined"==typeof XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(t)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=c.ontimeout=e:c.onreadystatechange=function(t){c.readyState>3&&e(t)},c.onprogress=function(t){u.call("progress",r,t)},r={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?s.get(t):(null==n?s.remove(t):s.set(t,n+""),r)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",r):i},responseType:function(t){return arguments.length?(o=t,r):o},timeout:function(t){return arguments.length?(h=+t,r):h},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",r)},password:function(t){return arguments.length<1?l:(l=null==t?null:t+"",r)},response:function(t){return a=t,r},get:function(t,n){return r.send("GET",t,n)},post:function(t,n){return r.send("POST",t,n)},send:function(n,e,a){return a||"function"!=typeof e||(a=e,e=null),a&&1===a.length&&(a=Mr(a)),c.open(n,t,!0,f,l),null==i||s.has("accept")||s.set("accept",i+",*/*"),c.setRequestHeader&&s.each(function(t,n){c.setRequestHeader(n,t)}),null!=i&&c.overrideMimeType&&c.overrideMimeType(i),null!=o&&(c.responseType=o),h>0&&(c.timeout=h),a&&r.on("error",a).on("load",function(t){a(null,t)}),u.call("beforesend",r,c),c.send(null==e?null:e),r},abort:function(){return c.abort(),r},on:function(){var t=u.on.apply(u,arguments);return t===u?r:t}},n?r.get(n):r}function Mr(t){return function(n,e){t(null==n?e:null)}}function wr(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Tr(t,n){return function(e,r){var i=xr(e).mimeType(t).response(n);return r?i.get(r):i}}function kr(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var a=xr(e).mimeType(t);return a.row=function(t){return arguments.length?a.response(Sr(n,r=t)):r},a.row(r),i?a.get(i):a}}function Sr(t,n){return function(e){return t(e.responseText,n)}}function Ar(){return Kl||(nh(Nr),Kl=th.now()+Ql)}function Nr(){Kl=0}function Cr(){this._call=this._time=this._next=null}function Er(t,n,e){var r=new Cr;return r.restart(t,n,e),r}function Pr(){Ar(),++Wl;for(var t,n=Cl;n;)(t=Kl-n._time)>=0&&n._call.call(null,t),n=n._next;--Wl}function Dr(t){Kl=(Gl=t||th.now())+Ql,Wl=Vl=0;try{Pr()}finally{Wl=0,Lr(),Kl=0}}function Fr(){var t=th.now(),n=t-Gl;n>Zl&&(Ql-=n,Gl=t)}function Lr(){for(var t,n=Cl,e=1/0;n;)n._call?(e>n._time&&(e=n._time),n=(t=n)._next):n=t?t._next=n._next:Cl=n._next;El=t,Ur(e)}function Ur(t){if(!Wl){Vl&&(Vl=clearTimeout(Vl));var n=t-Kl;n>24?(1/0>t&&(Vl=setTimeout(Dr,n)),$l&&($l=clearInterval($l))):($l||($l=setInterval(Fr,Zl)),Wl=1,nh(Dr))}}function Yr(t,n,e){var r=new Cr;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}function Or(t,n,e){var r=new Cr,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?Ar():+e,r.restart(function a(o){o+=i,r.restart(a,i+=n,e),t(o)},n,e),r)}function Hr(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return e-t>t-n?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,a){var o=[];if(e=i.ceil(e),a=null==a?1:Math.floor(a),!(r>e&&a>0))return o;do o.push(new Date(+e));while(n(e,a),t(e),r>e);return o},i.filter=function(e){return Hr(function(n){for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return eh.setTime(+n),rh.setTime(+r),t(eh),t(rh),Math.floor(e(eh,rh))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t===0}:function(n){return i.count(0,n)%t===0}):i:null}),i}function Rr(t){return Hr(function(n){n.setHours(0,0,0,0),n.setDate(n.getDate()-(n.getDay()+7-t)%7)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*uh)/fh})}function jr(t){return Hr(function(n){n.setUTCHours(0,0,0,0),n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/fh})}function zr(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function qr(t){return t=zr(Math.abs(t)),t?t[1]:NaN}function Ir(t,n){return function(e,r){for(var i=e.length,a=[],o=0,u=t[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(e.substring(i-=u,i+u)),!((s+=u+1)>r));)u=t[o=(o+1)%t.length];return a.reverse().join(n)}}function Xr(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,a=-1;r>i;++i)switch(t[i]){case".":a=e=i;break;case"0":0===a&&(a=i),e=i;break;case"e":break t;default:a>0&&(a=0)}return a>0?t.slice(0,a)+t.slice(e+1):t}function Jr(t,n){var e=zr(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(ah=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+zr(t,Math.max(0,n+a-1))[0]}function Br(t,n){var e=zr(t,n);if(!e)return t+"";var r=e[0],i=e[1];return 0>i?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}function Wr(t){return new Vr(t)}function Vr(t){if(!(n=_d.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",a=n[4]||"",o=!!n[5],u=n[6]&&+n[6],s=!!n[7],c=n[8]&&+n[8].slice(1),f=n[9]||"";"n"===f?(s=!0,f="g"):pd[f]||(f=""),(o||"0"===e&&"="===r)&&(o=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=a,this.zero=o,this.width=u,this.comma=s,this.precision=c,this.type=f}function $r(t){return t}function Zr(t){function n(t){function n(t){var n,i,s,m=p,v=_;if("c"===d)v=y(t)+v,t="";else{t=+t;var b=(0>t||0>1/t)&&(t*=-1,!0);if(t=y(t,h),b)for(n=-1,i=t.length,b=!1;++n<i;)if(s=t.charCodeAt(n),s>48&&58>s||"x"===d&&s>96&&103>s||"X"===d&&s>64&&71>s){b=!0;break}if(m=(b?"("===u?u:"-":"-"===u||"("===u?"":u)+m,v=v+("s"===d?yd[8+ah/3]:"")+(b&&"("===u?")":""),g)for(n=-1,i=t.length;++n<i;)if(s=t.charCodeAt(n),48>s||s>57){v=(46===s?a+t.slice(n+1):t.slice(n))+v,t=t.slice(0,n);break}}l&&!c&&(t=r(t,1/0));var x=m.length+t.length+v.length,M=f>x?new Array(f-x+1).join(e):"";switch(l&&c&&(t=r(M+t,M.length?f-v.length:1/0),M=""),o){case"<":return m+t+v+M;case"=":return m+M+t+v;case"^":return M.slice(0,x=M.length>>1)+m+t+v+M.slice(x)}return M+m+t+v}t=Wr(t);var e=t.fill,o=t.align,u=t.sign,s=t.symbol,c=t.zero,f=t.width,l=t.comma,h=t.precision,d=t.type,p="$"===s?i[0]:"#"===s&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",_="$"===s?i[1]:/[%p]/.test(d)?"%":"",y=pd[d],g=!d||/[defgprs%]/.test(d);return h=null==h?d?6:12:/[gprs]/.test(d)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),n.toString=function(){return t+""},n}function e(t,e){var r=n((t=Wr(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(qr(e)/3))),a=Math.pow(10,-i),o=yd[8+i/3];return function(t){return r(a*t)+o}}var r=t.grouping&&t.thousands?Ir(t.grouping,t.thousands):$r,i=t.currency,a=t.decimal;return{format:n,formatPrefix:e}}function Gr(t){return Math.max(0,-qr(Math.abs(t)))}function Kr(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(qr(n)/3)))-qr(Math.abs(t)))}function Qr(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,qr(n)-qr(t))+1}function ti(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ni(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ei(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function ri(t){function n(t,n){return function(e){var r,i,a,o=[],u=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++u<c;)37===t.charCodeAt(u)&&(o.push(t.slice(s,u)),null!=(i=qd[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(a=n[r])&&(r=a(e,i)),o.push(r),s=u+1);return o.push(t.slice(s,u)),o.join("")}}function e(t,n){return function(e){var i=ei(1900),a=r(i,t,e+="",0);if(a!=e.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 o="Z"in i?ni(ei(i.y)).getUTCDay():n(ei(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,ni(i)):n(i)}}function r(t,n,e,r){for(var i,a,o=0,u=n.length,s=e.length;u>o;){if(r>=s)return-1;if(i=n.charCodeAt(o++),37===i){if(i=n.charAt(o++),a=q[i in qd?n.charAt(o++):i],!a||(r=a(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function i(t,n,e){var r=E.exec(n.slice(e));return r?(t.p=P[r[0].toLowerCase()],e+r[0].length):-1}function a(t,n,e){var r=L.exec(n.slice(e));return r?(t.w=U[r[0].toLowerCase()],e+r[0].length):-1}function o(t,n,e){var r=D.exec(n.slice(e));return r?(t.w=F[r[0].toLowerCase()],e+r[0].length):-1}function u(t,n,e){var r=H.exec(n.slice(e));return r?(t.m=R[r[0].toLowerCase()],e+r[0].length):-1}function s(t,n,e){var r=Y.exec(n.slice(e));return r?(t.m=O[r[0].toLowerCase()],e+r[0].length):-1}function c(t,n,e){return r(t,M,n,e)}function f(t,n,e){return r(t,w,n,e)}function l(t,n,e){return r(t,T,n,e)}function h(t){return A[t.getDay()]}function d(t){return S[t.getDay()]}function p(t){return C[t.getMonth()]}function _(t){return N[t.getMonth()]}function y(t){return k[+(t.getHours()>=12)]}function g(t){return A[t.getUTCDay()]}function m(t){return S[t.getUTCDay()]}function v(t){return C[t.getUTCMonth()]}function b(t){return N[t.getUTCMonth()]}function x(t){return k[+(t.getUTCHours()>=12)]}var M=t.dateTime,w=t.date,T=t.time,k=t.periods,S=t.days,A=t.shortDays,N=t.months,C=t.shortMonths,E=oi(k),P=ui(k),D=oi(S),F=ui(S),L=oi(A),U=ui(A),Y=oi(N),O=ui(N),H=oi(C),R=ui(C),j={a:h,A:d,b:p,B:_,c:null,d:Mi,e:Mi,H:wi,I:Ti,j:ki,L:Si,m:Ai,M:Ni,p:y,S:Ci,U:Ei,w:Pi,W:Di,x:null,X:null,y:Fi,Y:Li,Z:Ui,"%":Zi},z={a:g,A:m,b:v,B:b,c:null,d:Yi,e:Yi,H:Oi,I:Hi,j:Ri,L:ji,m:zi,M:qi,p:x,S:Ii,U:Xi,w:Ji,W:Bi,x:null,X:null,y:Wi,Y:Vi,Z:$i,"%":Zi},q={a:a,A:o,b:u,B:s,c:c,d:_i,e:_i,H:gi,I:gi,j:yi,L:bi,m:pi,M:mi,p:i,S:vi,U:ci,w:si,W:fi,x:f,X:l,y:hi,Y:li,Z:di,"%":xi};return j.x=n(w,j),j.X=n(T,j),j.c=n(M,j),z.x=n(w,z),z.X=n(T,z),z.c=n(M,z),{format:function(t){var e=n(t+="",j);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",ti);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",z);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,ni);return n.toString=function(){return t},n}}}function ii(t,n,e){var r=0>t?"-":"",i=(r?-t:t)+"",a=i.length;return r+(e>a?new Array(e-a+1).join(n)+i:i)}function ai(t){return t.replace(Jd,"\\$&")}function oi(t){return new RegExp("^(?:"+t.map(ai).join("|")+")","i")}function ui(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function si(t,n,e){var r=Id.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function ci(t,n,e){var r=Id.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function fi(t,n,e){var r=Id.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function li(t,n,e){var r=Id.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function hi(t,n,e){var r=Id.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function di(t,n,e){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function pi(t,n,e){var r=Id.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function _i(t,n,e){var r=Id.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function yi(t,n,e){var r=Id.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function gi(t,n,e){var r=Id.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function mi(t,n,e){var r=Id.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function vi(t,n,e){var r=Id.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function bi(t,n,e){var r=Id.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function xi(t,n,e){var r=Xd.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Mi(t,n){return ii(t.getDate(),n,2)}function wi(t,n){return ii(t.getHours(),n,2)}function Ti(t,n){return ii(t.getHours()%12||12,n,2)}function ki(t,n){return ii(1+ph.count(wh(t),t),n,3)}function Si(t,n){return ii(t.getMilliseconds(),n,3)}function Ai(t,n){return ii(t.getMonth()+1,n,2)}function Ni(t,n){return ii(t.getMinutes(),n,2)}function Ci(t,n){return ii(t.getSeconds(),n,2)}function Ei(t,n){return ii(_h.count(wh(t),t),n,2)}function Pi(t){return t.getDay()}function Di(t,n){return ii(yh.count(wh(t),t),n,2)}function Fi(t,n){return ii(t.getFullYear()%100,n,2)}function Li(t,n){return ii(t.getFullYear()%1e4,n,4)}function Ui(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ii(n/60|0,"0",2)+ii(n%60,"0",2)}function Yi(t,n){return ii(t.getUTCDate(),n,2)}function Oi(t,n){return ii(t.getUTCHours(),n,2)}function Hi(t,n){return ii(t.getUTCHours()%12||12,n,2)}function Ri(t,n){return ii(1+Sh.count(Uh(t),t),n,3)}function ji(t,n){return ii(t.getUTCMilliseconds(),n,3)}function zi(t,n){return ii(t.getUTCMonth()+1,n,2)}function qi(t,n){return ii(t.getUTCMinutes(),n,2)}function Ii(t,n){return ii(t.getUTCSeconds(),n,2)}function Xi(t,n){return ii(Ah.count(Uh(t),t),n,2)}function Ji(t){return t.getUTCDay()}function Bi(t,n){return ii(Nh.count(Uh(t),t),n,2)}function Wi(t,n){return ii(t.getUTCFullYear()%100,n,2)}function Vi(t,n){return ii(t.getUTCFullYear()%1e4,n,4)}function $i(){return"+0000"}function Zi(){return"%"}function Gi(t){return t.toISOString()}function Ki(t){var n=new Date(t);return isNaN(n)?null:n}function Qi(){function t(t){var a=t+"",o=n.get(a);if(!o){if(i!==Tp)return i;n.set(a,o=e.push(t))}return r[(o-1)%r.length]}var n=L(),e=[],r=[],i=Tp;return t.domain=function(r){if(!arguments.length)return e.slice();e=[],n=L();for(var i,a,o=-1,u=r.length;++o<u;)n.has(a=(i=r[o])+"")||n.set(a,e.push(i));return t},t.range=function(n){return arguments.length?(r=wp.call(n),t):r.slice()},t.unknown=function(n){return arguments.length?(i=n,t):i},t.copy=function(){return Qi().domain(e).range(r).unknown(i)},t}function ta(){function t(){var t=i().length,r=o[1]<o[0],h=o[r-0],d=o[1-r];n=(d-h)/Math.max(1,t-s+2*c),u&&(n=Math.floor(n)),h+=(d-h-n*(t-s))*f,e=n*(1-s),u&&(h=Math.round(h),e=Math.round(e));var p=l(t).map(function(t){return h+n*t});return a(r?p.reverse():p)}var n,e,r=Qi().unknown(void 0),i=r.domain,a=r.range,o=[0,1],u=!1,s=0,c=0,f=.5;return delete r.unknown,r.domain=function(n){return arguments.length?(i(n),t()):i()},r.range=function(n){return arguments.length?(o=[+n[0],+n[1]],t()):o.slice()},r.rangeRound=function(n){return o=[+n[0],+n[1]],u=!0,t()},r.bandwidth=function(){return e},r.step=function(){return n},r.round=function(n){return arguments.length?(u=!!n,t()):u},r.padding=function(n){return arguments.length?(s=c=Math.max(0,Math.min(1,n)),t()):s},r.paddingInner=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),t()):s},r.paddingOuter=function(n){return arguments.length?(c=Math.max(0,Math.min(1,n)),t()):c},r.align=function(n){return arguments.length?(f=Math.max(0,Math.min(1,n)),t()):f},r.copy=function(){return ta().domain(i()).range(o).round(u).paddingInner(s).paddingOuter(c).align(f)},t()}function na(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return na(n())},t}function ea(){return na(ta().paddingInner(1))}function ra(t){return function(){return t}}function ia(t){return+t}function aa(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:ra(n)}function oa(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return n>=t?0:t>=e?1:r(t)}}}function ua(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return 0>=t?n:t>=1?e:r(t)}}}function sa(t,n,e,r){var i=t[0],a=t[1],o=n[0],u=n[1];return i>a?(i=e(a,i),o=r(u,o)):(i=e(i,a),o=r(o,u)),function(t){return o(i(t))}}function ca(t,n,e,r){var i=Math.min(t.length,n.length)-1,a=new Array(i),o=new Array(i),u=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<i;)a[u]=e(t[u],t[u+1]),o[u]=r(n[u],n[u+1]);return function(n){var e=kc(t,n,1,i)-1;return o[e](a[e](n))}}function fa(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function la(t,n){function e(){var e=Math.min(o.length,u.length)>2?ca:sa;return i=e(o,u,c?oa(t):t,s),a=e(u,o,aa,c?ua(n):n),r}function r(t){return i(+t)}var i,a,o=kp,u=kp,s=Ge,c=!1;return r.invert=function(t){return a(+t)},r.domain=function(t){return arguments.length?(o=Mp.call(t,ia),e()):o.slice()},r.range=function(t){return arguments.length?(u=wp.call(t),e()):u.slice()},r.rangeRound=function(t){return u=wp.call(t),s=Ke,e()},r.clamp=function(t){return arguments.length?(c=!!t,e()):c},r.interpolate=function(t){return arguments.length?(s=t,e()):s},e()}function ha(t,n,e){var r,i=t[0],a=t[t.length-1],o=d(i,a,null==n?10:n);switch(e=Wr(null==e?",f":e),e.type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=e.precision||isNaN(r=Kr(o,u))||(e.precision=r),zd(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=Qr(o,Math.max(Math.abs(i),Math.abs(a))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=Gr(o))||(e.precision=r-2*("%"===e.type))}return jd(e)}function da(t){var n=t.domain;return t.ticks=function(t){var e=n();return h(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return ha(n(),t,e)},t.nice=function(e){var r=n(),i=r.length-1,a=null==e?10:e,o=r[0],u=r[i],s=d(o,u,a);return s&&(s=d(Math.floor(o/s)*s,Math.ceil(u/s)*s,a),r[0]=Math.floor(o/s)*s,r[i]=Math.ceil(u/s)*s,n(r)),t},t}function pa(){var t=la(aa,Be);return t.copy=function(){return fa(t,pa())},da(t)}function _a(){function t(t){return+t}var n=[0,1];return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=Mp.call(e,ia),t):n.slice()},t.copy=function(){return _a().domain(n)},da(t)}function ya(t,n){t=t.slice();var e,r=0,i=t.length-1,a=t[r],o=t[i];return a>o&&(e=r,r=i,i=e,e=a,a=o,o=e),t[r]=n.floor(a),t[i]=n.ceil(o),t}function ga(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:ra(n)}function ma(t,n){return 0>t?function(e){return-Math.pow(-n,e)*Math.pow(-t,1-e)}:function(e){return Math.pow(n,e)*Math.pow(t,1-e)}}function va(t){return isFinite(t)?+("1e"+t):0>t?0:t}function ba(t){return 10===t?va:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function xa(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(n){return Math.log(n)/t})}function Ma(t){return function(n){return-t(-n)}}function wa(){function t(){return i=xa(r),a=ba(r),e()[0]<0&&(i=Ma(i),a=Ma(a)),n}var n=la(ga,ma).domain([1,10]),e=n.domain,r=10,i=xa(10),a=ba(10);return n.base=function(n){return arguments.length?(r=+n,t()):r},n.domain=function(n){return arguments.length?(e(n),t()):e()},n.ticks=function(t){var n,o=e(),u=o[0],s=o[o.length-1];(n=u>s)&&(d=u,u=s,s=d);var c,f,l,d=i(u),p=i(s),_=null==t?10:+t,y=[];if(!(r%1)&&_>p-d){if(d=Math.round(d)-1,p=Math.round(p)+1,u>0){for(;p>d;++d)for(f=1,c=a(d);r>f;++f)if(l=c*f,!(u>l)){if(l>s)break;y.push(l)}}else for(;p>d;++d)for(f=r-1,c=a(d);f>=1;--f)if(l=c*f,!(u>l)){if(l>s)break;y.push(l)}n&&y.reverse()}else y=h(d,p,Math.min(p-d,_)).map(a);return y},n.tickFormat=function(t,e){if(null==e&&(e=10===r?".0e":","),"function"!=typeof e&&(e=jd(e)),t===1/0)return e;null==t&&(t=10);var o=Math.max(1,r*t/n.ticks().length);return function(t){var n=t/a(Math.round(i(t)));return r-.5>n*r&&(n*=r),o>=n?e(t):""}},n.nice=function(){return e(ya(e(),{floor:function(t){return a(Math.floor(i(t)))},ceil:function(t){return a(Math.ceil(i(t)))}}))},n.copy=function(){return fa(n,wa().base(r))},n}function Ta(t,n){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}function ka(){function t(t,n){return(n=Ta(n,e)-(t=Ta(t,e)))?function(r){return(Ta(r,e)-t)/n}:ra(n)}function n(t,n){return n=Ta(n,e)-(t=Ta(t,e)),function(r){return Ta(t+n*r,1/e)}}var e=1,r=la(t,n),i=r.domain;return r.exponent=function(t){return arguments.length?(e=+t,i(i())):e},r.copy=function(){return fa(r,ka().exponent(e))},da(r)}function Sa(){return ka().exponent(.5)}function Aa(){function t(){var t=0,n=Math.max(1,i.length);for(a=new Array(n-1);++t<n;)a[t-1]=g(r,t/n);return e}function e(t){return isNaN(t=+t)?void 0:i[kc(a,t)]}var r=[],i=[],a=[];return e.invertExtent=function(t){var n=i.indexOf(t);return 0>n?[NaN,NaN]:[n>0?a[n-1]:r[0],n<a.length?a[n]:r[r.length-1]]},e.domain=function(e){if(!arguments.length)return r.slice();r=[];for(var i,a=0,o=e.length;o>a;++a)i=e[a],null==i||isNaN(i=+i)||r.push(i);return r.sort(n),t()},e.range=function(n){return arguments.length?(i=wp.call(n),t()):i.slice()},e.quantiles=function(){return a.slice()},e.copy=function(){return Aa().domain(r).range(i)},e}function Na(){function t(t){return t>=t?o[kc(a,t,0,i)]:void 0}function n(){var n=-1;for(a=new Array(i);++n<i;)a[n]=((n+1)*r-(n-i)*e)/(i+1);return t}var e=0,r=1,i=1,a=[.5],o=[0,1];return t.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n()):[e,r]},t.range=function(t){return arguments.length?(i=(o=wp.call(t)).length-1,n()):o.slice()},t.invertExtent=function(t){var n=o.indexOf(t);return 0>n?[NaN,NaN]:1>n?[e,a[0]]:n>=i?[a[i-1],r]:[a[n-1],a[n]]},t.copy=function(){return Na().domain([e,r]).range(o)},da(t)}function Ca(){function t(t){return t>=t?e[kc(n,t,0,r)]:void 0}var n=[.5],e=[0,1],r=1;return t.domain=function(i){return arguments.length?(n=wp.call(i),r=Math.min(n.length,e.length-1),t):n.slice()},t.range=function(i){return arguments.length?(e=wp.call(i),r=Math.min(n.length,e.length-1),t):e.slice()},t.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},t.copy=function(){return Ca().domain(n).range(e)},t}function Ea(t){return new Date(t)}function Pa(t,n,r,i,a,o,u,s,c){function f(e){return(u(e)<e?y:o(e)<e?g:a(e)<e?m:i(e)<e?v:n(e)<e?r(e)<e?b:x:t(e)<e?M:w)(e)}function l(n,r,i,a){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(i-r)/n,u=e(function(t){return t[2]}).right(T,o);u===T.length?(a=d(r/Dp,i/Dp,n),n=t):u?(u=T[o/T[u-1][2]<T[u][2]/o?u-1:u],a=u[1],n=u[0]):(a=d(r,i,n),n=s)}return null==a?n:n.every(a)}var h=la(aa,Be),p=h.invert,_=h.domain,y=c(".%L"),g=c(":%S"),m=c("%I:%M"),v=c("%I %p"),b=c("%a %d"),x=c("%b %d"),M=c("%B"),w=c("%Y"),T=[[u,1,Sp],[u,5,5*Sp],[u,15,15*Sp],[u,30,30*Sp],[o,1,Ap],[o,5,5*Ap],[o,15,15*Ap],[o,30,30*Ap],[a,1,Np],[a,3,3*Np],[a,6,6*Np],[a,12,12*Np],[i,1,Cp],[i,2,2*Cp],[r,1,Ep],[n,1,Pp],[n,3,3*Pp],[t,1,Dp]];return h.invert=function(t){return new Date(p(t))},h.domain=function(t){return arguments.length?_(t):_().map(Ea)},h.ticks=function(t,n){var e,r=_(),i=r[0],a=r[r.length-1],o=i>a;return o&&(e=i,i=a,a=e),e=l(t,i,a,n),e=e?e.range(i,a+1):[],o?e.reverse():e},h.tickFormat=function(t){return null==t?f:c(t)},h.nice=function(t,n){var e=_();return(t=l(t,e[0],e[e.length-1],n))?_(ya(e,t)):h},h.copy=function(){return fa(h,Pa(t,n,r,i,a,o,u,s,c))},h}function Da(){return Pa(wh,Mh,_h,ph,dh,hh,lh,ih,gp).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function Fa(){return Pa(Uh,Lh,Ah,Sh,kh,Th,Qh,Gh,vp).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function La(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}function Ua(){return Qi().range(Fp)}function Ya(){return Qi().range(Lp)}function Oa(){return Qi().range(Up)}function Ha(){return Qi().range(Yp)}function Ra(){return pa().interpolate(Al).range([Oe(300,.5,0),Oe(-240,.5,1)])}function ja(t){function n(n){var a=(n-e)/(r-e);return t(i?Math.max(0,Math.min(1,a)):a)}var e=0,r=1,i=!1;return n.domain=function(t){return arguments.length?(e=+t[0],r=+t[1],n):[e,r]},n.clamp=function(t){return arguments.length?(i=!!t,n):i},n.copy=function(){return ja(t).domain([e,r]).clamp(i)},da(n)}function za(){return ja(Al(Oe(-100,.75,.35),Oe(80,1.5,.8)))}function qa(){return ja(Al(Oe(260,.75,.35),Oe(80,1.5,.8)))}function Ia(){var t=Oe();return ja(function(n){(0>n||n>1)&&(n-=Math.floor(n));var e=Math.abs(n-.5);return t.h=360*n-100,t.s=1.5-1.5*e,t.l=.8-.9*e,t+""})}function Xa(t){var n=ja(function(n){return t[Math.round(n*t.length-n)]}).clamp(!0);return delete n.clamp,n}function Ja(){return Xa(Op)}function Ba(){return Xa(Hp)}function Wa(){return Xa(Rp)}function Va(){return Xa(jp)}function $a(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),qp.hasOwnProperty(n)?{space:qp[n],local:t}:t}function Za(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===zp&&n.documentElement.namespaceURI===zp?n.createElement(t):n.createElementNS(e,t)}}function Ga(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ka(t){var n=$a(t);return(n.local?Ga:Za)(n)}function Qa(t,n,e){return t=to(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function to(n,e,r){return function(i){var a=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=a}}}function no(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function eo(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,a=n.length;a>r;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function ro(t,n,e){var r=Wp.hasOwnProperty(t.type)?Qa:to;return function(i,a,o){var u,s=this.__on,c=r(n,a,o);if(s)for(var f=0,l=s.length;l>f;++f)if((u=s[f]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=c,u.capture=e),void(u.value=n);this.addEventListener(t.type,c,e),u={type:t.type,name:t.name,value:n,listener:c,capture:e},s?s.push(u):this.__on=[u]}}function io(t,n,e){var r,i,a=no(t+""),o=a.length;{if(!(arguments.length<2)){for(u=n?ro:eo,null==e&&(e=!1),r=0;o>r;++r)this.each(u(a[r],n,e));return this}var u=this.node().__on;if(u)for(var s,c=0,f=u.length;f>c;++c)for(r=0,s=u[c];o>r;++r)if((i=a[r]).type===s.type&&i.name===s.name)return s.value}}function ao(){for(var n,e=t.event;n=e.sourceEvent;)e=n;return e}function oo(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function uo(t){return function(){return this.querySelector(t)}}function so(t){"function"!=typeof t&&(t=uo(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;e>i;++i)for(var a,o,u=n[i],s=u.length,c=r[i]=new Array(s),f=0;s>f;++f)(a=u[f])&&(o=t.call(a,a.__data__,f,u))&&("__data__"in a&&(o.__data__=a.__data__),c[f]=o);return new Tu(r,this._parents)}function co(t){return function(){return this.querySelectorAll(t)}}function fo(t){"function"!=typeof t&&(t=co(t));for(var n=this._groups,e=n.length,r=[],i=[],a=0;e>a;++a)for(var o,u=n[a],s=u.length,c=0;s>c;++c)(o=u[c])&&(r.push(t.call(o,o.__data__,c,u)),i.push(o));return new Tu(r,i)}function lo(t){"function"!=typeof t&&(t=Bp(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;e>i;++i)for(var a,o=n[i],u=o.length,s=r[i]=new Array(u),c=0;u>c;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&(s[c]=a);return new Tu(r,this._parents)}function ho(t){return function(){return t}}function po(t,n,e,r,i,a){for(var o,u=0,s=n.length,c=a.length;c>u;++u)(o=n[u])?(o.__data__=a[u],r[u]=o):e[u]=new go(t,a[u]);for(;s>u;++u)(o=n[u])&&(i[u]=o)}function _o(t,n,e,r,i,a,o){var u,s,c,f={},l=n.length,h=a.length,d=new Array(l);for(u=0;l>u;++u)(s=n[u])&&(d[u]=c=$p+o.call(s,s.__data__,u,n),f[c]||(f[c]=s));for(u=0;h>u;++u)c=$p+o.call(t,a[u],u,a),(s=f[c])?s!==!0&&(r[u]=s,s.__data__=a[u]):e[u]=new go(t,a[u]),f[c]=!0;for(u=0;l>u;++u)(s=n[u])&&f[d[u]]!==!0&&(i[u]=s)}function yo(t,n){if(!t)return d=new Array(this.size()),c=-1,this.each(function(t){d[++c]=t}),d;var e=n?_o:po,r=this._parents,i=this._groups;"function"!=typeof t&&(t=ho(t));for(var a=i.length,o=new Array(a),u=new Array(a),s=new Array(a),c=0;a>c;++c){var f=r[c],l=i[c],h=l.length,d=t.call(f,f&&f.__data__,c,r),p=d.length,_=u[c]=new Array(p),y=o[c]=new Array(p),g=s[c]=new Array(h);e(f,l,_,y,g,d,n);for(var m,v,b=0,x=0;p>b;++b)if(m=_[b]){for(b>=x&&(x=b+1);!(v=y[x])&&++x<p;);m._next=v||null}}return o=new Tu(o,r),o._enter=u,o._exit=s,o}function go(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function mo(t){return new Array(t.length)}function vo(){return new Tu(this._enter||this._groups.map(mo),this._parents)}function bo(){return new Tu(this._exit||this._groups.map(mo),this._parents);
}function xo(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,a=Math.min(r,i),o=new Array(r),u=0;a>u;++u)for(var s,c=n[u],f=e[u],l=c.length,h=o[u]=new Array(l),d=0;l>d;++d)(s=c[d]||f[d])&&(h[d]=s);for(;r>u;++u)o[u]=n[u];return new Tu(o,this._parents)}function Mo(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this}function wo(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=To);for(var e=this._groups,r=e.length,i=new Array(r),a=0;r>a;++a){for(var o,u=e[a],s=u.length,c=i[a]=new Array(s),f=0;s>f;++f)(o=u[f])&&(c[f]=o);c.sort(n)}return new Tu(i,this._parents).order()}function To(t,n){return n>t?-1:t>n?1:t>=n?0:NaN}function ko(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function So(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t}function Ao(){for(var t=this._groups,n=0,e=t.length;e>n;++n)for(var r=t[n],i=0,a=r.length;a>i;++i){var o=r[i];if(o)return o}return null}function No(){var t=0;return this.each(function(){++t}),t}function Co(){return!this.node()}function Eo(t){for(var n=this._groups,e=0,r=n.length;r>e;++e)for(var i,a=n[e],o=0,u=a.length;u>o;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this}function Po(t){return function(){this.removeAttribute(t)}}function Do(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Fo(t,n){return function(){this.setAttribute(t,n)}}function Lo(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Uo(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Yo(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Oo(t,n){var e=$a(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?Do:Po:"function"==typeof n?e.local?Yo:Uo:e.local?Lo:Fo)(e,n))}function Ho(t){return function(){this.style.removeProperty(t)}}function Ro(t,n,e){return function(){this.style.setProperty(t,n,e)}}function jo(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function zo(t,n,e){var r;return arguments.length>1?this.each((null==n?Ho:"function"==typeof n?jo:Ro)(t,n,null==e?"":e)):oo(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)}function qo(t){return function(){delete this[t]}}function Io(t,n){return function(){this[t]=n}}function Xo(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Jo(t,n){return arguments.length>1?this.each((null==n?qo:"function"==typeof n?Xo:Io)(t,n)):this.node()[t]}function Bo(t){return t.trim().split(/^|\s+/)}function Wo(t){return t.classList||new Vo(t)}function Vo(t){this._node=t,this._names=Bo(t.getAttribute("class")||"")}function $o(t,n){for(var e=Wo(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Zo(t,n){for(var e=Wo(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Go(t){return function(){$o(this,t)}}function Ko(t){return function(){Zo(this,t)}}function Qo(t,n){return function(){(n.apply(this,arguments)?$o:Zo)(this,t)}}function tu(t,n){var e=Bo(t+"");if(arguments.length<2){for(var r=Wo(this.node()),i=-1,a=e.length;++i<a;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?Qo:n?Go:Ko)(e,n))}function nu(){this.textContent=""}function eu(t){return function(){this.textContent=t}}function ru(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function iu(t){return arguments.length?this.each(null==t?nu:("function"==typeof t?ru:eu)(t)):this.node().textContent}function au(){this.innerHTML=""}function ou(t){return function(){this.innerHTML=t}}function uu(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function su(t){return arguments.length?this.each(null==t?au:("function"==typeof t?uu:ou)(t)):this.node().innerHTML}function cu(){this.parentNode.appendChild(this)}function fu(){return this.each(cu)}function lu(){this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hu(){return this.each(lu)}function du(t){return function(){return this.appendChild(t.apply(this,arguments))}}function pu(t,n){return function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)}}function _u(){return null}function yu(t,n){var e="function"==typeof t?t:Ka(t);return this.select(arguments.length<2?du(e):pu(e,null==n?_u:"function"==typeof n?n:uo(n)))}function gu(){var t=this.parentNode;t&&t.removeChild(this)}function mu(){return this.each(gu)}function vu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function bu(t,n,e){var r=oo(t),i=r.CustomEvent;i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function xu(t,n){return function(){return bu(this,t,n)}}function Mu(t,n){return function(){return bu(this,t,n.apply(this,arguments))}}function wu(t,n){return this.each(("function"==typeof n?Mu:xu)(t,n))}function Tu(t,n){this._groups=t,this._parents=n}function ku(){return new Tu([[document.documentElement]],Zp)}function Su(t){return"string"==typeof t?new Tu([[document.querySelector(t)]],[document.documentElement]):new Tu([[t]],Zp)}function Au(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();if(0>Gp){var i=oo(t);if(i.scrollX||i.scrollY){e=Su(i.document.body).append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=e.node().getScreenCTM();Gp=!(a.f||a.e),e.remove()}}return Gp?(r.x=n.pageX,r.y=n.pageY):(r.x=n.clientX,r.y=n.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var o=t.getBoundingClientRect();return[n.clientX-o.left-t.clientLeft,n.clientY-o.top-t.clientTop]}function Nu(t,n){return null==n&&(n=ao()),n.changedTouches&&(n=n.changedTouches[0]),Au(t,n)}function Cu(t){return"string"==typeof t?new Tu([document.querySelectorAll(t)],[document.documentElement]):new Tu([t],Zp)}function Eu(t,n,e){arguments.length<3&&(e=n,n=ao().changedTouches);for(var r,i=0,a=n?n.length:0;a>i;++i)if((r=n[i]).identifier===e)return Au(t,r);return null}function Pu(t,n){null==n&&(n=ao().touches);for(var e=0,r=n?n.length:0,i=new Array(r);r>e;++e)i[e]=Au(t,n[e]);return i}function Du(t,n,e,r,i,a){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};Yu(t,e,{name:n,index:r,group:i,on:Kp,tween:Qp,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:t_})}function Fu(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>t_)throw new Error("too late");return e}function Lu(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>e_)throw new Error("too late");return e}function Uu(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function Yu(t,n,e){function r(t){e.state=n_,e.delay<=t?i(t-e.delay):e.timer.restart(i,e.delay,e.time)}function i(r){var i,s,c,f;for(i in u)f=u[i],f.name===e.name&&(f.state===r_?(f.state=a_,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete u[i]):n>+i&&(f.state=a_,f.timer.stop(),delete u[i]));if(Yr(function(){e.state===r_&&(e.timer.restart(a,e.delay,e.time),a(r))}),e.state=e_,e.on.call("start",t,t.__data__,e.index,e.group),e.state===e_){for(e.state=r_,o=new Array(c=e.tween.length),i=0,s=-1;c>i;++i)(f=e.tween[i].value.call(t,t.__data__,e.index,e.group))&&(o[++s]=f);o.length=s+1}}function a(r){for(var i=r<e.duration?e.ease.call(null,r/e.duration):(e.state=i_,1),a=-1,s=o.length;++a<s;)o[a].call(null,i);if(e.state===i_){e.state=a_,e.timer.stop(),e.on.call("end",t,t.__data__,e.index,e.group);for(a in u)if(+a!==n)return void delete u[n];delete t.__transition}}var o,u=t.__transition;u[n]=e,e.timer=Er(r,0,e.time)}function Ou(t){return t=null==t?null:t+"",this.each(function(){var n,e,r,i=this.__transition,a=!0;if(i){for(r in i)(n=i[r]).name===t?(e=n.state===r_,n.state=a_,n.timer.stop(),e&&n.on.call("interrupt",this,this.__data__,n.index,n.group),delete i[r]):a=!1;a&&delete this.__transition}})}function Hu(t,n){var e,r;return function(){var i=Lu(this,t),a=i.tween;if(a!==e){r=e=a;for(var o=0,u=r.length;u>o;++o)if(r[o].name===n){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Ru(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var a=Lu(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var u={name:n,value:e},s=0,c=i.length;c>s;++s)if(i[s].name===n){i[s]=u;break}s===c&&i.push(u)}a.tween=i}}function ju(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Uu(this.node(),e).tween,a=0,o=i.length;o>a;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==n?Hu:Ru)(e,t,n))}function zu(t,n,e){var r=t._id;return t.each(function(){var t=Lu(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Uu(t,r).value[n]}}function qu(t,n){var e;return("number"==typeof n?Be:n instanceof _e?_l:(e=_e(n))?(n=e,_l):Ze)(t,n)}function Iu(t){return function(){this.removeAttribute(t)}}function Xu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ju(t,n,e){var r,i;return function(){var a=this.getAttribute(t);return a===e?null:a===r?i:i=n(r=a,e)}}function Bu(t,n,e){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===e?null:a===r?i:i=n(r=a,e)}}function Wu(t,n,e){var r,i,a;return function(){var o,u=e(this);return null==u?void this.removeAttribute(t):(o=this.getAttribute(t),o===u?null:o===r&&u===i?a:a=n(r=o,i=u))}}function Vu(t,n,e){var r,i,a;return function(){var o,u=e(this);return null==u?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),o===u?null:o===r&&u===i?a:a=n(r=o,i=u))}}function $u(t,n){var e=$a(t),r="transform"===e?xl:qu;return this.attrTween(t,"function"==typeof n?(e.local?Vu:Wu)(e,r,zu(this,"attr."+t,n)):null==n?(e.local?Xu:Iu)(e):(e.local?Bu:Ju)(e,r,n))}function Zu(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}function Gu(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e}function Ku(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=$a(t);return this.tween(e,(r.local?Zu:Gu)(r,n))}function Qu(t,n){return function(){Fu(this,t).delay=+n.apply(this,arguments)}}function ts(t,n){return n=+n,function(){Fu(this,t).delay=n}}function ns(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Qu:ts)(n,t)):Uu(this.node(),n).delay}function es(t,n){return function(){Lu(this,t).duration=+n.apply(this,arguments)}}function rs(t,n){return n=+n,function(){Lu(this,t).duration=n}}function is(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?es:rs)(n,t)):Uu(this.node(),n).duration}function as(t,n){if("function"!=typeof n)throw new Error;return function(){Lu(this,t).ease=n}}function os(t){var n=this._id;return arguments.length?this.each(as(n,t)):Uu(this.node(),n).ease}function us(t){"function"!=typeof t&&(t=Bp(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;e>i;++i)for(var a,o=n[i],u=o.length,s=r[i]=new Array(u),c=0;u>c;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&(s[c]=a);return new Ns(r,this._parents,this._name,this._id)}function ss(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,a=Math.min(r,i),o=new Array(r),u=0;a>u;++u)for(var s,c=n[u],f=e[u],l=c.length,h=o[u]=new Array(l),d=0;l>d;++d)(s=c[d]||f[d])&&(h[d]=s);for(;r>u;++u)o[u]=n[u];return new Ns(o,this._parents,this._name,this._id)}function cs(t){return(t+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t})}function fs(t,n,e){var r,i,a=cs(n)?Fu:Lu;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(n,e),o.on=i}}function ls(t,n){var e=this._id;return arguments.length<2?Uu(this.node(),e).on.on(t):this.each(fs(e,t,n))}function hs(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function ds(){return this.on("end.remove",hs(this._id))}function ps(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=uo(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;i>o;++o)for(var u,s,c=r[o],f=c.length,l=a[o]=new Array(f),h=0;f>h;++h)(u=c[h])&&(s=t.call(u,u.__data__,h,c))&&("__data__"in u&&(s.__data__=u.__data__),l[h]=s,Du(l[h],n,e,h,l,Uu(u,e)));return new Ns(a,this._parents,n,e)}function _s(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=co(t));for(var r=this._groups,i=r.length,a=[],o=[],u=0;i>u;++u)for(var s,c=r[u],f=c.length,l=0;f>l;++l)if(s=c[l]){for(var h,d=t.call(s,s.__data__,l,c),p=Uu(s,e),_=0,y=d.length;y>_;++_)(h=d[_])&&Du(h,n,e,_,d,p);a.push(d),o.push(s)}return new Ns(a,o,n,e)}function ys(){return new o_(this._groups,this._parents)}function gs(t,n){var e,r,i;return function(){var a=oo(this).getComputedStyle(this,null),o=a.getPropertyValue(t),u=(this.style.removeProperty(t),a.getPropertyValue(t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function ms(t){return function(){this.style.removeProperty(t)}}function vs(t,n,e){var r,i;return function(){var a=oo(this).getComputedStyle(this,null).getPropertyValue(t);return a===e?null:a===r?i:i=n(r=a,e)}}function bs(t,n,e){var r,i,a;return function(){var o=oo(this).getComputedStyle(this,null),u=o.getPropertyValue(t),s=e(this);return null==s&&(this.style.removeProperty(t),s=o.getPropertyValue(t)),u===s?null:u===r&&s===i?a:a=n(r=u,i=s)}}function xs(t,n,e){var r="transform"==(t+="")?bl:qu;return null==n?this.styleTween(t,gs(t,r)).on("end.style."+t,ms(t)):this.styleTween(t,"function"==typeof n?bs(t,r,zu(this,"style."+t,n)):vs(t,r,n),e)}function Ms(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}function ws(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,Ms(t,n,null==e?"":e))}function Ts(t){return function(){this.textContent=t}}function ks(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function Ss(t){return this.tween("text","function"==typeof t?ks(zu(this,"text",t)):Ts(null==t?"":t+""))}function As(){for(var t=this._name,n=this._id,e=Es(),r=this._groups,i=r.length,a=0;i>a;++a)for(var o,u=r[a],s=u.length,c=0;s>c;++c)if(o=u[c]){var f=Uu(o,n);Du(o,t,e,c,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Ns(r,this._parents,t,e)}function Ns(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Cs(t){return ku().transition(t)}function Es(){return++u_}function Ps(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return c_.time=Ar(),c_;return e}function Ds(t){var n,e;t instanceof Ns?(n=t._id,t=t._name):(n=Es(),(e=c_).time=Ar(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;i>a;++a)for(var o,u=r[a],s=u.length,c=0;s>c;++c)(o=u[c])&&Du(o,t,n,c,u,e||Ps(o,n));return new Ns(r,this._parents,t,n)}function Fs(t,n){var e,r,i=t.__transition;if(i){n=null==n?null:n+"";for(r in i)if((e=i[r]).state>n_&&e.name===n)return new Ns([[t]],f_,n,+r)}return null}function Ls(t){return t}function Us(t,n,e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}function Ys(t,n,e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}function Os(t){var n=t.bandwidth()/2;return function(e){return t(e)+n}}function Hs(t,n){function e(e){var c=null==i?n.ticks?n.ticks.apply(n,r):n.domain():i,f=null==a?n.tickFormat?n.tickFormat.apply(n,r):Ls:a,l=Math.max(o,0)+s,h=t===h_||t===p_?Us:Ys,d=n.range(),p=d[0],_=d[d.length-1],y=(n.bandwidth?Os:Ls)(n.copy()),g=e.selection?e.selection():e,m=g.selectAll(".domain").data([null]),v=g.selectAll(".tick").data(c,n).order(),b=v.exit(),x=v.enter().append("g",".domain").attr("class","tick"),M=v.select("line"),w=v.select("text");switch(m=m.merge(m.enter().append("path").attr("class","domain")),v=v.merge(x),M=M.merge(x.append("line")),w=w.merge(x.append("text")),e!==g&&(m=m.transition(e),v=v.transition(e),b=b.transition(e).style("opacity",y_).attr("transform",function(t){return h(y,this.parentNode.__axis||y,t)}),x.style("opacity",y_).attr("transform",function(t){return h(this.parentNode.__axis||y,y,t)}),M=M.transition(e),w=w.transition(e)),v.style("opacity",1).attr("transform",function(t){return h(y,y,t)}),b.remove(),w.text(f),t){case h_:m.attr("d","M"+p+","+-u+"V0H"+_+"V"+-u),M.attr("x2",0).attr("y2",-o),w.attr("x",0).attr("y",-l).attr("dy","0em").style("text-anchor","middle");break;case d_:m.attr("d","M"+u+","+p+"H0V"+_+"H"+u),M.attr("y2",0).attr("x2",o),w.attr("y",0).attr("x",l).attr("dy",".32em").style("text-anchor","start");break;case p_:m.attr("d","M"+p+","+u+"V0H"+_+"V"+u),M.attr("x2",0).attr("y2",o),w.attr("x",0).attr("y",l).attr("dy",".71em").style("text-anchor","middle");break;case __:m.attr("d","M"+-u+","+p+"H0V"+_+"H"+-u),M.attr("y2",0).attr("x2",-o),w.attr("y",0).attr("x",-l).attr("dy",".32em").style("text-anchor","end")}g.each(function(){this.__axis=y})}var r=[],i=null,a=null,o=6,u=6,s=3;return e.scale=function(t){return arguments.length?(n=t,e):n},e.ticks=function(){return r=l_.call(arguments),e},e.tickArguments=function(t){return arguments.length?(r=null==t?[]:l_.call(t),e):r.slice()},e.tickValues=function(t){return arguments.length?(i=null==t?null:l_.call(t),e):i&&i.slice()},e.tickFormat=function(t){return arguments.length?(a=t,e):a},e.tickSize=function(t){return arguments.length?(o=u=+t,e):o},e.tickSizeInner=function(t){return arguments.length?(o=+t,e):o},e.tickSizeOuter=function(t){return arguments.length?(u=+t,e):u},e.tickPadding=function(t){return arguments.length?(s=+t,e):s},e}function Rs(t){return Hs(h_,t)}function js(t){return Hs(d_,t)}function zs(t){return Hs(p_,t)}function qs(t){return Hs(__,t)}function Is(t){return function(){return t}}function Xs(t){return t[0]}function Js(t){return t[1]}function Bs(){this._=null}function Ws(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Vs(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function $s(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Zs(t){for(;t.L;)t=t.L;return t}function Gs(t,n,e,r){var i=[null,null],a=x_.push(i)-1;return i.left=t,i.right=n,e&&Qs(i,t,n,e),r&&Qs(i,n,t,r),v_[t.index].halfedges.push(a),v_[n.index].halfedges.push(a),i}function Ks(t,n,e){var r=[n,e];return r.left=t,r}function Qs(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function tc(t,n,e,r,i){var a,o,u=t[0],s=t[1],c=u[0],f=u[1],l=s[0],h=s[1],d=0,p=1,_=l-c,y=h-f;if(o=n-c,_||!(o>0)){if(o/=_,0>_){if(d>o)return;p>o&&(p=o)}else if(_>0){if(o>p)return;o>d&&(d=o)}if(o=r-c,_||!(0>o)){if(o/=_,0>_){if(o>p)return;o>d&&(d=o)}else if(_>0){if(d>o)return;p>o&&(p=o)}if(o=e-f,y||!(o>0)){if(o/=y,0>y){if(d>o)return;p>o&&(p=o)}else if(y>0){if(o>p)return;o>d&&(d=o)}if(o=i-f,y||!(0>o)){if(o/=y,0>y){if(o>p)return;o>d&&(d=o)}else if(y>0){if(d>o)return;p>o&&(p=o)}return d>0||1>p?(a=t.left,o=t.right,d>0&&(u=[c+d*_,f+d*y]),1>p&&(s=[c+p*_,f+p*y]),t=[u,s],t.left=a,t.right=o,t):t}}}}}function nc(t,n,e,r,i){var a=t[1];if(a)return t;var o,u,s=t[0],c=t.left,f=t.right,l=c[0],h=c[1],d=f[0],p=f[1],_=(l+d)/2,y=(h+p)/2;if(p===h){if(n>_||_>=r)return;if(l>d){if(s){if(s[1]>=i)return}else s=[_,e];a=[_,i]}else{if(s){if(s[1]<e)return}else s=[_,i];a=[_,e]}}else if(o=(l-d)/(p-h),u=y-o*_,-1>o||o>1)if(l>d){if(s){if(s[1]>=i)return}else s=[(e-u)/o,e];a=[(i-u)/o,i]}else{if(s){if(s[1]<e)return}else s=[(i-u)/o,i];a=[(e-u)/o,e]}else if(p>h){if(s){if(s[0]>=r)return}else s=[n,o*n+u];a=[r,o*r+u]}else{if(s){if(s[0]<n)return}else s=[r,o*r+u];a=[n,o*n+u]}return t=[s,a],t.left=c,t.right=f,t}function ec(t,n,e,r){for(var i,a=x_.length,o=new Array(a);a--;)(i=nc(x_[a],t,n,e,r))&&(i=tc(i,t,n,e,r))&&(Math.abs(i[0][0]-i[1][0])>T_||Math.abs(i[0][1]-i[1][1])>T_)&&(o[a]=i);return o}function rc(t){return v_[t.index]={site:t,halfedges:[]}}function ic(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function ac(t,n){return n[+(n.left!==t.site)]}function oc(t,n){return n[+(n.left===t.site)]}function uc(){for(var t,n,e,r,i=0,a=v_.length;a>i;++i)if((t=v_[i])&&(r=(n=t.halfedges).length)){var o=new Array(r),u=new Array(r);for(e=0;r>e;++e)o[e]=e,u[e]=ic(t,x_[n[e]]);for(o.sort(function(t,n){return u[n]-u[t]}),e=0;r>e;++e)u[e]=n[o[e]];for(e=0;r>e;++e)n[e]=u[e]}}function sc(t,n,e,r,i){for(var a,o,u,s,c,f,l,h,d,p,_=v_.length;_--;)if(a=v_[_]){for(u=a.halfedges,o=u.length;o--;)t[u[o]]||u.splice(o,1);for(o=0,s=u.length;s>o;)h=oc(a,t[u[o]]),d=h[0],p=h[1],c=ac(a,t[u[++o%s]]),f=c[0],l=c[1],(Math.abs(d-f)>T_||Math.abs(p-l)>T_)&&(u.splice(o,0,t.push(Ks(a.site,h,Math.abs(d-n)<T_&&i-p>T_?[n,Math.abs(f-n)<T_?l:i]:Math.abs(p-i)<T_&&r-d>T_?[Math.abs(l-i)<T_?f:r,i]:Math.abs(d-r)<T_&&p-e>T_?[r,Math.abs(f-r)<T_?l:e]:Math.abs(p-e)<T_&&d-n>T_?[Math.abs(l-e)<T_?f:n,e]:null))-1),++s)}}function cc(){Ws(this),this.x=this.y=this.arc=this.site=this.cy=null}function fc(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,a=e.site;if(r!==a){var o=i[0],u=i[1],s=r[0]-o,c=r[1]-u,f=a[0]-o,l=a[1]-u,h=2*(s*l-c*f);if(!(h>=-k_)){var d=s*s+c*c,p=f*f+l*l,_=(l*d-c*p)/h,y=(s*p-f*d)/h,g=M_.pop()||new cc;g.arc=t,g.site=i,g.x=_+o,g.y=(g.cy=y+u)+Math.sqrt(_*_+y*y),t.circle=g;for(var m=null,v=b_._;v;)if(g.y<v.y||g.y===v.y&&g.x<=v.x){if(!v.L){m=v.P;break}v=v.L}else{if(!v.R){m=v;break}v=v.R}b_.insert(m,g),m||(g_=g)}}}}function lc(t){var n=t.circle;n&&(n.P||(g_=n.N),b_.remove(n),M_.push(n),Ws(n),t.circle=null)}function hc(){Ws(this),this.edge=this.site=this.circle=null}function dc(t){var n=w_.pop()||new hc;return n.site=t,n}function pc(t){lc(t),m_.remove(t),w_.push(t),Ws(t)}function _c(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],a=t.P,o=t.N,u=[t];pc(t);for(var s=a;s.circle&&Math.abs(e-s.circle.x)<T_&&Math.abs(r-s.circle.cy)<T_;)a=s.P,u.unshift(s),pc(s),s=a;u.unshift(s),lc(s);for(var c=o;c.circle&&Math.abs(e-c.circle.x)<T_&&Math.abs(r-c.circle.cy)<T_;)o=c.N,u.push(c),pc(c),c=o;u.push(c),lc(c);var f,l=u.length;for(f=1;l>f;++f)c=u[f],s=u[f-1],Qs(c.edge,s.site,c.site,i);s=u[0],c=u[l-1],c.edge=Gs(s.site,c.site,null,i),fc(s),fc(c)}function yc(t){for(var n,e,r,i,a=t[0],o=t[1],u=m_._;u;)if(r=gc(u,o)-a,r>T_)u=u.L;else{if(i=a-mc(u,o),!(i>T_)){r>-T_?(n=u.P,e=u):i>-T_?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}rc(t);var s=dc(t);if(m_.insert(n,s),n||e){if(n===e)return lc(n),e=dc(n.site),m_.insert(s,e),s.edge=e.edge=Gs(n.site,s.site),fc(n),void fc(e);if(!e)return void(s.edge=Gs(n.site,s.site));lc(n),lc(e);var c=n.site,f=c[0],l=c[1],h=t[0]-f,d=t[1]-l,p=e.site,_=p[0]-f,y=p[1]-l,g=2*(h*y-d*_),m=h*h+d*d,v=_*_+y*y,b={x:(y*m-d*v)/g+f,y:(h*v-_*m)/g+l};Qs(e.edge,c,p,b),s.edge=Gs(c,t,null,b),e.edge=Gs(t,p,null,b),fc(n),fc(e)}}function gc(t,n){var e=t.site,r=e[0],i=e[1],a=i-n;if(!a)return r;var o=t.P;if(!o)return-(1/0);e=o.site;var u=e[0],s=e[1],c=s-n;if(!c)return u;var f=u-r,l=1/a-1/c,h=f/c;return l?(-h+Math.sqrt(h*h-2*l*(f*f/(-2*c)-s+c/2+i-a/2)))/l+r:(r+u)/2}function mc(t,n){var e=t.N;if(e)return gc(e,n);var r=t.site;return r[1]===n?r[0]:1/0}function vc(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function bc(t,n){return n[1]-t[1]||n[0]-t[0]}function xc(t,n){var e,r,i,a=t.sort(bc).pop();for(x_=[],v_=new Array(t.length),m_=new Bs,b_=new Bs;;)if(i=g_,a&&(!i||a[1]<i.y||a[1]===i.y&&a[0]<i.x))a[0]===e&&a[1]===r||(yc(a),e=a[0],r=a[1]),a=t.pop();else{if(!i)break;_c(i.arc)}if(uc(),n){var o=n[0][0],u=n[0][1],s=n[1][0],c=n[1][1];this.extent=[[o,u],[s,c]],this.cellEdges=ec(o,u,s,c),sc(this.cellEdges,o,u,s,c)}else this.cellEdges=x_;this.cells=v_,this.edges=x_,m_=b_=x_=v_=null}function Mc(){function t(t){return new xc(t.map(function(r,i){var a=[Math.round(n(r,i,t)/T_)*T_,Math.round(e(r,i,t)/T_)*T_];return a.index=i,a.data=r,a}),r)}var n=Xs,e=Js,r=null;return t.polygons=function(n){return t(n).polygons()},t.links=function(n){return t(n).links()},t.triangles=function(n){return t(n).triangles()},t.x=function(e){return arguments.length?(n="function"==typeof e?e:Is(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:Is(+n),t):e},t.extent=function(n){return arguments.length?(r=null==n?null:[[+n[0][0],+n[0][1]],[+n[1][0],+n[1][1]]],t):r&&[[r[0][0],r[0][1]],[r[1][0],r[1][1]]]},t.size=function(n){return arguments.length?(r=null==n?null:[[0,0],[+n[0],+n[1]]],t):r&&[r[1][0],r[1][1]]},t}var wc="4.0.0-alpha.27",Tc=e(n),kc=Tc.right,Sc=Tc.left,Ac=Math.sqrt(50),Nc=Math.sqrt(10),Cc=Math.sqrt(2),Ec="$";F.prototype=L.prototype={constructor:F,has:function(t){return Ec+t in this},get:function(t){return this[Ec+t]},set:function(t,n){return this[Ec+t]=n,this},remove:function(t){var n=Ec+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===Ec&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===Ec&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===Ec&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===Ec&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===Ec&&++t;return t},empty:function(){for(var t in this)if(t[0]===Ec)return!1;return!0},each:function(t){for(var n in this)n[0]===Ec&&t(this[n],n.slice(1),this)}};var Pc=L.prototype;j.prototype=z.prototype={constructor:j,has:Pc.has,add:function(t){return t+="",this[Ec+t]=t,this},remove:Pc.remove,clear:Pc.clear,values:Pc.keys,size:Pc.size,empty:Pc.empty,each:Pc.each};var Dc=3,Fc=function S_(t){function n(n){return Math.pow(n,t)}return t=+t,n.exponent=S_,n}(Dc),Lc=function A_(t){function n(n){return 1-Math.pow(1-n,t)}return t=+t,n.exponent=A_,n}(Dc),Uc=function N_(t){function n(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,n.exponent=N_,n}(Dc),Yc=Math.PI,Oc=Yc/2,Hc=4/11,Rc=6/11,jc=8/11,zc=.75,qc=9/11,Ic=10/11,Xc=.9375,Jc=21/22,Bc=63/64,Wc=1/Hc/Hc,Vc=1.70158,$c=function C_(t){function n(n){return n*n*((t+1)*n-t)}return t=+t,n.overshoot=C_,n}(Vc),Zc=function E_(t){function n(n){return--n*n*((t+1)*n+t)+1}return t=+t,n.overshoot=E_,n}(Vc),Gc=function P_(t){function n(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return t=+t,n.overshoot=P_,n}(Vc),Kc=2*Math.PI,Qc=1,tf=.3,nf=function D_(t,n){function e(e){return t*Math.pow(2,10*--e)*Math.sin((r-e)/n)}var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Kc);return e.amplitude=function(t){return D_(t,n*Kc)},e.period=function(n){return D_(t,n)},e}(Qc,tf),ef=function F_(t,n){function e(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+r)/n)}var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Kc);return e.amplitude=function(t){return F_(t,n*Kc)},e.period=function(n){return F_(t,n)},e}(Qc,tf),rf=function L_(t,n){function e(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((r-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((r+e)/n))/2}var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Kc);return e.amplitude=function(t){return L_(t,n*Kc)},e.period=function(n){return L_(t,n)},e}(Qc,tf),af=Math.PI,of=2*af,uf=1e-6,sf=of-uf;Tt.prototype=kt.prototype={constructor:Tt,moveTo:function(t,n){this._.push("M",this._x0=this._x1=+t,",",this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._.push("Z"))},lineTo:function(t,n){this._.push("L",this._x1=+t,",",this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._.push("Q",+t,",",+n,",",this._x1=+e,",",this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,a){this._.push("C",+t,",",+n,",",+e,",",+r,",",this._x1=+i,",",this._y1=+a)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var a=this._x1,o=this._y1,u=e-t,s=r-n,c=a-t,f=o-n,l=c*c+f*f;if(0>i)throw new Error("negative radius: "+i);if(null===this._x1)this._.push("M",this._x1=t,",",this._y1=n);else if(l>uf)if(Math.abs(f*u-s*c)>uf&&i){var h=e-a,d=r-o,p=u*u+s*s,_=h*h+d*d,y=Math.sqrt(p),g=Math.sqrt(l),m=i*Math.tan((af-Math.acos((p+l-_)/(2*y*g)))/2),v=m/g,b=m/y;Math.abs(v-1)>uf&&this._.push("L",t+v*c,",",n+v*f),this._.push("A",i,",",i,",0,0,",+(f*h>c*d),",",this._x1=t+b*u,",",this._y1=n+b*s)}else this._.push("L",this._x1=t,",",this._y1=n);else;},arc:function(t,n,e,r,i,a){t=+t,n=+n,e=+e;var o=e*Math.cos(r),u=e*Math.sin(r),s=t+o,c=n+u,f=1^a,l=a?r-i:i-r;if(0>e)throw new Error("negative radius: "+e);null===this._x1?this._.push("M",s,",",c):(Math.abs(this._x1-s)>uf||Math.abs(this._y1-c)>uf)&&this._.push("L",s,",",c),e&&(l>sf?this._.push("A",e,",",e,",0,1,",f,",",t-o,",",n-u,"A",e,",",e,",0,1,",f,",",this._x1=s,",",this._y1=c):(0>l&&(l=l%of+of),this._.push("A",e,",",e,",0,",+(l>=af),",",f,",",this._x1=t+e*Math.cos(i),",",this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._.push("M",this._x0=this._x1=+t,",",this._y0=this._y1=+n,"h",+e,"v",+r,"h",-e,"Z")},toString:function(){return this._.join("")}};var cf=[].slice,ff={};Ft.prototype=Rt.prototype={constructor:Ft,defer:function(t){if("function"!=typeof t||this._call)throw new Error;if(null!=this._error)return this;var n=cf.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),Lt(this),this},abort:function(){return null==this._error&&Ot(this,new Error("abort")),this},await:function(t){if("function"!=typeof t||this._call)throw new Error;return this._call=function(n,e){t.apply(null,[n].concat(e))},Ht(this),this},awaitAll:function(t){if("function"!=typeof t||this._call)throw new Error;return this._call=t,Ht(this),this}};var lf=1e-12,hf=Math.PI,df=hf/2,pf=2*hf,_f=Array.prototype.slice;Gt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}},un.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){t-=df,this._curve.point(n*Math.cos(t),n*Math.sin(t))}};var yf={draw:function(t,n){var e=Math.sqrt(n/hf);t.moveTo(e,0),t.arc(0,0,e,0,pf)}},gf={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},mf=Math.sqrt(1/3),vf=2*mf,bf={draw:function(t,n){var e=Math.sqrt(n/vf),r=e*mf;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},xf=.8908130915292852,Mf=Math.sin(hf/10)/Math.sin(7*hf/10),wf=Math.sin(pf/10)*Mf,Tf=-Math.cos(pf/10)*Mf,kf={draw:function(t,n){var e=Math.sqrt(n*xf),r=wf*e,i=Tf*e;t.moveTo(0,-e),t.lineTo(r,i);for(var a=1;5>a;++a){var o=pf*a/5,u=Math.cos(o),s=Math.sin(o);t.lineTo(s*e,-u*e),t.lineTo(u*r-s*i,s*r+u*i)}t.closePath()}},Sf={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Af=Math.sqrt(3),Nf={draw:function(t,n){var e=-Math.sqrt(n/(3*Af));t.moveTo(0,2*e),t.lineTo(-Af*e,-e),t.lineTo(Af*e,-e),t.closePath()}},Cf=-.5,Ef=Math.sqrt(3)/2,Pf=1/Math.sqrt(12),Df=3*(Pf/2+1),Ff={draw:function(t,n){var e=Math.sqrt(n/Df),r=e/2,i=e*Pf,a=r,o=e*Pf+e,u=-a,s=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,s),t.lineTo(Cf*r-Ef*i,Ef*r+Cf*i),t.lineTo(Cf*a-Ef*o,Ef*a+Cf*o),t.lineTo(Cf*u-Ef*s,Ef*u+Cf*s),t.lineTo(Cf*r+Ef*i,Cf*i-Ef*r),t.lineTo(Cf*a+Ef*o,Cf*o-Ef*a),t.lineTo(Cf*u+Ef*s,Cf*s-Ef*u),t.closePath()}},Lf=[yf,gf,bf,Sf,kf,Nf,Ff];pn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){
this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:dn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:dn(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},yn.prototype={areaStart:hn,areaEnd:hn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:dn(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},mn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:dn(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},bn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],a=n[0],o=t[e]-i,u=n[e]-a,s=-1;++s<=e;)r=s/e,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+r*o),this._beta*n[s]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}},wn.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:Mn(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Mn(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},kn.prototype={areaStart:hn,areaEnd:hn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Mn(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},An.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mn(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},En.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,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Cn(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},Dn.prototype={areaStart:hn,areaEnd:hn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Cn(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},Ln.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Cn(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}},Yn.prototype={areaStart:hn,areaEnd:hn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},qn.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:zn(this,this._t0,jn(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(t=+t,n=+n,t!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,zn(this,jn(this,e=Rn(this,t,n)),e);break;default:zn(this,this._t0,e=Rn(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(In.prototype=Object.create(qn.prototype)).point=function(t,n){qn.prototype.point.call(this,n,t)},Xn.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,a){this._context.bezierCurveTo(n,t,r,e,a,i)}},Wn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=Vn(t),i=Vn(n),a=0,o=1;e>o;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],n[o]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},Zn.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:var e=t>this._x?this._t:1-this._t;if(0>=e)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else if(e>=1)this._context.lineTo(t,this._y),this._context.lineTo(t,n);else{var r=(this._x+t)*e;this._context.lineTo(r,this._y),this._context.lineTo(r,n)}}this._x=t,this._y=n}};var Uf=Array.prototype.slice,Yf=.7,Of=1/Yf,Hf=/^#([0-9a-f]{3})$/,Rf=/^#([0-9a-f]{6})$/,jf=/^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/,zf=/^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,qf=/^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,If=/^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Xf=/^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Jf=/^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Bf={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};he(pe,_e,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),he(be,ve,de(pe,{brighter:function(t){return t=null==t?Of:Math.pow(Of,t),new be(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Yf:Math.pow(Yf,t),new be(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+")")}})),he(Te,we,de(pe,{brighter:function(t){return t=null==t?Of:Math.pow(Of,t),new Te(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Yf:Math.pow(Yf,t),new Te(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(.5>e?e:1-e)*n,i=2*e-r;return new be(ke(t>=240?t-240:t+120,i,r),ke(t,i,r),ke(120>t?t+240:t-120,i,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 Wf=Math.PI/180,Vf=180/Math.PI,$f=18,Zf=.95047,Gf=1,Kf=1.08883,Qf=4/29,tl=6/29,nl=3*tl*tl,el=tl*tl*tl;he(Ne,Ae,de(pe,{brighter:function(t){return new Ne(this.l+$f*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Ne(this.l-$f*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=Gf*Ee(t),n=Zf*Ee(n),e=Kf*Ee(e),new be(Pe(3.2404542*n-1.5371385*t-.4985314*e),Pe(-.969266*n+1.8760108*t+.041556*e),Pe(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),he(Ue,Le,de(pe,{brighter:function(t){return new Ue(this.h,this.c,this.l+$f*(null==t?1:t),this.opacity)},darker:function(t){return new Ue(this.h,this.c,this.l-$f*(null==t?1:t),this.opacity)},rgb:function(){return Se(this).rgb()}}));var rl=-.14861,il=1.78277,al=-.29227,ol=-.90649,ul=1.97294,sl=ul*ol,cl=ul*il,fl=il*al-ol*rl;he(He,Oe,de(pe,{brighter:function(t){return t=null==t?Of:Math.pow(Of,t),new He(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Yf:Math.pow(Yf,t),new He(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Wf,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new be(255*(n+e*(rl*r+il*i)),255*(n+e*(al*r+ol*i)),255*(n+e*(ul*r)),this.opacity)}}));var ll,hl,dl,pl,_l=function U_(t){function n(t,n){var r=e((t=ve(t)).r,(n=ve(n)).r),i=e(t.g,n.g),a=e(t.b,n.b),o=e(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=a(n),t.opacity=o(n),t+""}}var e=Ie(t);return n.gamma=U_,n}(1),yl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gl=new RegExp(yl.source,"g"),ml=180/Math.PI,vl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},bl=er(tr,"px, ","px)","deg)"),xl=er(nr,", ",")",")"),Ml=Math.SQRT2,wl=2,Tl=4,kl=1e-12,Sl=function Y_(t){function n(n,e){var r=qe((n=Oe(n)).h,(e=Oe(e)).h),i=Xe(n.s,e.s),a=Xe(n.l,e.l),o=Xe(n.opacity,e.opacity);return function(e){return n.h=r(e),n.s=i(e),n.l=a(Math.pow(e,t)),n.opacity=o(e),n+""}}return t=+t,n.gamma=Y_,n}(1),Al=function O_(t){function n(n,e){var r=Xe((n=Oe(n)).h,(e=Oe(e)).h),i=Xe(n.s,e.s),a=Xe(n.l,e.l),o=Xe(n.opacity,e.opacity);return function(e){return n.h=r(e),n.s=i(e),n.l=a(Math.pow(e,t)),n.opacity=o(e),n+""}}return t=+t,n.gamma=O_,n}(1),Nl={value:function(){}};dr.prototype=hr.prototype={constructor:dr,on:function(t,n){var e,r=this._,i=pr(t+"",r),a=-1,o=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error;for(;++a<o;)if(e=(t=i[a]).type)r[e]=yr(r[e],t.name,n);else if(null==n)for(e in r)r[e]=yr(r[e],t.name,null);return this}for(;++a<o;)if((e=(t=i[a]).type)&&(e=_r(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new dr(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r=new Array(e),i=0;e>i;++i)r[i]=arguments[i+2];this.apply(t,n,r)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error;for(var r=this._[t],i=0,a=r.length;a>i;++i)r[i].value.apply(n,e)}};var Cl,El,Pl=br(","),Dl=Pl.parse,Fl=Pl.parseRows,Ll=Pl.format,Ul=Pl.formatRows,Yl=br(" "),Ol=Yl.parse,Hl=Yl.parseRows,Rl=Yl.format,jl=Yl.formatRows,zl=Tr("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),ql=Tr("application/json",function(t){return JSON.parse(t.responseText)}),Il=Tr("text/plain",function(t){return t.responseText}),Xl=Tr("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),Jl=kr("text/csv",Dl),Bl=kr("text/tab-separated-values",Ol),Wl=0,Vl=0,$l=0,Zl=1e3,Gl=0,Kl=0,Ql=0,th="object"==typeof performance?performance:Date,nh="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){return setTimeout(t,17)};Cr.prototype=Er.prototype={constructor:Cr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Ar():+e)+(null==n?0:+n),this._call||(El?El._next=this:Cl=this,El=this),this._call=t,this._time=e,Ur()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ur())}};var eh=new Date,rh=new Date,ih=Hr(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});ih.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Hr(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):ih:null};var ah,oh=1e3,uh=6e4,sh=36e5,ch=864e5,fh=6048e5,lh=Hr(function(t){t.setTime(Math.floor(t/oh)*oh)},function(t,n){t.setTime(+t+n*oh)},function(t,n){return(n-t)/oh},function(t){return t.getUTCSeconds()}),hh=Hr(function(t){t.setTime(Math.floor(t/uh)*uh)},function(t,n){t.setTime(+t+n*uh)},function(t,n){return(n-t)/uh},function(t){return t.getMinutes()}),dh=Hr(function(t){var n=t.getTimezoneOffset()*uh%sh;0>n&&(n+=sh),t.setTime(Math.floor((+t-n)/sh)*sh+n)},function(t,n){t.setTime(+t+n*sh)},function(t,n){return(n-t)/sh},function(t){return t.getHours()}),ph=Hr(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*uh)/ch},function(t){return t.getDate()-1}),_h=Rr(0),yh=Rr(1),gh=Rr(2),mh=Rr(3),vh=Rr(4),bh=Rr(5),xh=Rr(6),Mh=Hr(function(t){t.setHours(0,0,0,0),t.setDate(1)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),wh=Hr(function(t){t.setHours(0,0,0,0),t.setMonth(0,1)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}),Th=Hr(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*uh)},function(t,n){return(n-t)/uh},function(t){return t.getUTCMinutes()}),kh=Hr(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*sh)},function(t,n){return(n-t)/sh},function(t){return t.getUTCHours()}),Sh=Hr(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/ch},function(t){return t.getUTCDate()-1}),Ah=jr(0),Nh=jr(1),Ch=jr(2),Eh=jr(3),Ph=jr(4),Dh=jr(5),Fh=jr(6),Lh=Hr(function(t){t.setUTCHours(0,0,0,0),t.setUTCDate(1)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Uh=Hr(function(t){t.setUTCHours(0,0,0,0),t.setUTCMonth(0,1)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}),Yh=ih.range,Oh=lh.range,Hh=hh.range,Rh=dh.range,jh=ph.range,zh=_h.range,qh=yh.range,Ih=gh.range,Xh=mh.range,Jh=vh.range,Bh=bh.range,Wh=xh.range,Vh=_h.range,$h=Mh.range,Zh=wh.range,Gh=ih,Kh=Yh,Qh=lh,td=Oh,nd=Th.range,ed=kh.range,rd=Sh.range,id=Ah.range,ad=Nh.range,od=Ch.range,ud=Eh.range,sd=Ph.range,cd=Dh.range,fd=Fh.range,ld=Ah.range,hd=Lh.range,dd=Uh.range,pd={"":Xr,"%":function(t,n){return(100*t).toFixed(n)},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,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Br(100*t,n)},r:Br,s:Jr,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},_d=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;Vr.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 yd=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],gd=Zr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),md=Zr({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),vd=Zr({decimal:",",thousands:" ",grouping:[3],currency:[""," Kč"]}),bd=Zr({decimal:",",thousands:"'",grouping:[3],currency:[""," CHF"]}),xd=Zr({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),Md=Zr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),wd=Zr({decimal:".",thousands:",",grouping:[3],currency:["£",""]}),Td=Zr({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),kd=Zr({decimal:",",thousands:" ",grouping:[3],currency:[""," €"]}),Sd=Zr({decimal:",",thousands:" ",grouping:[3],currency:["","$"]}),Ad=Zr({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),Nd=Zr({decimal:".",thousands:",",grouping:[3],currency:["₪",""]}),Cd=Zr({decimal:",",thousands:" ",grouping:[3],currency:[""," Ft"]}),Ed=Zr({decimal:",",thousands:".",grouping:[3],currency:["€",""]}),Pd=Zr({decimal:".",thousands:",",grouping:[3],currency:["","円"]}),Dd=Zr({decimal:".",thousands:",",grouping:[3],currency:["₩",""]}),Fd=Zr({decimal:",",thousands:".",grouping:[3],currency:[""," ден."]}),Ld=Zr({decimal:",",thousands:".",grouping:[3],currency:["€ ",""]}),Ud=Zr({decimal:",",thousands:".",grouping:[3],currency:["","zł"]}),Yd=Zr({decimal:",",thousands:".",grouping:[3],currency:["R$",""]}),Od=Zr({decimal:",",thousands:" ",grouping:[3],currency:[""," руб."]}),Hd=Zr({decimal:",",thousands:" ",grouping:[3],currency:["","SEK"]}),Rd=Zr({decimal:".",thousands:",",grouping:[3],currency:["¥",""]}),jd=gd.format,zd=gd.formatPrefix,qd={"-":"",_:" ",0:"0"},Id=/^\s*\d+/,Xd=/^%/,Jd=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Bd=ri({dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",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"]}),Wd=ri({dateTime:"%A, %e de %B de %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],shortDays:["dg.","dl.","dt.","dc.","dj.","dv.","ds."],months:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],shortMonths:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."]}),Vd=ri({dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]}),$d=ri({dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]}),Zd=ri({dateTime:"%a %b %e %X %Y",date:"%Y-%m-%d",time:"%H:%M:%S",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"]}),Gd=ri({dateTime:"%a %e %b %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",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"]}),Kd=ri({dateTime:"%A, %e de %B de %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]}),Qd=ri({dateTime:"%A, %-d. %Bta %Y klo %X",date:"%-d.%-m.%Y",time:"%H:%M:%S",periods:["a.m.","p.m."],days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],shortDays:["Su","Ma","Ti","Ke","To","Pe","La"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],shortMonths:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"]}),tp=ri({dateTime:"%a %e %b %Y %X",date:"%Y-%m-%d",time:"%H:%M:%S",periods:["",""],days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim","lun","mar","mer","jeu","ven","sam"],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["jan","fév","mar","avr","mai","jui","jul","aoû","sep","oct","nov","déc"]}),np=ri({dateTime:"%A, le %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]}),ep=ri({dateTime:"%A, %e ב%B %Y %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],shortDays:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],shortMonths:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"]}),rp=ri({dateTime:"%Y. %B %-e., %A %X",date:"%Y. %m. %d.",time:"%H:%M:%S",periods:["de.","du."],days:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],shortDays:["V","H","K","Sze","Cs","P","Szo"],months:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],shortMonths:["jan.","feb.","már.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."]}),ip=ri({dateTime:"%A %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]}),ap=ri({dateTime:"%Y %b %e %a %X",date:"%Y/%m/%d",time:"%H:%M:%S",periods:["AM","PM"],days:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],shortDays:["日","月","火","水","木","金","土"],months:["睦月","如月","弥生","卯月","皐月","水無月","文月","葉月","長月","神無月","霜月","師走"],shortMonths:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]}),op=ri({dateTime:"%Y/%m/%d %a %X",date:"%Y/%m/%d",time:"%H:%M:%S",periods:["오전","오후"],days:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],shortDays:["일","월","화","수","목","금","토"],months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],shortMonths:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]}),up=ri({dateTime:"%A, %e %B %Y г. %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["недела","понеделник","вторник","среда","четврток","петок","сабота"],shortDays:["нед","пон","вто","сре","чет","пет","саб"],months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],shortMonths:["јан","фев","мар","апр","мај","јун","јул","авг","сеп","окт","ное","дек"]}),sp=ri({dateTime:"%a %e %B %Y %T",date:"%d-%m-%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"]}),cp=ri({dateTime:"%A, %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],shortDays:["Niedz.","Pon.","Wt.","Śr.","Czw.","Pt.","Sob."],
months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],shortMonths:["Stycz.","Luty","Marz.","Kwie.","Maj","Czerw.","Lipc.","Sierp.","Wrz.","Paźdz.","Listop.","Grudz."]}),fp=ri({dateTime:"%A, %e de %B de %Y. %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}),lp=ri({dateTime:"%A, %e %B %Y г. %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],shortDays:["вс","пн","вт","ср","чт","пт","сб"],months:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"]}),hp=ri({dateTime:"%A den %d %B %Y %X",date:"%Y-%m-%d",time:"%H:%M:%S",periods:["fm","em"],days:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],shortDays:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],shortMonths:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"]}),dp=ri({dateTime:"%a %b %e %X %Y",date:"%Y/%-m/%-d",time:"%H:%M:%S",periods:["上午","下午"],days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]}),pp="%Y-%m-%dT%H:%M:%S.%LZ",_p=Date.prototype.toISOString?Gi:Bd.utcFormat(pp),yp=+new Date("2000-01-01T00:00:00.000Z")?Ki:Bd.utcParse(pp),gp=Bd.format,mp=Bd.parse,vp=Bd.utcFormat,bp=Bd.utcParse,xp=Array.prototype,Mp=xp.map,wp=xp.slice,Tp={name:"implicit"},kp=[0,1],Sp=1e3,Ap=60*Sp,Np=60*Ap,Cp=24*Np,Ep=7*Cp,Pp=30*Cp,Dp=365*Cp,Fp=La("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Lp=La("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Up=La("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Yp=La("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Op=La("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"),Hp=La("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"),Rp=La("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"),jp=La("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"),zp="http://www.w3.org/1999/xhtml",qp={svg:"http://www.w3.org/2000/svg",xhtml:zp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ip=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Xp=document.documentElement;if(!Xp.matches){var Jp=Xp.webkitMatchesSelector||Xp.msMatchesSelector||Xp.mozMatchesSelector||Xp.oMatchesSelector;Ip=function(t){return function(){return Jp.call(this,t)}}}}var Bp=Ip,Wp={};if(t.event=null,"undefined"!=typeof document){var Vp=document.documentElement;"onmouseenter"in Vp||(Wp={mouseenter:"mouseover",mouseleave:"mouseout"})}var $p="$";go.prototype={constructor:go,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},Vo.prototype={add:function(t){var n=this._names.indexOf(t);0>n&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Zp=[null];Tu.prototype=ku.prototype={constructor:Tu,select:so,selectAll:fo,filter:lo,data:yo,enter:vo,exit:bo,merge:xo,order:Mo,sort:wo,call:ko,nodes:So,node:Ao,size:No,empty:Co,each:Eo,attr:Oo,style:zo,property:Jo,classed:tu,text:iu,html:su,raise:fu,lower:hu,append:yu,remove:mu,datum:vu,on:io,dispatch:wu};var Gp="undefined"!=typeof navigator&&/WebKit/.test(navigator.userAgent)?-1:0,Kp=hr("start","end","interrupt"),Qp=[],t_=0,n_=1,e_=2,r_=3,i_=4,a_=5,o_=ku.prototype.constructor,u_=0,s_=ku.prototype;Ns.prototype=Cs.prototype={constructor:Ns,select:ps,selectAll:_s,filter:us,merge:ss,selection:ys,transition:As,call:s_.call,nodes:s_.nodes,node:s_.node,size:s_.size,empty:s_.empty,each:s_.each,on:ls,attr:$u,attrTween:Ku,style:xs,styleTween:ws,text:Ss,remove:ds,tween:ju,delay:ns,duration:is,ease:os};var c_={time:null,delay:0,duration:250,ease:rt};ku.prototype.interrupt=Ou,ku.prototype.transition=Ds;var f_=[null],l_=Array.prototype.slice,h_=1,d_=2,p_=3,__=4,y_=1e-6;Bs.prototype={constructor:Bs,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=Zs(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Vs(this,e),t=e,e=t.U),e.C=!1,r.C=!0,$s(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&($s(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Vs(this,r))),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,a=t.L,o=t.R;if(e=a?o?Zs(o):a:o,i?i.L===t?i.L=e:i.R=e:this._=e,a&&o?(r=e.C,e.C=t.C,e.L=a,a.U=e,e!==o?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=o,o.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,Vs(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,$s(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Vs(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,$s(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Vs(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,$s(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var g_,m_,v_,b_,x_,M_=[],w_=[],T_=1e-6,k_=1e-12;xc.prototype={constructor:xc,polygons:function(){var t=this.cells,n=this.cellEdges,e=this.extent,r=e[0][0],i=e[0][1],a=e[1][0],o=e[1][1],u=new Array(t.length);return t.forEach(function(t,e){var s,c=t.site,f=t.halfedges;if(f.length)s=f.map(function(e){return ac(t,n[e])});else{if(!(c[0]>=r&&c[0]<=a&&c[1]>=i&&c[1]<=o))return;s=[[r,o],[a,o],[a,i],[r,i]]}u[e]=s,s.data=c.data}),u},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(e,r){for(var i,a=e.site,o=e.halfedges,u=-1,s=o.length,c=n[o[s-1]],f=c.left===a?c.right:c.left;++u<s;)i=f,c=n[o[u]],f=c.left===a?c.right:c.left,r<i.index&&r<f.index&&vc(a,i,f)<0&&t.push([a.data,i.data,f.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})}},t.version=wc,t.bisect=kc,t.bisectRight=kc,t.bisectLeft=Sc,t.ascending=n,t.bisector=e,t.descending=i,t.deviation=u,t.extent=s,t.histogram=y,t.thresholdFreedmanDiaconis=m,t.thresholdScott=v,t.thresholdSturges=p,t.max=b,t.mean=x,t.median=M,t.merge=w,t.min=T,t.pairs=k,t.permute=S,t.quantile=g,t.range=l,t.scan=A,t.shuffle=N,t.sum=C,t.ticks=h,t.transpose=E,t.variance=o,t.zip=D,t.entries=X,t.keys=q,t.values=I,t.map=L,t.set=z,t.nest=U,t.randomUniform=J,t.randomNormal=B,t.randomLogNormal=W,t.randomBates=$,t.randomIrwinHall=V,t.randomExponential=Z,t.easeLinear=G,t.easeQuad=tt,t.easeQuadIn=K,t.easeQuadOut=Q,t.easeQuadInOut=tt,t.easeCubic=rt,t.easeCubicIn=nt,t.easeCubicOut=et,t.easeCubicInOut=rt,t.easePoly=Uc,t.easePolyIn=Fc,t.easePolyOut=Lc,t.easePolyInOut=Uc,t.easeSin=ot,t.easeSinIn=it,t.easeSinOut=at,t.easeSinInOut=ot,t.easeExp=ct,t.easeExpIn=ut,t.easeExpOut=st,t.easeExpInOut=ct,t.easeCircle=ht,t.easeCircleIn=ft,t.easeCircleOut=lt,t.easeCircleInOut=ht,t.easeBounce=pt,t.easeBounceIn=dt,t.easeBounceOut=pt,t.easeBounceInOut=_t,t.easeBack=Gc,t.easeBackIn=$c,t.easeBackOut=Zc,t.easeBackInOut=Gc,t.easeElastic=ef,t.easeElasticIn=nf,t.easeElasticOut=ef,t.easeElasticInOut=rf,t.polygonArea=yt,t.polygonCentroid=gt,t.polygonHull=xt,t.polygonContains=Mt,t.polygonLength=wt,t.path=kt,t.quadtree=Dt,t.queue=Rt,t.arc=$t,t.area=nn,t.line=en,t.pie=on,t.radialArea=cn,t.radialLine=fn,t.symbol=ln,t.symbols=Lf,t.symbolCircle=yf,t.symbolCross=gf,t.symbolDiamond=bf,t.symbolSquare=Sf,t.symbolStar=kf,t.symbolTriangle=Nf,t.symbolWye=Ff,t.curveBasisClosed=gn,t.curveBasisOpen=vn,t.curveBasis=_n,t.curveBundle=xn,t.curveCardinalClosed=Sn,t.curveCardinalOpen=Nn,t.curveCardinal=Tn,t.curveCatmullRomClosed=Fn,t.curveCatmullRomOpen=Un,t.curveCatmullRom=Pn,t.curveLinearClosed=On,t.curveLinear=Kt,t.curveMonotoneX=Jn,t.curveMonotoneY=Bn,t.curveNatural=$n,t.curveStep=Gn,t.curveStepAfter=Qn,t.curveStepBefore=Kn,t.stack=re,t.stackOffsetExpand=ie,t.stackOffsetNone=te,t.stackOffsetSilhouette=ae,t.stackOffsetWiggle=oe,t.stackOrderAscending=ue,t.stackOrderDescending=ce,t.stackOrderInsideOut=fe,t.stackOrderNone=ne,t.stackOrderReverse=le,t.color=_e,t.rgb=ve,t.hsl=we,t.lab=Ae,t.hcl=Le,t.cubehelix=Oe,t.interpolate=Ge,t.interpolateArray=Je,t.interpolateNumber=Be,t.interpolateObject=We,t.interpolateRound=Ke,t.interpolateString=Ze,t.interpolateTransformCss=bl,t.interpolateTransformSvg=xl,t.interpolateZoom=or,t.interpolateRgb=_l,t.interpolateHsl=ur,t.interpolateHslLong=sr,t.interpolateLab=cr,t.interpolateHcl=fr,t.interpolateHclLong=lr,t.interpolateCubehelix=Sl,t.interpolateCubehelixLong=Al,t.dispatch=hr,t.dsvFormat=br,t.csvParse=Dl,t.csvParseRows=Fl,t.csvFormat=Ll,t.csvFormatRows=Ul,t.tsvParse=Ol,t.tsvParseRows=Hl,t.tsvFormat=Rl,t.tsvFormatRows=jl,t.request=xr,t.html=zl,t.json=ql,t.text=Il,t.xml=Xl,t.csv=Jl,t.tsv=Bl,t.now=Ar,t.timer=Er,t.timerFlush=Pr,t.timeout=Yr,t.interval=Or,t.timeInterval=Hr,t.timeMillisecond=ih,t.timeMilliseconds=Yh,t.timeSecond=lh,t.timeSeconds=Oh,t.timeMinute=hh,t.timeMinutes=Hh,t.timeHour=dh,t.timeHours=Rh,t.timeDay=ph,t.timeDays=jh,t.timeWeek=_h,t.timeWeeks=Vh,t.timeSunday=_h,t.timeSundays=zh,t.timeMonday=yh,t.timeMondays=qh,t.timeTuesday=gh,t.timeTuesdays=Ih,t.timeWednesday=mh,t.timeWednesdays=Xh,t.timeThursday=vh,t.timeThursdays=Jh,t.timeFriday=bh,t.timeFridays=Bh,t.timeSaturday=xh,t.timeSaturdays=Wh,t.timeMonth=Mh,t.timeMonths=$h,t.timeYear=wh,t.timeYears=Zh,t.utcMillisecond=Gh,t.utcMilliseconds=Kh,t.utcSecond=Qh,t.utcSeconds=td,t.utcMinute=Th,t.utcMinutes=nd,t.utcHour=kh,t.utcHours=ed,t.utcDay=Sh,t.utcDays=rd,t.utcWeek=Ah,t.utcWeeks=ld,t.utcSunday=Ah,t.utcSundays=id,t.utcMonday=Nh,t.utcMondays=ad,t.utcTuesday=Ch,t.utcTuesdays=od,t.utcWednesday=Eh,t.utcWednesdays=ud,t.utcThursday=Ph,t.utcThursdays=sd,t.utcFriday=Dh,t.utcFridays=cd,t.utcSaturday=Fh,t.utcSaturdays=fd,t.utcMonth=Lh,t.utcMonths=hd,t.utcYear=Uh,t.utcYears=dd,t.format=jd,t.formatPrefix=zd,t.formatLocale=Zr,t.formatCaEs=md,t.formatCsCz=vd,t.formatDeCh=bd,t.formatDeDe=xd,t.formatEnCa=Md,t.formatEnGb=wd,t.formatEnUs=gd,t.formatEsEs=Td,t.formatFiFi=kd,t.formatFrCa=Sd,t.formatFrFr=Ad,t.formatHeIl=Nd,t.formatHuHu=Cd,t.formatItIt=Ed,t.formatJaJp=Pd,t.formatKoKr=Dd,t.formatMkMk=Fd,t.formatNlNl=Ld,t.formatPlPl=Ud,t.formatPtBr=Yd,t.formatRuRu=Od,t.formatSvSe=Hd,t.formatZhCn=Rd,t.formatSpecifier=Wr,t.precisionFixed=Gr,t.precisionPrefix=Kr,t.precisionRound=Qr,t.timeFormat=gp,t.timeParse=mp,t.utcFormat=vp,t.utcParse=bp,t.isoFormat=_p,t.isoParse=yp,t.timeFormatLocale=ri,t.timeFormatCaEs=Wd,t.timeFormatDeCh=Vd,t.timeFormatDeDe=$d,t.timeFormatEnCa=Zd,t.timeFormatEnGb=Gd,t.timeFormatEnUs=Bd,t.timeFormatEsEs=Kd,t.timeFormatFiFi=Qd,t.timeFormatFrCa=tp,t.timeFormatFrFr=np,t.timeFormatHeIl=ep,t.timeFormatHuHu=rp,t.timeFormatItIt=ip,t.timeFormatJaJp=ap,t.timeFormatKoKr=op,t.timeFormatMkMk=up,t.timeFormatNlNl=sp,t.timeFormatPlPl=cp,t.timeFormatPtBr=fp,t.timeFormatRuRu=lp,t.timeFormatSvSe=hp,t.timeFormatZhCn=dp,t.scaleBand=ta,t.scalePoint=ea,t.scaleIdentity=_a,t.scaleLinear=pa,t.scaleLog=wa,t.scaleOrdinal=Qi,t.scaleImplicit=Tp,t.scalePow=ka,t.scaleSqrt=Sa,t.scaleQuantile=Aa,t.scaleQuantize=Na,t.scaleThreshold=Ca,t.scaleTime=Da,t.scaleUtc=Fa,t.scaleCategory10=Ua,t.scaleCategory20b=Ya,t.scaleCategory20c=Oa,t.scaleCategory20=Ha,t.scaleCubehelix=Ra,t.scaleRainbow=Ia,t.scaleWarm=za,t.scaleCool=qa,t.scaleViridis=Ja,t.scaleMagma=Ba,t.scaleInferno=Wa,t.scalePlasma=Va,t.mouse=Nu,t.namespace=$a,t.namespaces=qp,t.select=Su,t.selectAll=Cu,t.selection=ku,t.touch=Eu,t.touches=Pu,t.active=Fs,t.transition=Cs,t.axisTop=Rs,t.axisRight=js,t.axisBottom=zs,t.axisLeft=qs,t.voronoi=Mc});