text: !function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var e=window.webpackJsonp;window.webpackJsonp=function(r,o,u){for(var a,c,f,s=0,l=[];s<r.length;s++)c=r[s],i[c]&&l.push(i[c][0]),i[c]=0;for(a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a]);for(e&&e(r,o,u);l.length;)l.shift()();if(u)for(s=0;s<u.length;s++)f=n(n.s=u[s]);return f};var r={},i={2:0};n.e=function(t){function e(){a.onerror=a.onload=null,clearTimeout(c);var n=i[t];0!==n&&(n&&n[1](new Error("Loading chunk "+t+" failed.")),i[t]=void 0)}var r=i[t];if(0===r)return new Promise(function(t){t()});if(r)return r[2];var o=new Promise(function(n,e){r=i[t]=[n,e]});r[2]=o;var u=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,n.nc&&a.setAttribute("nonce",n.nc),a.src=n.p+""+t+".js";var c=setTimeout(e,12e4);return a.onerror=a.onload=e,u.appendChild(a),o},n.m=t,n.c=r,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n.oe=function(t){throw console.error(t),t},n(n.s=49)}({4:function(t,n){!function(e,r){"object"==typeof n&&void 0!==t?r(n):"function"==typeof define&&define.amd?define(["exports"],r):r(e.d3=e.d3||{})}(this,function(t){"use strict";function n(t,n){return t<n?-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);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}function r(t){return function(e,r){return n(t(e),r)}}function i(t,n){null==n&&(n=o);for(var e=0,r=t.length-1,i=t[0],u=new Array(r<0?0:r);e<r;)u[e]=n(i,i=t[++e]);return u}function o(t,n){return[t,n]}function u(t,n,e){var r,i,u,a,c=t.length,f=n.length,s=new Array(c*f);for(null==e&&(e=o),r=u=0;r<c;++r)for(a=t[r],i=0;i<f;++i,++u)s[u]=e(a,n[i]);return s}function a(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function c(t){return null===t?NaN:+t}function f(t,n){var e,r,i=t.length,o=0,u=-1,a=0,f=0;if(null==n)for(;++u<i;)isNaN(e=c(t[u]))||(r=e-a,a+=r/++o,f+=r*(e-a));else for(;++u<i;)isNaN(e=c(n(t[u],u,t)))||(r=e-a,a+=r/++o,f+=r*(e-a));if(o>1)return f/(o-1)}function s(t,n){var e=f(t,n);return e?Math.sqrt(e):e}function l(t,n){var e,r,i,o=t.length,u=-1;if(null==n){for(;++u<o;)if(null!=(e=t[u])&&e>=e)for(r=i=e;++u<o;)null!=(e=t[u])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++u<o;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=i=e;++u<o;)null!=(e=n(t[u],u,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]}function h(t){return function(){return t}}function p(t){return t}function d(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function v(t,n,e){var r,i,o,u,a=-1;if(n=+n,t=+t,e=+e,t===n&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(u=g(t,n,e))||!isFinite(u))return[];if(u>0)for(t=Math.ceil(t/u),n=Math.floor(n/u),o=new Array(i=Math.ceil(n-t+1));++a<i;)o[a]=(t+a)*u;else for(t=Math.floor(t*u),n=Math.ceil(n*u),o=new Array(i=Math.ceil(t-n+1));++a<i;)o[a]=(t-a)/u;return r&&o.reverse(),o}function g(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Ov?10:o>=Fv?5:o>=Iv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ov?10:o>=Fv?5:o>=Iv?2:1)}function y(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ov?i*=10:o>=Fv?i*=5:o>=Iv&&(i*=2),n<t?-i:i}function _(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function m(){function t(t){var i,o,u=t.length,a=new Array(u);for(i=0;i<u;++i)a[i]=n(t[i],i,t);var c=e(a),f=c[0],s=c[1],l=r(a,f,s);Array.isArray(l)||(l=y(f,s,l),l=d(Math.ceil(f/l)*l,Math.floor(s/l)*l,l));for(var h=l.length;l[0]<=f;)l.shift(),--h;for(;l[h-1]>s;)l.pop(),--h;var p,v=new Array(h+1);for(i=0;i<=h;++i)p=v[i]=[],p.x0=i>0?l[i-1]:f,p.x1=i<h?l[i]:s;for(i=0;i<u;++i)o=a[i],f<=o&&o<=s&&v[Rv(l,o,0,h)].push(t[i]);return v}var n=p,e=l,r=_;return t.value=function(e){return arguments.length?(n="function"==typeof e?e:h(e),t):n},t.domain=function(n){return arguments.length?(e="function"==typeof n?n:h([n[0],n[1]]),t):e},t.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:h(Array.isArray(n)?qv.call(n):n),t):r},t}function x(t,n,e){if(null==e&&(e=c),r=t.length){if((n=+n)<=0||r<2)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);return u+(+e(t[o+1],o+1,t)-u)*(i-o)}}function b(t,e,r){return t=Dv.call(t,c).sort(n),Math.ceil((r-e)/(2*(x(t,.75)-x(t,.25))*Math.pow(t.length,-1/3)))}function w(t,n,e){return Math.ceil((e-n)/(3.5*s(t)*Math.pow(t.length,-1/3)))}function M(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&e>r&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&e>r&&(r=e);return r}function T(t,n){var e,r=t.length,i=r,o=-1,u=0;if(null==n)for(;++o<r;)isNaN(e=c(t[o]))?--i:u+=e;else for(;++o<r;)isNaN(e=c(n(t[o],o,t)))?--i:u+=e;if(i)return u/i}function N(t,e){var r,i=t.length,o=-1,u=[];if(null==e)for(;++o<i;)isNaN(r=c(t[o]))||u.push(r);else for(;++o<i;)isNaN(r=c(e(t[o],o,t)))||u.push(r);return x(u.sort(n),.5)}function k(t){for(var n,e,r,i=t.length,o=-1,u=0;++o<i;)u+=t[o].length;for(e=new Array(u);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--u]=r[n];return e}function S(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o<i;)if(null!=(e=t[o])&&e>=e)for(r=e;++o<i;)null!=(e=t[o])&&r>e&&(r=e)}else for(;++o<i;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=e;++o<i;)null!=(e=n(t[o],o,t))&&r>e&&(r=e);return r}function A(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}function E(t,e){if(r=t.length){var r,i,o=0,u=0,a=t[u];for(null==e&&(e=n);++o<r;)(e(i=t[o],a)<0||0!==e(a,a))&&(a=i,u=o);return 0===e(a,a)?u:void 0}}function C(t,n,e){for(var r,i,o=(null==e?t.length:e)-(n=null==n?0:+n);o;)i=Math.random()*o--|0,r=t[o+n],t[o+n]=t[i+n],t[i+n]=r;return t}function z(t,n){var e,r=t.length,i=-1,o=0;if(null==n)for(;++i<r;)(e=+t[i])&&(o+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(o+=e);return o}function P(t){if(!(i=t.length))return[];for(var n=-1,e=S(t,R),r=new Array(e);++n<e;)for(var i,o=-1,u=r[n]=new Array(i);++o<i;)u[o]=t[o][n];return r}function R(t){return t.length}function L(){return P(arguments)}function U(t){return t}function q(t){return"translate("+(t+.5)+",0)"}function D(t){return"translate(0,"+(t+.5)+")"}function O(t){return function(n){return+t(n)}}function F(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function I(){return!this.__axis}function Y(t,n){function e(e){var h=null==i?n.ticks?n.ticks.apply(n,r):n.domain():i,p=null==o?n.tickFormat?n.tickFormat.apply(n,r):U:o,d=Math.max(u,0)+c,v=n.range(),g=+v[0]+.5,y=+v[v.length-1]+.5,_=(n.bandwidth?F:O)(n.copy()),m=e.selection?e.selection():e,x=m.selectAll(".domain").data([null]),b=m.selectAll(".tick").data(h,n).order(),w=b.exit(),M=b.enter().append("g").attr("class","tick"),T=b.select("line"),N=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(M),T=T.merge(M.append("line").attr("stroke","#000").attr(s+"2",f*u)),N=N.merge(M.append("text").attr("fill","#000").attr(s,f*d).attr("dy",t===jv?"0em":t===Hv?"0.71em":"0.32em")),e!==m&&(x=x.transition(e),b=b.transition(e),T=T.transition(e),N=N.transition(e),w=w.transition(e).attr("opacity",Vv).attr("transform",function(t){return isFinite(t=_(t))?l(t):this.getAttribute("transform")}),M.attr("opacity",Vv).attr("transform",function(t){var n=this.parentNode.__axis;return l(n&&isFinite(n=n(t))?n:_(t))})),w.remove(),x.attr("d",t===Xv||t==Bv?"M"+f*a+","+g+"H0.5V"+y+"H"+f*a:"M"+g+","+f*a+"V0.5H"+y+"V"+f*a),b.attr("opacity",1).attr("transform",function(t){return l(_(t))}),T.attr(s+"2",f*u),N.attr(s,f*d).text(p),m.filter(I).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Bv?"start":t===Xv?"end":"middle"),m.each(function(){this.__axis=_})}var r=[],i=null,o=null,u=6,a=6,c=3,f=t===jv||t===Xv?-1:1,s=t===Xv||t===Bv?"x":"y",l=t===jv||t===Hv?q:D;return e.scale=function(t){return arguments.length?(n=t,e):n},e.ticks=function(){return r=Yv.call(arguments),e},e.tickArguments=function(t){return arguments.length?(r=null==t?[]:Yv.call(t),e):r.slice()},e.tickValues=function(t){return arguments.length?(i=null==t?null:Yv.call(t),e):i&&i.slice()},e.tickFormat=function(t){return arguments.length?(o=t,e):o},e.tickSize=function(t){return arguments.length?(u=a=+t,e):u},e.tickSizeInner=function(t){return arguments.length?(u=+t,e):u},e.tickSizeOuter=function(t){return arguments.length?(a=+t,e):a},e.tickPadding=function(t){return arguments.length?(c=+t,e):c},e}function j(t){return Y(jv,t)}function B(t){return Y(Bv,t)}function H(t){return Y(Hv,t)}function X(t){return Y(Xv,t)}function V(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new $(r)}function $(t){this._=t}function W(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("unknown type: "+t);return{type:t,name:e}})}function Z(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function G(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=$v,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function Q(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Zv.hasOwnProperty(n)?{space:Zv[n],local:t}:t}function J(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Wv&&n.documentElement.namespaceURI===Wv?n.createElement(t):n.createElementNS(e,t)}}function K(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function tt(t){var n=Q(t);return(n.local?K:J)(n)}function nt(){}function et(t){return null==t?nt:function(){return this.querySelector(t)}}function rt(t){"function"!=typeof t&&(t=et(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,f=r[i]=new Array(c),s=0;s<c;++s)(o=a[s])&&(u=t.call(o,o.__data__,s,a))&&("__data__"in o&&(u.__data__=o.__data__),f[s]=u);return new zn(r,this._parents)}function it(){return[]}function ot(t){return null==t?it:function(){return this.querySelectorAll(t)}}function ut(t){"function"!=typeof t&&(t=ot(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,f=0;f<c;++f)(u=a[f])&&(r.push(t.call(u,u.__data__,f,a)),i.push(u));return new zn(r,i)}function at(t){"function"!=typeof t&&(t=Kv(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],f=0;f<a;++f)(o=u[f])&&t.call(o,o.__data__,f,u)&&c.push(o);return new zn(r,this._parents)}function ct(t){return new Array(t.length)}function ft(){return new zn(this._enter||this._groups.map(ct),this._parents)}function st(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function lt(t){return function(){return t}}function ht(t,n,e,r,i,o){for(var u,a=0,c=n.length,f=o.length;a<f;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new st(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function pt(t,n,e,r,i,o,u){var a,c,f,s={},l=n.length,h=o.length,p=new Array(l);for(a=0;a<l;++a)(c=n[a])&&(p[a]=f=tg+u.call(c,c.__data__,a,n),f in s?i[a]=c:s[f]=c);for(a=0;a<h;++a)f=tg+u.call(t,o[a],a,o),(c=s[f])?(r[a]=c,c.__data__=o[a],s[f]=null):e[a]=new st(t,o[a]);for(a=0;a<l;++a)(c=n[a])&&s[p[a]]===c&&(i[a]=c)}function dt(t,n){if(!t)return p=new Array(this.size()),f=-1,this.each(function(t){p[++f]=t}),p;var e=n?pt:ht,r=this._parents,i=this._groups;"function"!=typeof t&&(t=lt(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),f=0;f<o;++f){var s=r[f],l=i[f],h=l.length,p=t.call(s,s&&s.__data__,f,r),d=p.length,v=a[f]=new Array(d),g=u[f]=new Array(d);e(s,l,v,g,c[f]=new Array(h),p,n);for(var y,_,m=0,x=0;m<d;++m)if(y=v[m]){for(m>=x&&(x=m+1);!(_=g[x])&&++x<d;);y._next=_||null}}return u=new zn(u,r),u._enter=a,u._exit=c,u}function vt(){return new zn(this._exit||this._groups.map(ct),this._parents)}function gt(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,f=n[a],s=e[a],l=f.length,h=u[a]=new Array(l),p=0;p<l;++p)(c=f[p]||s[p])&&(h[p]=c);for(;a<r;++a)u[a]=n[a];return new zn(u,this._parents)}function yt(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this}function _t(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=mt);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,f=i[o]=new Array(c),s=0;s<c;++s)(u=a[s])&&(f[s]=u);f.sort(n)}return new zn(i,this._parents).order()}function mt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function xt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function bt(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t}function wt(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null}function Mt(){var t=0;return this.each(function(){++t}),t}function Tt(){return!this.node()}function Nt(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this}function kt(t){return function(){this.removeAttribute(t)}}function St(t){return function(){this.removeAttributeNS(t.space,t.local)}}function At(t,n){return function(){this.setAttribute(t,n)}}function Et(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Ct(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function zt(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 Pt(t,n){var e=Q(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?St:kt:"function"==typeof n?e.local?zt:Ct:e.local?Et:At)(e,n))}function Rt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Lt(t){return function(){this.style.removeProperty(t)}}function Ut(t,n,e){return function(){this.style.setProperty(t,n,e)}}function qt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Dt(t,n,e){return arguments.length>1?this.each((null==n?Lt:"function"==typeof n?qt:Ut)(t,n,null==e?"":e)):Ot(this.node(),t)}function Ot(t,n){return t.style.getPropertyValue(n)||Rt(t).getComputedStyle(t,null).getPropertyValue(n)}function Ft(t){return function(){delete this[t]}}function It(t,n){return function(){this[t]=n}}function Yt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function jt(t,n){return arguments.length>1?this.each((null==n?Ft:"function"==typeof n?Yt:It)(t,n)):this.node()[t]}function Bt(t){return t.trim().split(/^|\s+/)}function Ht(t){return t.classList||new Xt(t)}function Xt(t){this._node=t,this._names=Bt(t.getAttribute("class")||"")}function Vt(t,n){for(var e=Ht(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function $t(t,n){for(var e=Ht(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Wt(t){return function(){Vt(this,t)}}function Zt(t){return function(){$t(this,t)}}function Gt(t,n){return function(){(n.apply(this,arguments)?Vt:$t)(this,t)}}function Qt(t,n){var e=Bt(t+"");if(arguments.length<2){for(var r=Ht(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?Gt:n?Wt:Zt)(e,n))}function Jt(){this.textContent=""}function Kt(t){return function(){this.textContent=t}}function tn(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function nn(t){return arguments.length?this.each(null==t?Jt:("function"==typeof t?tn:Kt)(t)):this.node().textContent}function en(){this.innerHTML=""}function rn(t){return function(){this.innerHTML=t}}function on(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function un(t){return arguments.length?this.each(null==t?en:("function"==typeof t?on:rn)(t)):this.node().innerHTML}function an(){this.nextSibling&&this.parentNode.appendChild(this)}function cn(){return this.each(an)}function fn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function sn(){return this.each(fn)}function ln(t){var n="function"==typeof t?t:tt(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function hn(){return null}function pn(t,n){var e="function"==typeof t?t:tt(t),r=null==n?hn:"function"==typeof n?n:et(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})}function dn(){var t=this.parentNode;t&&t.removeChild(this)}function vn(){return this.each(dn)}function gn(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function yn(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function _n(t){return this.select(t?yn:gn)}function mn(t){return arguments.length?this.property("__data__",t):this.node().__data__}function xn(t,n,e){return t=bn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function bn(n,e,r){return function(i){var o=t.event;t.event=i;try{n.call(this,this.__data__,e,r)}finally{t.event=o}}}function wn(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 Mn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++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 Tn(t,n,e){var r=ng.hasOwnProperty(t.type)?xn:bn;return function(i,o,u){var a,c=this.__on,f=r(n,o,u);if(c)for(var s=0,l=c.length;s<l;++s)if((a=c[s]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=f,a.capture=e),void(a.value=n);this.addEventListener(t.type,f,e),a={type:t.type,name:t.name,value:n,listener:f,capture:e},c?c.push(a):this.__on=[a]}}function Nn(t,n,e){var r,i,o=wn(t+""),u=o.length;{if(!(arguments.length<2)){for(a=n?Tn:Mn,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,f=0,s=a.length;f<s;++f)for(r=0,c=a[f];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value}}function kn(n,e,r,i){var o=t.event;n.sourceEvent=t.event,t.event=n;try{return e.apply(r,i)}finally{t.event=o}}function Sn(t,n,e){var r=Rt(t),i=r.CustomEvent;"function"==typeof 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 An(t,n){return function(){return Sn(this,t,n)}}function En(t,n){return function(){return Sn(this,t,n.apply(this,arguments))}}function Cn(t,n){return this.each(("function"==typeof n?En:An)(t,n))}function zn(t,n){this._groups=t,this._parents=n}function Pn(){return new zn([[document.documentElement]],eg)}function Rn(t){return"string"==typeof t?new zn([[document.querySelector(t)]],[document.documentElement]):new zn([[t]],eg)}function Ln(t){return Rn(tt(t).call(document.documentElement))}function Un(){return new qn}function qn(){this._="@"+(++rg).toString(36)}function Dn(){for(var n,e=t.event;n=e.sourceEvent;)e=n;return e}function On(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 Fn(t){var n=Dn();return n.changedTouches&&(n=n.changedTouches[0]),On(t,n)}function In(t){return"string"==typeof t?new zn([document.querySelectorAll(t)],[document.documentElement]):new zn([null==t?[]:t],eg)}function Yn(t,n,e){arguments.length<3&&(e=n,n=Dn().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return On(t,r);return null}function jn(t,n){null==n&&(n=Dn().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=On(t,n[e]);return i}function Bn(){t.event.stopImmediatePropagation()}function Hn(){t.event.preventDefault(),t.event.stopImmediatePropagation()}function Xn(t){var n=t.document.documentElement,e=Rn(t).on("dragstart.drag",Hn,!0);"onselectstart"in n?e.on("selectstart.drag",Hn,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Vn(t,n){var e=t.document.documentElement,r=Rn(t).on("dragstart.drag",null);n&&(r.on("click.drag",Hn,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function $n(t){return function(){return t}}function Wn(t,n,e,r,i,o,u,a,c,f){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=o,this.y=u,this.dx=a,this.dy=c,this._=f}function Zn(){return!t.event.button}function Gn(){return this.parentNode}function Qn(n){return null==n?{x:t.event.x,y:t.event.y}:n}function Jn(){return"ontouchstart"in this}function Kn(){function n(t){t.on("mousedown.drag",e).filter(g).on("touchstart.drag",o).on("touchmove.drag",u).on("touchend.drag touchcancel.drag",a).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!h&&p.apply(this,arguments)){var n=c("mouse",d.apply(this,arguments),Fn,this,arguments);n&&(Rn(t.event.view).on("mousemove.drag",r,!0).on("mouseup.drag",i,!0),Xn(t.event.view),Bn(),l=!1,f=t.event.clientX,s=t.event.clientY,n("start"))}}function r(){if(Hn(),!l){var n=t.event.clientX-f,e=t.event.clientY-s;l=n*n+e*e>x}y.mouse("drag")}function i(){Rn(t.event.view).on("mousemove.drag mouseup.drag",null),Vn(t.event.view,l),Hn(),y.mouse("end")}function o(){if(p.apply(this,arguments)){var n,e,r=t.event.changedTouches,i=d.apply(this,arguments),o=r.length;for(n=0;n<o;++n)(e=c(r[n].identifier,i,Yn,this,arguments))&&(Bn(),e("start"))}}function u(){var n,e,r=t.event.changedTouches,i=r.length;for(n=0;n<i;++n)(e=y[r[n].identifier])&&(Hn(),e("drag"))}function a(){var n,e,r=t.event.changedTouches,i=r.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),n=0;n<i;++n)(e=y[r[n].identifier])&&(Bn(),e("end"))}function c(e,r,i,o,u){var a,c,f,s=i(r,e),l=_.copy();if(kn(new Wn(n,"beforestart",a,e,m,s[0],s[1],0,0,l),function(){return null!=(t.event.subject=a=v.apply(o,u))&&(c=a.x-s[0]||0,f=a.y-s[1]||0,!0)}))return function t(h){var p,d=s;switch(h){case"start":y[e]=t,p=m++;break;case"end":delete y[e],--m;case"drag":s=i(r,e),p=m}kn(new Wn(n,h,a,e,p,s[0]+c,s[1]+f,s[0]-d[0],s[1]-d[1],l),l.apply,l,[h,o,u])}}var f,s,l,h,p=Zn,d=Gn,v=Qn,g=Jn,y={},_=V("start","drag","end"),m=0,x=0;return n.filter=function(t){return arguments.length?(p="function"==typeof t?t:$n(!!t),n):p},n.container=function(t){return arguments.length?(d="function"==typeof t?t:$n(t),n):d},n.subject=function(t){return arguments.length?(v="function"==typeof t?t:$n(t),n):v},n.touchable=function(t){return arguments.length?(g="function"==typeof t?t:$n(!!t),n):g},n.on=function(){var t=_.on.apply(_,arguments);return t===_?n:t},n.clickDistance=function(t){return arguments.length?(x=(t=+t)*t,n):Math.sqrt(x)},n}function te(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function ne(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function ee(){}function re(t){var n;return t=(t+"").trim().toLowerCase(),(n=ag.exec(t))?(n=parseInt(n[1],16),new ce(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=cg.exec(t))?ie(parseInt(n[1],16)):(n=fg.exec(t))?new ce(n[1],n[2],n[3],1):(n=sg.exec(t))?new ce(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=lg.exec(t))?oe(n[1],n[2],n[3],n[4]):(n=hg.exec(t))?oe(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=pg.exec(t))?fe(n[1],n[2]/100,n[3]/100,1):(n=dg.exec(t))?fe(n[1],n[2]/100,n[3]/100,n[4]):vg.hasOwnProperty(t)?ie(vg[t]):"transparent"===t?new ce(NaN,NaN,NaN,0):null}function ie(t){return new ce(t>>16&255,t>>8&255,255&t,1)}function oe(t,n,e,r){return r<=0&&(t=n=e=NaN),new ce(t,n,e,r)}function ue(t){return t instanceof ee||(t=re(t)),t?(t=t.rgb(),new ce(t.r,t.g,t.b,t.opacity)):new ce}function ae(t,n,e,r){return 1===arguments.length?ue(t):new ce(t,n,e,null==r?1:r)}function ce(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function fe(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new he(t,n,e,r)}function se(t){if(t instanceof he)return new he(t.h,t.s,t.l,t.opacity);if(t instanceof ee||(t=re(t)),!t)return new he;if(t instanceof he)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new he(u,a,c,t.opacity)}function le(t,n,e,r){return 1===arguments.length?se(t):new he(t,n,e,null==r?1:r)}function he(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function pe(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function de(t){if(t instanceof ge)return new ge(t.l,t.a,t.b,t.opacity);if(t instanceof Me){var n=t.h*gg;return new ge(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof ce||(t=ue(t));var e=xe(t.r),r=xe(t.g),i=xe(t.b),o=ye((.4124564*e+.3575761*r+.1804375*i)/_g),u=ye((.2126729*e+.7151522*r+.072175*i)/mg);return new ge(116*u-16,500*(o-u),200*(u-ye((.0193339*e+.119192*r+.9503041*i)/xg)),t.opacity)}function ve(t,n,e,r){return 1===arguments.length?de(t):new ge(t,n,e,null==r?1:r)}function ge(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function ye(t){return t>Tg?Math.pow(t,1/3):t/Mg+bg}function _e(t){return t>wg?t*t*t:Mg*(t-bg)}function me(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function xe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function be(t){if(t instanceof Me)return new Me(t.h,t.c,t.l,t.opacity);t instanceof ge||(t=de(t));var n=Math.atan2(t.b,t.a)*yg;return new Me(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function we(t,n,e,r){return 1===arguments.length?be(t):new Me(t,n,e,null==r?1:r)}function Me(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Te(t){if(t instanceof ke)return new ke(t.h,t.s,t.l,t.opacity);t instanceof ce||(t=ue(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Pg*r+Cg*n-zg*e)/(Pg+Cg-zg),o=r-i,u=(Eg*(e-i)-Sg*o)/Ag,a=Math.sqrt(u*u+o*o)/(Eg*i*(1-i)),c=a?Math.atan2(u,o)*yg-120:NaN;return new ke(c<0?c+360:c,a,i,t.opacity)}function Ne(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.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Se(t,n,e,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*e+(1+3*t+3*o-3*u)*r+u*i)/6}function Ae(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],u=r>0?t[r-1]:2*i-o,a=r<n-1?t[r+2]:2*o-i;return Se((e-r/n)*n,u,i,o,a)}}function Ee(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],u=t[(r+1)%n],a=t[(r+2)%n];return Se((e-r/n)*n,i,o,u,a)}}function Ce(t){return function(){return t}}function ze(t,n){return function(e){return t+e*n}}function Pe(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 Re(t,n){var e=n-t;return e?ze(t,e>180||e<-180?e-360*Math.round(e/360):e):Ce(isNaN(t)?n:t)}function Le(t){return 1==(t=+t)?Ue:function(n,e){return e-n?Pe(n,e,t):Ce(isNaN(n)?e:n)}}function Ue(t,n){var e=n-t;return e?ze(t,e):Ce(isNaN(t)?n:t)}function qe(t){return function(n){var e,r,i=n.length,o=new Array(i),u=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=ae(n[e]),o[e]=r.r||0,u[e]=r.g||0,a[e]=r.b||0;return o=t(o),u=t(u),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=u(t),r.b=a(t),r+""}}}function De(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),u=new Array(r);for(e=0;e<i;++e)o[e]=He(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}}function Oe(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}}function Fe(t,n){return t=+t,n-=t,function(e){return t+n*e}}function Ie(t,n){var e,r={},i={};null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={});for(e in n)e in t?r[e]=He(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}function Ye(t){return function(){return t}}function je(t){return function(n){return t(n)+""}}function Be(t,n){var e,r,i,o=jg.lastIndex=Bg.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=jg.exec(t))&&(r=Bg.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:Fe(e,r)})),o=Bg.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?je(c[0].x):Ye(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})}function He(t,n){var e,r=typeof n;return null==n||"boolean"===r?Ce(n):("number"===r?Fe:"string"===r?(e=re(n))?(n=e,Fg):Be:n instanceof re?Fg:n instanceof Date?Oe:Array.isArray(n)?De:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Ie:Fe)(t,n)}function Xe(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}}function Ve(t,n,e,r,i,o){var u,a,c;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(c=t*e+n*r)&&(e-=t*c,r-=n*c),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,c/=a),t*r<n*e&&(t=-t,n=-n,c=-c,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*Hg,skewX:Math.atan(c)*Hg,scaleX:u,scaleY:a}}function $e(t){return"none"===t?Xg:(Rg||(Rg=document.createElement("DIV"),Lg=document.documentElement,Ug=document.defaultView),Rg.style.transform=t,t=Ug.getComputedStyle(Lg.appendChild(Rg),null).getPropertyValue("transform"),Lg.removeChild(Rg),t=t.slice(7,-1).split(","),Ve(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function We(t){return null==t?Xg:(qg||(qg=document.createElementNS("http://www.w3.org/2000/svg","g")),qg.setAttribute("transform",t),(t=qg.transform.baseVal.consolidate())?(t=t.matrix,Ve(t.a,t.b,t.c,t.d,t.e,t.f)):Xg)}function Ze(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,u,a){if(t!==i||r!==o){var c=u.push("translate(",null,n,null,e);a.push({i:c-4,x:Fe(t,i)},{i:c-2,x:Fe(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}function u(t,n,e,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Fe(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}function a(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Fe(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}function c(t,n,e,r,o,u){if(t!==e||n!==r){var a=o.push(i(o)+"scale(",null,",",null,")");u.push({i:a-4,x:Fe(t,e)},{i:a-2,x:Fe(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}return function(n,e){var r=[],i=[];return n=t(n),e=t(e),o(n.translateX,n.translateY,e.translateX,e.translateY,r,i),u(n.rotate,e.rotate,r,i),a(n.skewX,e.skewX,r,i),c(n.scaleX,n.scaleY,e.scaleX,e.scaleY,r,i),n=e=null,function(t){for(var n,e=-1,o=i.length;++e<o;)r[(n=i[e]).i]=n.x(t);return r.join("")}}}function Ge(t){return((t=Math.exp(t))+1/t)/2}function Qe(t){return((t=Math.exp(t))-1/t)/2}function Je(t){return((t=Math.exp(2*t))-1)/(t+1)}function Ke(t,n){var e,r,i=t[0],o=t[1],u=t[2],a=n[0],c=n[1],f=n[2],s=a-i,l=c-o,h=s*s+l*l;if(h<Qg)r=Math.log(f/u)/Wg,e=function(t){return[i+t*s,o+t*l,u*Math.exp(Wg*t*r)]};else{var p=Math.sqrt(h),d=(f*f-u*u+Gg*h)/(2*u*Zg*p),v=(f*f-u*u-Gg*h)/(2*f*Zg*p),g=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-g)/Wg,e=function(t){var n=t*r,e=Ge(g),a=u/(Zg*p)*(e*Je(Wg*n+g)-Qe(g));return[i+a*s,o+a*l,u*e/Ge(Wg*n+g)]}}return e.duration=1e3*r,e}function tr(t){return function(n,e){var r=t((n=le(n)).h,(e=le(e)).h),i=Ue(n.s,e.s),o=Ue(n.l,e.l),u=Ue(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=u(t),n+""}}}function nr(t,n){var e=Ue((t=ve(t)).l,(n=ve(n)).l),r=Ue(t.a,n.a),i=Ue(t.b,n.b),o=Ue(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function er(t){return function(n,e){var r=t((n=we(n)).h,(e=we(e)).h),i=Ue(n.c,e.c),o=Ue(n.l,e.l),u=Ue(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=u(t),n+""}}}function rr(t){return function n(e){function r(n,r){var i=t((n=Ne(n)).h,(r=Ne(r)).h),o=Ue(n.s,r.s),u=Ue(n.l,r.l),a=Ue(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}function ir(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e}function or(){return fy||(hy(ur),fy=ly.now()+sy)}function ur(){fy=0}function ar(){this._call=this._time=this._next=null}function cr(t,n,e){var r=new ar;return r.restart(t,n,e),r}function fr(){or(),++iy;for(var t,n=Dg;n;)(t=fy-n._time)>=0&&n._call.call(null,t),n=n._next;--iy}function sr(){fy=(cy=ly.now())+sy,iy=oy=0;try{fr()}finally{iy=0,hr(),fy=0}}function lr(){var t=ly.now(),n=t-cy;n>ay&&(sy-=n,cy=t)}function hr(){for(var t,n,e=Dg,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Dg=n);Og=t,pr(r)}function pr(t){if(!iy){oy&&(oy=clearTimeout(oy));t-fy>24?(t<1/0&&(oy=setTimeout(sr,t-ly.now()-sy)),uy&&(uy=clearInterval(uy))):(uy||(cy=ly.now(),uy=setInterval(lr,ay)),iy=1,hy(sr))}}function dr(t,n,e){var r=new ar;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r}function vr(t,n,e){var r=new ar,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?or():+e,r.restart(function o(u){u+=i,r.restart(o,i+=n,e),t(u)},n,e),r)}function gr(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};xr(t,e,{name:n,index:r,group:i,on:py,tween:dy,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:vy})}function yr(t,n){var e=mr(t,n);if(e.state>vy)throw new Error("too late; already scheduled");return e}function _r(t,n){var e=mr(t,n);if(e.state>yy)throw new Error("too late; already started");return e}function mr(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function xr(t,n,e){function r(t){e.state=gy,e.timer.restart(i,e.delay,e.time),e.delay<=t&&i(t-e.delay)}function i(r){var f,s,l,h;if(e.state!==gy)return u();for(f in c)if(h=c[f],h.name===e.name){if(h.state===_y)return dr(i);h.state===my?(h.state=by,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete c[f]):+f<n&&(h.state=by,h.timer.stop(),delete c[f])}if(dr(function(){e.state===_y&&(e.state=my,e.timer.restart(o,e.delay,e.time),o(r))}),e.state=yy,e.on.call("start",t,t.__data__,e.index,e.group),e.state===yy){for(e.state=_y,a=new Array(l=e.tween.length),f=0,s=-1;f<l;++f)(h=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(a[++s]=h);a.length=s+1}}function o(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(u),e.state=xy,1),i=-1,o=a.length;++i<o;)a[i].call(null,r);e.state===xy&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){e.state=by,e.timer.stop(),delete c[n];for(var r in c)return;delete t.__transition}var a,c=t.__transition;c[n]=e,e.timer=cr(r,0,e.time)}function br(t,n){var e,r,i,o=t.__transition,u=!0;if(o){n=null==n?null:n+"";for(i in o)(e=o[i]).name===n?(r=e.state>yy&&e.state<xy,e.state=by,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}}function wr(t){return this.each(function(){br(this,t)})}function Mr(t,n){var e,r;return function(){var i=_r(this,t),o=i.tween;if(o!==e){r=e=o;for(var u=0,a=r.length;u<a;++u)if(r[u].name===n){r=r.slice(),r.splice(u,1);break}}i.tween=r}}function Tr(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=_r(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,f=i.length;c<f;++c)if(i[c].name===n){i[c]=a;break}c===f&&i.push(a)}o.tween=i}}function Nr(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=mr(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?Mr:Tr)(e,t,n))}function kr(t,n,e){var r=t._id;return t.each(function(){var t=_r(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return mr(t,r).value[n]}}function Sr(t,n){var e;return("number"==typeof n?Fe:n instanceof re?Fg:(e=re(n))?(n=e,Fg):Be)(t,n)}function Ar(t){return function(){this.removeAttribute(t)}}function Er(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Cr(t,n,e){var r,i;return function(){var o=this.getAttribute(t);return o===e?null:o===r?i:i=n(r=o,e)}}function zr(t,n,e){var r,i;return function(){var o=this.getAttributeNS(t.space,t.local);return o===e?null:o===r?i:i=n(r=o,e)}}function Pr(t,n,e){var r,i,o;return function(){var u,a=e(this);return null==a?void this.removeAttribute(t):(u=this.getAttribute(t),u===a?null:u===r&&a===i?o:o=n(r=u,i=a))}}function Rr(t,n,e){var r,i,o;return function(){var u,a=e(this);return null==a?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),u===a?null:u===r&&a===i?o:o=n(r=u,i=a))}}function Lr(t,n){var e=Q(t),r="transform"===e?$g:Sr;return this.attrTween(t,"function"==typeof n?(e.local?Rr:Pr)(e,r,kr(this,"attr."+t,n)):null==n?(e.local?Er:Ar)(e):(e.local?zr:Cr)(e,r,n+""))}function Ur(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 qr(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 Dr(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=Q(t);return this.tween(e,(r.local?Ur:qr)(r,n))}function Or(t,n){return function(){yr(this,t).delay=+n.apply(this,arguments)}}function Fr(t,n){return n=+n,function(){yr(this,t).delay=n}}function Ir(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Or:Fr)(n,t)):mr(this.node(),n).delay}function Yr(t,n){return function(){_r(this,t).duration=+n.apply(this,arguments)}}function jr(t,n){return n=+n,function(){_r(this,t).duration=n}}function Br(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Yr:jr)(n,t)):mr(this.node(),n).duration}function Hr(t,n){if("function"!=typeof n)throw new Error;return function(){_r(this,t).ease=n}}function Xr(t){var n=this._id;return arguments.length?this.each(Hr(n,t)):mr(this.node(),n).ease}function Vr(t){"function"!=typeof t&&(t=Kv(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],f=0;f<a;++f)(o=u[f])&&t.call(o,o.__data__,f,u)&&c.push(o);return new pi(r,this._parents,this._name,this._id)}function $r(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,f=n[a],s=e[a],l=f.length,h=u[a]=new Array(l),p=0;p<l;++p)(c=f[p]||s[p])&&(h[p]=c);for(;a<r;++a)u[a]=n[a];return new pi(u,this._parents,this._name,this._id)}function Wr(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 Zr(t,n,e){var r,i,o=Wr(n)?yr:_r;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function Gr(t,n){var e=this._id;return arguments.length<2?mr(this.node(),e).on.on(t):this.each(Zr(e,t,n))}function Qr(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function Jr(){return this.on("end.remove",Qr(this._id))}function Kr(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=et(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,c,f=r[u],s=f.length,l=o[u]=new Array(s),h=0;h<s;++h)(a=f[h])&&(c=t.call(a,a.__data__,h,f))&&("__data__"in a&&(c.__data__=a.__data__),l[h]=c,gr(l[h],n,e,h,l,mr(a,e)));return new pi(o,this._parents,n,e)}function ti(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=ot(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c,f=r[a],s=f.length,l=0;l<s;++l)if(c=f[l]){for(var h,p=t.call(c,c.__data__,l,f),d=mr(c,e),v=0,g=p.length;v<g;++v)(h=p[v])&&gr(h,n,e,v,p,d);o.push(p),u.push(c)}return new pi(o,u,n,e)}function ni(){return new wy(this._groups,this._parents)}function ei(t,n){var e,r,i;return function(){var o=Ot(this,t),u=(this.style.removeProperty(t),Ot(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function ri(t){return function(){this.style.removeProperty(t)}}function ii(t,n,e){var r,i;return function(){var o=Ot(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}function oi(t,n,e){var r,i,o;return function(){var u=Ot(this,t),a=e(this);return null==a&&(this.style.removeProperty(t),a=Ot(this,t)),u===a?null:u===r&&a===i?o:o=n(r=u,i=a)}}function ui(t,n,e){var r="transform"==(t+="")?Vg:Sr;return null==n?this.styleTween(t,ei(t,r)).on("end.style."+t,ri(t)):this.styleTween(t,"function"==typeof n?oi(t,r,kr(this,"style."+t,n)):ii(t,r,n+""),e)}function ai(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 ci(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,ai(t,n,null==e?"":e))}function fi(t){return function(){this.textContent=t}}function si(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function li(t){return this.tween("text","function"==typeof t?si(kr(this,"text",t)):fi(null==t?"":t+""))}function hi(){for(var t=this._name,n=this._id,e=vi(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,f=0;f<c;++f)if(u=a[f]){var s=mr(u,n);gr(u,t,e,f,a,{time:s.time+s.delay+s.duration,delay:0,duration:s.duration,ease:s.ease})}return new pi(r,this._parents,t,e)}function pi(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function di(t){return Pn().transition(t)}function vi(){return++My}function gi(t){return+t}function yi(t){return t*t}function _i(t){return t*(2-t)}function mi(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function xi(t){return t*t*t}function bi(t){return--t*t*t+1}function wi(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function Mi(t){return 1-Math.cos(t*Ey)}function Ti(t){return Math.sin(t*Ey)}function Ni(t){return(1-Math.cos(Ay*t))/2}function ki(t){return Math.pow(2,10*t-10)}function Si(t){return 1-Math.pow(2,-10*t)}function Ai(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function Ei(t){return 1-Math.sqrt(1-t*t)}function Ci(t){return Math.sqrt(1- --t*t)}function zi(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function Pi(t){return 1-Ri(1-t)}function Ri(t){return(t=+t)<Cy?Fy*t*t:t<Py?Fy*(t-=zy)*t+Ry:t<Uy?Fy*(t-=Ly)*t+qy:Fy*(t-=Dy)*t+Oy}function Li(t){return((t*=2)<=1?1-Ri(1-t):Ri(t-1)+1)/2}function Ui(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return $y.time=or(),$y;return e}function qi(t){var n,e;t instanceof pi?(n=t._id,t=t._name):(n=vi(),(e=$y).time=or(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,f=0;f<c;++f)(u=a[f])&&gr(u,t,n,f,a,e||Ui(u,n));return new pi(r,this._parents,t,n)}function Di(t,n){var e,r,i=t.__transition;if(i){n=null==n?null:n+"";for(r in i)if((e=i[r]).state>gy&&e.name===n)return new pi([[t]],Wy,n,+r)}return null}function Oi(t){return function(){return t}}function Fi(t,n,e){this.target=t,this.type=n,this.selection=e}function Ii(){t.event.stopImmediatePropagation()}function Yi(){t.event.preventDefault(),t.event.stopImmediatePropagation()}function ji(t){return{type:t}}function Bi(){return!t.event.button}function Hi(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Xi(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Vi(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function $i(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Wi(){return Qi(Ky)}function Zi(){return Qi(t_)}function Gi(){return Qi(n_)}function Qi(n){function e(t){var e=t.property("__brush",a).selectAll(".overlay").data([ji("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",e_.overlay).merge(e).each(function(){var t=Xi(this).extent;Rn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])}),t.selectAll(".selection").data([ji("selection")]).enter().append("rect").attr("class","selection").attr("cursor",e_.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(n.handles,function(t){return t.type});i.exit().remove(),i.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return e_[t.type]}),t.each(r).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",u)}function r(){var t=Rn(this),n=Xi(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",function(t){return"e"===t.type[t.type.length-1]?n[1][0]-h/2:n[0][0]-h/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-h/2:n[0][1]-h/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+h:h}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+h:h})):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function i(t,n){return t.__brush.emitter||new o(t,n)}function o(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function u(){function e(){var t=Fn(T);!q||w||M||(Math.abs(t[0]-O[0])>Math.abs(t[1]-O[1])?M=!0:w=!0),O=t,b=!0,Yi(),o()}function o(){var t;switch(m=O[0]-D[0],x=O[1]-D[1],k){case Gy:case Zy:S&&(m=Math.max(P-l,Math.min(L-v,m)),h=l+m,g=v+m),A&&(x=Math.max(R-p,Math.min(U-y,x)),d=p+x,_=y+x);break;case Qy:S<0?(m=Math.max(P-l,Math.min(L-l,m)),h=l+m,g=v):S>0&&(m=Math.max(P-v,Math.min(L-v,m)),h=l,g=v+m),A<0?(x=Math.max(R-p,Math.min(U-p,x)),d=p+x,_=y):A>0&&(x=Math.max(R-y,Math.min(U-y,x)),d=p,_=y+x);break;case Jy:S&&(h=Math.max(P,Math.min(L,l-m*S)),g=Math.max(P,Math.min(L,v+m*S))),A&&(d=Math.max(R,Math.min(U,p-x*A)),_=Math.max(R,Math.min(U,y+x*A)))}g<h&&(S*=-1,t=l,l=v,v=t,t=h,h=g,g=t,N in r_&&Y.attr("cursor",e_[N=r_[N]])),_<d&&(A*=-1,t=p,p=y,y=t,t=d,d=_,_=t,N in i_&&Y.attr("cursor",e_[N=i_[N]])),E.selection&&(z=E.selection),w&&(h=z[0][0],g=z[1][0]),M&&(d=z[0][1],_=z[1][1]),z[0][0]===h&&z[0][1]===d&&z[1][0]===g&&z[1][1]===_||(E.selection=[[h,d],[g,_]],r.call(T),F.brush())}function u(){if(Ii(),t.event.touches){if(t.event.touches.length)return;c&&clearTimeout(c),c=setTimeout(function(){c=null},500),I.on("touchmove.brush touchend.brush touchcancel.brush",null)}else Vn(t.event.view,b),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);I.attr("pointer-events","all"),Y.attr("cursor",e_.overlay),E.selection&&(z=E.selection),Vi(z)&&(E.selection=null,r.call(T)),F.end()}function a(){switch(t.event.keyCode){case 16:q=S&&A;break;case 18:k===Qy&&(S&&(v=g-m*S,l=h+m*S),A&&(y=_-x*A,p=d+x*A),k=Jy,o());break;case 32:k!==Qy&&k!==Jy||(S<0?v=g-m:S>0&&(l=h-m),A<0?y=_-x:A>0&&(p=d-x),k=Gy,Y.attr("cursor",e_.selection),o());break;default:return}Yi()}function f(){switch(t.event.keyCode){case 16:q&&(w=M=q=!1,o());break;case 18:k===Jy&&(S<0?v=g:S>0&&(l=h),A<0?y=_:A>0&&(p=d),k=Qy,o());break;case 32:k===Gy&&(t.event.altKey?(S&&(v=g-m*S,l=h+m*S),A&&(y=_-x*A,p=d+x*A),k=Jy):(S<0?v=g:S>0&&(l=h),A<0?y=_:A>0&&(p=d),k=Qy),Y.attr("cursor",e_[N]),o());break;default:return}Yi()}if(t.event.touches){if(t.event.changedTouches.length<t.event.touches.length)return Yi()}else if(c)return;if(s.apply(this,arguments)){var l,h,p,d,v,g,y,_,m,x,b,w,M,T=this,N=t.event.target.__data__.type,k="selection"===(t.event.metaKey?N="overlay":N)?Zy:t.event.altKey?Jy:Qy,S=n===t_?null:o_[N],A=n===Ky?null:u_[N],E=Xi(T),C=E.extent,z=E.selection,P=C[0][0],R=C[0][1],L=C[1][0],U=C[1][1],q=S&&A&&t.event.shiftKey,D=Fn(T),O=D,F=i(T,arguments).beforestart();"overlay"===N?E.selection=z=[[l=n===t_?P:D[0],p=n===Ky?R:D[1]],[v=n===t_?L:l,y=n===Ky?U:p]]:(l=z[0][0],p=z[0][1],v=z[1][0],y=z[1][1]),h=l,d=p,g=v,_=y;var I=Rn(T).attr("pointer-events","none"),Y=I.selectAll(".overlay").attr("cursor",e_[N]);if(t.event.touches)I.on("touchmove.brush",e,!0).on("touchend.brush touchcancel.brush",u,!0);else{var j=Rn(t.event.view).on("keydown.brush",a,!0).on("keyup.brush",f,!0).on("mousemove.brush",e,!0).on("mouseup.brush",u,!0);Xn(t.event.view)}Ii(),br(T),r.call(T),F.start()}}function a(){var t=this.__brush||{selection:null};return t.extent=f.apply(this,arguments),t.dim=n,t}var c,f=Hi,s=Bi,l=V(e,"start","brush","end"),h=6;return e.move=function(t,e){t.selection?t.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function t(t){u.selection=1===t&&Vi(f)?null:s(t),r.call(o),a.brush()}var o=this,u=o.__brush,a=i(o,arguments),c=u.selection,f=n.input("function"==typeof e?e.apply(this,arguments):e,u.extent),s=He(c,f);return c&&f?t:t(1)}):t.each(function(){var t=this,o=arguments,u=t.__brush,a=n.input("function"==typeof e?e.apply(t,o):e,u.extent),c=i(t,o).beforestart();br(t),u.selection=null==a||Vi(a)?null:a,r.call(t),c.start().brush().end()})},o.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){kn(new Fi(e,t,n.output(this.state.selection)),l.apply,l,[t,this.that,this.args])}},e.extent=function(t){return arguments.length?(f="function"==typeof t?t:Oi([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):f},e.filter=function(t){return arguments.length?(s="function"==typeof t?t:Oi(!!t),e):s},e.handleSize=function(t){return arguments.length?(h=+t,e):h},e.on=function(){var t=l.on.apply(l,arguments);return t===l?e:t},e}function Ji(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function Ki(){function t(t){var o,u,a,c,f,s,l=t.length,h=[],p=d(l),v=[],g=[],y=g.groups=new Array(l),_=new Array(l*l);for(o=0,f=-1;++f<l;){for(u=0,s=-1;++s<l;)u+=t[f][s];h.push(u),v.push(d(l)),o+=u}for(e&&p.sort(function(t,n){return e(h[t],h[n])}),r&&v.forEach(function(n,e){n.sort(function(n,i){return r(t[e][n],t[e][i])})}),o=h_(0,l_-n*l)/o,c=o?n:l_/l,u=0,f=-1;++f<l;){for(a=u,s=-1;++s<l;){var m=p[f],x=v[m][s],b=t[m][x],w=u,M=u+=b*o;_[x*l+m]={index:m,subindex:x,startAngle:w,endAngle:M,value:b}}y[m]={index:m,startAngle:a,endAngle:u,value:h[m]},u+=c}for(f=-1;++f<l;)for(s=f-1;++s<l;){var T=_[s*l+f],N=_[f*l+s];(T.value||N.value)&&g.push(T.value<N.value?{source:N,target:T}:{source:T,target:N})}return i?g.sort(i):g}var n=0,e=null,r=null,i=null;return t.padAngle=function(e){return arguments.length?(n=h_(0,e),t):n},t.sortGroups=function(n){return arguments.length?(e=n,t):e},t.sortSubgroups=function(n){return arguments.length?(r=n,t):r},t.sortChords=function(n){return arguments.length?(null==n?i=null:(i=Ji(n))._=n,t):i&&i._},t}function to(t){return function(){return t}}function no(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function eo(){return new no}function ro(t){return t.source}function io(t){return t.target}function oo(t){return t.radius}function uo(t){return t.startAngle}function ao(t){return t.endAngle}function co(){function t(){var t,a=p_.call(arguments),c=n.apply(this,a),f=e.apply(this,a),s=+r.apply(this,(a[0]=c,a)),l=i.apply(this,a)-s_,h=o.apply(this,a)-s_,p=s*a_(l),d=s*c_(l),v=+r.apply(this,(a[0]=f,a)),g=i.apply(this,a)-s_,y=o.apply(this,a)-s_;if(u||(u=t=eo()),u.moveTo(p,d),u.arc(0,0,s,l,h),l===g&&h===y||(u.quadraticCurveTo(0,0,v*a_(g),v*c_(g)),u.arc(0,0,v,g,y)),u.quadraticCurveTo(0,0,p,d),u.closePath(),t)return u=null,t+""||null}var n=ro,e=io,r=oo,i=uo,o=ao,u=null;return t.radius=function(n){return arguments.length?(r="function"==typeof n?n:to(+n),t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:to(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:to(+n),t):o},t.source=function(e){return arguments.length?(n=e,t):n},t.target=function(n){return arguments.length?(e=n,t):e},t.context=function(n){return arguments.length?(u=null==n?null:n,t):u},t}function fo(){}function so(t,n){var e=new fo;if(t instanceof fo)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function lo(){function t(n,i,u,a){if(i>=o.length)return null!=e&&n.sort(e),null!=r?r(n):n;for(var c,f,s,l=-1,h=n.length,p=o[i++],d=so(),v=u();++l<h;)(s=d.get(c=p(f=n[l])+""))?s.push(f):d.set(c,[f]);return d.each(function(n,e){a(v,e,t(n,i,u,a))}),v}function n(t,e){if(++e>o.length)return t;var i,a=u[e-1];return null!=r&&e>=o.length?i=t.entries():(i=[],t.each(function(t,r){i.push({key:r,values:n(t,e)})})),null!=a?i.sort(function(t,n){return a(t.key,n.key)}):i}var e,r,i,o=[],u=[];return i={object:function(n){return t(n,0,ho,po)},map:function(n){return t(n,0,vo,go)},entries:function(e){return n(t(e,0,vo,go),0)},key:function(t){return o.push(t),i},sortKeys:function(t){return u[o.length-1]=t,i},sortValues:function(t){return e=t,i},rollup:function(t){return r=t,i}}}function ho(){return{}}function po(t,n,e){t[n]=e}function vo(){return so()}function go(t,n,e){t.set(n,e)}function yo(){}function _o(t,n){var e=new yo;if(t instanceof yo)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 mo(t){var n=[];for(var e in t)n.push(e);return n}function xo(t){var n=[];for(var e in t)n.push(t[e]);return n}function bo(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n}function wo(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}function Mo(t,n){var e=wo(t);return function(r,i){return n(e(r),i,t)}}function To(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 No(t){function n(t,n){var r,i,o=e(t,function(t,e){if(r)return r(t,e-1);i=t,r=n?Mo(t,n):wo(t)});return o.columns=i||[],o}function e(t,n){function e(){if(f)return m_;if(s)return s=!1,__;var n,e,r=u;if(t.charCodeAt(r)===x_){for(;u++<o&&t.charCodeAt(u)!==x_||t.charCodeAt(++u)===x_;);return(n=u)>=o?f=!0:(e=t.charCodeAt(u++))===b_?s=!0:e===w_&&(s=!0,t.charCodeAt(u)===b_&&++u),t.slice(r+1,n-1).replace(/""/g,'"')}for(;u<o;){if((e=t.charCodeAt(n=u++))===b_)s=!0;else if(e===w_)s=!0,t.charCodeAt(u)===b_&&++u;else if(e!==c)continue;return t.slice(r,n)}return f=!0,t.slice(r,o)}var r,i=[],o=t.length,u=0,a=0,f=o<=0,s=!1;for(t.charCodeAt(o-1)===b_&&--o,t.charCodeAt(o-1)===w_&&--o;(r=e())!==m_;){for(var l=[];r!==__&&r!==m_;)l.push(r),r=e();n&&null==(l=n(l,a++))||i.push(l)}return i}function r(n,e){return null==e&&(e=To(n)),[e.map(u).join(t)].concat(n.map(function(n){return e.map(function(t){return u(n[t])}).join(t)})).join("\n")}function i(t){return t.map(o).join("\n")}function o(n){return n.map(u).join(t)}function u(t){return null==t?"":a.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}var a=new RegExp('["'+t+"\n\r]"),c=t.charCodeAt(0);return{parse:n,parseRows:e,format:r,formatRows:i}}function ko(t,n){function e(){var e,i,o=r.length,u=0,a=0;for(e=0;e<o;++e)i=r[e],u+=i.x,a+=i.y;for(u=u/o-t,a=a/o-n,e=0;e<o;++e)i=r[e],i.x-=u,i.y-=a}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 So(t){return function(){return t}}function Ao(){return 1e-6*(Math.random()-.5)}function Eo(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Co(this.cover(n,e),n,e,t)}function Co(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,c,f,s,l,h,p=t._root,d={data:r},v=t._x0,g=t._y0,y=t._x1,_=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((f=n>=(o=(v+y)/2))?v=o:y=o,(s=e>=(u=(g+_)/2))?g=u:_=u,i=p,!(p=p[l=s<<1|f]))return i[l]=d,t;if(a=+t._x.call(null,p.data),c=+t._y.call(null,p.data),n===a&&e===c)return d.next=p,i?i[l]=d:t._root=d,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(f=n>=(o=(v+y)/2))?v=o:y=o,(s=e>=(u=(g+_)/2))?g=u:_=u}while((l=s<<1|f)==(h=(c>=u)<<1|a>=o));return i[h]=p,i[l]=d,t}function zo(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,f=1/0,s=-1/0,l=-1/0;for(e=0;e<o;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(u[e]=r,a[e]=i,r<c&&(c=r),r>s&&(s=r),i<f&&(f=i),i>l&&(l=i));for(s<c&&(c=this._x0,s=this._x1),l<f&&(f=this._y0,l=this._y1),this.cover(c,f).cover(s,l),e=0;e<o;++e)Co(this,u[e],a[e],t[e]);return this}function Po(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,o=(r=Math.floor(n))+1;else{if(!(e>t||t>i||r>n||n>o))return this;var u,a,c=i-e,f=this._root;switch(a=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{u=new Array(4),u[a]=f,f=u}while(c*=2,i=e+c,o=r+c,t>i||n>o);break;case 1:do{u=new Array(4),u[a]=f,f=u}while(c*=2,e=i-c,o=r+c,e>t||n>o);break;case 2:do{u=new Array(4),u[a]=f,f=u}while(c*=2,i=e+c,r=o-c,t>i||r>n);break;case 3:do{u=new Array(4),u[a]=f,f=u}while(c*=2,e=i-c,r=o-c,e>t||r>n)}this._root&&this._root.length&&(this._root=f)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this}function Ro(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t}function Lo(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 Uo(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function qo(t,n,e){var r,i,o,u,a,c,f,s=this._x0,l=this._y0,h=this._x1,p=this._y1,d=[],v=this._root;for(v&&d.push(new Uo(v,s,l,h,p)),null==e?e=1/0:(s=t-e,l=n-e,h=t+e,p=n+e,e*=e);c=d.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(o=c.y0)>p||(u=c.x1)<s||(a=c.y1)<l))if(v.length){var g=(i+u)/2,y=(o+a)/2;d.push(new Uo(v[3],g,y,u,a),new Uo(v[2],i,y,g,a),new Uo(v[1],g,o,u,y),new Uo(v[0],i,o,g,y)),(f=(n>=y)<<1|t>=g)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-f],d[d.length-1-f]=c)}else{var _=t-+this._x.call(null,v.data),m=n-+this._y.call(null,v.data),x=_*_+m*m;if(x<e){var b=Math.sqrt(e=x);s=t-b,l=n-b,h=t+b,p=n+b,r=v.data}}return r}function Do(t){if(isNaN(o=+this._x.call(null,t))||isNaN(u=+this._y.call(null,t)))return this;var n,e,r,i,o,u,a,c,f,s,l,h,p=this._root,d=this._x0,v=this._y0,g=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((f=o>=(a=(d+g)/2))?d=a:g=a,(s=u>=(c=(v+y)/2))?v=c:y=c,n=p,!(p=p[l=s<<1|f]))return this;if(!p.length)break;(n[l+1&3]||n[l+2&3]||n[l+3&3])&&(e=n,h=l)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):n?(i?n[l]=i:delete n[l],(p=n[0]||n[1]||n[2]||n[3])&&p===(n[3]||n[2]||n[1]||n[0])&&!p.length&&(e?e[h]=p:this._root=p),this):(this._root=i,this)}function Oo(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this}function Fo(){return this._root}function Io(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t}function Yo(t){var n,e,r,i,o,u,a=[],c=this._root;for(c&&a.push(new Uo(c,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&c.length){var f=(r+o)/2,s=(i+u)/2;(e=c[3])&&a.push(new Uo(e,f,s,o,u)),(e=c[2])&&a.push(new Uo(e,r,s,f,u)),(e=c[1])&&a.push(new Uo(e,f,i,o,s)),(e=c[0])&&a.push(new Uo(e,r,i,f,s))}return this}function jo(t){var n,e=[],r=[];for(this._root&&e.push(new Uo(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var o,u=n.x0,a=n.y0,c=n.x1,f=n.y1,s=(u+c)/2,l=(a+f)/2;(o=i[0])&&e.push(new Uo(o,u,a,s,l)),(o=i[1])&&e.push(new Uo(o,s,a,c,l)),(o=i[2])&&e.push(new Uo(o,u,l,s,f)),(o=i[3])&&e.push(new Uo(o,s,l,c,f))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this}function Bo(t){return t[0]}function Ho(t){return arguments.length?(this._x=t,this):this._x}function Xo(t){return t[1]}function Vo(t){return arguments.length?(this._y=t,this):this._y}function $o(t,n,e){var r=new Wo(null==n?Bo:n,null==e?Xo:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Wo(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Zo(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}function Go(t){return t.x+t.vx}function Qo(t){return t.y+t.vy}function Jo(t){function n(){function t(t,n,e,r,i){var o=t.data,a=t.r,p=l+a;{if(!o)return n>f+p||r<f-p||e>s+p||i<s-p;if(o.index>c.index){var d=f-o.x-o.vx,v=s-o.y-o.vy,g=d*d+v*v;g<p*p&&(0===d&&(d=Ao(),g+=d*d),0===v&&(v=Ao(),g+=v*v),g=(p-(g=Math.sqrt(g)))/g*u,c.vx+=(d*=g)*(p=(a*=a)/(h+a)),c.vy+=(v*=g)*p,o.vx-=d*(p=1-p),o.vy-=v*p)}}}for(var n,r,c,f,s,l,h,p=i.length,d=0;d<a;++d)for(r=$o(i,Go,Qo).visitAfter(e),n=0;n<p;++n)c=i[n],l=o[c.index],h=l*l,f=c.x+c.vx,s=c.y+c.vy,r.visit(t)}function e(t){if(t.data)return t.r=o[t.data.index];for(var n=t.r=0;n<4;++n)t[n]&&t[n].r>t.r&&(t.r=t[n].r)}function r(){if(i){var n,e,r=i.length;for(o=new Array(r),n=0;n<r;++n)e=i[n],o[e.index]=+t(e,n,i)}}var i,o,u=1,a=1;return"function"!=typeof t&&(t=So(null==t?1:+t)),n.initialize=function(t){i=t,r()},n.iterations=function(t){return arguments.length?(a=+t,n):a},n.strength=function(t){return arguments.length?(u=+t,n):u},n.radius=function(e){return arguments.length?(t="function"==typeof e?e:So(+e),r(),n):t},n}function Ko(t){return t.index}function tu(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function nu(t){function n(t){return 1/Math.min(f[t.source.index],f[t.target.index])}function e(n){for(var e=0,r=t.length;e<d;++e)for(var i,o,c,f,l,h,p,v=0;v<r;++v)i=t[v],o=i.source,c=i.target,f=c.x+c.vx-o.x-o.vx||Ao(),l=c.y+c.vy-o.y-o.vy||Ao(),h=Math.sqrt(f*f+l*l),h=(h-a[v])/h*n*u[v],f*=h,l*=h,c.vx-=f*(p=s[v]),c.vy-=l*p,o.vx+=f*(p=1-p),o.vy+=l*p}function r(){if(c){var n,e,r=c.length,h=t.length,p=so(c,l);for(n=0,f=new Array(r);n<h;++n)e=t[n],e.index=n,"object"!=typeof e.source&&(e.source=tu(p,e.source)),"object"!=typeof e.target&&(e.target=tu(p,e.target)),f[e.source.index]=(f[e.source.index]||0)+1,f[e.target.index]=(f[e.target.index]||0)+1;for(n=0,s=new Array(h);n<h;++n)e=t[n],s[n]=f[e.source.index]/(f[e.source.index]+f[e.target.index]);u=new Array(h),i(),a=new Array(h),o()}}function i(){if(c)for(var n=0,e=t.length;n<e;++n)u[n]=+h(t[n],n,t)}function o(){if(c)for(var n=0,e=t.length;n<e;++n)a[n]=+p(t[n],n,t)}var u,a,c,f,s,l=Ko,h=n,p=So(30),d=1;return null==t&&(t=[]),e.initialize=function(t){c=t,r()},e.links=function(n){return arguments.length?(t=n,r(),e):t},e.id=function(t){return arguments.length?(l=t,e):l},e.iterations=function(t){return arguments.length?(d=+t,e):d},e.strength=function(t){return arguments.length?(h="function"==typeof t?t:So(+t),i(),e):h},e.distance=function(t){return arguments.length?(p="function"==typeof t?t:So(+t),o(),e):p},e}function eu(t){return t.x}function ru(t){return t.y}function iu(t){function n(){e(),p.call("tick",o),u<a&&(h.stop(),p.call("end",o))}function e(){var n,e,r=t.length;for(u+=(f-u)*c,l.each(function(t){t(u)}),n=0;n<r;++n)e=t[n],null==e.fx?e.x+=e.vx*=s:(e.x=e.fx,e.vx=0),null==e.fy?e.y+=e.vy*=s:(e.y=e.fy,e.vy=0)}function r(){for(var n,e=0,r=t.length;e<r;++e){if(n=t[e],n.index=e,isNaN(n.x)||isNaN(n.y)){var i=U_*Math.sqrt(e),o=e*q_;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function i(n){return n.initialize&&n.initialize(t),n}var o,u=1,a=.001,c=1-Math.pow(a,1/300),f=0,s=.6,l=so(),h=cr(n),p=V("tick","end");return null==t&&(t=[]),r(),o={tick:e,restart:function(){return h.restart(n),o},stop:function(){return h.stop(),o},nodes:function(n){return arguments.length?(t=n,r(),l.each(i),o):t},alpha:function(t){return arguments.length?(u=+t,o):u},alphaMin:function(t){return arguments.length?(a=+t,o):a},alphaDecay:function(t){return arguments.length?(c=+t,o):+c},alphaTarget:function(t){return arguments.length?(f=+t,o):f},velocityDecay:function(t){return arguments.length?(s=1-t,o):1-s},force:function(t,n){return arguments.length>1?(null==n?l.remove(t):l.set(t,i(n)),o):l.get(t)},find:function(n,e,r){var i,o,u,a,c,f=0,s=t.length;for(null==r?r=1/0:r*=r,f=0;f<s;++f)a=t[f],i=n-a.x,o=e-a.y,(u=i*i+o*o)<r&&(c=a,r=u);return c},on:function(t,n){return arguments.length>1?(p.on(t,n),o):p.on(t)}}}function ou(){function t(t){var n,a=i.length,c=$o(i,eu,ru).visitAfter(e);for(u=t,n=0;n<a;++n)o=i[n],c.visit(r)}function n(){if(i){var t,n,e=i.length;for(a=new Array(e),t=0;t<e;++t)n=i[t],a[n.index]=+c(n,t,i)}}function e(t){var n,e,r,i,o,u=0,c=0;if(t.length){for(r=i=o=0;o<4;++o)(n=t[o])&&(e=Math.abs(n.value))&&(u+=n.value,c+=e,r+=e*n.x,i+=e*n.y);t.x=r/c,t.y=i/c}else{n=t,n.x=n.data.x,n.y=n.data.y;do{u+=a[n.data.index]}while(n=n.next)}t.value=u}function r(t,n,e,r){if(!t.value)return!0;var i=t.x-o.x,c=t.y-o.y,h=r-n,p=i*i+c*c;if(h*h/l<p)return p<s&&(0===i&&(i=Ao(),p+=i*i),0===c&&(c=Ao(),p+=c*c),p<f&&(p=Math.sqrt(f*p)),o.vx+=i*t.value*u/p,o.vy+=c*t.value*u/p),!0;if(!(t.length||p>=s)){(t.data!==o||t.next)&&(0===i&&(i=Ao(),p+=i*i),0===c&&(c=Ao(),p+=c*c),p<f&&(p=Math.sqrt(f*p)));do{t.data!==o&&(h=a[t.data.index]*u/p,o.vx+=i*h,o.vy+=c*h)}while(t=t.next)}}var i,o,u,a,c=So(-30),f=1,s=1/0,l=.81;return t.initialize=function(t){i=t,n()},t.strength=function(e){return arguments.length?(c="function"==typeof e?e:So(+e),n(),t):c},t.distanceMin=function(n){return arguments.length?(f=n*n,t):Math.sqrt(f)},t.distanceMax=function(n){return arguments.length?(s=n*n,t):Math.sqrt(s)},t.theta=function(n){return arguments.length?(l=n*n,t):Math.sqrt(l)},t}function uu(t,n,e){function r(t){for(var r=0,i=o.length;r<i;++r){var c=o[r],f=c.x-n||1e-6,s=c.y-e||1e-6,l=Math.sqrt(f*f+s*s),h=(a[r]-l)*u[r]*t/l;c.vx+=f*h,c.vy+=s*h}}function i(){if(o){var n,e=o.length;for(u=new Array(e),a=new Array(e),n=0;n<e;++n)a[n]=+t(o[n],n,o),u[n]=isNaN(a[n])?0:+c(o[n],n,o)}}var o,u,a,c=So(.1);return"function"!=typeof t&&(t=So(+t)),null==n&&(n=0),null==e&&(e=0),r.initialize=function(t){o=t,i()},r.strength=function(t){return arguments.length?(c="function"==typeof t?t:So(+t),i(),r):c},r.radius=function(n){return arguments.length?(t="function"==typeof n?n:So(+n),i(),r):t},r.x=function(t){return arguments.length?(n=+t,r):n},r.y=function(t){return arguments.length?(e=+t,r):e},r}function au(t){function n(t){for(var n,e=0,u=r.length;e<u;++e)n=r[e],n.vx+=(o[e]-n.x)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+u(r[n],n,r)}}var r,i,o,u=So(.1);return"function"!=typeof t&&(t=So(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:So(+t),e(),n):u},n.x=function(r){return arguments.length?(t="function"==typeof r?r:So(+r),e(),n):t},n}function cu(t){function n(t){for(var n,e=0,u=r.length;e<u;++e)n=r[e],n.vy+=(o[e]-n.y)*i[e]*t}function e(){if(r){var n,e=r.length;for(i=new Array(e),o=new Array(e),n=0;n<e;++n)i[n]=isNaN(o[n]=+t(r[n],n,r))?0:+u(r[n],n,r)}}var r,i,o,u=So(.1);return"function"!=typeof t&&(t=So(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:So(+t),e(),n):u},n.y=function(r){return arguments.length?(t="function"==typeof r?r:So(+r),e(),n):t},n}function fu(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 su(t){return t=fu(Math.abs(t)),t?t[1]:NaN}function lu(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}}function hu(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}}function pu(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}function du(t,n){var e=fu(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(L_=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+fu(t,Math.max(0,n+o-1))[0]}function vu(t,n){var e=fu(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"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 gu(t){return new yu(t)}function yu(t){if(!(n=O_.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",u=!!n[5],a=n[6]&&+n[6],c=!!n[7],f=n[8]&&+n[8].slice(1),s=n[9]||"";"n"===s?(c=!0,s="g"):D_[s]||(s=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=u,this.width=a,this.comma=c,this.precision=f,this.type=s}function _u(t){return t}function mu(t){function n(t){function n(t){var n,i,a,s=g,x=y;if("c"===v)x=_(t)+x,t="";else{t=+t;var b=t<0;if(t=_(Math.abs(t),d),b&&0==+t&&(b=!1),s=(b?"("===f?f:"-":"-"===f||"("===f?"":f)+s,x=("s"===v?I_[8+L_/3]:"")+x+(b&&"("===f?")":""),m)for(n=-1,i=t.length;++n<i;)if(48>(a=t.charCodeAt(n))||a>57){x=(46===a?o+t.slice(n+1):t.slice(n))+x,t=t.slice(0,n);break}}p&&!l&&(t=r(t,1/0));var w=s.length+t.length+x.length,M=w<h?new Array(h-w+1).join(e):"";switch(p&&l&&(t=r(M+t,M.length?h-x.length:1/0),M=""),c){case"<":t=s+t+x+M;break;case"=":t=s+M+t+x;break;case"^":t=M.slice(0,w=M.length>>1)+s+t+x+M.slice(w);break;default:t=M+s+t+x}return u(t)}t=gu(t);var e=t.fill,c=t.align,f=t.sign,s=t.symbol,l=t.zero,h=t.width,p=t.comma,d=t.precision,v=t.type,g="$"===s?i[0]:"#"===s&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",y="$"===s?i[1]:/[%p]/.test(v)?a:"",_=D_[v],m=!v||/[defgprs%]/.test(v);return d=null==d?v?6:12:/[gprs]/.test(v)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),n.toString=function(){return t+""},n}function e(t,e){var r=n((t=gu(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(su(e)/3))),o=Math.pow(10,-i),u=I_[8+i/3];return function(t){return r(o*t)+u}}var r=t.grouping&&t.thousands?lu(t.grouping,t.thousands):_u,i=t.currency,o=t.decimal,u=t.numerals?hu(t.numerals):_u,a=t.percent||"%";return{format:n,formatPrefix:e}}function xu(n){return F_=mu(n),t.format=F_.format,t.formatPrefix=F_.formatPrefix,F_}function bu(t){return Math.max(0,-su(Math.abs(t)))}function wu(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(su(n)/3)))-su(Math.abs(t)))}function Mu(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,su(n)-su(t))+1}function Tu(){return new Nu}function Nu(){this.reset()}function ku(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}function Su(t){return t>1?0:t<-1?bm:Math.acos(t)}function Au(t){return t>1?wm:t<-1?-wm:Math.asin(t)}function Eu(t){return(t=Um(t/2))*t}function Cu(){}function zu(t,n){t&&Im.hasOwnProperty(t.type)&&Im[t.type](t,n)}function Pu(t,n,e){var r,i=-1,o=t.length-e;for(n.lineStart();++i<o;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function Ru(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Pu(t[e],n,1);n.polygonEnd()}function Lu(t,n){t&&Fm.hasOwnProperty(t.type)?Fm[t.type](t,n):zu(t,n)}function Uu(){Bm.point=Du}function qu(){Ou(Y_,j_)}function Du(t,n){Bm.point=Ou,Y_=t,j_=n,t*=km,n*=km,B_=t,H_=Cm(n=n/2+Mm),X_=Um(n)}function Ou(t,n){t*=km,n*=km,n=n/2+Mm;var e=t-B_,r=e>=0?1:-1,i=r*e,o=Cm(n),u=Um(n),a=X_*u,c=H_*o+a*Cm(i),f=a*r*Um(i);Ym.add(Em(f,c)),B_=t,H_=o,X_=u}function Fu(t){return jm.reset(),Lu(t,Bm),2*jm}function Iu(t){return[Em(t[1],t[0]),Au(t[2])]}function Yu(t){var n=t[0],e=t[1],r=Cm(e);return[r*Cm(n),r*Um(n),Um(e)]}function ju(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Bu(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function Hu(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Xu(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Vu(t){var n=Dm(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function $u(t,n){tm.push(nm=[V_=t,W_=t]),n<$_&&($_=n),n>Z_&&(Z_=n)}function Wu(t,n){var e=Yu([t*km,n*km]);if(K_){var r=Bu(K_,e),i=[r[1],-r[0],0],o=Bu(i,r);Vu(o),o=Iu(o);var u,a=t-G_,c=a>0?1:-1,f=o[0]*Nm*c,s=Sm(a)>180;s^(c*G_<f&&f<c*t)?(u=o[1]*Nm)>Z_&&(Z_=u):(f=(f+360)%360-180,s^(c*G_<f&&f<c*t)?(u=-o[1]*Nm)<$_&&($_=u):(n<$_&&($_=n),n>Z_&&(Z_=n))),s?t<G_?ta(V_,t)>ta(V_,W_)&&(W_=t):ta(t,W_)>ta(V_,W_)&&(V_=t):W_>=V_?(t<V_&&(V_=t),t>W_&&(W_=t)):t>G_?ta(V_,t)>ta(V_,W_)&&(W_=t):ta(t,W_)>ta(V_,W_)&&(V_=t)}else tm.push(nm=[V_=t,W_=t]);n<$_&&($_=n),n>Z_&&(Z_=n),K_=e,G_=t}function Zu(){Xm.point=Wu}function Gu(){nm[0]=V_,nm[1]=W_,Xm.point=$u,K_=null}function Qu(t,n){if(K_){var e=t-G_;Hm.add(Sm(e)>180?e+(e>0?360:-360):e)}else Q_=t,J_=n;Bm.point(t,n),Wu(t,n)}function Ju(){Bm.lineStart()}function Ku(){Qu(Q_,J_),Bm.lineEnd(),Sm(Hm)>mm&&(V_=-(W_=180)),nm[0]=V_,nm[1]=W_,K_=null}function ta(t,n){return(n-=t)<0?n+360:n}function na(t,n){return t[0]-n[0]}function ea(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function ra(t){var n,e,r,i,o,u,a;if(Z_=W_=-(V_=$_=1/0),tm=[],Lu(t,Xm),e=tm.length){for(tm.sort(na),n=1,r=tm[0],o=[r];n<e;++n)i=tm[n],ea(r,i[0])||ea(r,i[1])?(ta(r[0],i[1])>ta(r[0],r[1])&&(r[1]=i[1]),ta(i[0],r[1])>ta(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,e=o.length-1,n=0,r=o[e];n<=e;r=i,++n)i=o[n],(a=ta(r[1],i[0]))>u&&(u=a,V_=i[0],W_=r[1])}return tm=nm=null,V_===1/0||$_===1/0?[[NaN,NaN],[NaN,NaN]]:[[V_,$_],[W_,Z_]]}function ia(t,n){t*=km,n*=km;var e=Cm(n);oa(e*Cm(t),e*Um(t),Um(n))}function oa(t,n,e){++em,im+=(t-im)/em,om+=(n-om)/em,um+=(e-um)/em}function ua(){Vm.point=aa}function aa(t,n){t*=km,n*=km;var e=Cm(n);vm=e*Cm(t),gm=e*Um(t),ym=Um(n),Vm.point=ca,oa(vm,gm,ym)}function ca(t,n){t*=km,n*=km;var e=Cm(n),r=e*Cm(t),i=e*Um(t),o=Um(n),u=Em(Dm((u=gm*o-ym*i)*u+(u=ym*r-vm*o)*u+(u=vm*i-gm*r)*u),vm*r+gm*i+ym*o);rm+=u,am+=u*(vm+(vm=r)),cm+=u*(gm+(gm=i)),fm+=u*(ym+(ym=o)),oa(vm,gm,ym)}function fa(){Vm.point=ia}function sa(){Vm.point=ha}function la(){pa(pm,dm),Vm.point=ia}function ha(t,n){pm=t,dm=n,t*=km,n*=km,Vm.point=pa;var e=Cm(n);vm=e*Cm(t),gm=e*Um(t),ym=Um(n),oa(vm,gm,ym)}function pa(t,n){t*=km,n*=km;var e=Cm(n),r=e*Cm(t),i=e*Um(t),o=Um(n),u=gm*o-ym*i,a=ym*r-vm*o,c=vm*i-gm*r,f=Dm(u*u+a*a+c*c),s=Au(f),l=f&&-s/f;sm+=l*u,lm+=l*a,hm+=l*c,rm+=s,am+=s*(vm+(vm=r)),cm+=s*(gm+(gm=i)),fm+=s*(ym+(ym=o)),oa(vm,gm,ym)}function da(t){em=rm=im=om=um=am=cm=fm=sm=lm=hm=0,Lu(t,Vm);var n=sm,e=lm,r=hm,i=n*n+e*e+r*r;return i<xm&&(n=am,e=cm,r=fm,rm<mm&&(n=im,e=om,r=um),(i=n*n+e*e+r*r)<xm)?[NaN,NaN]:[Em(e,n)*Nm,Au(r/Dm(i))*Nm]}function va(t){return function(){return t}}function ga(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e}function ya(t,n){return[t>bm?t-Tm:t<-bm?t+Tm:t,n]}function _a(t,n,e){return(t%=Tm)?n||e?ga(xa(t),ba(n,e)):xa(t):n||e?ba(n,e):ya}function ma(t){return function(n,e){return n+=t,[n>bm?n-Tm:n<-bm?n+Tm:n,e]}}function xa(t){var n=ma(t);return n.invert=ma(-t),n}function ba(t,n){function e(t,n){var e=Cm(n),a=Cm(t)*e,c=Um(t)*e,f=Um(n),s=f*r+a*i;return[Em(c*o-s*u,a*r-f*i),Au(s*o+c*u)]}var r=Cm(t),i=Um(t),o=Cm(n),u=Um(n);return e.invert=function(t,n){var e=Cm(n),a=Cm(t)*e,c=Um(t)*e,f=Um(n),s=f*o-c*u;return[Em(c*o+f*u,a*r+s*i),Au(s*r-a*i)]},e}function wa(t){function n(n){return n=t(n[0]*km,n[1]*km),n[0]*=Nm,n[1]*=Nm,n}return t=_a(t[0]*km,t[1]*km,t.length>2?t[2]*km:0),n.invert=function(n){return n=t.invert(n[0]*km,n[1]*km),n[0]*=Nm,n[1]*=Nm,n},n}function Ma(t,n,e,r,i,o){if(e){var u=Cm(n),a=Um(n),c=r*e;null==i?(i=n+r*Tm,o=n-c/2):(i=Ta(u,i),o=Ta(u,o),(r>0?i<o:i>o)&&(i+=r*Tm));for(var f,s=i;r>0?s>o:s<o;s-=c)f=Iu([u,-a*Cm(s),-a*Um(s)]),t.point(f[0],f[1])}}function Ta(t,n){n=Yu(n),n[0]-=t,Vu(n);var e=Su(-n[1]);return((-n[2]<0?-e:e)+Tm-mm)%Tm}function Na(){function t(t,n){e.push(t=r(t,n)),t[0]*=Nm,t[1]*=Nm}function n(){var t=i.apply(this,arguments),n=o.apply(this,arguments)*km,c=u.apply(this,arguments)*km;return e=[],r=_a(-t[0]*km,-t[1]*km,0).invert,Ma(a,n,c,1),t={type:"Polygon",coordinates:[e]},e=r=null,t}var e,r,i=va([0,0]),o=va(90),u=va(6),a={point:t};return n.center=function(t){return arguments.length?(i="function"==typeof t?t:va([+t[0],+t[1]]),n):i},n.radius=function(t){return arguments.length?(o="function"==typeof t?t:va(+t),n):o},n.precision=function(t){return arguments.length?(u="function"==typeof t?t:va(+t),n):u},n}function ka(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:Cu,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function Sa(t,n){return Sm(t[0]-n[0])<mm&&Sm(t[1]-n[1])<mm}function Aa(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function Ea(t,n,e,r,i){var o,u,a=[],c=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],u=t[n];if(Sa(r,u)){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);return void i.lineEnd()}a.push(e=new Aa(r,t,null,!0)),c.push(e.o=new Aa(r,null,e,!1)),a.push(e=new Aa(u,t,null,!1)),c.push(e.o=new Aa(u,null,e,!0))}}),a.length){for(c.sort(n),Ca(a),Ca(c),o=0,u=c.length;o<u;++o)c[o].e=e=!e;for(var f,s,l=a[0];;){for(var h=l,p=!0;h.v;)if((h=h.n)===l)return;f=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,u=f.length;o<u;++o)i.point((s=f[o])[0],s[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(f=h.p.z,o=f.length-1;o>=0;--o)i.point((s=f[o])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,f=h.z,p=!p}while(!h.v);i.lineEnd()}}}function Ca(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function za(t,n){var e=n[0],r=n[1],i=[Um(e),-Cm(e),0],o=0,u=0;ix.reset();for(var a=0,c=t.length;a<c;++a)if(s=(f=t[a]).length)for(var f,s,l=f[s-1],h=l[0],p=l[1]/2+Mm,d=Um(p),v=Cm(p),g=0;g<s;++g,h=_,d=x,v=b,l=y){var y=f[g],_=y[0],m=y[1]/2+Mm,x=Um(m),b=Cm(m),w=_-h,M=w>=0?1:-1,T=M*w,N=T>bm,k=d*x;if(ix.add(Em(k*M*Um(T),v*b+k*Cm(T))),o+=N?w+M*Tm:w,N^h>=e^_>=e){var S=Bu(Yu(l),Yu(y));Vu(S);var A=Bu(i,S);Vu(A);var E=(N^w>=0?-1:1)*Au(A[2]);(r>E||r===E&&(S[0]||S[1]))&&(u+=N^w>=0?1:-1)}}return(o<-mm||o<mm&&ix<-mm)^1&u}function Pa(t,n,e,r){return function(i){function o(n,e){t(n,e)&&i.point(n,e)}function u(t,n){v.point(t,n)}function a(){m.point=u,v.lineStart()}function c(){m.point=o,v.lineEnd()}function f(t,n){d.push([t,n]),y.point(t,n)}function s(){y.lineStart(),d=[]}function l(){f(d[0][0],d[0][1]),y.lineEnd();var t,n,e,r,o=y.clean(),u=g.result(),a=u.length;if(d.pop(),h.push(d),d=null,a)if(1&o){if(e=u[0],(n=e.length-1)>0){for(_||(i.polygonStart(),_=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else a>1&&2&o&&u.push(u.pop().concat(u.shift())),p.push(u.filter(Ra))}var h,p,d,v=n(i),g=ka(),y=n(g),_=!1,m={point:o,lineStart:a,lineEnd:c,polygonStart:function(){m.point=f,m.lineStart=s,m.lineEnd=l,p=[],h=[]},polygonEnd:function(){m.point=o,m.lineStart=a,m.lineEnd=c,p=k(p);var t=za(h,r);p.length?(_||(i.polygonStart(),_=!0),Ea(p,La,t,e,i)):t&&(_||(i.polygonStart(),_=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),_&&(i.polygonEnd(),_=!1),p=h=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};return m}}function Ra(t){return t.length>1}function La(t,n){return((t=t.x)[0]<0?t[1]-wm-mm:wm-t[1])-((n=n.x)[0]<0?n[1]-wm-mm:wm-n[1])}function Ua(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?bm:-bm,c=Sm(o-e);Sm(c-bm)<mm?(t.point(e,r=(r+u)/2>0?wm:-wm),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&c>=bm&&(Sm(e-i)<mm&&(e-=i*mm),Sm(o-a)<mm&&(o-=a*mm),r=qa(e,r,o,u),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=o,r=u),i=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}function qa(t,n,e,r){var i,o,u=Um(t-e);return Sm(u)>mm?Am((Um(n)*(o=Cm(r))*Um(e)-Um(r)*(i=Cm(n))*Um(t))/(i*o*u)):(n+r)/2}function Da(t,n,e,r){var i;if(null==t)i=e*wm,r.point(-bm,i),r.point(0,i),r.point(bm,i),r.point(bm,0),r.point(bm,-i),r.point(0,-i),r.point(-bm,-i),r.point(-bm,0),r.point(-bm,i);else if(Sm(t[0]-n[0])>mm){var o=t[0]<n[0]?bm:-bm;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])}function Oa(t){function n(n,e,r,i){Ma(i,t,a,r,n,e)}function e(t,n){return Cm(t)*Cm(n)>u}function r(t){var n,r,u,a,s;return{lineStart:function(){a=u=!1,s=1},point:function(l,h){var p,d=[l,h],v=e(l,h),g=c?v?0:o(l,h):v?o(l+(l<0?bm:-bm),h):0;if(!n&&(a=u=v)&&t.lineStart(),v!==u&&(!(p=i(n,d))||Sa(n,p)||Sa(d,p))&&(d[0]+=mm,d[1]+=mm,v=e(d[0],d[1])),v!==u)s=0,v?(t.lineStart(),p=i(d,n),t.point(p[0],p[1])):(p=i(n,d),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(f&&n&&c^v){var y;g&r||!(y=i(d,n,!0))||(s=0,c?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!v||n&&Sa(n,d)||t.point(d[0],d[1]),n=d,u=v,r=g},lineEnd:function(){u&&t.lineEnd(),n=null},clean:function(){return s|(a&&u)<<1}}}function i(t,n,e){var r=Yu(t),i=Yu(n),o=[1,0,0],a=Bu(r,i),c=ju(a,a),f=a[0],s=c-f*f;if(!s)return!e&&t;var l=u*c/s,h=-u*f/s,p=Bu(o,a),d=Xu(o,l);Hu(d,Xu(a,h));var v=p,g=ju(d,v),y=ju(v,v),_=g*g-y*(ju(d,d)-1);if(!(_<0)){var m=Dm(_),x=Xu(v,(-g-m)/y);if(Hu(x,d),x=Iu(x),!e)return x;var b,w=t[0],M=n[0],T=t[1],N=n[1];M<w&&(b=w,w=M,M=b);var k=M-w,S=Sm(k-bm)<mm,A=S||k<mm;if(!S&&N<T&&(b=T,T=N,N=b),A?S?T+N>0^x[1]<(Sm(x[0]-w)<mm?T:N):T<=x[1]&&x[1]<=N:k>bm^(w<=x[0]&&x[0]<=M)){var E=Xu(v,(-g+m)/y);return Hu(E,d),[x,Iu(E)]}}}function o(n,e){var r=c?t:bm-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var u=Cm(t),a=6*km,c=u>0,f=Sm(u)>mm;return Pa(e,r,n,c?[0,-t]:[-bm,t-bm])}function Fa(t,n,e,r,i,o){var u,a=t[0],c=t[1],f=n[0],s=n[1],l=0,h=1,p=f-a,d=s-c;if(u=e-a,p||!(u>0)){if(u/=p,p<0){if(u<l)return;u<h&&(h=u)}else if(p>0){if(u>h)return;u>l&&(l=u)}if(u=i-a,p||!(u<0)){if(u/=p,p<0){if(u>h)return;u>l&&(l=u)}else if(p>0){if(u<l)return;u<h&&(h=u)}if(u=r-c,d||!(u>0)){if(u/=d,d<0){if(u<l)return;u<h&&(h=u)}else if(d>0){if(u>h)return;u>l&&(l=u)}if(u=o-c,d||!(u<0)){if(u/=d,d<0){if(u>h)return;u>l&&(l=u)}else if(d>0){if(u<l)return;u<h&&(h=u)}return l>0&&(t[0]=a+l*p,t[1]=c+l*d),h<1&&(n[0]=a+h*p,n[1]=c+h*d),!0}}}}}function Ia(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,f){var s=0,l=0;if(null==i||(s=u(i,a))!==(l=u(o,a))||c(i,o)<0^a>0)do{f.point(0===s||3===s?t:e,s>1?r:n)}while((s=(s+a+4)%4)!==l);else f.point(o[0],o[1])}function u(r,i){return Sm(r[0]-t)<mm?i>0?0:3:Sm(r[0]-e)<mm?i>0?2:1:Sm(r[1]-n)<mm?i>0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(u){function c(t,n){i(t,n)&&S.point(t,n)}function f(){for(var n=0,e=0,i=g.length;e<i;++e)for(var o,u,a=g[e],c=1,f=a.length,s=a[0],l=s[0],h=s[1];c<f;++c)o=l,u=h,s=a[c],l=s[0],h=s[1],u<=r?h>r&&(l-o)*(r-u)>(h-u)*(t-o)&&++n:h<=r&&(l-o)*(r-u)<(h-u)*(t-o)&&--n;return n}function s(){S=A,v=[],g=[],N=!0}function l(){var t=f(),n=N&&t,e=(v=k(v)).length;(n||e)&&(u.polygonStart(),n&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),e&&Ea(v,a,t,o,u),u.polygonEnd()),S=u,v=g=y=null}function h(){E.point=d,g&&g.push(y=[]),T=!0,M=!1,b=w=NaN}function p(){v&&(d(_,m),x&&M&&A.rejoin(),v.push(A.result())),E.point=c,M&&S.lineEnd()}function d(o,u){var a=i(o,u);if(g&&y.push([o,u]),T)_=o,m=u,x=a,T=!1,a&&(S.lineStart(),S.point(o,u));else if(a&&M)S.point(o,u);else{var c=[b=Math.max(ax,Math.min(ux,b)),w=Math.max(ax,Math.min(ux,w))],f=[o=Math.max(ax,Math.min(ux,o)),u=Math.max(ax,Math.min(ux,u))];Fa(c,f,t,n,e,r)?(M||(S.lineStart(),S.point(c[0],c[1])),S.point(f[0],f[1]),a||S.lineEnd(),N=!1):a&&(S.lineStart(),S.point(o,u),N=!1)}b=o,w=u,M=a}var v,g,y,_,m,x,b,w,M,T,N,S=u,A=ka(),E={point:c,lineStart:h,lineEnd:p,polygonStart:s,polygonEnd:l};return E}}function Ya(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=Ia(r,i,o,u)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],u=+a[1][1],t=n=null,e):[[r,i],[o,u]]}}}function ja(){fx.point=Ha,fx.lineEnd=Ba}function Ba(){fx.point=fx.lineEnd=Cu}function Ha(t,n){t*=km,n*=km,$m=t,Wm=Um(n),Zm=Cm(n),fx.point=Xa}function Xa(t,n){t*=km,n*=km;var e=Um(n),r=Cm(n),i=Sm(t-$m),o=Cm(i),u=Um(i),a=r*u,c=Zm*e-Wm*r*o,f=Wm*e+Zm*r*o;cx.add(Em(Dm(a*a+c*c),f)),$m=t,Wm=e,Zm=r}function Va(t){return cx.reset(),Lu(t,fx),+cx}function $a(t,n){return sx[0]=t,sx[1]=n,Va(lx)}function Wa(t,n){return!(!t||!px.hasOwnProperty(t.type))&&px[t.type](t,n)}function Za(t,n){return 0===$a(t,n)}function Ga(t,n){var e=$a(t[0],t[1]);return $a(t[0],n)+$a(n,t[1])<=e+mm}function Qa(t,n){return!!za(t.map(Ja),Ka(n))}function Ja(t){return t=t.map(Ka),t.pop(),t}function Ka(t){return[t[0]*km,t[1]*km]}function tc(t,n){return(t&&hx.hasOwnProperty(t.type)?hx[t.type]:Wa)(t,n)}function nc(t,n,e){var r=d(t,n-mm,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function ec(t,n,e){var r=d(t,n-mm,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function rc(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return d(zm(o/y)*y,i,y).map(h).concat(d(zm(f/_)*_,c,_).map(p)).concat(d(zm(r/v)*v,e,v).filter(function(t){return Sm(t%y)>mm}).map(s)).concat(d(zm(a/g)*g,u,g).filter(function(t){return Sm(t%_)>mm}).map(l))}var e,r,i,o,u,a,c,f,s,l,h,p,v=10,g=v,y=90,_=360,m=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(o).concat(p(c).slice(1),h(i).reverse().slice(1),p(f).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.extentMajor(n).extentMinor(n):t.extentMinor()},t.extentMajor=function(n){return arguments.length?(o=+n[0][0],i=+n[1][0],f=+n[0][1],c=+n[1][1],o>i&&(n=o,o=i,i=n),f>c&&(n=f,f=c,c=n),t.precision(m)):[[o,f],[i,c]]},t.extentMinor=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],a=+n[0][1],u=+n[1][1],r>e&&(n=r,r=e,e=n),a>u&&(n=a,a=u,u=n),t.precision(m)):[[r,a],[e,u]]},t.step=function(n){return arguments.length?t.stepMajor(n).stepMinor(n):t.stepMinor()},t.stepMajor=function(n){return arguments.length?(y=+n[0],_=+n[1],t):[y,_]},t.stepMinor=function(n){return arguments.length?(v=+n[0],g=+n[1],t):[v,g]},t.precision=function(n){return arguments.length?(m=+n,s=nc(a,u,90),l=ec(r,e,m),h=nc(f,c,90),p=ec(o,i,m),t):m},t.extentMajor([[-180,-90+mm],[180,90-mm]]).extentMinor([[-180,-80-mm],[180,80+mm]])}function ic(){return rc()()}function oc(t,n){var e=t[0]*km,r=t[1]*km,i=n[0]*km,o=n[1]*km,u=Cm(r),a=Um(r),c=Cm(o),f=Um(o),s=u*Cm(e),l=u*Um(e),h=c*Cm(i),p=c*Um(i),d=2*Au(Dm(Eu(o-r)+u*c*Eu(i-e))),v=Um(d),g=d?function(t){var n=Um(t*=d)/v,e=Um(d-t)/v,r=e*s+n*h,i=e*l+n*p,o=e*a+n*f;return[Em(i,r)*Nm,Em(o,Dm(r*r+i*i))*Nm]}:function(){return[e*Nm,r*Nm]};return g.distance=d,g}function uc(t){return t}function ac(){gx.point=cc}function cc(t,n){gx.point=fc,Gm=Jm=t,Qm=Km=n}function fc(t,n){vx.add(Km*t-Jm*n),Jm=t,Km=n}function sc(){fc(Gm,Qm)}function lc(t,n){t<yx&&(yx=t),t>mx&&(mx=t),n<_x&&(_x=n),n>xx&&(xx=n)}function hc(t,n){wx+=t,Mx+=n,++Tx}function pc(){zx.point=dc}function dc(t,n){zx.point=vc,hc(ex=t,rx=n)}function vc(t,n){var e=t-ex,r=n-rx,i=Dm(e*e+r*r);Nx+=i*(ex+t)/2,kx+=i*(rx+n)/2,Sx+=i,hc(ex=t,rx=n)}function gc(){zx.point=hc}function yc(){zx.point=mc}function _c(){xc(tx,nx)}function mc(t,n){zx.point=xc,hc(tx=ex=t,nx=rx=n)}function xc(t,n){var e=t-ex,r=n-rx,i=Dm(e*e+r*r);Nx+=i*(ex+t)/2,kx+=i*(rx+n)/2,Sx+=i,i=rx*t-ex*n,Ax+=i*(ex+t),Ex+=i*(rx+n),Cx+=3*i,hc(ex=t,rx=n)}function bc(t){this._context=t}function wc(t,n){Ox.point=Mc,Rx=Ux=t,Lx=qx=n}function Mc(t,n){Ux-=t,qx-=n,Dx.add(Dm(Ux*Ux+qx*qx)),Ux=t,qx=n}function Tc(){this._string=[]}function Nc(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function kc(t,n){function e(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),Lu(t,r(i))),i.result()}var r,i,o=4.5;return e.area=function(t){return Lu(t,r(gx)),gx.result()},e.measure=function(t){return Lu(t,r(Ox)),Ox.result()},e.bounds=function(t){return Lu(t,r(bx)),bx.result()},e.centroid=function(t){return Lu(t,r(zx)),zx.result()},e.projection=function(n){return arguments.length?(r=null==n?(t=null,uc):(t=n).stream,e):t},e.context=function(t){return arguments.length?(i=null==t?(n=null,new Tc):new bc(n=t),"function"!=typeof o&&i.pointRadius(o),e):n},e.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),e):o},e.projection(t).context(n)}function Sc(t){return{stream:Ac(t)}}function Ac(t){return function(n){var e=new Ec;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Ec(){}function Cc(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Lu(e,t.stream(bx)),n(bx.result()),null!=r&&t.clipExtent(r),t}function zc(t,n,e){return Cc(t,function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),u=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([u,a])},e)}function Pc(t,n,e){return zc(t,[[0,0],n],e)}function Rc(t,n,e){return Cc(t,function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,u=-i*e[0][1];t.scale(150*i).translate([o,u])},e)}function Lc(t,n,e){return Cc(t,function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],u=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,u])},e)}function Uc(t,n){return+n?Dc(t,n):qc(t)}function qc(t){return Ac({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}function Dc(t,n){function e(r,i,o,u,a,c,f,s,l,h,p,d,v,g){var y=f-r,_=s-i,m=y*y+_*_;if(m>4*n&&v--){var x=u+h,b=a+p,w=c+d,M=Dm(x*x+b*b+w*w),T=Au(w/=M),N=Sm(Sm(w)-1)<mm||Sm(o-l)<mm?(o+l)/2:Em(b,x),k=t(N,T),S=k[0],A=k[1],E=S-r,C=A-i,z=_*E-y*C;(z*z/m>n||Sm((y*E+_*C)/m-.5)>.3||u*h+a*p+c*d<Ix)&&(e(r,i,o,u,a,c,S,A,N,x/=M,b/=M,w,v,g),g.point(S,A),e(S,A,N,x,b,w,f,s,l,h,p,d,v,g))}}return function(n){function r(e,r){e=t(e,r),n.point(e[0],e[1])}function i(){y=NaN,w.point=o,n.lineStart()}function o(r,i){var o=Yu([r,i]),u=t(r,i);e(y,_,g,m,x,b,y=u[0],_=u[1],g=r,m=o[0],x=o[1],b=o[2],Fx,n),n.point(y,_)}function u(){w.point=r,n.lineEnd()}function a(){i(),w.point=c,w.lineEnd=f}function c(t,n){o(s=t,n),l=y,h=_,p=m,d=x,v=b,w.point=o}function f(){e(y,_,g,m,x,b,l,h,s,p,d,v,Fx,n),w.lineEnd=u,u()}var s,l,h,p,d,v,g,y,_,m,x,b,w={point:r,lineStart:i,lineEnd:u,polygonStart:function(){n.polygonStart(),w.lineStart=a},polygonEnd:function(){n.polygonEnd(),w.lineStart=i}};return w}}function Oc(t){return Ac({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}function Fc(t){return Ic(function(){return t})()}function Ic(t){function n(t){return t=s(t[0]*km,t[1]*km),[t[0]*g+a,c-t[1]*g]}function e(t){return(t=s.invert((t[0]-a)/g,(c-t[1])/g))&&[t[0]*Nm,t[1]*Nm]}function r(t,n){return t=u(t,n),[t[0]*g+a,c-t[1]*g]}function i(){s=ga(f=_a(b,w,M),u);var t=u(m,x);return a=y-t[0]*g,c=_+t[1]*g,o()}function o(){return d=v=null,n}var u,a,c,f,s,l,h,p,d,v,g=150,y=480,_=250,m=0,x=0,b=0,w=0,M=0,T=null,N=ox,k=null,S=uc,A=.5,E=Uc(r,A);return n.stream=function(t){return d&&v===t?d:d=Yx(Oc(f)(N(E(S(v=t)))))},n.preclip=function(t){return arguments.length?(N=t,T=void 0,o()):N},n.postclip=function(t){return arguments.length?(S=t,k=l=h=p=null,o()):S},n.clipAngle=function(t){return arguments.length?(N=+t?Oa(T=t*km):(T=null,ox),o()):T*Nm},n.clipExtent=function(t){return arguments.length?(S=null==t?(k=l=h=p=null,uc):Ia(k=+t[0][0],l=+t[0][1],h=+t[1][0],p=+t[1][1]),o()):null==k?null:[[k,l],[h,p]]},n.scale=function(t){return arguments.length?(g=+t,i()):g},n.translate=function(t){return arguments.length?(y=+t[0],_=+t[1],i()):[y,_]},n.center=function(t){return arguments.length?(m=t[0]%360*km,x=t[1]%360*km,i()):[m*Nm,x*Nm]},n.rotate=function(t){return arguments.length?(b=t[0]%360*km,w=t[1]%360*km,M=t.length>2?t[2]%360*km:0,i()):[b*Nm,w*Nm,M*Nm]},n.precision=function(t){return arguments.length?(E=Uc(r,A=t*t),o()):Dm(A)},n.fitExtent=function(t,e){return zc(n,t,e)},n.fitSize=function(t,e){return Pc(n,t,e)},n.fitWidth=function(t,e){return Rc(n,t,e)},n.fitHeight=function(t,e){return Lc(n,t,e)},function(){return u=t.apply(this,arguments),n.invert=u.invert&&e,i()}}function Yc(t){var n=0,e=bm/3,r=Ic(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*km,e=t[1]*km):[n*Nm,e*Nm]},i}function jc(t){function n(t,n){return[t*e,Um(n)/e]}var e=Cm(t);return n.invert=function(t,n){return[t/e,Au(n*e)]},n}function Bc(t,n){function e(t,n){var e=Dm(o-2*i*Um(n))/i;return[e*Um(t*=i),u-e*Cm(t)]}var r=Um(t),i=(r+Um(n))/2;if(Sm(i)<mm)return jc(t);var o=1+r*(2*i-r),u=Dm(o)/i;return e.invert=function(t,n){var e=u-n;return[Em(t,Sm(e))/i*qm(e),Au((o-(t*t+e*e)*i*i)/(2*i))]},e}function Hc(){return Yc(Bc).scale(155.424).center([0,33.6442])}function Xc(){return Hc().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Vc(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i<n;)t[i].point(e,r)},sphere:function(){for(var e=-1;++e<n;)t[e].sphere()},lineStart:function(){for(var e=-1;++e<n;)t[e].lineStart()},lineEnd:function(){for(var e=-1;++e<n;)t[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<n;)t[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<n;)t[e].polygonEnd()}}}function $c(){function t(t){var n=t[0],e=t[1];return a=null,i.point(n,e),a||(o.point(n,e),a)||(u.point(n,e),a)}function n(){return e=r=null,t}var e,r,i,o,u,a,c=Xc(),f=Hc().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=Hc().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,n){a=[t,n]}};return t.invert=function(t){var n=c.scale(),e=c.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?f:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:c).invert(t)},t.stream=function(t){return e&&r===t?e:e=Vc([c.stream(r=t),f.stream(t),s.stream(t)])},t.precision=function(t){return arguments.length?(c.precision(t),f.precision(t),s.precision(t),n()):c.precision()},t.scale=function(n){return arguments.length?(c.scale(n),f.scale(.35*n),s.scale(n),t.translate(c.translate())):c.scale()},t.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),r=+t[0],a=+t[1];return i=c.translate(t).clipExtent([[r-.455*e,a-.238*e],[r+.455*e,a+.238*e]]).stream(l),o=f.translate([r-.307*e,a+.201*e]).clipExtent([[r-.425*e+mm,a+.12*e+mm],[r-.214*e-mm,a+.234*e-mm]]).stream(l),u=s.translate([r-.205*e,a+.212*e]).clipExtent([[r-.214*e+mm,a+.166*e+mm],[r-.115*e-mm,a+.234*e-mm]]).stream(l),n()},t.fitExtent=function(n,e){return zc(t,n,e)},t.fitSize=function(n,e){return Pc(t,n,e)},t.fitWidth=function(n,e){return Rc(t,n,e)},t.fitHeight=function(n,e){return Lc(t,n,e)},t.scale(1070)}function Wc(t){return function(n,e){var r=Cm(n),i=Cm(e),o=t(r*i);return[o*i*Um(n),o*Um(e)]}}function Zc(t){return function(n,e){var r=Dm(n*n+e*e),i=t(r),o=Um(i),u=Cm(i);return[Em(n*o,r*u),Au(r&&e*o/r)]}}function Gc(){return Fc(jx).scale(124.75).clipAngle(179.999)}function Qc(){return Fc(Bx).scale(79.4188).clipAngle(179.999)}function Jc(t,n){return[t,Rm(Om((wm+n)/2))]}function Kc(){return tf(Jc).scale(961/Tm)}function tf(t){function n(){var n=bm*a(),u=o(wa(o.rotate()).invert([0,0]));return f(null==s?[[u[0]-n,u[1]-n],[u[0]+n,u[1]+n]]:t===Jc?[[Math.max(u[0]-n,s),e],[Math.min(u[0]+n,r),i]]:[[s,Math.max(u[1]-n,e)],[r,Math.min(u[1]+n,i)]])}var e,r,i,o=Fc(t),u=o.center,a=o.scale,c=o.translate,f=o.clipExtent,s=null;return o.scale=function(t){return arguments.length?(a(t),n()):a()},o.translate=function(t){return arguments.length?(c(t),n()):c()},o.center=function(t){return arguments.length?(u(t),n()):u()},o.clipExtent=function(t){return arguments.length?(null==t?s=e=r=i=null:(s=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),n()):null==s?null:[[s,e],[r,i]]},n()}function nf(t){return Om((wm+t)/2)}function ef(t,n){function e(t,n){o>0?n<-wm+mm&&(n=-wm+mm):n>wm-mm&&(n=wm-mm);var e=o/Lm(nf(n),i);return[e*Um(i*t),o-e*Cm(i*t)]}var r=Cm(t),i=t===n?Um(t):Rm(r/Cm(n))/Rm(nf(n)/nf(t)),o=r*Lm(nf(t),i)/i;return i?(e.invert=function(t,n){var e=o-n,r=qm(i)*Dm(t*t+e*e);return[Em(t,Sm(e))/i*qm(e),2*Am(Lm(o/r,1/i))-wm]},e):Jc}function rf(){return Yc(ef).scale(109.5).parallels([30,30])}function of(t,n){return[t,n]}function uf(){return Fc(of).scale(152.63)}function af(t,n){function e(t,n){var e=o-n,r=i*t;return[e*Um(r),o-e*Cm(r)]}var r=Cm(t),i=t===n?Um(t):(r-Cm(n))/(n-t),o=r/i+t;return Sm(i)<mm?of:(e.invert=function(t,n){var e=o-n;return[Em(t,Sm(e))/i*qm(e),o-qm(i)*Dm(t*t+e*e)]},e)}function cf(){return Yc(af).scale(131.154).center([0,13.9389])}function ff(t,n){var e=Cm(n),r=Cm(t)*e;return[e*Um(t)/r,Um(n)/r]}function sf(){return Fc(ff).scale(144.049).clipAngle(60)}function lf(t,n,e,r){return 1===t&&1===n&&0===e&&0===r?uc:Ac({point:function(i,o){this.stream.point(i*t+e,o*n+r)}})}function hf(){function t(){return i=o=null,u}var n,e,r,i,o,u,a=1,c=0,f=0,s=1,l=1,h=uc,p=null,d=uc;return u={stream:function(t){return i&&o===t?i:i=h(d(o=t))},postclip:function(i){return arguments.length?(d=i,p=n=e=r=null,t()):d},clipExtent:function(i){return arguments.length?(d=null==i?(p=n=e=r=null,uc):Ia(p=+i[0][0],n=+i[0][1],e=+i[1][0],r=+i[1][1]),t()):null==p?null:[[p,n],[e,r]]},scale:function(n){return arguments.length?(h=lf((a=+n)*s,a*l,c,f),t()):a},translate:function(n){return arguments.length?(h=lf(a*s,a*l,c=+n[0],f=+n[1]),t()):[c,f]},reflectX:function(n){return arguments.length?(h=lf(a*(s=n?-1:1),a*l,c,f),t()):s<0},reflectY:function(n){return arguments.length?(h=lf(a*s,a*(l=n?-1:1),c,f),t()):l<0},fitExtent:function(t,n){return zc(u,t,n)},fitSize:function(t,n){return Pc(u,t,n)},fitWidth:function(t,n){return Rc(u,t,n)},fitHeight:function(t,n){return Lc(u,t,n)}}}function pf(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}function df(){return Fc(pf).scale(175.295)}function vf(t,n){return[Cm(n)*Um(t),Um(n)]}function gf(){return Fc(vf).scale(249.5).clipAngle(90+mm)}function yf(t,n){var e=Cm(n),r=1+Cm(t)*e;return[e*Um(t)/r,Um(n)/r]}function _f(){return Fc(yf).scale(250).clipAngle(142)}function mf(t,n){return[Rm(Om((wm+n)/2)),-t]}function xf(){var t=tf(mf),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90]).scale(159.155)}function bf(t,n){return t.parent===n.parent?1:2}function wf(t){return t.reduce(Mf,0)/t.length}function Mf(t,n){return t+n.x}function Tf(t){return 1+t.reduce(Nf,0)}function Nf(t,n){return Math.max(t,n.y)}function kf(t){for(var n;n=t.children;)t=n[0];return t}function Sf(t){for(var n;n=t.children;)t=n[n.length-1];return t}function Af(){function t(t){var o,u=0;t.eachAfter(function(t){var e=t.children;e?(t.x=wf(e),t.y=Tf(e)):(t.x=o?u+=n(t,o):0,t.y=0,o=t)});var a=kf(t),c=Sf(t),f=a.x-n(a,c)/2,s=c.x+n(c,a)/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-f)/(s-f)*e,n.y=(1-(t.y?n.y/t.y:1))*r})}var n=bf,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 Ef(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Cf(){return this.eachAfter(Ef)}function zf(t){var n,e,r,i,o=this,u=[o];do{for(n=u.reverse(),u=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r<i;++r)u.push(e[r])}while(u.length);return this}function Pf(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 Rf(t){for(var n,e,r,i=this,o=[i],u=[];i=o.pop();)if(u.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)o.push(n[e]);for(;i=u.pop();)t(i);return this}function Lf(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 Uf(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})}function qf(t){for(var n=this,e=Df(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 Df(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 Of(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n}function Ff(){var t=[];return this.each(function(n){t.push(n)}),t}function If(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t}function Yf(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n}function jf(t,n){var e,r,i,o,u,a=new $f(t),c=+t.value&&(a.value=t.value),f=[a];for(null==n&&(n=Hf);e=f.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(u=i.length))for(e.children=new Array(u),o=u-1;o>=0;--o)f.push(r=e.children[o]=new $f(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Vf)}function Bf(){return jf(this).eachBefore(Xf)}function Hf(t){return t.children}function Xf(t){t.data=t.data.data}function Vf(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function $f(t){this.data=t,this.depth=this.height=0,this.parent=null}function Wf(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}function Zf(t){for(var n,e,r=0,i=(t=Wf(Hx.call(t))).length,o=[];r<i;)n=t[r],e&&Jf(e,n)?++r:(e=ts(o=Gf(o,n)),r=0);return e}function Gf(t,n){var e,r;if(Kf(n,t))return[n];for(e=0;e<t.length;++e)if(Qf(n,t[e])&&Kf(es(t[e],n),t))return[t[e],n];for(e=0;e<t.length-1;++e)for(r=e+1;r<t.length;++r)if(Qf(es(t[e],t[r]),n)&&Qf(es(t[e],n),t[r])&&Qf(es(t[r],n),t[e])&&Kf(rs(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function Qf(t,n){var e=t.r-n.r,r=n.x-t.x,i=n.y-t.y;return e<0||e*e<r*r+i*i}function Jf(t,n){var e=t.r-n.r+1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Kf(t,n){for(var e=0;e<n.length;++e)if(!Jf(t,n[e]))return!1;return!0}function ts(t){switch(t.length){case 1:return ns(t[0]);case 2:return es(t[0],t[1]);case 3:return rs(t[0],t[1],t[2])}}function ns(t){return{x:t.x,y:t.y,r:t.r}}function es(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,u=n.y,a=n.r,c=o-e,f=u-r,s=a-i,l=Math.sqrt(c*c+f*f);return{x:(e+o+c/l*s)/2,y:(r+u+f/l*s)/2,r:(l+i+a)/2}}function rs(t,n,e){var r=t.x,i=t.y,o=t.r,u=n.x,a=n.y,c=n.r,f=e.x,s=e.y,l=e.r,h=r-u,p=r-f,d=i-a,v=i-s,g=c-o,y=l-o,_=r*r+i*i-o*o,m=_-u*u-a*a+c*c,x=_-f*f-s*s+l*l,b=p*d-h*v,w=(d*x-v*m)/(2*b)-r,M=(v*g-d*y)/b,T=(p*m-h*x)/(2*b)-i,N=(h*y-p*g)/b,k=M*M+N*N-1,S=2*(o+w*M+T*N),A=w*w+T*T-o*o,E=-(k?(S+Math.sqrt(S*S-4*k*A))/(2*k):A/S);return{x:r+w+M*E,y:i+T+N*E,r:E}}function is(t,n,e){var r=t.x,i=t.y,o=n.r+e.r,u=t.r+e.r,a=n.x-r,c=n.y-i,f=a*a+c*c;if(f){var s=.5+((u*=u)-(o*=o))/(2*f),l=Math.sqrt(Math.max(0,2*o*(u+f)-(u-=f)*u-o*o))/(2*f);e.x=r+s*a+l*c,e.y=i+s*c-l*a}else e.x=r+u,e.y=i}function os(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 us(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function as(t){this._=t,this.next=null,this.previous=null}function cs(t){if(!(i=t.length))return 0;var n,e,r,i,o,u,a,c,f,s,l;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;is(e,n,r=t[2]),n=new as(n),e=new as(e),r=new as(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a<i;++a){is(n._,e._,r=t[a]),r=new as(r),c=e.next,f=n.previous,s=e._.r,l=n._.r;do{if(s<=l){if(os(c._,r._)){e=c,n.next=e,e.previous=n,--a;continue t}s+=c._.r,c=c.next}else{if(os(f._,r._)){n=f,n.next=e,e.previous=n,--a;continue t}l+=f._.r,f=f.previous}}while(c!==f.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,o=us(n);(r=r.next)!==e;)(u=us(r))<o&&(n=r,o=u);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=Zf(n),a=0;a<i;++a)n=t[a],n.x-=r.x,n.y-=r.y;return r.r}function fs(t){return cs(t),t}function ss(t){return null==t?null:ls(t)}function ls(t){if("function"!=typeof t)throw new Error;return t}function hs(){return 0}function ps(t){return function(){return t}}function ds(t){return Math.sqrt(t.value)}function vs(){function t(t){return t.x=e/2,t.y=r/2,n?t.eachBefore(gs(n)).eachAfter(ys(i,.5)).eachBefore(_s(1)):t.eachBefore(gs(ds)).eachAfter(ys(hs,1)).eachAfter(ys(i,t.r/Math.min(e,r))).eachBefore(_s(Math.min(e,r)/(2*t.r))),t}var n=null,e=1,r=1,i=hs;return t.radius=function(e){return arguments.length?(n=ss(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:ps(+n),t):i},t}function gs(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function ys(t,n){return function(e){if(r=e.children){var r,i,o,u=r.length,a=t(e)*n||0;if(a)for(i=0;i<u;++i)r[i].r+=a;if(o=cs(r),a)for(i=0;i<u;++i)r[i].r-=a;e.r=o+a}}}function _s(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 ms(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 xs(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,f=t.value&&(r-n)/t.value;++a<c;)o=u[a],o.y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*f}function bs(){function t(t){var u=t.height+1;return t.x0=t.y0=i,t.x1=e,t.y1=r/u,t.eachBefore(n(r,u)),o&&t.eachBefore(ms),t}function n(t,n){return function(e){e.children&&xs(e,e.x0,t*(e.depth+1)/n,e.x1,t*(e.depth+2)/n);var r=e.x0,o=e.y0,u=e.x1-i,a=e.y1-i;u<r&&(r=u=(r+u)/2),a<o&&(o=a=(o+a)/2),e.x0=r,e.y0=o,e.x1=u,e.y1=a}}var e=1,r=1,i=0,o=!1;return t.round=function(n){return arguments.length?(o=!!n,t):o},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 ws(t){return t.id}function Ms(t){return t.parentId}function Ts(){function t(t){var r,i,o,u,a,c,f,s=t.length,l=new Array(s),h={};for(i=0;i<s;++i)r=t[i],a=l[i]=new $f(r),null!=(c=n(r,i,t))&&(c+="")&&(f=Xx+(a.id=c),h[f]=f in h?$x:a);for(i=0;i<s;++i)if(a=l[i],null!=(c=e(t[i],i,t))&&(c+="")){if(!(u=h[Xx+c]))throw new Error("missing: "+c);if(u===$x)throw new Error("ambiguous: "+c);u.children?u.children.push(a):u.children=[a],a.parent=u}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=Vx,o.eachBefore(function(t){t.depth=t.parent.depth+1,--s}).eachBefore(Vf),o.parent=null,s>0)throw new Error("cycle");return o}var n=ws,e=Ms;return t.id=function(e){return arguments.length?(n=ls(e),t):n},t.parentId=function(n){return arguments.length?(e=ls(n),t):e},t}function Ns(t,n){return t.parent===n.parent?1:2}function ks(t){var n=t.children;return n?n[0]:t.t}function Ss(t){var n=t.children;return n?n[n.length-1]:t.t}function As(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 Es(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)n=i[o],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Cs(t,n,e){return t.a.parent===n.parent?t.a:e}function zs(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 Ps(t){for(var n,e,r,i,o,u=new zs(t,0),a=[u];n=a.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(e=n.children[i]=new zs(r[i],i)),e.parent=n;return(u.parent=new zs(null,0)).children=[u],u}function Rs(){function t(t){var r=Ps(t);if(r.eachAfter(n),r.parent.m=-r.z,r.eachBefore(e),c)t.eachBefore(i);else{var f=t,s=t,l=t;t.eachBefore(function(t){t.x<f.x&&(f=t),t.x>s.x&&(s=t),t.depth>l.depth&&(l=t)});var h=f===s?1:o(f,s)/2,p=h-f.x,d=u/(s.x+h+p),v=a/(l.depth||1);t.eachBefore(function(t){t.x=(t.x+p)*d,t.y=t.depth*v})}return t}function n(t){var n=t.children,e=t.parent.children,i=t.i?e[t.i-1]:null;if(n){Es(t);var u=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+o(t._,i._),t.m=t.z-u):t.z=u}else i&&(t.z=i.z+o(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,u=t,a=n,c=i.parent.children[0],f=i.m,s=u.m,l=a.m,h=c.m;a=Ss(a),i=ks(i),a&&i;)c=ks(c),u=Ss(u),u.a=t,r=a.z+l-i.z-f+o(a._,i._),r>0&&(As(Cs(a,t,e),t,r),f+=r,s+=r),l+=a.m,f+=i.m,h+=c.m,s+=u.m;a&&!Ss(u)&&(u.t=a,u.m+=l-s),i&&!ks(c)&&(c.t=i,c.m+=f-h,e=t)}return e}function i(t){t.x*=u,t.y=t.depth*a}var o=Ns,u=1,a=1,c=null;return t.separation=function(n){return arguments.length?(o=n,t):o},t.size=function(n){return arguments.length?(c=!1,u=+n[0],a=+n[1],t):c?null:[u,a]},t.nodeSize=function(n){return arguments.length?(c=!0,u=+n[0],a=+n[1],t):c?[u,a]:null},t}function Ls(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,f=t.value&&(i-e)/t.value;++a<c;)o=u[a],o.x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*f}function Us(t,n,e,r,i,o){for(var u,a,c,f,s,l,h,p,d,v,g,y=[],_=n.children,m=0,x=0,b=_.length,w=n.value;m<b;){c=i-e,f=o-r;do{s=_[x++].value}while(!s&&x<b);for(l=h=s,v=Math.max(f/c,c/f)/(w*t),g=s*s*v,d=Math.max(h/g,g/l);x<b;++x){if(s+=a=_[x].value,a<l&&(l=a),a>h&&(h=a),g=s*s*v,(p=Math.max(h/g,g/l))>d){s-=a;break}d=p}y.push(u={value:s,dice:c<f,children:_.slice(m,x)}),u.dice?xs(u,e,r,i,w?r+=f*s/w:o):Ls(u,e,r,w?e+=c*s/w:i,o),w-=s,m=x}return y}function qs(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(n),u=[0],r&&t.eachBefore(ms),t}function n(t){var n=u[t.depth],r=t.x0+n,i=t.y0+n,o=t.x1-n,h=t.y1-n;o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),t.x0=r,t.y0=i,t.x1=o,t.y1=h,t.children&&(n=u[t.depth+1]=a(t)/2,r+=l(t)-n,i+=c(t)-n,o-=f(t)-n,h-=s(t)-n,o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),e(t,r,i,o,h))}var e=Zx,r=!1,i=1,o=1,u=[0],a=hs,c=hs,f=hs,s=hs,l=hs;return t.round=function(n){return arguments.length?(r=!!n,t):r},t.size=function(n){return arguments.length?(i=+n[0],o=+n[1],t):[i,o]},t.tile=function(n){return arguments.length?(e=ls(n),t):e},t.padding=function(n){return arguments.length?t.paddingInner(n).paddingOuter(n):t.paddingInner()},t.paddingInner=function(n){return arguments.length?(a="function"==typeof n?n:ps(+n),t):a},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?(c="function"==typeof n?n:ps(+n),t):c},t.paddingRight=function(n){return arguments.length?(f="function"==typeof n?n:ps(+n),t):f},t.paddingBottom=function(n){return arguments.length?(s="function"==typeof n?n:ps(+n),t):s},t.paddingLeft=function(n){return arguments.length?(l="function"==typeof n?n:ps(+n),t):l},t}function Ds(t,n,e,r,i){function o(t,n,e,r,i,u,a){if(t>=n-1){var f=c[t];return f.x0=r,f.y0=i,f.x1=u,f.y1=a,void 0}for(var l=s[t],h=e/2+l,p=t+1,d=n-1;p<d;){var v=p+d>>>1;s[v]<h?p=v+1:d=v}h-s[p-1]<s[p]-h&&t+1<p&&--p;var g=s[p]-l,y=e-g;if(u-r>a-i){var _=(r*y+u*g)/e;o(t,p,g,r,i,_,a),o(p,n,y,_,i,u,a)}else{var m=(i*y+a*g)/e;o(t,p,g,r,i,u,m),o(p,n,y,r,m,u,a)}}var u,a,c=t.children,f=c.length,s=new Array(f+1);for(s[0]=a=u=0;u<f;++u)s[u+1]=a+=c[u].value;o(0,f,t.value,n,e,r,i)}function Os(t,n,e,r,i){(1&t.depth?Ls:xs)(t,n,e,r,i)}function Fs(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e<r;)n=i,i=t[e],o+=n[1]*i[0]-n[0]*i[1];return o/2}function Is(t){for(var n,e,r=-1,i=t.length,o=0,u=0,a=t[i-1],c=0;++r<i;)n=a,a=t[r],c+=e=n[0]*a[1]-a[0]*n[1],o+=(n[0]+a[0])*e,u+=(n[1]+a[1])*e;return c*=3,[o/c,u/c]}function Ys(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function js(t,n){return t[0]-n[0]||t[1]-n[1]}function Bs(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;++i){for(;r>1&&Ys(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Hs(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n<e;++n)r[n]=[+t[n][0],+t[n][1],n];for(r.sort(js),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=Bs(r),u=Bs(i),a=u[0]===o[0],c=u[u.length-1]===o[o.length-1],f=[];for(n=o.length-1;n>=0;--n)f.push(t[r[o[n]][2]]);for(n=+a;n<u.length-c;++n)f.push(t[r[u[n]][2]]);return f}function Xs(t,n){for(var e,r,i=t.length,o=t[i-1],u=n[0],a=n[1],c=o[0],f=o[1],s=!1,l=0;l<i;++l)o=t[l],e=o[0],r=o[1],r>a!=f>a&&u<(c-e)*(a-r)/(f-r)+e&&(s=!s),c=e,f=r;return s}function Vs(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],c=0;++r<i;)n=u,e=a,o=t[r],u=o[0],a=o[1],n-=u,e-=a,c+=Math.sqrt(n*n+e*e);return c}function $s(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function Ws(t){if(!t._start)try{Zs(t)}catch(n){if(t._tasks[t._ended+t._active-1])Qs(t,n);else if(!t._data)throw n}}function Zs(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]=Gs(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||Jx)}}function Gs(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?Qs(t,e):(t._data[n]=r,t._waiting?Ws(t):Js(t))))}}function Qs(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,Js(t)}function Js(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function Ks(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new $s(t)}function tl(){return Math.random()}function nl(t,n){function e(t){var n,e=f.status;if(!e&&rl(f)||e>=200&&e<300||304===e){if(o)try{n=o.call(r,f)}catch(t){return void a.call("error",r,t)}else n=f;a.call("load",r,n)}else a.call("error",r,t)}var r,i,o,u,a=V("beforesend","progress","load","error"),c=so(),f=new XMLHttpRequest,s=null,l=null,h=0;if("undefined"==typeof XDomainRequest||"withCredentials"in f||!/^(http(s)?:)?\/\//.test(t)||(f=new XDomainRequest),"onload"in f?f.onload=f.onerror=f.ontimeout=e:f.onreadystatechange=function(t){f.readyState>3&&e(t)},f.onprogress=function(t){a.call("progress",r,t)},r={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?c.get(t):(null==n?c.remove(t):c.set(t,n+""),r)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",r):i},responseType:function(t){return arguments.length?(u=t,r):u},timeout:function(t){return arguments.length?(h=+t,r):h},user:function(t){return arguments.length<1?s:(s=null==t?null:t+"",r)},password:function(t){return arguments.length<1?l:(l=null==t?null:t+"",r)},response:function(t){return o=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,o){return f.open(n,t,!0,s,l),null==i||c.has("accept")||c.set("accept",i+",*/*"),f.setRequestHeader&&c.each(function(t,n){f.setRequestHeader(n,t)}),null!=i&&f.overrideMimeType&&f.overrideMimeType(i),null!=u&&(f.responseType=u),h>0&&(f.timeout=h),null==o&&"function"==typeof e&&(o=e,e=null),null!=o&&1===o.length&&(o=el(o)),null!=o&&r.on("error",o).on("load",function(t){o(null,t)}),a.call("beforesend",r,f),f.send(null==e?null:e),r},abort:function(){return f.abort(),r},on:function(){var t=a.on.apply(a,arguments);return t===a?r:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return r.get(n)}return r}function el(t){return function(n,e){t(null==n?e:null)}}function rl(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function il(t,n){return function(e,r){var i=nl(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}}function ol(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=nl(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(ul(n,r=t)):r},o.row(r),i?o.get(i):o}}function ul(t,n){return function(e){return t(e.responseText,n)}}function al(t){function n(n){var o=n+"",u=e.get(o);if(!u){if(i!==db)return i;e.set(o,u=r.push(n))}return t[(u-1)%t.length]}var e=so(),r=[],i=db;return t=null==t?[]:pb.call(t),n.domain=function(t){if(!arguments.length)return r.slice();r=[],e=so();for(var i,o,u=-1,a=t.length;++u<a;)e.has(o=(i=t[u])+"")||e.set(o,r.push(i));return n},n.range=function(e){return arguments.length?(t=pb.call(e),n):t.slice()},n.unknown=function(t){return arguments.length?(i=t,n):i},n.copy=function(){return al().domain(r).range(t).unknown(i)},n}function cl(){function t(){var t=i().length,r=u[1]<u[0],l=u[r-0],h=u[1-r];n=(h-l)/Math.max(1,t-c+2*f),a&&(n=Math.floor(n)),l+=(h-l-n*(t-c))*s,e=n*(1-c),a&&(l=Math.round(l),e=Math.round(e));var p=d(t).map(function(t){return l+n*t});return o(r?p.reverse():p)}var n,e,r=al().unknown(void 0),i=r.domain,o=r.range,u=[0,1],a=!1,c=0,f=0,s=.5;return delete r.unknown,r.domain=function(n){return arguments.length?(i(n),t()):i()},r.range=function(n){return arguments.length?(u=[+n[0],+n[1]],t()):u.slice()},r.rangeRound=function(n){return u=[+n[0],+n[1]],a=!0,t()},r.bandwidth=function(){return e},r.step=function(){return n},r.round=function(n){return arguments.length?(a=!!n,t()):a},r.padding=function(n){return arguments.length?(c=f=Math.max(0,Math.min(1,n)),t()):c},r.paddingInner=function(n){return arguments.length?(c=Math.max(0,Math.min(1,n)),t()):c},r.paddingOuter=function(n){return arguments.length?(f=Math.max(0,Math.min(1,n)),t()):f},r.align=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),t()):s},r.copy=function(){return cl().domain(i()).range(u).round(a).paddingInner(c).paddingOuter(f).align(s)},t()}function fl(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return fl(n())},t}function sl(){return fl(cl().paddingInner(1))}function ll(t){return function(){return t}}function hl(t){return+t}function pl(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:ll(n)}function dl(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}function vl(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}function gl(t,n,e,r){var i=t[0],o=t[1],u=n[0],a=n[1];return o<i?(i=e(o,i),u=r(a,u)):(i=e(i,o),u=r(u,a)),function(t){return u(i(t))}}function yl(t,n,e,r){var i=Math.min(t.length,n.length)-1,o=new Array(i),u=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<i;)o[a]=e(t[a],t[a+1]),u[a]=r(n[a],n[a+1]);return function(n){var e=Rv(t,n,1,i)-1;return u[e](o[e](n))}}function _l(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function ml(t,n){function e(){return i=Math.min(a.length,c.length)>2?yl:gl,o=u=null,r}function r(n){return(o||(o=i(a,c,s?dl(t):t,f)))(+n)}var i,o,u,a=vb,c=vb,f=He,s=!1;return r.invert=function(t){return(u||(u=i(c,a,pl,s?vl(n):n)))(+t)},r.domain=function(t){return arguments.length?(a=hb.call(t,hl),e()):a.slice()},r.range=function(t){return arguments.length?(c=pb.call(t),e()):c.slice()},r.rangeRound=function(t){return c=pb.call(t),f=Xe,e()},r.clamp=function(t){return arguments.length?(s=!!t,e()):s},r.interpolate=function(t){return arguments.length?(f=t,e()):f},e()}function xl(n,e,r){var i,o=n[0],u=n[n.length-1],a=y(o,u,null==e?10:e);switch(r=gu(null==r?",f":r),r.type){case"s":var c=Math.max(Math.abs(o),Math.abs(u));return null!=r.precision||isNaN(i=wu(a,c))||(r.precision=i),t.formatPrefix(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Mu(a,Math.max(Math.abs(o),Math.abs(u))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=bu(a))||(r.precision=i-2*("%"===r.type))}return t.format(r)}function bl(t){var n=t.domain;return t.ticks=function(t){var e=n();return v(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return xl(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,u=i.length-1,a=i[o],c=i[u];return c<a&&(r=a,a=c,c=r,r=o,o=u,u=r),r=g(a,c,e),r>0?(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,r=g(a,c,e)):r<0&&(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,r=g(a,c,e)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(c*r)/r,n(i)),t},t}function wl(){var t=ml(pl,Fe);return t.copy=function(){return _l(t,wl())},bl(t)}function Ml(){function t(t){return+t}var n=[0,1];return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=hb.call(e,hl),t):n.slice()},t.copy=function(){return Ml().domain(n)},bl(t)}function Tl(t,n){t=t.slice();var e,r=0,i=t.length-1,o=t[r],u=t[i];return u<o&&(e=r,r=i,i=e,e=o,o=u,u=e),t[r]=n.floor(o),t[i]=n.ceil(u),t}function Nl(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:ll(n)}function kl(t,n){return t<0?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 Sl(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Al(t){return 10===t?Sl:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function El(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 Cl(t){return function(n){return-t(-n)}}function zl(){function n(){return o=El(i),u=Al(i),r()[0]<0&&(o=Cl(o),u=Cl(u)),e}var e=ml(Nl,kl).domain([1,10]),r=e.domain,i=10,o=El(10),u=Al(10);return e.base=function(t){return arguments.length?(i=+t,n()):i},e.domain=function(t){return arguments.length?(r(t),n()):r()},e.ticks=function(t){var n,e=r(),a=e[0],c=e[e.length-1];(n=c<a)&&(h=a,a=c,c=h);var f,s,l,h=o(a),p=o(c),d=null==t?10:+t,g=[];if(!(i%1)&&p-h<d){if(h=Math.round(h)-1,p=Math.round(p)+1,a>0){for(;h<p;++h)for(s=1,f=u(h);s<i;++s)if(!((l=f*s)<a)){if(l>c)break;g.push(l)}}else for(;h<p;++h)for(s=i-1,f=u(h);s>=1;--s)if(!((l=f*s)<a)){if(l>c)break;g.push(l)}}else g=v(h,p,Math.min(p-h,d)).map(u);return n?g.reverse():g},e.tickFormat=function(n,r){if(null==r&&(r=10===i?".0e":","),"function"!=typeof r&&(r=t.format(r)),n===1/0)return r;null==n&&(n=10);var a=Math.max(1,i*n/e.ticks().length);return function(t){var n=t/u(Math.round(o(t)));return n*i<i-.5&&(n*=i),n<=a?r(t):""}},e.nice=function(){return r(Tl(r(),{floor:function(t){return u(Math.floor(o(t)))},ceil:function(t){return u(Math.ceil(o(t)))}}))},e.copy=function(){return _l(e,zl().base(i))},e}function Pl(t,n){return t<0?-Math.pow(-t,n):Math.pow(t,n)}function Rl(){function t(t,n){return(n=Pl(n,e)-(t=Pl(t,e)))?function(r){return(Pl(r,e)-t)/n}:ll(n)}function n(t,n){return n=Pl(n,e)-(t=Pl(t,e)),function(r){return Pl(t+n*r,1/e)}}var e=1,r=ml(t,n),i=r.domain;return r.exponent=function(t){return arguments.length?(e=+t,i(i())):e},r.copy=function(){return _l(r,Rl().exponent(e))},bl(r)}function Ll(){return Rl().exponent(.5)}function Ul(){function t(){var t=0,n=Math.max(1,i.length);for(o=new Array(n-1);++t<n;)o[t-1]=x(r,t/n);return e}function e(t){if(!isNaN(t=+t))return i[Rv(o,t)]}var r=[],i=[],o=[];return e.invertExtent=function(t){var n=i.indexOf(t);return n<0?[NaN,NaN]:[n>0?o[n-1]:r[0],n<o.length?o[n]:r[r.length-1]]},e.domain=function(e){if(!arguments.length)return r.slice();r=[];for(var i,o=0,u=e.length;o<u;++o)null==(i=e[o])||isNaN(i=+i)||r.push(i);return r.sort(n),t()},e.range=function(n){return arguments.length?(i=pb.call(n),t()):i.slice()},e.quantiles=function(){return o.slice()},e.copy=function(){return Ul().domain(r).range(i)},e}function ql(){function t(t){if(t<=t)return u[Rv(o,t,0,i)]}function n(){var n=-1;for(o=new Array(i);++n<i;)o[n]=((n+1)*r-(n-i)*e)/(i+1);return t}var e=0,r=1,i=1,o=[.5],u=[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=(u=pb.call(t)).length-1,n()):u.slice()},t.invertExtent=function(t){var n=u.indexOf(t);return n<0?[NaN,NaN]:n<1?[e,o[0]]:n>=i?[o[i-1],r]:[o[n-1],o[n]]},t.copy=function(){return ql().domain([e,r]).range(u)},bl(t)}function Dl(){function t(t){if(t<=t)return e[Rv(n,t,0,r)]}var n=[.5],e=[0,1],r=1;return t.domain=function(i){return arguments.length?(n=pb.call(i),r=Math.min(n.length,e.length-1),t):n.slice()},t.range=function(i){return arguments.length?(e=pb.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 Dl().domain(n).range(e)},t}function Ol(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 t-n<e-t?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,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u<e&&e<r);return a},i.filter=function(e){return Ol(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return gb.setTime(+n),yb.setTime(+r),t(gb),t(yb),Math.floor(e(gb,yb))},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 Fl(t){return Ol(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xb)/bb})}function Il(t){return Ol(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+7*n)},function(t,n){return(n-t)/bb})}function Yl(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 jl(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 Bl(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Hl(t){function n(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++a<f;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=mw[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function e(t,n){return function(e){var i,o,u=Bl(1900),a=r(u,t,e+="",0);if(a!=e.length)return null;if("Q"in u)return new Date(u.Q);if("p"in u&&(u.H=u.H%12+12*u.p),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(i=jl(Bl(u.y)),o=i.getUTCDay(),i=o>4||0===o?nw.ceil(i):nw(i),i=Jb.offset(i,7*(u.V-1)),u.y=i.getUTCFullYear(),u.m=i.getUTCMonth(),u.d=i.getUTCDate()+(u.w+6)%7):(i=n(Bl(u.y)),o=i.getDay(),i=o>4||0===o?zb.ceil(i):zb(i),i=Ab.offset(i,7*(u.V-1)),u.y=i.getFullYear(),u.m=i.getMonth(),u.d=i.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),o="Z"in u?jl(Bl(u.y)).getUTCDay():n(Bl(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(o+5)%7:u.w+7*u.U-(o+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,jl(u)):n(u)}}function r(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=j[i in mw?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function i(t,n,e){var r=C.exec(n.slice(e));return r?(t.p=z[r[0].toLowerCase()],e+r[0].length):-1}function o(t,n,e){var r=L.exec(n.slice(e));return r?(t.w=U[r[0].toLowerCase()],e+r[0].length):-1}function u(t,n,e){var r=P.exec(n.slice(e));return r?(t.w=R[r[0].toLowerCase()],e+r[0].length):-1}function a(t,n,e){var r=O.exec(n.slice(e));return r?(t.m=F[r[0].toLowerCase()],e+r[0].length):-1}function c(t,n,e){var r=q.exec(n.slice(e));return r?(t.m=D[r[0].toLowerCase()],e+r[0].length):-1}function f(t,n,e){return r(t,w,n,e)}function s(t,n,e){return r(t,M,n,e)}function l(t,n,e){return r(t,T,n,e)}function h(t){return S[t.getDay()]}function p(t){return k[t.getDay()]}function d(t){return E[t.getMonth()]}function v(t){return A[t.getMonth()]}function g(t){return N[+(t.getHours()>=12)]}function y(t){return S[t.getUTCDay()]}function _(t){return k[t.getUTCDay()]}function m(t){return E[t.getUTCMonth()]}function x(t){return A[t.getUTCMonth()]}function b(t){return N[+(t.getUTCHours()>=12)]}var w=t.dateTime,M=t.date,T=t.time,N=t.periods,k=t.days,S=t.shortDays,A=t.months,E=t.shortMonths,C=$l(N),z=Wl(N),P=$l(k),R=Wl(k),L=$l(S),U=Wl(S),q=$l(A),D=Wl(A),O=$l(E),F=Wl(E),I={a:h,A:p,b:d,B:v,c:null,d:dh,e:dh,f:mh,H:vh,I:gh,j:yh,L:_h,m:xh,M:bh,p:g,Q:Zh,s:Gh,S:wh,u:Mh,U:Th,V:Nh,w:kh,W:Sh,x:null,X:null,y:Ah,Y:Eh,Z:Ch,"%":Wh},Y={a:y,A:_,b:m,B:x,c:null,d:zh,e:zh,f:qh,H:Ph,I:Rh,j:Lh,L:Uh,m:Dh,M:Oh,p:b,Q:Zh,s:Gh,S:Fh,u:Ih,U:Yh,V:jh,w:Bh,W:Hh,x:null,X:null,y:Xh,Y:Vh,Z:$h,"%":Wh},j={a:o,A:u,b:a,B:c,c:f,d:ih,e:ih,f:sh,H:uh,I:uh,j:oh,L:fh,m:rh,M:ah,p:i,Q:hh,s:ph,S:ch,u:Gl,U:Ql,V:Jl,w:Zl,W:Kl,x:s,X:l,y:nh,Y:th,Z:eh,"%":lh};return I.x=n(M,I),I.X=n(T,I),I.c=n(w,I),Y.x=n(M,Y),Y.X=n(T,Y),Y.c=n(w,Y),{format:function(t){var e=n(t+="",I);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",Yl);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",Y);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,jl);return n.toString=function(){return t},n}}}function Xl(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function Vl(t){return t.replace(ww,"\\$&")}function $l(t){return new RegExp("^(?:"+t.map(Vl).join("|")+")","i")}function Wl(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Zl(t,n,e){var r=xw.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Gl(t,n,e){var r=xw.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Ql(t,n,e){var r=xw.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function Jl(t,n,e){var r=xw.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Kl(t,n,e){var r=xw.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function th(t,n,e){var r=xw.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function nh(t,n,e){var r=xw.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function eh(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 rh(t,n,e){var r=xw.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function ih(t,n,e){var r=xw.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function oh(t,n,e){var r=xw.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function uh(t,n,e){var r=xw.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ah(t,n,e){var r=xw.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function ch(t,n,e){var r=xw.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function fh(t,n,e){var r=xw.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function sh(t,n,e){var r=xw.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function lh(t,n,e){var r=bw.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function hh(t,n,e){var r=xw.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function ph(t,n,e){var r=xw.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function dh(t,n){return Xl(t.getDate(),n,2)}function vh(t,n){return Xl(t.getHours(),n,2)}function gh(t,n){return Xl(t.getHours()%12||12,n,2)}function yh(t,n){return Xl(1+Ab.count(Vb(t),t),n,3)}function _h(t,n){return Xl(t.getMilliseconds(),n,3)}function mh(t,n){return _h(t,n)+"000"}function xh(t,n){return Xl(t.getMonth()+1,n,2)}function bh(t,n){return Xl(t.getMinutes(),n,2)}function wh(t,n){return Xl(t.getSeconds(),n,2)}function Mh(t){var n=t.getDay();return 0===n?7:n}function Th(t,n){return Xl(Cb.count(Vb(t),t),n,2)}function Nh(t,n){var e=t.getDay();return t=e>=4||0===e?Lb(t):Lb.ceil(t),Xl(Lb.count(Vb(t),t)+(4===Vb(t).getDay()),n,2)}function kh(t){return t.getDay()}function Sh(t,n){return Xl(zb.count(Vb(t),t),n,2)}function Ah(t,n){return Xl(t.getFullYear()%100,n,2)}function Eh(t,n){return Xl(t.getFullYear()%1e4,n,4)}function Ch(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Xl(n/60|0,"0",2)+Xl(n%60,"0",2)}function zh(t,n){return Xl(t.getUTCDate(),n,2)}function Ph(t,n){return Xl(t.getUTCHours(),n,2)}function Rh(t,n){return Xl(t.getUTCHours()%12||12,n,2)}function Lh(t,n){return Xl(1+Jb.count(gw(t),t),n,3)}function Uh(t,n){return Xl(t.getUTCMilliseconds(),n,3)}function qh(t,n){return Uh(t,n)+"000"}function Dh(t,n){return Xl(t.getUTCMonth()+1,n,2)}function Oh(t,n){return Xl(t.getUTCMinutes(),n,2)}function Fh(t,n){return Xl(t.getUTCSeconds(),n,2)}function Ih(t){var n=t.getUTCDay();return 0===n?7:n}function Yh(t,n){return Xl(tw.count(gw(t),t),n,2)}function jh(t,n){var e=t.getUTCDay();return t=e>=4||0===e?iw(t):iw.ceil(t),Xl(iw.count(gw(t),t)+(4===gw(t).getUTCDay()),n,2)}function Bh(t){return t.getUTCDay()}function Hh(t,n){return Xl(nw.count(gw(t),t),n,2)}function Xh(t,n){return Xl(t.getUTCFullYear()%100,n,2)}function Vh(t,n){return Xl(t.getUTCFullYear()%1e4,n,4)}function $h(){return"+0000"}function Wh(){return"%"}function Zh(t){return+t}function Gh(t){return Math.floor(+t/1e3)}function Qh(n){return yw=Hl(n),t.timeFormat=yw.format,t.timeParse=yw.parse,t.utcFormat=yw.utcFormat,t.utcParse=yw.utcParse,yw}function Jh(t){return t.toISOString()}function Kh(t){var n=new Date(t);return isNaN(n)?null:n}function tp(t){return new Date(t)}function np(t){return t instanceof Date?+t:+new Date(+t)}function ep(t,n,r,i,o,u,a,c,f){function s(e){return(a(e)<e?v:u(e)<e?g:o(e)<e?_:i(e)<e?m:n(e)<e?r(e)<e?x:b:t(e)<e?w:M)(e)}function l(n,r,i,o){if(null==n&&(n=10),"number"==typeof n){var u=Math.abs(i-r)/n,a=e(function(t){return t[2]}).right(T,u);a===T.length?(o=y(r/zw,i/zw,n),n=t):a?(a=T[u/T[a-1][2]<T[a][2]/u?a-1:a],o=a[1],n=a[0]):(o=Math.max(y(r,i,n),1),n=c)}return null==o?n:n.every(o)}var h=ml(pl,Fe),p=h.invert,d=h.domain,v=f(".%L"),g=f(":%S"),_=f("%I:%M"),m=f("%I %p"),x=f("%a %d"),b=f("%b %d"),w=f("%B"),M=f("%Y"),T=[[a,1,Nw],[a,5,5*Nw],[a,15,15*Nw],[a,30,30*Nw],[u,1,kw],[u,5,5*kw],[u,15,15*kw],[u,30,30*kw],[o,1,Sw],[o,3,3*Sw],[o,6,6*Sw],[o,12,12*Sw],[i,1,Aw],[i,2,2*Aw],[r,1,Ew],[n,1,Cw],[n,3,3*Cw],[t,1,zw]];return h.invert=function(t){return new Date(p(t))},h.domain=function(t){return arguments.length?d(hb.call(t,np)):d().map(tp)},h.ticks=function(t,n){var e,r=d(),i=r[0],o=r[r.length-1],u=o<i;return u&&(e=i,i=o,o=e),e=l(t,i,o,n),e=e?e.range(i,o+1):[],u?e.reverse():e},h.tickFormat=function(t,n){return null==n?s:f(n)},h.nice=function(t,n){var e=d();return(t=l(t,e[0],e[e.length-1],n))?d(Tl(e,t)):h},h.copy=function(){return _l(h,ep(t,n,r,i,o,u,a,c,f))},h}function rp(){return ep(Vb,Hb,Cb,Ab,kb,Tb,wb,_b,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function ip(){return ep(gw,dw,tw,Jb,Gb,Wb,wb,_b,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function op(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}function up(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Fw.h=360*t-100,Fw.s=1.5-1.5*n,Fw.l=.8-.9*n,Fw+""}function ap(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function cp(t){function n(n){var o=(n-e)/(r-e);return t(i?Math.max(0,Math.min(1,o)):o)}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.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return cp(t).domain([e,r]).clamp(i)},bl(n)}function fp(t){return function(){return t}}function sp(t){return t>1?0:t<-1?Jw:Math.acos(t)}function lp(t){return t>=1?Kw:t<=-1?-Kw:Math.asin(t)}function hp(t){return t.innerRadius}function pp(t){return t.outerRadius}function dp(t){return t.startAngle}function vp(t){return t.endAngle}function gp(t){return t&&t.padAngle}function yp(t,n,e,r,i,o,u,a){var c=e-t,f=r-n,s=u-i,l=a-o,h=(s*(n-o)-l*(t-i))/(l*c-s*f);return[t+h*c,n+h*f]}function _p(t,n,e,r,i,o,u){var a=t-e,c=n-r,f=(u?o:-o)/Gw(a*a+c*c),s=f*c,l=-f*a,h=t+s,p=n+l,d=e+s,v=r+l,g=(h+d)/2,y=(p+v)/2,_=d-h,m=v-p,x=_*_+m*m,b=i-o,w=h*v-d*p,M=(m<0?-1:1)*Gw($w(0,b*b*x-w*w)),T=(w*m-_*M)/x,N=(-w*_-m*M)/x,k=(w*m+_*M)/x,S=(-w*_+m*M)/x,A=T-g,E=N-y,C=k-g,z=S-y;return A*A+E*E>C*C+z*z&&(T=k,N=S),{cx:T,cy:N,x01:-s,y01:-l,x11:T*(i/b-1),y11:N*(i/b-1)}}function mp(){function t(){var t,f,s=+n.apply(this,arguments),l=+e.apply(this,arguments),h=o.apply(this,arguments)-Kw,p=u.apply(this,arguments)-Kw,d=Hw(p-h),v=p>h;if(c||(c=t=eo()),l<s&&(f=l,l=s,s=f),l>Qw)if(d>tM-Qw)c.moveTo(l*Vw(h),l*Zw(h)),c.arc(0,0,l,h,p,!v),s>Qw&&(c.moveTo(s*Vw(p),s*Zw(p)),c.arc(0,0,s,p,h,v));else{var g,y,_=h,m=p,x=h,b=p,w=d,M=d,T=a.apply(this,arguments)/2,N=T>Qw&&(i?+i.apply(this,arguments):Gw(s*s+l*l)),k=Ww(Hw(l-s)/2,+r.apply(this,arguments)),S=k,A=k;if(N>Qw){var E=lp(N/s*Zw(T)),C=lp(N/l*Zw(T));(w-=2*E)>Qw?(E*=v?1:-1,x+=E,b-=E):(w=0,x=b=(h+p)/2),(M-=2*C)>Qw?(C*=v?1:-1,_+=C,m-=C):(M=0,_=m=(h+p)/2)}var z=l*Vw(_),P=l*Zw(_),R=s*Vw(b),L=s*Zw(b);if(k>Qw){var U=l*Vw(m),q=l*Zw(m),D=s*Vw(x),O=s*Zw(x);if(d<Jw){var F=w>Qw?yp(z,P,D,O,U,q,R,L):[R,L],I=z-F[0],Y=P-F[1],j=U-F[0],B=q-F[1],H=1/Zw(sp((I*j+Y*B)/(Gw(I*I+Y*Y)*Gw(j*j+B*B)))/2),X=Gw(F[0]*F[0]+F[1]*F[1]);S=Ww(k,(s-X)/(H-1)),A=Ww(k,(l-X)/(H+1))}}M>Qw?A>Qw?(g=_p(D,O,z,P,l,A,v),y=_p(U,q,R,L,l,A,v),c.moveTo(g.cx+g.x01,g.cy+g.y01),A<k?c.arc(g.cx,g.cy,A,Xw(g.y01,g.x01),Xw(y.y01,y.x01),!v):(c.arc(g.cx,g.cy,A,Xw(g.y01,g.x01),Xw(g.y11,g.x11),!v),c.arc(0,0,l,Xw(g.cy+g.y11,g.cx+g.x11),Xw(y.cy+y.y11,y.cx+y.x11),!v),c.arc(y.cx,y.cy,A,Xw(y.y11,y.x11),Xw(y.y01,y.x01),!v))):(c.moveTo(z,P),c.arc(0,0,l,_,m,!v)):c.moveTo(z,P),s>Qw&&w>Qw?S>Qw?(g=_p(R,L,U,q,s,-S,v),y=_p(z,P,D,O,s,-S,v),c.lineTo(g.cx+g.x01,g.cy+g.y01),S<k?c.arc(g.cx,g.cy,S,Xw(g.y01,g.x01),Xw(y.y01,y.x01),!v):(c.arc(g.cx,g.cy,S,Xw(g.y01,g.x01),Xw(g.y11,g.x11),!v),c.arc(0,0,s,Xw(g.cy+g.y11,g.cx+g.x11),Xw(y.cy+y.y11,y.cx+y.x11),v),c.arc(y.cx,y.cy,S,Xw(y.y11,y.x11),Xw(y.y01,y.x01),!v))):c.arc(0,0,s,b,x,v):c.lineTo(R,L)}else c.moveTo(0,0);if(c.closePath(),t)return c=null,t+""||null}var n=hp,e=pp,r=fp(0),i=null,o=dp,u=vp,a=gp,c=null;return t.centroid=function(){var t=(+n.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +u.apply(this,arguments))/2-Jw/2;return[Vw(r)*t,Zw(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:fp(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:fp(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:fp(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:fp(+n),t):i},t.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:fp(+n),t):o},t.endAngle=function(n){return arguments.length?(u="function"==typeof n?n:fp(+n),t):u},t.padAngle=function(n){return arguments.length?(a="function"==typeof n?n:fp(+n),t):a},t.context=function(n){return arguments.length?(c=null==n?null:n,t):c},t}function xp(t){this._context=t}function bp(t){return new xp(t)}function wp(t){return t[0]}function Mp(t){return t[1]}function Tp(){function t(t){var a,c,f,s=t.length,l=!1;for(null==i&&(u=o(f=eo())),a=0;a<=s;++a)!(a<s&&r(c=t[a],a,t))===l&&((l=!l)?u.lineStart():u.lineEnd()),l&&u.point(+n(c,a,t),+e(c,a,t));if(f)return u=null,f+""||null}var n=wp,e=Mp,r=fp(!0),i=null,o=bp,u=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:fp(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:fp(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:fp(!!n),t):r},t.curve=function(n){return arguments.length?(o=n,null!=i&&(u=o(i)),t):o},t.context=function(n){return arguments.length?(null==n?i=u=null:u=o(i=n),t):i},t}function Np(){function t(t){var n,s,l,h,p,d=t.length,v=!1,g=new Array(d),y=new Array(d);for(null==a&&(f=c(p=eo())),n=0;n<=d;++n){if(!(n<d&&u(h=t[n],n,t))===v)if(v=!v)s=n,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),l=n-1;l>=s;--l)f.point(g[l],y[l]);f.lineEnd(),f.areaEnd()}v&&(g[n]=+e(h,n,t),y[n]=+i(h,n,t),f.point(r?+r(h,n,t):g[n],o?+o(h,n,t):y[n]))}if(p)return f=null,p+""||null}function n(){return Tp().defined(u).curve(c).context(a)}var e=wp,r=null,i=fp(0),o=Mp,u=fp(!0),a=null,c=bp,f=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:fp(+n),r=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:fp(+n),t):e},t.x1=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:fp(+n),t):r},t.y=function(n){return arguments.length?(i="function"==typeof n?n:fp(+n),o=null,t):i},t.y0=function(n){return arguments.length?(i="function"==typeof n?n:fp(+n),t):i},t.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:fp(+n),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(i)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(r).y(i)},t.defined=function(n){return arguments.length?(u="function"==typeof n?n:fp(!!n),t):u},t.curve=function(n){return arguments.length?(c=n,null!=a&&(f=c(a)),t):c},t.context=function(n){return arguments.length?(null==n?a=f=null:f=c(a=n),t):a},t}function kp(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Sp(t){return t}function Ap(){function t(t){var a,c,f,s,l,h=t.length,p=0,d=new Array(h),v=new Array(h),g=+i.apply(this,arguments),y=Math.min(tM,Math.max(-tM,o.apply(this,arguments)-g)),_=Math.min(Math.abs(y)/h,u.apply(this,arguments)),m=_*(y<0?-1:1);for(a=0;a<h;++a)(l=v[d[a]=a]=+n(t[a],a,t))>0&&(p+=l);for(null!=e?d.sort(function(t,n){return e(v[t],v[n])}):null!=r&&d.sort(function(n,e){return r(t[n],t[e])}),a=0,f=p?(y-h*m)/p:0;a<h;++a,g=s)c=d[a],l=v[c],s=g+(l>0?l*f:0)+m,v[c]={data:t[c],index:a,value:l,startAngle:g,endAngle:s,padAngle:_};return v}var n=Sp,e=kp,r=null,i=fp(0),o=fp(tM),u=fp(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:fp(+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:fp(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:fp(+n),t):o},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:fp(+n),t):u},t}function Ep(t){this._curve=t}function Cp(t){function n(n){return new Ep(t(n))}return n._curve=t,n}function zp(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Cp(t)):n()._curve},t}function Pp(){return zp(Tp().curve(nM))}function Rp(){var t=Np().curve(nM),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return zp(e())},delete t.lineX0,t.lineEndAngle=function(){return zp(r())},delete t.lineX1,t.lineInnerRadius=function(){return zp(i())},delete t.lineY0,t.lineOuterRadius=function(){return zp(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Cp(t)):n()._curve},t}function Lp(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}function Up(t){return t.source}function qp(t){return t.target}function Dp(t){function n(){var n,a=eM.call(arguments),c=e.apply(this,a),f=r.apply(this,a);if(u||(u=n=eo()),t(u,+i.apply(this,(a[0]=c,a)),+o.apply(this,a),+i.apply(this,(a[0]=f,a)),+o.apply(this,a)),n)return u=null,n+""||null}var e=Up,r=qp,i=wp,o=Mp,u=null;return n.source=function(t){return arguments.length?(e=t,n):e},n.target=function(t){return arguments.length?(r=t,n):r},n.x=function(t){return arguments.length?(i="function"==typeof t?t:fp(+t),n):i},n.y=function(t){return arguments.length?(o="function"==typeof t?t:fp(+t),n):o},n.context=function(t){return arguments.length?(u=null==t?null:t,n):u},n}function Op(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function Fp(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function Ip(t,n,e,r,i){var o=Lp(n,e),u=Lp(n,e=(e+i)/2),a=Lp(r,e),c=Lp(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(u[0],u[1],a[0],a[1],c[0],c[1])}function Yp(){return Dp(Op)}function jp(){return Dp(Fp)}function Bp(){var t=Dp(Ip);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}function Hp(){function t(){var t;if(r||(r=t=eo()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t)return r=null,t+""||null}var n=fp(rM),e=fp(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:fp(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:fp(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t}function Xp(){}function Vp(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 $p(t){this._context=t}function Wp(t){return new $p(t)}function Zp(t){this._context=t}function Gp(t){return new Zp(t)}function Qp(t){this._context=t}function Jp(t){return new Qp(t)}function Kp(t,n){this._basis=new $p(t),this._beta=n}function td(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 nd(t,n){this._context=t,this._k=(1-n)/6}function ed(t,n){this._context=t,this._k=(1-n)/6}function rd(t,n){this._context=t,this._k=(1-n)/6}function id(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>Qw){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Qw){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-n*t._l12_2a)/s,u=(u*f+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function od(t,n){this._context=t,this._alpha=n}function ud(t,n){this._context=t,this._alpha=n}function ad(t,n){this._context=t,this._alpha=n}function cd(t){this._context=t}function fd(t){return new cd(t)}function sd(t){return t<0?-1:1}function ld(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(sd(o)+sd(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function hd(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function pd(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function dd(t){this._context=t}function vd(t){this._context=new gd(t)}function gd(t){this._context=t}function yd(t){return new dd(t)}function _d(t){return new vd(t)}function md(t){this._context=t}function xd(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,u[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,u[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,u[n]-=e*u[n-1];for(i[r-1]=u[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function bd(t){return new md(t)}function wd(t,n){this._context=t,this._t=n}function Md(t){return new wd(t,.5)}function Td(t){return new wd(t,0)}function Nd(t){return new wd(t,1)}function kd(t,n){if((i=t.length)>1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o<i;++o)for(r=u,u=t[n[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function Sd(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function Ad(t,n){return t[n]}function Ed(){function t(t){var o,u,a=n.apply(this,arguments),c=t.length,f=a.length,s=new Array(f);for(o=0;o<f;++o){for(var l,h=a[o],p=s[o]=new Array(c),d=0;d<c;++d)p[d]=l=[0,+i(t[d],h,d,t)],l.data=t[d];p.key=h}for(o=0,u=e(s);o<f;++o)s[u[o]].index=o;return r(s,u),s}var n=fp([]),e=Sd,r=kd,i=Ad;return t.keys=function(e){return arguments.length?(n="function"==typeof e?e:fp(eM.call(e)),t):n},t.value=function(n){return arguments.length?(i="function"==typeof n?n:fp(+n),t):i},t.order=function(n){return arguments.length?(e=null==n?Sd:"function"==typeof n?n:fp(eM.call(n)),t):e},t.offset=function(n){return arguments.length?(r=null==n?kd:n,t):r},t}function Cd(t,n){if((r=t.length)>0){for(var e,r,i,o=0,u=t[0].length;o<u;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}kd(t,n)}}function zd(t,n){if((a=t.length)>1)for(var e,r,i,o,u,a,c=0,f=t[n[0]].length;c<f;++c)for(o=u=0,e=0;e<a;++e)(i=(r=t[n[e]][c])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):r[0]=o}function Pd(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var u=0,a=0;u<e;++u)a+=t[u][r][1]||0;i[r][1]+=i[r][0]=-a/2}kd(t,n)}}function Rd(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;u<r;++u){for(var a=0,c=0,f=0;a<i;++a){for(var s=t[n[a]],l=s[u][1]||0,h=s[u-1][1]||0,p=(l-h)/2,d=0;d<a;++d){var v=t[n[d]];p+=(v[u][1]||0)-(v[u-1][1]||0)}c+=l,f+=p*l}e[u-1][1]+=e[u-1][0]=o,c&&(o-=f/c)}e[u-1][1]+=e[u-1][0]=o,kd(t,n)}}function Ld(t){var n=t.map(Ud);return Sd(t).sort(function(t,e){return n[t]-n[e]})}function Ud(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function qd(t){return Ld(t).reverse()}function Dd(t){var n,e,r=t.length,i=t.map(Ud),o=Sd(t).sort(function(t,n){return i[n]-i[t]}),u=0,a=0,c=[],f=[];for(n=0;n<r;++n)e=o[n],u<a?(u+=i[e],c.push(e)):(a+=i[e],f.push(e));return f.reverse().concat(c)}function Od(t){return Sd(t).reverse()}function Fd(t){return function(){return t}}function Id(t){return t[0]}function Yd(t){return t[1]}function jd(){this._=null}function Bd(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Hd(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 Xd(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 Vd(t){for(;t.L;)t=t.L;return t}function $d(t,n,e,r){var i=[null,null],o=PM.push(i)-1;return i.left=t,i.right=n,e&&Zd(i,t,n,e),r&&Zd(i,n,t,r),CM[t.index].halfedges.push(o),CM[n.index].halfedges.push(o),i}function Wd(t,n,e){var r=[n,e];return r.left=t,r}function Zd(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 Gd(t,n,e,r,i){var o,u=t[0],a=t[1],c=u[0],f=u[1],s=a[0],l=a[1],h=0,p=1,d=s-c,v=l-f;if(o=n-c,d||!(o>0)){if(o/=d,d<0){if(o<h)return;o<p&&(p=o)}else if(d>0){if(o>p)return;o>h&&(h=o)}if(o=r-c,d||!(o<0)){if(o/=d,d<0){if(o>p)return;o>h&&(h=o)}else if(d>0){if(o<h)return;o<p&&(p=o)}if(o=e-f,v||!(o>0)){if(o/=v,v<0){if(o<h)return;o<p&&(p=o)}else if(v>0){if(o>p)return;o>h&&(h=o)}if(o=i-f,v||!(o<0)){if(o/=v,v<0){if(o>p)return;o>h&&(h=o)}else if(v>0){if(o<h)return;o<p&&(p=o)}return!(h>0||p<1)||(h>0&&(t[0]=[c+h*d,f+h*v]),p<1&&(t[1]=[c+p*d,f+p*v]),!0)}}}}}function Qd(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,c=t[0],f=t.left,s=t.right,l=f[0],h=f[1],p=s[0],d=s[1],v=(l+p)/2,g=(h+d)/2;if(d===h){if(v<n||v>=r)return;if(l>p){if(c){if(c[1]>=i)return}else c=[v,e];o=[v,i]}else{if(c){if(c[1]<e)return}else c=[v,i];o=[v,e]}}else if(u=(l-p)/(d-h),a=g-u*v,u<-1||u>1)if(l>p){if(c){if(c[1]>=i)return}else c=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(c){if(c[1]<e)return}else c=[(i-a)/u,i];o=[(e-a)/u,e]}else if(h<d){if(c){if(c[0]>=r)return}else c=[n,u*n+a];o=[r,u*r+a]}else{if(c){if(c[0]<n)return}else c=[r,u*r+a];o=[n,u*n+a]}return t[0]=c,t[1]=o,!0}function Jd(t,n,e,r){for(var i,o=PM.length;o--;)Qd(i=PM[o],t,n,e,r)&&Gd(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>UM||Math.abs(i[0][1]-i[1][1])>UM)||delete PM[o]}function Kd(t){return CM[t.index]={site:t,halfedges:[]}}function tv(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 nv(t,n){return n[+(n.left!==t.site)]}function ev(t,n){return n[+(n.left===t.site)]}function rv(){for(var t,n,e,r,i=0,o=CM.length;i<o;++i)if((t=CM[i])&&(r=(n=t.halfedges).length)){var u=new Array(r),a=new Array(r);for(e=0;e<r;++e)u[e]=e,a[e]=tv(t,PM[n[e]]);for(u.sort(function(t,n){return a[n]-a[t]}),e=0;e<r;++e)a[e]=n[u[e]];for(e=0;e<r;++e)n[e]=a[e]}}function iv(t,n,e,r){var i,o,u,a,c,f,s,l,h,p,d,v,g=CM.length,y=!0;for(i=0;i<g;++i)if(o=CM[i]){for(u=o.site,c=o.halfedges,a=c.length;a--;)PM[c[a]]||c.splice(a,1);for(a=0,f=c.length;a<f;)p=ev(o,PM[c[a]]),d=p[0],v=p[1],s=nv(o,PM[c[++a%f]]),l=s[0],h=s[1],(Math.abs(d-l)>UM||Math.abs(v-h)>UM)&&(c.splice(a,0,PM.push(Wd(u,p,Math.abs(d-t)<UM&&r-v>UM?[t,Math.abs(l-t)<UM?h:r]:Math.abs(v-r)<UM&&e-d>UM?[Math.abs(h-r)<UM?l:e,r]:Math.abs(d-e)<UM&&v-n>UM?[e,Math.abs(l-e)<UM?h:n]:Math.abs(v-n)<UM&&d-t>UM?[Math.abs(h-n)<UM?l:t,n]:null))-1),++f);f&&(y=!1)}if(y){var _,m,x,b=1/0;for(i=0,y=null;i<g;++i)(o=CM[i])&&(u=o.site,_=u[0]-t,m=u[1]-n,(x=_*_+m*m)<b&&(b=x,y=o));if(y){var w=[t,n],M=[t,r],T=[e,r],N=[e,n];y.halfedges.push(PM.push(Wd(u=y.site,w,M))-1,PM.push(Wd(u,M,T))-1,PM.push(Wd(u,T,N))-1,PM.push(Wd(u,N,w))-1)}}for(i=0;i<g;++i)(o=CM[i])&&(o.halfedges.length||delete CM[i])}function ov(){Bd(this),this.x=this.y=this.arc=this.site=this.cy=null}function uv(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var u=i[0],a=i[1],c=r[0]-u,f=r[1]-a,s=o[0]-u,l=o[1]-a,h=2*(c*l-f*s);if(!(h>=-qM)){var p=c*c+f*f,d=s*s+l*l,v=(l*p-f*d)/h,g=(c*d-s*p)/h,y=RM.pop()||new ov;y.arc=t,y.site=i,y.x=v+u,y.y=(y.cy=g+a)+Math.sqrt(v*v+g*g),t.circle=y;for(var _=null,m=zM._;m;)if(y.y<m.y||y.y===m.y&&y.x<=m.x){if(!m.L){_=m.P;break}m=m.L}else{if(!m.R){_=m;break}m=m.R}zM.insert(_,y),_||(AM=y)}}}}function av(t){var n=t.circle;n&&(n.P||(AM=n.N),zM.remove(n),RM.push(n),Bd(n),t.circle=null)}function cv(){Bd(this),this.edge=this.site=this.circle=null}function fv(t){var n=LM.pop()||new cv;return n.site=t,n}function sv(t){av(t),EM.remove(t),LM.push(t),Bd(t)}function lv(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,u=t.N,a=[t];sv(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)<UM&&Math.abs(r-c.circle.cy)<UM;)o=c.P,a.unshift(c),sv(c),c=o;a.unshift(c),av(c);for(var f=u;f.circle&&Math.abs(e-f.circle.x)<UM&&Math.abs(r-f.circle.cy)<UM;)u=f.N,a.push(f),sv(f),f=u;a.push(f),av(f);var s,l=a.length;for(s=1;s<l;++s)f=a[s],c=a[s-1],Zd(f.edge,c.site,f.site,i);c=a[0],f=a[l-1],f.edge=$d(c.site,f.site,null,i),uv(c),uv(f)}function hv(t){for(var n,e,r,i,o=t[0],u=t[1],a=EM._;a;)if((r=pv(a,u)-o)>UM)a=a.L;else{if(!((i=o-dv(a,u))>UM)){r>-UM?(n=a.P,e=a):i>-UM?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}Kd(t);var c=fv(t);if(EM.insert(n,c),n||e){if(n===e)return av(n),e=fv(n.site),EM.insert(c,e),c.edge=e.edge=$d(n.site,c.site),uv(n),void uv(e);if(!e)return void(c.edge=$d(n.site,c.site));av(n),av(e);var f=n.site,s=f[0],l=f[1],h=t[0]-s,p=t[1]-l,d=e.site,v=d[0]-s,g=d[1]-l,y=2*(h*g-p*v),_=h*h+p*p,m=v*v+g*g,x=[(g*_-p*m)/y+s,(h*m-v*_)/y+l];Zd(e.edge,f,d,x),c.edge=$d(f,t,null,x),e.edge=$d(t,d,null,x),uv(n),uv(e)}}function pv(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var u=t.P;if(!u)return-1/0;e=u.site;var a=e[0],c=e[1],f=c-n;if(!f)return a;var s=a-r,l=1/o-1/f,h=s/f;return l?(-h+Math.sqrt(h*h-2*l*(s*s/(-2*f)-c+f/2+i-o/2)))/l+r:(r+a)/2}function dv(t,n){var e=t.N;if(e)return pv(e,n);var r=t.site;return r[1]===n?r[0]:1/0}function vv(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function gv(t,n){return n[1]-t[1]||n[0]-t[0]}function yv(t,n){var e,r,i,o=t.sort(gv).pop();for(PM=[],CM=new Array(t.length),EM=new jd,zM=new jd;;)if(i=AM,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(hv(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;lv(i.arc)}if(rv(),n){var u=+n[0][0],a=+n[0][1],c=+n[1][0],f=+n[1][1];Jd(u,a,c,f),iv(u,a,c,f)}this.edges=PM,this.cells=CM,EM=zM=PM=CM=null}function _v(){function t(t){return new yv(t.map(function(r,i){var o=[Math.round(n(r,i,t)/UM)*UM,Math.round(e(r,i,t)/UM)*UM];return o.index=i,o.data=r,o}),r)}var n=Id,e=Yd,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:Fd(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:Fd(+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[0][0],r[1][1]-r[0][1]]},t}function mv(t){return function(){return t}}function xv(t,n,e){this.target=t,this.type=n,this.transform=e}function bv(t,n,e){this.k=t,this.x=n,this.y=e}function wv(t){return t.__zoom||DM}function Mv(){t.event.stopImmediatePropagation()}function Tv(){t.event.preventDefault(),t.event.stopImmediatePropagation()}function Nv(){return!t.event.button}function kv(){var t,n,e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,t=e.width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function Sv(){return this.__zoom||DM}function Av(){return-t.event.deltaY*(t.event.deltaMode?120:1)/500}function Ev(){return"ontouchstart"in this}function Cv(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function zv(){function n(t){t.property("__zoom",Sv).on("wheel.zoom",c).on("mousedown.zoom",f).on("dblclick.zoom",s).filter(x).on("touchstart.zoom",l).on("touchmove.zoom",h).on("touchend.zoom touchcancel.zoom",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(t,n){return n=Math.max(b[0],Math.min(b[1],n)),n===t.k?t:new bv(n,t.x,t.y)}function r(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new bv(t.k,r,i)}function i(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function o(t,n,e){t.on("start.zoom",function(){u(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){u(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,o=u(t,r),a=y.apply(t,r),c=e||i(a),f=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),s=t.__zoom,l="function"==typeof n?n.apply(t,r):n,h=T(s.invert(c).concat(f/s.k),l.invert(c).concat(f/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=f/n[2];t=new bv(e,c[0]-n[0]*e,c[1]-n[1]*e)}o.zoom(null,t)}})}function u(t,n){for(var e,r=0,i=N.length;r<i;++r)if((e=N[r]).that===t)return e;return new a(t,n)}function a(t,n){this.that=t,this.args=n,this.index=-1,this.active=0,this.extent=y.apply(t,n)}function c(){function t(){n.wheel=null,n.end()}if(g.apply(this,arguments)){var n=u(this,arguments),i=this.__zoom,o=Math.max(b[0],Math.min(b[1],i.k*Math.pow(2,m.apply(this,arguments)))),a=Fn(this);if(n.wheel)n.mouse[0][0]===a[0]&&n.mouse[0][1]===a[1]||(n.mouse[1]=i.invert(n.mouse[0]=a)),clearTimeout(n.wheel);else{if(i.k===o)return;n.mouse=[a,i.invert(a)],br(this),n.start()}Tv(),n.wheel=setTimeout(t,A),n.zoom("mouse",_(r(e(i,o),n.mouse[0],n.mouse[1]),n.extent,w))}}function f(){function n(){if(Tv(),!i.moved){var n=t.event.clientX-c,e=t.event.clientY-f;i.moved=n*n+e*e>E}i.zoom("mouse",_(r(i.that.__zoom,i.mouse[0]=Fn(i.that),i.mouse[1]),i.extent,w))}function e(){o.on("mousemove.zoom mouseup.zoom",null),Vn(t.event.view,i.moved),Tv(),i.end()}if(!v&&g.apply(this,arguments)){var i=u(this,arguments),o=Rn(t.event.view).on("mousemove.zoom",n,!0).on("mouseup.zoom",e,!0),a=Fn(this),c=t.event.clientX,f=t.event.clientY;Xn(t.event.view),Mv(),i.mouse=[a,this.__zoom.invert(a)],br(this),i.start()}}function s(){if(g.apply(this,arguments)){var i=this.__zoom,u=Fn(this),a=i.invert(u),c=i.k*(t.event.shiftKey?.5:2),f=_(r(e(i,c),u,a),y.apply(this,arguments),w);Tv(),M>0?Rn(this).transition().duration(M).call(o,f,u):Rn(this).call(n.transform,f)}}function l(){if(g.apply(this,arguments)){var n,e,r,i,o=u(this,arguments),a=t.event.changedTouches,c=a.length;for(Mv(),e=0;e<c;++e)r=a[e],i=Yn(this,a,r.identifier),i=[i,this.__zoom.invert(i),r.identifier],o.touch0?o.touch1||(o.touch1=i):(o.touch0=i,n=!0);if(d&&(d=clearTimeout(d),!o.touch1))return o.end(),void((i=Rn(this).on("dblclick.zoom"))&&i.apply(this,arguments));n&&(d=setTimeout(function(){d=null},S),br(this),o.start())}}function h(){var n,i,o,a,c=u(this,arguments),f=t.event.changedTouches,s=f.length;for(Tv(),d&&(d=clearTimeout(d)),n=0;n<s;++n)i=f[n],o=Yn(this,f,i.identifier),c.touch0&&c.touch0[2]===i.identifier?c.touch0[0]=o:c.touch1&&c.touch1[2]===i.identifier&&(c.touch1[0]=o);if(i=c.that.__zoom,c.touch1){var l=c.touch0[0],h=c.touch0[1],p=c.touch1[0],v=c.touch1[1],g=(g=p[0]-l[0])*g+(g=p[1]-l[1])*g,y=(y=v[0]-h[0])*y+(y=v[1]-h[1])*y;i=e(i,Math.sqrt(g/y)),o=[(l[0]+p[0])/2,(l[1]+p[1])/2],a=[(h[0]+v[0])/2,(h[1]+v[1])/2]}else{if(!c.touch0)return;o=c.touch0[0],a=c.touch0[1]}c.zoom("touch",_(r(i,o,a),c.extent,w))}function p(){var n,e,r=u(this,arguments),i=t.event.changedTouches,o=i.length;for(Mv(),v&&clearTimeout(v),v=setTimeout(function(){v=null},S),n=0;n<o;++n)e=i[n],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0?r.touch0[1]=this.__zoom.invert(r.touch0[0]):r.end()}var d,v,g=Nv,y=kv,_=Cv,m=Av,x=Ev,b=[0,1/0],w=[[-1/0,-1/0],[1/0,1/0]],M=250,T=Ke,N=[],k=V("start","zoom","end"),S=500,A=150,E=0;return n.transform=function(t,n){var e=t.selection?t.selection():t;e.property("__zoom",Sv),t!==e?o(t,n):e.interrupt().each(function(){u(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()})},n.scaleBy=function(t,e){n.scaleTo(t,function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)})},n.scaleTo=function(t,o){n.transform(t,function(){var t=y.apply(this,arguments),n=this.__zoom,u=i(t),a=n.invert(u),c="function"==typeof o?o.apply(this,arguments):o;return _(r(e(n,c),u,a),t,w)})},n.translateBy=function(t,e,r){n.transform(t,function(){return _(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof r?r.apply(this,arguments):r),y.apply(this,arguments),w)})},n.translateTo=function(t,e,r){n.transform(t,function(){var t=y.apply(this,arguments),n=this.__zoom,o=i(t);return _(DM.translate(o[0],o[1]).scale(n.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof r?-r.apply(this,arguments):-r),t,w)})},a.prototype={start:function(){return 1==++this.active&&(this.index=N.push(this)-1,this.emit("start")),this},zoom:function(t,n){return this.mouse&&"mouse"!==t&&(this.mouse[1]=n.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=n.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=n.invert(this.touch1[0])),this.that.__zoom=n,this.emit("zoom"),this},end:function(){return 0==--this.active&&(N.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){kn(new xv(n,t,this.that.__zoom),k.apply,k,[t,this.that,this.args])}},n.wheelDelta=function(t){return arguments.length?(m="function"==typeof t?t:mv(+t),n):m},n.filter=function(t){return arguments.length?(g="function"==typeof t?t:mv(!!t),n):g},n.touchable=function(t){return arguments.length?(x="function"==typeof t?t:mv(!!t),n):x},n.extent=function(t){return arguments.length?(y="function"==typeof t?t:mv([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),n):y},n.scaleExtent=function(t){return arguments.length?(b[0]=+t[0],b[1]=+t[1],n):[b[0],b[1]]},n.translateExtent=function(t){return arguments.length?(w[0][0]=+t[0][0],w[1][0]=+t[1][0],w[0][1]=+t[0][1],w[1][1]=+t[1][1],n):[[w[0][0],w[0][1]],[w[1][0],w[1][1]]]},n.constrain=function(t){return arguments.length?(_=t,n):_},n.duration=function(t){return arguments.length?(M=+t,n):M},n.interpolate=function(t){return arguments.length?(T=t,n):T},n.on=function(){var t=k.on.apply(k,arguments);return t===k?n:t},n.clickDistance=function(t){return arguments.length?(E=(t=+t)*t,n):Math.sqrt(E)},n}var Pv=e(n),Rv=Pv.right,Lv=Pv.left,Uv=Array.prototype,qv=Uv.slice,Dv=Uv.map,Ov=Math.sqrt(50),Fv=Math.sqrt(10),Iv=Math.sqrt(2),Yv=Array.prototype.slice,jv=1,Bv=2,Hv=3,Xv=4,Vv=1e-6,$v={value:function(){}};$.prototype=V.prototype={constructor:$,on:function(t,n){var e,r=this._,i=W(t+"",r),o=-1,u=i.length;{if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<u;)if(e=(t=i[o]).type)r[e]=G(r[e],t.name,n);else if(null==n)for(e in r)r[e]=G(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=Z(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new $(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,e=r.length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var Wv="http://www.w3.org/1999/xhtml",Zv={svg:"http://www.w3.org/2000/svg",xhtml:Wv,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Gv=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Qv=document.documentElement;if(!Qv.matches){var Jv=Qv.webkitMatchesSelector||Qv.msMatchesSelector||Qv.mozMatchesSelector||Qv.oMatchesSelector;Gv=function(t){return function(){return Jv.call(this,t)}}}}var Kv=Gv;st.prototype={constructor:st,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)}};var tg="$";Xt.prototype={add:function(t){this._names.indexOf(t)<0&&(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 ng={};if(t.event=null,"undefined"!=typeof document){"onmouseenter"in document.documentElement||(ng={mouseenter:"mouseover",mouseleave:"mouseout"})}var eg=[null];zn.prototype=Pn.prototype={constructor:zn,select:rt,selectAll:ut,filter:at,data:dt,enter:ft,exit:vt,merge:gt,order:yt,sort:_t,call:xt,nodes:bt,node:wt,size:Mt,empty:Tt,each:Nt,attr:Pt,style:Dt,property:jt,classed:Qt,text:nn,html:un,raise:cn,lower:sn,append:ln,insert:pn,remove:vn,clone:_n,datum:mn,on:Nn,dispatch:Cn};var rg=0;qn.prototype=Un.prototype={constructor:qn,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}},Wn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var ig="\\s*([+-]?\\d+)\\s*",og="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ug="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ag=/^#([0-9a-f]{3})$/,cg=/^#([0-9a-f]{6})$/,fg=new RegExp("^rgb\\("+[ig,ig,ig]+"\\)$"),sg=new RegExp("^rgb\\("+[ug,ug,ug]+"\\)$"),lg=new RegExp("^rgba\\("+[ig,ig,ig,og]+"\\)$"),hg=new RegExp("^rgba\\("+[ug,ug,ug,og]+"\\)$"),pg=new RegExp("^hsl\\("+[og,ug,ug]+"\\)$"),dg=new RegExp("^hsla\\("+[og,ug,ug,og]+"\\)$"),vg={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};te(ee,re,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),te(ce,ae,ne(ee,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ce(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ce(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+")")}})),te(he,le,ne(ee,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new he(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new he(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+(e<.5?e:1-e)*n,i=2*e-r;return new ce(pe(t>=240?t-240:t+120,i,r),pe(t,i,r),pe(t<120?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 gg=Math.PI/180,yg=180/Math.PI,_g=.95047,mg=1,xg=1.08883,bg=4/29,wg=6/29,Mg=3*wg*wg,Tg=wg*wg*wg;te(ge,ve,ne(ee,{brighter:function(t){return new ge(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new ge(this.l-18*(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=mg*_e(t),n=_g*_e(n),e=xg*_e(e),new ce(me(3.2404542*n-1.5371385*t-.4985314*e),me(-.969266*n+1.8760108*t+.041556*e),me(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),te(Me,we,ne(ee,{brighter:function(t){return new Me(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Me(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return de(this).rgb()}}));var Ng=-.14861,kg=1.78277,Sg=-.29227,Ag=-.90649,Eg=1.97294,Cg=Eg*Ag,zg=Eg*kg,Pg=kg*Sg-Ag*Ng;te(ke,Ne,ne(ee,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ke(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ke(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*gg,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ce(255*(n+e*(Ng*r+kg*i)),255*(n+e*(Sg*r+Ag*i)),255*(n+e*(Eg*r)),this.opacity)}}));var Rg,Lg,Ug,qg,Dg,Og,Fg=function t(n){function e(t,n){var e=r((t=ae(t)).r,(n=ae(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),u=Ue(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}var r=Le(n);return e.gamma=t,e}(1),Ig=qe(Ae),Yg=qe(Ee),jg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bg=new RegExp(jg.source,"g"),Hg=180/Math.PI,Xg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Vg=Ze($e,"px, ","px)","deg)"),$g=Ze(We,", ",")",")"),Wg=Math.SQRT2,Zg=2,Gg=4,Qg=1e-12,Jg=tr(Re),Kg=tr(Ue),ty=er(Re),ny=er(Ue),ey=rr(Re),ry=rr(Ue),iy=0,oy=0,uy=0,ay=1e3,cy=0,fy=0,sy=0,ly="object"==typeof performance&&performance.now?performance:Date,hy="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};ar.prototype=cr.prototype={constructor:ar,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?or():+e)+(null==n?0:+n),this._next||Og===this||(Og?Og._next=this:Dg=this,Og=this),this._call=t,this._time=e,pr()},stop:function(){this._call&&(this._call=null,this._time=1/0,pr())}};var py=V("start","end","interrupt"),dy=[],vy=0,gy=1,yy=2,_y=3,my=4,xy=5,by=6,wy=Pn.prototype.constructor,My=0,Ty=Pn.prototype;pi.prototype=di.prototype={constructor:pi,select:Kr,selectAll:ti,filter:Vr,merge:$r,selection:ni,transition:hi,call:Ty.call,nodes:Ty.nodes,node:Ty.node,size:Ty.size,empty:Ty.empty,each:Ty.each,on:Gr,attr:Lr,attrTween:Dr,style:ui,styleTween:ci,text:li,remove:Jr,tween:Nr,delay:Ir,duration:Br,ease:Xr};var Ny=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),ky=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),Sy=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),Ay=Math.PI,Ey=Ay/2,Cy=4/11,zy=6/11,Py=8/11,Ry=.75,Ly=9/11,Uy=10/11,qy=.9375,Dy=21/22,Oy=63/64,Fy=1/Cy/Cy,Iy=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(1.70158),Yy=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(1.70158),jy=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(1.70158),By=2*Math.PI,Hy=function t(n,e){function r(t){return n*Math.pow(2,10*--t)*Math.sin((i-t)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=By);return r.amplitude=function(n){return t(n,e*By)},r.period=function(e){return t(n,e)},r}(1,.3),Xy=function t(n,e){function r(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/e)}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=By);return r.amplitude=function(n){return t(n,e*By)},r.period=function(e){return t(n,e)},r}(1,.3),Vy=function t(n,e){function r(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/e))/2}var i=Math.asin(1/(n=Math.max(1,n)))*(e/=By);return r.amplitude=function(n){return t(n,e*By)},r.period=function(e){return t(n,e)},r}(1,.3),$y={time:null,delay:0,duration:250,ease:wi};Pn.prototype.interrupt=wr,Pn.prototype.transition=qi;var Wy=[null],Zy={name:"drag"},Gy={name:"space"},Qy={name:"handle"},Jy={name:"center"},Ky={name:"x",handles:["e","w"].map(ji),input:function(t,n){return t&&[[t[0],n[0][1]],[t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},t_={name:"y",handles:["n","s"].map(ji),input:function(t,n){return t&&[[n[0][0],t[0]],[n[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},n_={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(ji),input:function(t){return t},output:function(t){return t}},e_={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},r_={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},i_={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},o_={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},u_={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},a_=Math.cos,c_=Math.sin,f_=Math.PI,s_=f_/2,l_=2*f_,h_=Math.max,p_=Array.prototype.slice,d_=Math.PI,v_=2*d_,g_=v_-1e-6;no.prototype=eo.prototype={constructor:no,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,c=r-n,f=o-t,s=u-n,l=f*f+s*s;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(l>1e-6)if(Math.abs(s*a-c*f)>1e-6&&i){var h=e-o,p=r-u,d=a*a+c*c,v=h*h+p*p,g=Math.sqrt(d),y=Math.sqrt(l),_=i*Math.tan((d_-Math.acos((d+l-v)/(2*g*y)))/2),m=_/y,x=_/g;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*f)+","+(n+m*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>f*p)+","+(this._x1=t+x*a)+","+(this._y1=n+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,e=+e;var u=e*Math.cos(r),a=e*Math.sin(r),c=t+u,f=n+a,s=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+f:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+c+","+f),e&&(l<0&&(l=l%v_+v_),l>g_?this._+="A"+e+","+e+",0,1,"+s+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+s+","+(this._x1=c)+","+(this._y1=f):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=d_)+","+s+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};fo.prototype=so.prototype={constructor:fo,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]},set:function(t,n){return this["$"+t]=n,this},remove:function(t){var n="$"+t;return n in this&&delete this[n]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)"$"===n[0]&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)"$"===n[0]&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)"$"===n[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var n in this)"$"===n[0]&&t(this[n],n.slice(1),this)}};var y_=so.prototype;yo.prototype=_o.prototype={constructor:yo,has:y_.has,add:function(t){return t+="",this["$"+t]=t,this},remove:y_.remove,clear:y_.clear,values:y_.keys,size:y_.size,empty:y_.empty,each:y_.each};var __={},m_={},x_=34,b_=10,w_=13,M_=No(","),T_=M_.parse,N_=M_.parseRows,k_=M_.format,S_=M_.formatRows,A_=No("\t"),E_=A_.parse,C_=A_.parseRows,z_=A_.format,P_=A_.formatRows,R_=$o.prototype=Wo.prototype;R_.copy=function(){var t,n,e=new Wo(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=Zo(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=Zo(n));return e},R_.add=Eo,R_.addAll=zo,R_.cover=Po,R_.data=Ro,R_.extent=Lo,R_.find=qo,R_.remove=Do,R_.removeAll=Oo,R_.root=Fo,R_.size=Io,R_.visit=Yo,R_.visitAfter=jo,R_.x=Ho,R_.y=Vo;var L_,U_=10,q_=Math.PI*(3-Math.sqrt(5)),D_={"":pu,"%":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 vu(100*t,n)},r:vu,s:du,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},O_=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;gu.prototype=yu.prototype,yu.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 F_,I_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];xu({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Nu.prototype={constructor:Nu,reset:function(){this.s=this.t=0},add:function(t){ku(_m,t,this.t),ku(this,_m.s,this.s),this.s?this.t+=_m.t:this.s=_m.t},valueOf:function(){return this.s}};var Y_,j_,B_,H_,X_,V_,$_,W_,Z_,G_,Q_,J_,K_,tm,nm,em,rm,im,om,um,am,cm,fm,sm,lm,hm,pm,dm,vm,gm,ym,_m=new Nu,mm=1e-6,xm=1e-12,bm=Math.PI,wm=bm/2,Mm=bm/4,Tm=2*bm,Nm=180/bm,km=bm/180,Sm=Math.abs,Am=Math.atan,Em=Math.atan2,Cm=Math.cos,zm=Math.ceil,Pm=Math.exp,Rm=Math.log,Lm=Math.pow,Um=Math.sin,qm=Math.sign||function(t){return t>0?1:t<0?-1:0},Dm=Math.sqrt,Om=Math.tan,Fm={Feature:function(t,n){zu(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)zu(e[r].geometry,n)}},Im={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){Pu(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Pu(e[r],n,0)},Polygon:function(t,n){Ru(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Ru(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)zu(e[r],n)}},Ym=Tu(),jm=Tu(),Bm={point:Cu,lineStart:Cu,lineEnd:Cu,polygonStart:function(){Ym.reset(),Bm.lineStart=Uu,Bm.lineEnd=qu},polygonEnd:function(){var t=+Ym;jm.add(t<0?Tm+t:t),this.lineStart=this.lineEnd=this.point=Cu},sphere:function(){jm.add(Tm)}},Hm=Tu(),Xm={point:$u,lineStart:Zu,lineEnd:Gu,polygonStart:function(){Xm.point=Qu,Xm.lineStart=Ju,Xm.lineEnd=Ku,Hm.reset(),Bm.polygonStart()},polygonEnd:function(){Bm.polygonEnd(),Xm.point=$u,Xm.lineStart=Zu,Xm.lineEnd=Gu,Ym<0?(V_=-(W_=180),$_=-(Z_=90)):Hm>mm?Z_=90:Hm<-mm&&($_=-90),nm[0]=V_,nm[1]=W_}},Vm={sphere:Cu,point:ia,lineStart:ua,lineEnd:fa,polygonStart:function(){Vm.lineStart=sa,Vm.lineEnd=la},polygonEnd:function(){Vm.lineStart=ua,Vm.lineEnd=fa}};ya.invert=ya;var $m,Wm,Zm,Gm,Qm,Jm,Km,tx,nx,ex,rx,ix=Tu(),ox=Pa(function(){return!0},Ua,Da,[-bm,-wm]),ux=1e9,ax=-ux,cx=Tu(),fx={sphere:Cu,point:Cu,lineStart:ja,lineEnd:Cu,polygonStart:Cu,polygonEnd:Cu},sx=[null,null],lx={type:"LineString",coordinates:sx},hx={Feature:function(t,n){return Wa(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(Wa(e[r].geometry,n))return!0;return!1}},px={Sphere:function(){return!0},Point:function(t,n){return Za(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Za(e[r],n))return!0;return!1},LineString:function(t,n){return Ga(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Ga(e[r],n))return!0;return!1},Polygon:function(t,n){return Qa(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Qa(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(Wa(e[r],n))return!0;return!1}},dx=Tu(),vx=Tu(),gx={point:Cu,lineStart:Cu,lineEnd:Cu,polygonStart:function(){gx.lineStart=ac,gx.lineEnd=sc},polygonEnd:function(){gx.lineStart=gx.lineEnd=gx.point=Cu,dx.add(Sm(vx)),vx.reset()},result:function(){var t=dx/2;return dx.reset(),t}},yx=1/0,_x=yx,mx=-yx,xx=mx,bx={point:lc,lineStart:Cu,lineEnd:Cu,polygonStart:Cu,polygonEnd:Cu,result:function(){var t=[[yx,_x],[mx,xx]];return mx=xx=-(_x=yx=1/0),t}},wx=0,Mx=0,Tx=0,Nx=0,kx=0,Sx=0,Ax=0,Ex=0,Cx=0,zx={point:hc,lineStart:pc,lineEnd:gc,polygonStart:function(){zx.lineStart=yc,zx.lineEnd=_c},polygonEnd:function(){zx.point=hc,zx.lineStart=pc,zx.lineEnd=gc},result:function(){var t=Cx?[Ax/Cx,Ex/Cx]:Sx?[Nx/Sx,kx/Sx]:Tx?[wx/Tx,Mx/Tx]:[NaN,NaN];return wx=Mx=Tx=Nx=kx=Sx=Ax=Ex=Cx=0,t}};bc.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Tm)}},result:Cu};var Px,Rx,Lx,Ux,qx,Dx=Tu(),Ox={point:Cu,lineStart:function(){Ox.point=wc},lineEnd:function(){Px&&Mc(Rx,Lx),Ox.point=Cu},polygonStart:function(){Px=!0},polygonEnd:function(){Px=null},result:function(){var t=+Dx;return Dx.reset(),t}};Tc.prototype={_radius:4.5,_circle:Nc(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Nc(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Ec.prototype={constructor:Ec,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Fx=16,Ix=Cm(30*km),Yx=Ac({point:function(t,n){this.stream.point(t*km,n*km)}}),jx=Wc(function(t){return Dm(2/(1+t))});jx.invert=Zc(function(t){return 2*Au(t/2)});var Bx=Wc(function(t){return(t=Su(t))&&t/Um(t)});Bx.invert=Zc(function(t){return t}),Jc.invert=function(t,n){return[t,2*Am(Pm(n))-wm]},of.invert=of,ff.invert=Zc(Am),pf.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,u=o*o;r-=e=(r*(1.007226+o*(.015085+u*(.028874*o-.044475-.005916*u)))-n)/(1.007226+o*(.045255+u*(.259866*o-.311325-.005916*11*u)))}while(Sm(e)>mm&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},vf.invert=Zc(Au),yf.invert=Zc(function(t){return 2*Am(t)}),mf.invert=function(t,n){return[-n,2*Am(Pm(t))-wm]},$f.prototype=jf.prototype={constructor:$f,count:Cf,each:zf,eachAfter:Rf,eachBefore:Pf,sum:Lf,sort:Uf,path:qf,ancestors:Of,descendants:Ff,leaves:If,links:Yf,copy:Bf};var Hx=Array.prototype.slice,Xx="$",Vx={depth:-1},$x={};zs.prototype=Object.create($f.prototype);var Wx=(1+Math.sqrt(5))/2,Zx=function t(n){function e(t,e,r,i,o){Us(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Wx),Gx=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,f,s,l=-1,h=u.length,p=t.value;++l<h;){for(a=u[l],c=a.children,f=a.value=0,s=c.length;f<s;++f)a.value+=c[f].value;a.dice?xs(a,e,r,i,r+=(o-r)*a.value/p):Ls(a,e,r,e+=(i-e)*a.value/p,o),p-=a.value}else t._squarify=u=Us(n,t,e,r,i,o),u.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Wx),Qx=[].slice,Jx={};$s.prototype=Ks.prototype={constructor:$s,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=Qx.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),Ws(this),this},abort:function(){return null==this._error&&Qs(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(n,e){t.apply(null,[n].concat(e))},Js(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,Js(this),this}};var Kx=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(tl),tb=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(tl),nb=function t(n){function e(){var t=tb.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(tl),eb=function t(n){function e(t){return function(){for(var e=0,r=0;r<t;++r)e+=n();return e}}return e.source=t,e}(tl),rb=function t(n){function e(t){var e=eb.source(n)(t);return function(){return e()/t}}return e.source=t,e}(tl),ib=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(tl),ob=il("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),ub=il("application/json",function(t){return JSON.parse(t.responseText)}),ab=il("text/plain",function(t){return t.responseText}),cb=il("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),fb=ol("text/csv",T_),sb=ol("text/tab-separated-values",E_),lb=Array.prototype,hb=lb.map,pb=lb.slice,db={name:"implicit"},vb=[0,1],gb=new Date,yb=new Date,_b=Ol(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});_b.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ol(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):_b:null};var mb=_b.range,xb=6e4,bb=6048e5,wb=Ol(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(+t+1e3*n)},function(t,n){return(n-t)/1e3},function(t){return t.getUTCSeconds()}),Mb=wb.range,Tb=Ol(function(t){t.setTime(Math.floor(t/xb)*xb)},function(t,n){t.setTime(+t+n*xb)},function(t,n){return(n-t)/xb},function(t){return t.getMinutes()}),Nb=Tb.range,kb=Ol(function(t){var n=t.getTimezoneOffset()*xb%36e5;n<0&&(n+=36e5),t.setTime(36e5*Math.floor((+t-n)/36e5)+n)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getHours()}),Sb=kb.range,Ab=Ol(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())*xb)/864e5},function(t){return t.getDate()-1}),Eb=Ab.range,Cb=Fl(0),zb=Fl(1),Pb=Fl(2),Rb=Fl(3),Lb=Fl(4),Ub=Fl(5),qb=Fl(6),Db=Cb.range,Ob=zb.range,Fb=Pb.range,Ib=Rb.range,Yb=Lb.range,jb=Ub.range,Bb=qb.range,Hb=Ol(function(t){t.setDate(1),t.setHours(0,0,0,0)},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()}),Xb=Hb.range,Vb=Ol(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Vb.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ol(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};var $b=Vb.range,Wb=Ol(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*xb)},function(t,n){return(n-t)/xb},function(t){return t.getUTCMinutes()}),Zb=Wb.range,Gb=Ol(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+36e5*n)},function(t,n){return(n-t)/36e5},function(t){return t.getUTCHours()}),Qb=Gb.range,Jb=Ol(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/864e5},function(t){return t.getUTCDate()-1}),Kb=Jb.range,tw=Il(0),nw=Il(1),ew=Il(2),rw=Il(3),iw=Il(4),ow=Il(5),uw=Il(6),aw=tw.range,cw=nw.range,fw=ew.range,sw=rw.range,lw=iw.range,hw=ow.range,pw=uw.range,dw=Ol(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},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()}),vw=dw.range,gw=Ol(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});gw.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ol(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};var yw,_w=gw.range,mw={"-":"",_:" ",0:"0"},xw=/^\s*\d+/,bw=/^%/,ww=/[\\^$*+?|[\]().{}]/g;Qh({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Mw=Date.prototype.toISOString?Jh:t.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),Tw=+new Date("2000-01-01T00:00:00.000Z")?Kh:t.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),Nw=1e3,kw=60*Nw,Sw=60*kw,Aw=24*Sw,Ew=7*Aw,Cw=30*Aw,zw=365*Aw,Pw=op("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Rw=op("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Lw=op("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Uw=op("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),qw=ry(Ne(300,.5,0),Ne(-240,.5,1)),Dw=ry(Ne(-100,.75,.35),Ne(80,1.5,.8)),Ow=ry(Ne(260,.75,.35),Ne(80,1.5,.8)),Fw=Ne(),Iw=ap(op("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Yw=ap(op("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),jw=ap(op("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Bw=ap(op("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Hw=Math.abs,Xw=Math.atan2,Vw=Math.cos,$w=Math.max,Ww=Math.min,Zw=Math.sin,Gw=Math.sqrt,Qw=1e-12,Jw=Math.PI,Kw=Jw/2,tM=2*Jw;xp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var nM=Cp(bp);Ep.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 eM=Array.prototype.slice,rM={draw:function(t,n){var e=Math.sqrt(n/Jw);t.moveTo(e,0),t.arc(0,0,e,0,tM)}},iM={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()}},oM=Math.sqrt(1/3),uM=2*oM,aM={draw:function(t,n){var e=Math.sqrt(n/uM),r=e*oM;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},cM=Math.sin(Jw/10)/Math.sin(7*Jw/10),fM=Math.sin(tM/10)*cM,sM=-Math.cos(tM/10)*cM,lM={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=fM*e,i=sM*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var u=tM*o/5,a=Math.cos(u),c=Math.sin(u);t.lineTo(c*e,-a*e),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},hM={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},pM=Math.sqrt(3),dM={draw:function(t,n){var e=-Math.sqrt(n/(3*pM));t.moveTo(0,2*e),t.lineTo(-pM*e,-e),t.lineTo(pM*e,-e),t.closePath()}},vM=-.5,gM=Math.sqrt(3)/2,yM=1/Math.sqrt(12),_M=3*(yM/2+1),mM={draw:function(t,n){var e=Math.sqrt(n/_M),r=e/2,i=e*yM,o=r,u=e*yM+e,a=-o,c=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,c),t.lineTo(vM*r-gM*i,gM*r+vM*i),t.lineTo(vM*o-gM*u,gM*o+vM*u),t.lineTo(vM*a-gM*c,gM*a+vM*c),t.lineTo(vM*r+gM*i,vM*i-gM*r),t.lineTo(vM*o+gM*u,vM*u-gM*o),t.lineTo(vM*a+gM*c,vM*c-gM*a),t.closePath()}},xM=[rM,iM,aM,hM,lM,dM,mM];$p.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:Vp(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:Vp(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Zp.prototype={areaStart:Xp,areaEnd:Xp,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:Vp(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Qp.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:Vp(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Kp.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],u=t[e]-i,a=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*u),this._beta*n[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var bM=function t(n){function e(t){return 1===n?new $p(t):new Kp(t,n)}return e.beta=function(n){return t(+n)},e}(.85);nd.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:td(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:td(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 wM=function t(n){function e(t){return new nd(t,n)}return e.tension=function(n){return t(+n)},e}(0);ed.prototype={areaStart:Xp,areaEnd:Xp,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:td(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 MM=function t(n){function e(t){return new ed(t,n)}return e.tension=function(n){return t(+n)},e}(0);rd.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:td(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 TM=function t(n){function e(t){return new rd(t,n)}return e.tension=function(n){return t(+n)},e}(0);od.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:id(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 NM=function t(n){function e(t){return n?new od(t,n):new nd(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);ud.prototype={areaStart:Xp,areaEnd:Xp,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:id(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 kM=function t(n){function e(t){return n?new ud(t,n):new ed(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);ad.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:id(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 SM=function t(n){function e(t){return n?new ad(t,n):new rd(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);cd.prototype={areaStart:Xp,areaEnd:Xp,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))}},dd.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:pd(this,this._t0,hd(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,pd(this,hd(this,e=ld(this,t,n)),e);break;default:pd(this,this._t0,e=ld(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(vd.prototype=Object.create(dd.prototype)).point=function(t,n){dd.prototype.point.call(this,n,t)},gd.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},md.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=xd(t),i=xd(n),o=0,u=1;u<e;++o,++u)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[u],n[u]);(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)}},wd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}},jd.prototype={constructor:jd,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=Vd(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&&(Hd(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Xd(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Xd(this,e),t=e,e=t.U),e.C=!1,r.C=!0,Hd(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,o=t.L,u=t.R;if(e=o?u?Vd(u):o:u,i?i.L===t?i.L=e:i.R=e:this._=e,o&&u?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==u?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=u,u.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,Hd(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,Xd(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Hd(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,Xd(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,Hd(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Xd(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var AM,EM,CM,zM,PM,RM=[],LM=[],UM=1e-6,qM=1e-12;yv.prototype={constructor:yv,polygons:function(){var t=this.edges;return this.cells.map(function(n){var e=n.halfedges.map(function(e){return nv(n,t[e])});return e.data=n.site.data,e})},triangles:function(){var t=[],n=this.edges;return this.cells.forEach(function(e,r){if(o=(i=e.halfedges).length)for(var i,o,u,a=e.site,c=-1,f=n[i[o-1]],s=f.left===a?f.right:f.left;++c<o;)u=s,f=n[i[c]],s=f.left===a?f.right:f.left,u&&s&&r<u.index&&r<s.index&&vv(a,u,s)<0&&t.push([a.data,u.data,s.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}})},find:function(t,n,e){for(var r,i,o=this,u=o._found||0,a=o.cells.length;!(i=o.cells[u]);)if(++u>=a)return null;var c=t-i.site[0],f=n-i.site[1],s=c*c+f*f;do{i=o.cells[r=u],u=null,i.halfedges.forEach(function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var c=t-a[0],f=n-a[1],l=c*c+f*f;l<s&&(s=l,u=a.index)}})}while(null!==u);return o._found=r,null==e||s<=e*e?i.site:null}},bv.prototype={constructor:bv,scale:function(t){return 1===t?this:new bv(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new bv(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var DM=new bv(1,0,0);wv.prototype=bv.prototype,t.version="4.13.0",t.bisect=Rv,t.bisectRight=Rv,t.bisectLeft=Lv,t.ascending=n,t.bisector=e,t.cross=u,t.descending=a,t.deviation=s,t.extent=l,t.histogram=m,t.thresholdFreedmanDiaconis=b,t.thresholdScott=w,t.thresholdSturges=_,t.max=M,t.mean=T,t.median=N,t.merge=k,t.min=S,t.pairs=i,t.permute=A,t.quantile=x,t.range=d,t.scan=E,t.shuffle=C,t.sum=z,t.ticks=v,t.tickIncrement=g,t.tickStep=y,t.transpose=P,t.variance=f,t.zip=L,t.axisTop=j,t.axisRight=B,t.axisBottom=H,t.axisLeft=X,t.brush=Gi,t.brushX=Wi,t.brushY=Zi,t.brushSelection=$i,t.chord=Ki,t.ribbon=co,t.nest=lo,t.set=_o,t.map=so,t.keys=mo,t.values=xo,t.entries=bo,t.color=re,t.rgb=ae,t.hsl=le,t.lab=ve,t.hcl=we,t.cubehelix=Ne,t.dispatch=V,t.drag=Kn,t.dragDisable=Xn,t.dragEnable=Vn,t.dsvFormat=No,t.csvParse=T_,t.csvParseRows=N_,t.csvFormat=k_,t.csvFormatRows=S_,t.tsvParse=E_,t.tsvParseRows=C_,t.tsvFormat=z_,t.tsvFormatRows=P_,t.easeLinear=gi,t.easeQuad=mi,t.easeQuadIn=yi,t.easeQuadOut=_i,t.easeQuadInOut=mi,t.easeCubic=wi,t.easeCubicIn=xi,t.easeCubicOut=bi,t.easeCubicInOut=wi,t.easePoly=Sy,t.easePolyIn=Ny,t.easePolyOut=ky,t.easePolyInOut=Sy,t.easeSin=Ni,t.easeSinIn=Mi,t.easeSinOut=Ti,t.easeSinInOut=Ni,t.easeExp=Ai,t.easeExpIn=ki,t.easeExpOut=Si,t.easeExpInOut=Ai,t.easeCircle=zi,t.easeCircleIn=Ei,t.easeCircleOut=Ci,t.easeCircleInOut=zi,t.easeBounce=Ri,t.easeBounceIn=Pi,t.easeBounceOut=Ri,t.easeBounceInOut=Li,t.easeBack=jy,t.easeBackIn=Iy,t.easeBackOut=Yy,t.easeBackInOut=jy,t.easeElastic=Xy,t.easeElasticIn=Hy,t.easeElasticOut=Xy,t.easeElasticInOut=Vy,t.forceCenter=ko,t.forceCollide=Jo,t.forceLink=nu,t.forceManyBody=ou,t.forceRadial=uu,t.forceSimulation=iu,t.forceX=au,t.forceY=cu,t.formatDefaultLocale=xu,t.formatLocale=mu,t.formatSpecifier=gu,t.precisionFixed=bu,t.precisionPrefix=wu,t.precisionRound=Mu,t.geoArea=Fu,t.geoBounds=ra,t.geoCentroid=da,t.geoCircle=Na,t.geoClipAntimeridian=ox,t.geoClipCircle=Oa,t.geoClipExtent=Ya,t.geoClipRectangle=Ia,t.geoContains=tc,t.geoDistance=$a,t.geoGraticule=rc,t.geoGraticule10=ic,t.geoInterpolate=oc,t.geoLength=Va,t.geoPath=kc,t.geoAlbers=Xc,t.geoAlbersUsa=$c,t.geoAzimuthalEqualArea=Gc,t.geoAzimuthalEqualAreaRaw=jx,t.geoAzimuthalEquidistant=Qc,t.geoAzimuthalEquidistantRaw=Bx,t.geoConicConformal=rf,t.geoConicConformalRaw=ef,t.geoConicEqualArea=Hc,t.geoConicEqualAreaRaw=Bc,t.geoConicEquidistant=cf,t.geoConicEquidistantRaw=af,t.geoEquirectangular=uf,t.geoEquirectangularRaw=of,t.geoGnomonic=sf,t.geoGnomonicRaw=ff,t.geoIdentity=hf,t.geoProjection=Fc,t.geoProjectionMutator=Ic,t.geoMercator=Kc,t.geoMercatorRaw=Jc,t.geoNaturalEarth1=df,t.geoNaturalEarth1Raw=pf,t.geoOrthographic=gf,t.geoOrthographicRaw=vf,t.geoStereographic=_f,t.geoStereographicRaw=yf,t.geoTransverseMercator=xf,t.geoTransverseMercatorRaw=mf,t.geoRotation=wa,t.geoStream=Lu,t.geoTransform=Sc,t.cluster=Af,t.hierarchy=jf,t.pack=vs,t.packSiblings=fs,t.packEnclose=Zf,t.partition=bs,t.stratify=Ts,t.tree=Rs,t.treemap=qs,t.treemapBinary=Ds,t.treemapDice=xs,t.treemapSlice=Ls,t.treemapSliceDice=Os,t.treemapSquarify=Zx,t.treemapResquarify=Gx,t.interpolate=He,t.interpolateArray=De,t.interpolateBasis=Ae,t.interpolateBasisClosed=Ee,t.interpolateDate=Oe,t.interpolateNumber=Fe,t.interpolateObject=Ie,t.interpolateRound=Xe,t.interpolateString=Be,t.interpolateTransformCss=Vg,t.interpolateTransformSvg=$g,t.interpolateZoom=Ke,t.interpolateRgb=Fg,t.interpolateRgbBasis=Ig,t.interpolateRgbBasisClosed=Yg,t.interpolateHsl=Jg,t.interpolateHslLong=Kg,t.interpolateLab=nr,t.interpolateHcl=ty;t.interpolateHclLong=ny,t.interpolateCubehelix=ey,t.interpolateCubehelixLong=ry,t.quantize=ir,t.path=eo,t.polygonArea=Fs,t.polygonCentroid=Is,t.polygonHull=Hs,t.polygonContains=Xs,t.polygonLength=Vs,t.quadtree=$o,t.queue=Ks,t.randomUniform=Kx,t.randomNormal=tb,t.randomLogNormal=nb,t.randomBates=rb,t.randomIrwinHall=eb,t.randomExponential=ib,t.request=nl,t.html=ob,t.json=ub,t.text=ab,t.xml=cb,t.csv=fb,t.tsv=sb,t.scaleBand=cl,t.scalePoint=sl,t.scaleIdentity=Ml,t.scaleLinear=wl,t.scaleLog=zl,t.scaleOrdinal=al,t.scaleImplicit=db,t.scalePow=Rl,t.scaleSqrt=Ll,t.scaleQuantile=Ul,t.scaleQuantize=ql,t.scaleThreshold=Dl,t.scaleTime=rp,t.scaleUtc=ip,t.schemeCategory10=Pw,t.schemeCategory20b=Rw,t.schemeCategory20c=Lw,t.schemeCategory20=Uw,t.interpolateCubehelixDefault=qw,t.interpolateRainbow=up,t.interpolateWarm=Dw,t.interpolateCool=Ow,t.interpolateViridis=Iw,t.interpolateMagma=Yw,t.interpolateInferno=jw,t.interpolatePlasma=Bw,t.scaleSequential=cp,t.create=Ln,t.creator=tt,t.local=Un,t.matcher=Kv,t.mouse=Fn,t.namespace=Q,t.namespaces=Zv,t.clientPoint=On,t.select=Rn,t.selectAll=In,t.selection=Pn,t.selector=et,t.selectorAll=ot,t.style=Ot,t.touch=Yn,t.touches=jn,t.window=Rt,t.customEvent=kn,t.arc=mp,t.area=Np,t.line=Tp,t.pie=Ap,t.areaRadial=Rp,t.radialArea=Rp,t.lineRadial=Pp,t.radialLine=Pp,t.pointRadial=Lp,t.linkHorizontal=Yp,t.linkVertical=jp,t.linkRadial=Bp,t.symbol=Hp,t.symbols=xM,t.symbolCircle=rM,t.symbolCross=iM,t.symbolDiamond=aM,t.symbolSquare=hM,t.symbolStar=lM,t.symbolTriangle=dM,t.symbolWye=mM,t.curveBasisClosed=Gp,t.curveBasisOpen=Jp,t.curveBasis=Wp,t.curveBundle=bM,t.curveCardinalClosed=MM,t.curveCardinalOpen=TM,t.curveCardinal=wM,t.curveCatmullRomClosed=kM,t.curveCatmullRomOpen=SM,t.curveCatmullRom=NM,t.curveLinearClosed=fd,t.curveLinear=bp,t.curveMonotoneX=yd,t.curveMonotoneY=_d,t.curveNatural=bd,t.curveStep=Md,t.curveStepAfter=Nd,t.curveStepBefore=Td,t.stack=Ed,t.stackOffsetExpand=Cd,t.stackOffsetDiverging=zd,t.stackOffsetNone=kd,t.stackOffsetSilhouette=Pd,t.stackOffsetWiggle=Rd,t.stackOrderAscending=Ld,t.stackOrderDescending=qd,t.stackOrderInsideOut=Dd,t.stackOrderNone=Sd,t.stackOrderReverse=Od,t.timeInterval=Ol,t.timeMillisecond=_b,t.timeMilliseconds=mb,t.utcMillisecond=_b,t.utcMilliseconds=mb,t.timeSecond=wb,t.timeSeconds=Mb,t.utcSecond=wb,t.utcSeconds=Mb,t.timeMinute=Tb,t.timeMinutes=Nb,t.timeHour=kb,t.timeHours=Sb,t.timeDay=Ab,t.timeDays=Eb,t.timeWeek=Cb,t.timeWeeks=Db,t.timeSunday=Cb,t.timeSundays=Db,t.timeMonday=zb,t.timeMondays=Ob,t.timeTuesday=Pb,t.timeTuesdays=Fb,t.timeWednesday=Rb,t.timeWednesdays=Ib,t.timeThursday=Lb,t.timeThursdays=Yb,t.timeFriday=Ub,t.timeFridays=jb,t.timeSaturday=qb,t.timeSaturdays=Bb,t.timeMonth=Hb,t.timeMonths=Xb,t.timeYear=Vb,t.timeYears=$b,t.utcMinute=Wb,t.utcMinutes=Zb,t.utcHour=Gb,t.utcHours=Qb,t.utcDay=Jb,t.utcDays=Kb,t.utcWeek=tw,t.utcWeeks=aw,t.utcSunday=tw,t.utcSundays=aw,t.utcMonday=nw,t.utcMondays=cw,t.utcTuesday=ew,t.utcTuesdays=fw,t.utcWednesday=rw,t.utcWednesdays=sw,t.utcThursday=iw,t.utcThursdays=lw,t.utcFriday=ow,t.utcFridays=hw,t.utcSaturday=uw,t.utcSaturdays=pw,t.utcMonth=dw,t.utcMonths=vw,t.utcYear=gw,t.utcYears=_w,t.timeFormatDefaultLocale=Qh,t.timeFormatLocale=Hl,t.isoFormat=Mw,t.isoParse=Tw,t.now=or,t.timer=cr,t.timerFlush=fr,t.timeout=dr,t.interval=vr,t.transition=di,t.active=Di,t.interrupt=br,t.voronoi=_v,t.zoom=zv,t.zoomTransform=wv,t.zoomIdentity=DM,Object.defineProperty(t,"__esModule",{value:!0})})},49:function(t,n,e){e(4),t.exports=e(5)},5:function(t,n){!function(e){if("object"==typeof n&&void 0!==t)t.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.urlon=e()}}(function(){function t(t,n){return encodeURI(t.replace(n,"/$1"))}function n(t){return"string"==typeof t?t.replace(/;+$/g,""):t}function e(r,i){if(!i)return n(e(r,!0));if("number"==typeof r||!0===r||!1===r||null===r)return":"+r;var a=[];if(r instanceof Array){for(var c=0;c<r.length;++c)void 0===r[c]?a.push(":null"):a.push(e(r[c],!0));return"@"+a.join("&")+";"}if("object"==typeof r){for(var f in r){var s=e(r[f],!0);s&&a.push(t(f,o)+s)}return"$"+a.join("&")+";"}if(void 0!==r)return"="+t(r.toString(),u)}function r(t){function n(n){for(var e="";r!==t.length;++r){if("/"===t.charAt(r)){if((r+=1)===t.length){e+=";";break}}else if(t.charAt(r).match(n))break;e+=t.charAt(r)}return e}function e(){var i=t.charAt(r++);if("="===i)return n(c);if(":"===i){var o=n(c);return"true"===o||"false"!==o&&(o=parseFloat(o),isNaN(o)?null:o)}var u;if("@"===i){u=[];t:if(!(r>=t.length||";"===t.charAt(r)))for(;;){if(u.push(e()),r>=t.length||";"===t.charAt(r))break t;r+=1}return r+=1,u}if("$"===i){u={};t:if(!(r>=t.length||";"===t.charAt(r)))for(;;){var f=n(a);if(u[f]=e(),r>=t.length||";"===t.charAt(r))break t;r+=1}return r+=1,u}throw new Error("Unexpected char "+i)}var r=0;return t=decodeURI(t),e()}var i;i={exports:{}};var o=/([=:@$\/])/g,u=/([&;\/])/g,a=/[=:@$]/,c=/[&;]/;return i.exports={stringify:e,parse:r},i.exports})}});
  //# sourceMappingURL=vendor.js.map