!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 h(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 l(t,n,e){var r=d(t,n,e);return h(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>=sh?i*=10:a>=ch?i*=5:a>=fh&&(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],h=r(u,c,f);Array.isArray(h)||(h=l(c,f,+h));var d=h.length;for(i=0;d>i;++i)h[i]=+h[i];for(;h[0]<=c;)h.shift(),--d;for(;h[d-1]>=f;)h.pop(),--d;var p,_=new Array(d+1);for(i=0;d>=i;++i)p=_[i]=[],p.x0=i>0?h[i-1]:c,p.x1=d>i?h[i]:f;for(i=0;o>i;++i)a=u[i],a>=c&&f>=a&&_[oh(h,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 v(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 m(t,n,e){return Math.ceil((e-n)/(3.5*u(t)*Math.pow(t.length,-1/3)))}function x(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 b(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 A(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 k(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}function N(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 S(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 z(){function t(n,i,o,u){if(i>=a.length)return r?r(n):e?n.sort(e):n;for(var s,c,f,h=-1,l=n.length,d=a[i++],p=L(),_=o();++h<l;)(f=p.get(s=d(c=n[h])+""))?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,q,U)},map:function(n){return t(n,0,O,j)},entries:function(e){return n(t(e,0,O,j),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 q(){return{}}function U(t,n,e){t[n]=e}function O(){return L()}function j(t,n,e){t.set(n,e)}function R(){}function H(t,n){var e=new R;if(t instanceof R)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 Y(t){var n=[];for(var e in t)n.push(e);return n}function B(t){var n=[];for(var e in t)n.push(t[e]);return n}function I(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n}function X(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 J(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=J.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*vh)}function at(t){return Math.sin(t*vh)}function ot(t){return(1-Math.cos(gh*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 ht(t){return Math.sqrt(1- --t*t)}function lt(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)<mh?Sh*t*t:bh>t?Sh*(t-=xh)*t+Mh:Th>t?Sh*(t-=wh)*t+Ah:Sh*(t-=kh)*t+Nh}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 vt(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function mt(t,n){return t[0]-n[0]||t[1]-n[1]}function xt(t){for(var n=t.length,e=[0,1],r=2,i=2;n>i;++i){for(;r>1&&vt(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function bt(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(mt),n=0;e>n;++n)i[n]=[r[n][0],-r[n][1]];var a=xt(r),o=xt(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,h=0;i>h;++h)a=t[h],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 At(){return new Tt}function kt(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Nt(this.cover(n,e),n,e,t)}function Nt(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,a,o,u,s,c,f,h,l,d=t._root,p={data:r},_=t._x0,y=t._y0,g=t._x1,v=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=n>=(a=(_+g)/2))?_=a:g=a,(f=e>=(o=(y+v)/2))?y=o:v=o,i=d,!(d=d[h=f<<1|c]))return i[h]=p,t;if(u=+t._x.call(null,d.data),s=+t._y.call(null,d.data),n===u&&e===s)return p.next=d,i?i[h]=p:t._root=p,t;do i=i?i[h]=new Array(4):t._root=new Array(4),(c=n>=(a=(_+g)/2))?_=a:g=a,(f=e>=(o=(y+v)/2))?y=o:v=o;while((h=f<<1|c)===(l=(s>=o)<<1|u>=a));return i[l]=d,i[h]=p,t}function St(t){var n,e,r,i,a=t.length,o=new Array(a),u=new Array(a),s=1/0,c=1/0,f=-(1/0),h=-(1/0);for(e=0;a>e;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(o[e]=r,u[e]=i,s>r&&(s=r),r>f&&(f=r),c>i&&(c=i),i>h&&(h=i));for(s>f&&(s=this._x0,f=this._x1),c>h&&(c=this._y0,h=this._y1),this.cover(s,c).cover(f,h),e=0;a>e;++e)Nt(this,o[e],u[e],t[e]);return this}function Ct(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,a=(r=Math.floor(n))+1;else{if(!(e>t||t>i||r>n||n>a))return this;var o,u,s=i-e,c=this._root;switch(u=((r+a)/2>n)<<1|(e+i)/2>t){case 0:do o=new Array(4),o[u]=c,c=o;while(s*=2,i=e+s,a=r+s,t>i||n>a);break;case 1:do o=new Array(4),o[u]=c,c=o;while(s*=2,e=i-s,a=r+s,e>t||n>a);break;case 2:do o=new Array(4),o[u]=c,c=o;while(s*=2,i=e+s,r=a-s,t>i||r>n);break;case 3:do o=new Array(4),o[u]=c,c=o;while(s*=2,e=i-s,r=a-s,e>t||r>n)}this._root&&this._root.length&&(this._root=c)}return this._x0=e,this._y0=r,this._x1=i,this._y1=a,this}function Et(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function Pt(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Dt(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Ft(t,n){var e,r,i,a,o,u,s,c=1/0,f=this._x0,h=this._y0,l=this._x1,d=this._y1,p=[],_=this._root;for(_&&p.push(new Dt(_,f,h,l,d));u=p.pop();)if(!(!(_=u.node)||(r=u.x0)>l||(i=u.y0)>d||(a=u.x1)<f||(o=u.y1)<h))if(_.length){var y=(r+a)/2,g=(i+o)/2;p.push(new Dt(_[3],y,g,a,o),new Dt(_[2],r,g,y,o),new Dt(_[1],y,i,a,g),new Dt(_[0],r,i,y,g)),(s=(n>=g)<<1|t>=y)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=u)}else{var v=t-+this._x.call(null,_.data),m=n-+this._y.call(null,_.data),x=v*v+m*m;if(c>x){var b=Math.sqrt(c=x);f=t-b,h=n-b,l=t+b,d=n+b,e=_.data}}return e}function Lt(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var n,e,r,i,a,o,u,s,c,f,h,l,d=this._root,p=this._x0,_=this._y0,y=this._x1,g=this._y1;if(!d)return this;if(d.length)for(;;){if((c=a>=(u=(p+y)/2))?p=u:y=u,(f=o>=(s=(_+g)/2))?_=s:g=s,n=d,!(d=d[h=f<<1|c]))return this;if(!d.length)break;(n[h+1&3]||n[h+2&3]||n[h+3&3])&&(e=n,l=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[h]=i:delete n[h],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[l]=d:this._root=d),this):(this._root=i,this)}function zt(t){for(var n=0,e=t.length;e>n;++n)this.remove(t[n]);return this}function qt(){return this._root}function Ut(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function Ot(t){var n,e,r,i,a,o,u=[],s=this._root;for(s&&u.push(new Dt(s,this._x0,this._y0,this._x1,this._y1));n=u.pop();)if(!t(s=n.node,r=n.x0,i=n.y0,a=n.x1,o=n.y1)&&s.length){var c=(r+a)/2,f=(i+o)/2;(e=s[3])&&u.push(new Dt(e,c,f,a,o)),(e=s[2])&&u.push(new Dt(e,r,f,c,o)),(e=s[1])&&u.push(new Dt(e,c,i,a,f)),(e=s[0])&&u.push(new Dt(e,r,i,c,f))}return this}function jt(t){var n,e=[],r=[];for(this._root&&e.push(new Dt(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var a,o=n.x0,u=n.y0,s=n.x1,c=n.y1,f=(o+s)/2,h=(u+c)/2;(a=i[0])&&e.push(new Dt(a,o,u,f,h)),(a=i[1])&&e.push(new Dt(a,f,u,s,h)),(a=i[2])&&e.push(new Dt(a,o,h,f,c)),(a=i[3])&&e.push(new Dt(a,f,h,s,c))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this}function Rt(t){return t[0]}function Ht(t){return arguments.length?(this._x=t,this):this._x}function Yt(t){return t[1]}function Bt(t){return arguments.length?(this._y=t,this):this._y}function It(t,n,e){var r=new Xt(null==n?Rt:n,null==e?Yt:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Xt(t,n,e,r,i,a){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Jt(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}function Wt(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 Vt(t){if(!t._start)try{$t(t)}catch(n){t._tasks[t._ended+t._active-1]&&Gt(t,n)}}function $t(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]=Zt(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||Xh)}}function Zt(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?Gt(t,e):(t._data[n]=r,t._waiting?Vt(t):Kt(t))))}}function Gt(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,Kt(t)}function Kt(t){!t._active&&t._call&&t._call(t._error,t._data)}function Qt(t){return new Wt(arguments.length?+t:1/0)}function tn(t){return function(){return t}}function nn(t){return t.innerRadius}function en(t){return t.outerRadius}function rn(t){return t.startAngle}function an(t){return t.endAngle}function on(t){return t&&t.padAngle}function un(t){return t>=1?Vh:-1>=t?-Vh:Math.asin(t)}function sn(t,n,e,r,i,a,o,u){var s=e-t,c=r-n,f=o-i,h=u-a,l=(f*(n-a)-h*(t-i))/(h*s-f*c);return[t+l*s,n+l*c]}function cn(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,h=-c*u,l=t+f,d=n+h,p=e+f,_=r+h,y=(l+p)/2,g=(d+_)/2,v=p-l,m=_-d,x=v*v+m*m,b=i-a,M=l*_-p*d,w=(0>m?-1:1)*Math.sqrt(Math.max(0,b*b*x-M*M)),T=(M*m-v*w)/x,A=(-M*v-m*w)/x,k=(M*m+v*w)/x,N=(-M*v+m*w)/x,S=T-y,C=A-g,E=k-y,P=N-g;return S*S+C*C>E*E+P*P&&(T=k,A=N),{cx:T,cy:A,x01:-f,y01:-h,x11:T*(i/b-1),y11:A*(i/b-1)}}function fn(){function t(){var t,c,f=+n.apply(this,arguments),h=+e.apply(this,arguments),l=a.apply(this,arguments)-Vh,d=o.apply(this,arguments)-Vh,p=Math.abs(d-l),_=d>l;if(s||(s=t=At()),f>h&&(c=h,h=f,f=c),h>Jh)if(p>$h-Jh)s.moveTo(h*Math.cos(l),h*Math.sin(l)),s.arc(0,0,h,l,d,!_),f>Jh&&(s.moveTo(f*Math.cos(d),f*Math.sin(d)),s.arc(0,0,f,d,l,_));else{var y,g,v=l,m=d,x=l,b=d,M=p,w=p,T=u.apply(this,arguments)/2,A=T>Jh&&(i?+i.apply(this,arguments):Math.sqrt(f*f+h*h)),k=Math.min(Math.abs(h-f)/2,+r.apply(this,arguments)),N=k,S=k;if(A>Jh){var C=un(A/f*Math.sin(T)),E=un(A/h*Math.sin(T));(M-=2*C)>Jh?(C*=_?1:-1,x+=C,b-=C):(M=0,x=b=(l+d)/2),(w-=2*E)>Jh?(E*=_?1:-1,v+=E,m-=E):(w=0,v=m=(l+d)/2)}var P=h*Math.cos(v),D=h*Math.sin(v),F=f*Math.cos(b),L=f*Math.sin(b);if(k>Jh){var z=h*Math.cos(m),q=h*Math.sin(m),U=f*Math.cos(x),O=f*Math.sin(x);if(Wh>p){var j=M>Jh?sn(P,D,U,O,z,q,F,L):[F,L],R=P-j[0],H=D-j[1],Y=z-j[0],B=q-j[1],I=1/Math.sin(Math.acos((R*Y+H*B)/(Math.sqrt(R*R+H*H)*Math.sqrt(Y*Y+B*B)))/2),X=Math.sqrt(j[0]*j[0]+j[1]*j[1]);N=Math.min(k,(f-X)/(I-1)),S=Math.min(k,(h-X)/(I+1))}}w>Jh?S>Jh?(y=cn(U,O,P,D,h,S,_),g=cn(z,q,F,L,h,S,_),s.moveTo(y.cx+y.x01,y.cy+y.y01),k>S?s.arc(y.cx,y.cy,S,Math.atan2(y.y01,y.x01),Math.atan2(g.y01,g.x01),!_):(s.arc(y.cx,y.cy,S,Math.atan2(y.y01,y.x01),Math.atan2(y.y11,y.x11),!_),s.arc(0,0,h,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,S,Math.atan2(g.y11,g.x11),Math.atan2(g.y01,g.x01),!_))):(s.moveTo(P,D),s.arc(0,0,h,v,m,!_)):s.moveTo(P,D),f>Jh&&M>Jh?N>Jh?(y=cn(F,L,z,q,f,-N,_),g=cn(P,D,U,O,f,-N,_),s.lineTo(y.cx+y.x01,y.cy+y.y01),k>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,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,N,Math.atan2(g.y11,g.x11),Math.atan2(g.y01,g.x01),!_))):s.arc(0,0,f,b,x,_):s.lineTo(F,L)}else s.moveTo(0,0);return s.closePath(),t?(s=null,t+""||null):void 0}var n=nn,e=en,r=tn(0),i=null,a=rn,o=an,u=on,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-Wh/2;return[Math.cos(r)*t,Math.sin(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:tn(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:tn(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:tn(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:tn(+n),t):i},t.startAngle=function(n){return arguments.length?(a="function"==typeof n?n:tn(+n),t):a},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:tn(+n),t):o},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:tn(+n),t):u},t.context=function(n){return arguments.length?(s=null==n?null:n,t):s},t}function hn(t){this._context=t}function ln(t){return new hn(t)}function dn(t){return t[0]}function pn(t){return t[1]}function _n(){function t(t){var c,f,h,l,d,p=t.length,_=!1,y=new Array(p),g=new Array(p);for(null==o&&(s=u(d=At())),c=0;p>=c;++c){if(!(p>c&&a(l=t[c],c,t))===_)if(_=!_)f=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=f;--h)s.point(y[h],g[h]);s.lineEnd(),s.areaEnd()}_&&(y[c]=+n(l,c,t),g[c]=+r(l,c,t),s.point(e?+e(l,c,t):y[c],i?+i(l,c,t):g[c]))}return d?(s=null,d+""||null):void 0}var n=dn,e=null,r=tn(0),i=pn,a=tn(!0),o=null,u=ln,s=null;return t.x=function(r){return arguments.length?(n="function"==typeof r?r:tn(+r),e=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:tn(+e),t):n},t.x1=function(n){return arguments.length?(e=null==n?null:"function"==typeof n?n:tn(+n),t):e},t.y=function(n){return arguments.length?(r="function"==typeof n?n:tn(+n),i=null,t):r},t.y0=function(n){return arguments.length?(r="function"==typeof n?n:tn(+n),t):r},t.y1=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:tn(+n),t):i},t.defined=function(n){return arguments.length?(a="function"==typeof n?n:tn(!!n),t):a},t.curve=function(n){return arguments.length?(u=n,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 yn(){function t(t){var u,s,c,f=t.length,h=!1;for(null==i&&(o=a(c=At())),u=0;f>=u;++u)!(f>u&&r(s=t[u],u,t))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+n(s,u,t),+e(s,u,t));return c?(o=null,c+""||null):void 0}var n=dn,e=pn,r=tn(!0),i=null,a=ln,o=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:tn(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:tn(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:tn(!!n),t):r},t.curve=function(n){return arguments.length?(a=n,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 gn(t,n){return t>n?-1:n>t?1:n>=t?0:NaN}function vn(t){return t}function mn(){function t(t){var u,s,c,f,h,l=t.length,d=0,p=new Array(l),_=new Array(l),y=+i.apply(this,arguments),g=Math.min($h,Math.max(-$h,a.apply(this,arguments)-y)),v=Math.min(Math.abs(g)/l,o.apply(this,arguments)),m=v*(0>g?-1:1);for(u=0;l>u;++u)(h=_[p[u]=u]=+n(t[u],u,t))>0&&(d+=h);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-l*m)/d:0;l>u;++u,y=f)s=p[u],h=_[s],f=y+(h>0?h*c:0)+m,_[s]={data:t[s],index:u,value:h,startAngle:y,endAngle:f,padAngle:v};return _}var n=vn,e=gn,r=null,i=tn(0),a=tn($h),o=tn(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:tn(+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:tn(+n),t):i},t.endAngle=function(n){return arguments.length?(a="function"==typeof n?n:tn(+n),t):a},t.padAngle=function(n){return arguments.length?(o="function"==typeof n?n:tn(+n),t):o},t}function xn(t){this._curve=t}function bn(t){function n(n){return new xn(t(n))}return n._curve=t,n}function Mn(){var t=_n(),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(bn(t)):n()._curve},t.curve(ln)}function wn(){var t=yn(),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(bn(t)):n()._curve},t.curve(ln)}function Tn(){function t(){var t;return r||(r=t=At()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t?(r=null,t+""||null):void 0}var n=tn(Zh),e=tn(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:tn(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:tn(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t}function An(){}function kn(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Nn(t){this._context=t}function Sn(t){return new Nn(t)}function Cn(t){this._context=t}function En(t){return new Cn(t)}function Pn(t){this._context=t}function Dn(t){return new Pn(t)}function Fn(t,n){this._basis=new Nn(t),this._beta=n}function Ln(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function zn(t,n){this._context=t,this._k=(1-n)/6}function qn(t,n){this._context=t,this._k=(1-n)/6}function Un(t,n){this._context=t,this._k=(1-n)/6}function On(t,n,e){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Jh){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>Jh){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 jn(t,n){this._context=t,this._alpha=n}function Rn(t,n){this._context=t,this._alpha=n}function Hn(t,n){this._context=t,this._alpha=n}function Yn(t){this._context=t}function Bn(t){return new Yn(t)}function In(t){return 0>t?-1:1}function Xn(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(In(a)+In(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 Wn(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 Vn(t){this._context=t}function $n(t){this._context=new Zn(t)}function Zn(t){this._context=t}function Gn(t){return new Vn(t)}function Kn(t){return new $n(t)}function Qn(t){this._context=t}function te(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 ne(t){return new Qn(t)}function ee(t,n){this._context=t,this._t=n}function re(t){return new ee(t,.5)}function ie(t){return new ee(t,0)}function ae(t){return new ee(t,1)}function oe(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 ue(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function se(t,n){return t[n]}function ce(){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 h,l=u[a],d=f[a]=new Array(s),p=0;s>p;++p)d[p]=h=[0,+i(t[p],l,p,t)],h.data=t[p];d.key=l}for(a=0,o=e(f);c>a;++a)f[o[a]].index=a;return r(f,o),f}var n=tn([]),e=ue,r=oe,i=se;return t.keys=function(e){return arguments.length?(n="function"==typeof e?e:tn(Ml.call(e)),t):n},t.value=function(n){return arguments.length?(i="function"==typeof n?n:tn(+n),t):i},t.order=function(n){return arguments.length?(e=null==n?ue:"function"==typeof n?n:tn(Ml.call(n)),t):e},t.offset=function(n){return arguments.length?(r=null==n?oe:n,t):r},t}function fe(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}oe(t,n)}}function he(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}oe(t,n)}}function le(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]],h=f[o][1]||0,l=f[o-1][1]||0,d=(h-l)/2,p=0;u>p;++p){var _=t[n[p]],y=_[o][1]||0,g=_[o-1][1]||0;d+=y-g}s+=h,c+=d*h}e[o-1][1]+=e[o-1][0]=a,s&&(a-=c/s)}e[o-1][1]+=e[o-1][0]=a,oe(t,n)}}function de(t){var n=t.map(pe);return ue(t).sort(function(t,e){return n[t]-n[e]})}function pe(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function _e(t){return de(t).reverse()}function ye(t){var n,e,r=t.length,i=t.map(pe),a=ue(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 ge(t){return ue(t).reverse()}function ve(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function me(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function xe(){}function be(t){var n;return t=(t+"").trim().toLowerCase(),(n=Al.exec(t))?(n=parseInt(n[1],16),new ke(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=kl.exec(t))?Me(parseInt(n[1],16)):(n=Nl.exec(t))?new ke(n[1],n[2],n[3],1):(n=Sl.exec(t))?new ke(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Cl.exec(t))?we(n[1],n[2],n[3],n[4]):(n=El.exec(t))?we(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Pl.exec(t))?Ne(n[1],n[2]/100,n[3]/100,1):(n=Dl.exec(t))?Ne(n[1],n[2]/100,n[3]/100,n[4]):Fl.hasOwnProperty(t)?Me(Fl[t]):"transparent"===t?new ke(NaN,NaN,NaN,0):null}function Me(t){return new ke(t>>16&255,t>>8&255,255&t,1)}function we(t,n,e,r){return 0>=r&&(t=n=e=NaN),new ke(t,n,e,r)}function Te(t){return t instanceof xe||(t=be(t)),t?(t=t.rgb(),new ke(t.r,t.g,t.b,t.opacity)):new ke}function Ae(t,n,e,r){return 1===arguments.length?Te(t):new ke(t,n,e,null==r?1:r)}function ke(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Ne(t,n,e,r){return 0>=r?t=n=e=NaN:0>=e||e>=1?t=n=NaN:0>=n&&(t=NaN),new Ee(t,n,e,r)}function Se(t){if(t instanceof Ee)return new Ee(t.h,t.s,t.l,t.opacity);if(t instanceof xe||(t=be(t)),!t)return new Ee;if(t instanceof Ee)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 Ee(o,u,s,t.opacity)}function Ce(t,n,e,r){return 1===arguments.length?Se(t):new Ee(t,n,e,null==r?1:r)}function Ee(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Pe(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 De(t){if(t instanceof Le)return new Le(t.l,t.a,t.b,t.opacity);if(t instanceof He){var n=t.h*Ll;return new Le(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof ke||(t=Te(t));var e=Oe(t.r),r=Oe(t.g),i=Oe(t.b),a=ze((.4124564*e+.3575761*r+.1804375*i)/Ul),o=ze((.2126729*e+.7151522*r+.072175*i)/Ol),u=ze((.0193339*e+.119192*r+.9503041*i)/jl);return new Le(116*o-16,500*(a-o),200*(o-u),t.opacity)}function Fe(t,n,e,r){return 1===arguments.length?De(t):new Le(t,n,e,null==r?1:r)}function Le(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function ze(t){return t>Bl?Math.pow(t,1/3):t/Yl+Rl}function qe(t){return t>Hl?t*t*t:Yl*(t-Rl)}function Ue(t){return 255*(.0031308>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Oe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function je(t){if(t instanceof He)return new He(t.h,t.c,t.l,t.opacity);t instanceof Le||(t=De(t));var n=Math.atan2(t.b,t.a)*zl;return new He(0>n?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Re(t,n,e,r){return 1===arguments.length?je(t):new He(t,n,e,null==r?1:r)}function He(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Ye(t){if(t instanceof Ie)return new Ie(t.h,t.s,t.l,t.opacity);t instanceof ke||(t=Te(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Gl*r+$l*n-Zl*e)/(Gl+$l-Zl),a=r-i,o=(Vl*(e-i)-Jl*a)/Wl,u=Math.sqrt(o*o+a*a)/(Vl*i*(1-i)),s=u?Math.atan2(o,a)*zl-120:NaN;return new Ie(0>s?s+360:s,u,i,t.opacity)}function Be(t,n,e,r){return 1===arguments.length?Ye(t):new Ie(t,n,e,null==r?1:r)}function Ie(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Xe(t){return function(){return t}}function Je(t,n){return function(e){return t+e*n}}function We(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 Ve(t,n){var e=n-t;return e?Je(t,e>180||-180>e?e-360*Math.round(e/360):e):Xe(isNaN(t)?n:t)}function $e(t){return 1===(t=+t)?Ze:function(n,e){return e-n?We(n,e,t):Xe(isNaN(n)?e:n)}}function Ze(t,n){var e=n-t;return e?Je(t,e):Xe(isNaN(t)?n:t)}function Ge(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(rr(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 Ke(t,n){return t=+t,n-=t,function(e){return t+n*e}}function Qe(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]=rr(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 tr(t){return function(){return t}}function nr(t){return function(n){return t(n)+""}}function er(t,n){var e,r,i,a=rd.lastIndex=id.lastIndex=0,o=-1,u=[],s=[];for(t+="",n+="";(e=rd.exec(t))&&(r=id.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:Ke(e,r)})),a=id.lastIndex;return a<n.length&&(i=n.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?nr(s[0].x):tr(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 rr(t,n){var e,r=typeof n;return null==n||"boolean"===r?Xe(n):("number"===r?Ke:"string"===r?(e=be(n))?(n=e,ed):er:n instanceof be?ed:Array.isArray(n)?Ge:Qe)(t,n)}function ir(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}}function ar(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)*ad,skewX:Math.atan(u)*ad,scaleX:o,scaleY:s}}function or(t){if("none"===t)return od;Kl||(Kl=document.createElement("DIV"),Ql=document.documentElement,td=document.defaultView),Kl.style.transform=t,t=td.getComputedStyle(Ql.appendChild(Kl),null).getPropertyValue("transform"),Ql.removeChild(Kl);var n=t.slice(7,-1).split(",");return ar(+n[0],+n[1],+n[2],+n[3],+n[4],+n[5])}function ur(t){nd||(nd=document.createElementNS("http://www.w3.org/2000/svg","g")),nd.setAttribute("transform",null==t?"":t);var n=nd.transform.baseVal.consolidate().matrix;return ar(n.a,n.b,n.c,n.d,n.e,n.f)}function sr(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:Ke(t,i)},{i:s-2,x:Ke(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:Ke(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:Ke(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:Ke(t,e)},{i:u-2,x:Ke(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 cr(t){return((t=Math.exp(t))+1/t)/2}function fr(t){return((t=Math.exp(t))-1/t)/2}function hr(t){return((t=Math.exp(2*t))-1)/(t+1)}function lr(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,h=s-a,l=f*f+h*h;if(ld>l)r=Math.log(c/o)/cd,e=function(t){return[i+t*f,a+t*h,o*Math.exp(cd*t*r)]};else{var d=Math.sqrt(l),p=(c*c-o*o+hd*l)/(2*o*fd*d),_=(c*c-o*o-hd*l)/(2*c*fd*d),y=Math.log(Math.sqrt(p*p+1)-p),g=Math.log(Math.sqrt(_*_+1)-_);r=(g-y)/cd,e=function(t){var n=t*r,e=cr(y),u=o/(fd*d)*(e*hr(cd*n+y)-fr(y));return[i+u*f,a+u*h,o*e/cr(cd*n+y)]}}return e.duration=1e3*r,e}function dr(t,n){var e=Ve((t=Ce(t)).h,(n=Ce(n)).h),r=Ze(t.s,n.s),i=Ze(t.l,n.l),a=Ze(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 pr(t,n){var e=Ze((t=Ce(t)).h,(n=Ce(n)).h),r=Ze(t.s,n.s),i=Ze(t.l,n.l),a=Ze(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 _r(t,n){var e=Ze((t=Fe(t)).l,(n=Fe(n)).l),r=Ze(t.a,n.a),i=Ze(t.b,n.b),a=Ze(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 yr(t,n){var e=Ve((t=Re(t)).h,(n=Re(n)).h),r=Ze(t.c,n.c),i=Ze(t.l,n.l),a=Ze(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 gr(t,n){var e=Ze((t=Re(t)).h,(n=Re(n)).h),r=Ze(t.c,n.c),i=Ze(t.l,n.l),a=Ze(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 vr(){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 mr(r)}function mr(t){this._=t}function xr(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 br(t,n){for(var e,r=0,i=t.length;i>r;++r)if((e=t[r]).name===n)return e.value}function Mr(t,n,e){for(var r=0,i=t.length;i>r;++r)if(t[r].name===n){t[r]=_d,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function wr(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}function Tr(t,n){var e=wr(t);return function(r,i){return n(e(r),i,t)}}function Ar(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 kr(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?Tr(t,n):wr(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,h=0;(r=e())!==o;){for(var l=[];r!==a&&r!==o;)l.push(r),r=e();n&&null==(l=n(l,h++))||u.push(l)}return u}function r(n,e){return null==e&&(e=Ar(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 null==t?"":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 Nr(t,n){function e(t){var n,e=c.status;if(!e&&Cr(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=vr("beforesend","progress","load","error"),s=L(),c=new XMLHttpRequest,f=null,h=null,l=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?(l=+t,r):l},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",r)},password:function(t){return arguments.length<1?h:(h=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=Sr(a)),c.open(n,t,!0,f,h),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),l>0&&(c.timeout=l),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 Sr(t){return function(n,e){t(null==n?e:null)}}function Cr(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Er(t,n){return function(e,r){var i=Nr(e).mimeType(t).response(n);return r?i.get(r):i}}function Pr(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var a=Nr(e).mimeType(t);return a.row=function(t){return arguments.length?a.response(Dr(n,r=t)):r},a.row(r),i?a.get(i):a}}function Dr(t,n){return function(e){return t(e.responseText,n)}}function Fr(){return jd||(Yd(Lr),jd=Hd.now()+Rd)}function Lr(){jd=0}function zr(){this._call=this._time=this._next=null}function qr(t,n,e){var r=new zr;return r.restart(t,n,e),r}function Ur(){Fr(),++Ld;for(var t,n=yd;n;)(t=jd-n._time)>=0&&n._call.call(null,t),n=n._next;--Ld}function Or(t){jd=(Od=t||Hd.now())+Rd,Ld=zd=0;try{Ur()}finally{Ld=0,Rr(),jd=0}}function jr(){var t=Hd.now(),n=t-Od;n>Ud&&(Rd-=n,Od=t)}function Rr(){for(var t,n=yd,e=1/0;n;)n._call?(e>n._time&&(e=n._time),n=(t=n)._next):n=t?t._next=n._next:yd=n._next;gd=t,Hr(e)}function Hr(t){if(!Ld){zd&&(zd=clearTimeout(zd));var n=t-jd;n>24?(1/0>t&&(zd=setTimeout(Or,n)),qd&&(qd=clearInterval(qd))):(qd||(qd=setInterval(jr,Ud)),Ld=1,Yd(Or))}}function Yr(t,n,e){var r=new zr;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}function Br(t,n,e){var r=new zr,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?Fr():+e,r.restart(function a(o){o+=i,r.restart(a,i+=n,e),t(o)},n,e),r)}function Ir(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 Ir(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 Bd.setTime(+n),Id.setTime(+r),t(Bd),t(Id),Math.floor(e(Bd,Id))},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 Xr(t){return Ir(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())*Vd)/Gd})}function Jr(t){return Ir(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)/Gd})}function Wr(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 Vr(t){return t=Wr(Math.abs(t)),t?t[1]:NaN}function $r(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 Zr(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 Gr(t,n){var e=Wr(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(Jd=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")+Wr(t,Math.max(0,n+a-1))[0]}function Kr(t,n){var e=Wr(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 Qr(t){return new ti(t)}function ti(t){if(!(n=e_.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"):n_[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 ni(t){return t}function ei(t){function n(t){function n(t){var n,i,s,v=p,m=_;if("c"===d)m=y(t)+m,t="";else{t=+t;var x=(0>t||0>1/t)&&(t*=-1,!0);if(t=y(t,l),x)for(n=-1,i=t.length,x=!1;++n<i;)if(s=t.charCodeAt(n),s>48&&58>s||"x"===d&&s>96&&103>s||"X"===d&&s>64&&71>s){x=!0;break}if(v=(x?"("===u?u:"-":"-"===u||"("===u?"":u)+v,m=m+("s"===d?r_[8+Jd/3]:"")+(x&&"("===u?")":""),g)for(n=-1,i=t.length;++n<i;)if(s=t.charCodeAt(n),48>s||s>57){m=(46===s?a+t.slice(n+1):t.slice(n))+m,t=t.slice(0,n);break}}h&&!c&&(t=r(t,1/0));var b=v.length+t.length+m.length,M=f>b?new Array(f-b+1).join(e):"";switch(h&&c&&(t=r(M+t,M.length?f-m.length:1/0),M=""),o){case"<":return v+t+m+M;case"=":return v+M+t+m;case"^":return M.slice(0,b=M.length>>1)+v+t+m+M.slice(b)}return M+v+t+m}t=Qr(t);var e=t.fill,o=t.align,u=t.sign,s=t.symbol,c=t.zero,f=t.width,h=t.comma,l=t.precision,d=t.type,p="$"===s?i[0]:"#"===s&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",_="$"===s?i[1]:/[%p]/.test(d)?"%":"",y=n_[d],g=!d||/[defgprs%]/.test(d);return l=null==l?d?6:12:/[gprs]/.test(d)?Math.max(1,Math.min(21,l)):Math.max(0,Math.min(20,l)),n.toString=function(){return t+""},n}function e(t,e){var r=n((t=Qr(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Vr(e)/3))),a=Math.pow(10,-i),o=r_[8+i/3];return function(t){return r(a*t)+o}}var r=t.grouping&&t.thousands?$r(t.grouping,t.thousands):ni,i=t.currency,a=t.decimal;return{format:n,formatPrefix:e}}function ri(t){return Math.max(0,-Vr(Math.abs(t)))}function ii(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Vr(n)/3)))-Vr(Math.abs(t)))}function ai(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Vr(n)-Vr(t))+1}function oi(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 ui(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 si(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function ci(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=C_[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=si(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?ui(si(i.y)).getUTCDay():n(si(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,ui(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=Y[i in C_?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=z[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=O.exec(n.slice(e));return r?(t.m=j[r[0].toLowerCase()],e+r[0].length):-1}function s(t,n,e){var r=q.exec(n.slice(e));return r?(t.m=U[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 h(t,n,e){return r(t,T,n,e)}function l(t){return N[t.getDay()]}function d(t){return k[t.getDay()]}function p(t){return C[t.getMonth()]}function _(t){return S[t.getMonth()]}function y(t){return A[+(t.getHours()>=12)]}function g(t){return N[t.getUTCDay()]}function v(t){return k[t.getUTCDay()]}function m(t){return C[t.getUTCMonth()]}function x(t){return S[t.getUTCMonth()]}function b(t){return A[+(t.getUTCHours()>=12)]}var M=t.dateTime,w=t.date,T=t.time,A=t.periods,k=t.days,N=t.shortDays,S=t.months,C=t.shortMonths,E=li(A),P=di(A),D=li(k),F=di(k),L=li(N),z=di(N),q=li(S),U=di(S),O=li(C),j=di(C),R={a:l,A:d,b:p,B:_,c:null,d:Si,e:Si,H:Ci,I:Ei,j:Pi,L:Di,m:Fi,M:Li,p:y,S:zi,U:qi,w:Ui,W:Oi,x:null,X:null,y:ji,Y:Ri,Z:Hi,"%":ea},H={a:g,A:v,b:m,B:x,c:null,d:Yi,e:Yi,H:Bi,I:Ii,j:Xi,L:Ji,m:Wi,M:Vi,p:b,S:$i,U:Zi,w:Gi,W:Ki,x:null,X:null,y:Qi,Y:ta,Z:na,"%":ea},Y={a:a,A:o,b:u,B:s,c:c,d:bi,e:bi,H:wi,I:wi,j:Mi,L:ki,m:xi,M:Ti,p:i,S:Ai,U:_i,w:pi,W:yi,x:f,X:h,y:vi,Y:gi,Z:mi,"%":Ni};return R.x=n(w,R),R.X=n(T,R),R.c=n(M,R),H.x=n(w,H),H.X=n(T,H),H.c=n(M,H),{format:function(t){var e=n(t+="",R);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",oi);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",H);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,ui);return n.toString=function(){return t},n}}}function fi(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 hi(t){return t.replace(D_,"\\$&")}function li(t){return new RegExp("^(?:"+t.map(hi).join("|")+")","i")}function di(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function pi(t,n,e){var r=E_.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function _i(t,n,e){var r=E_.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function yi(t,n,e){var r=E_.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function gi(t,n,e){var r=E_.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function vi(t,n,e){var r=E_.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function mi(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 xi(t,n,e){var r=E_.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function bi(t,n,e){var r=E_.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Mi(t,n,e){var r=E_.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function wi(t,n,e){var r=E_.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Ti(t,n,e){var r=E_.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Ai(t,n,e){var r=E_.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function ki(t,n,e){var r=E_.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Ni(t,n,e){var r=P_.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Si(t,n){return fi(t.getDate(),n,2)}function Ci(t,n){return fi(t.getHours(),n,2)}function Ei(t,n){return fi(t.getHours()%12||12,n,2)}function Pi(t,n){return fi(1+np.count(fp(t),t),n,3)}function Di(t,n){return fi(t.getMilliseconds(),n,3)}function Fi(t,n){return fi(t.getMonth()+1,n,2)}function Li(t,n){return fi(t.getMinutes(),n,2)}function zi(t,n){return fi(t.getSeconds(),n,2)}function qi(t,n){return fi(ep.count(fp(t),t),n,2)}function Ui(t){return t.getDay()}function Oi(t,n){return fi(rp.count(fp(t),t),n,2)}function ji(t,n){return fi(t.getFullYear()%100,n,2)}function Ri(t,n){return fi(t.getFullYear()%1e4,n,4)}function Hi(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+fi(n/60|0,"0",2)+fi(n%60,"0",2)}function Yi(t,n){return fi(t.getUTCDate(),n,2)}function Bi(t,n){return fi(t.getUTCHours(),n,2)}function Ii(t,n){return fi(t.getUTCHours()%12||12,n,2)}function Xi(t,n){return fi(1+dp.count(Mp(t),t),n,3)}function Ji(t,n){return fi(t.getUTCMilliseconds(),n,3)}function Wi(t,n){return fi(t.getUTCMonth()+1,n,2)}function Vi(t,n){return fi(t.getUTCMinutes(),n,2)}function $i(t,n){return fi(t.getUTCSeconds(),n,2)}function Zi(t,n){return fi(pp.count(Mp(t),t),n,2)}function Gi(t){return t.getUTCDay()}function Ki(t,n){return fi(_p.count(Mp(t),t),n,2)}function Qi(t,n){return fi(t.getUTCFullYear()%100,n,2)}function ta(t,n){return fi(t.getUTCFullYear()%1e4,n,4)}function na(){return"+0000"}function ea(){return"%"}function ra(t){return t.toISOString()}function ia(t){var n=new Date(t);return isNaN(n)?null:n}function aa(){function t(t){var a=t+"",o=n.get(a);if(!o){if(i!==hy)return i;n.set(a,o=e.push(t))}return r[(o-1)%r.length]}var n=L(),e=[],r=[],i=hy;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=fy.call(n),t):r.slice()},t.unknown=function(n){return arguments.length?(i=n,t):i},t.copy=function(){return aa().domain(e).range(r).unknown(i)},t}function oa(){function t(){var t=i().length,r=o[1]<o[0],l=o[r-0],d=o[1-r];n=(d-l)/Math.max(1,t-s+2*c),u&&(n=Math.floor(n)),l+=(d-l-n*(t-s))*f,e=n*(1-s),u&&(l=Math.round(l),e=Math.round(e));var p=h(t).map(function(t){return l+n*t});return a(r?p.reverse():p)}var n,e,r=aa().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 oa().domain(i()).range(o).round(u).paddingInner(s).paddingOuter(c).align(f)},t()}function ua(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return ua(n())},t}function sa(){return ua(oa().paddingInner(1))}function ca(t){return function(){return t}}function fa(t){return+t}function ha(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:ca(n)}function la(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 da(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 pa(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 _a(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=oh(t,n,1,i)-1;return o[e](a[e](n))}}function ya(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function ga(t,n){function e(){var e=Math.min(o.length,u.length)>2?_a:pa;return i=e(o,u,c?la(t):t,s),a=e(u,o,ha,c?da(n):n),r}function r(t){return i(+t)}var i,a,o=ly,u=ly,s=rr,c=!1;return r.invert=function(t){return a(+t)},r.domain=function(t){return arguments.length?(o=cy.call(t,fa),e()):o.slice()},r.range=function(t){return arguments.length?(u=fy.call(t),e()):u.slice()},r.rangeRound=function(t){return u=fy.call(t),s=ir,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 va(t,n,e){var r,i=t[0],a=t[t.length-1],o=d(i,a,null==n?10:n);switch(e=Qr(null==e?",f":e),e.type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=e.precision||isNaN(r=ii(o,u))||(e.precision=r),S_(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=ai(o,Math.max(Math.abs(i),Math.abs(a))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=ri(o))||(e.precision=r-2*("%"===e.type))}return N_(e)}function ma(t){var n=t.domain;return t.ticks=function(t){var e=n();return l(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return va(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 xa(){var t=ga(ha,Ke);return t.copy=function(){return ya(t,xa())},ma(t)}function ba(){function t(t){return+t}var n=[0,1];return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=cy.call(e,fa),t):n.slice()},t.copy=function(){return ba().domain(n)},ma(t)}function Ma(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 wa(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:ca(n)}function Ta(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 Aa(t){return isFinite(t)?+("1e"+t):0>t?0:t}function ka(t){return 10===t?Aa:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function Na(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 Sa(t){return function(n){return-t(-n)}}function Ca(){function t(){return i=Na(r),a=ka(r),e()[0]<0&&(i=Sa(i),a=Sa(a)),n}var n=ga(wa,Ta).domain([1,10]),e=n.domain,r=10,i=Na(10),a=ka(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,h,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(h=c*f,!(u>h)){if(h>s)break;y.push(h)}}else for(;p>d;++d)for(f=r-1,c=a(d);f>=1;--f)if(h=c*f,!(u>h)){if(h>s)break;y.push(h)}n&&y.reverse()}else y=l(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=N_(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(Ma(e(),{floor:function(t){return a(Math.floor(i(t)))},ceil:function(t){return a(Math.ceil(i(t)))}}))},n.copy=function(){return ya(n,Ca().base(r))},n}function Ea(t,n){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}function Pa(){function t(t,n){return(n=Ea(n,e)-(t=Ea(t,e)))?function(r){return(Ea(r,e)-t)/n}:ca(n)}function n(t,n){return n=Ea(n,e)-(t=Ea(t,e)),function(r){return Ea(t+n*r,1/e)}}var e=1,r=ga(t,n),i=r.domain;return r.exponent=function(t){return arguments.length?(e=+t,i(i())):e},r.copy=function(){return ya(r,Pa().exponent(e))},ma(r)}function Da(){return Pa().exponent(.5)}function Fa(){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[oh(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=fy.call(n),t()):i.slice()},e.quantiles=function(){return a.slice()},e.copy=function(){return Fa().domain(r).range(i)},e}function La(){function t(t){return t>=t?o[oh(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=fy.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 La().domain([e,r]).range(o)},ma(t)}function za(){function t(t){return t>=t?e[oh(n,t,0,r)]:void 0}var n=[.5],e=[0,1],r=1;return t.domain=function(i){return arguments.length?(n=fy.call(i),r=Math.min(n.length,e.length-1),t):n.slice()},t.range=function(i){return arguments.length?(e=fy.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 za().domain(n).range(e)},t}function qa(t){return new Date(t)}function Ua(t,n,r,i,a,o,u,s,c){function f(e){return(u(e)<e?y:o(e)<e?g:a(e)<e?v:i(e)<e?m:n(e)<e?r(e)<e?x:b:t(e)<e?M:w)(e)}function h(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/my,i/my,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 l=ga(ha,Ke),p=l.invert,_=l.domain,y=c(".%L"),g=c(":%S"),v=c("%I:%M"),m=c("%I %p"),x=c("%a %d"),b=c("%b %d"),M=c("%B"),w=c("%Y"),T=[[u,1,dy],[u,5,5*dy],[u,15,15*dy],[u,30,30*dy],[o,1,py],[o,5,5*py],[o,15,15*py],[o,30,30*py],[a,1,_y],[a,3,3*_y],[a,6,6*_y],[a,12,12*_y],[i,1,yy],[i,2,2*yy],[r,1,gy],[n,1,vy],[n,3,3*vy],[t,1,my]];return l.invert=function(t){return new Date(p(t))},l.domain=function(t){return arguments.length?_(t):_().map(qa)},l.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=h(t,i,a,n),e=e?e.range(i,a+1):[],o?e.reverse():e},l.tickFormat=function(t,n){return null==n?f:c(n)},l.nice=function(t,n){var e=_();return(t=h(t,e[0],e[e.length-1],n))?_(Ma(e,t)):l},l.copy=function(){return ya(l,Ua(t,n,r,i,a,o,u,s,c))},l}function Oa(){return Ua(fp,cp,ep,np,tp,Qd,Kd,Xd,iy).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function ja(){return Ua(Mp,bp,pp,dp,lp,hp,Rp,Op,oy).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function Ra(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}function Ha(){return aa().range(xy)}function Ya(){return aa().range(by)}function Ba(){return aa().range(My)}function Ia(){return aa().range(wy)}function Xa(){return xa().interpolate(pd).range([Be(300,.5,0),Be(-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)},ma(n)}function Wa(){return Ja(pd(Be(-100,.75,.35),Be(80,1.5,.8)))}function Va(){return Ja(pd(Be(260,.75,.35),Be(80,1.5,.8)))}function $a(){var t=Be();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 Za(t){var n=Ja(function(n){return t[Math.round(n*t.length-n)]}).clamp(!0);return delete n.clamp,n}function Ga(){return Za(Ty)}function Ka(){return Za(Ay)}function Qa(){return Za(ky)}function to(){return Za(Ny)}function no(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Cy.hasOwnProperty(n)?{space:Cy[n],local:t}:t}function eo(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Sy&&n.documentElement.namespaceURI===Sy?n.createElement(t):n.createElementNS(e,t)}}function ro(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function io(t){var n=no(t);return(n.local?ro:eo)(n)}function ao(t,n,e){return t=oo(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function oo(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 uo(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 so(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 co(t,n,e){var r=Ly.hasOwnProperty(t.type)?ao:oo;return function(i,a,o){var u,s=this.__on,c=r(n,a,o);if(s)for(var f=0,h=s.length;h>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 fo(t,n,e){var r,i,a=uo(t+""),o=a.length;{if(!(arguments.length<2)){for(u=n?co:so,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 ho(){for(var n,e=t.event;n=e.sourceEvent;)e=n;return e}function lo(t,n){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]}function po(t,n){return null==n&&(n=ho()),n.changedTouches&&(n=n.changedTouches[0]),lo(t,n)}function _o(t){return function(){return this.querySelector(t);
}}function yo(t){"function"!=typeof t&&(t=_o(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 Du(r,this._parents)}function go(t){return function(){return this.querySelectorAll(t)}}function vo(t){"function"!=typeof t&&(t=go(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 Du(r,i)}function mo(t){"function"!=typeof t&&(t=Fy(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 Du(r,this._parents)}function xo(t){return function(){return t}}function bo(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 To(t,a[u]);for(;s>u;++u)(o=n[u])&&(i[u]=o)}function Mo(t,n,e,r,i,a,o){var u,s,c,f={},h=n.length,l=a.length,d=new Array(h);for(u=0;h>u;++u)(s=n[u])&&(d[u]=c=qy+o.call(s,s.__data__,u,n),f[c]||(f[c]=s));for(u=0;l>u;++u)c=qy+o.call(t,a[u],u,a),(s=f[c])?s!==!0&&(r[u]=s,s.__data__=a[u]):e[u]=new To(t,a[u]),f[c]=!0;for(u=0;h>u;++u)(s=n[u])&&f[d[u]]!==!0&&(i[u]=s)}function wo(t,n){if(!t)return d=new Array(this.size()),c=-1,this.each(function(t){d[++c]=t}),d;var e=n?Mo:bo,r=this._parents,i=this._groups;"function"!=typeof t&&(t=xo(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],h=i[c],l=h.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(l);e(f,h,_,y,g,d,n);for(var v,m,x=0,b=0;p>x;++x)if(v=_[x]){for(x>=b&&(b=x+1);!(m=y[b])&&++b<p;);v._next=m||null}}return o=new Du(o,r),o._enter=u,o._exit=s,o}function To(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Ao(t){return new Array(t.length)}function ko(){return new Du(this._enter||this._groups.map(Ao),this._parents)}function No(){return new Du(this._exit||this._groups.map(Ao),this._parents)}function So(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],h=c.length,l=o[u]=new Array(h),d=0;h>d;++d)(s=c[d]||f[d])&&(l[d]=s);for(;r>u;++u)o[u]=n[u];return new Du(o,this._parents)}function Co(){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 Eo(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Po);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 Du(i,this._parents).order()}function Po(t,n){return n>t?-1:t>n?1:t>=n?0:NaN}function Do(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Fo(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t}function Lo(){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 zo(){var t=0;return this.each(function(){++t}),t}function qo(){return!this.node()}function Uo(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 Oo(t){return function(){this.removeAttribute(t)}}function jo(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ro(t,n){return function(){this.setAttribute(t,n)}}function Ho(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Yo(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Bo(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 Io(t,n){var e=no(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?jo:Oo:"function"==typeof n?e.local?Bo:Yo:e.local?Ho:Ro)(e,n))}function Xo(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Jo(t){return function(){this.style.removeProperty(t)}}function Wo(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Vo(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function $o(t,n,e){var r;return arguments.length>1?this.each((null==n?Jo:"function"==typeof n?Vo:Wo)(t,n,null==e?"":e)):Xo(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)}function Zo(t){return function(){delete this[t]}}function Go(t,n){return function(){this[t]=n}}function Ko(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Qo(t,n){return arguments.length>1?this.each((null==n?Zo:"function"==typeof n?Ko:Go)(t,n)):this.node()[t]}function tu(t){return t.trim().split(/^|\s+/)}function nu(t){return t.classList||new eu(t)}function eu(t){this._node=t,this._names=tu(t.getAttribute("class")||"")}function ru(t,n){for(var e=nu(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function iu(t,n){for(var e=nu(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function au(t){return function(){ru(this,t)}}function ou(t){return function(){iu(this,t)}}function uu(t,n){return function(){(n.apply(this,arguments)?ru:iu)(this,t)}}function su(t,n){var e=tu(t+"");if(arguments.length<2){for(var r=nu(this.node()),i=-1,a=e.length;++i<a;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?uu:n?au:ou)(e,n))}function cu(){this.textContent=""}function fu(t){return function(){this.textContent=t}}function hu(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function lu(t){return arguments.length?this.each(null==t?cu:("function"==typeof t?hu:fu)(t)):this.node().textContent}function du(){this.innerHTML=""}function pu(t){return function(){this.innerHTML=t}}function _u(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function yu(t){return arguments.length?this.each(null==t?du:("function"==typeof t?_u:pu)(t)):this.node().innerHTML}function gu(){this.parentNode.appendChild(this)}function vu(){return this.each(gu)}function mu(){this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xu(){return this.each(mu)}function bu(t){return function(){return this.appendChild(t.apply(this,arguments))}}function Mu(t,n){return function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)}}function wu(){return null}function Tu(t,n){var e="function"==typeof t?t:io(t);return this.select(arguments.length<2?bu(e):Mu(e,null==n?wu:"function"==typeof n?n:_o(n)))}function Au(){var t=this.parentNode;t&&t.removeChild(this)}function ku(){return this.each(Au)}function Nu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Su(t,n,e){var r=Xo(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 Cu(t,n){return function(){return Su(this,t,n)}}function Eu(t,n){return function(){return Su(this,t,n.apply(this,arguments))}}function Pu(t,n){return this.each(("function"==typeof n?Eu:Cu)(t,n))}function Du(t,n){this._groups=t,this._parents=n}function Fu(){return new Du([[document.documentElement]],Uy)}function Lu(t){return"string"==typeof t?new Du([[document.querySelector(t)]],[document.documentElement]):new Du([[t]],Uy)}function zu(t){return"string"==typeof t?new Du([document.querySelectorAll(t)],[document.documentElement]):new Du([t],Uy)}function qu(t,n,e){arguments.length<3&&(e=n,n=ho().changedTouches);for(var r,i=0,a=n?n.length:0;a>i;++i)if((r=n[i]).identifier===e)return lo(t,r);return null}function Uu(t,n){null==n&&(n=ho().touches);for(var e=0,r=n?n.length:0,i=new Array(r);r>e;++e)i[e]=lo(t,n[e]);return i}function Ou(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:Oy,tween:jy,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Ry})}function ju(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Ry)throw new Error("too late");return e}function Ru(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Yy)throw new Error("too late");return e}function Hu(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=Hy,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===By?(f.state=Xy,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete u[i]):n>+i&&(f.state=Xy,f.timer.stop(),delete u[i]));if(Yr(function(){e.state===By&&(e.timer.restart(a,e.delay,e.time),a(r))}),e.state=Yy,e.on.call("start",t,t.__data__,e.index,e.group),e.state===Yy){for(e.state=By,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=Iy,1),a=-1,s=o.length;++a<s;)o[a].call(null,i);if(e.state===Iy){e.state=Xy,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=qr(r,0,e.time)}function Bu(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===By,n.state=Xy,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 Iu(t,n){var e,r;return function(){var i=Ru(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 Xu(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var a=Ru(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=Hu(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?Iu:Xu)(e,t,n))}function Wu(t,n,e){var r=t._id;return t.each(function(){var t=Ru(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return Hu(t,r).value[n]}}function Vu(t,n){var e;return("number"==typeof n?Ke:n instanceof be?ed:(e=be(n))?(n=e,ed):er)(t,n)}function $u(t){return function(){this.removeAttribute(t)}}function Zu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Gu(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 Ku(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 Qu(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 ts(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 ns(t,n){var e=no(t),r="transform"===e?sd:Vu;return this.attrTween(t,"function"==typeof n?(e.local?ts:Qu)(e,r,Wu(this,"attr."+t,n)):null==n?(e.local?Zu:$u)(e):(e.local?Ku:Gu)(e,r,n))}function es(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 rs(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 is(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=no(t);return this.tween(e,(r.local?es:rs)(r,n))}function as(t,n){return function(){ju(this,t).delay=+n.apply(this,arguments)}}function os(t,n){return n=+n,function(){ju(this,t).delay=n}}function us(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?as:os)(n,t)):Hu(this.node(),n).delay}function ss(t,n){return function(){Ru(this,t).duration=+n.apply(this,arguments)}}function cs(t,n){return n=+n,function(){Ru(this,t).duration=n}}function fs(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?ss:cs)(n,t)):Hu(this.node(),n).duration}function hs(t,n){if("function"!=typeof n)throw new Error;return function(){Ru(this,t).ease=n}}function ls(t){var n=this._id;return arguments.length?this.each(hs(n,t)):Hu(this.node(),n).ease}function ds(t){"function"!=typeof t&&(t=Fy(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 Ls(r,this._parents,this._name,this._id)}function ps(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],h=c.length,l=o[u]=new Array(h),d=0;h>d;++d)(s=c[d]||f[d])&&(l[d]=s);for(;r>u;++u)o[u]=n[u];return new Ls(o,this._parents,this._name,this._id)}function _s(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 ys(t,n,e){var r,i,a=_s(n)?ju:Ru;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(n,e),o.on=i}}function gs(t,n){var e=this._id;return arguments.length<2?Hu(this.node(),e).on.on(t):this.each(ys(e,t,n))}function vs(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function ms(){return this.on("end.remove",vs(this._id))}function xs(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=_o(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,h=a[o]=new Array(f),l=0;f>l;++l)(u=c[l])&&(s=t.call(u,u.__data__,l,c))&&("__data__"in u&&(s.__data__=u.__data__),h[l]=s,Ou(h[l],n,e,l,h,Hu(u,e)));return new Ls(a,this._parents,n,e)}function bs(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=go(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,h=0;f>h;++h)if(s=c[h]){for(var l,d=t.call(s,s.__data__,h,c),p=Hu(s,e),_=0,y=d.length;y>_;++_)(l=d[_])&&Ou(l,n,e,_,d,p);a.push(d),o.push(s)}return new Ls(a,o,n,e)}function Ms(){return new Jy(this._groups,this._parents)}function ws(t,n){var e,r,i;return function(){var a=Xo(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 Ts(t){return function(){this.style.removeProperty(t)}}function As(t,n,e){var r,i;return function(){var a=Xo(this).getComputedStyle(this,null).getPropertyValue(t);return a===e?null:a===r?i:i=n(r=a,e)}}function ks(t,n,e){var r,i,a;return function(){var o=Xo(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 Ns(t,n,e){var r="transform"==(t+="")?ud:Vu;return null==n?this.styleTween(t,ws(t,r)).on("end.style."+t,Ts(t)):this.styleTween(t,"function"==typeof n?ks(t,r,Wu(this,"style."+t,n)):As(t,r,n),e)}function Ss(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 Cs(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,Ss(t,n,null==e?"":e))}function Es(t){return function(){this.textContent=t}}function Ps(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function Ds(t){return this.tween("text","function"==typeof t?Ps(Wu(this,"text",t)):Es(null==t?"":t+""))}function Fs(){for(var t=this._name,n=this._id,e=qs(),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=Hu(o,n);Ou(o,t,e,c,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Ls(r,this._parents,t,e)}function Ls(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function zs(t){return Fu().transition(t)}function qs(){return++Wy}function Us(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return $y.time=Fr(),$y;return e}function Os(t){var n,e;t instanceof Ls?(n=t._id,t=t._name):(n=qs(),(e=$y).time=Fr(),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])&&Ou(o,t,n,c,u,e||Us(o,n));return new Ls(r,this._parents,t,n)}function js(t,n){var e,r,i=t.__transition;if(i){n=null==n?null:n+"";for(r in i)if((e=i[r]).state>Hy&&e.name===n)return new Ls([[t]],Zy,n,+r)}return null}function Rs(t){return t}function Hs(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 Bs(t){var n=t.bandwidth()/2;return function(e){return t(e)+n}}function Is(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):Rs:a,h=Math.max(o,0)+s,l=t===Ky||t===tg?Hs:Ys,d=n.range(),p=d[0],_=d[d.length-1],y=(n.bandwidth?Bs:Rs)(n.copy()),g=e.selection?e.selection():e,v=g.selectAll(".domain").data([null]),m=g.selectAll(".tick").data(c,n).order(),x=m.exit(),b=m.enter().append("g",".domain").attr("class","tick"),M=m.select("line"),w=m.select("text");switch(v=v.merge(v.enter().append("path").attr("class","domain")),m=m.merge(b),M=M.merge(b.append("line")),w=w.merge(b.append("text")),e!==g&&(v=v.transition(e),m=m.transition(e),x=x.transition(e).style("opacity",eg).attr("transform",function(t){return l(y,this.parentNode.__axis||y,t)}),b.style("opacity",eg).attr("transform",function(t){return l(this.parentNode.__axis||y,y,t)}),M=M.transition(e),w=w.transition(e)),m.style("opacity",1).attr("transform",function(t){return l(y,y,t)}),x.remove(),w.text(f),t){case Ky:v.attr("d","M"+p+","+-u+"V0H"+_+"V"+-u),M.attr("x2",0).attr("y2",-o),w.attr("x",0).attr("y",-h).attr("dy","0em").style("text-anchor","middle");break;case Qy:v.attr("d","M"+u+","+p+"H0V"+_+"H"+u),M.attr("y2",0).attr("x2",o),w.attr("y",0).attr("x",h).attr("dy",".32em").style("text-anchor","start");break;case tg:v.attr("d","M"+p+","+u+"V0H"+_+"V"+u),M.attr("x2",0).attr("y2",o),w.attr("x",0).attr("y",h).attr("dy",".71em").style("text-anchor","middle");break;case ng:v.attr("d","M"+-u+","+p+"H0V"+_+"H"+-u),M.attr("y2",0).attr("x2",-o),w.attr("y",0).attr("x",-h).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=Gy.call(arguments),e},e.tickArguments=function(t){return arguments.length?(r=null==t?[]:Gy.call(t),e):r.slice()},e.tickValues=function(t){return arguments.length?(i=null==t?null:Gy.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 Xs(t){return Is(Ky,t)}function Js(t){return Is(Qy,t)}function Ws(t){return Is(tg,t)}function Vs(t){return Is(ng,t)}function $s(t,n){return t.parent===n.parent?1:2}function Zs(t){return t.reduce(Gs,0)/t.length}function Gs(t,n){return t+n.x}function Ks(t){return 1+t.reduce(Qs,0)}function Qs(t,n){return Math.max(t,n.y)}function tc(t){for(var n;n=t.children;)t=n[0];return t}function nc(t){for(var n;n=t.children;)t=n[n.length-1];return t}function ec(){function t(t){var a,o=0;t.eachAfter(function(t){var e=t.children;e?(t.x=Zs(e),t.y=Ks(e)):(t.x=a?o+=n(t,a):0,t.y=0,a=t)});var u=tc(t),s=nc(t),c=u.x-n(u,s)/2,f=s.x+n(s,u)/2;return t.eachAfter(i?function(n){n.x=(n.x-t.x)*e,n.y=(t.y-n.y)*r}:function(n){n.x=(n.x-c)/(f-c)*e,n.y=(1-(t.y?n.y/t.y:1))*r})}var n=$s,e=1,r=1,i=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(n){return arguments.length?(i=!1,e=+n[0],r=+n[1],t):i?null:[e,r]},t.nodeSize=function(n){return arguments.length?(i=!0,e=+n[0],r=+n[1],t):i?[e,r]:null},t}function rc(t){var n,e,r,i,a=this,o=[a];do for(n=o.reverse(),o=[];a=n.pop();)if(t(a),e=a.children)for(r=0,i=e.length;i>r;++r)o.push(e[r]);while(o.length);return this}function ic(t){for(var n,e,r=this,i=[r];r=i.pop();)if(t(r),n=r.children)for(e=n.length-1;e>=0;--e)i.push(n[e]);return this}function ac(t){for(var n,e,r,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),n=i.children)for(e=0,r=n.length;r>e;++e)a.push(n[e]);for(;i=o.pop();)t(i);return this}function oc(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})}function uc(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})}function sc(t){for(var n=this,e=cc(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r}function cc(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}function fc(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n}function hc(){var t=[];return this.each(function(n){t.push(n)}),t}function lc(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t}function dc(t,n){var e,r,i,a,o,u=new vc(t),s=+t.value&&(u.value=t.value),c=[u];for(null==n&&(n=_c);e=c.pop();)if(s&&(e.value=+e.data.value),(i=n(e.data))&&(o=i.length))for(e.children=new Array(o),a=o-1;a>=0;--a)c.push(r=e.children[a]=new vc(i[a])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(gc)}function pc(){return dc(this).eachBefore(yc)}function _c(t){return t.children}function yc(t){t.data=t.data.data}function gc(t){var n=0;do t.height=n;while((t=t.parent)&&t.height<++n)}function vc(t){this.data=t,this.depth=this.height=0,this.parent=null}function mc(t){this._=t,this.next=null}function xc(t){for(var n,e=(t=t.slice()).length,r=null,i=r;e;){var a=new mc(t[e-1]);i=i?i.next=a:r=a,t[n]=t[--e]}return{head:r,tail:i}}function bc(t){return wc(xc(t),[])}function Mc(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r-n.r;return i*i+1e-6>e*e+r*r}function wc(t,n){var e,r,i,a=null,o=t.head;switch(n.length){case 1:e=Tc(n[0]);break;case 2:e=Ac(n[0],n[1]);break;case 3:e=kc(n[0],n[1],n[2])}for(;o;)i=o._,r=o.next,e&&Mc(e,i)?a=o:(a?(t.tail=a,a.next=null):t.head=t.tail=null,n.push(i),e=wc(t,n),n.pop(),t.head?(o.next=t.head,t.head=o):(o.next=null,t.head=t.tail=o),a=t.tail,a.next=r),o=r;return t.tail=a,e}function Tc(t){return{x:t.x,y:t.y,r:t.r}}function Ac(t,n){var e=t.x,r=t.y,i=t.r,a=n.x,o=n.y,u=n.r,s=a-e,c=o-r,f=u-i,h=Math.sqrt(s*s+c*c);return{x:(e+a+s/h*f)/2,y:(r+o+c/h*f)/2,r:(h+i+u)/2}}function kc(t,n,e){var r=t.x,i=t.y,a=t.r,o=n.x,u=n.y,s=n.r,c=e.x,f=e.y,h=e.r,l=2*(r-o),d=2*(i-u),p=2*(s-a),_=r*r+i*i-a*a-o*o-u*u+s*s,y=2*(r-c),g=2*(i-f),v=2*(h-a),m=r*r+i*i-a*a-c*c-f*f+h*h,x=y*d-l*g,b=(d*m-g*_)/x-r,M=(g*p-d*v)/x,w=(y*_-l*m)/x-i,T=(l*v-y*p)/x,A=M*M+T*T-1,k=2*(b*M+w*T+a),N=b*b+w*w-a*a,S=(-k-Math.sqrt(k*k-4*A*N))/(2*A);return{x:b+M*S+r,y:w+T*S+i,r:S}}function Nc(t,n,e){var r=t.x,i=t.y,a=n.r+e.r,o=t.r+e.r,u=n.x-r,s=n.y-i,c=u*u+s*s;if(c){var f=.5+((o*=o)-(a*=a))/(2*c),h=Math.sqrt(Math.max(0,2*a*(o+c)-(o-=c)*o-a*a))/(2*c);e.x=r+f*u+h*s,e.y=i+f*s-h*u}else e.x=r+o,e.y=i}function Sc(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return i*i>e*e+r*r}function Cc(t,n,e){var r=t.x-n,i=t.y-e;return r*r+i*i}function Ec(t){this._=t,this.next=null,this.previous=null}function Pc(t){if(!(i=t.length))return 0;var n,e,r,i;if(n=t[0],n.x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Nc(e,n,r=t[2]);var a,o,u,s,c,f,h,l=n.r*n.r,d=e.r*e.r,p=r.r*r.r,_=l+d+p,y=l*n.x+d*e.x+p*r.x,g=l*n.y+d*e.y+p*r.y;n=new Ec(n),e=new Ec(e),r=new Ec(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(u=3;i>u;++u){if(Nc(n._,e._,r=t[u]),r=new Ec(r),(c=n.previous)===(s=e.next)){if(Sc(s._,r._)){n=e,e=s,--u;continue t}}else{f=s._.r,h=c._.r;do if(h>=f){if(Sc(s._,r._)){e=s,n.next=e,e.previous=n,--u;continue t}s=s.next,f+=s._.r}else{if(Sc(c._,r._)){n=c,n.next=e,e.previous=n,--u;continue t}c=c.previous,h+=c._.r}while(s!==c.next)}for(r.previous=n,r.next=e,n.next=e.previous=e=r,_+=p=r._.r*r._.r,y+=p*r._.x,g+=p*r._.y,l=Cc(n._,a=y/_,o=g/_);(r=r.next)!==e;)(p=Cc(r._,a,o))<l&&(n=r,l=p);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=bc(n),u=0;i>u;++u)n=t[u],n.x-=r.x,n.y-=r.y;return r.r}function Dc(t){return Pc(t),t}function Fc(t){return null==t?null:Lc(t)}function Lc(t){if("function"!=typeof t)throw new Error;return t}function zc(){return 0}function qc(t){return function(){return t}}function Uc(t){return Math.sqrt(t.value)}function Oc(){function t(t){return t.x=e/2,t.y=r/2,n?t.eachBefore(jc(n)).eachAfter(Rc(i,.5)).eachBefore(Hc(1)):t.eachBefore(jc(Uc)).eachAfter(Rc(zc,1)).eachAfter(Rc(i,t.r/Math.min(e,r))).eachBefore(Hc(Math.min(e,r)/(2*t.r))),t}var n=null,e=1,r=1,i=zc;return t.radius=function(e){return arguments.length?(n=Fc(e),t):n},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i="function"==typeof n?n:qc(+n),t):i},t}function jc(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function Rc(t,n){return function(e){if(r=e.children){var r,i,a,o=r.length,u=t(e)*n||0;if(u)for(i=0;o>i;++i)r[i].r+=u;if(a=Pc(r),u)for(i=0;o>i;++i)r[i].r-=u;e.r=a+u}}}function Hc(t){return function(n){var e=n.parent;n.r*=t,e&&(n.x=e.x+t*n.x,n.y=e.y+t*n.y)}}function Yc(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Bc(t,n,e,r,i){for(var a,o=t.children,u=-1,s=o.length,c=t.value&&(r-n)/t.value;++u<s;)a=o[u],a.y0=e,a.y1=i,a.x0=n,a.x1=n+=a.value*c}function Ic(){function t(t){var o=t.height+1;return t.x0=t.y0=i,t.x1=e,t.y1=r/o,t.eachBefore(n(r,o)),a&&t.eachBefore(Yc),t}function n(t,n){return function(e){e.children&&Bc(e,e.x0,t*(e.depth+1)/n,e.x1,t*(e.depth+2)/n);var r=e.x0,a=e.y0,o=e.x1-i,u=e.y1-i;r>o&&(r=o=(r+o)/2),a>u&&(a=u=(a+u)/2),e.x0=r,e.y0=a,e.x1=o,e.y1=u}}var e=1,r=1,i=0,a=!1;return t.round=function(n){return arguments.length?(a=!!n,t):a},t.size=function(n){return arguments.length?(e=+n[0],r=+n[1],t):[e,r]},t.padding=function(n){return arguments.length?(i=+n,t):i},t}function Xc(t){return t.id}function Jc(t){return t.parentId}function Wc(){function t(t){var r,i,a,o,u,s,c,f=t.length,h=new Array(f),l={};for(i=0;f>i;++i)r=t[i],u=h[i]=new vc(r),null!=(s=n(r,i,t))&&(s+="")&&(c=rg+(u.id=s),l[c]=c in l?ag:u);for(i=0;f>i;++i)if(u=h[i],s=e(t[i],i,t),null!=s&&(s+="")){if(o=l[rg+s],!o)throw new Error("missing: "+s);if(o===ag)throw new Error("ambiguous: "+s);o.children?o.children.push(u):o.children=[u],u.parent=o}else{if(a)throw new Error("multiple roots");a=u}if(!a)throw new Error("no root");if(a.parent=ig,a.eachBefore(function(t){t.depth=t.parent.depth+1,--f}).eachBefore(gc),a.parent=null,f>0)throw new Error("cycle");return a}var n=Xc,e=Jc;return t.id=function(e){return arguments.length?(n=Lc(e),t):n},t.parentId=function(n){return arguments.length?(e=Lc(n),t):e},t}function Vc(t,n){return t.parent===n.parent?1:2}function $c(t){var n=t.children;return n?n[0]:t.t}function Zc(t){var n=t.children;return n?n[n.length-1]:t.t}function Gc(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Kc(t){for(var n,e=0,r=0,i=t.children,a=i.length;--a>=0;)n=i[a],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Qc(t,n,e){return t.a.parent===n.parent?t.a:e}function tf(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function nf(t){for(var n,e,r,i,a,o=new tf(t,0),u=[o];n=u.pop();)if(r=n._.children)for(n.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(e=n.children[i]=new tf(r[i],i)),e.parent=n;return(o.parent=new tf(null,0)).children=[o],o}function ef(){function t(t){var r=nf(t);if(r.eachAfter(n),r.parent.m=-r.z,r.eachBefore(e),s)t.eachBefore(i);else{var c=t,f=t,h=t;t.eachBefore(function(t){t.x<c.x&&(c=t),t.x>f.x&&(f=t),t.depth>h.depth&&(h=t)});var l=c===f?1:a(c,f)/2,d=l-c.x,p=o/(f.x+l+d),_=u/(h.depth||1);t.eachBefore(function(t){t.x=(t.x+d)*p,t.y=t.depth*_})}return t}function n(t){var n=t.children,e=t.parent.children,i=t.i?e[t.i-1]:null;if(n){Kc(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+a(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+a(t._,i._));t.parent.A=r(t,i,t.parent.A||e[0])}function e(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function r(t,n,e){if(n){for(var r,i=t,o=t,u=n,s=i.parent.children[0],c=i.m,f=o.m,h=u.m,l=s.m;u=Zc(u),i=$c(i),u&&i;)s=$c(s),o=Zc(o),o.a=t,r=u.z+h-i.z-c+a(u._,i._),r>0&&(Gc(Qc(u,t,e),t,r),c+=r,f+=r),h+=u.m,c+=i.m,l+=s.m,f+=o.m;u&&!Zc(o)&&(o.t=u,o.m+=h-f),i&&!$c(s)&&(s.t=i,s.m+=c-l,e=t)}return e}function i(t){t.x*=o,t.y=t.depth*u}var a=Vc,o=1,u=1,s=null;return t.separation=function(n){return arguments.length?(a=n,t):a},t.size=function(n){return arguments.length?(s=!1,o=+n[0],u=+n[1],t):s?null:[o,u]},t.nodeSize=function(n){return arguments.length?(s=!0,o=+n[0],u=+n[1],t):s?[o,u]:null},t}function rf(t,n,e,r,i){for(var a,o=t.children,u=-1,s=o.length,c=t.value&&(i-e)/t.value;++u<s;)a=o[u],a.x0=n,a.x1=r,a.y0=e,a.y1=e+=a.value*c}function af(t,n,e,r,i){for(var a,o,u,s,c=t._squarify,f=-1,h=c.length,l=t.value;++f<h;){for(a=c[f],o=a.children,u=a.value=0,s=o.length;s>u;++u)a.value+=o[u].value;a.dice?Bc(a,n,e,r,e+=(i-e)*a.value/l):rf(a,n,e,n+=(r-n)*a.value/l,i),l-=a.value}}function of(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=a,t.eachBefore(n),o=[0],r&&t.eachBefore(Yc),t}function n(t){var n=o[t.depth],r=t.x0+n,i=t.y0+n,a=t.x1-n,l=t.y1-n;r>a&&(r=a=(r+a)/2),i>l&&(i=l=(i+l)/2),t.x0=r,t.y0=i,t.x1=a,t.y1=l,t.children&&(n=o[t.depth+1]=u(t)/2,r+=h(t)-n,i+=s(t)-n,a-=c(t)-n,l-=f(t)-n,r>a&&(r=a=(r+a)/2),i>l&&(i=l=(i+l)/2),e(t,r,i,a,l))}var e=og,r=!1,i=1,a=1,o=[0],u=zc,s=zc,c=zc,f=zc,h=zc;return t.round=function(n){return arguments.length?(r=!!n,t):r},t.size=function(n){return arguments.length?(i=+n[0],a=+n[1],t):[i,a]},t.tile=function(n){return arguments.length?(e=Lc(n),t):e},t.padding=function(n){return arguments.length?t.paddingInner(n).paddingOuter(n):t.paddingInner()},t.paddingInner=function(n){return arguments.length?(u="function"==typeof n?n:qc(+n),t):u},t.paddingOuter=function(n){return arguments.length?t.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n):t.paddingTop()},t.paddingTop=function(n){return arguments.length?(s="function"==typeof n?n:qc(+n),t):s},t.paddingRight=function(n){return arguments.length?(c="function"==typeof n?n:qc(+n),t):c},t.paddingBottom=function(n){return arguments.length?(f="function"==typeof n?n:qc(+n),t):f},t.paddingLeft=function(n){return arguments.length?(h="function"==typeof n?n:qc(+n),t):h},t}function uf(t,n,e,r,i){var a=t.children;sf(a,0,a.length,t.value,n,e,r,i)}function sf(t,n,e,r,i,a,o,u){if(n>=e-1)return t=t[n],t.x0=i,t.y0=a,t.x1=o,t.y1=u,void 0;var s=n,c=r/2,f=0;do f+=t[s].value;while(++s<e-1&&c>f);var h=r-f;if(u-a>o-i){var l=(a*h+u*f)/r;sf(t,n,s,f,i,a,o,l),sf(t,s,e,h,i,l,o,u)}else{var d=(i*h+o*f)/r;sf(t,n,s,f,i,a,d,u),sf(t,s,e,h,d,a,o,u)}}function cf(t,n,e,r,i){(1&t.depth?rf:Bc)(t,n,e,r,i)}function ff(t,n){function e(){var e,i,a=r.length,o=0,u=0;for(e=0;a>e;++e)i=r[e],o+=i.x,u+=i.y;for(o=o/a-t,u=u/a-n,e=0;a>e;++e)i=r[e],i.x-=o,i.y-=u}var r;return null==t&&(t=0),null==n&&(n=0),e.initialize=function(t){r=t},e.x=function(n){return arguments.length?(t=+n,e):t},e.y=function(t){return arguments.length?(n=+t,e):n},e}function hf(t){
return function(){return t}}function lf(){return 1e-6*(Math.random()-.5)}function df(t){return t.x+t.vx}function pf(t){return t.y+t.vy}function _f(t){function n(){function t(t,e,i,a,o){if(e>_||d>a||i>y||p>o)return!0;if(!t.length){var u=s-t.data.x-t.data.vx||lf(),f=c-t.data.y-t.data.vy||lf(),g=u*u+f*f,v=r[n]+r[t.data.index];v*v>g&&(g=Math.sqrt(g),g=(v-g)/g,h+=u*g,l+=f*g)}}for(var n,u,s,c,f,h,l,d,p,_,y,g=e.length,v=It(e,df,pf),m=0;o>m;++m)for(n=0;g>n;++n)u=e[n],f=r[n]+i,h=l=0,s=u.x+u.vx,d=s-f,_=s+f,c=u.y+u.vy,p=c-f,y=c+f,v.remove(u).visit(t),u.vx+=h*a,u.vy+=l*a,v.add(u)}var e,r,i,a=.7,o=1;return"function"!=typeof t&&(t=hf(null==t?1:+t)),n.initialize=function(n){var a,o,u=(e=n).length;for(r=new Array(u),i=0,a=0;u>a;++a)(r[a]=o=+t(e[a],a,e))>i&&(i=o)},n.iterations=function(t){return arguments.length?(o=+t,n):o},n.strength=function(t){return arguments.length?(a=+t,n):a},n.radius=function(e){return arguments.length?(t="function"==typeof e?e:hf(+e),n):t},n}function yf(t,n){return n}function gf(t){function n(n){for(var e=0,r=t.length;l>e;++e)for(var i,u,c,f,h,d,p,_=0;r>_;++_)i=t[_],u=i.source,c=i.target,f=c.x+c.vx-u.x-u.vx||lf(),h=c.y+c.vy-u.y-u.vy||lf(),d=Math.sqrt(f*f+h*h),d=(d-o[_])/d*n*a[_],f*=d,h*=d,c.vx-=f*(p=s[_]),c.vy-=h*p,u.vx+=f*(p=1-p),u.vy+=h*p}function e(){if(u){var n,e,f=u.length,h=t.length,l=new Array(f),d=L(u,c);for(n=0;f>n;++n)l[n]=0;for(n=0,s=new Array(h);h>n;++n)e=t[n],e.index=n,"object"!=typeof e.source&&(e.source=d.get(e.source)),"object"!=typeof e.target&&(e.target=d.get(e.target)),++l[e.source.index],++l[e.target.index];for(n=0;h>n;++n)e=t[n],s[n]=l[e.source.index]/(l[e.source.index]+l[e.target.index]);a=new Array(h),r(),o=new Array(h),i()}}function r(){if(u)for(var n=0,e=t.length;e>n;++n)a[n]=+f(t[n])}function i(){if(u)for(var n=0,e=t.length;e>n;++n)o[n]=+h(t[n])}var a,o,u,s,c=yf,f=hf(.7),h=hf(30),l=1;return null==t&&(t=[]),n.initialize=function(t){u=t,e()},n.links=function(r){return arguments.length?(t=r,e(),n):t},n.id=function(t){return arguments.length?(c=t,n):c},n.iterations=function(t){return arguments.length?(l=+t,n):l},n.strength=function(t){return arguments.length?(f="function"==typeof t?t:hf(+t),r(),n):f},n.distance=function(t){return arguments.length?(h="function"==typeof t?t:hf(+t),i(),n):h},n}function vf(t){return t.x}function mf(t){return t.y}function xf(t){function n(){return s=0,d.restart(r),u}function e(){return d.stop(),u}function r(){var t=i();p.call("tick",u),t&&(d.stop(),p.call("end",u))}function i(){var n=Math.exp(++s*f);l.each(function(t){t(n)});for(var e,r=0,i=t.length;i>r;++r)e=t[r],e.x+=e.vx*=h,e.y+=e.vy*=h;return c>n}function a(){for(var n,e=0,r=t.length;r>e;++e){if(n=t[e],n.index=e,isNaN(n.x)||isNaN(n.y)){var i=ug*Math.sqrt(e),a=e*sg;n.x=i*Math.cos(a),n.y=i*Math.sin(a)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function o(n){return n.initialize&&n.initialize(t),n}var u,s=0,c=.001,f=-.02,h=.6,l=L(),d=qr(r),p=vr("tick","end");return null==t&&(t=[]),a(),u={restart:n,stop:e,tick:i,nodes:function(n){return arguments.length?(t=n,a(),l.each(o),u):t},alphaMin:function(t){return arguments.length?(c=t,u):c},alphaDecay:function(t){return arguments.length?(s=+t?Math.round(s*f/-t):0,f=-t,u):-f},drag:function(t){return arguments.length?(h=1-t,u):1-h},force:function(t,n){return arguments.length>1?(null==n?l.remove(t):l.set(t,o(n)),u):l.get(t)},on:function(t,n){return arguments.length>1?(p.on(t,n),u):p.on(t)}}}function bf(){function t(t){var n,u=i.length,s=It(i,vf,mf).visitAfter(e);for(o=t,n=0;u>n;++n)a=i[n],s.visit(r)}function n(){if(i){var t,n=i.length;for(u=new Array(n),t=0;n>t;++t)u[t]=+s(i[t],t,i)}}function e(t){var n,e,r,i,a,o=0;if(t.length){for(r=i=a=0;4>a;++a)(n=t[a])&&(e=n.value)&&(o+=e,r+=e*n.x,i+=e*n.y);t.x=r/o,t.y=i/o}else{n=t,n.x=n.data.x,n.y=n.data.y;do o+=u[n.data.index];while(n=n.next)}t.value=o}function r(t,n,e,r){if(!t.value)return!0;var i=t.x-a.x,s=t.y-a.y,l=r-n,d=i*i+s*s;if(d>l*l/h)return f>d&&(0===i&&(i=lf(),d+=i*i),0===s&&(s=lf(),d+=s*s),c>d&&(d=Math.sqrt(c*d)),a.vx+=i*t.value*o/d,a.vy+=s*t.value*o/d),!0;if(!(t.length||d>=f)){(t.data!==a||t.next)&&(0===i&&(i=lf(),d+=i*i),0===s&&(s=lf(),d+=s*s),c>d&&(d=Math.sqrt(c*d)));do t.data!==a&&(l=u[t.data.index]*o/d,a.vx+=i*l,a.vy+=s*l);while(t=t.next)}}var i,a,o,u,s=hf(-100),c=1,f=1/0,h=.81;return t.initialize=function(t){i=t,n()},t.strength=function(e){return arguments.length?(s="function"==typeof e?e:hf(+e),n(),t):s},t.distanceMin=function(n){return arguments.length?(c=n*n,t):Math.sqrt(c)},t.distanceMax=function(n){return arguments.length?(f=n*n,t):Math.sqrt(f)},t.theta=function(n){return arguments.length?(h=n*n,t):Math.sqrt(h)},t}function Mf(t){function n(t){for(var n,e=0,o=r.length;o>e;++e)n=r[e],n.vx+=(a[e]-n.x)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),a=new Array(e),n=0;e>n;++n)i[n]=+o(r[n],n,r),a[n]=+t(r[n],n,r)}}var r,i,a,o=hf(.1);return"function"!=typeof t&&(t=hf(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(o="function"==typeof t?t:hf(+t),e(),n):o},n.x=function(r){return arguments.length?(t="function"==typeof r?r:hf(+r),e(),n):t},n}function wf(t){function n(t){for(var n,e=0,o=r.length;o>e;++e)n=r[e],n.vy+=(a[e]-n.y)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),a=new Array(e),n=0;e>n;++n)i[n]=+o(r[n],n,r),a[n]=+t(r[n],n,r)}}var r,i,a,o=hf(.1);return"function"!=typeof t&&(t=hf(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(o="function"==typeof t?t:hf(+t),e(),n):o},n.y=function(r){return arguments.length?(t="function"==typeof r?r:hf(+r),e(),n):t},n}function Tf(t){return function(){return t}}function Af(t){return t[0]}function kf(t){return t[1]}function Nf(){this._=null}function Sf(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Cf(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 Ef(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 Pf(t){for(;t.L;)t=t.L;return t}function Df(t,n,e,r){var i=[null,null],a=dg.push(i)-1;return i.left=t,i.right=n,e&&Lf(i,t,n,e),r&&Lf(i,n,t,r),hg[t.index].halfedges.push(a),hg[n.index].halfedges.push(a),i}function Ff(t,n,e){var r=[n,e];return r.left=t,r}function Lf(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 zf(t,n,e,r,i){var a,o,u=t[0],s=t[1],c=u[0],f=u[1],h=s[0],l=s[1],d=0,p=1,_=h-c,y=l-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 qf(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,h=c[0],l=c[1],d=f[0],p=f[1],_=(h+d)/2,y=(l+p)/2;if(p===l){if(n>_||_>=r)return;if(h>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=(h-d)/(p-l),u=y-o*_,-1>o||o>1)if(h>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>l){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 Uf(t,n,e,r){for(var i,a=dg.length,o=new Array(a);a--;)(i=qf(dg[a],t,n,e,r))&&(i=zf(i,t,n,e,r))&&(Math.abs(i[0][0]-i[1][0])>yg||Math.abs(i[0][1]-i[1][1])>yg)&&(o[a]=i);return o}function Of(t){return hg[t.index]={site:t,halfedges:[]}}function jf(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 Rf(t,n){return n[+(n.left!==t.site)]}function Hf(t,n){return n[+(n.left===t.site)]}function Yf(){for(var t,n,e,r,i=0,a=hg.length;a>i;++i)if((t=hg[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]=jf(t,dg[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 Bf(t,n,e,r,i){for(var a,o,u,s,c,f,h,l,d,p,_=hg.length;_--;)if(a=hg[_]){for(u=a.halfedges,o=u.length;o--;)t[u[o]]||u.splice(o,1);for(o=0,s=u.length;s>o;)l=Hf(a,t[u[o]]),d=l[0],p=l[1],c=Rf(a,t[u[++o%s]]),f=c[0],h=c[1],(Math.abs(d-f)>yg||Math.abs(p-h)>yg)&&(u.splice(o,0,t.push(Ff(a.site,l,Math.abs(d-n)<yg&&i-p>yg?[n,Math.abs(f-n)<yg?h:i]:Math.abs(p-i)<yg&&r-d>yg?[Math.abs(h-i)<yg?f:r,i]:Math.abs(d-r)<yg&&p-e>yg?[r,Math.abs(f-r)<yg?h:e]:Math.abs(p-e)<yg&&d-n>yg?[Math.abs(h-e)<yg?f:n,e]:null))-1),++s)}}function If(){Sf(this),this.x=this.y=this.arc=this.site=this.cy=null}function Xf(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,h=a[1]-u,l=2*(s*h-c*f);if(!(l>=-gg)){var d=s*s+c*c,p=f*f+h*h,_=(h*d-c*p)/l,y=(s*p-f*d)/l,g=pg.pop()||new If;g.arc=t,g.site=i,g.x=_+o,g.y=(g.cy=y+u)+Math.sqrt(_*_+y*y),t.circle=g;for(var v=null,m=lg._;m;)if(g.y<m.y||g.y===m.y&&g.x<=m.x){if(!m.L){v=m.P;break}m=m.L}else{if(!m.R){v=m;break}m=m.R}lg.insert(v,g),v||(cg=g)}}}}function Jf(t){var n=t.circle;n&&(n.P||(cg=n.N),lg.remove(n),pg.push(n),Sf(n),t.circle=null)}function Wf(){Sf(this),this.edge=this.site=this.circle=null}function Vf(t){var n=_g.pop()||new Wf;return n.site=t,n}function $f(t){Jf(t),fg.remove(t),_g.push(t),Sf(t)}function Zf(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],a=t.P,o=t.N,u=[t];$f(t);for(var s=a;s.circle&&Math.abs(e-s.circle.x)<yg&&Math.abs(r-s.circle.cy)<yg;)a=s.P,u.unshift(s),$f(s),s=a;u.unshift(s),Jf(s);for(var c=o;c.circle&&Math.abs(e-c.circle.x)<yg&&Math.abs(r-c.circle.cy)<yg;)o=c.N,u.push(c),$f(c),c=o;u.push(c),Jf(c);var f,h=u.length;for(f=1;h>f;++f)c=u[f],s=u[f-1],Lf(c.edge,s.site,c.site,i);s=u[0],c=u[h-1],c.edge=Df(s.site,c.site,null,i),Xf(s),Xf(c)}function Gf(t){for(var n,e,r,i,a=t[0],o=t[1],u=fg._;u;)if(r=Kf(u,o)-a,r>yg)u=u.L;else{if(i=a-Qf(u,o),!(i>yg)){r>-yg?(n=u.P,e=u):i>-yg?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}Of(t);var s=Vf(t);if(fg.insert(n,s),n||e){if(n===e)return Jf(n),e=Vf(n.site),fg.insert(s,e),s.edge=e.edge=Df(n.site,s.site),Xf(n),void Xf(e);if(!e)return void(s.edge=Df(n.site,s.site));Jf(n),Jf(e);var c=n.site,f=c[0],h=c[1],l=t[0]-f,d=t[1]-h,p=e.site,_=p[0]-f,y=p[1]-h,g=2*(l*y-d*_),v=l*l+d*d,m=_*_+y*y,x={x:(y*v-d*m)/g+f,y:(l*m-_*v)/g+h};Lf(e.edge,c,p,x),s.edge=Df(c,t,null,x),e.edge=Df(t,p,null,x),Xf(n),Xf(e)}}function Kf(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,h=1/a-1/c,l=f/c;return h?(-l+Math.sqrt(l*l-2*h*(f*f/(-2*c)-s+c/2+i-a/2)))/h+r:(r+u)/2}function Qf(t,n){var e=t.N;if(e)return Kf(e,n);var r=t.site;return r[1]===n?r[0]:1/0}function th(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function nh(t,n){return n[1]-t[1]||n[0]-t[0]}function eh(t,n){var e,r,i,a=t.sort(nh).pop();for(dg=[],hg=new Array(t.length),fg=new Nf,lg=new Nf;;)if(i=cg,a&&(!i||a[1]<i.y||a[1]===i.y&&a[0]<i.x))a[0]===e&&a[1]===r||(Gf(a),e=a[0],r=a[1]),a=t.pop();else{if(!i)break;Zf(i.arc)}if(Yf(),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=Uf(o,u,s,c),Bf(this.cellEdges,o,u,s,c)}else this.cellEdges=dg;this.cells=hg,this.edges=dg,fg=lg=dg=hg=null}function rh(){function t(t){return new eh(t.map(function(r,i){var a=[Math.round(n(r,i,t)/yg)*yg,Math.round(e(r,i,t)/yg)*yg];return a.index=i,a.data=r,a}),r)}var n=Af,e=kf,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:Tf(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:Tf(+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 ih="4.0.0-alpha.35",ah=e(n),oh=ah.right,uh=ah.left,sh=Math.sqrt(50),ch=Math.sqrt(10),fh=Math.sqrt(2),hh="$";F.prototype=L.prototype={constructor:F,has:function(t){return hh+t in this},get:function(t){return this[hh+t]},set:function(t,n){return this[hh+t]=n,this},remove:function(t){var n=hh+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===hh&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===hh&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===hh&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===hh&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===hh&&++t;return t},empty:function(){for(var t in this)if(t[0]===hh)return!1;return!0},each:function(t){for(var n in this)n[0]===hh&&t(this[n],n.slice(1),this)}};var lh=L.prototype;R.prototype=H.prototype={constructor:R,has:lh.has,add:function(t){return t+="",this[hh+t]=t,this},remove:lh.remove,clear:lh.clear,values:lh.keys,size:lh.size,empty:lh.empty,each:lh.each};var dh=3,ph=function vg(t){function n(n){return Math.pow(n,t)}return t=+t,n.exponent=vg,n}(dh),_h=function mg(t){function n(n){return 1-Math.pow(1-n,t)}return t=+t,n.exponent=mg,n}(dh),yh=function xg(t){function n(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return t=+t,n.exponent=xg,n}(dh),gh=Math.PI,vh=gh/2,mh=4/11,xh=6/11,bh=8/11,Mh=.75,wh=9/11,Th=10/11,Ah=.9375,kh=21/22,Nh=63/64,Sh=1/mh/mh,Ch=1.70158,Eh=function bg(t){function n(n){return n*n*((t+1)*n-t)}return t=+t,n.overshoot=bg,n}(Ch),Ph=function Mg(t){function n(n){return--n*n*((t+1)*n+t)+1}return t=+t,n.overshoot=Mg,n}(Ch),Dh=function wg(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=wg,n}(Ch),Fh=2*Math.PI,Lh=1,zh=.3,qh=function Tg(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/=Fh);return e.amplitude=function(t){return Tg(t,n*Fh)},e.period=function(n){return Tg(t,n)},e}(Lh,zh),Uh=function Ag(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/=Fh);return e.amplitude=function(t){return Ag(t,n*Fh)},e.period=function(n){return Ag(t,n)},e}(Lh,zh),Oh=function kg(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/=Fh);return e.amplitude=function(t){return kg(t,n*Fh)},e.period=function(n){return kg(t,n)},e}(Lh,zh),jh=Math.PI,Rh=2*jh,Hh=1e-6,Yh=Rh-Hh;Tt.prototype=At.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,h=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(h>Hh)if(Math.abs(f*u-s*c)>Hh&&i){var l=e-a,d=r-o,p=u*u+s*s,_=l*l+d*d,y=Math.sqrt(p),g=Math.sqrt(h),v=i*Math.tan((jh-Math.acos((p+h-_)/(2*y*g)))/2),m=v/g,x=v/y;Math.abs(m-1)>Hh&&this._.push("L",t+m*c,",",n+m*f),this._.push("A",i,",",i,",0,0,",+(f*l>c*d),",",this._x1=t+x*u,",",this._y1=n+x*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,h=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)>Hh||Math.abs(this._y1-c)>Hh)&&this._.push("L",s,",",c),e&&(h>Yh?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>h&&(h=h%Rh+Rh),this._.push("A",e,",",e,",0,",+(h>=jh),",",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 Bh=It.prototype=Xt.prototype;Bh.copy=function(){var t,n,e=new Xt(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=Jt(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;4>i;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Jt(n));return e},Bh.add=kt,Bh.addAll=St,Bh.cover=Ct,Bh.data=Et,Bh.extent=Pt,Bh.find=Ft,Bh.remove=Lt,Bh.removeAll=zt,Bh.root=qt,Bh.size=Ut,Bh.visit=Ot,Bh.visitAfter=jt,Bh.x=Ht,Bh.y=Bt;var Ih=[].slice,Xh={};Wt.prototype=Qt.prototype={constructor:Wt,defer:function(t){if("function"!=typeof t||this._call)throw new Error;if(null!=this._error)return this;var n=Ih.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),Vt(this),this},abort:function(){return null==this._error&&Gt(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))},Kt(this),this},awaitAll:function(t){if("function"!=typeof t||this._call)throw new Error;return this._call=t,Kt(this),this}};var Jh=1e-12,Wh=Math.PI,Vh=Wh/2,$h=2*Wh;hn.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)}}},xn.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var Zh={draw:function(t,n){var e=Math.sqrt(n/Wh);t.moveTo(e,0),t.arc(0,0,e,0,$h)}},Gh={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()}},Kh=Math.sqrt(1/3),Qh=2*Kh,tl={draw:function(t,n){var e=Math.sqrt(n/Qh),r=e*Kh;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},nl=.8908130915292852,el=Math.sin(Wh/10)/Math.sin(7*Wh/10),rl=Math.sin($h/10)*el,il=-Math.cos($h/10)*el,al={draw:function(t,n){var e=Math.sqrt(n*nl),r=rl*e,i=il*e;t.moveTo(0,-e),t.lineTo(r,i);for(var a=1;5>a;++a){var o=$h*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()}},ol={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},ul=Math.sqrt(3),sl={draw:function(t,n){var e=-Math.sqrt(n/(3*ul));t.moveTo(0,2*e),t.lineTo(-ul*e,-e),t.lineTo(ul*e,-e),t.closePath()}},cl=-.5,fl=Math.sqrt(3)/2,hl=1/Math.sqrt(12),ll=3*(hl/2+1),dl={draw:function(t,n){var e=Math.sqrt(n/ll),r=e/2,i=e*hl,a=r,o=e*hl+e,u=-a,s=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,s),t.lineTo(cl*r-fl*i,fl*r+cl*i),t.lineTo(cl*a-fl*o,fl*a+cl*o),t.lineTo(cl*u-fl*s,fl*u+cl*s),t.lineTo(cl*r+fl*i,cl*i-fl*r),t.lineTo(cl*a+fl*o,cl*o-fl*a),t.lineTo(cl*u+fl*s,cl*s-fl*u),t.closePath()}},pl=[Zh,Gh,tl,ol,al,sl,dl];Nn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:kn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:kn(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Cn.prototype={areaStart:An,areaEnd:An,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:kn(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:kn(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Fn.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)}};var _l=function Ng(t){function n(n){return 1===t?new Nn(n):new Fn(n,t)}return n.beta=function(t){return Ng(+t)},n}(.85);zn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ln(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:Ln(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}};var yl=function Sg(t){function n(n){return new zn(n,t)}return n.tension=function(t){return Sg(+t)},n}(0);qn.prototype={areaStart:An,areaEnd:An,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:Ln(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}};var gl=function Cg(t){function n(n){return new qn(n,t)}return n.tension=function(t){return Cg(+t)},n}(0);Un.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:Ln(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}};var vl=function Eg(t){function n(n){return new Un(n,t)}return n.tension=function(t){return Eg(+t)},n}(0);jn.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:On(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}};var ml=function Pg(t){function n(n){return t?new jn(n,t):new zn(n,0)}return n.alpha=function(t){return Pg(+t)},n}(.5);Rn.prototype={areaStart:An,areaEnd:An,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:On(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}};var xl=function Dg(t){function n(n){return t?new Rn(n,t):new qn(n,0)}return n.alpha=function(t){return Dg(+t)},n}(.5);Hn.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:On(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}};var bl=function Fg(t){function n(n){return t?new Hn(n,t):new Un(n,0)}return n.alpha=function(t){return Fg(+t)},n}(.5);Yn.prototype={areaStart:An,areaEnd:An,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))}},Vn.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:Wn(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,Wn(this,Jn(this,e=Xn(this,t,n)),e);break;default:Wn(this,this._t0,e=Xn(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},($n.prototype=Object.create(Vn.prototype)).point=function(t,n){Vn.prototype.point.call(this,n,t)},Zn.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)}},Qn.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=te(t),i=te(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)}},ee.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 Ml=Array.prototype.slice,wl=.7,Tl=1/wl,Al=/^#([0-9a-f]{3})$/,kl=/^#([0-9a-f]{6})$/,Nl=/^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/,Sl=/^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Cl=/^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,El=/^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Pl=/^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,Dl=/^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,Fl={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};ve(xe,be,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),ve(ke,Ae,me(xe,{brighter:function(t){return t=null==t?Tl:Math.pow(Tl,t),new ke(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?wl:Math.pow(wl,t),new ke(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+")")}})),ve(Ee,Ce,me(xe,{brighter:function(t){return t=null==t?Tl:Math.pow(Tl,t),new Ee(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?wl:Math.pow(wl,t),new Ee(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 ke(Pe(t>=240?t-240:t+120,i,r),Pe(t,i,r),Pe(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 Ll=Math.PI/180,zl=180/Math.PI,ql=18,Ul=.95047,Ol=1,jl=1.08883,Rl=4/29,Hl=6/29,Yl=3*Hl*Hl,Bl=Hl*Hl*Hl;ve(Le,Fe,me(xe,{brighter:function(t){return new Le(this.l+ql*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Le(this.l-ql*(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=Ol*qe(t),n=Ul*qe(n),e=jl*qe(e),new ke(Ue(3.2404542*n-1.5371385*t-.4985314*e),Ue(-.969266*n+1.8760108*t+.041556*e),Ue(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),ve(He,Re,me(xe,{brighter:function(t){return new He(this.h,this.c,this.l+ql*(null==t?1:t),this.opacity)},darker:function(t){return new He(this.h,this.c,this.l-ql*(null==t?1:t),this.opacity)},rgb:function(){return De(this).rgb()}}));var Il=-.14861,Xl=1.78277,Jl=-.29227,Wl=-.90649,Vl=1.97294,$l=Vl*Wl,Zl=Vl*Xl,Gl=Xl*Jl-Wl*Il;ve(Ie,Be,me(xe,{brighter:function(t){return t=null==t?Tl:Math.pow(Tl,t),new Ie(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?wl:Math.pow(wl,t),new Ie(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Ll,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ke(255*(n+e*(Il*r+Xl*i)),255*(n+e*(Jl*r+Wl*i)),255*(n+e*(Vl*r)),this.opacity)}}));var Kl,Ql,td,nd,ed=function Lg(t){function n(t,n){var r=e((t=Ae(t)).r,(n=Ae(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=$e(t);return n.gamma=Lg,n}(1),rd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,id=new RegExp(rd.source,"g"),ad=180/Math.PI,od={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},ud=sr(or,"px, ","px)","deg)"),sd=sr(ur,", ",")",")"),cd=Math.SQRT2,fd=2,hd=4,ld=1e-12,dd=function zg(t){function n(n,e){var r=Ve((n=Be(n)).h,(e=Be(e)).h),i=Ze(n.s,e.s),a=Ze(n.l,e.l),o=Ze(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=zg,n}(1),pd=function qg(t){function n(n,e){var r=Ze((n=Be(n)).h,(e=Be(e)).h),i=Ze(n.s,e.s),a=Ze(n.l,e.l),o=Ze(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=qg,n}(1),_d={value:function(){}};mr.prototype=vr.prototype={constructor:mr,on:function(t,n){var e,r=this._,i=xr(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]=Mr(r[e],t.name,n);else if(null==n)for(e in r)r[e]=Mr(r[e],t.name,null);return this}for(;++a<o;)if((e=(t=i[a]).type)&&(e=br(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new mr(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 yd,gd,vd=kr(","),md=vd.parse,xd=vd.parseRows,bd=vd.format,Md=vd.formatRows,wd=kr("	"),Td=wd.parse,Ad=wd.parseRows,kd=wd.format,Nd=wd.formatRows,Sd=Er("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),Cd=Er("application/json",function(t){return JSON.parse(t.responseText)}),Ed=Er("text/plain",function(t){return t.responseText}),Pd=Er("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),Dd=Pr("text/csv",md),Fd=Pr("text/tab-separated-values",Td),Ld=0,zd=0,qd=0,Ud=1e3,Od=0,jd=0,Rd=0,Hd="object"==typeof performance?performance:Date,Yd="function"==typeof requestAnimationFrame?requestAnimationFrame:function(t){return setTimeout(t,17)};zr.prototype=qr.prototype={constructor:zr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Fr():+e)+(null==n?0:+n),this._next||gd===this||(gd?gd._next=this:yd=this,gd=this),this._call=t,this._time=e,Hr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Hr())}};var Bd=new Date,Id=new Date,Xd=Ir(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});Xd.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ir(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):Xd:null};var Jd,Wd=1e3,Vd=6e4,$d=36e5,Zd=864e5,Gd=6048e5,Kd=Ir(function(t){t.setTime(Math.floor(t/Wd)*Wd)},function(t,n){t.setTime(+t+n*Wd)},function(t,n){return(n-t)/Wd},function(t){return t.getUTCSeconds()}),Qd=Ir(function(t){t.setTime(Math.floor(t/Vd)*Vd)},function(t,n){t.setTime(+t+n*Vd)},function(t,n){return(n-t)/Vd},function(t){return t.getMinutes()}),tp=Ir(function(t){var n=t.getTimezoneOffset()*Vd%$d;0>n&&(n+=$d),t.setTime(Math.floor((+t-n)/$d)*$d+n)},function(t,n){t.setTime(+t+n*$d)},function(t,n){return(n-t)/$d},function(t){return t.getHours()}),np=Ir(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())*Vd)/Zd},function(t){return t.getDate()-1}),ep=Xr(0),rp=Xr(1),ip=Xr(2),ap=Xr(3),op=Xr(4),up=Xr(5),sp=Xr(6),cp=Ir(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()}),fp=Ir(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()}),hp=Ir(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*Vd)},function(t,n){return(n-t)/Vd},function(t){return t.getUTCMinutes()}),lp=Ir(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*$d)},function(t,n){return(n-t)/$d},function(t){return t.getUTCHours()}),dp=Ir(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/Zd},function(t){return t.getUTCDate()-1}),pp=Jr(0),_p=Jr(1),yp=Jr(2),gp=Jr(3),vp=Jr(4),mp=Jr(5),xp=Jr(6),bp=Ir(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()}),Mp=Ir(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()}),wp=Xd.range,Tp=Kd.range,Ap=Qd.range,kp=tp.range,Np=np.range,Sp=ep.range,Cp=rp.range,Ep=ip.range,Pp=ap.range,Dp=op.range,Fp=up.range,Lp=sp.range,zp=ep.range,qp=cp.range,Up=fp.range,Op=Xd,jp=wp,Rp=Kd,Hp=Tp,Yp=hp.range,Bp=lp.range,Ip=dp.range,Xp=pp.range,Jp=_p.range,Wp=yp.range,Vp=gp.range,$p=vp.range,Zp=mp.range,Gp=xp.range,Kp=pp.range,Qp=bp.range,t_=Mp.range,n_={"":Zr,"%":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 Kr(100*t,n)},r:Kr,s:Gr,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},e_=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;ti.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 r_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],i_=ei({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),a_=ei({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),o_=ei({decimal:",",thousands:" ",grouping:[3],currency:[""," Kč"]}),u_=ei({decimal:",",thousands:"'",grouping:[3],currency:[""," CHF"]}),s_=ei({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),c_=ei({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),f_=ei({decimal:".",thousands:",",grouping:[3],currency:["£",""]}),h_=ei({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),l_=ei({decimal:",",thousands:" ",grouping:[3],currency:[""," €"]}),d_=ei({decimal:",",thousands:" ",grouping:[3],currency:["","$"]}),p_=ei({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),__=ei({decimal:".",thousands:",",grouping:[3],currency:["₪",""]}),y_=ei({decimal:",",thousands:" ",grouping:[3],currency:[""," Ft"]}),g_=ei({decimal:",",thousands:".",grouping:[3],currency:["€",""]}),v_=ei({decimal:".",thousands:",",grouping:[3],currency:["","円"]}),m_=ei({decimal:".",thousands:",",grouping:[3],currency:["₩",""]}),x_=ei({decimal:",",thousands:".",grouping:[3],currency:[""," ден."]}),b_=ei({decimal:",",thousands:".",grouping:[3],currency:["€ ",""]}),M_=ei({decimal:",",thousands:".",grouping:[3],currency:["","zł"]}),w_=ei({decimal:",",thousands:".",grouping:[3],currency:["R$",""]}),T_=ei({decimal:",",thousands:" ",grouping:[3],currency:[""," руб."]}),A_=ei({decimal:",",thousands:" ",grouping:[3],currency:["","SEK"]}),k_=ei({decimal:".",thousands:",",grouping:[3],currency:["¥",""]}),N_=i_.format,S_=i_.formatPrefix,C_={"-":"",_:" ",0:"0"},E_=/^\s*\d+/,P_=/^%/,D_=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,F_=ci({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"]}),L_=ci({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."]}),z_=ci({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"]}),q_=ci({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"]}),U_=ci({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"]}),O_=ci({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"]}),j_=ci({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"]}),R_=ci({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"]}),H_=ci({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"]}),Y_=ci({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."]}),B_=ci({dateTime:"%A, %e ב%B %Y %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],shortDays:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],shortMonths:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"]}),I_=ci({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."]}),X_=ci({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"]}),J_=ci({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月"]}),W_=ci({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월"]}),V_=ci({dateTime:"%A, %e %B %Y г. %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["недела","понеделник","вторник","среда","четврток","петок","сабота"],shortDays:["нед","пон","вто","сре","чет","пет","саб"],months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],shortMonths:["јан","фев","мар","апр","мај","јун","јул","авг","сеп","окт","ное","дек"]}),$_=ci({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"]}),Z_=ci({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."]}),G_=ci({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"]}),K_=ci({dateTime:"%A, %e %B %Y г. %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],shortDays:["вс","пн","вт","ср","чт","пт","сб"],months:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"]}),Q_=ci({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"]}),ty=ci({dateTime:"%x %A %X",date:"%Y年%-m月%-d日",time:"%H:%M:%S",periods:["上午","下午"],days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["周日","周一","周二","周三","周四","周五","周六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]}),ny="%Y-%m-%dT%H:%M:%S.%LZ",ey=Date.prototype.toISOString?ra:F_.utcFormat(ny),ry=+new Date("2000-01-01T00:00:00.000Z")?ia:F_.utcParse(ny),iy=F_.format,ay=F_.parse,oy=F_.utcFormat,uy=F_.utcParse,sy=Array.prototype,cy=sy.map,fy=sy.slice,hy={name:"implicit"},ly=[0,1],dy=1e3,py=60*dy,_y=60*py,yy=24*_y,gy=7*yy,vy=30*yy,my=365*yy,xy=Ra("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),by=Ra("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),My=Ra("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),wy=Ra("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Ty=Ra("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"),Ay=Ra("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"),ky=Ra("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"),Ny=Ra("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"),Sy="http://www.w3.org/1999/xhtml",Cy={svg:"http://www.w3.org/2000/svg",xhtml:Sy,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ey=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Py=document.documentElement;if(!Py.matches){var Dy=Py.webkitMatchesSelector||Py.msMatchesSelector||Py.mozMatchesSelector||Py.oMatchesSelector;Ey=function(t){return function(){return Dy.call(this,t)}}}}var Fy=Ey,Ly={};if(t.event=null,"undefined"!=typeof document){var zy=document.documentElement;"onmouseenter"in zy||(Ly={mouseenter:"mouseover",mouseleave:"mouseout"})}var qy="$";To.prototype={constructor:To,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)}},eu.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 Uy=[null];Du.prototype=Fu.prototype={constructor:Du,select:yo,selectAll:vo,filter:mo,data:wo,enter:ko,exit:No,merge:So,order:Co,sort:Eo,call:Do,nodes:Fo,node:Lo,size:zo,empty:qo,each:Uo,attr:Io,style:$o,property:Qo,classed:su,text:lu,html:yu,raise:vu,lower:xu,append:Tu,remove:ku,datum:Nu,on:fo,dispatch:Pu};var Oy=vr("start","end","interrupt"),jy=[],Ry=0,Hy=1,Yy=2,By=3,Iy=4,Xy=5,Jy=Fu.prototype.constructor,Wy=0,Vy=Fu.prototype;Ls.prototype=zs.prototype={constructor:Ls,select:xs,selectAll:bs,filter:ds,merge:ps,selection:Ms,transition:Fs,call:Vy.call,nodes:Vy.nodes,node:Vy.node,size:Vy.size,empty:Vy.empty,each:Vy.each,on:gs,attr:ns,attrTween:is,style:Ns,styleTween:Cs,text:Ds,remove:ms,tween:Ju,delay:us,duration:fs,ease:ls};var $y={time:null,delay:0,duration:250,ease:rt};Fu.prototype.interrupt=Bu,Fu.prototype.transition=Os;var Zy=[null],Gy=Array.prototype.slice,Ky=1,Qy=2,tg=3,ng=4,eg=1e-6;vc.prototype=dc.prototype={constructor:vc,each:rc,eachAfter:ac,eachBefore:ic,sum:oc,sort:uc,path:sc,ancestors:fc,descendants:hc,leaves:lc,copy:pc};var rg="$",ig={depth:-1},ag={};tf.prototype=Object.create(vc.prototype);
var og=function Ug(t){function n(n,e,r,i,a){if(n._squarify)return af(n,e,r,i,a);for(var o,u,s,c,f,h,l,d,p,_,y,g,v=n._squarify=[],m=n.children,x=0,b=m.length,M=n.value;b>x;){for(c=i-e,f=a-r,l=d=h=m[x].value,y=Math.max(f/c,c/f)/(M*t),g=h*h*y,_=Math.max(d/g,g/l),s=x+1;b>s;++s){if(h+=u=m[s].value,l>u&&(l=u),u>d&&(d=u),g=h*h*y,p=Math.max(d/g,g/l),p>_){h-=u;break}_=p}v.push(o={value:h,dice:f>c,children:m.slice(x,s)}),o.dice?Bc(o,e,r,i,M?r+=f*h/M:a):rf(o,e,r,M?e+=c*h/M:i,a),M-=h,x=s}}return n.ratio=function(t){return Ug((t=+t)>1?t:1)},n}((1+Math.sqrt(5))/2,!1),ug=10,sg=Math.PI*(3-Math.sqrt(5));Nf.prototype={constructor:Nf,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=Pf(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&&(Cf(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Ef(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Ef(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Cf(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?Pf(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,Cf(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,Ef(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Cf(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,Ef(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,Cf(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Ef(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var cg,fg,hg,lg,dg,pg=[],_g=[],yg=1e-6,gg=1e-12;eh.prototype={constructor:eh,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 Rf(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&&th(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=ih,t.bisect=oh,t.bisectRight=oh,t.bisectLeft=uh,t.ascending=n,t.bisector=e,t.descending=i,t.deviation=u,t.extent=s,t.histogram=y,t.thresholdFreedmanDiaconis=v,t.thresholdScott=m,t.thresholdSturges=p,t.max=x,t.mean=b,t.median=M,t.merge=w,t.min=T,t.pairs=A,t.permute=k,t.quantile=g,t.range=h,t.scan=N,t.shuffle=S,t.sum=C,t.ticks=l,t.transpose=E,t.variance=o,t.zip=D,t.entries=I,t.keys=Y,t.values=B,t.map=L,t.set=H,t.nest=z,t.randomUniform=X,t.randomNormal=J,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=yh,t.easePolyIn=ph,t.easePolyOut=_h,t.easePolyInOut=yh,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=lt,t.easeCircleIn=ft,t.easeCircleOut=ht,t.easeCircleInOut=lt,t.easeBounce=pt,t.easeBounceIn=dt,t.easeBounceOut=pt,t.easeBounceInOut=_t,t.easeBack=Dh,t.easeBackIn=Eh,t.easeBackOut=Ph,t.easeBackInOut=Dh,t.easeElastic=Uh,t.easeElasticIn=qh,t.easeElasticOut=Uh,t.easeElasticInOut=Oh,t.polygonArea=yt,t.polygonCentroid=gt,t.polygonHull=bt,t.polygonContains=Mt,t.polygonLength=wt,t.path=At,t.quadtree=It,t.queue=Qt,t.arc=fn,t.area=_n,t.line=yn,t.pie=mn,t.radialArea=Mn,t.radialLine=wn,t.symbol=Tn,t.symbols=pl,t.symbolCircle=Zh,t.symbolCross=Gh,t.symbolDiamond=tl,t.symbolSquare=ol,t.symbolStar=al,t.symbolTriangle=sl,t.symbolWye=dl,t.curveBasisClosed=En,t.curveBasisOpen=Dn,t.curveBasis=Sn,t.curveBundle=_l,t.curveCardinalClosed=gl,t.curveCardinalOpen=vl,t.curveCardinal=yl,t.curveCatmullRomClosed=xl,t.curveCatmullRomOpen=bl,t.curveCatmullRom=ml,t.curveLinearClosed=Bn,t.curveLinear=ln,t.curveMonotoneX=Gn,t.curveMonotoneY=Kn,t.curveNatural=ne,t.curveStep=re,t.curveStepAfter=ae,t.curveStepBefore=ie,t.stack=ce,t.stackOffsetExpand=fe,t.stackOffsetNone=oe,t.stackOffsetSilhouette=he,t.stackOffsetWiggle=le,t.stackOrderAscending=de,t.stackOrderDescending=_e,t.stackOrderInsideOut=ye,t.stackOrderNone=ue,t.stackOrderReverse=ge,t.color=be,t.rgb=Ae,t.hsl=Ce,t.lab=Fe,t.hcl=Re,t.cubehelix=Be,t.interpolate=rr,t.interpolateArray=Ge,t.interpolateNumber=Ke,t.interpolateObject=Qe,t.interpolateRound=ir,t.interpolateString=er,t.interpolateTransformCss=ud,t.interpolateTransformSvg=sd,t.interpolateZoom=lr,t.interpolateRgb=ed,t.interpolateHsl=dr,t.interpolateHslLong=pr,t.interpolateLab=_r,t.interpolateHcl=yr,t.interpolateHclLong=gr,t.interpolateCubehelix=dd,t.interpolateCubehelixLong=pd,t.dispatch=vr,t.dsvFormat=kr,t.csvParse=md,t.csvParseRows=xd,t.csvFormat=bd,t.csvFormatRows=Md,t.tsvParse=Td,t.tsvParseRows=Ad,t.tsvFormat=kd,t.tsvFormatRows=Nd,t.request=Nr,t.html=Sd,t.json=Cd,t.text=Ed,t.xml=Pd,t.csv=Dd,t.tsv=Fd,t.now=Fr,t.timer=qr,t.timerFlush=Ur,t.timeout=Yr,t.interval=Br,t.timeInterval=Ir,t.timeMillisecond=Xd,t.timeMilliseconds=wp,t.timeSecond=Kd,t.timeSeconds=Tp,t.timeMinute=Qd,t.timeMinutes=Ap,t.timeHour=tp,t.timeHours=kp,t.timeDay=np,t.timeDays=Np,t.timeWeek=ep,t.timeWeeks=zp,t.timeSunday=ep,t.timeSundays=Sp,t.timeMonday=rp,t.timeMondays=Cp,t.timeTuesday=ip,t.timeTuesdays=Ep,t.timeWednesday=ap,t.timeWednesdays=Pp,t.timeThursday=op,t.timeThursdays=Dp,t.timeFriday=up,t.timeFridays=Fp,t.timeSaturday=sp,t.timeSaturdays=Lp,t.timeMonth=cp,t.timeMonths=qp,t.timeYear=fp,t.timeYears=Up,t.utcMillisecond=Op,t.utcMilliseconds=jp,t.utcSecond=Rp,t.utcSeconds=Hp,t.utcMinute=hp,t.utcMinutes=Yp,t.utcHour=lp,t.utcHours=Bp,t.utcDay=dp,t.utcDays=Ip,t.utcWeek=pp,t.utcWeeks=Kp,t.utcSunday=pp,t.utcSundays=Xp,t.utcMonday=_p,t.utcMondays=Jp,t.utcTuesday=yp,t.utcTuesdays=Wp,t.utcWednesday=gp,t.utcWednesdays=Vp,t.utcThursday=vp,t.utcThursdays=$p,t.utcFriday=mp,t.utcFridays=Zp,t.utcSaturday=xp,t.utcSaturdays=Gp,t.utcMonth=bp,t.utcMonths=Qp,t.utcYear=Mp,t.utcYears=t_,t.format=N_,t.formatPrefix=S_,t.formatLocale=ei,t.formatCaEs=a_,t.formatCsCz=o_,t.formatDeCh=u_,t.formatDeDe=s_,t.formatEnCa=c_,t.formatEnGb=f_,t.formatEnUs=i_,t.formatEsEs=h_,t.formatFiFi=l_,t.formatFrCa=d_,t.formatFrFr=p_,t.formatHeIl=__,t.formatHuHu=y_,t.formatItIt=g_,t.formatJaJp=v_,t.formatKoKr=m_,t.formatMkMk=x_,t.formatNlNl=b_,t.formatPlPl=M_,t.formatPtBr=w_,t.formatRuRu=T_,t.formatSvSe=A_,t.formatZhCn=k_,t.formatSpecifier=Qr,t.precisionFixed=ri,t.precisionPrefix=ii,t.precisionRound=ai,t.timeFormat=iy,t.timeParse=ay,t.utcFormat=oy,t.utcParse=uy,t.isoFormat=ey,t.isoParse=ry,t.timeFormatLocale=ci,t.timeFormatCaEs=L_,t.timeFormatDeCh=z_,t.timeFormatDeDe=q_,t.timeFormatEnCa=U_,t.timeFormatEnGb=O_,t.timeFormatEnUs=F_,t.timeFormatEsEs=j_,t.timeFormatFiFi=R_,t.timeFormatFrCa=H_,t.timeFormatFrFr=Y_,t.timeFormatHeIl=B_,t.timeFormatHuHu=I_,t.timeFormatItIt=X_,t.timeFormatJaJp=J_,t.timeFormatKoKr=W_,t.timeFormatMkMk=V_,t.timeFormatNlNl=$_,t.timeFormatPlPl=Z_,t.timeFormatPtBr=G_,t.timeFormatRuRu=K_,t.timeFormatSvSe=Q_,t.timeFormatZhCn=ty,t.scaleBand=oa,t.scalePoint=sa,t.scaleIdentity=ba,t.scaleLinear=xa,t.scaleLog=Ca,t.scaleOrdinal=aa,t.scaleImplicit=hy,t.scalePow=Pa,t.scaleSqrt=Da,t.scaleQuantile=Fa,t.scaleQuantize=La,t.scaleThreshold=za,t.scaleTime=Oa,t.scaleUtc=ja,t.scaleCategory10=Ha,t.scaleCategory20b=Ya,t.scaleCategory20c=Ba,t.scaleCategory20=Ia,t.scaleCubehelix=Xa,t.scaleRainbow=$a,t.scaleWarm=Wa,t.scaleCool=Va,t.scaleViridis=Ga,t.scaleMagma=Ka,t.scaleInferno=Qa,t.scalePlasma=to,t.creator=io,t.matcher=Fy,t.mouse=po,t.namespace=no,t.namespaces=Cy,t.select=Lu,t.selectAll=zu,t.selection=Fu,t.selector=_o,t.selectorAll=go,t.touch=qu,t.touches=Uu,t.window=Xo,t.active=js,t.transition=zs,t.axisTop=Xs,t.axisRight=Js,t.axisBottom=Ws,t.axisLeft=Vs,t.cluster=ec,t.hierarchy=dc,t.pack=Oc,t.packSiblings=Dc,t.packEnclose=bc,t.partition=Ic,t.stratify=Wc,t.tree=ef,t.treemap=of,t.treemapBinary=uf,t.treemapDice=Bc,t.treemapSlice=rf,t.treemapSliceDice=cf,t.treemapSquarify=og,t.forceCenter=ff,t.forceCollide=_f,t.forceLink=gf,t.forceManyBody=bf,t.forceSimulation=xf,t.forceX=Mf,t.forceY=wf,t.voronoi=rh});
