[BUGFIX] D3.js uses basic authentication credentials cached in browser 59/55559/4
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Fri, 2 Feb 2018 16:15:57 +0000 (17:15 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 5 Feb 2018 09:29:07 +0000 (10:29 +0100)
Chrome 64 changed the behaviour regarding xhr.open() calls when passing
null values as password and username.
The d3.js file is manually patched.
Once PR https://github.com/d3/d3-request/pull/34/files is merged we can
use official d3.js version again.

Resolves: #83741
Releases: master, 8.7
Change-Id: I9b83d953ecd19afb9fa5039e1782d094111b0125
Reviewed-on: https://review.typo3.org/55559
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Peter Kraume <peter.kraume@gmx.de>
Tested-by: Peter Kraume <peter.kraume@gmx.de>
Reviewed-by: Marco Huber <mail@marco-huber.de>
Tested-by: Marco Huber <mail@marco-huber.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Build/Gruntfile.js
typo3/sysext/core/Resources/Public/JavaScript/Contrib/d3/d3.js

index 466abd9..65af57a 100644 (file)
@@ -348,7 +348,12 @@ module.exports = function(grunt) {
                                        /* disabled until autocomplete formatGroup is fixed to pass on the index too
                                           'jquery.autocomplete.js': '../node_modules/devbridge-autocomplete/dist/jquery.autocomplete.min.js',
                                        */
-                                       'd3/d3.js': 'd3/build/d3.min.js',
+                                       /**
+                                        * d3/d3.js requires a patch  https://github.com/d3/d3-request/pull/34/files
+                                        * to solve issue with basic auth in Chrome 64, see https://forge.typo3.org/issues/83741
+                                        * for now the file is manually patched by us, thus can't be automatically updated
+                                        */
+                                       // 'd3/d3.js': 'd3/build/d3.min.js',
                                        /**
                                         * copy needed parts of jquery
                                         */
index 6a27058..0e5c0ab 100644 (file)
@@ -1,2 +1,13 @@
-// https://d3js.org Version 4.10.0. Copyright 2017 Mike Bostock.
-(function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.d3=t.d3||{})})(this,function(t){"use strict";function n(t){return function(n,e){return ss(t(n),e)}}function e(t,n){return[t,n]}function r(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>=Ts?10:o>=ks?5:o>=Ns?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ts?10:o>=ks?5:o>=Ns?2:1)}function i(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>=Ts?i*=10:o>=ks?i*=5:o>=Ns&&(i*=2),n<t?-i:i}function o(t){return t.length}function u(t){return"translate("+(t+.5)+",0)"}function a(t){return"translate(0,"+(t+.5)+")"}function c(t){return function(n){return+t(n)}}function s(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function f(){return!this.__axis}function l(t,n){function e(e){var u=null==i?n.ticks?n.ticks.apply(n,r):n.domain():i,a=null==o?n.tickFormat?n.tickFormat.apply(n,r):Ls:o,y=Math.max(l,0)+p,g=n.range(),m=+g[0]+.5,x=+g[g.length-1]+.5,b=(n.bandwidth?s:c)(n.copy()),w=e.selection?e.selection():e,M=w.selectAll(".domain").data([null]),T=w.selectAll(".tick").data(u,n).order(),k=T.exit(),N=T.enter().append("g").attr("class","tick"),S=T.select("line"),E=T.select("text");M=M.merge(M.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),T=T.merge(N),S=S.merge(N.append("line").attr("stroke","#000").attr(v+"2",d*l)),E=E.merge(N.append("text").attr("fill","#000").attr(v,d*y).attr("dy",t===qs?"0em":t===Ds?"0.71em":"0.32em")),e!==w&&(M=M.transition(e),T=T.transition(e),S=S.transition(e),E=E.transition(e),k=k.transition(e).attr("opacity",Fs).attr("transform",function(t){return isFinite(t=b(t))?_(t):this.getAttribute("transform")}),N.attr("opacity",Fs).attr("transform",function(t){var n=this.parentNode.__axis;return _(n&&isFinite(n=n(t))?n:b(t))})),k.remove(),M.attr("d",t===Os||t==Us?"M"+d*h+","+m+"H0.5V"+x+"H"+d*h:"M"+m+","+d*h+"V0.5H"+x+"V"+d*h),T.attr("opacity",1).attr("transform",function(t){return _(b(t))}),S.attr(v+"2",d*l),E.attr(v,d*y).text(a),w.filter(f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Us?"start":t===Os?"end":"middle"),w.each(function(){this.__axis=b})}var r=[],i=null,o=null,l=6,h=6,p=3,d=t===qs||t===Os?-1:1,v=t===Os||t===Us?"x":"y",_=t===qs||t===Ds?u:a;return e.scale=function(t){return arguments.length?(n=t,e):n},e.ticks=function(){return r=Rs.call(arguments),e},e.tickArguments=function(t){return arguments.length?(r=null==t?[]:Rs.call(t),e):r.slice()},e.tickValues=function(t){return arguments.length?(i=null==t?null:Rs.call(t),e):i&&i.slice()},e.tickFormat=function(t){return arguments.length?(o=t,e):o},e.tickSize=function(t){return arguments.length?(l=h=+t,e):l},e.tickSizeInner=function(t){return arguments.length?(l=+t,e):l},e.tickSizeOuter=function(t){return arguments.length?(h=+t,e):h},e.tickPadding=function(t){return arguments.length?(p=+t,e):p},e}function h(){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 p(r)}function p(t){this._=t}function d(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 v(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function _(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=Is,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}function y(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Ys&&n.documentElement.namespaceURI===Ys?n.createElement(t):n.createElementNS(e,t)}}function g(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function m(){return new x}function x(){this._="@"+(++Xs).toString(36)}function b(t,n,e){return t=w(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function w(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 M(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 T(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 k(t,n,e){var r=Gs.hasOwnProperty(t.type)?b:w;return function(i,o,u){var a,c=this.__on,s=r(n,o,u);if(c)for(var f=0,l=c.length;f<l;++f)if((a=c[f]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}function N(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 S(){}function E(){return[]}function A(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function C(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new A(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function z(t,n,e,r,i,o,u){var a,c,s,f={},l=n.length,h=o.length,p=new Array(l);for(a=0;a<l;++a)(c=n[a])&&(p[a]=s=of+u.call(c,c.__data__,a,n),s in f?i[a]=c:f[s]=c);for(a=0;a<h;++a)(c=f[s=of+u.call(t,o[a],a,o)])?(r[a]=c,c.__data__=o[a],f[s]=null):e[a]=new A(t,o[a]);for(a=0;a<l;++a)(c=n[a])&&f[p[a]]===c&&(i[a]=c)}function P(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function R(t){return function(){this.removeAttribute(t)}}function L(t){return function(){this.removeAttributeNS(t.space,t.local)}}function q(t,n){return function(){this.setAttribute(t,n)}}function U(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function D(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function O(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 F(t){return function(){this.style.removeProperty(t)}}function I(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Y(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function B(t,n){return t.style.getPropertyValue(n)||uf(t).getComputedStyle(t,null).getPropertyValue(n)}function j(t){return function(){delete this[t]}}function H(t,n){return function(){this[t]=n}}function X(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function $(t){return t.trim().split(/^|\s+/)}function V(t){return t.classList||new W(t)}function W(t){this._node=t,this._names=$(t.getAttribute("class")||"")}function Z(t,n){for(var e=V(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function G(t,n){for(var e=V(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function J(t){return function(){Z(this,t)}}function Q(t){return function(){G(this,t)}}function K(t,n){return function(){(n.apply(this,arguments)?Z:G)(this,t)}}function tt(){this.textContent=""}function nt(t){return function(){this.textContent=t}}function et(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function rt(){this.innerHTML=""}function it(t){return function(){this.innerHTML=t}}function ot(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ut(){this.nextSibling&&this.parentNode.appendChild(this)}function at(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ct(){return null}function st(){var t=this.parentNode;t&&t.removeChild(this)}function ft(t,n,e){var r=uf(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 lt(t,n){return function(){return ft(this,t,n)}}function ht(t,n){return function(){return ft(this,t,n.apply(this,arguments))}}function pt(t,n){this._groups=t,this._parents=n}function dt(){return new pt([[document.documentElement]],af)}function vt(){t.event.stopImmediatePropagation()}function _t(t,n){var e=t.document.documentElement,r=cf(t).on("dragstart.drag",null);n&&(r.on("click.drag",ff,!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 yt(t,n,e,r,i,o,u,a,c,s){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._=s}function gt(){return!t.event.button}function mt(){return this.parentNode}function xt(n){return null==n?{x:t.event.x,y:t.event.y}:n}function bt(){return"ontouchstart"in this}function wt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Mt(){}function Tt(t){var n;return t=(t+"").trim().toLowerCase(),(n=yf.exec(t))?(n=parseInt(n[1],16),new At(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=gf.exec(t))?kt(parseInt(n[1],16)):(n=mf.exec(t))?new At(n[1],n[2],n[3],1):(n=xf.exec(t))?new At(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=bf.exec(t))?Nt(n[1],n[2],n[3],n[4]):(n=wf.exec(t))?Nt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Mf.exec(t))?Ct(n[1],n[2]/100,n[3]/100,1):(n=Tf.exec(t))?Ct(n[1],n[2]/100,n[3]/100,n[4]):kf.hasOwnProperty(t)?kt(kf[t]):"transparent"===t?new At(NaN,NaN,NaN,0):null}function kt(t){return new At(t>>16&255,t>>8&255,255&t,1)}function Nt(t,n,e,r){return r<=0&&(t=n=e=NaN),new At(t,n,e,r)}function St(t){return t instanceof Mt||(t=Tt(t)),t?(t=t.rgb(),new At(t.r,t.g,t.b,t.opacity)):new At}function Et(t,n,e,r){return 1===arguments.length?St(t):new At(t,n,e,null==r?1:r)}function At(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Ct(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Rt(t,n,e,r)}function zt(t){if(t instanceof Rt)return new Rt(t.h,t.s,t.l,t.opacity);if(t instanceof Mt||(t=Tt(t)),!t)return new Rt;if(t instanceof Rt)return t;var n=(t=t.rgb()).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 Rt(u,a,c,t.opacity)}function Pt(t,n,e,r){return 1===arguments.length?zt(t):new Rt(t,n,e,null==r?1:r)}function Rt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Lt(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 qt(t){if(t instanceof Dt)return new Dt(t.l,t.a,t.b,t.opacity);if(t instanceof Ht){var n=t.h*Nf;return new Dt(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof At||(t=St(t));var e=Yt(t.r),r=Yt(t.g),i=Yt(t.b),o=Ot((.4124564*e+.3575761*r+.1804375*i)/Ef),u=Ot((.2126729*e+.7151522*r+.072175*i)/Af);return new Dt(116*u-16,500*(o-u),200*(u-Ot((.0193339*e+.119192*r+.9503041*i)/Cf)),t.opacity)}function Ut(t,n,e,r){return 1===arguments.length?qt(t):new Dt(t,n,e,null==r?1:r)}function Dt(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Ot(t){return t>Lf?Math.pow(t,1/3):t/Rf+zf}function Ft(t){return t>Pf?t*t*t:Rf*(t-zf)}function It(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Yt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Bt(t){if(t instanceof Ht)return new Ht(t.h,t.c,t.l,t.opacity);t instanceof Dt||(t=qt(t));var n=Math.atan2(t.b,t.a)*Sf;return new Ht(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function jt(t,n,e,r){return 1===arguments.length?Bt(t):new Ht(t,n,e,null==r?1:r)}function Ht(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Xt(t){if(t instanceof Vt)return new Vt(t.h,t.s,t.l,t.opacity);t instanceof At||(t=St(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Bf*r+If*n-Yf*e)/(Bf+If-Yf),o=r-i,u=(Ff*(e-i)-Df*o)/Of,a=Math.sqrt(u*u+o*o)/(Ff*i*(1-i)),c=a?Math.atan2(u,o)*Sf-120:NaN;return new Vt(c<0?c+360:c,a,i,t.opacity)}function $t(t,n,e,r){return 1===arguments.length?Xt(t):new Vt(t,n,e,null==r?1:r)}function Vt(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Wt(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 Zt(t,n){return function(e){return t+e*n}}function Gt(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 Jt(t,n){var e=n-t;return e?Zt(t,e>180||e<-180?e-360*Math.round(e/360):e):Jf(isNaN(t)?n:t)}function Qt(t){return 1==(t=+t)?Kt:function(n,e){return e-n?Gt(n,e,t):Jf(isNaN(n)?e:n)}}function Kt(t,n){var e=n-t;return e?Zt(t,e):Jf(isNaN(t)?n:t)}function tn(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=Et(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 nn(t){return function(){return t}}function en(t){return function(n){return t(n)+""}}function rn(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:rl(t,i)},{i:c-2,x:rl(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:rl(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:rl(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:rl(t,e)},{i:a-2,x:rl(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 on(t){return((t=Math.exp(t))+1/t)/2}function un(t){return((t=Math.exp(t))-1/t)/2}function an(t){return((t=Math.exp(2*t))-1)/(t+1)}function cn(t){return function(n,e){var r=t((n=Pt(n)).h,(e=Pt(e)).h),i=Kt(n.s,e.s),o=Kt(n.l,e.l),u=Kt(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 sn(t){return function(n,e){var r=t((n=jt(n)).h,(e=jt(e)).h),i=Kt(n.c,e.c),o=Kt(n.l,e.l),u=Kt(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 fn(t){return function n(e){function r(n,r){var i=t((n=$t(n)).h,(r=$t(r)).h),o=Kt(n.s,r.s),u=Kt(n.l,r.l),a=Kt(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 ln(){return El||(zl(hn),El=Cl.now()+Al)}function hn(){El=0}function pn(){this._call=this._time=this._next=null}function dn(t,n,e){var r=new pn;return r.restart(t,n,e),r}function vn(){ln(),++Ml;for(var t,n=Vf;n;)(t=El-n._time)>=0&&n._call.call(null,t),n=n._next;--Ml}function _n(){El=(Sl=Cl.now())+Al,Ml=Tl=0;try{vn()}finally{Ml=0,gn(),El=0}}function yn(){var t=Cl.now(),n=t-Sl;n>Nl&&(Al-=n,Sl=t)}function gn(){for(var t,n,e=Vf,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:Vf=n);Wf=t,mn(r)}function mn(t){if(!Ml){Tl&&(Tl=clearTimeout(Tl));var n=t-El;n>24?(t<1/0&&(Tl=setTimeout(_n,n)),kl&&(kl=clearInterval(kl))):(kl||(Sl=El,kl=setInterval(yn,Nl)),Ml=1,zl(_n))}}function xn(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>ql)throw new Error("too late");return e}function bn(t,n){var e=t.__transition;if(!e||!(e=e[n])||e.state>Dl)throw new Error("too late");return e}function wn(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("too late");return e}function Mn(t,n,e){function r(c){var s,f,l,h;if(e.state!==Ul)return o();for(s in a)if((h=a[s]).name===e.name){if(h.state===Ol)return Pl(r);h.state===Fl?(h.state=Yl,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete a[s]):+s<n&&(h.state=Yl,h.timer.stop(),delete a[s])}if(Pl(function(){e.state===Ol&&(e.state=Fl,e.timer.restart(i,e.delay,e.time),i(c))}),e.state=Dl,e.on.call("start",t,t.__data__,e.index,e.group),e.state===Dl){for(e.state=Ol,u=new Array(l=e.tween.length),s=0,f=-1;s<l;++s)(h=e.tween[s].value.call(t,t.__data__,e.index,e.group))&&(u[++f]=h);u.length=f+1}}function i(n){for(var r=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(o),e.state=Il,1),i=-1,a=u.length;++i<a;)u[i].call(null,r);e.state===Il&&(e.on.call("end",t,t.__data__,e.index,e.group),o())}function o(){e.state=Yl,e.timer.stop(),delete a[n];for(var r in a)return;delete t.__transition}var u,a=t.__transition;a[n]=e,e.timer=dn(function(t){e.state=Ul,e.timer.restart(r,e.delay,e.time),e.delay<=t&&r(t-e.delay)},0,e.time)}function Tn(t,n){var e,r;return function(){var i=bn(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function kn(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=bn(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},c=0,s=i.length;c<s;++c)if(i[c].name===n){i[c]=a;break}c===s&&i.push(a)}o.tween=i}}function Nn(t,n,e){var r=t._id;return t.each(function(){var t=bn(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)}),function(t){return wn(t,r).value[n]}}function Sn(t){return function(){this.removeAttribute(t)}}function En(t){return function(){this.removeAttributeNS(t.space,t.local)}}function An(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 Cn(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 zn(t,n,e){var r,i,o;return function(){var u,a=e(this);{if(null!=a)return(u=this.getAttribute(t))===a?null:u===r&&a===i?o:o=n(r=u,i=a);this.removeAttribute(t)}}}function Pn(t,n,e){var r,i,o;return function(){var u,a=e(this);{if(null!=a)return(u=this.getAttributeNS(t.space,t.local))===a?null:u===r&&a===i?o:o=n(r=u,i=a);this.removeAttributeNS(t.space,t.local)}}}function Rn(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 Ln(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 qn(t,n){return function(){xn(this,t).delay=+n.apply(this,arguments)}}function Un(t,n){return n=+n,function(){xn(this,t).delay=n}}function Dn(t,n){return function(){bn(this,t).duration=+n.apply(this,arguments)}}function On(t,n){return n=+n,function(){bn(this,t).duration=n}}function Fn(t,n){if("function"!=typeof n)throw new Error;return function(){bn(this,t).ease=n}}function In(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 Yn(t,n,e){var r,i,o=In(n)?xn:bn;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}function Bn(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}function jn(t,n){var e,r,i;return function(){var o=B(this,t),u=(this.style.removeProperty(t),B(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}function Hn(t){return function(){this.style.removeProperty(t)}}function Xn(t,n,e){var r,i;return function(){var o=B(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}function $n(t,n,e){var r,i,o;return function(){var u=B(this,t),a=e(this);return null==a&&(this.style.removeProperty(t),a=B(this,t)),u===a?null:u===r&&a===i?o:o=n(r=u,i=a)}}function Vn(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 Wn(t){return function(){this.textContent=t}}function Zn(t){return function(){var n=t(this);this.textContent=null==n?"":n}}function Gn(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Jn(t){return dt().transition(t)}function Qn(){return++$l}function Kn(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function te(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function ne(t){return(1-Math.cos(Jl*t))/2}function ee(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function re(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function ie(t){return(t=+t)<Kl?ch*t*t:t<nh?ch*(t-=th)*t+eh:t<ih?ch*(t-=rh)*t+oh:ch*(t-=uh)*t+ah}function oe(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return _h.time=ln(),_h;return e}function ue(){t.event.stopImmediatePropagation()}function ae(t){return{type:t}}function ce(){return!t.event.button}function se(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function fe(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function le(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function he(n){function e(t){var e=t.property("__brush",a).selectAll(".overlay").data([ae("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Eh.overlay).merge(e).each(function(){var t=fe(this).extent;cf(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([ae("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Eh.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 Eh[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=cf(this),n=fe(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]-p/2:n[0][0]-p/2}).attr("y",function(t){return"s"===t.type[0]?n[1][1]-p/2:n[0][1]-p/2}).attr("width",function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+p:p}).attr("height",function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+p:p})):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=Ks(w);!L||x||b||(Math.abs(t[0]-U[0])>Math.abs(t[1]-U[1])?b=!0:x=!0),U=t,m=!0,xh(),o()}function o(){var t;switch(y=U[0]-q[0],g=U[1]-q[1],T){case wh:case bh:k&&(y=Math.max(C-a,Math.min(P-p,y)),s=a+y,d=p+y),N&&(g=Math.max(z-l,Math.min(R-v,g)),h=l+g,_=v+g);break;case Mh:k<0?(y=Math.max(C-a,Math.min(P-a,y)),s=a+y,d=p):k>0&&(y=Math.max(C-p,Math.min(P-p,y)),s=a,d=p+y),N<0?(g=Math.max(z-l,Math.min(R-l,g)),h=l+g,_=v):N>0&&(g=Math.max(z-v,Math.min(R-v,g)),h=l,_=v+g);break;case Th:k&&(s=Math.max(C,Math.min(P,a-y*k)),d=Math.max(C,Math.min(P,p+y*k))),N&&(h=Math.max(z,Math.min(R,l-g*N)),_=Math.max(z,Math.min(R,v+g*N)))}d<s&&(k*=-1,t=a,a=p,p=t,t=s,s=d,d=t,M in Ah&&F.attr("cursor",Eh[M=Ah[M]])),_<h&&(N*=-1,t=l,l=v,v=t,t=h,h=_,_=t,M in Ch&&F.attr("cursor",Eh[M=Ch[M]])),S.selection&&(A=S.selection),x&&(s=A[0][0],d=A[1][0]),b&&(h=A[0][1],_=A[1][1]),A[0][0]===s&&A[0][1]===h&&A[1][0]===d&&A[1][1]===_||(S.selection=[[s,h],[d,_]],r.call(w),D.brush())}function u(){if(ue(),t.event.touches){if(t.event.touches.length)return;c&&clearTimeout(c),c=setTimeout(function(){c=null},500),O.on("touchmove.brush touchend.brush touchcancel.brush",null)}else _t(t.event.view,m),I.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);O.attr("pointer-events","all"),F.attr("cursor",Eh.overlay),S.selection&&(A=S.selection),le(A)&&(S.selection=null,r.call(w)),D.end()}if(t.event.touches){if(t.event.changedTouches.length<t.event.touches.length)return xh()}else if(c)return;if(f.apply(this,arguments)){var a,s,l,h,p,d,v,_,y,g,m,x,b,w=this,M=t.event.target.__data__.type,T="selection"===(t.event.metaKey?M="overlay":M)?bh:t.event.altKey?Th:Mh,k=n===Nh?null:zh[M],N=n===kh?null:Ph[M],S=fe(w),E=S.extent,A=S.selection,C=E[0][0],z=E[0][1],P=E[1][0],R=E[1][1],L=k&&N&&t.event.shiftKey,q=Ks(w),U=q,D=i(w,arguments).beforestart();"overlay"===M?S.selection=A=[[a=n===Nh?C:q[0],l=n===kh?z:q[1]],[p=n===Nh?P:a,v=n===kh?R:l]]:(a=A[0][0],l=A[0][1],p=A[1][0],v=A[1][1]),s=a,h=l,d=p,_=v;var O=cf(w).attr("pointer-events","none"),F=O.selectAll(".overlay").attr("cursor",Eh[M]);if(t.event.touches)O.on("touchmove.brush",e,!0).on("touchend.brush touchcancel.brush",u,!0);else{var I=cf(t.event.view).on("keydown.brush",function(){switch(t.event.keyCode){case 16:L=k&&N;break;case 18:T===Mh&&(k&&(p=d-y*k,a=s+y*k),N&&(v=_-g*N,l=h+g*N),T=Th,o());break;case 32:T!==Mh&&T!==Th||(k<0?p=d-y:k>0&&(a=s-y),N<0?v=_-g:N>0&&(l=h-g),T=wh,F.attr("cursor",Eh.selection),o());break;default:return}xh()},!0).on("keyup.brush",function(){switch(t.event.keyCode){case 16:L&&(x=b=L=!1,o());break;case 18:T===Th&&(k<0?p=d:k>0&&(a=s),N<0?v=_:N>0&&(l=h),T=Mh,o());break;case 32:T===wh&&(t.event.altKey?(k&&(p=d-y*k,a=s+y*k),N&&(v=_-g*N,l=h+g*N),T=Th):(k<0?p=d:k>0&&(a=s),N<0?v=_:N>0&&(l=h),T=Mh),F.attr("cursor",Eh[M]),o());break;default:return}xh()},!0).on("mousemove.brush",e,!0).on("mouseup.brush",u,!0);lf(t.event.view)}ue(),jl(w),r.call(w),D.start()}}function a(){var t=this.__brush||{selection:null};return t.extent=s.apply(this,arguments),t.dim=n,t}var c,s=se,f=ce,l=h(e,"start","brush","end"),p=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&&le(s)?null:f(t),r.call(o),a.brush()}var o=this,u=o.__brush,a=i(o,arguments),c=u.selection,s=n.input("function"==typeof e?e.apply(this,arguments):e,u.extent),f=cl(c,s);return c&&s?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();jl(t),u.selection=null==a||le(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){N(new mh(e,t,n.output(this.state.selection)),l.apply,l,[t,this.that,this.args])}},e.extent=function(t){return arguments.length?(s="function"==typeof t?t:gh([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):s},e.filter=function(t){return arguments.length?(f="function"==typeof t?t:gh(!!t),e):f},e.handleSize=function(t){return arguments.length?(p=+t,e):p},e.on=function(){var t=l.on.apply(l,arguments);return t===l?e:t},e}function pe(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function de(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ve(){return new de}function _e(t){return t.source}function ye(t){return t.target}function ge(t){return t.radius}function me(t){return t.startAngle}function xe(t){return t.endAngle}function be(){}function we(t,n){var e=new be;if(t instanceof be)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 Me(){return{}}function Te(t,n,e){t[n]=e}function ke(){return we()}function Ne(t,n,e){t.set(n,e)}function Se(){}function Ee(t,n){var e=new Se;if(t instanceof Se)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 Ae(t){return new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}")}function Ce(t,n){var e=Ae(t);return function(r,i){return n(e(r),i,t)}}function ze(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 Pe(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,c,s,f,l,h,p=t._root,d={data:r},v=t._x0,_=t._y0,y=t._x1,g=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((s=n>=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(_+g)/2))?_=u:g=u,i=p,!(p=p[l=f<<1|s]))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),(s=n>=(o=(v+y)/2))?v=o:y=o,(f=e>=(u=(_+g)/2))?_=u:g=u}while((l=f<<1|s)==(h=(c>=u)<<1|a>=o));return i[h]=p,i[l]=d,t}function Re(t){return t[0]}function Le(t){return t[1]}function qe(t,n,e){var r=new Ue(null==n?Re:n,null==e?Le:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Ue(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 De(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}function Oe(t){return t.x+t.vx}function Fe(t){return t.y+t.vy}function Ie(t){return t.index}function Ye(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function Be(t){return t.x}function je(t){return t.y}function He(t){return new Xe(t)}function Xe(t){if(!(n=vp.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],s=n[8]&&+n[8].slice(1),f=n[9]||"";"n"===f?(c=!0,f="g"):dp[f]||(f=""),(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=s,this.type=f}function $e(n){return _p=mp(n),t.format=_p.format,t.formatPrefix=_p.formatPrefix,_p}function Ve(){this.reset()}function We(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}function Ze(t){return t>1?0:t<-1?rd:Math.acos(t)}function Ge(t){return t>1?id:t<-1?-id:Math.asin(t)}function Je(t){return(t=yd(t/2))*t}function Qe(){}function Ke(t,n){t&&wd.hasOwnProperty(t.type)&&wd[t.type](t,n)}function tr(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 nr(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)tr(t[e],n,1);n.polygonEnd()}function er(){Nd.point=ir}function rr(){or(Tp,kp)}function ir(t,n){Nd.point=or,Tp=t,kp=n,Np=t*=cd,Sp=hd(n=(n*=cd)/2+od),Ep=yd(n)}function or(t,n){n=(n*=cd)/2+od;var e=(t*=cd)-Np,r=e>=0?1:-1,i=r*e,o=hd(n),u=yd(n),a=Ep*u,c=Sp*o+a*hd(i),s=a*r*yd(i);Td.add(ld(s,c)),Np=t,Sp=o,Ep=u}function ur(t){return[ld(t[1],t[0]),Ge(t[2])]}function ar(t){var n=t[0],e=t[1],r=hd(e);return[r*hd(n),r*yd(n),yd(e)]}function cr(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function sr(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 fr(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function lr(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function hr(t){var n=md(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function pr(t,n){Dp.push(Op=[Ap=t,zp=t]),n<Cp&&(Cp=n),n>Pp&&(Pp=n)}function dr(t,n){var e=ar([t*cd,n*cd]);if(Up){var r=sr(Up,e),i=sr([r[1],-r[0],0],r);hr(i),i=ur(i);var o,u=t-Rp,a=u>0?1:-1,c=i[0]*ad*a,s=sd(u)>180;s^(a*Rp<c&&c<a*t)?(o=i[1]*ad)>Pp&&(Pp=o):(c=(c+360)%360-180,s^(a*Rp<c&&c<a*t)?(o=-i[1]*ad)<Cp&&(Cp=o):(n<Cp&&(Cp=n),n>Pp&&(Pp=n))),s?t<Rp?xr(Ap,t)>xr(Ap,zp)&&(zp=t):xr(t,zp)>xr(Ap,zp)&&(Ap=t):zp>=Ap?(t<Ap&&(Ap=t),t>zp&&(zp=t)):t>Rp?xr(Ap,t)>xr(Ap,zp)&&(zp=t):xr(t,zp)>xr(Ap,zp)&&(Ap=t)}else Dp.push(Op=[Ap=t,zp=t]);n<Cp&&(Cp=n),n>Pp&&(Pp=n),Up=e,Rp=t}function vr(){Ed.point=dr}function _r(){Op[0]=Ap,Op[1]=zp,Ed.point=pr,Up=null}function yr(t,n){if(Up){var e=t-Rp;Sd.add(sd(e)>180?e+(e>0?360:-360):e)}else Lp=t,qp=n;Nd.point(t,n),dr(t,n)}function gr(){Nd.lineStart()}function mr(){yr(Lp,qp),Nd.lineEnd(),sd(Sd)>ed&&(Ap=-(zp=180)),Op[0]=Ap,Op[1]=zp,Up=null}function xr(t,n){return(n-=t)<0?n+360:n}function br(t,n){return t[0]-n[0]}function wr(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}function Mr(t,n){t*=cd;var e=hd(n*=cd);Tr(e*hd(t),e*yd(t),yd(n))}function Tr(t,n,e){Yp+=(t-Yp)/++Fp,Bp+=(n-Bp)/Fp,jp+=(e-jp)/Fp}function kr(){Ad.point=Nr}function Nr(t,n){t*=cd;var e=hd(n*=cd);Qp=e*hd(t),Kp=e*yd(t),td=yd(n),Ad.point=Sr,Tr(Qp,Kp,td)}function Sr(t,n){t*=cd;var e=hd(n*=cd),r=e*hd(t),i=e*yd(t),o=yd(n),u=ld(md((u=Kp*o-td*i)*u+(u=td*r-Qp*o)*u+(u=Qp*i-Kp*r)*u),Qp*r+Kp*i+td*o);Ip+=u,Hp+=u*(Qp+(Qp=r)),Xp+=u*(Kp+(Kp=i)),$p+=u*(td+(td=o)),Tr(Qp,Kp,td)}function Er(){Ad.point=Mr}function Ar(){Ad.point=zr}function Cr(){Pr(Gp,Jp),Ad.point=Mr}function zr(t,n){Gp=t,Jp=n,t*=cd,n*=cd,Ad.point=Pr;var e=hd(n);Qp=e*hd(t),Kp=e*yd(t),td=yd(n),Tr(Qp,Kp,td)}function Pr(t,n){t*=cd;var e=hd(n*=cd),r=e*hd(t),i=e*yd(t),o=yd(n),u=Kp*o-td*i,a=td*r-Qp*o,c=Qp*i-Kp*r,s=md(u*u+a*a+c*c),f=Ge(s),l=s&&-f/s;Vp+=l*u,Wp+=l*a,Zp+=l*c,Ip+=f,Hp+=f*(Qp+(Qp=r)),Xp+=f*(Kp+(Kp=i)),$p+=f*(td+(td=o)),Tr(Qp,Kp,td)}function Rr(t,n){return[t>rd?t-ud:t<-rd?t+ud:t,n]}function Lr(t,n,e){return(t%=ud)?n||e?zd(Ur(t),Dr(n,e)):Ur(t):n||e?Dr(n,e):Rr}function qr(t){return function(n,e){return n+=t,[n>rd?n-ud:n<-rd?n+ud:n,e]}}function Ur(t){var n=qr(t);return n.invert=qr(-t),n}function Dr(t,n){function e(t,n){var e=hd(n),a=hd(t)*e,c=yd(t)*e,s=yd(n),f=s*r+a*i;return[ld(c*o-f*u,a*r-s*i),Ge(f*o+c*u)]}var r=hd(t),i=yd(t),o=hd(n),u=yd(n);return e.invert=function(t,n){var e=hd(n),a=hd(t)*e,c=yd(t)*e,s=yd(n),f=s*o-c*u;return[ld(c*o+s*u,a*r+f*i),Ge(f*r-a*i)]},e}function Or(t,n,e,r,i,o){if(e){var u=hd(n),a=yd(n),c=r*e;null==i?(i=n+r*ud,o=n-c/2):(i=Fr(u,i),o=Fr(u,o),(r>0?i<o:i>o)&&(i+=r*ud));for(var s,f=i;r>0?f>o:f<o;f-=c)s=ur([u,-a*hd(f),-a*yd(f)]),t.point(s[0],s[1])}}function Fr(t,n){(n=ar(n))[0]-=t,hr(n);var e=Ze(-n[1]);return((-n[2]<0?-e:e)+ud-ed)%ud}function Ir(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 Yr(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 Br(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,a,s){var f=0,l=0;if(null==i||(f=u(i,a))!==(l=u(o,a))||c(i,o)<0^a>0)do{s.point(0===f||3===f?t:e,f>1?r:n)}while((f=(f+a+4)%4)!==l);else s.point(o[0],o[1])}function u(r,i){return sd(r[0]-t)<ed?i>0?0:3:sd(r[0]-e)<ed?i>0?2:1:sd(r[1]-n)<ed?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)&&w.point(t,n)}function s(){for(var n=0,e=0,i=h.length;e<i;++e)for(var o,u,a=h[e],c=1,s=a.length,f=a[0],l=f[0],p=f[1];c<s;++c)o=l,u=p,l=(f=a[c])[0],p=f[1],u<=r?p>r&&(l-o)*(r-u)>(p-u)*(t-o)&&++n:p<=r&&(l-o)*(r-u)<(p-u)*(t-o)&&--n;return n}function f(o,u){var a=i(o,u);if(h&&p.push([o,u]),x)d=o,v=u,_=a,x=!1,a&&(w.lineStart(),w.point(o,u));else if(a&&m)w.point(o,u);else{var c=[y=Math.max(Zd,Math.min(Wd,y)),g=Math.max(Zd,Math.min(Wd,g))],s=[o=Math.max(Zd,Math.min(Wd,o)),u=Math.max(Zd,Math.min(Wd,u))];Xd(c,s,t,n,e,r)?(m||(w.lineStart(),w.point(c[0],c[1])),w.point(s[0],s[1]),a||w.lineEnd(),b=!1):a&&(w.lineStart(),w.point(o,u),b=!1)}y=o,g=u,m=a}var l,h,p,d,v,_,y,g,m,x,b,w=u,M=Hd(),T={point:c,lineStart:function(){T.point=f,h&&h.push(p=[]),x=!0,m=!1,y=g=NaN},lineEnd:function(){l&&(f(d,v),_&&m&&M.rejoin(),l.push(M.result())),T.point=c,m&&w.lineEnd()},polygonStart:function(){w=M,l=[],h=[],b=!0},polygonEnd:function(){var t=s(),n=b&&t,e=(l=Cs(l)).length;(n||e)&&(u.polygonStart(),n&&(u.lineStart(),o(null,null,1,u),u.lineEnd()),e&&Vd(l,a,t,o,u),u.polygonEnd()),w=u,l=h=p=null}};return T}}function jr(){Kd.point=Kd.lineEnd=Qe}function Hr(t,n){Pd=t*=cd,Rd=yd(n*=cd),Ld=hd(n),Kd.point=Xr}function Xr(t,n){t*=cd;var e=yd(n*=cd),r=hd(n),i=sd(t-Pd),o=hd(i),u=r*yd(i),a=Ld*e-Rd*r*o,c=Rd*e+Ld*r*o;Qd.add(ld(md(u*u+a*a),c)),Pd=t,Rd=e,Ld=r}function $r(t,n){return!(!t||!ov.hasOwnProperty(t.type))&&ov[t.type](t,n)}function Vr(t,n){return 0===rv(t,n)}function Wr(t,n){var e=rv(t[0],t[1]);return rv(t[0],n)+rv(n,t[1])<=e+ed}function Zr(t,n){return!!Jd(t.map(Gr),Jr(n))}function Gr(t){return(t=t.map(Jr)).pop(),t}function Jr(t){return[t[0]*cd,t[1]*cd]}function Qr(t,n,e){var r=Ms(t,n-ed,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function Kr(t,n,e){var r=Ms(t,n-ed,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function ti(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return Ms(pd(o/_)*_,i,_).map(h).concat(Ms(pd(s/y)*y,c,y).map(p)).concat(Ms(pd(r/d)*d,e,d).filter(function(t){return sd(t%_)>ed}).map(f)).concat(Ms(pd(a/v)*v,u,v).filter(function(t){return sd(t%y)>ed}).map(l))}var e,r,i,o,u,a,c,s,f,l,h,p,d=10,v=d,_=90,y=360,g=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(s).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],s=+n[0][1],c=+n[1][1],o>i&&(n=o,o=i,i=n),s>c&&(n=s,s=c,c=n),t.precision(g)):[[o,s],[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(g)):[[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?(_=+n[0],y=+n[1],t):[_,y]},t.stepMinor=function(n){return arguments.length?(d=+n[0],v=+n[1],t):[d,v]},t.precision=function(n){return arguments.length?(g=+n,f=Qr(a,u,90),l=Kr(r,e,g),h=Qr(s,c,90),p=Kr(o,i,g),t):g},t.extentMajor([[-180,-90+ed],[180,90-ed]]).extentMinor([[-180,-80-ed],[180,80+ed]])}function ni(){sv.point=ei}function ei(t,n){sv.point=ri,qd=Dd=t,Ud=Od=n}function ri(t,n){cv.add(Od*t-Dd*n),Dd=t,Od=n}function ii(){ri(qd,Ud)}function oi(t,n){vv+=t,_v+=n,++yv}function ui(){Tv.point=ai}function ai(t,n){Tv.point=ci,oi(Yd=t,Bd=n)}function ci(t,n){var e=t-Yd,r=n-Bd,i=md(e*e+r*r);gv+=i*(Yd+t)/2,mv+=i*(Bd+n)/2,xv+=i,oi(Yd=t,Bd=n)}function si(){Tv.point=oi}function fi(){Tv.point=hi}function li(){pi(Fd,Id)}function hi(t,n){Tv.point=pi,oi(Fd=Yd=t,Id=Bd=n)}function pi(t,n){var e=t-Yd,r=n-Bd,i=md(e*e+r*r);gv+=i*(Yd+t)/2,mv+=i*(Bd+n)/2,xv+=i,bv+=(i=Bd*t-Yd*n)*(Yd+t),wv+=i*(Bd+n),Mv+=3*i,oi(Yd=t,Bd=n)}function di(t){this._context=t}function vi(t,n){zv.point=_i,Nv=Ev=t,Sv=Av=n}function _i(t,n){Ev-=t,Av-=n,Cv.add(md(Ev*Ev+Av*Av)),Ev=t,Av=n}function yi(){this._string=[]}function gi(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function mi(t){return t.length>1}function xi(t,n){return((t=t.x)[0]<0?t[1]-id-ed:id-t[1])-((n=n.x)[0]<0?n[1]-id-ed:id-n[1])}function bi(t,n,e,r){var i,o,u=yd(t-e);return sd(u)>ed?fd((yd(n)*(o=hd(r))*yd(e)-yd(r)*(i=hd(n))*yd(t))/(i*o*u)):(n+r)/2}function wi(t){return function(n){var e=new Mi;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Mi(){}function Ti(t,n,e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),Md(e,t.stream(dv));var u=dv.result(),a=Math.min(r/(u[1][0]-u[0][0]),i/(u[1][1]-u[0][1])),c=+n[0][0]+(r-a*(u[1][0]+u[0][0]))/2,s=+n[0][1]+(i-a*(u[1][1]+u[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*a).translate([c,s])}function ki(t,n,e){return Ti(t,[[0,0],n],e)}function Ni(t){return wi({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}function Si(t,n){function e(r,i,o,u,a,c,s,f,l,h,p,d,v,_){var y=s-r,g=f-i,m=y*y+g*g;if(m>4*n&&v--){var x=u+h,b=a+p,w=c+d,M=md(x*x+b*b+w*w),T=Ge(w/=M),k=sd(sd(w)-1)<ed||sd(o-l)<ed?(o+l)/2:ld(b,x),N=t(k,T),S=N[0],E=N[1],A=S-r,C=E-i,z=g*A-y*C;(z*z/m>n||sd((y*A+g*C)/m-.5)>.3||u*h+a*p+c*d<Uv)&&(e(r,i,o,u,a,c,S,E,k,x/=M,b/=M,w,v,_),_.point(S,E),e(S,E,k,x,b,w,s,f,l,h,p,d,v,_))}}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=ar([r,i]),u=t(r,i);e(y,g,_,m,x,b,y=u[0],g=u[1],_=r,m=o[0],x=o[1],b=o[2],qv,n),n.point(y,g)}function u(){w.point=r,n.lineEnd()}function a(){i(),w.point=c,w.lineEnd=s}function c(t,n){o(f=t,n),l=y,h=g,p=m,d=x,v=b,w.point=o}function s(){e(y,g,_,m,x,b,l,h,f,p,d,v,qv,n),w.lineEnd=u,u()}var f,l,h,p,d,v,_,y,g,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 Ei(t){return Ai(function(){return t})()}function Ai(t){function n(t){return t=f(t[0]*cd,t[1]*cd),[t[0]*_+a,c-t[1]*_]}function e(t){return(t=f.invert((t[0]-a)/_,(c-t[1])/_))&&[t[0]*ad,t[1]*ad]}function r(t,n){return t=u(t,n),[t[0]*_+a,c-t[1]*_]}function i(){f=zd(s=Lr(b,w,M),u);var t=u(m,x);return a=y-t[0]*_,c=g+t[1]*_,o()}function o(){return d=v=null,n}var u,a,c,s,f,l,h,p,d,v,_=150,y=480,g=250,m=0,x=0,b=0,w=0,M=0,T=null,k=Rv,N=null,S=uv,E=.5,A=Dv(r,E);return n.stream=function(t){return d&&v===t?d:d=Ov(k(s,A(S(v=t))))},n.clipAngle=function(t){return arguments.length?(k=+t?Lv(T=t*cd,6*cd):(T=null,Rv),o()):T*ad},n.clipExtent=function(t){return arguments.length?(S=null==t?(N=l=h=p=null,uv):Br(N=+t[0][0],l=+t[0][1],h=+t[1][0],p=+t[1][1]),o()):null==N?null:[[N,l],[h,p]]},n.scale=function(t){return arguments.length?(_=+t,i()):_},n.translate=function(t){return arguments.length?(y=+t[0],g=+t[1],i()):[y,g]},n.center=function(t){return arguments.length?(m=t[0]%360*cd,x=t[1]%360*cd,i()):[m*ad,x*ad]},n.rotate=function(t){return arguments.length?(b=t[0]%360*cd,w=t[1]%360*cd,M=t.length>2?t[2]%360*cd:0,i()):[b*ad,w*ad,M*ad]},n.precision=function(t){return arguments.length?(A=Dv(r,E=t*t),o()):md(E)},n.fitExtent=function(t,e){return Ti(n,t,e)},n.fitSize=function(t,e){return ki(n,t,e)},function(){return u=t.apply(this,arguments),n.invert=u.invert&&e,i()}}function Ci(t){var n=0,e=rd/3,r=Ai(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*cd,e=t[1]*cd):[n*ad,e*ad]},i}function zi(t){function n(t,n){return[t*e,yd(n)/e]}var e=hd(t);return n.invert=function(t,n){return[t/e,Ge(n*e)]},n}function Pi(t,n){function e(t,n){var e=md(o-2*i*yd(n))/i;return[e*yd(t*=i),u-e*hd(t)]}var r=yd(t),i=(r+yd(n))/2;if(sd(i)<ed)return zi(t);var o=1+r*(2*i-r),u=md(o)/i;return e.invert=function(t,n){var e=u-n;return[ld(t,sd(e))/i*gd(e),Ge((o-(t*t+e*e)*i*i)/(2*i))]},e}function Ri(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 Li(t){return function(n,e){var r=hd(n),i=hd(e),o=t(r*i);return[o*i*yd(n),o*yd(e)]}}function qi(t){return function(n,e){var r=md(n*n+e*e),i=t(r),o=yd(i),u=hd(i);return[ld(n*o,r*u),Ge(r&&e*o/r)]}}function Ui(t,n){return[t,vd(xd((id+n)/2))]}function Di(t){function n(){var n=rd*a(),u=o(jd(o.rotate()).invert([0,0]));return s(null==f?[[u[0]-n,u[1]-n],[u[0]+n,u[1]+n]]:t===Ui?[[Math.max(u[0]-n,f),e],[Math.min(u[0]+n,r),i]]:[[f,Math.max(u[1]-n,e)],[r,Math.min(u[1]+n,i)]])}var e,r,i,o=Ei(t),u=o.center,a=o.scale,c=o.translate,s=o.clipExtent,f=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?f=e=r=i=null:(f=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),n()):null==f?null:[[f,e],[r,i]]},n()}function Oi(t){return xd((id+t)/2)}function Fi(t,n){function e(t,n){o>0?n<-id+ed&&(n=-id+ed):n>id-ed&&(n=id-ed);var e=o/_d(Oi(n),i);return[e*yd(i*t),o-e*hd(i*t)]}var r=hd(t),i=t===n?yd(t):vd(r/hd(n))/vd(Oi(n)/Oi(t)),o=r*_d(Oi(t),i)/i;return i?(e.invert=function(t,n){var e=o-n,r=gd(i)*md(t*t+e*e);return[ld(t,sd(e))/i*gd(e),2*fd(_d(o/r,1/i))-id]},e):Ui}function Ii(t,n){return[t,n]}function Yi(t,n){function e(t,n){var e=o-n,r=i*t;return[e*yd(r),o-e*hd(r)]}var r=hd(t),i=t===n?yd(t):(r-hd(n))/(n-t),o=r/i+t;return sd(i)<ed?Ii:(e.invert=function(t,n){var e=o-n;return[ld(t,sd(e))/i*gd(e),o-gd(i)*md(t*t+e*e)]},e)}function Bi(t,n){var e=hd(n),r=hd(t)*e;return[e*yd(t)/r,yd(n)/r]}function ji(t,n,e,r){return 1===t&&1===n&&0===e&&0===r?uv:wi({point:function(i,o){this.stream.point(i*t+e,o*n+r)}})}function Hi(t,n){return[hd(n)*yd(t),yd(n)]}function Xi(t,n){var e=hd(n),r=1+hd(t)*e;return[e*yd(t)/r,yd(n)/r]}function $i(t,n){return[vd(xd((id+n)/2)),-t]}function Vi(t,n){return t.parent===n.parent?1:2}function Wi(t){return t.reduce(Zi,0)/t.length}function Zi(t,n){return t+n.x}function Gi(t){return 1+t.reduce(Ji,0)}function Ji(t,n){return Math.max(t,n.y)}function Qi(t){for(var n;n=t.children;)t=n[0];return t}function Ki(t){for(var n;n=t.children;)t=n[n.length-1];return t}function to(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 no(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 eo(t,n){var e,r,i,o,u,a=new uo(t),c=+t.value&&(a.value=t.value),s=[a];for(null==n&&(n=ro);e=s.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)s.push(r=e.children[o]=new uo(i[o])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(oo)}function ro(t){return t.children}function io(t){t.data=t.data.data}function oo(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function uo(t){this.data=t,this.depth=this.height=0,this.parent=null}function ao(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 co(t,n){var e,r;if(lo(n,t))return[n];for(e=0;e<t.length;++e)if(so(n,t[e])&&lo(vo(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(so(vo(t[e],t[r]),n)&&so(vo(t[e],n),t[r])&&so(vo(t[r],n),t[e])&&lo(_o(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function so(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 fo(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 lo(t,n){for(var e=0;e<n.length;++e)if(!fo(t,n[e]))return!1;return!0}function ho(t){switch(t.length){case 1:return po(t[0]);case 2:return vo(t[0],t[1]);case 3:return _o(t[0],t[1],t[2])}}function po(t){return{x:t.x,y:t.y,r:t.r}}function vo(t,n){var e=t.x,r=t.y,i=t.r,o=n.x,u=n.y,a=n.r,c=o-e,s=u-r,f=a-i,l=Math.sqrt(c*c+s*s);return{x:(e+o+c/l*f)/2,y:(r+u+s/l*f)/2,r:(l+i+a)/2}}function _o(t,n,e){var r=t.x,i=t.y,o=t.r,u=n.x,a=n.y,c=n.r,s=e.x,f=e.y,l=e.r,h=r-u,p=r-s,d=i-a,v=i-f,_=c-o,y=l-o,g=r*r+i*i-o*o,m=g-u*u-a*a+c*c,x=g-s*s-f*f+l*l,b=p*d-h*v,w=(d*x-v*m)/(2*b)-r,M=(v*_-d*y)/b,T=(p*m-h*x)/(2*b)-i,k=(h*y-p*_)/b,N=M*M+k*k-1,S=2*(o+w*M+T*k),E=w*w+T*T-o*o,A=-(N?(S+Math.sqrt(S*S-4*N*E))/(2*N):E/S);return{x:r+w+M*A,y:i+T+k*A,r:A}}function yo(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,s=a*a+c*c;if(s){var f=.5+((u*=u)-(o*=o))/(2*s),l=Math.sqrt(Math.max(0,2*o*(u+s)-(u-=s)*u-o*o))/(2*s);e.x=r+f*a+l*c,e.y=i+f*c-l*a}else e.x=r+u,e.y=i}function go(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 mo(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 xo(t){this._=t,this.next=null,this.previous=null}function bo(t){if(!(i=t.length))return 0;var n,e,r,i,o,u,a,c,s,f,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;yo(e,n,r=t[2]),n=new xo(n),e=new xo(e),r=new xo(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a<i;++a){yo(n._,e._,r=t[a]),r=new xo(r),c=e.next,s=n.previous,f=e._.r,l=n._.r;do{if(f<=l){if(go(c._,r._)){e=c,n.next=e,e.previous=n,--a;continue t}f+=c._.r,c=c.next}else{if(go(s._,r._)){(n=s).next=e,e.previous=n,--a;continue t}l+=s._.r,s=s.previous}}while(c!==s.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,o=mo(n);(r=r.next)!==e;)(u=mo(r))<o&&(n=r,o=u);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=Hv(n),a=0;a<i;++a)n=t[a],n.x-=r.x,n.y-=r.y;return r.r}function wo(t){return null==t?null:Mo(t)}function Mo(t){if("function"!=typeof t)throw new Error;return t}function To(){return 0}function ko(t){return Math.sqrt(t.value)}function No(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function So(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=bo(r),a)for(i=0;i<u;++i)r[i].r-=a;e.r=o+a}}}function Eo(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 Ao(t){return t.id}function Co(t){return t.parentId}function zo(t,n){return t.parent===n.parent?1:2}function Po(t){var n=t.children;return n?n[0]:t.t}function Ro(t){var n=t.children;return n?n[n.length-1]:t.t}function Lo(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 qo(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Uo(t,n,e){return t.a.parent===n.parent?t.a:e}function Do(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 Oo(t){for(var n,e,r,i,o,u=new Do(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 Do(r[i],i)),e.parent=n;return(u.parent=new Do(null,0)).children=[u],u}function Fo(t,n,e,r,i,o){for(var u,a,c,s,f,l,h,p,d,v,_,y=[],g=n.children,m=0,x=0,b=g.length,w=n.value;m<b;){c=i-e,s=o-r;do{f=g[x++].value}while(!f&&x<b);for(l=h=f,_=f*f*(v=Math.max(s/c,c/s)/(w*t)),d=Math.max(h/_,_/l);x<b;++x){if(f+=a=g[x].value,a<l&&(l=a),a>h&&(h=a),_=f*f*v,(p=Math.max(h/_,_/l))>d){f-=a;break}d=p}y.push(u={value:f,dice:c<s,children:g.slice(m,x)}),u.dice?Vv(u,e,r,i,w?r+=s*f/w:o):Jv(u,e,r,w?e+=c*f/w:i,o),w-=f,m=x}return y}function Io(t,n){return t[0]-n[0]||t[1]-n[1]}function Yo(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;++i){for(;r>1&&n_(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Bo(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function jo(t){if(!t._start)try{Ho(t)}catch(n){if(t._tasks[t._ended+t._active-1])$o(t,n);else if(!t._data)throw n}}function Ho(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]=Xo(t,n),--t._waiting,++t._active,e=i.apply(null,e),t._tasks[n]&&(t._tasks[n]=e||r_)}}function Xo(t,n){return function(e,r){t._tasks[n]&&(--t._active,++t._ended,t._tasks[n]=null,null==t._error&&(null!=e?$o(t,e):(t._data[n]=r,t._waiting?jo(t):Vo(t))))}}function $o(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,Vo(t)}function Vo(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function Wo(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new Bo(t)}function Zo(t){return function(n,e){t(null==n?e:null)}}function Go(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Jo(t,n){return function(e){return t(e.responseText,n)}}function Qo(t){function n(n){var o=n+"",u=e.get(o);if(!u){if(i!==M_)return i;e.set(o,u=r.push(n))}return t[(u-1)%t.length]}var e=we(),r=[],i=M_;return t=null==t?[]:w_.call(t),n.domain=function(t){if(!arguments.length)return r.slice();r=[],e=we();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=w_.call(e),n):t.slice()},n.unknown=function(t){return arguments.length?(i=t,n):i},n.copy=function(){return Qo().domain(r).range(t).unknown(i)},n}function Ko(){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*s),a&&(n=Math.floor(n)),l+=(h-l-n*(t-c))*f,e=n*(1-c),a&&(l=Math.round(l),e=Math.round(e));var p=Ms(t).map(function(t){return l+n*t});return o(r?p.reverse():p)}var n,e,r=Qo().unknown(void 0),i=r.domain,o=r.range,u=[0,1],a=!1,c=0,s=0,f=.5;return delete r.unknown,r.domain=function(n){return arguments.length?(i(n),t()):i()},r.range=function(n){return arguments.length?(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=s=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?(s=Math.max(0,Math.min(1,n)),t()):s},r.align=function(n){return arguments.length?(f=Math.max(0,Math.min(1,n)),t()):f},r.copy=function(){return Ko().domain(i()).range(u).round(a).paddingInner(c).paddingOuter(s).align(f)},t()}function tu(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return tu(n())},t}function nu(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:T_(n)}function eu(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 ru(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 iu(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 ou(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=hs(t,n,1,i)-1;return u[e](o[e](n))}}function uu(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function au(t,n){function e(){return i=Math.min(a.length,c.length)>2?ou:iu,o=u=null,r}function r(n){return(o||(o=i(a,c,f?eu(t):t,s)))(+n)}var i,o,u,a=N_,c=N_,s=cl,f=!1;return r.invert=function(t){return(u||(u=i(c,a,nu,f?ru(n):n)))(+t)},r.domain=function(t){return arguments.length?(a=b_.call(t,k_),e()):a.slice()},r.range=function(t){return arguments.length?(c=w_.call(t),e()):c.slice()},r.rangeRound=function(t){return c=w_.call(t),s=sl,e()},r.clamp=function(t){return arguments.length?(f=!!t,e()):f},r.interpolate=function(t){return arguments.length?(s=t,e()):s},e()}function cu(t){var n=t.domain;return t.ticks=function(t){var e=n();return Ss(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return S_(n(),t,e)},t.nice=function(e){null==e&&(e=10);var i,o=n(),u=0,a=o.length-1,c=o[u],s=o[a];return s<c&&(i=c,c=s,s=i,i=u,u=a,a=i),(i=r(c,s,e))>0?i=r(c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i,e):i<0&&(i=r(c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i,e)),i>0?(o[u]=Math.floor(c/i)*i,o[a]=Math.ceil(s/i)*i,n(o)):i<0&&(o[u]=Math.ceil(c*i)/i,o[a]=Math.floor(s*i)/i,n(o)),t},t}function su(){var t=au(nu,rl);return t.copy=function(){return uu(t,su())},cu(t)}function fu(){function t(t){return+t}var n=[0,1];return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=b_.call(e,k_),t):n.slice()},t.copy=function(){return fu().domain(n)},cu(t)}function lu(t,n){return(n=Math.log(n/t))?function(e){return Math.log(e/t)/n}:T_(n)}function hu(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 pu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function du(t){return 10===t?pu:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}function vu(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 _u(t){return function(n){return-t(-n)}}function yu(){function n(){return o=vu(i),u=du(i),r()[0]<0&&(o=_u(o),u=_u(u)),e}var e=au(lu,hu).domain([1,10]),r=e.domain,i=10,o=vu(10),u=du(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 s,f,l,h=o(a),p=o(c),d=null==t?10:+t,v=[];if(!(i%1)&&p-h<d){if(h=Math.round(h)-1,p=Math.round(p)+1,a>0){for(;h<p;++h)for(f=1,s=u(h);f<i;++f)if(!((l=s*f)<a)){if(l>c)break;v.push(l)}}else for(;h<p;++h)for(f=i-1,s=u(h);f>=1;--f)if(!((l=s*f)<a)){if(l>c)break;v.push(l)}}else v=Ss(h,p,Math.min(p-h,d)).map(u);return n?v.reverse():v},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(E_(r(),{floor:function(t){return u(Math.floor(o(t)))},ceil:function(t){return u(Math.ceil(o(t)))}}))},e.copy=function(){return uu(e,yu().base(i))},e}function gu(t,n){return t<0?-Math.pow(-t,n):Math.pow(t,n)}function mu(){var t=1,n=au(function(n,e){return(e=gu(e,t)-(n=gu(n,t)))?function(r){return(gu(r,t)-n)/e}:T_(e)},function(n,e){return e=gu(e,t)-(n=gu(n,t)),function(r){return gu(n+e*r,1/t)}}),e=n.domain;return n.exponent=function(n){return arguments.length?(t=+n,e(e())):t},n.copy=function(){return uu(n,mu().exponent(t))},cu(n)}function xu(){function t(){var t=0,o=Math.max(1,r.length);for(i=new Array(o-1);++t<o;)i[t-1]=As(e,t/o);return n}function n(t){if(!isNaN(t=+t))return r[hs(i,t)]}var e=[],r=[],i=[];return n.invertExtent=function(t){var n=r.indexOf(t);return n<0?[NaN,NaN]:[n>0?i[n-1]:e[0],n<i.length?i[n]:e[e.length-1]]},n.domain=function(n){if(!arguments.length)return e.slice();e=[];for(var r,i=0,o=n.length;i<o;++i)null==(r=n[i])||isNaN(r=+r)||e.push(r);return e.sort(ss),t()},n.range=function(n){return arguments.length?(r=w_.call(n),t()):r.slice()},n.quantiles=function(){return i.slice()},n.copy=function(){return xu().domain(e).range(r)},n}function bu(){function t(t){if(t<=t)return u[hs(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=w_.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 bu().domain([e,r]).range(u)},cu(t)}function wu(){function t(t){if(t<=t)return e[hs(n,t,0,r)]}var n=[.5],e=[0,1],r=1;return t.domain=function(i){return arguments.length?(n=w_.call(i),r=Math.min(n.length,e.length-1),t):n.slice()},t.range=function(i){return arguments.length?(e=w_.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 wu().domain(n).range(e)},t}function Mu(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=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return u;do{u.push(new Date(+e))}while(n(e,o),t(e),e<r);return u},i.filter=function(e){return Mu(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 A_.setTime(+n),C_.setTime(+r),t(A_),t(C_),Math.floor(e(A_,C_))},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 Tu(t){return Mu(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())*R_)/L_})}function ku(t){return Mu(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)/L_})}function Nu(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 Su(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 Eu(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Au(t){function n(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a<s;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=Py[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=Eu(1900);if(r(i,t,e+="",0)!=e.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var o="Z"in i?Su(Eu(i.y)).getUTCDay():n(Eu(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Su(i)):n(i)}}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=T[i in Py?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}var i=t.dateTime,o=t.date,u=t.time,a=t.periods,c=t.days,s=t.shortDays,f=t.months,l=t.shortMonths,h=Pu(a),p=Ru(a),d=Pu(c),v=Ru(c),_=Pu(s),y=Ru(s),g=Pu(f),m=Ru(f),x=Pu(l),b=Ru(l),w={a:function(t){return s[t.getDay()]},A:function(t){return c[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return f[t.getMonth()]},c:null,d:Wu,e:Wu,H:Zu,I:Gu,j:Ju,L:Qu,m:Ku,M:ta,p:function(t){return a[+(t.getHours()>=12)]},S:na,U:ea,w:ra,W:ia,x:null,X:null,y:oa,Y:ua,Z:aa,"%":wa},M={a:function(t){return s[t.getUTCDay()]},A:function(t){return c[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return f[t.getUTCMonth()]},c:null,d:ca,e:ca,H:sa,I:fa,j:la,L:ha,m:pa,M:da,p:function(t){return a[+(t.getUTCHours()>=12)]},S:va,U:_a,w:ya,W:ga,x:null,X:null,y:ma,Y:xa,Z:ba,"%":wa},T={a:function(t,n,e){var r=_.exec(n.slice(e));return r?(t.w=y[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=v[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=x.exec(n.slice(e));return r?(t.m=b[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,n,e){return r(t,i,n,e)},d:Yu,e:Yu,H:ju,I:ju,j:Bu,L:$u,m:Iu,M:Hu,p:function(t,n,e){var r=h.exec(n.slice(e));return r?(t.p=p[r[0].toLowerCase()],e+r[0].length):-1},S:Xu,U:qu,w:Lu,W:Uu,x:function(t,n,e){return r(t,o,n,e)},X:function(t,n,e){return r(t,u,n,e)},y:Ou,Y:Du,Z:Fu,"%":Vu};return w.x=n(o,w),w.X=n(u,w),w.c=n(i,w),M.x=n(o,M),M.X=n(u,M),M.c=n(i,M),{format:function(t){var e=n(t+="",w);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",Nu);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",M);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,Su);return n.toString=function(){return t},n}}}function Cu(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 zu(t){return t.replace(qy,"\\$&")}function Pu(t){return new RegExp("^(?:"+t.map(zu).join("|")+")","i")}function Ru(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Lu(t,n,e){var r=Ry.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function qu(t,n,e){var r=Ry.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function Uu(t,n,e){var r=Ry.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function Du(t,n,e){var r=Ry.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Ou(t,n,e){var r=Ry.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Fu(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 Iu(t,n,e){var r=Ry.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Yu(t,n,e){var r=Ry.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Bu(t,n,e){var r=Ry.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function ju(t,n,e){var r=Ry.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Hu(t,n,e){var r=Ry.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Xu(t,n,e){var r=Ry.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function $u(t,n,e){var r=Ry.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Vu(t,n,e){var r=Ly.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Wu(t,n){return Cu(t.getDate(),n,2)}function Zu(t,n){return Cu(t.getHours(),n,2)}function Gu(t,n){return Cu(t.getHours()%12||12,n,2)}function Ju(t,n){return Cu(1+Y_.count(oy(t),t),n,3)}function Qu(t,n){return Cu(t.getMilliseconds(),n,3)}function Ku(t,n){return Cu(t.getMonth()+1,n,2)}function ta(t,n){return Cu(t.getMinutes(),n,2)}function na(t,n){return Cu(t.getSeconds(),n,2)}function ea(t,n){return Cu(j_.count(oy(t),t),n,2)}function ra(t){return t.getDay()}function ia(t,n){return Cu(H_.count(oy(t),t),n,2)}function oa(t,n){return Cu(t.getFullYear()%100,n,2)}function ua(t,n){return Cu(t.getFullYear()%1e4,n,4)}function aa(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Cu(n/60|0,"0",2)+Cu(n%60,"0",2)}function ca(t,n){return Cu(t.getUTCDate(),n,2)}function sa(t,n){return Cu(t.getUTCHours(),n,2)}function fa(t,n){return Cu(t.getUTCHours()%12||12,n,2)}function la(t,n){return Cu(1+ly.count(Ay(t),t),n,3)}function ha(t,n){return Cu(t.getUTCMilliseconds(),n,3)}function pa(t,n){return Cu(t.getUTCMonth()+1,n,2)}function da(t,n){return Cu(t.getUTCMinutes(),n,2)}function va(t,n){return Cu(t.getUTCSeconds(),n,2)}function _a(t,n){return Cu(py.count(Ay(t),t),n,2)}function ya(t){return t.getUTCDay()}function ga(t,n){return Cu(dy.count(Ay(t),t),n,2)}function ma(t,n){return Cu(t.getUTCFullYear()%100,n,2)}function xa(t,n){return Cu(t.getUTCFullYear()%1e4,n,4)}function ba(){return"+0000"}function wa(){return"%"}function Ma(n){return Cy=Au(n),t.timeFormat=Cy.format,t.timeParse=Cy.parse,t.utcFormat=Cy.utcFormat,t.utcParse=Cy.utcParse,Cy}function Ta(t){return new Date(t)}function ka(t){return t instanceof Date?+t:+new Date(+t)}function Na(t,n,e,r,o,u,a,c,s){function f(i){return(a(i)<i?v:u(i)<i?_:o(i)<i?y:r(i)<i?g:n(i)<i?e(i)<i?m:x:t(i)<i?b:w)(i)}function l(n,e,r,o){if(null==n&&(n=10),"number"==typeof n){var u=Math.abs(r-e)/n,a=fs(function(t){return t[2]}).right(M,u);a===M.length?(o=i(e/Hy,r/Hy,n),n=t):a?(o=(a=M[u/M[a-1][2]<M[a][2]/u?a-1:a])[1],n=a[0]):(o=i(e,r,n),n=c)}return null==o?n:n.every(o)}var h=au(nu,rl),p=h.invert,d=h.domain,v=s(".%L"),_=s(":%S"),y=s("%I:%M"),g=s("%I %p"),m=s("%a %d"),x=s("%b %d"),b=s("%B"),w=s("%Y"),M=[[a,1,Oy],[a,5,5*Oy],[a,15,15*Oy],[a,30,30*Oy],[u,1,Fy],[u,5,5*Fy],[u,15,15*Fy],[u,30,30*Fy],[o,1,Iy],[o,3,3*Iy],[o,6,6*Iy],[o,12,12*Iy],[r,1,Yy],[r,2,2*Yy],[e,1,By],[n,1,jy],[n,3,3*jy],[t,1,Hy]];return h.invert=function(t){return new Date(p(t))},h.domain=function(t){return arguments.length?d(b_.call(t,ka)):d().map(Ta)},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?f:s(n)},h.nice=function(t,n){var e=d();return(t=l(t,e[0],e[e.length-1],n))?d(E_(e,t)):h},h.copy=function(){return uu(h,Na(t,n,e,r,o,u,a,c,s))},h}function Sa(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}function Ea(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 Ea(t).domain([e,r]).clamp(i)},cu(n)}function Aa(t){return t>1?0:t<-1?pg:Math.acos(t)}function Ca(t){return t>=1?dg:t<=-1?-dg:Math.asin(t)}function za(t){return t.innerRadius}function Pa(t){return t.outerRadius}function Ra(t){return t.startAngle}function La(t){return t.endAngle}function qa(t){return t&&t.padAngle}function Ua(t,n,e,r,i,o,u,a){var c=e-t,s=r-n,f=u-i,l=a-o,h=(f*(n-o)-l*(t-i))/(l*c-f*s);return[t+h*c,n+h*s]}function Da(t,n,e,r,i,o,u){var a=t-e,c=n-r,s=(u?o:-o)/lg(a*a+c*c),f=s*c,l=-s*a,h=t+f,p=n+l,d=e+f,v=r+l,_=(h+d)/2,y=(p+v)/2,g=d-h,m=v-p,x=g*g+m*m,b=i-o,w=h*v-d*p,M=(m<0?-1:1)*lg(cg(0,b*b*x-w*w)),T=(w*m-g*M)/x,k=(-w*g-m*M)/x,N=(w*m+g*M)/x,S=(-w*g+m*M)/x,E=T-_,A=k-y,C=N-_,z=S-y;return E*E+A*A>C*C+z*z&&(T=N,k=S),{cx:T,cy:k,x01:-f,y01:-l,x11:T*(i/b-1),y11:k*(i/b-1)}}function Oa(t){this._context=t}function Fa(t){return t[0]}function Ia(t){return t[1]}function Ya(t){this._curve=t}function Ba(t){function n(n){return new Ya(t(n))}return n._curve=t,n}function ja(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(Ba(t)):n()._curve},t}function Ha(t){return t.source}function Xa(t){return t.target}function $a(t){function n(){var n,a=kg.call(arguments),c=e.apply(this,a),s=r.apply(this,a);if(u||(u=n=ve()),t(u,+i.apply(this,(a[0]=c,a)),+o.apply(this,a),+i.apply(this,(a[0]=s,a)),+o.apply(this,a)),n)return u=null,n+""||null}var e=Ha,r=Xa,i=Fa,o=Ia,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:ig(+t),n):i},n.y=function(t){return arguments.length?(o="function"==typeof t?t:ig(+t),n):o},n.context=function(t){return arguments.length?(u=null==t?null:t,n):u},n}function Va(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function Wa(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function Za(t,n,e,r,i){var o=Tg(n,e),u=Tg(n,e=(e+i)/2),a=Tg(r,e),c=Tg(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(u[0],u[1],a[0],a[1],c[0],c[1])}function Ga(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 Ja(t){this._context=t}function Qa(t){this._context=t}function Ka(t){this._context=t}function tc(t,n){this._basis=new Ja(t),this._beta=n}function nc(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 ec(t,n){this._context=t,this._k=(1-n)/6}function rc(t,n){this._context=t,this._k=(1-n)/6}function ic(t,n){this._context=t,this._k=(1-n)/6}function oc(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>hg){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>hg){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/f,u=(u*s+t._y1*t._l23_2a-e*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function uc(t,n){this._context=t,this._alpha=n}function ac(t,n){this._context=t,this._alpha=n}function cc(t,n){this._context=t,this._alpha=n}function sc(t){this._context=t}function fc(t){return t<0?-1:1}function lc(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(fc(o)+fc(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function hc(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function pc(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 dc(t){this._context=t}function vc(t){this._context=new _c(t)}function _c(t){this._context=t}function yc(t){this._context=t}function gc(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 mc(t,n){this._context=t,this._t=n}function xc(t,n){return t[n]}function bc(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function wc(t){return t[0]}function Mc(t){return t[1]}function Tc(){this._=null}function kc(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Nc(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 Sc(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 Ec(t){for(;t.L;)t=t.L;return t}function Ac(t,n,e,r){var i=[null,null],o=um.push(i)-1;return i.left=t,i.right=n,e&&zc(i,t,n,e),r&&zc(i,n,t,r),im[t.index].halfedges.push(o),im[n.index].halfedges.push(o),i}function Cc(t,n,e){var r=[n,e];return r.left=t,r}function zc(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 Pc(t,n,e,r,i){var o,u=t[0],a=t[1],c=u[0],s=u[1],f=0,l=1,h=a[0]-c,p=a[1]-s;if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o<f)return;o<l&&(l=o)}else if(h>0){if(o>l)return;o>f&&(f=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>f&&(f=o)}else if(h>0){if(o<f)return;o<l&&(l=o)}if(o=e-s,p||!(o>0)){if(o/=p,p<0){if(o<f)return;o<l&&(l=o)}else if(p>0){if(o>l)return;o>f&&(f=o)}if(o=i-s,p||!(o<0)){if(o/=p,p<0){if(o>l)return;o>f&&(f=o)}else if(p>0){if(o<f)return;o<l&&(l=o)}return!(f>0||l<1)||(f>0&&(t[0]=[c+f*h,s+f*p]),l<1&&(t[1]=[c+l*h,s+l*p]),!0)}}}}}function Rc(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,c=t[0],s=t.left,f=t.right,l=s[0],h=s[1],p=f[0],d=f[1],v=(l+p)/2,_=(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=_-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 Lc(t,n,e,r){for(var i,o=um.length;o--;)Rc(i=um[o],t,n,e,r)&&Pc(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>sm||Math.abs(i[0][1]-i[1][1])>sm)||delete um[o]}function qc(t){return im[t.index]={site:t,halfedges:[]}}function Uc(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 Dc(t,n){return n[+(n.left!==t.site)]}function Oc(t,n){return n[+(n.left===t.site)]}function Fc(){for(var t,n,e,r,i=0,o=im.length;i<o;++i)if((t=im[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]=Uc(t,um[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 Ic(t,n,e,r){var i,o,u,a,c,s,f,l,h,p,d,v,_=im.length,y=!0;for(i=0;i<_;++i)if(o=im[i]){for(u=o.site,a=(c=o.halfedges).length;a--;)um[c[a]]||c.splice(a,1);for(a=0,s=c.length;a<s;)d=(p=Oc(o,um[c[a]]))[0],v=p[1],l=(f=Dc(o,um[c[++a%s]]))[0],h=f[1],(Math.abs(d-l)>sm||Math.abs(v-h)>sm)&&(c.splice(a,0,um.push(Cc(u,p,Math.abs(d-t)<sm&&r-v>sm?[t,Math.abs(l-t)<sm?h:r]:Math.abs(v-r)<sm&&e-d>sm?[Math.abs(h-r)<sm?l:e,r]:Math.abs(d-e)<sm&&v-n>sm?[e,Math.abs(l-e)<sm?h:n]:Math.abs(v-n)<sm&&d-t>sm?[Math.abs(h-n)<sm?l:t,n]:null))-1),++s);s&&(y=!1)}if(y){var g,m,x,b=1/0;for(i=0,y=null;i<_;++i)(o=im[i])&&(x=(g=(u=o.site)[0]-t)*g+(m=u[1]-n)*m)<b&&(b=x,y=o);if(y){var w=[t,n],M=[t,r],T=[e,r],k=[e,n];y.halfedges.push(um.push(Cc(u=y.site,w,M))-1,um.push(Cc(u,M,T))-1,um.push(Cc(u,T,k))-1,um.push(Cc(u,k,w))-1)}}for(i=0;i<_;++i)(o=im[i])&&(o.halfedges.length||delete im[i])}function Yc(){kc(this),this.x=this.y=this.arc=this.site=this.cy=null}function Bc(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,s=r[1]-a,f=o[0]-u,l=o[1]-a,h=2*(c*l-s*f);if(!(h>=-fm)){var p=c*c+s*s,d=f*f+l*l,v=(l*p-s*d)/h,_=(c*d-f*p)/h,y=am.pop()||new Yc;y.arc=t,y.site=i,y.x=v+u,y.y=(y.cy=_+a)+Math.sqrt(v*v+_*_),t.circle=y;for(var g=null,m=om._;m;)if(y.y<m.y||y.y===m.y&&y.x<=m.x){if(!m.L){g=m.P;break}m=m.L}else{if(!m.R){g=m;break}m=m.R}om.insert(g,y),g||(em=y)}}}}function jc(t){var n=t.circle;n&&(n.P||(em=n.N),om.remove(n),am.push(n),kc(n),t.circle=null)}function Hc(){kc(this),this.edge=this.site=this.circle=null}function Xc(t){var n=cm.pop()||new Hc;return n.site=t,n}function $c(t){jc(t),rm.remove(t),cm.push(t),kc(t)}function Vc(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,u=t.N,a=[t];$c(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)<sm&&Math.abs(r-c.circle.cy)<sm;)o=c.P,a.unshift(c),$c(c),c=o;a.unshift(c),jc(c);for(var s=u;s.circle&&Math.abs(e-s.circle.x)<sm&&Math.abs(r-s.circle.cy)<sm;)u=s.N,a.push(s),$c(s),s=u;a.push(s),jc(s);var f,l=a.length;for(f=1;f<l;++f)s=a[f],c=a[f-1],zc(s.edge,c.site,s.site,i);c=a[0],(s=a[l-1]).edge=Ac(c.site,s.site,null,i),Bc(c),Bc(s)}function Wc(t){for(var n,e,r,i,o=t[0],u=t[1],a=rm._;a;)if((r=Zc(a,u)-o)>sm)a=a.L;else{if(!((i=o-Gc(a,u))>sm)){r>-sm?(n=a.P,e=a):i>-sm?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}qc(t);var c=Xc(t);if(rm.insert(n,c),n||e){if(n===e)return jc(n),e=Xc(n.site),rm.insert(c,e),c.edge=e.edge=Ac(n.site,c.site),Bc(n),void Bc(e);if(e){jc(n),jc(e);var s=n.site,f=s[0],l=s[1],h=t[0]-f,p=t[1]-l,d=e.site,v=d[0]-f,_=d[1]-l,y=2*(h*_-p*v),g=h*h+p*p,m=v*v+_*_,x=[(_*g-p*m)/y+f,(h*m-v*g)/y+l];zc(e.edge,s,d,x),c.edge=Ac(s,t,null,x),e.edge=Ac(t,d,null,x),Bc(n),Bc(e)}else c.edge=Ac(n.site,c.site)}}function Zc(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;var a=(e=u.site)[0],c=e[1],s=c-n;if(!s)return a;var f=a-r,l=1/o-1/s,h=f/s;return l?(-h+Math.sqrt(h*h-2*l*(f*f/(-2*s)-c+s/2+i-o/2)))/l+r:(r+a)/2}function Gc(t,n){var e=t.N;if(e)return Zc(e,n);var r=t.site;return r[1]===n?r[0]:1/0}function Jc(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function Qc(t,n){return n[1]-t[1]||n[0]-t[0]}function Kc(t,n){var e,r,i,o=t.sort(Qc).pop();for(um=[],im=new Array(t.length),rm=new Tc,om=new Tc;;)if(i=em,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(Wc(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;Vc(i.arc)}if(Fc(),n){var u=+n[0][0],a=+n[0][1],c=+n[1][0],s=+n[1][1];Lc(u,a,c,s),Ic(u,a,c,s)}this.edges=um,this.cells=im,rm=om=um=im=null}function ts(t,n,e){this.target=t,this.type=n,this.transform=e}function ns(t,n,e){this.k=t,this.x=n,this.y=e}function es(t){return t.__zoom||hm}function rs(){t.event.stopImmediatePropagation()}function is(){return!t.event.button}function os(){var t,n,e=this;return e instanceof SVGElement?(t=(e=e.ownerSVGElement||e).width.baseVal.value,n=e.height.baseVal.value):(t=e.clientWidth,n=e.clientHeight),[[0,0],[t,n]]}function us(){return this.__zoom||hm}function as(){return-t.event.deltaY*(t.event.deltaMode?120:1)/500}function cs(){return"ontouchstart"in this}var ss=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},fs=function(t){return 1===t.length&&(t=n(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}}},ls=fs(ss),hs=ls.right,ps=ls.left,ds=function(t){return null===t?NaN:+t},vs=function(t,n){var e,r,i=t.length,o=0,u=-1,a=0,c=0;if(null==n)for(;++u<i;)isNaN(e=ds(t[u]))||(c+=(r=e-a)*(e-(a+=r/++o)));else for(;++u<i;)isNaN(e=ds(n(t[u],u,t)))||(c+=(r=e-a)*(e-(a+=r/++o)));if(o>1)return c/(o-1)},_s=function(t,n){var e=vs(t,n);return e?Math.sqrt(e):e},ys=function(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]},gs=Array.prototype,ms=gs.slice,xs=gs.map,bs=function(t){return function(){return t}},ws=function(t){return t},Ms=function(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},Ts=Math.sqrt(50),ks=Math.sqrt(10),Ns=Math.sqrt(2),Ss=function(t,n,e){var i,o,u,a=n<t,c=-1;if(a&&(i=t,t=n,n=i),0===(u=r(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));++c<i;)o[c]=(t+c)*u;else for(t=Math.floor(t*u),n=Math.ceil(n*u),o=new Array(i=Math.ceil(t-n+1));++c<i;)o[c]=(t-c)/u;return a&&o.reverse(),o},Es=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},As=function(t,n,e){if(null==e&&(e=ds),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)}},Cs=function(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(n=(r=t[i]).length;--n>=0;)e[--u]=r[n];return e},zs=function(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},Ps=function(t){if(!(i=t.length))return[];for(var n=-1,e=zs(t,o),r=new Array(e);++n<e;)for(var i,u=-1,a=r[n]=new Array(i);++u<i;)a[u]=t[u][n];return r},Rs=Array.prototype.slice,Ls=function(t){return t},qs=1,Us=2,Ds=3,Os=4,Fs=1e-6,Is={value:function(){}};p.prototype=h.prototype={constructor:p,on:function(t,n){var e,r=this._,i=d(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]=_(r[e],t.name,n);else if(null==n)for(e in r)r[e]=_(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=v(r[e],t.name)))return e}},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new p(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(o=0,e=(r=this._[t]).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 Ys="http://www.w3.org/1999/xhtml",Bs={svg:"http://www.w3.org/2000/svg",xhtml:Ys,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},js=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Bs.hasOwnProperty(n)?{space:Bs[n],local:t}:t},Hs=function(t){var n=js(t);return(n.local?g:y)(n)},Xs=0;x.prototype=m.prototype={constructor:x,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._}};var $s=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Vs=document.documentElement;if(!Vs.matches){var Ws=Vs.webkitMatchesSelector||Vs.msMatchesSelector||Vs.mozMatchesSelector||Vs.oMatchesSelector;$s=function(t){return function(){return Ws.call(this,t)}}}}var Zs=$s,Gs={};t.event=null,"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Gs={mouseenter:"mouseover",mouseleave:"mouseout"}));var Js=function(){for(var n,e=t.event;n=e.sourceEvent;)e=n;return e},Qs=function(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]},Ks=function(t){var n=Js();return n.changedTouches&&(n=n.changedTouches[0]),Qs(t,n)},tf=function(t){return null==t?S:function(){return this.querySelector(t)}},nf=function(t){return null==t?E:function(){return this.querySelectorAll(t)}},ef=function(t){return new Array(t.length)};A.prototype={constructor:A,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 rf=function(t){return function(){return t}},of="$",uf=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};W.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 af=[null];pt.prototype=dt.prototype={constructor:pt,select:function(t){"function"!=typeof t&&(t=tf(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,s=r[i]=new Array(c),f=0;f<c;++f)(o=a[f])&&(u=t.call(o,o.__data__,f,a))&&("__data__"in o&&(u.__data__=o.__data__),s[f]=u);return new pt(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=nf(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,s=0;s<c;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new pt(r,i)},filter:function(t){"function"!=typeof t&&(t=Zs(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]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new pt(r,this._parents)},data:function(t,n){if(!t)return p=new Array(this.size()),s=-1,this.each(function(t){p[++s]=t}),p;var e=n?z:C,r=this._parents,i=this._groups;"function"!=typeof t&&(t=rf(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],l=i[s],h=l.length,p=t.call(f,f&&f.__data__,s,r),d=p.length,v=a[s]=new Array(d),_=u[s]=new Array(d);e(f,l,v,_,c[s]=new Array(h),p,n);for(var y,g,m=0,x=0;m<d;++m)if(y=v[m]){for(m>=x&&(x=m+1);!(g=_[x])&&++x<d;);y._next=g||null}}return u=new pt(u,r),u._enter=a,u._exit=c,u},enter:function(){return new pt(this._enter||this._groups.map(ef),this._parents)},exit:function(){return new pt(this._exit||this._groups.map(ef),this._parents)},merge:function(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,s=n[a],f=e[a],l=s.length,h=u[a]=new Array(l),p=0;p<l;++p)(c=s[p]||f[p])&&(h[p]=c);for(;a<r;++a)u[a]=n[a];return new pt(u,this._parents)},order:function(){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},sort:function(t){t||(t=P);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]=new Array(a),s=0;s<a;++s)(o=u[s])&&(c[s]=o);c.sort(function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e})}return new pt(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},node:function(){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},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(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},attr:function(t,n){var e=js(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?L:R:"function"==typeof n?e.local?O:D:e.local?U:q)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?F:"function"==typeof n?Y:I)(t,n,null==e?"":e)):B(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?j:"function"==typeof n?X:H)(t,n)):this.node()[t]},classed:function(t,n){var e=$(t+"");if(arguments.length<2){for(var r=V(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?K:n?J:Q)(e,n))},text:function(t){return arguments.length?this.each(null==t?tt:("function"==typeof t?et:nt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?rt:("function"==typeof t?ot:it)(t)):this.node().innerHTML},raise:function(){return this.each(ut)},lower:function(){return this.each(at)},append:function(t){var n="function"==typeof t?t:Hs(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e="function"==typeof t?t:Hs(t),r=null==n?ct:"function"==typeof n?n:tf(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(st)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=M(t+""),u=o.length;{if(!(arguments.length<2)){for(a=n?k:T,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,s=0,f=a.length;s<f;++s)for(r=0,c=a[s];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value}},dispatch:function(t,n){return this.each(("function"==typeof n?ht:lt)(t,n))}};var cf=function(t){return"string"==typeof t?new pt([[document.querySelector(t)]],[document.documentElement]):new pt([[t]],af)},sf=function(t,n,e){arguments.length<3&&(e=n,n=Js().changedTouches);for(var r,i=0,o=n?n.length:0;i<o;++i)if((r=n[i]).identifier===e)return Qs(t,r);return null},ff=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},lf=function(t){var n=t.document.documentElement,e=cf(t).on("dragstart.drag",ff,!0);"onselectstart"in n?e.on("selectstart.drag",ff,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")},hf=function(t){return function(){return t}};yt.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var pf=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},df="\\s*([+-]?\\d+)\\s*",vf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yf=/^#([0-9a-f]{3})$/,gf=/^#([0-9a-f]{6})$/,mf=new RegExp("^rgb\\("+[df,df,df]+"\\)$"),xf=new RegExp("^rgb\\("+[_f,_f,_f]+"\\)$"),bf=new RegExp("^rgba\\("+[df,df,df,vf]+"\\)$"),wf=new RegExp("^rgba\\("+[_f,_f,_f,vf]+"\\)$"),Mf=new RegExp("^hsl\\("+[vf,_f,_f]+"\\)$"),Tf=new RegExp("^hsla\\("+[vf,_f,_f,vf]+"\\)$"),kf={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};pf(Mt,Tt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),pf(At,Et,wt(Mt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new At(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new At(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(1===(t=isNaN(t)?1:Math.max(0,Math.min(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+")")}})),pf(Rt,Pt,wt(Mt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Rt(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 At(Lt(t>=240?t-240:t+120,i,r),Lt(t,i,r),Lt(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 Nf=Math.PI/180,Sf=180/Math.PI,Ef=.95047,Af=1,Cf=1.08883,zf=4/29,Pf=6/29,Rf=3*Pf*Pf,Lf=Pf*Pf*Pf;pf(Dt,Ut,wt(Mt,{brighter:function(t){return new Dt(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Dt(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=Af*Ft(t),n=Ef*Ft(n),e=Cf*Ft(e),new At(It(3.2404542*n-1.5371385*t-.4985314*e),It(-.969266*n+1.8760108*t+.041556*e),It(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),pf(Ht,jt,wt(Mt,{brighter:function(t){return new Ht(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Ht(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return qt(this).rgb()}}));var qf=-.14861,Uf=1.78277,Df=-.29227,Of=-.90649,Ff=1.97294,If=Ff*Of,Yf=Ff*Uf,Bf=Uf*Df-Of*qf;pf(Vt,$t,wt(Mt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Vt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Vt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Nf,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new At(255*(n+e*(qf*r+Uf*i)),255*(n+e*(Df*r+Of*i)),255*(n+e*(Ff*r)),this.opacity)}}));var jf,Hf,Xf,$f,Vf,Wf,Zf=function(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 Wt((e-r/n)*n,u,i,o,a)}},Gf=function(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 Wt((e-r/n)*n,i,o,u,a)}},Jf=function(t){return function(){return t}},Qf=function t(n){function e(t,n){var e=r((t=Et(t)).r,(n=Et(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),u=Kt(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=Qt(n);return e.gamma=t,e}(1),Kf=tn(Zf),tl=tn(Gf),nl=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(r),u=new Array(r);for(e=0;e<i;++e)o[e]=cl(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}},el=function(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}},rl=function(t,n){return t=+t,n-=t,function(e){return t+n*e}},il=function(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]=cl(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},ol=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ul=new RegExp(ol.source,"g"),al=function(t,n){var e,r,i,o=ol.lastIndex=ul.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=ol.exec(t))&&(r=ul.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:rl(e,r)})),o=ul.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?en(c[0].x):nn(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("")})},cl=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?Jf(n):("number"===r?rl:"string"===r?(e=Tt(n))?(n=e,Qf):al:n instanceof Tt?Qf:n instanceof Date?el:Array.isArray(n)?nl:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?il:rl)(t,n)},sl=function(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}},fl=180/Math.PI,ll={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},hl=function(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)*fl,skewX:Math.atan(c)*fl,scaleX:u,scaleY:a}},pl=rn(function(t){return"none"===t?ll:(jf||(jf=document.createElement("DIV"),Hf=document.documentElement,Xf=document.defaultView),jf.style.transform=t,t=Xf.getComputedStyle(Hf.appendChild(jf),null).getPropertyValue("transform"),Hf.removeChild(jf),t=t.slice(7,-1).split(","),hl(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),dl=rn(function(t){return null==t?ll:($f||($f=document.createElementNS("http://www.w3.org/2000/svg","g")),$f.setAttribute("transform",t),(t=$f.transform.baseVal.consolidate())?(t=t.matrix,hl(t.a,t.b,t.c,t.d,t.e,t.f)):ll)},", ",")",")"),vl=Math.SQRT2,_l=function(t,n){var e,r,i=t[0],o=t[1],u=t[2],a=n[0],c=n[1],s=n[2],f=a-i,l=c-o,h=f*f+l*l;if(h<1e-12)r=Math.log(s/u)/vl,e=function(t){return[i+t*f,o+t*l,u*Math.exp(vl*t*r)]};else{var p=Math.sqrt(h),d=(s*s-u*u+4*h)/(2*u*2*p),v=(s*s-u*u-4*h)/(2*s*2*p),_=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-_)/vl,e=function(t){var n=t*r,e=on(_),a=u/(2*p)*(e*an(vl*n+_)-un(_));return[i+a*f,o+a*l,u*e/on(vl*n+_)]}}return e.duration=1e3*r,e},yl=cn(Jt),gl=cn(Kt),ml=sn(Jt),xl=sn(Kt),bl=fn(Jt),wl=fn(Kt),Ml=0,Tl=0,kl=0,Nl=1e3,Sl=0,El=0,Al=0,Cl="object"==typeof performance&&performance.now?performance:Date,zl="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};pn.prototype=dn.prototype={constructor:pn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?ln():+e)+(null==n?0:+n),this._next||Wf===this||(Wf?Wf._next=this:Vf=this,Wf=this),this._call=t,this._time=e,mn()},stop:function(){this._call&&(this._call=null,this._time=1/0,mn())}};var Pl=function(t,n,e){var r=new pn;return n=null==n?0:+n,r.restart(function(e){r.stop(),t(e+n)},n,e),r},Rl=h("start","end","interrupt"),Ll=[],ql=0,Ul=1,Dl=2,Ol=3,Fl=4,Il=5,Yl=6,Bl=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};Mn(t,e,{name:n,index:r,group:i,on:Rl,tween:Ll,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ql})},jl=function(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>Dl&&e.state<Il,e.state=Yl,e.timer.stop(),r&&e.on.call("interrupt",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},Hl=function(t,n){var e;return("number"==typeof n?rl:n instanceof Tt?Qf:(e=Tt(n))?(n=e,Qf):al)(t,n)},Xl=dt.prototype.constructor,$l=0,Vl=dt.prototype;Gn.prototype=Jn.prototype={constructor:Gn,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=tf(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,c,s=r[u],f=s.length,l=o[u]=new Array(f),h=0;h<f;++h)(a=s[h])&&(c=t.call(a,a.__data__,h,s))&&("__data__"in a&&(c.__data__=a.__data__),l[h]=c,Bl(l[h],n,e,h,l,wn(a,e)));return new Gn(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=nf(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var c,s=r[a],f=s.length,l=0;l<f;++l)if(c=s[l]){for(var h,p=t.call(c,c.__data__,l,s),d=wn(c,e),v=0,_=p.length;v<_;++v)(h=p[v])&&Bl(h,n,e,v,p,d);o.push(p),u.push(c)}return new Gn(o,u,n,e)},filter:function(t){"function"!=typeof t&&(t=Zs(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]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new Gn(r,this._parents,this._name,this._id)},merge:function(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,s=n[a],f=e[a],l=s.length,h=u[a]=new Array(l),p=0;p<l;++p)(c=s[p]||f[p])&&(h[p]=c);for(;a<r;++a)u[a]=n[a];return new Gn(u,this._parents,this._name,this._id)},selection:function(){return new Xl(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Qn(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],c=a.length,s=0;s<c;++s)if(u=a[s]){var f=wn(u,n);Bl(u,t,e,s,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Gn(r,this._parents,t,e)},call:Vl.call,nodes:Vl.nodes,node:Vl.node,size:Vl.size,empty:Vl.empty,each:Vl.each,on:function(t,n){var e=this._id;return arguments.length<2?wn(this.node(),e).on.on(t):this.each(Yn(e,t,n))},attr:function(t,n){var e=js(t),r="transform"===e?dl:Hl;return this.attrTween(t,"function"==typeof n?(e.local?Pn:zn)(e,r,Nn(this,"attr."+t,n)):null==n?(e.local?En:Sn)(e):(e.local?Cn:An)(e,r,n+""))},attrTween:function(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=js(t);return this.tween(e,(r.local?Rn:Ln)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?pl:Hl;return null==n?this.styleTween(t,jn(t,r)).on("end.style."+t,Hn(t)):this.styleTween(t,"function"==typeof n?$n(t,r,Nn(this,"style."+t,n)):Xn(t,r,n+""),e)},styleTween:function(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,Vn(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?Zn(Nn(this,"text",t)):Wn(null==t?"":t+""))},remove:function(){return this.on("end.remove",Bn(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=wn(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?Tn:kn)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?qn:Un)(n,t)):wn(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Dn:On)(n,t)):wn(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(Fn(n,t)):wn(this.node(),n).ease}};var Wl=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),Zl=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),Gl=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),Jl=Math.PI,Ql=Jl/2,Kl=4/11,th=6/11,nh=8/11,eh=.75,rh=9/11,ih=10/11,oh=.9375,uh=21/22,ah=63/64,ch=1/Kl/Kl,sh=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(1.70158),fh=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(1.70158),lh=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),hh=2*Math.PI,ph=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/=hh);return r.amplitude=function(n){return t(n,e*hh)},r.period=function(e){return t(n,e)},r}(1,.3),dh=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/=hh);return r.amplitude=function(n){return t(n,e*hh)},r.period=function(e){return t(n,e)},r}(1,.3),vh=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/=hh);return r.amplitude=function(n){return t(n,e*hh)},r.period=function(e){return t(n,e)},r}(1,.3),_h={time:null,delay:0,duration:250,ease:te};dt.prototype.interrupt=function(t){return this.each(function(){jl(this,t)})},dt.prototype.transition=function(t){var n,e;t instanceof Gn?(n=t._id,t=t._name):(n=Qn(),(e=_h).time=ln(),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,s=0;s<c;++s)(u=a[s])&&Bl(u,t,n,s,a,e||oe(u,n));return new Gn(r,this._parents,t,n)};var yh=[null],gh=function(t){return function(){return t}},mh=function(t,n,e){this.target=t,this.type=n,this.selection=e},xh=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()},bh={name:"drag"},wh={name:"space"},Mh={name:"handle"},Th={name:"center"},kh={name:"x",handles:["e","w"].map(ae),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]]}},Nh={name:"y",handles:["n","s"].map(ae),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]]}},Sh={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(ae),input:function(t){return t},output:function(t){return t}},Eh={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"},Ah={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ch={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},zh={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ph={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},Rh=Math.cos,Lh=Math.sin,qh=Math.PI,Uh=qh/2,Dh=2*qh,Oh=Math.max,Fh=Array.prototype.slice,Ih=function(t){return function(){return t}},Yh=Math.PI,Bh=2*Yh,jh=Bh-1e-6;de.prototype=ve.prototype={constructor:de,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,s=o-t,f=u-n,l=s*s+f*f;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(f*a-c*s)>1e-6&&i){var h=e-o,p=r-u,d=a*a+c*c,v=h*h+p*p,_=Math.sqrt(d),y=Math.sqrt(l),g=i*Math.tan((Yh-Math.acos((d+l-v)/(2*_*y)))/2),m=g/y,x=g/_;Math.abs(m-1)>1e-6&&(this._+="L"+(t+m*s)+","+(n+m*f)),this._+="A"+i+","+i+",0,0,"+ +(f*h>s*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;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+u,s=n+a,f=1^o,l=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+c+","+s),e&&(l<0&&(l=l%Bh+Bh),l>jh?this._+="A"+e+","+e+",0,1,"+f+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):l>1e-6&&(this._+="A"+e+","+e+",0,"+ +(l>=Yh)+","+f+","+(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._}};be.prototype=we.prototype={constructor:be,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 Hh=we.prototype;Se.prototype=Ee.prototype={constructor:Se,has:Hh.has,add:function(t){return t+="",this["$"+t]=t,this},remove:Hh.remove,clear:Hh.clear,values:Hh.keys,size:Hh.size,empty:Hh.empty,each:Hh.each};var Xh=function(t){function n(t,n){function e(){if(f>=s)return a;if(i)return i=!1,u;var n,e=f;if(34===t.charCodeAt(e)){for(var r=e;r++<s;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return f=r+2,13===(n=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&&++f):10===n&&(i=!0),t.slice(e+1,r).replace(/""/g,'"')}for(;f<s;){var c=1;if(10===(n=t.charCodeAt(f++)))i=!0;else if(13===n)i=!0,10===t.charCodeAt(f)&&(++f,++c);else if(n!==o)continue;return t.slice(e,f-c)}return t.slice(e)}for(var r,i,u={},a={},c=[],s=t.length,f=0,l=0;(r=e())!==a;){for(var h=[];r!==u&&r!==a;)h.push(r),r=e();n&&null==(h=n(h,l++))||c.push(h)}return c}function e(n){return n.map(r).join(t)}function r(t){return null==t?"":i.test(t+="")?'"'+t.replace(/\"/g,'""')+'"':t}var i=new RegExp('["'+t+"\n\r]"),o=t.charCodeAt(0);return{parse:function(t,e){var r,i,o=n(t,function(t,n){if(r)return r(t,n-1);i=t,r=e?Ce(t,e):Ae(t)});return o.columns=i,o},parseRows:n,format:function(n,e){return null==e&&(e=ze(n)),[e.map(r).join(t)].concat(n.map(function(n){return e.map(function(t){return r(n[t])}).join(t)})).join("\n")},formatRows:function(t){return t.map(e).join("\n")}}},$h=Xh(","),Vh=$h.parse,Wh=$h.parseRows,Zh=$h.format,Gh=$h.formatRows,Jh=Xh("\t"),Qh=Jh.parse,Kh=Jh.parseRows,tp=Jh.format,np=Jh.formatRows,ep=function(t){return function(){return t}},rp=function(){return 1e-6*(Math.random()-.5)},ip=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i},op=qe.prototype=Ue.prototype;op.copy=function(){var t,n,e=new Ue(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=De(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]=De(n));return e},op.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Pe(this.cover(n,e),n,e,t)},op.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),c=1/0,s=1/0,f=-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>f&&(f=r),i<s&&(s=i),i>l&&(l=i));for(f<c&&(c=this._x0,f=this._x1),l<s&&(s=this._y0,l=this._y1),this.cover(c,s).cover(f,l),e=0;e<o;++e)Pe(this,u[e],a[e],t[e]);return this},op.cover=function(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,s=this._root;switch(a=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{u=new Array(4),u[a]=s,s=u}while(c*=2,i=e+c,o=r+c,t>i||n>o);break;case 1:do{u=new Array(4),u[a]=s,s=u}while(c*=2,e=i-c,o=r+c,e>t||n>o);break;case 2:do{u=new Array(4),u[a]=s,s=u}while(c*=2,i=e+c,r=o-c,t>i||r>n);break;case 3:do{u=new Array(4),u[a]=s,s=u}while(c*=2,e=i-c,r=o-c,e>t||r>n)}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},op.data=function(){var t=[];return this.visit(function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)}),t},op.extent=function(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]]},op.find=function(t,n,e){var r,i,o,u,a,c,s,f=this._x0,l=this._y0,h=this._x1,p=this._y1,d=[],v=this._root;for(v&&d.push(new ip(v,f,l,h,p)),null==e?e=1/0:(f=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)<f||(a=c.y1)<l))if(v.length){var _=(i+u)/2,y=(o+a)/2;d.push(new ip(v[3],_,y,u,a),new ip(v[2],i,y,_,a),new ip(v[1],_,o,u,y),new ip(v[0],i,o,_,y)),(s=(n>=y)<<1|t>=_)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-s],d[d.length-1-s]=c)}else{var g=t-+this._x.call(null,v.data),m=n-+this._y.call(null,v.data),x=g*g+m*m;if(x<e){var b=Math.sqrt(e=x);f=t-b,l=n-b,h=t+b,p=n+b,r=v.data}}return r},op.remove=function(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,s,f,l,h,p=this._root,d=this._x0,v=this._y0,_=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((s=o>=(a=(d+_)/2))?d=a:_=a,(f=u>=(c=(v+y)/2))?v=c:y=c,n=p,!(p=p[l=f<<1|s]))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)},op.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},op.root=function(){return this._root},op.size=function(){var t=0;return this.visit(function(n){if(!n.length)do{++t}while(n=n.next)}),t},op.visit=function(t){var n,e,r,i,o,u,a=[],c=this._root;for(c&&a.push(new ip(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 s=(r+o)/2,f=(i+u)/2;(e=c[3])&&a.push(new ip(e,s,f,o,u)),(e=c[2])&&a.push(new ip(e,r,f,s,u)),(e=c[1])&&a.push(new ip(e,s,i,o,f)),(e=c[0])&&a.push(new ip(e,r,i,s,f))}return this},op.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new ip(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,s=n.y1,f=(u+c)/2,l=(a+s)/2;(o=i[0])&&e.push(new ip(o,u,a,f,l)),(o=i[1])&&e.push(new ip(o,f,a,c,l)),(o=i[2])&&e.push(new ip(o,u,l,f,s)),(o=i[3])&&e.push(new ip(o,f,l,c,s))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},op.x=function(t){return arguments.length?(this._x=t,this):this._x},op.y=function(t){return arguments.length?(this._y=t,this):this._y};var up,ap=10,cp=Math.PI*(3-Math.sqrt(5)),sp=function(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)]},fp=function(t){return(t=sp(Math.abs(t)))?t[1]:NaN},lp=function(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)}},hp=function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}},pp=function(t,n){var e=sp(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")},dp={"":function(t,n){t:for(var e,r=(t=t.toPrecision(n)).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(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 pp(100*t,n)},r:pp,s:function(t,n){var e=sp(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(up=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")+sp(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},vp=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;He.prototype=Xe.prototype,Xe.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var _p,yp=function(t){return t},gp=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],mp=function(t){function n(t){function n(t){var n,r,u,f=_,x=y;if("c"===v)x=g(t)+x,t="";else{var b=(t=+t)<0;if(t=g(Math.abs(t),d),b&&0==+t&&(b=!1),f=(b?"("===s?s:"-":"-"===s||"("===s?"":s)+f,x=x+("s"===v?gp[8+up/3]:"")+(b&&"("===s?")":""),m)for(n=-1,r=t.length;++n<r;)if(48>(u=t.charCodeAt(n))||u>57){x=(46===u?i+t.slice(n+1):t.slice(n))+x,t=t.slice(0,n);break}}p&&!l&&(t=e(t,1/0));var w=f.length+t.length+x.length,M=w<h?new Array(h-w+1).join(a):"";switch(p&&l&&(t=e(M+t,M.length?h-x.length:1/0),M=""),c){case"<":t=f+t+x+M;break;case"=":t=f+M+t+x;break;case"^":t=M.slice(0,w=M.length>>1)+f+t+x+M.slice(w);break;default:t=M+f+t+x}return o(t)}var a=(t=He(t)).fill,c=t.align,s=t.sign,f=t.symbol,l=t.zero,h=t.width,p=t.comma,d=t.precision,v=t.type,_="$"===f?r[0]:"#"===f&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",y="$"===f?r[1]:/[%p]/.test(v)?u:"",g=dp[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}var e=t.grouping&&t.thousands?lp(t.grouping,t.thousands):yp,r=t.currency,i=t.decimal,o=t.numerals?hp(t.numerals):yp,u=t.percent||"%";return{format:n,formatPrefix:function(t,e){var r=n((t=He(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(fp(e)/3))),o=Math.pow(10,-i),u=gp[8+i/3];return function(t){return r(o*t)+u}}}};$e({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var xp=function(t){return Math.max(0,-fp(Math.abs(t)))},bp=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(fp(n)/3)))-fp(Math.abs(t)))},wp=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,fp(n)-fp(t))+1},Mp=function(){return new Ve};Ve.prototype={constructor:Ve,reset:function(){this.s=this.t=0},add:function(t){We(nd,t,this.t),We(this,nd.s,this.s),this.s?this.t+=nd.t:this.s=nd.t},valueOf:function(){return this.s}};var Tp,kp,Np,Sp,Ep,Ap,Cp,zp,Pp,Rp,Lp,qp,Up,Dp,Op,Fp,Ip,Yp,Bp,jp,Hp,Xp,$p,Vp,Wp,Zp,Gp,Jp,Qp,Kp,td,nd=new Ve,ed=1e-6,rd=Math.PI,id=rd/2,od=rd/4,ud=2*rd,ad=180/rd,cd=rd/180,sd=Math.abs,fd=Math.atan,ld=Math.atan2,hd=Math.cos,pd=Math.ceil,dd=Math.exp,vd=Math.log,_d=Math.pow,yd=Math.sin,gd=Math.sign||function(t){return t>0?1:t<0?-1:0},md=Math.sqrt,xd=Math.tan,bd={Feature:function(t,n){Ke(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)Ke(e[r].geometry,n)}},wd={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){tr(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)tr(e[r],n,0)},Polygon:function(t,n){nr(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)nr(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)Ke(e[r],n)}},Md=function(t,n){t&&bd.hasOwnProperty(t.type)?bd[t.type](t,n):Ke(t,n)},Td=Mp(),kd=Mp(),Nd={point:Qe,lineStart:Qe,lineEnd:Qe,polygonStart:function(){Td.reset(),Nd.lineStart=er,Nd.lineEnd=rr},polygonEnd:function(){var t=+Td;kd.add(t<0?ud+t:t),this.lineStart=this.lineEnd=this.point=Qe},sphere:function(){kd.add(ud)}},Sd=Mp(),Ed={point:pr,lineStart:vr,lineEnd:_r,polygonStart:function(){Ed.point=yr,Ed.lineStart=gr,Ed.lineEnd=mr,Sd.reset(),Nd.polygonStart()},polygonEnd:function(){Nd.polygonEnd(),Ed.point=pr,Ed.lineStart=vr,Ed.lineEnd=_r,Td<0?(Ap=-(zp=180),Cp=-(Pp=90)):Sd>ed?Pp=90:Sd<-ed&&(Cp=-90),Op[0]=Ap,Op[1]=zp}},Ad={sphere:Qe,point:Mr,lineStart:kr,lineEnd:Er,polygonStart:function(){Ad.lineStart=Ar,Ad.lineEnd=Cr},polygonEnd:function(){Ad.lineStart=kr,Ad.lineEnd=Er}},Cd=function(t){return function(){return t}},zd=function(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};Rr.invert=Rr;var Pd,Rd,Ld,qd,Ud,Dd,Od,Fd,Id,Yd,Bd,jd=function(t){function n(n){return n=t(n[0]*cd,n[1]*cd),n[0]*=ad,n[1]*=ad,n}return t=Lr(t[0]*cd,t[1]*cd,t.length>2?t[2]*cd:0),n.invert=function(n){return n=t.invert(n[0]*cd,n[1]*cd),n[0]*=ad,n[1]*=ad,n},n},Hd=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:Qe,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},Xd=function(t,n,e,r,i,o){var u,a=t[0],c=t[1],s=0,f=1,l=n[0]-a,h=n[1]-c;if(u=e-a,l||!(u>0)){if(u/=l,l<0){if(u<s)return;u<f&&(f=u)}else if(l>0){if(u>f)return;u>s&&(s=u)}if(u=i-a,l||!(u<0)){if(u/=l,l<0){if(u>f)return;u>s&&(s=u)}else if(l>0){if(u<s)return;u<f&&(f=u)}if(u=r-c,h||!(u>0)){if(u/=h,h<0){if(u<s)return;u<f&&(f=u)}else if(h>0){if(u>f)return;u>s&&(s=u)}if(u=o-c,h||!(u<0)){if(u/=h,h<0){if(u>f)return;u>s&&(s=u)}else if(h>0){if(u<s)return;u<f&&(f=u)}return s>0&&(t[0]=a+s*l,t[1]=c+s*h),f<1&&(n[0]=a+f*l,n[1]=c+f*h),!0}}}}},$d=function(t,n){return sd(t[0]-n[0])<ed&&sd(t[1]-n[1])<ed},Vd=function(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($d(r,u)){for(i.lineStart(),o=0;o<n;++o)i.point((r=t[o])[0],r[1]);i.lineEnd()}else a.push(e=new Ir(r,t,null,!0)),c.push(e.o=new Ir(r,null,e,!1)),a.push(e=new Ir(u,t,null,!1)),c.push(e.o=new Ir(u,null,e,!0))}}),a.length){for(c.sort(n),Yr(a),Yr(c),o=0,u=c.length;o<u;++o)c[o].e=e=!e;for(var s,f,l=a[0];;){for(var h=l,p=!0;h.v;)if((h=h.n)===l)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,u=s.length;o<u;++o)i.point((f=s[o])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(s=h.p.z,o=s.length-1;o>=0;--o)i.point((f=s[o])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}},Wd=1e9,Zd=-Wd,Gd=Mp(),Jd=function(t,n){var e=n[0],r=n[1],i=[yd(e),-hd(e),0],o=0,u=0;Gd.reset();for(var a=0,c=t.length;a<c;++a)if(f=(s=t[a]).length)for(var s,f,l=s[f-1],h=l[0],p=l[1]/2+od,d=yd(p),v=hd(p),_=0;_<f;++_,h=g,d=x,v=b,l=y){var y=s[_],g=y[0],m=y[1]/2+od,x=yd(m),b=hd(m),w=g-h,M=w>=0?1:-1,T=M*w,k=T>rd,N=d*x;if(Gd.add(ld(N*M*yd(T),v*b+N*hd(T))),o+=k?w+M*ud:w,k^h>=e^g>=e){var S=sr(ar(l),ar(y));hr(S);var E=sr(i,S);hr(E);var A=(k^w>=0?-1:1)*Ge(E[2]);(r>A||r===A&&(S[0]||S[1]))&&(u+=k^w>=0?1:-1)}}return(o<-ed||o<ed&&Gd<-ed)^1&u},Qd=Mp(),Kd={sphere:Qe,point:Qe,lineStart:function(){Kd.point=Hr,Kd.lineEnd=jr},lineEnd:Qe,polygonStart:Qe,polygonEnd:Qe},tv=function(t){return Qd.reset(),Md(t,Kd),+Qd},nv=[null,null],ev={type:"LineString",coordinates:nv},rv=function(t,n){return nv[0]=t,nv[1]=n,tv(ev)},iv={Feature:function(t,n){return $r(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if($r(e[r].geometry,n))return!0;return!1}},ov={Sphere:function(){return!0},Point:function(t,n){return Vr(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Vr(e[r],n))return!0;return!1},LineString:function(t,n){return Wr(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Wr(e[r],n))return!0;return!1},Polygon:function(t,n){return Zr(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(Zr(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if($r(e[r],n))return!0;return!1}},uv=function(t){return t},av=Mp(),cv=Mp(),sv={point:Qe,lineStart:Qe,lineEnd:Qe,polygonStart:function(){sv.lineStart=ni,sv.lineEnd=ii},polygonEnd:function(){sv.lineStart=sv.lineEnd=sv.point=Qe,av.add(sd(cv)),cv.reset()},result:function(){var t=av/2;return av.reset(),t}},fv=1/0,lv=fv,hv=-fv,pv=hv,dv={point:function(t,n){t<fv&&(fv=t),t>hv&&(hv=t),n<lv&&(lv=n),n>pv&&(pv=n)},lineStart:Qe,lineEnd:Qe,polygonStart:Qe,polygonEnd:Qe,result:function(){var t=[[fv,lv],[hv,pv]];return hv=pv=-(lv=fv=1/0),t}},vv=0,_v=0,yv=0,gv=0,mv=0,xv=0,bv=0,wv=0,Mv=0,Tv={point:oi,lineStart:ui,lineEnd:si,polygonStart:function(){Tv.lineStart=fi,Tv.lineEnd=li},polygonEnd:function(){Tv.point=oi,Tv.lineStart=ui,Tv.lineEnd=si},result:function(){var t=Mv?[bv/Mv,wv/Mv]:xv?[gv/xv,mv/xv]:yv?[vv/yv,_v/yv]:[NaN,NaN];return vv=_v=yv=gv=mv=xv=bv=wv=Mv=0,t}};di.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,ud)}},result:Qe};var kv,Nv,Sv,Ev,Av,Cv=Mp(),zv={point:Qe,lineStart:function(){zv.point=vi},lineEnd:function(){kv&&_i(Nv,Sv),zv.point=Qe},polygonStart:function(){kv=!0},polygonEnd:function(){kv=null},result:function(){var t=+Cv;return Cv.reset(),t}};yi.prototype={_radius:4.5,_circle:gi(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=gi(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}};var Pv=function(t,n,e,r){return function(i,o){function u(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&o.point(n,e)}function a(t,n){var e=i(t,n);_.point(e[0],e[1])}function c(){b.point=a,_.lineStart()}function s(){b.point=u,_.lineEnd()}function f(t,n){v.push([t,n]);var e=i(t,n);m.point(e[0],e[1])}function l(){m.lineStart(),v=[]}function h(){f(v[0][0],v[0][1]),m.lineEnd();var t,n,e,r,i=m.clean(),u=g.result(),a=u.length;if(v.pop(),p.push(v),v=null,a)if(1&i){if(e=u[0],(n=e.length-1)>0){for(x||(o.polygonStart(),x=!0),o.lineStart(),t=0;t<n;++t)o.point((r=e[t])[0],r[1]);o.lineEnd()}}else a>1&&2&i&&u.push(u.pop().concat(u.shift())),d.push(u.filter(mi))}var p,d,v,_=n(o),y=i.invert(r[0],r[1]),g=Hd(),m=n(g),x=!1,b={point:u,lineStart:c,lineEnd:s,polygonStart:function(){b.point=f,b.lineStart=l,b.lineEnd=h,d=[],p=[]},polygonEnd:function(){b.point=u,b.lineStart=c,b.lineEnd=s,d=Cs(d);var t=Jd(p,y);d.length?(x||(o.polygonStart(),x=!0),Vd(d,xi,t,e,o)):t&&(x||(o.polygonStart(),x=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),x&&(o.polygonEnd(),x=!1),d=p=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};return b}},Rv=Pv(function(){return!0},function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,u){var a=o>0?rd:-rd,c=sd(o-e);sd(c-rd)<ed?(t.point(e,r=(r+u)/2>0?id:-id),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(o,r),n=0):i!==a&&c>=rd&&(sd(e-i)<ed&&(e-=i*ed),sd(o-a)<ed&&(o-=a*ed),r=bi(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(t,n,e,r){var i;if(null==t)i=e*id,r.point(-rd,i),r.point(0,i),r.point(rd,i),r.point(rd,0),r.point(rd,-i),r.point(0,-i),r.point(-rd,-i),r.point(-rd,0),r.point(-rd,i);else if(sd(t[0]-n[0])>ed){var o=t[0]<n[0]?rd:-rd;i=e*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(n[0],n[1])},[-rd,-id]),Lv=function(t,n){function e(t,n){return hd(t)*hd(n)>o}function r(t,n,e){var r=[1,0,0],i=sr(ar(t),ar(n)),u=cr(i,i),a=i[0],c=u-a*a;if(!c)return!e&&t;var s=o*u/c,f=-o*a/c,l=sr(r,i),h=lr(r,s);fr(h,lr(i,f));var p=l,d=cr(h,p),v=cr(p,p),_=d*d-v*(cr(h,h)-1);if(!(_<0)){var y=md(_),g=lr(p,(-d-y)/v);if(fr(g,h),g=ur(g),!e)return g;var m,x=t[0],b=n[0],w=t[1],M=n[1];b<x&&(m=x,x=b,b=m);var T=b-x,k=sd(T-rd)<ed,N=k||T<ed;if(!k&&M<w&&(m=w,w=M,M=m),N?k?w+M>0^g[1]<(sd(g[0]-x)<ed?w:M):w<=g[1]&&g[1]<=M:T>rd^(x<=g[0]&&g[0]<=b)){var S=lr(p,(-d+y)/v);return fr(S,h),[g,ur(S)]}}}function i(n,e){var r=u?t:rd-t,i=0;return n<-r?i|=1:n>r&&(i|=2),e<-r?i|=4:e>r&&(i|=8),i}var o=hd(t),u=o>0,a=sd(o)>ed;return Pv(e,function(t){var n,o,c,s,f;return{lineStart:function(){s=c=!1,f=1},point:function(l,h){var p,d=[l,h],v=e(l,h),_=u?v?0:i(l,h):v?i(l+(l<0?rd:-rd),h):0;if(!n&&(s=c=v)&&t.lineStart(),v!==c&&(!(p=r(n,d))||$d(n,p)||$d(d,p))&&(d[0]+=ed,d[1]+=ed,v=e(d[0],d[1])),v!==c)f=0,v?(t.lineStart(),p=r(d,n),t.point(p[0],p[1])):(p=r(n,d),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(a&&n&&u^v){var y;_&o||!(y=r(d,n,!0))||(f=0,u?(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&&$d(n,d)||t.point(d[0],d[1]),n=d,c=v,o=_},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return f|(s&&c)<<1}}},function(e,r,i,o){Or(o,t,n,i,e,r)},u?[0,-t]:[-rd,t-rd])};Mi.prototype={constructor:Mi,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 qv=16,Uv=hd(30*cd),Dv=function(t,n){return+n?Si(t,n):Ni(t)},Ov=wi({point:function(t,n){this.stream.point(t*cd,n*cd)}}),Fv=function(){return Ci(Pi).scale(155.424).center([0,33.6442])},Iv=function(){return Fv().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},Yv=Li(function(t){return md(2/(1+t))});Yv.invert=qi(function(t){return 2*Ge(t/2)});var Bv=Li(function(t){return(t=Ze(t))&&t/yd(t)});Bv.invert=qi(function(t){return t});Ui.invert=function(t,n){return[t,2*fd(dd(n))-id]};Ii.invert=Ii;Bi.invert=qi(fd);Hi.invert=qi(Ge);Xi.invert=qi(function(t){return 2*fd(t)});$i.invert=function(t,n){return[-n,2*fd(dd(t))-id]};uo.prototype=eo.prototype={constructor:uo,count:function(){return this.eachAfter(to)},each:function(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},eachAfter:function(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},eachBefore:function(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},sum:function(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})},sort:function(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function(t){for(var n=this,e=no(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},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each(function(n){t.push(n)}),t},leaves:function(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function(){return eo(this).eachBefore(io)}};var jv=Array.prototype.slice,Hv=function(t){for(var n,e,r=0,i=(t=ao(jv.call(t))).length,o=[];r<i;)n=t[r],e&&fo(e,n)?++r:(e=ho(o=co(o,n)),r=0);return e},Xv=function(t){return function(){return t}},$v=function(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)},Vv=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,s=t.value&&(r-n)/t.value;++a<c;)(o=u[a]).y0=e,o.y1=i,o.x0=n,o.x1=n+=o.value*s},Wv="$",Zv={depth:-1},Gv={};Do.prototype=Object.create(uo.prototype);var Jv=function(t,n,e,r,i){for(var o,u=t.children,a=-1,c=u.length,s=t.value&&(i-e)/t.value;++a<c;)(o=u[a]).x0=n,o.x1=r,o.y0=e,o.y1=e+=o.value*s},Qv=(1+Math.sqrt(5))/2,Kv=function t(n){function e(t,e,r,i,o){Fo(n,t,e,r,i,o)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Qv),t_=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,s,f,l=-1,h=u.length,p=t.value;++l<h;){for(c=(a=u[l]).children,s=a.value=0,f=c.length;s<f;++s)a.value+=c[s].value;a.dice?Vv(a,e,r,i,r+=(o-r)*a.value/p):Jv(a,e,r,e+=(i-e)*a.value/p,o),p-=a.value}else t._squarify=u=Fo(n,t,e,r,i,o),u.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(Qv),n_=function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])},e_=[].slice,r_={};Bo.prototype=Wo.prototype={constructor:Bo,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=e_.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),jo(this),this},abort:function(){return null==this._error&&$o(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))},Vo(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,Vo(this),this}};var i_=function(){return Math.random()},o_=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}(i_),u_=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}(i_),a_=function t(n){function e(){var t=u_.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(i_),c_=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}(i_),s_=function t(n){function e(t){var e=c_.source(n)(t);return function(){return e()/t}}return e.source=t,e}(i_),f_=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(i_),l_=function(t,n){function e(t){var n,e=s.status;if(!e&&Go(s)||e>=200&&e<300||304===e){if(o)try{n=o.call(r,s)}catch(t){return void a.call("error",r,t)}else n=s;a.call("load",r,n)}else a.call("error",r,t)}var r,i,o,u,a=h("beforesend","progress","load","error"),c=we(),s=new XMLHttpRequest,f=null,l=null,p=0;if("undefined"==typeof XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=s.ontimeout=e:s.onreadystatechange=function(t){s.readyState>3&&e(t)},s.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?(p=+t,r):p},user:function(t){return arguments.length<1?f:(f=null==t?null:t+"",r)},password:function(t){return arguments.length<1?l:(l=null==t?null:t+"",r)},response:function(t){return 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 s.open(n,t,!0,f,l),null==i||c.has("accept")||c.set("accept",i+",*/*"),s.setRequestHeader&&c.each(function(t,n){s.setRequestHeader(n,t)}),null!=i&&s.overrideMimeType&&s.overrideMimeType(i),null!=u&&(s.responseType=u),p>0&&(s.timeout=p),null==o&&"function"==typeof e&&(o=e,e=null),null!=o&&1===o.length&&(o=Zo(o)),null!=o&&r.on("error",o).on("load",function(t){o(null,t)}),a.call("beforesend",r,s),s.send(null==e?null:e),r},abort:function(){return s.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},h_=function(t,n){return function(e,r){var i=l_(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}},p_=h_("text/html",function(t){return document.createRange().createContextualFragment(t.responseText)}),d_=h_("application/json",function(t){return JSON.parse(t.responseText)}),v_=h_("text/plain",function(t){return t.responseText}),__=h_("application/xml",function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}),y_=function(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=l_(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(Jo(n,r=t)):r},o.row(r),i?o.get(i):o}},g_=y_("text/csv",Vh),m_=y_("text/tab-separated-values",Qh),x_=Array.prototype,b_=x_.map,w_=x_.slice,M_={name:"implicit"},T_=function(t){return function(){return t}},k_=function(t){return+t},N_=[0,1],S_=function(n,e,r){var o,u=n[0],a=n[n.length-1],c=i(u,a,null==e?10:e);switch((r=He(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(u),Math.abs(a));return null!=r.precision||isNaN(o=bp(c,s))||(r.precision=o),t.formatPrefix(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=wp(c,Math.max(Math.abs(u),Math.abs(a))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=xp(c))||(r.precision=o-2*("%"===r.type))}return t.format(r)},E_=function(t,n){var e,r=0,i=(t=t.slice()).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},A_=new Date,C_=new Date,z_=Mu(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});z_.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Mu(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):z_:null};var P_=z_.range,R_=6e4,L_=6048e5,q_=Mu(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()}),U_=q_.range,D_=Mu(function(t){t.setTime(Math.floor(t/R_)*R_)},function(t,n){t.setTime(+t+n*R_)},function(t,n){return(n-t)/R_},function(t){return t.getMinutes()}),O_=D_.range,F_=Mu(function(t){var n=t.getTimezoneOffset()*R_%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()}),I_=F_.range,Y_=Mu(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())*R_)/864e5},function(t){return t.getDate()-1}),B_=Y_.range,j_=Tu(0),H_=Tu(1),X_=Tu(2),$_=Tu(3),V_=Tu(4),W_=Tu(5),Z_=Tu(6),G_=j_.range,J_=H_.range,Q_=X_.range,K_=$_.range,ty=V_.range,ny=W_.range,ey=Z_.range,ry=Mu(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()}),iy=ry.range,oy=Mu(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()});oy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mu(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 uy=oy.range,ay=Mu(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*R_)},function(t,n){return(n-t)/R_},function(t){return t.getUTCMinutes()}),cy=ay.range,sy=Mu(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()}),fy=sy.range,ly=Mu(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}),hy=ly.range,py=ku(0),dy=ku(1),vy=ku(2),_y=ku(3),yy=ku(4),gy=ku(5),my=ku(6),xy=py.range,by=dy.range,wy=vy.range,My=_y.range,Ty=yy.range,ky=gy.range,Ny=my.range,Sy=Mu(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()}),Ey=Sy.range,Ay=Mu(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()});Ay.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mu(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 Cy,zy=Ay.range,Py={"-":"",_:" ",0:"0"},Ry=/^\s*\d+/,Ly=/^%/,qy=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;Ma({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 Uy=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),Dy=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:t.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),Oy=1e3,Fy=60*Oy,Iy=60*Fy,Yy=24*Iy,By=7*Yy,jy=30*Yy,Hy=365*Yy,Xy=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})},$y=Xy("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Vy=Xy("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Wy=Xy("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Zy=Xy("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Gy=wl($t(300,.5,0),$t(-240,.5,1)),Jy=wl($t(-100,.75,.35),$t(80,1.5,.8)),Qy=wl($t(260,.75,.35),$t(80,1.5,.8)),Ky=$t(),tg=Sa(Xy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),ng=Sa(Xy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),eg=Sa(Xy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),rg=Sa(Xy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),ig=function(t){return function(){return t}},og=Math.abs,ug=Math.atan2,ag=Math.cos,cg=Math.max,sg=Math.min,fg=Math.sin,lg=Math.sqrt,hg=1e-12,pg=Math.PI,dg=pg/2,vg=2*pg;Oa.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 _g=function(t){return new Oa(t)},yg=function(){function t(t){var a,c,s,f=t.length,l=!1;for(null==i&&(u=o(s=ve())),a=0;a<=f;++a)!(a<f&&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(s)return u=null,s+""||null}var n=Fa,e=Ia,r=ig(!0),i=null,o=_g,u=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:ig(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:ig(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:ig(!!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},gg=function(){function t(t){var n,f,l,h,p,d=t.length,v=!1,_=new Array(d),y=new Array(d);for(null==a&&(s=c(p=ve())),n=0;n<=d;++n){if(!(n<d&&u(h=t[n],n,t))===v)if(v=!v)f=n,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),l=n-1;l>=f;--l)s.point(_[l],y[l]);s.lineEnd(),s.areaEnd()}v&&(_[n]=+e(h,n,t),y[n]=+i(h,n,t),s.point(r?+r(h,n,t):_[n],o?+o(h,n,t):y[n]))}if(p)return s=null,p+""||null}function n(){return yg().defined(u).curve(c).context(a)}var e=Fa,r=null,i=ig(0),o=Ia,u=ig(!0),a=null,c=_g,s=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:ig(+n),r=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:ig(+n),t):e},t.x1=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:ig(+n),t):r},t.y=function(n){return arguments.length?(i="function"==typeof n?n:ig(+n),o=null,t):i},t.y0=function(n){return arguments.length?(i="function"==typeof n?n:ig(+n),t):i},t.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:ig(+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:ig(!!n),t):u},t.curve=function(n){return arguments.length?(c=n,null!=a&&(s=c(a)),t):c},t.context=function(n){return arguments.length?(null==n?a=s=null:s=c(a=n),t):a},t},mg=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},xg=function(t){return t},bg=Ba(_g);Ya.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 wg=function(){return ja(yg().curve(bg))},Mg=function(){var t=gg().curve(bg),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 ja(e())},delete t.lineX0,t.lineEndAngle=function(){return ja(r())},delete t.lineX1,t.lineInnerRadius=function(){return ja(i())},delete t.lineY0,t.lineOuterRadius=function(){return ja(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Ba(t)):n()._curve},t},Tg=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},kg=Array.prototype.slice,Ng={draw:function(t,n){var e=Math.sqrt(n/pg);t.moveTo(e,0),t.arc(0,0,e,0,vg)}},Sg={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()}},Eg=Math.sqrt(1/3),Ag=2*Eg,Cg={draw:function(t,n){var e=Math.sqrt(n/Ag),r=e*Eg;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},zg=Math.sin(pg/10)/Math.sin(7*pg/10),Pg=Math.sin(vg/10)*zg,Rg=-Math.cos(vg/10)*zg,Lg={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Pg*e,i=Rg*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var u=vg*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()}},qg={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Ug=Math.sqrt(3),Dg={draw:function(t,n){var e=-Math.sqrt(n/(3*Ug));t.moveTo(0,2*e),t.lineTo(-Ug*e,-e),t.lineTo(Ug*e,-e),t.closePath()}},Og=-.5,Fg=Math.sqrt(3)/2,Ig=1/Math.sqrt(12),Yg=3*(Ig/2+1),Bg={draw:function(t,n){var e=Math.sqrt(n/Yg),r=e/2,i=e*Ig,o=r,u=e*Ig+e,a=-o,c=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,c),t.lineTo(Og*r-Fg*i,Fg*r+Og*i),t.lineTo(Og*o-Fg*u,Fg*o+Og*u),t.lineTo(Og*a-Fg*c,Fg*a+Og*c),t.lineTo(Og*r+Fg*i,Og*i-Fg*r),t.lineTo(Og*o+Fg*u,Og*u-Fg*o),t.lineTo(Og*a+Fg*c,Og*c-Fg*a),t.closePath()}},jg=[Ng,Sg,Cg,qg,Lg,Dg,Bg],Hg=function(){};Ja.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:Ga(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:Ga(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};Qa.prototype={areaStart:Hg,areaEnd:Hg,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:Ga(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};Ka.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:Ga(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};tc.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 Xg=function t(n){function e(t){return 1===n?new Ja(t):new tc(t,n)}return e.beta=function(n){return t(+n)},e}(.85);ec.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:nc(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:nc(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 $g=function t(n){function e(t){return new ec(t,n)}return e.tension=function(n){return t(+n)},e}(0);rc.prototype={areaStart:Hg,areaEnd:Hg,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:nc(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 Vg=function t(n){function e(t){return new rc(t,n)}return e.tension=function(n){return t(+n)},e}(0);ic.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:nc(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 Wg=function t(n){function e(t){return new ic(t,n)}return e.tension=function(n){return t(+n)},e}(0);uc.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:oc(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 Zg=function t(n){function e(t){return n?new uc(t,n):new ec(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);ac.prototype={areaStart:Hg,areaEnd:Hg,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:oc(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 Gg=function t(n){function e(t){return n?new ac(t,n):new rc(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);cc.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:oc(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 Jg=function t(n){function e(t){return n?new cc(t,n):new ic(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);sc.prototype={areaStart:Hg,areaEnd:Hg,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))}};dc.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:pc(this,this._t0,hc(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,pc(this,hc(this,e=lc(this,t,n)),e);break;default:pc(this,this._t0,e=lc(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(vc.prototype=Object.create(dc.prototype)).point=function(t,n){dc.prototype.point.call(this,n,t)},_c.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)}},yc.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=gc(t),i=gc(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)}};mc.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}};var Qg=function(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]},Kg=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e},tm=function(t){var n=t.map(bc);return Kg(t).sort(function(t,e){return n[t]-n[e]})},nm=function(t){return function(){return t}};Tc.prototype={constructor:Tc,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=Ec(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;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(Nc(this,e),e=(t=e).U),e.C=!1,r.C=!0,Sc(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Sc(this,e),e=(t=e).U),e.C=!1,r.C=!0,Nc(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?Ec(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)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,Nc(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,Sc(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,Nc(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,Sc(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,Nc(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Sc(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var em,rm,im,om,um,am=[],cm=[],sm=1e-6,fm=1e-12;Kc.prototype={constructor:Kc,polygons:function(){var t=this.edges;return this.cells.map(function(n){var e=n.halfedges.map(function(e){return Dc(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,s=n[i[o-1]],f=s.left===a?s.right:s.left;++c<o;)u=f,f=(s=n[i[c]]).left===a?s.right:s.left,u&&f&&r<u.index&&r<f.index&&Jc(a,u,f)<0&&t.push([a.data,u.data,f.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},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],s=n-i.site[1],f=c*c+s*s;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],s=n-a[1],l=c*c+s*s;l<f&&(f=l,u=a.index)}})}while(null!==u);return o._found=r,null==e||f<=e*e?i.site:null}};var lm=function(t){return function(){return t}};ns.prototype={constructor:ns,scale:function(t){return 1===t?this:new ns(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new ns(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 hm=new ns(1,0,0);es.prototype=ns.prototype;var pm=function(){t.event.preventDefault(),t.event.stopImmediatePropagation()};t.version="4.10.0",t.bisect=hs,t.bisectRight=hs,t.bisectLeft=ps,t.ascending=ss,t.bisector=fs,t.cross=function(t,n,r){var i,o,u,a,c=t.length,s=n.length,f=new Array(c*s);for(null==r&&(r=e),i=u=0;i<c;++i)for(a=t[i],o=0;o<s;++o,++u)f[u]=r(a,n[o]);return f},t.descending=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},t.deviation=_s,t.extent=ys,t.histogram=function(){function t(t){var o,u,a=t.length,c=new Array(a);for(o=0;o<a;++o)c[o]=n(t[o],o,t);var s=e(c),f=s[0],l=s[1],h=r(c,f,l);Array.isArray(h)||(h=i(f,l,h),h=Ms(Math.ceil(f/h)*h,Math.floor(l/h)*h,h));for(var p=h.length;h[0]<=f;)h.shift(),--p;for(;h[p-1]>l;)h.pop(),--p;var d,v=new Array(p+1);for(o=0;o<=p;++o)(d=v[o]=[]).x0=o>0?h[o-1]:f,d.x1=o<p?h[o]:l;for(o=0;o<a;++o)f<=(u=c[o])&&u<=l&&v[hs(h,u,0,p)].push(t[o]);return v}var n=ws,e=ys,r=Es;return t.value=function(e){return arguments.length?(n="function"==typeof e?e:bs(e),t):n},t.domain=function(n){return arguments.length?(e="function"==typeof n?n:bs([n[0],n[1]]),t):e},t.thresholds=function(n){return arguments.length?(r="function"==typeof n?n:bs(Array.isArray(n)?ms.call(n):n),t):r},t},t.thresholdFreedmanDiaconis=function(t,n,e){return t=xs.call(t,ds).sort(ss),Math.ceil((e-n)/(2*(As(t,.75)-As(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,n,e){return Math.ceil((e-n)/(3.5*_s(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=Es,t.max=function(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},t.mean=function(t,n){var e,r=t.length,i=r,o=-1,u=0;if(null==n)for(;++o<r;)isNaN(e=ds(t[o]))?--i:u+=e;else for(;++o<r;)isNaN(e=ds(n(t[o],o,t)))?--i:u+=e;if(i)return u/i},t.median=function(t,n){var e,r=t.length,i=-1,o=[];if(null==n)for(;++i<r;)isNaN(e=ds(t[i]))||o.push(e);else for(;++i<r;)isNaN(e=ds(n(t[i],i,t)))||o.push(e);return As(o.sort(ss),.5)},t.merge=Cs,t.min=zs,t.pairs=function(t,n){null==n&&(n=e);for(var r=0,i=t.length-1,o=t[0],u=new Array(i<0?0:i);r<i;)u[r]=n(o,o=t[++r]);return u},t.permute=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},t.quantile=As,t.range=Ms,t.scan=function(t,n){if(e=t.length){var e,r,i=0,o=0,u=t[o];for(null==n&&(n=ss);++i<e;)(n(r=t[i],u)<0||0!==n(u,u))&&(u=r,o=i);return 0===n(u,u)?o:void 0}},t.shuffle=function(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},t.sum=function(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},t.ticks=Ss,t.tickIncrement=r,t.tickStep=i,t.transpose=Ps,t.variance=vs,t.zip=function(){return Ps(arguments)},t.axisTop=function(t){return l(qs,t)},t.axisRight=function(t){return l(Us,t)},t.axisBottom=function(t){return l(Ds,t)},t.axisLeft=function(t){return l(Os,t)},t.brush=function(){return he(Sh)},t.brushX=function(){return he(kh)},t.brushY=function(){return he(Nh)},t.brushSelection=function(t){var n=t.__brush;return n?n.dim.output(n.selection):null},t.chord=function(){function t(t){var o,u,a,c,s,f,l=t.length,h=[],p=Ms(l),d=[],v=[],_=v.groups=new Array(l),y=new Array(l*l);for(o=0,s=-1;++s<l;){for(u=0,f=-1;++f<l;)u+=t[s][f];h.push(u),d.push(Ms(l)),o+=u}for(e&&p.sort(function(t,n){return e(h[t],h[n])}),r&&d.forEach(function(n,e){n.sort(function(n,i){return r(t[e][n],t[e][i])})}),c=(o=Oh(0,Dh-n*l)/o)?n:Dh/l,u=0,s=-1;++s<l;){for(a=u,f=-1;++f<l;){var g=p[s],m=d[g][f],x=t[g][m],b=u,w=u+=x*o;y[m*l+g]={index:g,subindex:m,startAngle:b,endAngle:w,value:x}}_[g]={index:g,startAngle:a,endAngle:u,value:h[g]},u+=c}for(s=-1;++s<l;)for(f=s-1;++f<l;){var M=y[f*l+s],T=y[s*l+f];(M.value||T.value)&&v.push(M.value<T.value?{source:T,target:M}:{source:M,target:T})}return i?v.sort(i):v}var n=0,e=null,r=null,i=null;return t.padAngle=function(e){return arguments.length?(n=Oh(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=pe(n))._=n,t):i&&i._},t},t.ribbon=function(){function t(){var t,a=Fh.call(arguments),c=n.apply(this,a),s=e.apply(this,a),f=+r.apply(this,(a[0]=c,a)),l=i.apply(this,a)-Uh,h=o.apply(this,a)-Uh,p=f*Rh(l),d=f*Lh(l),v=+r.apply(this,(a[0]=s,a)),_=i.apply(this,a)-Uh,y=o.apply(this,a)-Uh;if(u||(u=t=ve()),u.moveTo(p,d),u.arc(0,0,f,l,h),l===_&&h===y||(u.quadraticCurveTo(0,0,v*Rh(_),v*Lh(_)),u.arc(0,0,v,_,y)),u.quadraticCurveTo(0,0,p,d),u.closePath(),t)return u=null,t+""||null}var n=_e,e=ye,r=ge,i=me,o=xe,u=null;return t.radius=function(n){return arguments.length?(r="function"==typeof n?n:Ih(+n),t):r},t.startAngle=function(n){return arguments.length?(i="function"==typeof n?n:Ih(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:Ih(+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},t.nest=function(){function t(n,i,u,a){if(i>=o.length)return null!=e&&n.sort(e),null!=r?r(n):n;for(var c,s,f,l=-1,h=n.length,p=o[i++],d=we(),v=u();++l<h;)(f=d.get(c=p(s=n[l])+""))?f.push(s):d.set(c,[s]);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,Me,Te)},map:function(n){return t(n,0,ke,Ne)},entries:function(e){return n(t(e,0,ke,Ne),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}}},t.set=Ee,t.map=we,t.keys=function(t){var n=[];for(var e in t)n.push(e);return n},t.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},t.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},t.color=Tt,t.rgb=Et,t.hsl=Pt,t.lab=Ut,t.hcl=jt,t.cubehelix=$t,t.dispatch=h,t.drag=function(){function n(t){t.on("mousedown.drag",e).filter(bt).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(!p&&d.apply(this,arguments)){var n=c("mouse",v.apply(this,arguments),Ks,this,arguments);n&&(cf(t.event.view).on("mousemove.drag",r,!0).on("mouseup.drag",i,!0),lf(t.event.view),vt(),l=!1,s=t.event.clientX,f=t.event.clientY,n("start"))}}function r(){if(ff(),!l){var n=t.event.clientX-s,e=t.event.clientY-f;l=n*n+e*e>x}y.mouse("drag")}function i(){cf(t.event.view).on("mousemove.drag mouseup.drag",null),_t(t.event.view,l),ff(),y.mouse("end")}function o(){if(d.apply(this,arguments)){var n,e,r=t.event.changedTouches,i=v.apply(this,arguments),o=r.length;for(n=0;n<o;++n)(e=c(r[n].identifier,i,sf,this,arguments))&&(vt(),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])&&(ff(),e("drag"))}function a(){var n,e,r=t.event.changedTouches,i=r.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),n=0;n<i;++n)(e=y[r[n].identifier])&&(vt(),e("end"))}function c(e,r,i,o,u){var a,c,s,f=i(r,e),l=g.copy();if(N(new yt(n,"beforestart",a,e,m,f[0],f[1],0,0,l),function(){return null!=(t.event.subject=a=_.apply(o,u))&&(c=a.x-f[0]||0,s=a.y-f[1]||0,!0)}))return function t(h){var p,d=f;switch(h){case"start":y[e]=t,p=m++;break;case"end":delete y[e],--m;case"drag":f=i(r,e),p=m}N(new yt(n,h,a,e,p,f[0]+c,f[1]+s,f[0]-d[0],f[1]-d[1],l),l.apply,l,[h,o,u])}}var s,f,l,p,d=gt,v=mt,_=xt,y={},g=h("start","drag","end"),m=0,x=0;return n.filter=function(t){return arguments.length?(d="function"==typeof t?t:hf(!!t),n):d},n.container=function(t){return arguments.length?(v="function"==typeof t?t:hf(t),n):v},n.subject=function(t){return arguments.length?(_="function"==typeof t?t:hf(t),n):_},n.on=function(){var t=g.on.apply(g,arguments);return t===g?n:t},n.clickDistance=function(t){return arguments.length?(x=(t=+t)*t,n):Math.sqrt(x)},n},t.dragDisable=lf,t.dragEnable=_t,t.dsvFormat=Xh,t.csvParse=Vh,t.csvParseRows=Wh,t.csvFormat=Zh,t.csvFormatRows=Gh,t.tsvParse=Qh,t.tsvParseRows=Kh,t.tsvFormat=tp,t.tsvFormatRows=np,t.easeLinear=function(t){return+t},t.easeQuad=Kn,t.easeQuadIn=function(t){return t*t},t.easeQuadOut=function(t){return t*(2-t)},t.easeQuadInOut=Kn,t.easeCubic=te,t.easeCubicIn=function(t){return t*t*t},t.easeCubicOut=function(t){return--t*t*t+1},t.easeCubicInOut=te,t.easePoly=Gl,t.easePolyIn=Wl,t.easePolyOut=Zl,t.easePolyInOut=Gl,t.easeSin=ne,t.easeSinIn=function(t){return 1-Math.cos(t*Ql)},t.easeSinOut=function(t){return Math.sin(t*Ql)},t.easeSinInOut=ne,t.easeExp=ee,t.easeExpIn=function(t){return Math.pow(2,10*t-10)},t.easeExpOut=function(t){return 1-Math.pow(2,-10*t)},t.easeExpInOut=ee,t.easeCircle=re,t.easeCircleIn=function(t){return 1-Math.sqrt(1-t*t)},t.easeCircleOut=function(t){return Math.sqrt(1- --t*t)},t.easeCircleInOut=re,t.easeBounce=ie,t.easeBounceIn=function(t){return 1-ie(1-t)},t.easeBounceOut=ie,t.easeBounceInOut=function(t){return((t*=2)<=1?1-ie(1-t):ie(t-1)+1)/2},t.easeBack=lh,t.easeBackIn=sh,t.easeBackOut=fh,t.easeBackInOut=lh,t.easeElastic=dh,t.easeElasticIn=ph,t.easeElasticOut=dh,t.easeElasticInOut=vh,t.forceCenter=function(t,n){function e(){var e,i,o=r.length,u=0,a=0;for(e=0;e<o;++e)u+=(i=r[e]).x,a+=i.y;for(u=u/o-t,a=a/o-n,e=0;e<o;++e)(i=r[e]).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},t.forceCollide=function(t){function n(){for(var t,n,r,c,s,f,l,h=i.length,p=0;p<a;++p)for(n=qe(i,Oe,Fe).visitAfter(e),t=0;t<h;++t)r=i[t],f=o[r.index],l=f*f,c=r.x+r.vx,s=r.y+r.vy,n.visit(function(t,n,e,i,o){var a=t.data,h=t.r,p=f+h;if(!a)return n>c+p||i<c-p||e>s+p||o<s-p;if(a.index>r.index){var d=c-a.x-a.vx,v=s-a.y-a.vy,_=d*d+v*v;_<p*p&&(0===d&&(d=rp(),_+=d*d),0===v&&(v=rp(),_+=v*v),_=(p-(_=Math.sqrt(_)))/_*u,r.vx+=(d*=_)*(p=(h*=h)/(l+h)),r.vy+=(v*=_)*p,a.vx-=d*(p=1-p),a.vy-=v*p)}})}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=ep(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:ep(+e),r(),n):t},n},t.forceLink=function(t){function n(n){for(var e=0,r=t.length;e<p;++e)for(var i,a,c,f,l,h,d,v=0;v<r;++v)a=(i=t[v]).source,f=(c=i.target).x+c.vx-a.x-a.vx||rp(),l=c.y+c.vy-a.y-a.vy||rp(),f*=h=((h=Math.sqrt(f*f+l*l))-u[v])/h*n*o[v],l*=h,c.vx-=f*(d=s[v]),c.vy-=l*d,a.vx+=f*(d=1-d),a.vy+=l*d}function e(){if(a){var n,e,l=a.length,h=t.length,p=we(a,f);for(n=0,c=new Array(l);n<h;++n)(e=t[n]).index=n,"object"!=typeof e.source&&(e.source=Ye(p,e.source)),"object"!=typeof e.target&&(e.target=Ye(p,e.target)),c[e.source.index]=(c[e.source.index]||0)+1,c[e.target.index]=(c[e.target.index]||0)+1;for(n=0,s=new Array(h);n<h;++n)e=t[n],s[n]=c[e.source.index]/(c[e.source.index]+c[e.target.index]);o=new Array(h),r(),u=new Array(h),i()}}function r(){if(a)for(var n=0,e=t.length;n<e;++n)o[n]=+l(t[n],n,t)}function i(){if(a)for(var n=0,e=t.length;n<e;++n)u[n]=+h(t[n],n,t)}var o,u,a,c,s,f=Ie,l=function(t){return 1/Math.min(c[t.source.index],c[t.target.index])},h=ep(30),p=1;return null==t&&(t=[]),n.initialize=function(t){a=t,e()},n.links=function(r){return arguments.length?(t=r,e(),n):t},n.id=function(t){return arguments.length?(f=t,n):f},n.iterations=function(t){return arguments.length?(p=+t,n):p},n.strength=function(t){return arguments.length?(l="function"==typeof t?t:ep(+t),r(),n):l},n.distance=function(t){return arguments.length?(h="function"==typeof t?t:ep(+t),i(),n):h},n},t.forceManyBody=function(){function t(t){var n,a=i.length,c=qe(i,Be,je).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;if(t.length){for(r=i=o=0;o<4;++o)(n=t[o])&&(e=n.value)&&(u+=e,r+=e*n.x,i+=e*n.y);t.x=r/u,t.y=i/u}else{(n=t).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<f&&(0===i&&(i=rp(),p+=i*i),0===c&&(c=rp(),p+=c*c),p<s&&(p=Math.sqrt(s*p)),o.vx+=i*t.value*u/p,o.vy+=c*t.value*u/p),!0;if(!(t.length||p>=f)){(t.data!==o||t.next)&&(0===i&&(i=rp(),p+=i*i),0===c&&(c=rp(),p+=c*c),p<s&&(p=Math.sqrt(s*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=ep(-30),s=1,f=1/0,l=.81;return t.initialize=function(t){i=t,n()},t.strength=function(e){return arguments.length?(c="function"==typeof e?e:ep(+e),n(),t):c},t.distanceMin=function(n){return arguments.length?(s=n*n,t):Math.sqrt(s)},t.distanceMax=function(n){return arguments.length?(f=n*n,t):Math.sqrt(f)},t.theta=function(n){return arguments.length?(l=n*n,t):Math.sqrt(l)},t},t.forceSimulation=function(t){function n(){e(),d.call("tick",o),u<a&&(p.stop(),d.call("end",o))}function e(){var n,e,r=t.length;for(u+=(s-u)*c,l.each(function(t){t(u)}),n=0;n<r;++n)null==(e=t[n]).fx?e.x+=e.vx*=f:(e.x=e.fx,e.vx=0),null==e.fy?e.y+=e.vy*=f:(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=ap*Math.sqrt(e),o=e*cp;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),s=0,f=.6,l=we(),p=dn(n),d=h("tick","end");return null==t&&(t=[]),r(),o={tick:e,restart:function(){return p.restart(n),o},stop:function(){return p.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?(s=+t,o):s},velocityDecay:function(t){return arguments.length?(f=1-t,o):1-f},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,s=0,f=t.length;for(null==r?r=1/0:r*=r,s=0;s<f;++s)(u=(i=n-(a=t[s]).x)*i+(o=e-a.y)*o)<r&&(c=a,r=u);return c},on:function(t,n){return arguments.length>1?(d.on(t,n),o):d.on(t)}}},t.forceX=function(t){function n(t){for(var n,e=0,u=r.length;e<u;++e)(n=r[e]).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=ep(.1);return"function"!=typeof t&&(t=ep(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:ep(+t),e(),n):u},n.x=function(r){return arguments.length?(t="function"==typeof r?r:ep(+r),e(),n):t},n},t.forceY=function(t){function n(t){for(var n,e=0,u=r.length;e<u;++e)(n=r[e]).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=ep(.1);return"function"!=typeof t&&(t=ep(null==t?0:+t)),n.initialize=function(t){r=t,e()},n.strength=function(t){return arguments.length?(u="function"==typeof t?t:ep(+t),e(),n):u},n.y=function(r){return arguments.length?(t="function"==typeof r?r:ep(+r),e(),n):t},n},t.formatDefaultLocale=$e,t.formatLocale=mp,t.formatSpecifier=He,t.precisionFixed=xp,t.precisionPrefix=bp,t.precisionRound=wp,t.geoArea=function(t){return kd.reset(),Md(t,Nd),2*kd},t.geoBounds=function(t){var n,e,r,i,o,u,a;if(Pp=zp=-(Ap=Cp=1/0),Dp=[],Md(t,Ed),e=Dp.length){for(Dp.sort(br),n=1,o=[r=Dp[0]];n<e;++n)wr(r,(i=Dp[n])[0])||wr(r,i[1])?(xr(r[0],i[1])>xr(r[0],r[1])&&(r[1]=i[1]),xr(i[0],r[1])>xr(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(u=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(a=xr(r[1],i[0]))>u&&(u=a,Ap=i[0],zp=r[1])}return Dp=Op=null,Ap===1/0||Cp===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ap,Cp],[zp,Pp]]},t.geoCentroid=function(t){Fp=Ip=Yp=Bp=jp=Hp=Xp=$p=Vp=Wp=Zp=0,Md(t,Ad);var n=Vp,e=Wp,r=Zp,i=n*n+e*e+r*r;return i<1e-12&&(n=Hp,e=Xp,r=$p,Ip<ed&&(n=Yp,e=Bp,r=jp),(i=n*n+e*e+r*r)<1e-12)?[NaN,NaN]:[ld(e,n)*ad,Ge(r/md(i))*ad]},t.geoCircle=function(){function t(){var t=r.apply(this,arguments),a=i.apply(this,arguments)*cd,c=o.apply(this,arguments)*cd;return n=[],e=Lr(-t[0]*cd,-t[1]*cd,0).invert,Or(u,a,c,1),t={type:"Polygon",coordinates:[n]},n=e=null,t}var n,e,r=Cd([0,0]),i=Cd(90),o=Cd(6),u={point:function(t,r){n.push(t=e(t,r)),t[0]*=ad,t[1]*=ad}};return t.center=function(n){return arguments.length?(r="function"==typeof n?n:Cd([+n[0],+n[1]]),t):r},t.radius=function(n){return arguments.length?(i="function"==typeof n?n:Cd(+n),t):i},t.precision=function(n){return arguments.length?(o="function"==typeof n?n:Cd(+n),t):o},t},t.geoClipExtent=function(){var t,n,e,r=0,i=0,o=960,u=500;return e={stream:function(e){return t&&n===e?t:t=Br(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]]}}},t.geoContains=function(t,n){return(t&&iv.hasOwnProperty(t.type)?iv[t.type]:$r)(t,n)},t.geoDistance=rv,t.geoGraticule=ti,t.geoGraticule10=function(){return ti()()},t.geoInterpolate=function(t,n){var e=t[0]*cd,r=t[1]*cd,i=n[0]*cd,o=n[1]*cd,u=hd(r),a=yd(r),c=hd(o),s=yd(o),f=u*hd(e),l=u*yd(e),h=c*hd(i),p=c*yd(i),d=2*Ge(md(Je(o-r)+u*c*Je(i-e))),v=yd(d),_=d?function(t){var n=yd(t*=d)/v,e=yd(d-t)/v,r=e*f+n*h,i=e*l+n*p,o=e*a+n*s;return[ld(i,r)*ad,ld(o,md(r*r+i*i))*ad]}:function(){return[e*ad,r*ad]};return _.distance=d,_},t.geoLength=tv,t.geoPath=function(t,n){function e(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),Md(t,r(i))),i.result()}var r,i,o=4.5;return e.area=function(t){return Md(t,r(sv)),sv.result()},e.measure=function(t){return Md(t,r(zv)),zv.result()},e.bounds=function(t){return Md(t,r(dv)),dv.result()},e.centroid=function(t){return Md(t,r(Tv)),Tv.result()},e.projection=function(n){return arguments.length?(r=null==n?(t=null,uv):(t=n).stream,e):t},e.context=function(t){return arguments.length?(i=null==t?(n=null,new yi):new di(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)},t.geoAlbers=Iv,t.geoAlbersUsa=function(){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=Iv(),s=Fv().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=Fv().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?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?f:c).invert(t)},t.stream=function(t){return e&&r===t?e:e=Ri([c.stream(r=t),s.stream(t),f.stream(t)])},t.precision=function(t){return arguments.length?(c.precision(t),s.precision(t),f.precision(t),n()):c.precision()},t.scale=function(n){return arguments.length?(c.scale(n),s.scale(.35*n),f.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=s.translate([r-.307*e,a+.201*e]).clipExtent([[r-.425*e+ed,a+.12*e+ed],[r-.214*e-ed,a+.234*e-ed]]).stream(l),u=f.translate([r-.205*e,a+.212*e]).clipExtent([[r-.214*e+ed,a+.166*e+ed],[r-.115*e-ed,a+.234*e-ed]]).stream(l),n()},t.fitExtent=function(n,e){return Ti(t,n,e)},t.fitSize=function(n,e){return ki(t,n,e)},t.scale(1070)},t.geoAzimuthalEqualArea=function(){return Ei(Yv).scale(124.75).clipAngle(179.999)},t.geoAzimuthalEqualAreaRaw=Yv,t.geoAzimuthalEquidistant=function(){return Ei(Bv).scale(79.4188).clipAngle(179.999)},t.geoAzimuthalEquidistantRaw=Bv,t.geoConicConformal=function(){return Ci(Fi).scale(109.5).parallels([30,30])},t.geoConicConformalRaw=Fi,t.geoConicEqualArea=Fv,t.geoConicEqualAreaRaw=Pi,t.geoConicEquidistant=function(){return Ci(Yi).scale(131.154).center([0,13.9389])},t.geoConicEquidistantRaw=Yi,t.geoEquirectangular=function(){return Ei(Ii).scale(152.63)},t.geoEquirectangularRaw=Ii,t.geoGnomonic=function(){return Ei(Bi).scale(144.049).clipAngle(60)},t.geoGnomonicRaw=Bi,t.geoIdentity=function(){function t(){return i=o=null,u}var n,e,r,i,o,u,a=1,c=0,s=0,f=1,l=1,h=uv,p=null,d=uv;return u={stream:function(t){return i&&o===t?i:i=h(d(o=t))},clipExtent:function(i){return arguments.length?(d=null==i?(p=n=e=r=null,uv):Br(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=ji((a=+n)*f,a*l,c,s),t()):a},translate:function(n){return arguments.length?(h=ji(a*f,a*l,c=+n[0],s=+n[1]),t()):[c,s]},reflectX:function(n){return arguments.length?(h=ji(a*(f=n?-1:1),a*l,c,s),t()):f<0},reflectY:function(n){return arguments.length?(h=ji(a*f,a*(l=n?-1:1),c,s),t()):l<0},fitExtent:function(t,n){return Ti(u,t,n)},fitSize:function(t,n){return ki(u,t,n)}}},t.geoProjection=Ei,t.geoProjectionMutator=Ai,t.geoMercator=function(){return Di(Ui).scale(961/ud)},t.geoMercatorRaw=Ui,t.geoOrthographic=function(){return Ei(Hi).scale(249.5).clipAngle(90+ed)},t.geoOrthographicRaw=Hi,t.geoStereographic=function(){return Ei(Xi).scale(250).clipAngle(142)},t.geoStereographicRaw=Xi,t.geoTransverseMercator=function(){var t=Di($i),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)},t.geoTransverseMercatorRaw=$i,t.geoRotation=jd,t.geoStream=Md,t.geoTransform=function(t){return{stream:wi(t)}},t.cluster=function(){function t(t){var o,u=0;t.eachAfter(function(t){var e=t.children;e?(t.x=Wi(e),t.y=Gi(e)):(t.x=o?u+=n(t,o):0,t.y=0,o=t)});var a=Qi(t),c=Ki(t),s=a.x-n(a,c)/2,f=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-s)/(f-s)*e,n.y=(1-(t.y?n.y/t.y:1))*r})}var n=Vi,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},t.hierarchy=eo,t.pack=function(){function t(t){return t.x=e/2,t.y=r/2,n?t.eachBefore(No(n)).eachAfter(So(i,.5)).eachBefore(Eo(1)):t.eachBefore(No(ko)).eachAfter(So(To,1)).eachAfter(So(i,t.r/Math.min(e,r))).eachBefore(Eo(Math.min(e,r)/(2*t.r))),t}var n=null,e=1,r=1,i=To;return t.radius=function(e){return arguments.length?(n=wo(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:Xv(+n),t):i},t},t.packSiblings=function(t){return bo(t),t},t.packEnclose=Hv,t.partition=function(){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($v),t}function n(t,n){return function(e){e.children&&Vv(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},t.stratify=function(){function t(t){var r,i,o,u,a,c,s,f=t.length,l=new Array(f),h={};for(i=0;i<f;++i)r=t[i],a=l[i]=new uo(r),null!=(c=n(r,i,t))&&(c+="")&&(h[s=Wv+(a.id=c)]=s in h?Gv:a);for(i=0;i<f;++i)if(a=l[i],null!=(c=e(t[i],i,t))&&(c+="")){if(!(u=h[Wv+c]))throw new Error("missing: "+c);if(u===Gv)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=Zv,o.eachBefore(function(t){t.depth=t.parent.depth+1,--f}).eachBefore(oo),o.parent=null,f>0)throw new Error("cycle");return o}var n=Ao,e=Co;return t.id=function(e){return arguments.length?(n=Mo(e),t):n},t.parentId=function(n){return arguments.length?(e=Mo(n),t):e},t},t.tree=function(){function t(t){var r=Oo(t);if(r.eachAfter(n),r.parent.m=-r.z,r.eachBefore(e),c)t.eachBefore(i);else{var s=t,f=t,l=t;t.eachBefore(function(t){t.x<s.x&&(s=t),t.x>f.x&&(f=t),t.depth>l.depth&&(l=t)});var h=s===f?1:o(s,f)/2,p=h-s.x,d=u/(f.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){qo(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],s=i.m,f=u.m,l=a.m,h=c.m;a=Ro(a),i=Po(i),a&&i;)c=Po(c),(u=Ro(u)).a=t,(r=a.z+l-i.z-s+o(a._,i._))>0&&(Lo(Uo(a,t,e),t,r),s+=r,f+=r),l+=a.m,s+=i.m,h+=c.m,f+=u.m;a&&!Ro(u)&&(u.t=a,u.m+=l-f),i&&!Po(c)&&(c.t=i,c.m+=s-h,e=t)}return e}function i(t){t.x*=u,t.y=t.depth*a}var o=zo,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},t.treemap=function(){function t(t){return t.x0=t.y0=0,t.x1=i,t.y1=o,t.eachBefore(n),u=[0],r&&t.eachBefore($v),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-=s(t)-n,h-=f(t)-n,o<r&&(r=o=(r+o)/2),h<i&&(i=h=(i+h)/2),e(t,r,i,o,h))}var e=Kv,r=!1,i=1,o=1,u=[0],a=To,c=To,s=To,f=To,l=To;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=Mo(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:Xv(+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:Xv(+n),t):c},t.paddingRight=function(n){return arguments.length?(s="function"==typeof n?n:Xv(+n),t):s},t.paddingBottom=function(n){return arguments.length?(f="function"==typeof n?n:Xv(+n),t):f},t.paddingLeft=function(n){return arguments.length?(l="function"==typeof n?n:Xv(+n),t):l},t},t.treemapBinary=function(t,n,e,r,i){function o(t,n,e,r,i,u,a){if(t>=n-1){var s=c[t];return s.x0=r,s.y0=i,s.x1=u,void(s.y1=a)}for(var l=f[t],h=e/2+l,p=t+1,d=n-1;p<d;){var v=p+d>>>1;f[v]<h?p=v+1:d=v}h-f[p-1]<f[p]-h&&t+1<p&&--p;var _=f[p]-l,y=e-_;if(u-r>a-i){var g=(r*y+u*_)/e;o(t,p,_,r,i,g,a),o(p,n,y,g,i,u,a)}else{var m=(i*y+a*_)/e;o(t,p,_,r,i,u,m),o(p,n,y,r,m,u,a)}}var u,a,c=t.children,s=c.length,f=new Array(s+1);for(f[0]=a=u=0;u<s;++u)f[u+1]=a+=c[u].value;o(0,s,t.value,n,e,r,i)},t.treemapDice=Vv,t.treemapSlice=Jv,t.treemapSliceDice=function(t,n,e,r,i){(1&t.depth?Jv:Vv)(t,n,e,r,i)},t.treemapSquarify=Kv,t.treemapResquarify=t_,t.interpolate=cl,t.interpolateArray=nl,t.interpolateBasis=Zf,t.interpolateBasisClosed=Gf,t.interpolateDate=el,t.interpolateNumber=rl,t.interpolateObject=il,t.interpolateRound=sl,t.interpolateString=al,t.interpolateTransformCss=pl,t.interpolateTransformSvg=dl,t.interpolateZoom=_l,t.interpolateRgb=Qf,t.interpolateRgbBasis=Kf,t.interpolateRgbBasisClosed=tl,t.interpolateHsl=yl,t.interpolateHslLong=gl,t.interpolateLab=function(t,n){var e=Kt((t=Ut(t)).l,(n=Ut(n)).l),r=Kt(t.a,n.a),i=Kt(t.b,n.b),o=Kt(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+""}},t.interpolateHcl=ml,t.interpolateHclLong=xl,t.interpolateCubehelix=bl,t.interpolateCubehelixLong=wl,t.quantize=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e},t.path=ve,t.polygonArea=function(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},t.polygonCentroid=function(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]},t.polygonHull=function(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(Io),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var o=Yo(r),u=Yo(i),a=u[0]===o[0],c=u[u.length-1]===o[o.length-1],s=[];for(n=o.length-1;n>=0;--n)s.push(t[r[o[n]][2]]);for(n=+a;n<u.length-c;++n)s.push(t[r[u[n]][2]]);return s},t.polygonContains=function(t,n){for(var e,r,i=t.length,o=t[i-1],u=n[0],a=n[1],c=o[0],s=o[1],f=!1,l=0;l<i;++l)e=(o=t[l])[0],(r=o[1])>a!=s>a&&u<(c-e)*(a-r)/(s-r)+e&&(f=!f),c=e,s=r;return f},t.polygonLength=function(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,n-=u=(o=t[r])[0],e-=a=o[1],c+=Math.sqrt(n*n+e*e);return c},t.quadtree=qe,t.queue=Wo,t.randomUniform=o_,t.randomNormal=u_,t.randomLogNormal=a_,t.randomBates=s_,t.randomIrwinHall=c_,t.randomExponential=f_,t.request=l_,t.html=p_,t.json=d_,t.text=v_,t.xml=__,t.csv=g_,t.tsv=m_,t.scaleBand=Ko,t.scalePoint=function(){return tu(Ko().paddingInner(1))},t.scaleIdentity=fu,t.scaleLinear=su,t.scaleLog=yu,t.scaleOrdinal=Qo,t.scaleImplicit=M_,t.scalePow=mu,t.scaleSqrt=function(){return mu().exponent(.5)},t.scaleQuantile=xu,t.scaleQuantize=bu,t.scaleThreshold=wu,t.scaleTime=function(){return Na(oy,ry,j_,Y_,F_,D_,q_,z_,t.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},t.scaleUtc=function(){return Na(Ay,Sy,py,ly,sy,ay,q_,z_,t.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},t.schemeCategory10=$y,t.schemeCategory20b=Vy,t.schemeCategory20c=Wy,t.schemeCategory20=Zy,t.interpolateCubehelixDefault=Gy,t.interpolateRainbow=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Ky.h=360*t-100,Ky.s=1.5-1.5*n,Ky.l=.8-.9*n,Ky+""},t.interpolateWarm=Jy,t.interpolateCool=Qy,t.interpolateViridis=tg,t.interpolateMagma=ng,t.interpolateInferno=eg,t.interpolatePlasma=rg,t.scaleSequential=Ea,t.creator=Hs,t.local=m,t.matcher=Zs,t.mouse=Ks,t.namespace=js,t.namespaces=Bs,t.select=cf,t.selectAll=function(t){return"string"==typeof t?new pt([document.querySelectorAll(t)],[document.documentElement]):new pt([null==t?[]:t],af)},t.selection=dt,t.selector=tf,t.selectorAll=nf,t.style=B,t.touch=sf,t.touches=function(t,n){null==n&&(n=Js().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=Qs(t,n[e]);return i},t.window=uf,t.customEvent=N,t.arc=function(){function t(){var t,s,f=+n.apply(this,arguments),l=+e.apply(this,arguments),h=o.apply(this,arguments)-dg,p=u.apply(this,arguments)-dg,d=og(p-h),v=p>h;if(c||(c=t=ve()),l<f&&(s=l,l=f,f=s),l>hg)if(d>vg-hg)c.moveTo(l*ag(h),l*fg(h)),c.arc(0,0,l,h,p,!v),f>hg&&(c.moveTo(f*ag(p),f*fg(p)),c.arc(0,0,f,p,h,v));else{var _,y,g=h,m=p,x=h,b=p,w=d,M=d,T=a.apply(this,arguments)/2,k=T>hg&&(i?+i.apply(this,arguments):lg(f*f+l*l)),N=sg(og(l-f)/2,+r.apply(this,arguments)),S=N,E=N;if(k>hg){var A=Ca(k/f*fg(T)),C=Ca(k/l*fg(T));(w-=2*A)>hg?(A*=v?1:-1,x+=A,b-=A):(w=0,x=b=(h+p)/2),(M-=2*C)>hg?(C*=v?1:-1,g+=C,m-=C):(M=0,g=m=(h+p)/2)}var z=l*ag(g),P=l*fg(g),R=f*ag(b),L=f*fg(b);if(N>hg){var q=l*ag(m),U=l*fg(m),D=f*ag(x),O=f*fg(x);if(d<pg){var F=w>hg?Ua(z,P,D,O,q,U,R,L):[R,L],I=z-F[0],Y=P-F[1],B=q-F[0],j=U-F[1],H=1/fg(Aa((I*B+Y*j)/(lg(I*I+Y*Y)*lg(B*B+j*j)))/2),X=lg(F[0]*F[0]+F[1]*F[1]);S=sg(N,(f-X)/(H-1)),E=sg(N,(l-X)/(H+1))}}M>hg?E>hg?(_=Da(D,O,z,P,l,E,v),y=Da(q,U,R,L,l,E,v),c.moveTo(_.cx+_.x01,_.cy+_.y01),E<N?c.arc(_.cx,_.cy,E,ug(_.y01,_.x01),ug(y.y01,y.x01),!v):(c.arc(_.cx,_.cy,E,ug(_.y01,_.x01),ug(_.y11,_.x11),!v),c.arc(0,0,l,ug(_.cy+_.y11,_.cx+_.x11),ug(y.cy+y.y11,y.cx+y.x11),!v),c.arc(y.cx,y.cy,E,ug(y.y11,y.x11),ug(y.y01,y.x01),!v))):(c.moveTo(z,P),c.arc(0,0,l,g,m,!v)):c.moveTo(z,P),f>hg&&w>hg?S>hg?(_=Da(R,L,q,U,f,-S,v),y=Da(z,P,D,O,f,-S,v),c.lineTo(_.cx+_.x01,_.cy+_.y01),S<N?c.arc(_.cx,_.cy,S,ug(_.y01,_.x01),ug(y.y01,y.x01),!v):(c.arc(_.cx,_.cy,S,ug(_.y01,_.x01),ug(_.y11,_.x11),!v),c.arc(0,0,f,ug(_.cy+_.y11,_.cx+_.x11),ug(y.cy+y.y11,y.cx+y.x11),v),c.arc(y.cx,y.cy,S,ug(y.y11,y.x11),ug(y.y01,y.x01),!v))):c.arc(0,0,f,b,x,v):c.lineTo(R,L)}else c.moveTo(0,0);if(c.closePath(),t)return c=null,t+""||null}var n=za,e=Pa,r=ig(0),i=null,o=Ra,u=La,a=qa,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-pg/2;return[ag(r)*t,fg(r)*t]},t.innerRadius=function(e){return arguments.length?(n="function"==typeof e?e:ig(+e),t):n},t.outerRadius=function(n){return arguments.length?(e="function"==typeof n?n:ig(+n),t):e},t.cornerRadius=function(n){return arguments.length?(r="function"==typeof n?n:ig(+n),t):r},t.padRadius=function(n){return arguments.length?(i=null==n?null:"function"==typeof n?n:ig(+n),t):i},t.startAngle=function(n){return arguments.length?(o="function"==typeof n?n:ig(+n),t):o},t.endAngle=function(n){return arguments.length?(u="function"==typeof n?n:ig(+n),t):u},t.padAngle=function(n){return arguments.length?(a="function"==typeof n?n:ig(+n),t):a},t.context=function(n){return arguments.length?(c=null==n?null:n,t):c},t},t.area=gg,t.line=yg,t.pie=function(){function t(t){var a,c,s,f,l,h=t.length,p=0,d=new Array(h),v=new Array(h),_=+i.apply(this,arguments),y=Math.min(vg,Math.max(-vg,o.apply(this,arguments)-_)),g=Math.min(Math.abs(y)/h,u.apply(this,arguments)),m=g*(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,s=p?(y-h*m)/p:0;a<h;++a,_=f)c=d[a],f=_+((l=v[c])>0?l*s:0)+m,v[c]={data:t[c],index:a,value:l,startAngle:_,endAngle:f,padAngle:g};return v}var n=xg,e=mg,r=null,i=ig(0),o=ig(vg),u=ig(0);return t.value=function(e){return arguments.length?(n="function"==typeof e?e:ig(+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:ig(+n),t):i},t.endAngle=function(n){return arguments.length?(o="function"==typeof n?n:ig(+n),t):o},t.padAngle=function(n){return arguments.length?(u="function"==typeof n?n:ig(+n),t):u},t},t.areaRadial=Mg,t.radialArea=Mg,t.lineRadial=wg,t.radialLine=wg,t.pointRadial=Tg,t.linkHorizontal=function(){return $a(Va)},t.linkVertical=function(){return $a(Wa)},t.linkRadial=function(){var t=$a(Za);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.symbol=function(){function t(){var t;if(r||(r=t=ve()),n.apply(this,arguments).draw(r,+e.apply(this,arguments)),t)return r=null,t+""||null}var n=ig(Ng),e=ig(64),r=null;return t.type=function(e){return arguments.length?(n="function"==typeof e?e:ig(e),t):n},t.size=function(n){return arguments.length?(e="function"==typeof n?n:ig(+n),t):e},t.context=function(n){return arguments.length?(r=null==n?null:n,t):r},t},t.symbols=jg,t.symbolCircle=Ng,t.symbolCross=Sg,t.symbolDiamond=Cg,t.symbolSquare=qg,t.symbolStar=Lg,t.symbolTriangle=Dg,t.symbolWye=Bg,t.curveBasisClosed=function(t){return new Qa(t)},t.curveBasisOpen=function(t){return new Ka(t)},t.curveBasis=function(t){return new Ja(t)},t.curveBundle=Xg,t.curveCardinalClosed=Vg,t.curveCardinalOpen=Wg,t.curveCardinal=$g,t.curveCatmullRomClosed=Gg,t.curveCatmullRomOpen=Jg,t.curveCatmullRom=Zg,t.curveLinearClosed=function(t){return new sc(t)},t.curveLinear=_g,t.curveMonotoneX=function(t){return new dc(t)},t.curveMonotoneY=function(t){return new vc(t)},t.curveNatural=function(t){return new yc(t)},t.curveStep=function(t){return new mc(t,.5)},t.curveStepAfter=function(t){return new mc(t,1)},t.curveStepBefore=function(t){return new mc(t,0)},t.stack=function(){function t(t){var o,u,a=n.apply(this,arguments),c=t.length,s=a.length,f=new Array(s);for(o=0;o<s;++o){for(var l,h=a[o],p=f[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(f);o<s;++o)f[u[o]].index=o;return r(f,u),f}var n=ig([]),e=Kg,r=Qg,i=xc;return t.keys=function(e){return arguments.length?(n="function"==typeof e?e:ig(kg.call(e)),t):n},t.value=function(n){return arguments.length?(i="function"==typeof n?n:ig(+n),t):i},t.order=function(n){return arguments.length?(e=null==n?Kg:"function"==typeof n?n:ig(kg.call(n)),t):e},t.offset=function(n){return arguments.length?(r=null==n?Qg:n,t):r},t},t.stackOffsetExpand=function(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}Qg(t,n)}},t.stackOffsetDiverging=function(t,n){if((a=t.length)>1)for(var e,r,i,o,u,a,c=0,s=t[n[0]].length;c<s;++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},t.stackOffsetNone=Qg,t.stackOffsetSilhouette=function(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}Qg(t,n)}},t.stackOffsetWiggle=function(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,s=0;a<i;++a){for(var f=t[n[a]],l=f[u][1]||0,h=(l-(f[u-1][1]||0))/2,p=0;p<a;++p){var d=t[n[p]];h+=(d[u][1]||0)-(d[u-1][1]||0)}c+=l,s+=h*l}e[u-1][1]+=e[u-1][0]=o,c&&(o-=s/c)}e[u-1][1]+=e[u-1][0]=o,Qg(t,n)}},t.stackOrderAscending=tm,t.stackOrderDescending=function(t){return tm(t).reverse()},t.stackOrderInsideOut=function(t){var n,e,r=t.length,i=t.map(bc),o=Kg(t).sort(function(t,n){return i[n]-i[t]}),u=0,a=0,c=[],s=[];for(n=0;n<r;++n)e=o[n],u<a?(u+=i[e],c.push(e)):(a+=i[e],s.push(e));return s.reverse().concat(c)},t.stackOrderNone=Kg,t.stackOrderReverse=function(t){return Kg(t).reverse()},t.timeInterval=Mu,t.timeMillisecond=z_,t.timeMilliseconds=P_,t.utcMillisecond=z_,t.utcMilliseconds=P_,t.timeSecond=q_,t.timeSeconds=U_,t.utcSecond=q_,t.utcSeconds=U_,t.timeMinute=D_,t.timeMinutes=O_,t.timeHour=F_,t.timeHours=I_,t.timeDay=Y_,t.timeDays=B_,t.timeWeek=j_,t.timeWeeks=G_,t.timeSunday=j_,t.timeSundays=G_,t.timeMonday=H_,t.timeMondays=J_,t.timeTuesday=X_,t.timeTuesdays=Q_,t.timeWednesday=$_,t.timeWednesdays=K_,t.timeThursday=V_,t.timeThursdays=ty,t.timeFriday=W_,t.timeFridays=ny,t.timeSaturday=Z_,t.timeSaturdays=ey,t.timeMonth=ry,t.timeMonths=iy,t.timeYear=oy,t.timeYears=uy,t.utcMinute=ay,t.utcMinutes=cy,t.utcHour=sy,t.utcHours=fy,t.utcDay=ly,t.utcDays=hy,t.utcWeek=py,t.utcWeeks=xy,t.utcSunday=py,t.utcSundays=xy,t.utcMonday=dy,t.utcMondays=by,t.utcTuesday=vy,t.utcTuesdays=wy,t.utcWednesday=_y,t.utcWednesdays=My,t.utcThursday=yy,t.utcThursdays=Ty,t.utcFriday=gy,t.utcFridays=ky,t.utcSaturday=my,t.utcSaturdays=Ny,t.utcMonth=Sy,t.utcMonths=Ey,t.utcYear=Ay,t.utcYears=zy,t.timeFormatDefaultLocale=Ma,t.timeFormatLocale=Au,t.isoFormat=Uy,t.isoParse=Dy,t.now=ln,t.timer=dn,t.timerFlush=vn,t.timeout=Pl,t.interval=function(t,n,e){var r=new pn,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?ln():+e,r.restart(function o(u){u+=i,r.restart(o,i+=n,e),t(u)},n,e),r)},t.transition=Jn,t.active=function(t,n){var e,r,i=t.__transition;if(i){n=null==n?null:n+"";for(r in i)if((e=i[r]).state>Ul&&e.name===n)return new Gn([[t]],yh,n,+r)}return null},t.interrupt=jl,t.voronoi=function(){function t(t){return new Kc(t.map(function(r,i){var o=[Math.round(n(r,i,t)/sm)*sm,Math.round(e(r,i,t)/sm)*sm];return o.index=i,o.data=r,o}),r)}var n=wc,e=Mc,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:nm(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:nm(+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},t.zoom=function(){function n(t){t.property("__zoom",us).on("wheel.zoom",s).on("mousedown.zoom",f).on("dblclick.zoom",l).filter(cs).on("touchstart.zoom",p).on("touchmove.zoom",d).on("touchend.zoom touchcancel.zoom",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(t,n){return(n=Math.max(b,Math.min(w,n)))===t.k?t:new ns(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 ns(t.k,r,i)}function i(t,n){var e=t.invertX(n[0][0])-M,r=t.invertX(n[1][0])-T,i=t.invertY(n[0][1])-k,o=t.invertY(n[1][1])-S;return t.translate(r>e?(e+r)/2:Math.min(0,e)||Math.max(0,r),o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o))}function o(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function u(t,n,e){t.on("start.zoom",function(){a(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){a(this,arguments).end()}).tween("zoom",function(){var t=this,r=arguments,i=a(t,r),u=m.apply(t,r),c=e||o(u),s=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,l="function"==typeof n?n.apply(t,r):n,h=A(f.invert(c).concat(s/f.k),l.invert(c).concat(s/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=s/n[2];t=new ns(e,c[0]-n[0]*e,c[1]-n[1]*e)}i.zoom(null,t)}})}function a(t,n){for(var e,r=0,i=C.length;r<i;++r)if((e=C[r]).that===t)return e;return new c(t,n)}function c(t,n){this.that=t,this.args=n,this.index=-1,this.active=0,this.extent=m.apply(t,n)}function s(){if(g.apply(this,arguments)){var t=a(this,arguments),n=this.__zoom,o=Math.max(b,Math.min(w,n.k*Math.pow(2,x.apply(this,arguments)))),u=Ks(this);if(t.wheel)t.mouse[0][0]===u[0]&&t.mouse[0][1]===u[1]||(t.mouse[1]=n.invert(t.mouse[0]=u)),clearTimeout(t.wheel);else{if(n.k===o)return;t.mouse=[u,n.invert(u)],jl(this),t.start()}pm(),t.wheel=setTimeout(function(){t.wheel=null,t.end()},R),t.zoom("mouse",i(r(e(n,o),t.mouse[0],t.mouse[1]),t.extent))}}function f(){if(!y&&g.apply(this,arguments)){var n=a(this,arguments),e=cf(t.event.view).on("mousemove.zoom",function(){if(pm(),!n.moved){var e=t.event.clientX-u,o=t.event.clientY-c;n.moved=e*e+o*o>L}n.zoom("mouse",i(r(n.that.__zoom,n.mouse[0]=Ks(n.that),n.mouse[1]),n.extent))},!0).on("mouseup.zoom",function(){e.on("mousemove.zoom mouseup.zoom",null),_t(t.event.view,n.moved),pm(),n.end()},!0),o=Ks(this),u=t.event.clientX,c=t.event.clientY;lf(t.event.view),rs(),n.mouse=[o,this.__zoom.invert(o)],jl(this),n.start()}}function l(){if(g.apply(this,arguments)){var o=this.__zoom,a=Ks(this),c=o.invert(a),s=i(r(e(o,o.k*(t.event.shiftKey?.5:2)),a,c),m.apply(this,arguments));pm(),E>0?cf(this).transition().duration(E).call(u,s,a):cf(this).call(n.transform,s)}}function p(){if(g.apply(this,arguments)){var n,e,r,i,o=a(this,arguments),u=t.event.changedTouches,c=u.length;for(rs(),e=0;e<c;++e)r=u[e],i=[i=sf(this,u,r.identifier),this.__zoom.invert(i),r.identifier],o.touch0?o.touch1||(o.touch1=i):(o.touch0=i,n=!0);if(_&&(_=clearTimeout(_),!o.touch1))return o.end(),void((i=cf(this).on("dblclick.zoom"))&&i.apply(this,arguments));n&&(_=setTimeout(function(){_=null},P),jl(this),o.start())}}function d(){var n,o,u,c,s=a(this,arguments),f=t.event.changedTouches,l=f.length;for(pm(),_&&(_=clearTimeout(_)),n=0;n<l;++n)o=f[n],u=sf(this,f,o.identifier),s.touch0&&s.touch0[2]===o.identifier?s.touch0[0]=u:s.touch1&&s.touch1[2]===o.identifier&&(s.touch1[0]=u);if(o=s.that.__zoom,s.touch1){var h=s.touch0[0],p=s.touch0[1],d=s.touch1[0],v=s.touch1[1],y=(y=d[0]-h[0])*y+(y=d[1]-h[1])*y,g=(g=v[0]-p[0])*g+(g=v[1]-p[1])*g;o=e(o,Math.sqrt(y/g)),u=[(h[0]+d[0])/2,(h[1]+d[1])/2],c=[(p[0]+v[0])/2,(p[1]+v[1])/2]}else{if(!s.touch0)return;u=s.touch0[0],c=s.touch0[1]}s.zoom("touch",i(r(o,u,c),s.extent))}function v(){var n,e,r=a(this,arguments),i=t.event.changedTouches,o=i.length;for(rs(),y&&clearTimeout(y),y=setTimeout(function(){y=null},P),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 _,y,g=is,m=os,x=as,b=0,w=1/0,M=-w,T=w,k=M,S=T,E=250,A=_l,C=[],z=h("start","zoom","end"),P=500,R=150,L=0;return n.transform=function(t,n){var e=t.selection?t.selection():t;e.property("__zoom",us),t!==e?u(t,n):e.interrupt().each(function(){a(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,u){n.transform(t,function(){var t=m.apply(this,arguments),n=this.__zoom,a=o(t),c=n.invert(a);return i(r(e(n,"function"==typeof u?u.apply(this,arguments):u),a,c),t)})},n.translateBy=function(t,e,r){n.transform(t,function(){return i(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof r?r.apply(this,arguments):r),m.apply(this,arguments))})},n.translateTo=function(t,e,r){n.transform(t,function(){var t=m.apply(this,arguments),n=this.__zoom,u=o(t);return i(hm.translate(u[0],u[1]).scale(n.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof r?-r.apply(this,arguments):-r),t)})},c.prototype={start:function(){return 1==++this.active&&(this.index=C.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&&(C.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(t){N(new ts(n,t,this.that.__zoom),z.apply,z,[t,this.that,this.args])}},n.wheelDelta=function(t){return arguments.length?(x="function"==typeof t?t:lm(+t),n):x},n.filter=function(t){return arguments.length?(g="function"==typeof t?t:lm(!!t),n):g},n.extent=function(t){return arguments.length?(m="function"==typeof t?t:lm([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),n):m},n.scaleExtent=function(t){return arguments.length?(b=+t[0],w=+t[1],n):[b,w]},n.translateExtent=function(t){return arguments.length?(M=+t[0][0],T=+t[1][0],k=+t[0][1],S=+t[1][1],n):[[M,k],[T,S]]},n.duration=function(t){return arguments.length?(E=+t,n):E},n.interpolate=function(t){return arguments.length?(A=t,n):A},n.on=function(){var t=z.on.apply(z,arguments);return t===z?n:t},n.clickDistance=function(t){return arguments.length?(L=(t=+t)*t,n):Math.sqrt(L)},n},t.zoomTransform=es,t.zoomIdentity=hm,Object.defineProperty(t,"__esModule",{value:!0})});
\ No newline at end of file
+// https://d3js.org Version 4.12.2. Copyright 2017 Mike Bostock.
+// THIS FILE IS MANUALLY MODIFIED - includes PR: https://github.com/d3/d3-request/pull/34/files
+!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?b(exports):"function"==typeof define&&define.amd?define(["exports"],b):b(a.d3=a.d3||{})}(this,function(a){"use strict";function b(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function c(a){return 1===a.length&&(a=d(a)),{left:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);d<e;){var f=d+e>>>1;a(b[f],c)<0?d=f+1:e=f}return d},right:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);d<e;){var f=d+e>>>1;a(b[f],c)>0?e=f:d=f+1}return d}}}function d(a){return function(c,d){return b(a(c),d)}}function e(a,b){null==b&&(b=f);for(var c=0,d=a.length-1,e=a[0],g=new Array(d<0?0:d);c<d;)g[c]=b(e,e=a[++c]);return g}function f(a,b){return[a,b]}function g(a,b,c){var d,e,g,h,i=a.length,j=b.length,k=new Array(i*j);for(null==c&&(c=f),d=g=0;d<i;++d)for(h=a[d],e=0;e<j;++e,++g)k[g]=c(h,b[e]);return k}function h(a,b){return b<a?-1:b>a?1:b>=a?0:NaN}function i(a){return null===a?NaN:+a}function j(a,b){var c,d,e=a.length,f=0,g=-1,h=0,j=0;if(null==b)for(;++g<e;)isNaN(c=i(a[g]))||(d=c-h,h+=d/++f,j+=d*(c-h));else for(;++g<e;)isNaN(c=i(b(a[g],g,a)))||(d=c-h,h+=d/++f,j+=d*(c-h));if(f>1)return j/(f-1)}function k(a,b){var c=j(a,b);return c?Math.sqrt(c):c}function l(a,b){var c,d,e,f=a.length,g=-1;if(null==b){for(;++g<f;)if(null!=(c=a[g])&&c>=c)for(d=e=c;++g<f;)null!=(c=a[g])&&(d>c&&(d=c),e<c&&(e=c))}else for(;++g<f;)if(null!=(c=b(a[g],g,a))&&c>=c)for(d=e=c;++g<f;)null!=(c=b(a[g],g,a))&&(d>c&&(d=c),e<c&&(e=c));return[d,e]}function m(a){return function(){return a}}function n(a){return a}function o(a,b,c){a=+a,b=+b,c=(e=arguments.length)<2?(b=a,a=0,1):e<3?1:+c;for(var d=-1,e=0|Math.max(0,Math.ceil((b-a)/c)),f=new Array(e);++d<e;)f[d]=a+d*c;return f}function p(a,b,c){var d,e,f,g=b<a,h=-1;if(g&&(d=a,a=b,b=d),0===(f=q(a,b,c))||!isFinite(f))return[];if(f>0)for(a=Math.ceil(a/f),b=Math.floor(b/f),e=new Array(d=Math.ceil(b-a+1));++h<d;)e[h]=(a+h)*f;else for(a=Math.floor(a*f),b=Math.ceil(b*f),e=new Array(d=Math.ceil(a-b+1));++h<d;)e[h]=(a-h)/f;return g&&e.reverse(),e}function q(a,b,c){var d=(b-a)/Math.max(0,c),e=Math.floor(Math.log(d)/Math.LN10),f=d/Math.pow(10,e);return e>=0?(f>=lC?10:f>=mC?5:f>=nC?2:1)*Math.pow(10,e):-Math.pow(10,-e)/(f>=lC?10:f>=mC?5:f>=nC?2:1)}function r(a,b,c){var d=Math.abs(b-a)/Math.max(0,c),e=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),f=d/e;return f>=lC?e*=10:f>=mC?e*=5:f>=nC&&(e*=2),b<a?-e:e}function s(a){return Math.ceil(Math.log(a.length)/Math.LN2)+1}function t(){function a(a){var e,f,g=a.length,h=new Array(g);for(e=0;e<g;++e)h[e]=b(a[e],e,a);var i=c(h),j=i[0],k=i[1],l=d(h,j,k);Array.isArray(l)||(l=r(j,k,l),l=o(Math.ceil(j/l)*l,Math.floor(k/l)*l,l));for(var m=l.length;l[0]<=j;)l.shift(),--m;for(;l[m-1]>k;)l.pop(),--m;var n,p=new Array(m+1);for(e=0;e<=m;++e)n=p[e]=[],n.x0=e>0?l[e-1]:j,n.x1=e<m?l[e]:k;for(e=0;e<g;++e)f=h[e],j<=f&&f<=k&&p[gC(l,f,0,m)].push(a[e]);return p}var b=n,c=l,d=s;return a.value=function(c){return arguments.length?(b="function"==typeof c?c:m(c),a):b},a.domain=function(b){return arguments.length?(c="function"==typeof b?b:m([b[0],b[1]]),a):c},a.thresholds=function(b){return arguments.length?(d="function"==typeof b?b:m(Array.isArray(b)?jC.call(b):b),a):d},a}function u(a,b,c){if(null==c&&(c=i),d=a.length){if((b=+b)<=0||d<2)return+c(a[0],0,a);if(b>=1)return+c(a[d-1],d-1,a);var d,e=(d-1)*b,f=Math.floor(e),g=+c(a[f],f,a),h=+c(a[f+1],f+1,a);return g+(h-g)*(e-f)}}function v(a,c,d){return a=kC.call(a,i).sort(b),Math.ceil((d-c)/(2*(u(a,.75)-u(a,.25))*Math.pow(a.length,-1/3)))}function w(a,b,c){return Math.ceil((c-b)/(3.5*k(a)*Math.pow(a.length,-1/3)))}function x(a,b){var c,d,e=a.length,f=-1;if(null==b){for(;++f<e;)if(null!=(c=a[f])&&c>=c)for(d=c;++f<e;)null!=(c=a[f])&&c>d&&(d=c)}else for(;++f<e;)if(null!=(c=b(a[f],f,a))&&c>=c)for(d=c;++f<e;)null!=(c=b(a[f],f,a))&&c>d&&(d=c);return d}function y(a,b){var c,d=a.length,e=d,f=-1,g=0;if(null==b)for(;++f<d;)isNaN(c=i(a[f]))?--e:g+=c;else for(;++f<d;)isNaN(c=i(b(a[f],f,a)))?--e:g+=c;if(e)return g/e}function z(a,c){var d,e=a.length,f=-1,g=[];if(null==c)for(;++f<e;)isNaN(d=i(a[f]))||g.push(d);else for(;++f<e;)isNaN(d=i(c(a[f],f,a)))||g.push(d);return u(g.sort(b),.5)}function A(a){for(var b,c,d,e=a.length,f=-1,g=0;++f<e;)g+=a[f].length;for(c=new Array(g);--e>=0;)for(d=a[e],b=d.length;--b>=0;)c[--g]=d[b];return c}function B(a,b){var c,d,e=a.length,f=-1;if(null==b){for(;++f<e;)if(null!=(c=a[f])&&c>=c)for(d=c;++f<e;)null!=(c=a[f])&&d>c&&(d=c)}else for(;++f<e;)if(null!=(c=b(a[f],f,a))&&c>=c)for(d=c;++f<e;)null!=(c=b(a[f],f,a))&&d>c&&(d=c);return d}function C(a,b){for(var c=b.length,d=new Array(c);c--;)d[c]=a[b[c]];return d}function D(a,c){if(d=a.length){var d,e,f=0,g=0,h=a[g];for(null==c&&(c=b);++f<d;)(c(e=a[f],h)<0||0!==c(h,h))&&(h=e,g=f);return 0===c(h,h)?g:void 0}}function E(a,b,c){for(var d,e,f=(null==c?a.length:c)-(b=null==b?0:+b);f;)e=Math.random()*f--|0,d=a[f+b],a[f+b]=a[e+b],a[e+b]=d;return a}function F(a,b){var c,d=a.length,e=-1,f=0;if(null==b)for(;++e<d;)(c=+a[e])&&(f+=c);else for(;++e<d;)(c=+b(a[e],e,a))&&(f+=c);return f}function G(a){if(!(e=a.length))return[];for(var b=-1,c=B(a,H),d=new Array(c);++b<c;)for(var e,f=-1,g=d[b]=new Array(e);++f<e;)g[f]=a[f][b];return d}function H(a){return a.length}function I(){return G(arguments)}function J(a){return a}function K(a){return"translate("+(a+.5)+",0)"}function L(a){return"translate(0,"+(a+.5)+")"}function M(a){return function(b){return+a(b)}}function N(a){var b=Math.max(0,a.bandwidth()-1)/2;return a.round()&&(b=Math.round(b)),function(c){return+a(c)+b}}function O(){return!this.__axis}function P(a,b){function c(c){var m=null==e?b.ticks?b.ticks.apply(b,d):b.domain():e,n=null==f?b.tickFormat?b.tickFormat.apply(b,d):J:f,o=Math.max(g,0)+i,p=b.range(),q=+p[0]+.5,r=+p[p.length-1]+.5,s=(b.bandwidth?N:M)(b.copy()),t=c.selection?c.selection():c,u=t.selectAll(".domain").data([null]),v=t.selectAll(".tick").data(m,b).order(),w=v.exit(),x=v.enter().append("g").attr("class","tick"),y=v.select("line"),z=v.select("text");u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),v=v.merge(x),y=y.merge(x.append("line").attr("stroke","#000").attr(k+"2",j*g)),z=z.merge(x.append("text").attr("fill","#000").attr(k,j*o).attr("dy",a===pC?"0em":a===rC?"0.71em":"0.32em")),c!==t&&(u=u.transition(c),v=v.transition(c),y=y.transition(c),z=z.transition(c),w=w.transition(c).attr("opacity",tC).attr("transform",function(a){return isFinite(a=s(a))?l(a):this.getAttribute("transform")}),x.attr("opacity",tC).attr("transform",function(a){var b=this.parentNode.__axis;return l(b&&isFinite(b=b(a))?b:s(a))})),w.remove(),u.attr("d",a===sC||a==qC?"M"+j*h+","+q+"H0.5V"+r+"H"+j*h:"M"+q+","+j*h+"V0.5H"+r+"V"+j*h),v.attr("opacity",1).attr("transform",function(a){return l(s(a))}),y.attr(k+"2",j*g),z.attr(k,j*o).text(n),t.filter(O).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",a===qC?"start":a===sC?"end":"middle"),t.each(function(){this.__axis=s})}var d=[],e=null,f=null,g=6,h=6,i=3,j=a===pC||a===sC?-1:1,k=a===sC||a===qC?"x":"y",l=a===pC||a===rC?K:L;return c.scale=function(a){return arguments.length?(b=a,c):b},c.ticks=function(){return d=oC.call(arguments),c},c.tickArguments=function(a){return arguments.length?(d=null==a?[]:oC.call(a),c):d.slice()},c.tickValues=function(a){return arguments.length?(e=null==a?null:oC.call(a),c):e&&e.slice()},c.tickFormat=function(a){return arguments.length?(f=a,c):f},c.tickSize=function(a){return arguments.length?(g=h=+a,c):g},c.tickSizeInner=function(a){return arguments.length?(g=+a,c):g},c.tickSizeOuter=function(a){return arguments.length?(h=+a,c):h},c.tickPadding=function(a){return arguments.length?(i=+a,c):i},c}function Q(a){return P(pC,a)}function R(a){return P(qC,a)}function S(a){return P(rC,a)}function T(a){return P(sC,a)}function U(){for(var a,b=0,c=arguments.length,d={};b<c;++b){if(!(a=arguments[b]+"")||a in d)throw new Error("illegal type: "+a);d[a]=[]}return new V(d)}function V(a){this._=a}function W(a,b){return a.trim().split(/^|\s+/).map(function(a){var c="",d=a.indexOf(".");if(d>=0&&(c=a.slice(d+1),a=a.slice(0,d)),a&&!b.hasOwnProperty(a))throw new Error("unknown type: "+a);return{type:a,name:c}})}function X(a,b){for(var c,d=0,e=a.length;d<e;++d)if((c=a[d]).name===b)return c.value}function Y(a,b,c){for(var d=0,e=a.length;d<e;++d)if(a[d].name===b){a[d]=uC,a=a.slice(0,d).concat(a.slice(d+1));break}return null!=c&&a.push({name:b,value:c}),a}function Z(a){var b=a+="",c=b.indexOf(":");return c>=0&&"xmlns"!==(b=a.slice(0,c))&&(a=a.slice(c+1)),wC.hasOwnProperty(b)?{space:wC[b],local:a}:a}function $(a){return function(){var b=this.ownerDocument,c=this.namespaceURI;return c===vC&&b.documentElement.namespaceURI===vC?b.createElement(a):b.createElementNS(c,a)}}function _(a){return function(){return this.ownerDocument.createElementNS(a.space,a.local)}}function aa(a){var b=Z(a);return(b.local?_:$)(b)}function ba(){}function ca(a){return null==a?ba:function(){return this.querySelector(a)}}function da(a){"function"!=typeof a&&(a=ca(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g,h=b[e],i=h.length,j=d[e]=new Array(i),k=0;k<i;++k)(f=h[k])&&(g=a.call(f,f.__data__,k,h))&&("__data__"in f&&(g.__data__=f.__data__),j[k]=g);return new Eb(d,this._parents)}function ea(){return[]}function fa(a){return null==a?ea:function(){return this.querySelectorAll(a)}}function ga(a){"function"!=typeof a&&(a=fa(a));for(var b=this._groups,c=b.length,d=[],e=[],f=0;f<c;++f)for(var g,h=b[f],i=h.length,j=0;j<i;++j)(g=h[j])&&(d.push(a.call(g,g.__data__,j,h)),e.push(g));return new Eb(d,e)}function ha(a){"function"!=typeof a&&(a=AC(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;j<h;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new Eb(d,this._parents)}function ia(a){return new Array(a.length)}function ja(){return new Eb(this._enter||this._groups.map(ia),this._parents)}function ka(a,b){this.ownerDocument=a.ownerDocument,this.namespaceURI=a.namespaceURI,this._next=null,this._parent=a,this.__data__=b}function la(a){return function(){return a}}function ma(a,b,c,d,e,f){for(var g,h=0,i=b.length,j=f.length;h<j;++h)(g=b[h])?(g.__data__=f[h],d[h]=g):c[h]=new ka(a,f[h]);for(;h<i;++h)(g=b[h])&&(e[h]=g)}function na(a,b,c,d,e,f,g){var h,i,j,k={},l=b.length,m=f.length,n=new Array(l);for(h=0;h<l;++h)(i=b[h])&&(n[h]=j=BC+g.call(i,i.__data__,h,b),j in k?e[h]=i:k[j]=i);for(h=0;h<m;++h)j=BC+g.call(a,f[h],h,f),(i=k[j])?(d[h]=i,i.__data__=f[h],k[j]=null):c[h]=new ka(a,f[h]);for(h=0;h<l;++h)(i=b[h])&&k[n[h]]===i&&(e[h]=i)}function oa(a,b){if(!a)return n=new Array(this.size()),j=-1,this.each(function(a){n[++j]=a}),n;var c=b?na:ma,d=this._parents,e=this._groups;"function"!=typeof a&&(a=la(a));for(var f=e.length,g=new Array(f),h=new Array(f),i=new Array(f),j=0;j<f;++j){var k=d[j],l=e[j],m=l.length,n=a.call(k,k&&k.__data__,j,d),o=n.length,p=h[j]=new Array(o),q=g[j]=new Array(o),r=i[j]=new Array(m);c(k,l,p,q,r,n,b);for(var s,t,u=0,v=0;u<o;++u)if(s=p[u]){for(u>=v&&(v=u+1);!(t=q[v])&&++v<o;);s._next=t||null}}return g=new Eb(g,d),g._enter=h,g._exit=i,g}function pa(){return new Eb(this._exit||this._groups.map(ia),this._parents)}function qa(a){for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;h<f;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;n<l;++n)(i=j[n]||k[n])&&(m[n]=i);for(;h<d;++h)g[h]=b[h];return new Eb(g,this._parents)}function ra(){for(var a=this._groups,b=-1,c=a.length;++b<c;)for(var d,e=a[b],f=e.length-1,g=e[f];--f>=0;)(d=e[f])&&(g&&g!==d.nextSibling&&g.parentNode.insertBefore(d,g),g=d);return this}function sa(a){function b(b,c){return b&&c?a(b.__data__,c.__data__):!b-!c}a||(a=ta);for(var c=this._groups,d=c.length,e=new Array(d),f=0;f<d;++f){for(var g,h=c[f],i=h.length,j=e[f]=new Array(i),k=0;k<i;++k)(g=h[k])&&(j[k]=g);j.sort(b)}return new Eb(e,this._parents).order()}function ta(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function ua(){var a=arguments[0];return arguments[0]=this,a.apply(null,arguments),this}function va(){var a=new Array(this.size()),b=-1;return this.each(function(){a[++b]=this}),a}function wa(){for(var a=this._groups,b=0,c=a.length;b<c;++b)for(var d=a[b],e=0,f=d.length;e<f;++e){var g=d[e];if(g)return g}return null}function xa(){var a=0;return this.each(function(){++a}),a}function ya(){return!this.node()}function za(a){for(var b=this._groups,c=0,d=b.length;c<d;++c)for(var e,f=b[c],g=0,h=f.length;g<h;++g)(e=f[g])&&a.call(e,e.__data__,g,f);return this}function Aa(a){return function(){this.removeAttribute(a)}}function Ba(a){return function(){this.removeAttributeNS(a.space,a.local)}}function Ca(a,b){return function(){this.setAttribute(a,b)}}function Da(a,b){return function(){this.setAttributeNS(a.space,a.local,b)}}function Ea(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttribute(a):this.setAttribute(a,c)}}function Fa(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,c)}}function Ga(a,b){var c=Z(a);if(arguments.length<2){var d=this.node();return c.local?d.getAttributeNS(c.space,c.local):d.getAttribute(c)}return this.each((null==b?c.local?Ba:Aa:"function"==typeof b?c.local?Fa:Ea:c.local?Da:Ca)(c,b))}function Ha(a){return a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView}function Ia(a){return function(){this.style.removeProperty(a)}}function Ja(a,b,c){return function(){this.style.setProperty(a,b,c)}}function Ka(a,b,c){return function(){var d=b.apply(this,arguments);null==d?this.style.removeProperty(a):this.style.setProperty(a,d,c)}}function La(a,b,c){return arguments.length>1?this.each((null==b?Ia:"function"==typeof b?Ka:Ja)(a,b,null==c?"":c)):Ma(this.node(),a)}function Ma(a,b){return a.style.getPropertyValue(b)||Ha(a).getComputedStyle(a,null).getPropertyValue(b)}function Na(a){return function(){delete this[a]}}function Oa(a,b){return function(){this[a]=b}}function Pa(a,b){return function(){var c=b.apply(this,arguments);null==c?delete this[a]:this[a]=c}}function Qa(a,b){return arguments.length>1?this.each((null==b?Na:"function"==typeof b?Pa:Oa)(a,b)):this.node()[a]}function Ra(a){return a.trim().split(/^|\s+/)}function Sa(a){return a.classList||new Ta(a)}function Ta(a){this._node=a,this._names=Ra(a.getAttribute("class")||"")}function Ua(a,b){for(var c=Sa(a),d=-1,e=b.length;++d<e;)c.add(b[d])}function Va(a,b){for(var c=Sa(a),d=-1,e=b.length;++d<e;)c.remove(b[d])}function Wa(a){return function(){Ua(this,a)}}function Xa(a){return function(){Va(this,a)}}function Ya(a,b){return function(){(b.apply(this,arguments)?Ua:Va)(this,a)}}function Za(a,b){var c=Ra(a+"");if(arguments.length<2){for(var d=Sa(this.node()),e=-1,f=c.length;++e<f;)if(!d.contains(c[e]))return!1;return!0}return this.each(("function"==typeof b?Ya:b?Wa:Xa)(c,b))}function $a(){this.textContent=""}function _a(a){return function(){this.textContent=a}}function ab(a){return function(){var b=a.apply(this,arguments);this.textContent=null==b?"":b}}function bb(a){return arguments.length?this.each(null==a?$a:("function"==typeof a?ab:_a)(a)):this.node().textContent}function cb(){this.innerHTML=""}function db(a){return function(){this.innerHTML=a}}function eb(a){return function(){var b=a.apply(this,arguments);this.innerHTML=null==b?"":b}}function fb(a){return arguments.length?this.each(null==a?cb:("function"==typeof a?eb:db)(a)):this.node().innerHTML}function gb(){this.nextSibling&&this.parentNode.appendChild(this)}function hb(){return this.each(gb)}function ib(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jb(){return this.each(ib)}function kb(a){var b="function"==typeof a?a:aa(a);return this.select(function(){return this.appendChild(b.apply(this,arguments))})}function lb(){return null}function mb(a,b){var c="function"==typeof a?a:aa(a),d=null==b?lb:"function"==typeof b?b:ca(b);return this.select(function(){return this.insertBefore(c.apply(this,arguments),d.apply(this,arguments)||null)})}function nb(){var a=this.parentNode;a&&a.removeChild(this)}function ob(){return this.each(nb)}function pb(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function qb(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function rb(a){return this.select(a?qb:pb)}function sb(a){return arguments.length?this.property("__data__",a):this.node().__data__}function tb(a,b,c){return a=ub(a,b,c),function(b){var c=b.relatedTarget;c&&(c===this||8&c.compareDocumentPosition(this))||a.call(this,b)}}function ub(a,b,c){return function(d){var e=DC;DC=d;try{a.call(this,this.__data__,b,c)}finally{DC=e}}}function vb(a){return a.trim().split(/^|\s+/).map(function(a){var b="",c=a.indexOf(".");return c>=0&&(b=a.slice(c+1),a=a.slice(0,c)),{type:a,name:b}})}function wb(a){return function(){var b=this.__on;if(b){for(var c,d=0,e=-1,f=b.length;d<f;++d)c=b[d],a.type&&c.type!==a.type||c.name!==a.name?b[++e]=c:this.removeEventListener(c.type,c.listener,c.capture);++e?b.length=e:delete this.__on}}}function xb(a,b,c){var d=CC.hasOwnProperty(a.type)?tb:ub;return function(e,f,g){var h,i=this.__on,j=d(b,f,g);if(i)for(var k=0,l=i.length;k<l;++k)if((h=i[k]).type===a.type&&h.name===a.name)return this.removeEventListener(h.type,h.listener,h.capture),this.addEventListener(h.type,h.listener=j,h.capture=c),void(h.value=b);this.addEventListener(a.type,j,c),h={type:a.type,name:a.name,value:b,listener:j,capture:c},i?i.push(h):this.__on=[h]}}function yb(a,b,c){var d,e,f=vb(a+""),g=f.length;{if(!(arguments.length<2)){for(h=b?xb:wb,null==c&&(c=!1),d=0;d<g;++d)this.each(h(f[d],b,c));return this}var h=this.node().__on;if(h)for(var i,j=0,k=h.length;j<k;++j)for(d=0,i=h[j];d<g;++d)if((e=f[d]).type===i.type&&e.name===i.name)return i.value}}function zb(a,b,c,d){var e=DC;a.sourceEvent=DC,DC=a;try{return b.apply(c,d)}finally{DC=e}}function Ab(a,b,c){var d=Ha(a),e=d.CustomEvent;"function"==typeof e?e=new e(b,c):(e=d.document.createEvent("Event"),c?(e.initEvent(b,c.bubbles,c.cancelable),e.detail=c.detail):e.initEvent(b,!1,!1)),a.dispatchEvent(e)}function Bb(a,b){return function(){return Ab(this,a,b)}}function Cb(a,b){return function(){return Ab(this,a,b.apply(this,arguments))}}function Db(a,b){return this.each(("function"==typeof b?Cb:Bb)(a,b))}function Eb(a,b){this._groups=a,this._parents=b}function Fb(){return new Eb([[document.documentElement]],FC)}function Gb(a){return"string"==typeof a?new Eb([[document.querySelector(a)]],[document.documentElement]):new Eb([[a]],FC)}function Hb(){for(var a,b=DC;a=b.sourceEvent;)b=a;return b}function Ib(a,b){var c=a.ownerSVGElement||a;if(c.createSVGPoint){var d=c.createSVGPoint();return d.x=b.clientX,d.y=b.clientY,d=d.matrixTransform(a.getScreenCTM().inverse()),[d.x,d.y]}var e=a.getBoundingClientRect();return[b.clientX-e.left-a.clientLeft,b.clientY-e.top-a.clientTop]}function Jb(a){var b=Hb();return b.changedTouches&&(b=b.changedTouches[0]),Ib(a,b)}function Kb(){DC.preventDefault(),DC.stopImmediatePropagation()}function Lb(a){var b=a.document.documentElement,c=Gb(a).on("dragstart.drag",Kb,!0);"onselectstart"in b?c.on("selectstart.drag",Kb,!0):(b.__noselect=b.style.MozUserSelect,b.style.MozUserSelect="none")}function Mb(a,b){var c=a.document.documentElement,d=Gb(a).on("dragstart.drag",null);b&&(d.on("click.drag",Kb,!0),setTimeout(function(){d.on("click.drag",null)},0)),"onselectstart"in c?d.on("selectstart.drag",null):(c.style.MozUserSelect=c.__noselect,delete c.__noselect)}function Nb(a,b,c){a.prototype=b.prototype=c,c.constructor=a}function Ob(a,b){var c=Object.create(a.prototype);for(var d in b)c[d]=b[d];return c}function Pb(){}function Qb(a){var b;return a=(a+"").trim().toLowerCase(),(b=LC.exec(a))?(b=parseInt(b[1],16),new Vb(b>>8&15|b>>4&240,b>>4&15|240&b,(15&b)<<4|15&b,1)):(b=MC.exec(a))?Rb(parseInt(b[1],16)):(b=NC.exec(a))?new Vb(b[1],b[2],b[3],1):(b=OC.exec(a))?new Vb(255*b[1]/100,255*b[2]/100,255*b[3]/100,1):(b=PC.exec(a))?Sb(b[1],b[2],b[3],b[4]):(b=QC.exec(a))?Sb(255*b[1]/100,255*b[2]/100,255*b[3]/100,b[4]):(b=RC.exec(a))?Wb(b[1],b[2]/100,b[3]/100,1):(b=SC.exec(a))?Wb(b[1],b[2]/100,b[3]/100,b[4]):TC.hasOwnProperty(a)?Rb(TC[a]):"transparent"===a?new Vb(NaN,NaN,NaN,0):null}function Rb(a){return new Vb(a>>16&255,a>>8&255,255&a,1)}function Sb(a,b,c,d){return d<=0&&(a=b=c=NaN),new Vb(a,b,c,d)}function Tb(a){return a instanceof Pb||(a=Qb(a)),a?(a=a.rgb(),new Vb(a.r,a.g,a.b,a.opacity)):new Vb}function Ub(a,b,c,d){return 1===arguments.length?Tb(a):new Vb(a,b,c,null==d?1:d)}function Vb(a,b,c,d){this.r=+a,this.g=+b,this.b=+c,this.opacity=+d}function Wb(a,b,c,d){return d<=0?a=b=c=NaN:c<=0||c>=1?a=b=NaN:b<=0&&(a=NaN),new Zb(a,b,c,d)}function Xb(a){if(a instanceof Zb)return new Zb(a.h,a.s,a.l,a.opacity);if(a instanceof Pb||(a=Qb(a)),!a)return new Zb;if(a instanceof Zb)return a;a=a.rgb();var b=a.r/255,c=a.g/255,d=a.b/255,e=Math.min(b,c,d),f=Math.max(b,c,d),g=NaN,h=f-e,i=(f+e)/2;return h?(g=b===f?(c-d)/h+6*(c<d):c===f?(d-b)/h+2:(b-c)/h+4,h/=i<.5?f+e:2-f-e,g*=60):h=i>0&&i<1?0:g,new Zb(g,h,i,a.opacity)}function Yb(a,b,c,d){return 1===arguments.length?Xb(a):new Zb(a,b,c,null==d?1:d)}function Zb(a,b,c,d){this.h=+a,this.s=+b,this.l=+c,this.opacity=+d}function $b(a,b,c){return 255*(a<60?b+(c-b)*a/60:a<180?c:a<240?b+(c-b)*(240-a)/60:b)}function _b(a){if(a instanceof bc)return new bc(a.l,a.a,a.b,a.opacity);if(a instanceof ic){var b=a.h*UC;return new bc(a.l,Math.cos(b)*a.c,Math.sin(b)*a.c,a.opacity)}a instanceof Vb||(a=Tb(a));var c=fc(a.r),d=fc(a.g),e=fc(a.b),f=cc((.4124564*c+.3575761*d+.1804375*e)/XC),g=cc((.2126729*c+.7151522*d+.072175*e)/YC),h=cc((.0193339*c+.119192*d+.9503041*e)/ZC);return new bc(116*g-16,500*(f-g),200*(g-h),a.opacity)}function ac(a,b,c,d){return 1===arguments.length?_b(a):new bc(a,b,c,null==d?1:d)}function bc(a,b,c,d){this.l=+a,this.a=+b,this.b=+c,this.opacity=+d}function cc(a){return a>bD?Math.pow(a,1/3):a/aD+$C}function dc(a){return a>_C?a*a*a:aD*(a-$C)}function ec(a){return 255*(a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055)}function fc(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function gc(a){if(a instanceof ic)return new ic(a.h,a.c,a.l,a.opacity);a instanceof bc||(a=_b(a));var b=Math.atan2(a.b,a.a)*VC;return new ic(b<0?b+360:b,Math.sqrt(a.a*a.a+a.b*a.b),a.l,a.opacity)}function hc(a,b,c,d){return 1===arguments.length?gc(a):new ic(a,b,c,null==d?1:d)}function ic(a,b,c,d){this.h=+a,this.c=+b,this.l=+c,this.opacity=+d}function jc(a){if(a instanceof lc)return new lc(a.h,a.s,a.l,a.opacity);a instanceof Vb||(a=Tb(a));var b=a.r/255,c=a.g/255,d=a.b/255,e=(jD*d+hD*b-iD*c)/(jD+hD-iD),f=d-e,g=(gD*(c-e)-eD*f)/fD,h=Math.sqrt(g*g+f*f)/(gD*e*(1-e)),i=h?Math.atan2(g,f)*VC-120:NaN;return new lc(i<0?i+360:i,h,e,a.opacity)}function kc(a,b,c,d){return 1===arguments.length?jc(a):new lc(a,b,c,null==d?1:d)}function lc(a,b,c,d){this.h=+a,this.s=+b,this.l=+c,this.opacity=+d}function mc(a){return function(){return a}}function nc(a,b){return function(c){return a+c*b}}function oc(a,b,c){return a=Math.pow(a,c),b=Math.pow(b,c)-a,c=1/c,function(d){return Math.pow(a+d*b,c)}}function pc(a){return 1===(a=+a)?qc:function(b,c){return c-b?oc(b,c,a):mc(isNaN(b)?c:b)}}function qc(a,b){var c=b-a;return c?nc(a,c):mc(isNaN(a)?b:a)}function rc(a,b){var c,d=b?b.length:0,e=a?Math.min(d,a.length):0,f=new Array(e),g=new Array(d);for(c=0;c<e;++c)f[c]=yc(a[c],b[c]);for(;c<d;++c)g[c]=b[c];return function(a){for(c=0;c<e;++c)g[c]=f[c](a);return g}}function sc(a,b){var c=new Date;return a=+a,b-=a,function(d){return c.setTime(a+b*d),c}}function tc(a,b){return a=+a,b-=a,function(c){return a+b*c}}function uc(a,b){var c,d={},e={};null!==a&&"object"==typeof a||(a={}),null!==b&&"object"==typeof b||(b={});for(c in b)c in a?d[c]=yc(a[c],b[c]):e[c]=b[c];return function(a){for(c in d)e[c]=d[c](a);return e}}function vc(a){return function(){return a}}function wc(a){return function(b){return a(b)+""}}function xc(a,b){var c,d,e,f=rD.lastIndex=sD.lastIndex=0,g=-1,h=[],i=[];for(a+="",b+="";(c=rD.exec(a))&&(d=sD.exec(b));)(e=d.index)>f&&(e=b.slice(f,e),h[g]?h[g]+=e:h[++g]=e),(c=c[0])===(d=d[0])?h[g]?h[g]+=d:h[++g]=d:(h[++g]=null,i.push({i:g,x:tc(c,d)})),f=sD.lastIndex;return f<b.length&&(e=b.slice(f),h[g]?h[g]+=e:h[++g]=e),h.length<2?i[0]?wc(i[0].x):vc(b):(b=i.length,function(a){for(var c,d=0;d<b;++d)h[(c=i[d]).i]=c.x(a);return h.join("")})}function yc(a,b){var c,d=typeof b;return null==b||"boolean"===d?mc(b):("number"===d?tc:"string"===d?(c=Qb(b))?(b=c,qD):xc:b instanceof Qb?qD:b instanceof Date?sc:Array.isArray(b)?rc:"function"!=typeof b.valueOf&&"function"!=typeof b.toString||isNaN(b)?uc:tc)(a,b)}function zc(a,b,c,d,e,f){var g,h,i;return(g=Math.sqrt(a*a+b*b))&&(a/=g,b/=g),(i=a*c+b*d)&&(c-=a*i,d-=b*i),(h=Math.sqrt(c*c+d*d))&&(c/=h,d/=h,i/=h),a*d<b*c&&(a=-a,b=-b,i=-i,g=-g),{translateX:e,translateY:f,rotate:Math.atan2(b,a)*tD,skewX:Math.atan(i)*tD,scaleX:g,scaleY:h}}function Ac(a){return"none"===a?uD:(kD||(kD=document.createElement("DIV"),lD=document.documentElement,mD=document.defaultView),kD.style.transform=a,a=mD.getComputedStyle(lD.appendChild(kD),null).getPropertyValue("transform"),lD.removeChild(kD),a=a.slice(7,-1).split(","),zc(+a[0],+a[1],+a[2],+a[3],+a[4],+a[5]))}function Bc(a){return null==a?uD:(nD||(nD=document.createElementNS("http://www.w3.org/2000/svg","g")),nD.setAttribute("transform",a),(a=nD.transform.baseVal.consolidate())?(a=a.matrix,zc(a.a,a.b,a.c,a.d,a.e,a.f)):uD)}function Cc(a,b,c,d){function e(a){return a.length?a.pop()+" ":""}function f(a,d,e,f,g,h){if(a!==e||d!==f){var i=g.push("translate(",null,b,null,c);h.push({i:i-4,x:tc(a,e)},{i:i-2,x:tc(d,f)})}else(e||f)&&g.push("translate("+e+b+f+c)}function g(a,b,c,f){a!==b?(a-b>180?b+=360:b-a>180&&(a+=360),f.push({i:c.push(e(c)+"rotate(",null,d)-2,x:tc(a,b)})):b&&c.push(e(c)+"rotate("+b+d)}function h(a,b,c,f){a!==b?f.push({i:c.push(e(c)+"skewX(",null,d)-2,x:tc(a,b)}):b&&c.push(e(c)+"skewX("+b+d)}function i(a,b,c,d,f,g){if(a!==c||b!==d){var h=f.push(e(f)+"scale(",null,",",null,")");g.push({i:h-4,x:tc(a,c)},{i:h-2,x:tc(b,d)})}else 1===c&&1===d||f.push(e(f)+"scale("+c+","+d+")")}return function(b,c){var d=[],e=[];return b=a(b),c=a(c),f(b.translateX,b.translateY,c.translateX,c.translateY,d,e),g(b.rotate,c.rotate,d,e),h(b.skewX,c.skewX,d,e),i(b.scaleX,b.scaleY,c.scaleX,c.scaleY,d,e),b=c=null,function(a){for(var b,c=-1,f=e.length;++c<f;)d[(b=e[c]).i]=b.x(a);return d.join("")}}}function Dc(){return CD||(FD(Ec),CD=ED.now()+DD)}function Ec(){CD=0}function Fc(){this._call=this._time=this._next=null}function Gc(a,b,c){var d=new Fc;return d.restart(a,b,c),d}function Hc(){Dc(),++xD;for(var a,b=oD;b;)(a=CD-b._time)>=0&&b._call.call(null,a),b=b._next;--xD}function Ic(){CD=(BD=ED.now())+DD,xD=yD=0;try{Hc()}finally{xD=0,Kc(),CD=0}}function Jc(){var a=ED.now(),b=a-BD;b>AD&&(DD-=b,BD=a)}function Kc(){for(var a,b,c=oD,d=1/0;c;)c._call?(d>c._time&&(d=c._time),a=c,c=c._next):(b=c._next,c._next=null,c=a?a._next=b:oD=b);pD=a,Lc(d)}function Lc(a){if(!xD){yD&&(yD=clearTimeout(yD));var b=a-CD;b>24?(a<1/0&&(yD=setTimeout(Ic,a-ED.now()-DD)),zD&&(zD=clearInterval(zD))):(zD||(BD=ED.now(),zD=setInterval(Jc,AD)),xD=1,FD(Ic))}}function Mc(a,b,c){var d=new Fc;return b=null==b?0:+b,d.restart(function(c){d.stop(),a(c+b)},b,c),d}function Nc(a,b,c,d,e,f){var g=a.__transition;if(g){if(c in g)return}else a.__transition={};Rc(a,c,{name:b,index:d,group:e,on:GD,tween:HD,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:ID})}function Oc(a,b){var c=Qc(a,b);if(c.state>ID)throw new Error("too late; already scheduled");return c}function Pc(a,b){var c=Qc(a,b);if(c.state>KD)throw new Error("too late; already started");return c}function Qc(a,b){var c=a.__transition;if(!c||!(c=c[b]))throw new Error("transition not found");return c}function Rc(a,b,c){function d(a){c.state=JD,c.timer.restart(e,c.delay,c.time),c.delay<=a&&e(a-c.delay)}function e(d){var j,k,l,m;if(c.state!==JD)return g();for(j in i)if(m=i[j],m.name===c.name){if(m.state===LD)return Mc(e);m.state===MD?(m.state=OD,m.timer.stop(),m.on.call("interrupt",a,a.__data__,m.index,m.group),delete i[j]):+j<b&&(m.state=OD,m.timer.stop(),delete i[j])}if(Mc(function(){c.state===LD&&(c.state=MD,c.timer.restart(f,c.delay,c.time),f(d))}),c.state=KD,c.on.call("start",a,a.__data__,c.index,c.group),c.state===KD){for(c.state=LD,h=new Array(l=c.tween.length),j=0,k=-1;j<l;++j)(m=c.tween[j].value.call(a,a.__data__,c.index,c.group))&&(h[++k]=m);h.length=k+1}}function f(b){for(var d=b<c.duration?c.ease.call(null,b/c.duration):(c.timer.restart(g),c.state=ND,1),e=-1,f=h.length;++e<f;)h[e].call(null,d);c.state===ND&&(c.on.call("end",a,a.__data__,c.index,c.group),g())}function g(){c.state=OD,c.timer.stop(),delete i[b];for(var d in i)return;delete a.__transition}var h,i=a.__transition;i[b]=c,c.timer=Gc(d,0,c.time)}function Sc(a,b){var c,d,e,f=a.__transition,g=!0;if(f){b=null==b?null:b+"";for(e in f)(c=f[e]).name===b?(d=c.state>KD&&c.state<ND,c.state=OD,c.timer.stop(),d&&c.on.call("interrupt",a,a.__data__,c.index,c.group),delete f[e]):g=!1;g&&delete a.__transition}}function Tc(a){return this.each(function(){Sc(this,a)})}function Uc(a,b){var c,d;return function(){var e=Pc(this,a),f=e.tween;if(f!==c){d=c=f;for(var g=0,h=d.length;g<h;++g)if(d[g].name===b){d=d.slice(),d.splice(g,1);break}}e.tween=d}}function Vc(a,b,c){var d,e;if("function"!=typeof c)throw new Error;return function(){var f=Pc(this,a),g=f.tween;if(g!==d){e=(d=g).slice();for(var h={name:b,value:c},i=0,j=e.length;i<j;++i)if(e[i].name===b){e[i]=h;break}i===j&&e.push(h)}f.tween=e}}function Wc(a,b){var c=this._id;if(a+="",arguments.length<2){for(var d,e=Qc(this.node(),c).tween,f=0,g=e.length;f<g;++f)if((d=e[f]).name===a)return d.value;return null}return this.each((null==b?Uc:Vc)(c,a,b))}function Xc(a,b,c){var d=a._id;return a.each(function(){var a=Pc(this,d);(a.value||(a.value={}))[b]=c.apply(this,arguments)}),function(a){return Qc(a,d).value[b]}}function Yc(a,b){var c;return("number"==typeof b?tc:b instanceof Qb?qD:(c=Qb(b))?(b=c,qD):xc)(a,b)}function Zc(a){return function(){this.removeAttribute(a)}}function $c(a){return function(){this.removeAttributeNS(a.space,a.local)}}function _c(a,b,c){var d,e;return function(){var f=this.getAttribute(a);return f===c?null:f===d?e:e=b(d=f,c)}}function ad(a,b,c){var d,e;return function(){var f=this.getAttributeNS(a.space,a.local);return f===c?null:f===d?e:e=b(d=f,c)}}function bd(a,b,c){var d,e,f;return function(){var g,h=c(this);return null==h?void this.removeAttribute(a):(g=this.getAttribute(a),g===h?null:g===d&&h===e?f:f=b(d=g,e=h))}}function cd(a,b,c){var d,e,f;return function(){var g,h=c(this);return null==h?void this.removeAttributeNS(a.space,a.local):(g=this.getAttributeNS(a.space,a.local),g===h?null:g===d&&h===e?f:f=b(d=g,e=h))}}function dd(a,b){var c=Z(a),d="transform"===c?wD:Yc;return this.attrTween(a,"function"==typeof b?(c.local?cd:bd)(c,d,Xc(this,"attr."+a,b)):null==b?(c.local?$c:Zc)(c):(c.local?ad:_c)(c,d,b+""))}function ed(a,b){function c(){var c=this,d=b.apply(c,arguments);return d&&function(b){c.setAttributeNS(a.space,a.local,d(b))}}return c._value=b,c}function fd(a,b){function c(){var c=this,d=b.apply(c,arguments);return d&&function(b){c.setAttribute(a,d(b))}}return c._value=b,c}function gd(a,b){var c="attr."+a;if(arguments.length<2)return(c=this.tween(c))&&c._value;if(null==b)return this.tween(c,null);if("function"!=typeof b)throw new Error;var d=Z(a);return this.tween(c,(d.local?ed:fd)(d,b))}function hd(a,b){return function(){Oc(this,a).delay=+b.apply(this,arguments)}}function id(a,b){return b=+b,function(){Oc(this,a).delay=b}}function jd(a){var b=this._id;return arguments.length?this.each(("function"==typeof a?hd:id)(b,a)):Qc(this.node(),b).delay}function kd(a,b){return function(){Pc(this,a).duration=+b.apply(this,arguments)}}function ld(a,b){return b=+b,function(){Pc(this,a).duration=b}}function md(a){var b=this._id;return arguments.length?this.each(("function"==typeof a?kd:ld)(b,a)):Qc(this.node(),b).duration}function nd(a,b){if("function"!=typeof b)throw new Error;return function(){
+Pc(this,a).ease=b}}function od(a){var b=this._id;return arguments.length?this.each(nd(b,a)):Qc(this.node(),b).ease}function pd(a){"function"!=typeof a&&(a=AC(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;j<h;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new Kd(d,this._parents,this._name,this._id)}function qd(a){if(a._id!==this._id)throw new Error;for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;h<f;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;n<l;++n)(i=j[n]||k[n])&&(m[n]=i);for(;h<d;++h)g[h]=b[h];return new Kd(g,this._parents,this._name,this._id)}function rd(a){return(a+"").trim().split(/^|\s+/).every(function(a){var b=a.indexOf(".");return b>=0&&(a=a.slice(0,b)),!a||"start"===a})}function sd(a,b,c){var d,e,f=rd(b)?Oc:Pc;return function(){var g=f(this,a),h=g.on;h!==d&&(e=(d=h).copy()).on(b,c),g.on=e}}function td(a,b){var c=this._id;return arguments.length<2?Qc(this.node(),c).on.on(a):this.each(sd(c,a,b))}function ud(a){return function(){var b=this.parentNode;for(var c in this.__transition)if(+c!==a)return;b&&b.removeChild(this)}}function vd(){return this.on("end.remove",ud(this._id))}function wd(a){var b=this._name,c=this._id;"function"!=typeof a&&(a=ca(a));for(var d=this._groups,e=d.length,f=new Array(e),g=0;g<e;++g)for(var h,i,j=d[g],k=j.length,l=f[g]=new Array(k),m=0;m<k;++m)(h=j[m])&&(i=a.call(h,h.__data__,m,j))&&("__data__"in h&&(i.__data__=h.__data__),l[m]=i,Nc(l[m],b,c,m,l,Qc(h,c)));return new Kd(f,this._parents,b,c)}function xd(a){var b=this._name,c=this._id;"function"!=typeof a&&(a=fa(a));for(var d=this._groups,e=d.length,f=[],g=[],h=0;h<e;++h)for(var i,j=d[h],k=j.length,l=0;l<k;++l)if(i=j[l]){for(var m,n=a.call(i,i.__data__,l,j),o=Qc(i,c),p=0,q=n.length;p<q;++p)(m=n[p])&&Nc(m,b,c,p,n,o);f.push(n),g.push(i)}return new Kd(f,g,b,c)}function yd(){return new PD(this._groups,this._parents)}function zd(a,b){var c,d,e;return function(){var f=Ma(this,a),g=(this.style.removeProperty(a),Ma(this,a));return f===g?null:f===c&&g===d?e:e=b(c=f,d=g)}}function Ad(a){return function(){this.style.removeProperty(a)}}function Bd(a,b,c){var d,e;return function(){var f=Ma(this,a);return f===c?null:f===d?e:e=b(d=f,c)}}function Cd(a,b,c){var d,e,f;return function(){var g=Ma(this,a),h=c(this);return null==h&&(this.style.removeProperty(a),h=Ma(this,a)),g===h?null:g===d&&h===e?f:f=b(d=g,e=h)}}function Dd(a,b,c){var d="transform"==(a+="")?vD:Yc;return null==b?this.styleTween(a,zd(a,d)).on("end.style."+a,Ad(a)):this.styleTween(a,"function"==typeof b?Cd(a,d,Xc(this,"style."+a,b)):Bd(a,d,b+""),c)}function Ed(a,b,c){function d(){var d=this,e=b.apply(d,arguments);return e&&function(b){d.style.setProperty(a,e(b),c)}}return d._value=b,d}function Fd(a,b,c){var d="style."+(a+="");if(arguments.length<2)return(d=this.tween(d))&&d._value;if(null==b)return this.tween(d,null);if("function"!=typeof b)throw new Error;return this.tween(d,Ed(a,b,null==c?"":c))}function Gd(a){return function(){this.textContent=a}}function Hd(a){return function(){var b=a(this);this.textContent=null==b?"":b}}function Id(a){return this.tween("text","function"==typeof a?Hd(Xc(this,"text",a)):Gd(null==a?"":a+""))}function Jd(){for(var a=this._name,b=this._id,c=Md(),d=this._groups,e=d.length,f=0;f<e;++f)for(var g,h=d[f],i=h.length,j=0;j<i;++j)if(g=h[j]){var k=Qc(g,b);Nc(g,a,c,j,h,{time:k.time+k.delay+k.duration,delay:0,duration:k.duration,ease:k.ease})}return new Kd(d,this._parents,a,c)}function Kd(a,b,c,d){this._groups=a,this._parents=b,this._name=c,this._id=d}function Ld(a){return Fb().transition(a)}function Md(){return++QD}function Nd(a){return+a}function Od(a){return a*a}function Pd(a){return a*(2-a)}function Qd(a){return((a*=2)<=1?a*a:--a*(2-a)+1)/2}function Rd(a){return a*a*a}function Sd(a){return--a*a*a+1}function Td(a){return((a*=2)<=1?a*a*a:(a-=2)*a*a+2)/2}function Ud(a){return 1-Math.cos(a*XD)}function Vd(a){return Math.sin(a*XD)}function Wd(a){return(1-Math.cos(WD*a))/2}function Xd(a){return Math.pow(2,10*a-10)}function Yd(a){return 1-Math.pow(2,-10*a)}function Zd(a){return((a*=2)<=1?Math.pow(2,10*a-10):2-Math.pow(2,10-10*a))/2}function $d(a){return 1-Math.sqrt(1-a*a)}function _d(a){return Math.sqrt(1- --a*a)}function ae(a){return((a*=2)<=1?1-Math.sqrt(1-a*a):Math.sqrt(1-(a-=2)*a)+1)/2}function be(a){return 1-ce(1-a)}function ce(a){return(a=+a)<YD?fE*a*a:a<$D?fE*(a-=ZD)*a+_D:a<bE?fE*(a-=aE)*a+cE:fE*(a-=dE)*a+eE}function de(a){return((a*=2)<=1?1-ce(1-a):ce(a-1)+1)/2}function ee(a,b){for(var c;!(c=a.__transition)||!(c=c[b]);)if(!(a=a.parentNode))return qE.time=Dc(),qE;return c}function fe(a){var b,c;a instanceof Kd?(b=a._id,a=a._name):(b=Md(),(c=qE).time=Dc(),a=null==a?null:a+"");for(var d=this._groups,e=d.length,f=0;f<e;++f)for(var g,h=d[f],i=h.length,j=0;j<i;++j)(g=h[j])&&Nc(g,a,b,j,h,c||ee(g,b));return new Kd(d,this._parents,a,b)}function ge(a){return function(){return a}}function he(a,b,c){this.target=a,this.type=b,this.selection=c}function ie(){DC.stopImmediatePropagation()}function je(){DC.preventDefault(),DC.stopImmediatePropagation()}function ke(a){return{type:a}}function le(){return!DC.button}function me(){var a=this.ownerSVGElement||this;return[[0,0],[a.width.baseVal.value,a.height.baseVal.value]]}function ne(a){for(;!a.__brush;)if(!(a=a.parentNode))return;return a.__brush}function oe(a){return a[0][0]===a[1][0]||a[0][1]===a[1][1]}function pe(a){var b=a.__brush;return b?b.dim.output(b.selection):null}function qe(){return te(vE)}function re(){return te(wE)}function se(){return te(xE)}function te(a){function b(b){var d=b.property("__brush",g).selectAll(".overlay").data([ke("overlay")]);d.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yE.overlay).merge(d).each(function(){var a=ne(this).extent;Gb(this).attr("x",a[0][0]).attr("y",a[0][1]).attr("width",a[1][0]-a[0][0]).attr("height",a[1][1]-a[0][1])}),b.selectAll(".selection").data([ke("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yE.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var e=b.selectAll(".handle").data(a.handles,function(a){return a.type});e.exit().remove(),e.enter().append("rect").attr("class",function(a){return"handle handle--"+a.type}).attr("cursor",function(a){return yE[a.type]}),b.each(c).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",f)}function c(){var a=Gb(this),b=ne(this).selection;b?(a.selectAll(".selection").style("display",null).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1]),a.selectAll(".handle").style("display",null).attr("x",function(a){return"e"===a.type[a.type.length-1]?b[1][0]-l/2:b[0][0]-l/2}).attr("y",function(a){return"s"===a.type[0]?b[1][1]-l/2:b[0][1]-l/2}).attr("width",function(a){return"n"===a.type||"s"===a.type?b[1][0]-b[0][0]+l:l}).attr("height",function(a){return"e"===a.type||"w"===a.type?b[1][1]-b[0][1]+l:l})):a.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function d(a,b){return a.__brush.emitter||new e(a,b)}function e(a,b){this.that=a,this.args=b,this.state=a.__brush,this.active=0}function f(){function b(){var a=Jb(x);!J||v||w||(Math.abs(a[0]-L[0])>Math.abs(a[1]-L[1])?w=!0:v=!0),L=a,u=!0,je(),e()}function e(){var a;switch(s=L[0]-K[0],t=L[1]-K[1],z){case sE:case rE:A&&(s=Math.max(F-k,Math.min(H-o,s)),l=k+s,p=o+s),B&&(t=Math.max(G-m,Math.min(I-q,t)),n=m+t,r=q+t);break;case tE:A<0?(s=Math.max(F-k,Math.min(H-k,s)),l=k+s,p=o):A>0&&(s=Math.max(F-o,Math.min(H-o,s)),l=k,p=o+s),B<0?(t=Math.max(G-m,Math.min(I-m,t)),n=m+t,r=q):B>0&&(t=Math.max(G-q,Math.min(I-q,t)),n=m,r=q+t);break;case uE:A&&(l=Math.max(F,Math.min(H,k-s*A)),p=Math.max(F,Math.min(H,o+s*A))),B&&(n=Math.max(G,Math.min(I,m-t*B)),r=Math.max(G,Math.min(I,q+t*B)))}p<l&&(A*=-1,a=k,k=o,o=a,a=l,l=p,p=a,y in zE&&O.attr("cursor",yE[y=zE[y]])),r<n&&(B*=-1,a=m,m=q,q=a,a=n,n=r,r=a,y in AE&&O.attr("cursor",yE[y=AE[y]])),C.selection&&(E=C.selection),v&&(l=E[0][0],p=E[1][0]),w&&(n=E[0][1],r=E[1][1]),E[0][0]===l&&E[0][1]===n&&E[1][0]===p&&E[1][1]===r||(C.selection=[[l,n],[p,r]],c.call(x),M.brush())}function f(){if(ie(),DC.touches){if(DC.touches.length)return;h&&clearTimeout(h),h=setTimeout(function(){h=null},500),N.on("touchmove.brush touchend.brush touchcancel.brush",null)}else Mb(DC.view,u),P.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);N.attr("pointer-events","all"),O.attr("cursor",yE.overlay),C.selection&&(E=C.selection),oe(E)&&(C.selection=null,c.call(x)),M.end()}function g(){switch(DC.keyCode){case 16:J=A&&B;break;case 18:z===tE&&(A&&(o=p-s*A,k=l+s*A),B&&(q=r-t*B,m=n+t*B),z=uE,e());break;case 32:z!==tE&&z!==uE||(A<0?o=p-s:A>0&&(k=l-s),B<0?q=r-t:B>0&&(m=n-t),z=sE,O.attr("cursor",yE.selection),e());break;default:return}je()}function i(){switch(DC.keyCode){case 16:J&&(v=w=J=!1,e());break;case 18:z===uE&&(A<0?o=p:A>0&&(k=l),B<0?q=r:B>0&&(m=n),z=tE,e());break;case 32:z===sE&&(DC.altKey?(A&&(o=p-s*A,k=l+s*A),B&&(q=r-t*B,m=n+t*B),z=uE):(A<0?o=p:A>0&&(k=l),B<0?q=r:B>0&&(m=n),z=tE),O.attr("cursor",yE[y]),e());break;default:return}je()}if(DC.touches){if(DC.changedTouches.length<DC.touches.length)return je()}else if(h)return;if(j.apply(this,arguments)){var k,l,m,n,o,p,q,r,s,t,u,v,w,x=this,y=DC.target.__data__.type,z="selection"===(DC.metaKey?y="overlay":y)?rE:DC.altKey?uE:tE,A=a===wE?null:BE[y],B=a===vE?null:CE[y],C=ne(x),D=C.extent,E=C.selection,F=D[0][0],G=D[0][1],H=D[1][0],I=D[1][1],J=A&&B&&DC.shiftKey,K=Jb(x),L=K,M=d(x,arguments).beforestart();"overlay"===y?C.selection=E=[[k=a===wE?F:K[0],m=a===vE?G:K[1]],[o=a===wE?H:k,q=a===vE?I:m]]:(k=E[0][0],m=E[0][1],o=E[1][0],q=E[1][1]),l=k,n=m,p=o,r=q;var N=Gb(x).attr("pointer-events","none"),O=N.selectAll(".overlay").attr("cursor",yE[y]);if(DC.touches)N.on("touchmove.brush",b,!0).on("touchend.brush touchcancel.brush",f,!0);else{var P=Gb(DC.view).on("keydown.brush",g,!0).on("keyup.brush",i,!0).on("mousemove.brush",b,!0).on("mouseup.brush",f,!0);Lb(DC.view)}ie(),Sc(x),c.call(x),M.start()}}function g(){var b=this.__brush||{selection:null};return b.extent=i.apply(this,arguments),b.dim=a,b}var h,i=me,j=le,k=U(b,"start","brush","end"),l=6;return b.move=function(b,e){b.selection?b.on("start.brush",function(){d(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){d(this,arguments).end()}).tween("brush",function(){function b(a){g.selection=1===a&&oe(j)?null:k(a),c.call(f),h.brush()}var f=this,g=f.__brush,h=d(f,arguments),i=g.selection,j=a.input("function"==typeof e?e.apply(this,arguments):e,g.extent),k=yc(i,j);return i&&j?b:b(1)}):b.each(function(){var b=this,f=arguments,g=b.__brush,h=a.input("function"==typeof e?e.apply(b,f):e,g.extent),i=d(b,f).beforestart();Sc(b),g.selection=null==h||oe(h)?null:h,c.call(b),i.start().brush().end()})},e.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(c){zb(new he(b,c,a.output(this.state.selection)),k.apply,k,[c,this.that,this.args])}},b.extent=function(a){return arguments.length?(i="function"==typeof a?a:ge([[+a[0][0],+a[0][1]],[+a[1][0],+a[1][1]]]),b):i},b.filter=function(a){return arguments.length?(j="function"==typeof a?a:ge(!!a),b):j},b.handleSize=function(a){return arguments.length?(l=+a,b):l},b.on=function(){var a=k.on.apply(k,arguments);return a===k?b:a},b}function ue(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function ve(a){return 1===a.length&&(a=we(a)),{left:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);d<e;){var f=d+e>>>1;a(b[f],c)<0?d=f+1:e=f}return d},right:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);d<e;){var f=d+e>>>1;a(b[f],c)>0?e=f:d=f+1}return d}}}function we(a){return function(b,c){return ue(a(b),c)}}function xe(a,b,c){a=+a,b=+b,c=(e=arguments.length)<2?(b=a,a=0,1):e<3?1:+c;for(var d=-1,e=0|Math.max(0,Math.ceil((b-a)/c)),f=new Array(e);++d<e;)f[d]=a+d*c;return f}function ye(a){return function(b,c){return a(b.source.value+b.target.value,c.source.value+c.target.value)}}function ze(){function a(a){var f,g,h,i,j,k,l=a.length,m=[],n=xe(l),o=[],p=[],q=p.groups=new Array(l),r=new Array(l*l);for(f=0,j=-1;++j<l;){for(g=0,k=-1;++k<l;)g+=a[j][k];m.push(g),o.push(xe(l)),f+=g}for(c&&n.sort(function(a,b){return c(m[a],m[b])}),d&&o.forEach(function(b,c){b.sort(function(b,e){return d(a[c][b],a[c][e])})}),f=IE(0,HE-b*l)/f,i=f?b:HE/l,g=0,j=-1;++j<l;){for(h=g,k=-1;++k<l;){var s=n[j],t=o[s][k],u=a[s][t],v=g,w=g+=u*f;r[t*l+s]={index:s,subindex:t,startAngle:v,endAngle:w,value:u}}q[s]={index:s,startAngle:h,endAngle:g,value:m[s]},g+=i}for(j=-1;++j<l;)for(k=j-1;++k<l;){var x=r[k*l+j],y=r[j*l+k];(x.value||y.value)&&p.push(x.value<y.value?{source:y,target:x}:{source:x,target:y})}return e?p.sort(e):p}var b=0,c=null,d=null,e=null;return a.padAngle=function(c){return arguments.length?(b=IE(0,c),a):b},a.sortGroups=function(b){return arguments.length?(c=b,a):c},a.sortSubgroups=function(b){return arguments.length?(d=b,a):d},a.sortChords=function(b){return arguments.length?(null==b?e=null:(e=ye(b))._=b,a):e&&e._},a}function Ae(a){return function(){return a}}function Be(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ce(){return new Be}function De(a){return a.source}function Ee(a){return a.target}function Fe(a){return a.radius}function Ge(a){return a.startAngle}function He(a){return a.endAngle}function Ie(){function a(){var a,h=JE.call(arguments),i=b.apply(this,h),j=c.apply(this,h),k=+d.apply(this,(h[0]=i,h)),l=e.apply(this,h)-GE,m=f.apply(this,h)-GE,n=k*DE(l),o=k*EE(l),p=+d.apply(this,(h[0]=j,h)),q=e.apply(this,h)-GE,r=f.apply(this,h)-GE;if(g||(g=a=Ce()),g.moveTo(n,o),g.arc(0,0,k,l,m),l===q&&m===r||(g.quadraticCurveTo(0,0,p*DE(q),p*EE(q)),g.arc(0,0,p,q,r)),g.quadraticCurveTo(0,0,n,o),g.closePath(),a)return g=null,a+""||null}var b=De,c=Ee,d=Fe,e=Ge,f=He,g=null;return a.radius=function(b){return arguments.length?(d="function"==typeof b?b:Ae(+b),a):d},a.startAngle=function(b){return arguments.length?(e="function"==typeof b?b:Ae(+b),a):e},a.endAngle=function(b){return arguments.length?(f="function"==typeof b?b:Ae(+b),a):f},a.source=function(c){return arguments.length?(b=c,a):b},a.target=function(b){return arguments.length?(c=b,a):c},a.context=function(b){return arguments.length?(g=null==b?null:b,a):g},a}function Je(){}function Ke(a,b){var c=new Je;if(a instanceof Je)a.each(function(a,b){c.set(b,a)});else if(Array.isArray(a)){var d,e=-1,f=a.length;if(null==b)for(;++e<f;)c.set(e,a[e]);else for(;++e<f;)c.set(b(d=a[e],e,a),d)}else if(a)for(var g in a)c.set(g,a[g]);return c}function Le(){function a(b,e,g,h){if(e>=f.length)return null!=c&&b.sort(c),null!=d?d(b):b;for(var i,j,k,l=-1,m=b.length,n=f[e++],o=Ke(),p=g();++l<m;)(k=o.get(i=n(j=b[l])+""))?k.push(j):o.set(i,[j]);return o.each(function(b,c){h(p,c,a(b,e,g,h))}),p}function b(a,c){if(++c>f.length)return a;var e,h=g[c-1];return null!=d&&c>=f.length?e=a.entries():(e=[],a.each(function(a,d){e.push({key:d,values:b(a,c)})})),null!=h?e.sort(function(a,b){return h(a.key,b.key)}):e}var c,d,e,f=[],g=[];return e={object:function(b){return a(b,0,Me,Ne)},map:function(b){return a(b,0,Oe,Pe)},entries:function(c){return b(a(c,0,Oe,Pe),0)},key:function(a){return f.push(a),e},sortKeys:function(a){return g[f.length-1]=a,e},sortValues:function(a){return c=a,e},rollup:function(a){return d=a,e}}}function Me(){return{}}function Ne(a,b,c){a[b]=c}function Oe(){return Ke()}function Pe(a,b,c){a.set(b,c)}function Qe(){}function Re(a,b){var c=new Qe;if(a instanceof Qe)a.each(function(a){c.add(a)});else if(a){var d=-1,e=a.length;if(null==b)for(;++d<e;)c.add(a[d]);else for(;++d<e;)c.add(b(a[d],d,a))}return c}function Se(a){var b=[];for(var c in a)b.push(c);return b}function Te(a){var b=[];for(var c in a)b.push(a[c]);return b}function Ue(a){var b=[];for(var c in a)b.push({key:c,value:a[c]});return b}function Ve(a){var b=a+="",c=b.indexOf(":");return c>=0&&"xmlns"!==(b=a.slice(0,c))&&(a=a.slice(c+1)),RE.hasOwnProperty(b)?{space:RE[b],local:a}:a}function We(a){return function(){var b=this.ownerDocument,c=this.namespaceURI;return c===QE&&b.documentElement.namespaceURI===QE?b.createElement(a):b.createElementNS(c,a)}}function Xe(a){return function(){return this.ownerDocument.createElementNS(a.space,a.local)}}function Ye(a){var b=Ve(a);return(b.local?Xe:We)(b)}function Ze(){}function $e(a){return null==a?Ze:function(){return this.querySelector(a)}}function _e(a){"function"!=typeof a&&(a=$e(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g,h=b[e],i=h.length,j=d[e]=new Array(i),k=0;k<i;++k)(f=h[k])&&(g=a.call(f,f.__data__,k,h))&&("__data__"in f&&(g.__data__=f.__data__),j[k]=g);return new Bg(d,this._parents)}function af(){return[]}function bf(a){return null==a?af:function(){return this.querySelectorAll(a)}}function cf(a){"function"!=typeof a&&(a=bf(a));for(var b=this._groups,c=b.length,d=[],e=[],f=0;f<c;++f)for(var g,h=b[f],i=h.length,j=0;j<i;++j)(g=h[j])&&(d.push(a.call(g,g.__data__,j,h)),e.push(g));return new Bg(d,e)}function df(a){"function"!=typeof a&&(a=VE(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;j<h;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new Bg(d,this._parents)}function ef(a){return new Array(a.length)}function ff(){return new Bg(this._enter||this._groups.map(ef),this._parents)}function gf(a,b){this.ownerDocument=a.ownerDocument,this.namespaceURI=a.namespaceURI,this._next=null,this._parent=a,this.__data__=b}function hf(a){return function(){return a}}function jf(a,b,c,d,e,f){for(var g,h=0,i=b.length,j=f.length;h<j;++h)(g=b[h])?(g.__data__=f[h],d[h]=g):c[h]=new gf(a,f[h]);for(;h<i;++h)(g=b[h])&&(e[h]=g)}function kf(a,b,c,d,e,f,g){var h,i,j,k={},l=b.length,m=f.length,n=new Array(l);for(h=0;h<l;++h)(i=b[h])&&(n[h]=j=WE+g.call(i,i.__data__,h,b),j in k?e[h]=i:k[j]=i);for(h=0;h<m;++h)j=WE+g.call(a,f[h],h,f),(i=k[j])?(d[h]=i,i.__data__=f[h],k[j]=null):c[h]=new gf(a,f[h]);for(h=0;h<l;++h)(i=b[h])&&k[n[h]]===i&&(e[h]=i)}function lf(a,b){if(!a)return n=new Array(this.size()),j=-1,this.each(function(a){n[++j]=a}),n;var c=b?kf:jf,d=this._parents,e=this._groups;"function"!=typeof a&&(a=hf(a));for(var f=e.length,g=new Array(f),h=new Array(f),i=new Array(f),j=0;j<f;++j){var k=d[j],l=e[j],m=l.length,n=a.call(k,k&&k.__data__,j,d),o=n.length,p=h[j]=new Array(o),q=g[j]=new Array(o),r=i[j]=new Array(m);c(k,l,p,q,r,n,b);for(var s,t,u=0,v=0;u<o;++u)if(s=p[u]){for(u>=v&&(v=u+1);!(t=q[v])&&++v<o;);s._next=t||null}}return g=new Bg(g,d),g._enter=h,g._exit=i,g}function mf(){return new Bg(this._exit||this._groups.map(ef),this._parents)}function nf(a){for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;h<f;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;n<l;++n)(i=j[n]||k[n])&&(m[n]=i);for(;h<d;++h)g[h]=b[h];return new Bg(g,this._parents)}function of(){for(var a=this._groups,b=-1,c=a.length;++b<c;)for(var d,e=a[b],f=e.length-1,g=e[f];--f>=0;)(d=e[f])&&(g&&g!==d.nextSibling&&g.parentNode.insertBefore(d,g),g=d);return this}function pf(a){function b(b,c){return b&&c?a(b.__data__,c.__data__):!b-!c}a||(a=qf);for(var c=this._groups,d=c.length,e=new Array(d),f=0;f<d;++f){for(var g,h=c[f],i=h.length,j=e[f]=new Array(i),k=0;k<i;++k)(g=h[k])&&(j[k]=g);j.sort(b)}return new Bg(e,this._parents).order()}function qf(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function rf(){var a=arguments[0];return arguments[0]=this,a.apply(null,arguments),this}function sf(){var a=new Array(this.size()),b=-1;return this.each(function(){a[++b]=this}),a}function tf(){for(var a=this._groups,b=0,c=a.length;b<c;++b)for(var d=a[b],e=0,f=d.length;e<f;++e){var g=d[e];if(g)return g}return null}function uf(){var a=0;return this.each(function(){++a}),a}function vf(){return!this.node()}function wf(a){for(var b=this._groups,c=0,d=b.length;c<d;++c)for(var e,f=b[c],g=0,h=f.length;g<h;++g)(e=f[g])&&a.call(e,e.__data__,g,f);return this}function xf(a){return function(){this.removeAttribute(a)}}function yf(a){return function(){this.removeAttributeNS(a.space,a.local)}}function zf(a,b){return function(){this.setAttribute(a,b)}}function Af(a,b){return function(){this.setAttributeNS(a.space,a.local,b)}}function Bf(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttribute(a):this.setAttribute(a,c)}}function Cf(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,c)}}function Df(a,b){var c=Ve(a);if(arguments.length<2){var d=this.node();return c.local?d.getAttributeNS(c.space,c.local):d.getAttribute(c)}return this.each((null==b?c.local?yf:xf:"function"==typeof b?c.local?Cf:Bf:c.local?Af:zf)(c,b))}function Ef(a){return a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView}function Ff(a){return function(){this.style.removeProperty(a)}}function Gf(a,b,c){return function(){this.style.setProperty(a,b,c)}}function Hf(a,b,c){return function(){var d=b.apply(this,arguments);null==d?this.style.removeProperty(a):this.style.setProperty(a,d,c)}}function If(a,b,c){return arguments.length>1?this.each((null==b?Ff:"function"==typeof b?Hf:Gf)(a,b,null==c?"":c)):Jf(this.node(),a)}function Jf(a,b){return a.style.getPropertyValue(b)||Ef(a).getComputedStyle(a,null).getPropertyValue(b)}function Kf(a){return function(){delete this[a]}}function Lf(a,b){return function(){this[a]=b}}function Mf(a,b){return function(){var c=b.apply(this,arguments);null==c?delete this[a]:this[a]=c}}function Nf(a,b){return arguments.length>1?this.each((null==b?Kf:"function"==typeof b?Mf:Lf)(a,b)):this.node()[a]}function Of(a){return a.trim().split(/^|\s+/)}function Pf(a){return a.classList||new Qf(a)}function Qf(a){this._node=a,this._names=Of(a.getAttribute("class")||"")}function Rf(a,b){for(var c=Pf(a),d=-1,e=b.length;++d<e;)c.add(b[d])}function Sf(a,b){for(var c=Pf(a),d=-1,e=b.length;++d<e;)c.remove(b[d])}function Tf(a){return function(){Rf(this,a)}}function Uf(a){return function(){Sf(this,a)}}function Vf(a,b){return function(){(b.apply(this,arguments)?Rf:Sf)(this,a)}}function Wf(a,b){var c=Of(a+"");if(arguments.length<2){for(var d=Pf(this.node()),e=-1,f=c.length;++e<f;)if(!d.contains(c[e]))return!1;return!0}return this.each(("function"==typeof b?Vf:b?Tf:Uf)(c,b))}function Xf(){this.textContent=""}function Yf(a){return function(){this.textContent=a}}function Zf(a){return function(){var b=a.apply(this,arguments);this.textContent=null==b?"":b}}function $f(a){return arguments.length?this.each(null==a?Xf:("function"==typeof a?Zf:Yf)(a)):this.node().textContent}function _f(){this.innerHTML=""}function ag(a){return function(){this.innerHTML=a}}function bg(a){return function(){var b=a.apply(this,arguments);this.innerHTML=null==b?"":b}}function cg(a){return arguments.length?this.each(null==a?_f:("function"==typeof a?bg:ag)(a)):this.node().innerHTML}function dg(){this.nextSibling&&this.parentNode.appendChild(this)}function eg(){return this.each(dg)}function fg(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gg(){return this.each(fg)}function hg(a){var b="function"==typeof a?a:Ye(a);return this.select(function(){return this.appendChild(b.apply(this,arguments))})}function ig(){return null}function jg(a,b){var c="function"==typeof a?a:Ye(a),d=null==b?ig:"function"==typeof b?b:$e(b);return this.select(function(){return this.insertBefore(c.apply(this,arguments),d.apply(this,arguments)||null)})}function kg(){var a=this.parentNode;a&&a.removeChild(this)}function lg(){return this.each(kg)}function mg(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function ng(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function og(a){return this.select(a?ng:mg)}function pg(a){return arguments.length?this.property("__data__",a):this.node().__data__}function qg(a,b,c){return a=rg(a,b,c),function(b){var c=b.relatedTarget;c&&(c===this||8&c.compareDocumentPosition(this))||a.call(this,b)}}function rg(a,b,c){return function(d){var e=YE;YE=d;try{a.call(this,this.__data__,b,c)}finally{YE=e}}}function sg(a){return a.trim().split(/^|\s+/).map(function(a){var b="",c=a.indexOf(".");return c>=0&&(b=a.slice(c+1),a=a.slice(0,c)),{type:a,name:b}})}function tg(a){return function(){var b=this.__on;if(b){for(var c,d=0,e=-1,f=b.length;d<f;++d)c=b[d],a.type&&c.type!==a.type||c.name!==a.name?b[++e]=c:this.removeEventListener(c.type,c.listener,c.capture);++e?b.length=e:delete this.__on}}}function ug(a,b,c){var d=XE.hasOwnProperty(a.type)?qg:rg;return function(e,f,g){var h,i=this.__on,j=d(b,f,g);if(i)for(var k=0,l=i.length;k<l;++k)if((h=i[k]).type===a.type&&h.name===a.name)return this.removeEventListener(h.type,h.listener,h.capture),this.addEventListener(h.type,h.listener=j,h.capture=c),void(h.value=b);this.addEventListener(a.type,j,c),h={type:a.type,name:a.name,value:b,listener:j,capture:c},i?i.push(h):this.__on=[h]}}function vg(a,b,c){var d,e,f=sg(a+""),g=f.length;{if(!(arguments.length<2)){for(h=b?ug:tg,null==c&&(c=!1),d=0;d<g;++d)this.each(h(f[d],b,c));return this}var h=this.node().__on;if(h)for(var i,j=0,k=h.length;j<k;++j)for(d=0,i=h[j];d<g;++d)if((e=f[d]).type===i.type&&e.name===i.name)return i.value}}function wg(a,b,c,d){var e=YE;a.sourceEvent=YE,YE=a;try{return b.apply(c,d)}finally{YE=e}}function xg(a,b,c){var d=Ef(a),e=d.CustomEvent;"function"==typeof e?e=new e(b,c):(e=d.document.createEvent("Event"),c?(e.initEvent(b,c.bubbles,c.cancelable),e.detail=c.detail):e.initEvent(b,!1,!1)),a.dispatchEvent(e)}function yg(a,b){return function(){return xg(this,a,b)}}function zg(a,b){return function(){return xg(this,a,b.apply(this,arguments))}}function Ag(a,b){return this.each(("function"==typeof b?zg:yg)(a,b))}function Bg(a,b){this._groups=a,this._parents=b}function Cg(){return new Bg([[document.documentElement]],$E)}function Dg(a){return"string"==typeof a?new Bg([[document.querySelector(a)]],[document.documentElement]):new Bg([[a]],$E)}function Eg(){for(var a,b=YE;a=b.sourceEvent;)b=a;return b}function Fg(a,b){var c=a.ownerSVGElement||a;if(c.createSVGPoint){var d=c.createSVGPoint();return d.x=b.clientX,d.y=b.clientY,d=d.matrixTransform(a.getScreenCTM().inverse()),[d.x,d.y]}var e=a.getBoundingClientRect();return[b.clientX-e.left-a.clientLeft,b.clientY-e.top-a.clientTop]}function Gg(a){var b=Eg();return b.changedTouches&&(b=b.changedTouches[0]),Fg(a,b)}function Hg(a,b,c){arguments.length<3&&(c=b,b=Eg().changedTouches);for(var d,e=0,f=b?b.length:0;e<f;++e)if((d=b[e]).identifier===c)return Fg(a,d);return null}function Ig(){YE.stopImmediatePropagation()}function Jg(){YE.preventDefault(),YE.stopImmediatePropagation()}function Kg(a){var b=a.document.documentElement,c=Dg(a).on("dragstart.drag",Jg,!0);"onselectstart"in b?c.on("selectstart.drag",Jg,!0):(b.__noselect=b.style.MozUserSelect,b.style.MozUserSelect="none")}function Lg(a,b){var c=a.document.documentElement,d=Dg(a).on("dragstart.drag",null);b&&(d.on("click.drag",Jg,!0),setTimeout(function(){d.on("click.drag",null)},0)),"onselectstart"in c?d.on("selectstart.drag",null):(c.style.MozUserSelect=c.__noselect,delete c.__noselect)}function Mg(a){return function(){return a}}function Ng(a,b,c,d,e,f,g,h,i,j){this.target=a,this.type=b,this.subject=c,this.identifier=d,this.active=e,this.x=f,this.y=g,this.dx=h,this.dy=i,this._=j}function Og(){return!YE.button}function Pg(){return this.parentNode}function Qg(a){return null==a?{x:YE.x,y:YE.y}:a}function Rg(){return"ontouchstart"in this}function Sg(){function a(a){a.on("mousedown.drag",b).filter(Rg).on("touchstart.drag",e).on("touchmove.drag",f).on("touchend.drag touchcancel.drag",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(){if(!l&&m.apply(this,arguments)){var a=h("mouse",n.apply(this,arguments),Gg,this,arguments);a&&(Dg(YE.view).on("mousemove.drag",c,!0).on("mouseup.drag",d,!0),Kg(YE.view),Ig(),k=!1,i=YE.clientX,j=YE.clientY,a("start"))}}function c(){if(Jg(),!k){var a=YE.clientX-i,b=YE.clientY-j;k=a*a+b*b>s}p.mouse("drag")}function d(){Dg(YE.view).on("mousemove.drag mouseup.drag",null),Lg(YE.view,k),Jg(),p.mouse("end")}function e(){if(m.apply(this,arguments)){var a,b,c=YE.changedTouches,d=n.apply(this,arguments),e=c.length;for(a=0;a<e;++a)(b=h(c[a].identifier,d,Hg,this,arguments))&&(Ig(),b("start"))}}function f(){var a,b,c=YE.changedTouches,d=c.length;for(a=0;a<d;++a)(b=p[c[a].identifier])&&(Jg(),b("drag"))}function g(){var a,b,c=YE.changedTouches,d=c.length;for(l&&clearTimeout(l),l=setTimeout(function(){l=null},500),a=0;a<d;++a)(b=p[c[a].identifier])&&(Ig(),b("end"))}function h(b,c,d,e,f){var g,h,i,j=d(c,b),k=q.copy();if(wg(new Ng(a,"beforestart",g,b,r,j[0],j[1],0,0,k),function(){return null!=(YE.subject=g=o.apply(e,f))&&(h=g.x-j[0]||0,i=g.y-j[1]||0,!0)}))return function l(m){var n,o=j;switch(m){case"start":p[b]=l,n=r++;break;case"end":delete p[b],--r;case"drag":j=d(c,b),n=r}wg(new Ng(a,m,g,b,n,j[0]+h,j[1]+i,j[0]-o[0],j[1]-o[1],k),k.apply,k,[m,e,f])}}var i,j,k,l,m=Og,n=Pg,o=Qg,p={},q=U("start","drag","end"),r=0,s=0;return a.filter=function(b){return arguments.length?(m="function"==typeof b?b:Mg(!!b),a):m},a.container=function(b){return arguments.length?(n="function"==typeof b?b:Mg(b),a):n},a.subject=function(b){return arguments.length?(o="function"==typeof b?b:Mg(b),a):o},a.on=function(){var b=q.on.apply(q,arguments);return b===q?a:b},a.clickDistance=function(b){return arguments.length?(s=(b=+b)*b,a):Math.sqrt(s)},a}function Tg(a){return new Function("d","return {"+a.map(function(a,b){return JSON.stringify(a)+": d["+b+"]"}).join(",")+"}")}function Ug(a,b){var c=Tg(a);return function(d,e){return b(c(d),e,a)}}function Vg(a){var b=Object.create(null),c=[];return a.forEach(function(a){for(var d in a)d in b||c.push(b[d]=d)}),c}function Wg(a){function b(a,b){var d,e,f=c(a,function(a,c){return d?d(a,c-1):(e=a,void(d=b?Ug(a,b):Tg(a)))});return f.columns=e,f}function c(a,b){function c(){if(k>=j)return g;if(e)return e=!1,f;var b,c=k;if(34===a.charCodeAt(c)){for(var d=c;d++<j;)if(34===a.charCodeAt(d)){if(34!==a.charCodeAt(d+1))break;++d}return k=d+2,b=a.charCodeAt(d+1),13===b?(e=!0,10===a.charCodeAt(d+2)&&++k):10===b&&(e=!0),a.slice(c+1,d).replace(/""/g,'"')}for(;k<j;){var h=1;if(b=a.charCodeAt(k++),10===b)e=!0;else if(13===b)e=!0,10===a.charCodeAt(k)&&(++k,++h);else if(b!==i)continue;return a.slice(c,k-h)}return a.slice(c)}for(var d,e,f={},g={},h=[],j=a.length,k=0,l=0;(d=c())!==g;){for(var m=[];d!==f&&d!==g;)m.push(d),d=c();b&&null==(m=b(m,l++))||h.push(m)}return h}function d(b,c){return null==c&&(c=Vg(b)),[c.map(g).join(a)].concat(b.map(function(b){return c.map(function(a){return g(b[a])}).join(a)})).join("\n")}function e(a){return a.map(f).join("\n")}function f(b){return b.map(g).join(a)}function g(a){return null==a?"":h.test(a+="")?'"'+a.replace(/\"/g,'""')+'"':a}var h=new RegExp('["'+a+"\n\r]"),i=a.charCodeAt(0);return{parse:b,parseRows:c,format:d,formatRows:e}}function Xg(a,b){function c(){var c,e,f=d.length,g=0,h=0;for(c=0;c<f;++c)e=d[c],g+=e.x,h+=e.y;for(g=g/f-a,h=h/f-b,c=0;c<f;++c)e=d[c],e.x-=g,e.y-=h}var d;return null==a&&(a=0),null==b&&(b=0),c.initialize=function(a){d=a},c.x=function(b){return arguments.length?(a=+b,c):a},c.y=function(a){return arguments.length?(b=+a,c):b},c}function Yg(a){return function(){return a}}function Zg(){return 1e-6*(Math.random()-.5)}function $g(a){var b=+this._x.call(null,a),c=+this._y.call(null,a);return _g(this.cover(b,c),b,c,a)}function _g(a,b,c,d){if(isNaN(b)||isNaN(c))return a;var e,f,g,h,i,j,k,l,m,n=a._root,o={data:d},p=a._x0,q=a._y0,r=a._x1,s=a._y1;if(!n)return a._root=o,a;for(;n.length;)if((j=b>=(f=(p+r)/2))?p=f:r=f,
+(k=c>=(g=(q+s)/2))?q=g:s=g,e=n,!(n=n[l=k<<1|j]))return e[l]=o,a;if(h=+a._x.call(null,n.data),i=+a._y.call(null,n.data),b===h&&c===i)return o.next=n,e?e[l]=o:a._root=o,a;do e=e?e[l]=new Array(4):a._root=new Array(4),(j=b>=(f=(p+r)/2))?p=f:r=f,(k=c>=(g=(q+s)/2))?q=g:s=g;while((l=k<<1|j)===(m=(i>=g)<<1|h>=f));return e[m]=n,e[l]=o,a}function ah(a){var b,c,d,e,f=a.length,g=new Array(f),h=new Array(f),i=1/0,j=1/0,k=-(1/0),l=-(1/0);for(c=0;c<f;++c)isNaN(d=+this._x.call(null,b=a[c]))||isNaN(e=+this._y.call(null,b))||(g[c]=d,h[c]=e,d<i&&(i=d),d>k&&(k=d),e<j&&(j=e),e>l&&(l=e));for(k<i&&(i=this._x0,k=this._x1),l<j&&(j=this._y0,l=this._y1),this.cover(i,j).cover(k,l),c=0;c<f;++c)_g(this,g[c],h[c],a[c]);return this}function bh(a,b){if(isNaN(a=+a)||isNaN(b=+b))return this;var c=this._x0,d=this._y0,e=this._x1,f=this._y1;if(isNaN(c))e=(c=Math.floor(a))+1,f=(d=Math.floor(b))+1;else{if(!(c>a||a>e||d>b||b>f))return this;var g,h,i=e-c,j=this._root;switch(h=(b<(d+f)/2)<<1|a<(c+e)/2){case 0:do g=new Array(4),g[h]=j,j=g;while(i*=2,e=c+i,f=d+i,a>e||b>f);break;case 1:do g=new Array(4),g[h]=j,j=g;while(i*=2,c=e-i,f=d+i,c>a||b>f);break;case 2:do g=new Array(4),g[h]=j,j=g;while(i*=2,e=c+i,d=f-i,a>e||d>b);break;case 3:do g=new Array(4),g[h]=j,j=g;while(i*=2,c=e-i,d=f-i,c>a||d>b)}this._root&&this._root.length&&(this._root=j)}return this._x0=c,this._y0=d,this._x1=e,this._y1=f,this}function ch(){var a=[];return this.visit(function(b){if(!b.length)do a.push(b.data);while(b=b.next)}),a}function dh(a){return arguments.length?this.cover(+a[0][0],+a[0][1]).cover(+a[1][0],+a[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function eh(a,b,c,d,e){this.node=a,this.x0=b,this.y0=c,this.x1=d,this.y1=e}function fh(a,b,c){var d,e,f,g,h,i,j,k=this._x0,l=this._y0,m=this._x1,n=this._y1,o=[],p=this._root;for(p&&o.push(new eh(p,k,l,m,n)),null==c?c=1/0:(k=a-c,l=b-c,m=a+c,n=b+c,c*=c);i=o.pop();)if(!(!(p=i.node)||(e=i.x0)>m||(f=i.y0)>n||(g=i.x1)<k||(h=i.y1)<l))if(p.length){var q=(e+g)/2,r=(f+h)/2;o.push(new eh(p[3],q,r,g,h),new eh(p[2],e,r,q,h),new eh(p[1],q,f,g,r),new eh(p[0],e,f,q,r)),(j=(b>=r)<<1|a>=q)&&(i=o[o.length-1],o[o.length-1]=o[o.length-1-j],o[o.length-1-j]=i)}else{var s=a-+this._x.call(null,p.data),t=b-+this._y.call(null,p.data),u=s*s+t*t;if(u<c){var v=Math.sqrt(c=u);k=a-v,l=b-v,m=a+v,n=b+v,d=p.data}}return d}function gh(a){if(isNaN(f=+this._x.call(null,a))||isNaN(g=+this._y.call(null,a)))return this;var b,c,d,e,f,g,h,i,j,k,l,m,n=this._root,o=this._x0,p=this._y0,q=this._x1,r=this._y1;if(!n)return this;if(n.length)for(;;){if((j=f>=(h=(o+q)/2))?o=h:q=h,(k=g>=(i=(p+r)/2))?p=i:r=i,b=n,!(n=n[l=k<<1|j]))return this;if(!n.length)break;(b[l+1&3]||b[l+2&3]||b[l+3&3])&&(c=b,m=l)}for(;n.data!==a;)if(d=n,!(n=n.next))return this;return(e=n.next)&&delete n.next,d?(e?d.next=e:delete d.next,this):b?(e?b[l]=e:delete b[l],(n=b[0]||b[1]||b[2]||b[3])&&n===(b[3]||b[2]||b[1]||b[0])&&!n.length&&(c?c[m]=n:this._root=n),this):(this._root=e,this)}function hh(a){for(var b=0,c=a.length;b<c;++b)this.remove(a[b]);return this}function ih(){return this._root}function jh(){var a=0;return this.visit(function(b){if(!b.length)do++a;while(b=b.next)}),a}function kh(a){var b,c,d,e,f,g,h=[],i=this._root;for(i&&h.push(new eh(i,this._x0,this._y0,this._x1,this._y1));b=h.pop();)if(!a(i=b.node,d=b.x0,e=b.y0,f=b.x1,g=b.y1)&&i.length){var j=(d+f)/2,k=(e+g)/2;(c=i[3])&&h.push(new eh(c,j,k,f,g)),(c=i[2])&&h.push(new eh(c,d,k,j,g)),(c=i[1])&&h.push(new eh(c,j,e,f,k)),(c=i[0])&&h.push(new eh(c,d,e,j,k))}return this}function lh(a){var b,c=[],d=[];for(this._root&&c.push(new eh(this._root,this._x0,this._y0,this._x1,this._y1));b=c.pop();){var e=b.node;if(e.length){var f,g=b.x0,h=b.y0,i=b.x1,j=b.y1,k=(g+i)/2,l=(h+j)/2;(f=e[0])&&c.push(new eh(f,g,h,k,l)),(f=e[1])&&c.push(new eh(f,k,h,i,l)),(f=e[2])&&c.push(new eh(f,g,l,k,j)),(f=e[3])&&c.push(new eh(f,k,l,i,j))}d.push(b)}for(;b=d.pop();)a(b.node,b.x0,b.y0,b.x1,b.y1);return this}function mh(a){return a[0]}function nh(a){return arguments.length?(this._x=a,this):this._x}function oh(a){return a[1]}function ph(a){return arguments.length?(this._y=a,this):this._y}function qh(a,b,c){var d=new rh(null==b?mh:b,null==c?oh:c,NaN,NaN,NaN,NaN);return null==a?d:d.addAll(a)}function rh(a,b,c,d,e,f){this._x=a,this._y=b,this._x0=c,this._y0=d,this._x1=e,this._y1=f,this._root=void 0}function sh(a){for(var b={data:a.data},c=b;a=a.next;)c=c.next={data:a.data};return b}function th(a){return a.x+a.vx}function uh(a){return a.y+a.vy}function vh(a){function b(){function a(a,b,c,d,e){var f=a.data,h=a.r,n=l+h;{if(!f)return b>j+n||d<j-n||c>k+n||e<k-n;if(f.index>i.index){var o=j-f.x-f.vx,p=k-f.y-f.vy,q=o*o+p*p;q<n*n&&(0===o&&(o=Zg(),q+=o*o),0===p&&(p=Zg(),q+=p*p),q=(n-(q=Math.sqrt(q)))/q*g,i.vx+=(o*=q)*(n=(h*=h)/(m+h)),i.vy+=(p*=q)*n,f.vx-=o*(n=1-n),f.vy-=p*n)}}}for(var b,d,i,j,k,l,m,n=e.length,o=0;o<h;++o)for(d=qh(e,th,uh).visitAfter(c),b=0;b<n;++b)i=e[b],l=f[i.index],m=l*l,j=i.x+i.vx,k=i.y+i.vy,d.visit(a)}function c(a){if(a.data)return a.r=f[a.data.index];for(var b=a.r=0;b<4;++b)a[b]&&a[b].r>a.r&&(a.r=a[b].r)}function d(){if(e){var b,c,d=e.length;for(f=new Array(d),b=0;b<d;++b)c=e[b],f[c.index]=+a(c,b,e)}}var e,f,g=1,h=1;return"function"!=typeof a&&(a=Yg(null==a?1:+a)),b.initialize=function(a){e=a,d()},b.iterations=function(a){return arguments.length?(h=+a,b):h},b.strength=function(a){return arguments.length?(g=+a,b):g},b.radius=function(c){return arguments.length?(a="function"==typeof c?c:Yg(+c),d(),b):a},b}function wh(a){return a.index}function xh(a,b){var c=a.get(b);if(!c)throw new Error("missing: "+b);return c}function yh(a){function b(a){return 1/Math.min(j[a.source.index],j[a.target.index])}function c(b){for(var c=0,d=a.length;c<o;++c)for(var e,f,i,j,l,m,n,p=0;p<d;++p)e=a[p],f=e.source,i=e.target,j=i.x+i.vx-f.x-f.vx||Zg(),l=i.y+i.vy-f.y-f.vy||Zg(),m=Math.sqrt(j*j+l*l),m=(m-h[p])/m*b*g[p],j*=m,l*=m,i.vx-=j*(n=k[p]),i.vy-=l*n,f.vx+=j*(n=1-n),f.vy+=l*n}function d(){if(i){var b,c,d=i.length,m=a.length,n=Ke(i,l);for(b=0,j=new Array(d);b<m;++b)c=a[b],c.index=b,"object"!=typeof c.source&&(c.source=xh(n,c.source)),"object"!=typeof c.target&&(c.target=xh(n,c.target)),j[c.source.index]=(j[c.source.index]||0)+1,j[c.target.index]=(j[c.target.index]||0)+1;for(b=0,k=new Array(m);b<m;++b)c=a[b],k[b]=j[c.source.index]/(j[c.source.index]+j[c.target.index]);g=new Array(m),e(),h=new Array(m),f()}}function e(){if(i)for(var b=0,c=a.length;b<c;++b)g[b]=+m(a[b],b,a)}function f(){if(i)for(var b=0,c=a.length;b<c;++b)h[b]=+n(a[b],b,a)}var g,h,i,j,k,l=wh,m=b,n=Yg(30),o=1;return null==a&&(a=[]),c.initialize=function(a){i=a,d()},c.links=function(b){return arguments.length?(a=b,d(),c):a},c.id=function(a){return arguments.length?(l=a,c):l},c.iterations=function(a){return arguments.length?(o=+a,c):o},c.strength=function(a){return arguments.length?(m="function"==typeof a?a:Yg(+a),e(),c):m},c.distance=function(a){return arguments.length?(n="function"==typeof a?a:Yg(+a),f(),c):n},c}function zh(){return rF||(uF(Ah),rF=tF.now()+sF)}function Ah(){rF=0}function Bh(){this._call=this._time=this._next=null}function Ch(a,b,c){var d=new Bh;return d.restart(a,b,c),d}function Dh(){zh(),++mF;for(var a,b=kF;b;)(a=rF-b._time)>=0&&b._call.call(null,a),b=b._next;--mF}function Eh(){rF=(qF=tF.now())+sF,mF=nF=0;try{Dh()}finally{mF=0,Gh(),rF=0}}function Fh(){var a=tF.now(),b=a-qF;b>pF&&(sF-=b,qF=a)}function Gh(){for(var a,b,c=kF,d=1/0;c;)c._call?(d>c._time&&(d=c._time),a=c,c=c._next):(b=c._next,c._next=null,c=a?a._next=b:kF=b);lF=a,Hh(d)}function Hh(a){if(!mF){nF&&(nF=clearTimeout(nF));var b=a-rF;b>24?(a<1/0&&(nF=setTimeout(Eh,a-tF.now()-sF)),oF&&(oF=clearInterval(oF))):(oF||(qF=tF.now(),oF=setInterval(Fh,pF)),mF=1,uF(Eh))}}function Ih(a){return a.x}function Jh(a){return a.y}function Kh(a){function b(){c(),n.call("tick",f),g<h&&(m.stop(),n.call("end",f))}function c(){var b,c,d=a.length;for(g+=(j-g)*i,l.each(function(a){a(g)}),b=0;b<d;++b)c=a[b],null==c.fx?c.x+=c.vx*=k:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=k:(c.y=c.fy,c.vy=0)}function d(){for(var b,c=0,d=a.length;c<d;++c){if(b=a[c],b.index=c,isNaN(b.x)||isNaN(b.y)){var e=wF*Math.sqrt(c),f=c*xF;b.x=e*Math.cos(f),b.y=e*Math.sin(f)}(isNaN(b.vx)||isNaN(b.vy))&&(b.vx=b.vy=0)}}function e(b){return b.initialize&&b.initialize(a),b}var f,g=1,h=.001,i=1-Math.pow(h,1/300),j=0,k=.6,l=Ke(),m=Ch(b),n=U("tick","end");return null==a&&(a=[]),d(),f={tick:c,restart:function(){return m.restart(b),f},stop:function(){return m.stop(),f},nodes:function(b){return arguments.length?(a=b,d(),l.each(e),f):a},alpha:function(a){return arguments.length?(g=+a,f):g},alphaMin:function(a){return arguments.length?(h=+a,f):h},alphaDecay:function(a){return arguments.length?(i=+a,f):+i},alphaTarget:function(a){return arguments.length?(j=+a,f):j},velocityDecay:function(a){return arguments.length?(k=1-a,f):1-k},force:function(a,b){return arguments.length>1?(null==b?l.remove(a):l.set(a,e(b)),f):l.get(a)},find:function(b,c,d){var e,f,g,h,i,j=0,k=a.length;for(null==d?d=1/0:d*=d,j=0;j<k;++j)h=a[j],e=b-h.x,f=c-h.y,g=e*e+f*f,g<d&&(i=h,d=g);return i},on:function(a,b){return arguments.length>1?(n.on(a,b),f):n.on(a)}}}function Lh(){function a(a){var b,h=e.length,i=qh(e,Ih,Jh).visitAfter(c);for(g=a,b=0;b<h;++b)f=e[b],i.visit(d)}function b(){if(e){var a,b,c=e.length;for(h=new Array(c),a=0;a<c;++a)b=e[a],h[b.index]=+i(b,a,e)}}function c(a){var b,c,d,e,f,g=0;if(a.length){for(d=e=f=0;f<4;++f)(b=a[f])&&(c=b.value)&&(g+=c,d+=c*b.x,e+=c*b.y);a.x=d/g,a.y=e/g}else{b=a,b.x=b.data.x,b.y=b.data.y;do g+=h[b.data.index];while(b=b.next)}a.value=g}function d(a,b,c,d){if(!a.value)return!0;var e=a.x-f.x,i=a.y-f.y,m=d-b,n=e*e+i*i;if(m*m/l<n)return n<k&&(0===e&&(e=Zg(),n+=e*e),0===i&&(i=Zg(),n+=i*i),n<j&&(n=Math.sqrt(j*n)),f.vx+=e*a.value*g/n,f.vy+=i*a.value*g/n),!0;if(!(a.length||n>=k)){(a.data!==f||a.next)&&(0===e&&(e=Zg(),n+=e*e),0===i&&(i=Zg(),n+=i*i),n<j&&(n=Math.sqrt(j*n)));do a.data!==f&&(m=h[a.data.index]*g/n,f.vx+=e*m,f.vy+=i*m);while(a=a.next)}}var e,f,g,h,i=Yg(-30),j=1,k=1/0,l=.81;return a.initialize=function(a){e=a,b()},a.strength=function(c){return arguments.length?(i="function"==typeof c?c:Yg(+c),b(),a):i},a.distanceMin=function(b){return arguments.length?(j=b*b,a):Math.sqrt(j)},a.distanceMax=function(b){return arguments.length?(k=b*b,a):Math.sqrt(k)},a.theta=function(b){return arguments.length?(l=b*b,a):Math.sqrt(l)},a}function Mh(a){function b(a){for(var b,c=0,g=d.length;c<g;++c)b=d[c],b.vx+=(f[c]-b.x)*e[c]*a}function c(){if(d){var b,c=d.length;for(e=new Array(c),f=new Array(c),b=0;b<c;++b)e[b]=isNaN(f[b]=+a(d[b],b,d))?0:+g(d[b],b,d)}}var d,e,f,g=Yg(.1);return"function"!=typeof a&&(a=Yg(null==a?0:+a)),b.initialize=function(a){d=a,c()},b.strength=function(a){return arguments.length?(g="function"==typeof a?a:Yg(+a),c(),b):g},b.x=function(d){return arguments.length?(a="function"==typeof d?d:Yg(+d),c(),b):a},b}function Nh(a){function b(a){for(var b,c=0,g=d.length;c<g;++c)b=d[c],b.vy+=(f[c]-b.y)*e[c]*a}function c(){if(d){var b,c=d.length;for(e=new Array(c),f=new Array(c),b=0;b<c;++b)e[b]=isNaN(f[b]=+a(d[b],b,d))?0:+g(d[b],b,d)}}var d,e,f,g=Yg(.1);return"function"!=typeof a&&(a=Yg(null==a?0:+a)),b.initialize=function(a){d=a,c()},b.strength=function(a){return arguments.length?(g="function"==typeof a?a:Yg(+a),c(),b):g},b.y=function(d){return arguments.length?(a="function"==typeof d?d:Yg(+d),c(),b):a},b}function Oh(a,b){if((c=(a=b?a.toExponential(b-1):a.toExponential()).indexOf("e"))<0)return null;var c,d=a.slice(0,c);return[d.length>1?d[0]+d.slice(2):d,+a.slice(c+1)]}function Ph(a){return a=Oh(Math.abs(a)),a?a[1]:NaN}function Qh(a,b){return function(c,d){for(var e=c.length,f=[],g=0,h=a[0],i=0;e>0&&h>0&&(i+h+1>d&&(h=Math.max(1,d-i)),f.push(c.substring(e-=h,e+h)),!((i+=h+1)>d));)h=a[g=(g+1)%a.length];return f.reverse().join(b)}}function Rh(a){return function(b){return b.replace(/[0-9]/g,function(b){return a[+b]})}}function Sh(a,b){a=a.toPrecision(b);a:for(var c,d=a.length,e=1,f=-1;e<d;++e)switch(a[e]){case".":f=c=e;break;case"0":0===f&&(f=e),c=e;break;case"e":break a;default:f>0&&(f=0)}return f>0?a.slice(0,f)+a.slice(c+1):a}function Th(a,b){var c=Oh(a,b);if(!c)return a+"";var d=c[0],e=c[1],f=e-(vF=3*Math.max(-8,Math.min(8,Math.floor(e/3))))+1,g=d.length;return f===g?d:f>g?d+new Array(f-g+1).join("0"):f>0?d.slice(0,f)+"."+d.slice(f):"0."+new Array(1-f).join("0")+Oh(a,Math.max(0,b+f-1))[0]}function Uh(a,b){var c=Oh(a,b);if(!c)return a+"";var d=c[0],e=c[1];return e<0?"0."+new Array(-e).join("0")+d:d.length>e+1?d.slice(0,e+1)+"."+d.slice(e+1):d+new Array(e-d.length+2).join("0")}function Vh(a){return new Wh(a)}function Wh(a){if(!(b=zF.exec(a)))throw new Error("invalid format: "+a);var b,c=b[1]||" ",d=b[2]||">",e=b[3]||"-",f=b[4]||"",g=!!b[5],h=b[6]&&+b[6],i=!!b[7],j=b[8]&&+b[8].slice(1),k=b[9]||"";"n"===k?(i=!0,k="g"):yF[k]||(k=""),(g||"0"===c&&"="===d)&&(g=!0,c="0",d="="),this.fill=c,this.align=d,this.sign=e,this.symbol=f,this.zero=g,this.width=h,this.comma=i,this.precision=j,this.type=k}function Xh(a){return a}function Yh(a){function b(a){function b(a){var b,e,h,k=q,u=r;if("c"===p)u=s(a)+u,a="";else{a=+a;var v=a<0;if(a=s(Math.abs(a),o),v&&0===+a&&(v=!1),k=(v?"("===j?j:"-":"-"===j||"("===j?"":j)+k,u=u+("s"===p?BF[8+vF/3]:"")+(v&&"("===j?")":""),t)for(b=-1,e=a.length;++b<e;)if(h=a.charCodeAt(b),48>h||h>57){u=(46===h?f+a.slice(b+1):a.slice(b))+u,a=a.slice(0,b);break}}n&&!l&&(a=d(a,1/0));var w=k.length+a.length+u.length,x=w<m?new Array(m-w+1).join(c):"";switch(n&&l&&(a=d(x+a,x.length?m-u.length:1/0),x=""),i){case"<":a=k+a+u+x;break;case"=":a=k+x+a+u;break;case"^":a=x.slice(0,w=x.length>>1)+k+a+u+x.slice(w);break;default:a=x+k+a+u}return g(a)}a=Vh(a);var c=a.fill,i=a.align,j=a.sign,k=a.symbol,l=a.zero,m=a.width,n=a.comma,o=a.precision,p=a.type,q="$"===k?e[0]:"#"===k&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",r="$"===k?e[1]:/[%p]/.test(p)?h:"",s=yF[p],t=!p||/[defgprs%]/.test(p);return o=null==o?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,o)):Math.max(0,Math.min(20,o)),b.toString=function(){return a+""},b}function c(a,c){var d=b((a=Vh(a),a.type="f",a)),e=3*Math.max(-8,Math.min(8,Math.floor(Ph(c)/3))),f=Math.pow(10,-e),g=BF[8+e/3];return function(a){return d(f*a)+g}}var d=a.grouping&&a.thousands?Qh(a.grouping,a.thousands):Xh,e=a.currency,f=a.decimal,g=a.numerals?Rh(a.numerals):Xh,h=a.percent||"%";return{format:b,formatPrefix:c}}function Zh(b){return AF=Yh(b),a.format=AF.format,a.formatPrefix=AF.formatPrefix,AF}function $h(a){return Math.max(0,-Ph(Math.abs(a)))}function _h(a,b){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ph(b)/3)))-Ph(Math.abs(a)))}function ai(a,b){return a=Math.abs(a),b=Math.abs(b)-a,Math.max(0,Ph(b)-Ph(a))+1}function bi(){return new ci}function ci(){this.reset()}function di(a,b,c){var d=a.s=b+c,e=d-b,f=d-e;a.t=b-f+(c-e)}function ei(a){return a>1?0:a<-1?iG:Math.acos(a)}function fi(a){return a>1?jG:a<-1?-jG:Math.asin(a)}function gi(a){return(a=wG(a/2))*a}function hi(){}function ii(a,b){a&&BG.hasOwnProperty(a.type)&&BG[a.type](a,b)}function ji(a,b,c){var d,e=-1,f=a.length-c;for(b.lineStart();++e<f;)d=a[e],b.point(d[0],d[1],d[2]);b.lineEnd()}function ki(a,b){var c=-1,d=a.length;for(b.polygonStart();++c<d;)ji(a[c],b,1);b.polygonEnd()}function li(a,b){a&&AG.hasOwnProperty(a.type)?AG[a.type](a,b):ii(a,b)}function mi(){EG.point=oi}function ni(){pi(CF,DF)}function oi(a,b){EG.point=pi,CF=a,DF=b,a*=nG,b*=nG,EF=a,FF=rG(b=b/2+kG),GF=wG(b)}function pi(a,b){a*=nG,b*=nG,b=b/2+kG;var c=a-EF,d=c>=0?1:-1,e=d*c,f=rG(b),g=wG(b),h=GF*g,i=FF*f+h*rG(e),j=h*d*wG(e);CG.add(qG(j,i)),EF=a,FF=f,GF=g}function qi(a){return DG.reset(),li(a,EG),2*DG}function ri(a){return[qG(a[1],a[0]),fi(a[2])]}function si(a){var b=a[0],c=a[1],d=rG(c);return[d*rG(b),d*wG(b),wG(c)]}function ti(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function ui(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function vi(a,b){a[0]+=b[0],a[1]+=b[1],a[2]+=b[2]}function wi(a,b){return[a[0]*b,a[1]*b,a[2]*b]}function xi(a){var b=yG(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);a[0]/=b,a[1]/=b,a[2]/=b}function yi(a,b){PF.push(QF=[HF=a,JF=a]),b<IF&&(IF=b),b>KF&&(KF=b)}function zi(a,b){var c=si([a*nG,b*nG]);if(OF){var d=ui(OF,c),e=[d[1],-d[0],0],f=ui(e,d);xi(f),f=ri(f);var g,h=a-LF,i=h>0?1:-1,j=f[0]*mG*i,k=oG(h)>180;k^(i*LF<j&&j<i*a)?(g=f[1]*mG,g>KF&&(KF=g)):(j=(j+360)%360-180,k^(i*LF<j&&j<i*a)?(g=-f[1]*mG,g<IF&&(IF=g)):(b<IF&&(IF=b),b>KF&&(KF=b))),k?a<LF?Fi(HF,a)>Fi(HF,JF)&&(JF=a):Fi(a,JF)>Fi(HF,JF)&&(HF=a):JF>=HF?(a<HF&&(HF=a),a>JF&&(JF=a)):a>LF?Fi(HF,a)>Fi(HF,JF)&&(JF=a):Fi(a,JF)>Fi(HF,JF)&&(HF=a)}else PF.push(QF=[HF=a,JF=a]);b<IF&&(IF=b),b>KF&&(KF=b),OF=c,LF=a}function Ai(){GG.point=zi}function Bi(){QF[0]=HF,QF[1]=JF,GG.point=yi,OF=null}function Ci(a,b){if(OF){var c=a-LF;FG.add(oG(c)>180?c+(c>0?360:-360):c)}else MF=a,NF=b;EG.point(a,b),zi(a,b)}function Di(){EG.lineStart()}function Ei(){Ci(MF,NF),EG.lineEnd(),oG(FG)>gG&&(HF=-(JF=180)),QF[0]=HF,QF[1]=JF,OF=null}function Fi(a,b){return(b-=a)<0?b+360:b}function Gi(a,b){return a[0]-b[0]}function Hi(a,b){return a[0]<=a[1]?a[0]<=b&&b<=a[1]:b<a[0]||a[1]<b}function Ii(a){var b,c,d,e,f,g,h;if(KF=JF=-(HF=IF=1/0),PF=[],li(a,GG),c=PF.length){for(PF.sort(Gi),b=1,d=PF[0],f=[d];b<c;++b)e=PF[b],Hi(d,e[0])||Hi(d,e[1])?(Fi(d[0],e[1])>Fi(d[0],d[1])&&(d[1]=e[1]),Fi(e[0],d[1])>Fi(d[0],d[1])&&(d[0]=e[0])):f.push(d=e);for(g=-(1/0),c=f.length-1,b=0,d=f[c];b<=c;d=e,++b)e=f[b],(h=Fi(d[1],e[0]))>g&&(g=h,HF=e[0],JF=d[1])}return PF=QF=null,HF===1/0||IF===1/0?[[NaN,NaN],[NaN,NaN]]:[[HF,IF],[JF,KF]]}function Ji(a,b){a*=nG,b*=nG;var c=rG(b);Ki(c*rG(a),c*wG(a),wG(b))}function Ki(a,b,c){++RF,TF+=(a-TF)/RF,UF+=(b-UF)/RF,VF+=(c-VF)/RF}function Li(){HG.point=Mi}function Mi(a,b){a*=nG,b*=nG;var c=rG(b);cG=c*rG(a),dG=c*wG(a),eG=wG(b),HG.point=Ni,Ki(cG,dG,eG)}function Ni(a,b){a*=nG,b*=nG;var c=rG(b),d=c*rG(a),e=c*wG(a),f=wG(b),g=qG(yG((g=dG*f-eG*e)*g+(g=eG*d-cG*f)*g+(g=cG*e-dG*d)*g),cG*d+dG*e+eG*f);SF+=g,WF+=g*(cG+(cG=d)),XF+=g*(dG+(dG=e)),YF+=g*(eG+(eG=f)),Ki(cG,dG,eG)}function Oi(){HG.point=Ji}function Pi(){HG.point=Ri}function Qi(){Si(aG,bG),HG.point=Ji}function Ri(a,b){aG=a,bG=b,a*=nG,b*=nG,HG.point=Si;var c=rG(b);cG=c*rG(a),dG=c*wG(a),eG=wG(b),Ki(cG,dG,eG)}function Si(a,b){a*=nG,b*=nG;var c=rG(b),d=c*rG(a),e=c*wG(a),f=wG(b),g=dG*f-eG*e,h=eG*d-cG*f,i=cG*e-dG*d,j=yG(g*g+h*h+i*i),k=fi(j),l=j&&-k/j;ZF+=l*g,$F+=l*h,_F+=l*i,SF+=k,WF+=k*(cG+(cG=d)),XF+=k*(dG+(dG=e)),YF+=k*(eG+(eG=f)),Ki(cG,dG,eG)}function Ti(a){RF=SF=TF=UF=VF=WF=XF=YF=ZF=$F=_F=0,li(a,HG);var b=ZF,c=$F,d=_F,e=b*b+c*c+d*d;return e<hG&&(b=WF,c=XF,d=YF,SF<gG&&(b=TF,c=UF,d=VF),e=b*b+c*c+d*d,e<hG)?[NaN,NaN]:[qG(c,b)*mG,fi(d/yG(e))*mG]}function Ui(a){return function(){return a}}function Vi(a,b){function c(c,d){return c=a(c,d),b(c[0],c[1])}return a.invert&&b.invert&&(c.invert=function(c,d){return c=b.invert(c,d),c&&a.invert(c[0],c[1])}),c}function Wi(a,b){return[a>iG?a-lG:a<-iG?a+lG:a,b]}function Xi(a,b,c){return(a%=lG)?b||c?Vi(Zi(a),$i(b,c)):Zi(a):b||c?$i(b,c):Wi}function Yi(a){return function(b,c){return b+=a,[b>iG?b-lG:b<-iG?b+lG:b,c]}}function Zi(a){var b=Yi(a);return b.invert=Yi(-a),b}function $i(a,b){function c(a,b){var c=rG(b),h=rG(a)*c,i=wG(a)*c,j=wG(b),k=j*d+h*e;return[qG(i*f-k*g,h*d-j*e),fi(k*f+i*g)]}var d=rG(a),e=wG(a),f=rG(b),g=wG(b);return c.invert=function(a,b){var c=rG(b),h=rG(a)*c,i=wG(a)*c,j=wG(b),k=j*f-i*g;return[qG(i*f+j*g,h*d+k*e),fi(k*d-h*e)]},c}function _i(a){function b(b){return b=a(b[0]*nG,b[1]*nG),b[0]*=mG,b[1]*=mG,b}return a=Xi(a[0]*nG,a[1]*nG,a.length>2?a[2]*nG:0),b.invert=function(b){return b=a.invert(b[0]*nG,b[1]*nG),b[0]*=mG,b[1]*=mG,b},b}function aj(a,b,c,d,e,f){if(c){var g=rG(b),h=wG(b),i=d*c;null==e?(e=b+d*lG,f=b-i/2):(e=bj(g,e),f=bj(g,f),(d>0?e<f:e>f)&&(e+=d*lG));for(var j,k=e;d>0?k>f:k<f;k-=i)j=ri([g,-h*rG(k),-h*wG(k)]),a.point(j[0],j[1])}}function bj(a,b){b=si(b),b[0]-=a,xi(b);var c=ei(-b[1]);return((-b[2]<0?-c:c)+lG-gG)%lG}function cj(){function a(a,b){c.push(a=d(a,b)),a[0]*=mG,a[1]*=mG}function b(){var a=e.apply(this,arguments),b=f.apply(this,arguments)*nG,i=g.apply(this,arguments)*nG;return c=[],d=Xi(-a[0]*nG,-a[1]*nG,0).invert,aj(h,b,i,1),a={type:"Polygon",coordinates:[c]},c=d=null,a}var c,d,e=Ui([0,0]),f=Ui(90),g=Ui(6),h={point:a};return b.center=function(a){return arguments.length?(e="function"==typeof a?a:Ui([+a[0],+a[1]]),b):e},b.radius=function(a){return arguments.length?(f="function"==typeof a?a:Ui(+a),b):f},b.precision=function(a){return arguments.length?(g="function"==typeof a?a:Ui(+a),b):g},b}function dj(){var a,b=[];return{point:function(b,c){a.push([b,c])},lineStart:function(){b.push(a=[])},lineEnd:hi,rejoin:function(){b.length>1&&b.push(b.pop().concat(b.shift()))},result:function(){var c=b;return b=[],a=null,c}}}function ej(a,b,c,d,e,f){var g,h=a[0],i=a[1],j=b[0],k=b[1],l=0,m=1,n=j-h,o=k-i;if(g=c-h,n||!(g>0)){if(g/=n,n<0){if(g<l)return;g<m&&(m=g)}else if(n>0){if(g>m)return;g>l&&(l=g)}if(g=e-h,n||!(g<0)){if(g/=n,n<0){if(g>m)return;g>l&&(l=g)}else if(n>0){if(g<l)return;g<m&&(m=g)}if(g=d-i,o||!(g>0)){if(g/=o,o<0){if(g<l)return;g<m&&(m=g)}else if(o>0){if(g>m)return;g>l&&(l=g)}if(g=f-i,o||!(g<0)){if(g/=o,o<0){if(g>m)return;g>l&&(l=g)}else if(o>0){if(g<l)return;g<m&&(m=g)}return l>0&&(a[0]=h+l*n,a[1]=i+l*o),m<1&&(b[0]=h+m*n,b[1]=i+m*o),!0}}}}}function fj(a,b){return oG(a[0]-b[0])<gG&&oG(a[1]-b[1])<gG}function gj(a,b,c,d){this.x=a,this.z=b,this.o=c,this.e=d,this.v=!1,this.n=this.p=null}function hj(a,b,c,d,e){var f,g,h=[],i=[];if(a.forEach(function(a){if(!((b=a.length-1)<=0)){var b,c,d=a[0],g=a[b];if(fj(d,g)){for(e.lineStart(),f=0;f<b;++f)e.point((d=a[f])[0],d[1]);return void e.lineEnd()}h.push(c=new gj(d,a,null,!0)),i.push(c.o=new gj(d,null,c,!1)),h.push(c=new gj(g,a,null,!1)),i.push(c.o=new gj(g,null,c,!0))}}),h.length){for(i.sort(b),ij(h),ij(i),f=0,g=i.length;f<g;++f)i[f].e=c=!c;for(var j,k,l=h[0];;){for(var m=l,n=!0;m.v;)if((m=m.n)===l)return;j=m.z,e.lineStart();do{if(m.v=m.o.v=!0,m.e){if(n)for(f=0,g=j.length;f<g;++f)e.point((k=j[f])[0],k[1]);else d(m.x,m.n.x,1,e);m=m.n}else{if(n)for(j=m.p.z,f=j.length-1;f>=0;--f)e.point((k=j[f])[0],k[1]);else d(m.x,m.p.x,-1,e);m=m.p}m=m.o,j=m.z,n=!n}while(!m.v);e.lineEnd()}}}function ij(a){if(b=a.length){for(var b,c,d=0,e=a[0];++d<b;)e.n=c=a[d],c.p=e,e=c;e.n=c=a[0],c.p=e}}function jj(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function kj(a){return 1===a.length&&(a=lj(a)),{left:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);d<e;){var f=d+e>>>1;a(b[f],c)<0?d=f+1:e=f}return d},right:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);d<e;){var f=d+e>>>1;a(b[f],c)>0?e=f:d=f+1}return d}}}function lj(a){return function(b,c){return jj(a(b),c)}}function mj(a,b,c){a=+a,b=+b,c=(e=arguments.length)<2?(b=a,a=0,1):e<3?1:+c;for(var d=-1,e=0|Math.max(0,Math.ceil((b-a)/c)),f=new Array(e);++d<e;)f[d]=a+d*c;return f}function nj(a){for(var b,c,d,e=a.length,f=-1,g=0;++f<e;)g+=a[f].length;for(c=new Array(g);--e>=0;)for(d=a[e],b=d.length;--b>=0;)c[--g]=d[b];return c}function oj(a,b,c,d){function e(e,f){return a<=e&&e<=c&&b<=f&&f<=d}function f(e,f,h,j){var k=0,l=0;if(null==e||(k=g(e,h))!==(l=g(f,h))||i(e,f)<0^h>0){do j.point(0===k||3===k?a:c,k>1?d:b);while((k=(k+h+4)%4)!==l)}else j.point(f[0],f[1])}function g(d,e){return oG(d[0]-a)<gG?e>0?0:3:oG(d[0]-c)<gG?e>0?2:1:oG(d[1]-b)<gG?e>0?1:0:e>0?3:2}function h(a,b){return i(a.x,b.x)}function i(a,b){var c=g(a,1),d=g(b,1);return c!==d?c-d:0===c?b[1]-a[1]:1===c?a[0]-b[0]:2===c?a[1]-b[1]:b[0]-a[0]}return function(g){function i(a,b){e(a,b)&&A.point(a,b)}function j(){for(var b=0,c=0,e=q.length;c<e;++c)for(var f,g,h=q[c],i=1,j=h.length,k=h[0],l=k[0],m=k[1];i<j;++i)f=l,g=m,k=h[i],l=k[0],m=k[1],g<=d?m>d&&(l-f)*(d-g)>(m-g)*(a-f)&&++b:m<=d&&(l-f)*(d-g)<(m-g)*(a-f)&&--b;return b}function k(){A=B,p=[],q=[],z=!0}function l(){var a=j(),b=z&&a,c=(p=nj(p)).length;(b||c)&&(g.polygonStart(),b&&(g.lineStart(),f(null,null,1,g),g.lineEnd()),c&&hj(p,h,a,f,g),g.polygonEnd()),A=g,p=q=r=null}function m(){C.point=o,q&&q.push(r=[]),y=!0,x=!1,v=w=NaN}function n(){p&&(o(s,t),u&&x&&B.rejoin(),p.push(B.result())),C.point=i,x&&A.lineEnd()}function o(f,g){var h=e(f,g);if(q&&r.push([f,g]),y)s=f,t=g,u=h,y=!1,h&&(A.lineStart(),A.point(f,g));else if(h&&x)A.point(f,g);else{var i=[v=Math.max(UG,Math.min(TG,v)),w=Math.max(UG,Math.min(TG,w))],j=[f=Math.max(UG,Math.min(TG,f)),g=Math.max(UG,Math.min(TG,g))];ej(i,j,a,b,c,d)?(x||(A.lineStart(),A.point(i[0],i[1])),A.point(j[0],j[1]),h||A.lineEnd(),z=!1):h&&(A.lineStart(),A.point(f,g),z=!1)}v=f,w=g,x=h}var p,q,r,s,t,u,v,w,x,y,z,A=g,B=dj(),C={point:i,lineStart:m,lineEnd:n,polygonStart:k,polygonEnd:l};return C}}function pj(){var a,b,c,d=0,e=0,f=960,g=500;return c={stream:function(c){return a&&b===c?a:a=oj(d,e,f,g)(b=c)},extent:function(h){return arguments.length?(d=+h[0][0],e=+h[0][1],f=+h[1][0],g=+h[1][1],a=b=null,c):[[d,e],[f,g]]}}}function qj(a,b){var c=b[0],d=b[1],e=[wG(c),-rG(c),0],f=0,g=0;VG.reset();for(var h=0,i=a.length;h<i;++h)if(k=(j=a[h]).length)for(var j,k,l=j[k-1],m=l[0],n=l[1]/2+kG,o=wG(n),p=rG(n),q=0;q<k;++q,m=s,o=u,p=v,l=r){var r=j[q],s=r[0],t=r[1]/2+kG,u=wG(t),v=rG(t),w=s-m,x=w>=0?1:-1,y=x*w,z=y>iG,A=o*u;if(VG.add(qG(A*x*wG(y),p*v+A*rG(y))),f+=z?w+x*lG:w,z^m>=c^s>=c){var B=ui(si(l),si(r));xi(B);var C=ui(e,B);xi(C);var D=(z^w>=0?-1:1)*fi(C[2]);(d>D||d===D&&(B[0]||B[1]))&&(g+=z^w>=0?1:-1)}}return(f<-gG||f<gG&&VG<-gG)^1&g}function rj(){XG.point=tj,XG.lineEnd=sj}function sj(){XG.point=XG.lineEnd=hi}function tj(a,b){a*=nG,b*=nG,IG=a,JG=wG(b),KG=rG(b),XG.point=uj}function uj(a,b){a*=nG,b*=nG;var c=wG(b),d=rG(b),e=oG(a-IG),f=rG(e),g=wG(e),h=d*g,i=KG*c-JG*d*f,j=JG*c+KG*d*f;WG.add(qG(yG(h*h+i*i),j)),IG=a,JG=c,KG=d}function vj(a){return WG.reset(),li(a,XG),+WG}function wj(a,b){return YG[0]=a,YG[1]=b,vj(ZG)}function xj(a,b){return!(!a||!_G.hasOwnProperty(a.type))&&_G[a.type](a,b)}function yj(a,b){return 0===wj(a,b)}function zj(a,b){var c=wj(a[0],a[1]),d=wj(a[0],b),e=wj(b,a[1]);return d+e<=c+gG}function Aj(a,b){return!!qj(a.map(Bj),Cj(b))}function Bj(a){return a=a.map(Cj),a.pop(),a}function Cj(a){return[a[0]*nG,a[1]*nG]}function Dj(a,b){return(a&&$G.hasOwnProperty(a.type)?$G[a.type]:xj)(a,b)}function Ej(a,b,c){var d=mj(a,b-gG,c).concat(b);return function(a){return d.map(function(b){return[a,b]})}}function Fj(a,b,c){var d=mj(a,b-gG,c).concat(b);return function(a){return d.map(function(b){return[b,a]})}}function Gj(){function a(){return{type:"MultiLineString",coordinates:b()}}function b(){return mj(sG(f/q)*q,e,q).map(m).concat(mj(sG(j/r)*r,i,r).map(n)).concat(mj(sG(d/o)*o,c,o).filter(function(a){return oG(a%q)>gG}).map(k)).concat(mj(sG(h/p)*p,g,p).filter(function(a){return oG(a%r)>gG}).map(l))}var c,d,e,f,g,h,i,j,k,l,m,n,o=10,p=o,q=90,r=360,s=2.5;return a.lines=function(){return b().map(function(a){return{type:"LineString",coordinates:a}})},a.outline=function(){return{type:"Polygon",coordinates:[m(f).concat(n(i).slice(1),m(e).reverse().slice(1),n(j).reverse().slice(1))]}},a.extent=function(b){return arguments.length?a.extentMajor(b).extentMinor(b):a.extentMinor()},a.extentMajor=function(b){return arguments.length?(f=+b[0][0],e=+b[1][0],j=+b[0][1],i=+b[1][1],f>e&&(b=f,f=e,e=b),j>i&&(b=j,j=i,i=b),a.precision(s)):[[f,j],[e,i]]},a.extentMinor=function(b){return arguments.length?(d=+b[0][0],c=+b[1][0],h=+b[0][1],g=+b[1][1],d>c&&(b=d,d=c,c=b),h>g&&(b=h,h=g,g=b),a.precision(s)):[[d,h],[c,g]]},a.step=function(b){return arguments.length?a.stepMajor(b).stepMinor(b):a.stepMinor()},a.stepMajor=function(b){return arguments.length?(q=+b[0],r=+b[1],a):[q,r]},a.stepMinor=function(b){return arguments.length?(o=+b[0],p=+b[1],a):[o,p]},a.precision=function(b){return arguments.length?(s=+b,k=Ej(h,g,90),l=Fj(d,c,s),m=Ej(j,i,90),n=Fj(f,e,s),a):s},a.extentMajor([[-180,-90+gG],[180,90-gG]]).extentMinor([[-180,-80-gG],[180,80+gG]])}function Hj(){return Gj()()}function Ij(a,b){var c=a[0]*nG,d=a[1]*nG,e=b[0]*nG,f=b[1]*nG,g=rG(d),h=wG(d),i=rG(f),j=wG(f),k=g*rG(c),l=g*wG(c),m=i*rG(e),n=i*wG(e),o=2*fi(yG(gi(f-d)+g*i*gi(e-c))),p=wG(o),q=o?function(a){var b=wG(a*=o)/p,c=wG(o-a)/p,d=c*k+b*m,e=c*l+b*n,f=c*h+b*j;return[qG(e,d)*mG,qG(f,yG(d*d+e*e))*mG]}:function(){return[c*mG,d*mG]};return q.distance=o,q}function Jj(a){return a}function Kj(){cH.point=Lj}function Lj(a,b){cH.point=Mj,LG=NG=a,MG=OG=b}function Mj(a,b){bH.add(OG*a-NG*b),NG=a,OG=b}function Nj(){Mj(LG,MG)}function Oj(a,b){a<dH&&(dH=a),a>fH&&(fH=a),b<eH&&(eH=b),b>gH&&(gH=b)}function Pj(a,b){iH+=a,jH+=b,++kH}function Qj(){rH.point=Rj}function Rj(a,b){rH.point=Sj,Pj(RG=a,SG=b)}function Sj(a,b){var c=a-RG,d=b-SG,e=yG(c*c+d*d);lH+=e*(RG+a)/2,mH+=e*(SG+b)/2,nH+=e,Pj(RG=a,SG=b)}function Tj(){rH.point=Pj}function Uj(){rH.point=Wj}function Vj(){Xj(PG,QG)}function Wj(a,b){rH.point=Xj,Pj(PG=RG=a,QG=SG=b)}function Xj(a,b){var c=a-RG,d=b-SG,e=yG(c*c+d*d);lH+=e*(RG+a)/2,mH+=e*(SG+b)/2,nH+=e,e=SG*a-RG*b,oH+=e*(RG+a),pH+=e*(SG+b),qH+=3*e,Pj(RG=a,SG=b)}function Yj(a){this._context=a}function Zj(a,b){yH.point=$j,tH=vH=a,uH=wH=b}function $j(a,b){vH-=a,wH-=b,xH.add(yG(vH*vH+wH*wH)),vH=a,wH=b}function _j(){this._string=[]}function ak(a){return"m0,"+a+"a"+a+","+a+" 0 1,1 0,"+-2*a+"a"+a+","+a+" 0 1,1 0,"+2*a+"z"}function bk(a,b){function c(a){return a&&("function"==typeof f&&e.pointRadius(+f.apply(this,arguments)),li(a,d(e))),e.result()}var d,e,f=4.5;return c.area=function(a){return li(a,d(cH)),cH.result()},c.measure=function(a){return li(a,d(yH)),yH.result()},c.bounds=function(a){return li(a,d(hH)),hH.result()},c.centroid=function(a){return li(a,d(rH)),rH.result()},c.projection=function(b){return arguments.length?(d=null==b?(a=null,Jj):(a=b).stream,c):a},c.context=function(a){return arguments.length?(e=null==a?(b=null,new _j):new Yj(b=a),"function"!=typeof f&&e.pointRadius(f),c):b},c.pointRadius=function(a){return arguments.length?(f="function"==typeof a?a:(e.pointRadius(+a),+a),c):f},c.projection(a).context(b)}function ck(a,b,c,d){return function(e,f){function g(b,c){var d=e(b,c);a(b=d[0],c=d[1])&&f.point(b,c)}function h(a,b){var c=e(a,b);q.point(c[0],c[1])}function i(){v.point=h,q.lineStart()}function j(){v.point=g,q.lineEnd()}function k(a,b){p.push([a,b]);var c=e(a,b);t.point(c[0],c[1])}function l(){t.lineStart(),p=[]}function m(){k(p[0][0],p[0][1]),t.lineEnd();var a,b,c,d,e=t.clean(),g=s.result(),h=g.length;if(p.pop(),n.push(p),p=null,h)if(1&e){if(c=g[0],(b=c.length-1)>0){for(u||(f.polygonStart(),u=!0),f.lineStart(),a=0;a<b;++a)f.point((d=c[a])[0],d[1]);f.lineEnd()}}else h>1&&2&e&&g.push(g.pop().concat(g.shift())),o.push(g.filter(dk))}var n,o,p,q=b(f),r=e.invert(d[0],d[1]),s=dj(),t=b(s),u=!1,v={point:g,lineStart:i,lineEnd:j,polygonStart:function(){v.point=k,v.lineStart=l,v.lineEnd=m,o=[],n=[]},polygonEnd:function(){v.point=g,v.lineStart=i,v.lineEnd=j,o=nj(o);var a=qj(n,r);o.length?(u||(f.polygonStart(),u=!0),hj(o,ek,a,c,f)):a&&(u||(f.polygonStart(),u=!0),f.lineStart(),c(null,null,1,f),f.lineEnd()),u&&(f.polygonEnd(),u=!1),o=n=null},sphere:function(){f.polygonStart(),f.lineStart(),c(null,null,1,f),f.lineEnd(),f.polygonEnd()}};return v}}function dk(a){return a.length>1}function ek(a,b){return((a=a.x)[0]<0?a[1]-jG-gG:jG-a[1])-((b=b.x)[0]<0?b[1]-jG-gG:jG-b[1])}function fk(a){var b,c=NaN,d=NaN,e=NaN;return{lineStart:function(){a.lineStart(),b=1},point:function(f,g){var h=f>0?iG:-iG,i=oG(f-c);oG(i-iG)<gG?(a.point(c,d=(d+g)/2>0?jG:-jG),a.point(e,d),a.lineEnd(),a.lineStart(),a.point(h,d),a.point(f,d),b=0):e!==h&&i>=iG&&(oG(c-e)<gG&&(c-=e*gG),oG(f-h)<gG&&(f-=h*gG),d=gk(c,d,f,g),a.point(e,d),a.lineEnd(),a.lineStart(),a.point(h,d),b=0),a.point(c=f,d=g),e=h},lineEnd:function(){a.lineEnd(),c=d=NaN},clean:function(){return 2-b}}}function gk(a,b,c,d){var e,f,g=wG(a-c);return oG(g)>gG?pG((wG(b)*(f=rG(d))*wG(c)-wG(d)*(e=rG(b))*wG(a))/(e*f*g)):(b+d)/2}function hk(a,b,c,d){var e;if(null==a)e=c*jG,d.point(-iG,e),d.point(0,e),d.point(iG,e),d.point(iG,0),d.point(iG,-e),d.point(0,-e),d.point(-iG,-e),d.point(-iG,0),d.point(-iG,e);else if(oG(a[0]-b[0])>gG){var f=a[0]<b[0]?iG:-iG;e=c*f/2,d.point(-f,e),d.point(0,e),d.point(f,e)}else d.point(b[0],b[1])}function ik(a,b){function c(c,d,e,f){aj(f,a,b,e,c,d)}function d(a,b){return rG(a)*rG(b)>h}function e(a){var b,c,e,h,k;return{lineStart:function(){h=e=!1,k=1},point:function(l,m){var n,o=[l,m],p=d(l,m),q=i?p?0:g(l,m):p?g(l+(l<0?iG:-iG),m):0;
+if(!b&&(h=e=p)&&a.lineStart(),p!==e&&(n=f(b,o),(!n||fj(b,n)||fj(o,n))&&(o[0]+=gG,o[1]+=gG,p=d(o[0],o[1]))),p!==e)k=0,p?(a.lineStart(),n=f(o,b),a.point(n[0],n[1])):(n=f(b,o),a.point(n[0],n[1]),a.lineEnd()),b=n;else if(j&&b&&i^p){var r;q&c||!(r=f(o,b,!0))||(k=0,i?(a.lineStart(),a.point(r[0][0],r[0][1]),a.point(r[1][0],r[1][1]),a.lineEnd()):(a.point(r[1][0],r[1][1]),a.lineEnd(),a.lineStart(),a.point(r[0][0],r[0][1])))}!p||b&&fj(b,o)||a.point(o[0],o[1]),b=o,e=p,c=q},lineEnd:function(){e&&a.lineEnd(),b=null},clean:function(){return k|(h&&e)<<1}}}function f(a,b,c){var d=si(a),e=si(b),f=[1,0,0],g=ui(d,e),i=ti(g,g),j=g[0],k=i-j*j;if(!k)return!c&&a;var l=h*i/k,m=-h*j/k,n=ui(f,g),o=wi(f,l),p=wi(g,m);vi(o,p);var q=n,r=ti(o,q),s=ti(q,q),t=r*r-s*(ti(o,o)-1);if(!(t<0)){var u=yG(t),v=wi(q,(-r-u)/s);if(vi(v,o),v=ri(v),!c)return v;var w,x=a[0],y=b[0],z=a[1],A=b[1];y<x&&(w=x,x=y,y=w);var B=y-x,C=oG(B-iG)<gG,D=C||B<gG;if(!C&&A<z&&(w=z,z=A,A=w),D?C?z+A>0^v[1]<(oG(v[0]-x)<gG?z:A):z<=v[1]&&v[1]<=A:B>iG^(x<=v[0]&&v[0]<=y)){var E=wi(q,(-r+u)/s);return vi(E,o),[v,ri(E)]}}}function g(b,c){var d=i?a:iG-a,e=0;return b<-d?e|=1:b>d&&(e|=2),c<-d?e|=4:c>d&&(e|=8),e}var h=rG(a),i=h>0,j=oG(h)>gG;return ck(d,e,c,i?[0,-a]:[-iG,a-iG])}function jk(a){return{stream:kk(a)}}function kk(a){return function(b){var c=new lk;for(var d in a)c[d]=a[d];return c.stream=b,c}}function lk(){}function mk(a,b,c){var d=b[1][0]-b[0][0],e=b[1][1]-b[0][1],f=a.clipExtent&&a.clipExtent();a.scale(150).translate([0,0]),null!=f&&a.clipExtent(null),li(c,a.stream(hH));var g=hH.result(),h=Math.min(d/(g[1][0]-g[0][0]),e/(g[1][1]-g[0][1])),i=+b[0][0]+(d-h*(g[1][0]+g[0][0]))/2,j=+b[0][1]+(e-h*(g[1][1]+g[0][1]))/2;return null!=f&&a.clipExtent(f),a.scale(150*h).translate([i,j])}function nk(a,b,c){return mk(a,[[0,0],b],c)}function ok(a,b){return+b?qk(a,b):pk(a)}function pk(a){return kk({point:function(b,c){b=a(b,c),this.stream.point(b[0],b[1])}})}function qk(a,b){function c(d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=j-d,s=k-e,t=r*r+s*s;if(t>4*b&&p--){var u=g+m,v=h+n,w=i+o,x=yG(u*u+v*v+w*w),y=fi(w/=x),z=oG(oG(w)-1)<gG||oG(f-l)<gG?(f+l)/2:qG(v,u),A=a(z,y),B=A[0],C=A[1],D=B-d,E=C-e,F=s*D-r*E;(F*F/t>b||oG((r*D+s*E)/t-.5)>.3||g*m+h*n+i*o<BH)&&(c(d,e,f,g,h,i,B,C,z,u/=x,v/=x,w,p,q),q.point(B,C),c(B,C,z,u,v,w,j,k,l,m,n,o,p,q))}}return function(b){function d(c,d){c=a(c,d),b.point(c[0],c[1])}function e(){r=NaN,w.point=f,b.lineStart()}function f(d,e){var f=si([d,e]),g=a(d,e);c(r,s,q,t,u,v,r=g[0],s=g[1],q=d,t=f[0],u=f[1],v=f[2],AH,b),b.point(r,s)}function g(){w.point=d,b.lineEnd()}function h(){e(),w.point=i,w.lineEnd=j}function i(a,b){f(k=a,b),l=r,m=s,n=t,o=u,p=v,w.point=f}function j(){c(r,s,q,t,u,v,l,m,k,n,o,p,AH,b),w.lineEnd=g,g()}var k,l,m,n,o,p,q,r,s,t,u,v,w={point:d,lineStart:e,lineEnd:g,polygonStart:function(){b.polygonStart(),w.lineStart=h},polygonEnd:function(){b.polygonEnd(),w.lineStart=e}};return w}}function rk(a){return sk(function(){return a})()}function sk(a){function b(a){return a=k(a[0]*nG,a[1]*nG),[a[0]*q+h,i-a[1]*q]}function c(a){return a=k.invert((a[0]-h)/q,(i-a[1])/q),a&&[a[0]*mG,a[1]*mG]}function d(a,b){return a=g(a,b),[a[0]*q+h,i-a[1]*q]}function e(){k=Vi(j=Xi(v,w,x),g);var a=g(t,u);return h=r-a[0]*q,i=s+a[1]*q,f()}function f(){return o=p=null,b}var g,h,i,j,k,l,m,n,o,p,q=150,r=480,s=250,t=0,u=0,v=0,w=0,x=0,y=null,z=zH,A=null,B=Jj,C=.5,D=ok(d,C);return b.stream=function(a){return o&&p===a?o:o=CH(z(j,D(B(p=a))))},b.clipAngle=function(a){return arguments.length?(z=+a?ik(y=a*nG,6*nG):(y=null,zH),f()):y*mG},b.clipExtent=function(a){return arguments.length?(B=null==a?(A=l=m=n=null,Jj):oj(A=+a[0][0],l=+a[0][1],m=+a[1][0],n=+a[1][1]),f()):null==A?null:[[A,l],[m,n]]},b.scale=function(a){return arguments.length?(q=+a,e()):q},b.translate=function(a){return arguments.length?(r=+a[0],s=+a[1],e()):[r,s]},b.center=function(a){return arguments.length?(t=a[0]%360*nG,u=a[1]%360*nG,e()):[t*mG,u*mG]},b.rotate=function(a){return arguments.length?(v=a[0]%360*nG,w=a[1]%360*nG,x=a.length>2?a[2]%360*nG:0,e()):[v*mG,w*mG,x*mG]},b.precision=function(a){return arguments.length?(D=ok(d,C=a*a),f()):yG(C)},b.fitExtent=function(a,c){return mk(b,a,c)},b.fitSize=function(a,c){return nk(b,a,c)},function(){return g=a.apply(this,arguments),b.invert=g.invert&&c,e()}}function tk(a){var b=0,c=iG/3,d=sk(a),e=d(b,c);return e.parallels=function(a){return arguments.length?d(b=a[0]*nG,c=a[1]*nG):[b*mG,c*mG]},e}function uk(a){function b(a,b){return[a*c,wG(b)/c]}var c=rG(a);return b.invert=function(a,b){return[a/c,fi(b*c)]},b}function vk(a,b){function c(a,b){var c=yG(f-2*e*wG(b))/e;return[c*wG(a*=e),g-c*rG(a)]}var d=wG(a),e=(d+wG(b))/2;if(oG(e)<gG)return uk(a);var f=1+d*(2*e-d),g=yG(f)/e;return c.invert=function(a,b){var c=g-b;return[qG(a,oG(c))/e*xG(c),fi((f-(a*a+c*c)*e*e)/(2*e))]},c}function wk(){return tk(vk).scale(155.424).center([0,33.6442])}function xk(){return wk().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function yk(a){var b=a.length;return{point:function(c,d){for(var e=-1;++e<b;)a[e].point(c,d)},sphere:function(){for(var c=-1;++c<b;)a[c].sphere()},lineStart:function(){for(var c=-1;++c<b;)a[c].lineStart()},lineEnd:function(){for(var c=-1;++c<b;)a[c].lineEnd()},polygonStart:function(){for(var c=-1;++c<b;)a[c].polygonStart()},polygonEnd:function(){for(var c=-1;++c<b;)a[c].polygonEnd()}}}function zk(){function a(a){var b=a[0],c=a[1];return h=null,e.point(b,c),h||(f.point(b,c),h)||(g.point(b,c),h)}function b(){return c=d=null,a}var c,d,e,f,g,h,i=xk(),j=wk().rotate([154,0]).center([-2,58.5]).parallels([55,65]),k=wk().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(a,b){h=[a,b]}};return a.invert=function(a){var b=i.scale(),c=i.translate(),d=(a[0]-c[0])/b,e=(a[1]-c[1])/b;return(e>=.12&&e<.234&&d>=-.425&&d<-.214?j:e>=.166&&e<.234&&d>=-.214&&d<-.115?k:i).invert(a)},a.stream=function(a){return c&&d===a?c:c=yk([i.stream(d=a),j.stream(a),k.stream(a)])},a.precision=function(a){return arguments.length?(i.precision(a),j.precision(a),k.precision(a),b()):i.precision()},a.scale=function(b){return arguments.length?(i.scale(b),j.scale(.35*b),k.scale(b),a.translate(i.translate())):i.scale()},a.translate=function(a){if(!arguments.length)return i.translate();var c=i.scale(),d=+a[0],h=+a[1];return e=i.translate(a).clipExtent([[d-.455*c,h-.238*c],[d+.455*c,h+.238*c]]).stream(l),f=j.translate([d-.307*c,h+.201*c]).clipExtent([[d-.425*c+gG,h+.12*c+gG],[d-.214*c-gG,h+.234*c-gG]]).stream(l),g=k.translate([d-.205*c,h+.212*c]).clipExtent([[d-.214*c+gG,h+.166*c+gG],[d-.115*c-gG,h+.234*c-gG]]).stream(l),b()},a.fitExtent=function(b,c){return mk(a,b,c)},a.fitSize=function(b,c){return nk(a,b,c)},a.scale(1070)}function Ak(a){return function(b,c){var d=rG(b),e=rG(c),f=a(d*e);return[f*e*wG(b),f*wG(c)]}}function Bk(a){return function(b,c){var d=yG(b*b+c*c),e=a(d),f=wG(e),g=rG(e);return[qG(b*f,d*g),fi(d&&c*f/d)]}}function Ck(){return rk(DH).scale(124.75).clipAngle(179.999)}function Dk(){return rk(EH).scale(79.4188).clipAngle(179.999)}function Ek(a,b){return[a,uG(zG((jG+b)/2))]}function Fk(){return Gk(Ek).scale(961/lG)}function Gk(a){function b(){var b=iG*h(),g=f(_i(f.rotate()).invert([0,0]));return j(null==k?[[g[0]-b,g[1]-b],[g[0]+b,g[1]+b]]:a===Ek?[[Math.max(g[0]-b,k),c],[Math.min(g[0]+b,d),e]]:[[k,Math.max(g[1]-b,c)],[d,Math.min(g[1]+b,e)]])}var c,d,e,f=rk(a),g=f.center,h=f.scale,i=f.translate,j=f.clipExtent,k=null;return f.scale=function(a){return arguments.length?(h(a),b()):h()},f.translate=function(a){return arguments.length?(i(a),b()):i()},f.center=function(a){return arguments.length?(g(a),b()):g()},f.clipExtent=function(a){return arguments.length?(null==a?k=c=d=e=null:(k=+a[0][0],c=+a[0][1],d=+a[1][0],e=+a[1][1]),b()):null==k?null:[[k,c],[d,e]]},b()}function Hk(a){return zG((jG+a)/2)}function Ik(a,b){function c(a,b){f>0?b<-jG+gG&&(b=-jG+gG):b>jG-gG&&(b=jG-gG);var c=f/vG(Hk(b),e);return[c*wG(e*a),f-c*rG(e*a)]}var d=rG(a),e=a===b?wG(a):uG(d/rG(b))/uG(Hk(b)/Hk(a)),f=d*vG(Hk(a),e)/e;return e?(c.invert=function(a,b){var c=f-b,d=xG(e)*yG(a*a+c*c);return[qG(a,oG(c))/e*xG(c),2*pG(vG(f/d,1/e))-jG]},c):Ek}function Jk(){return tk(Ik).scale(109.5).parallels([30,30])}function Kk(a,b){return[a,b]}function Lk(){return rk(Kk).scale(152.63)}function Mk(a,b){function c(a,b){var c=f-b,d=e*a;return[c*wG(d),f-c*rG(d)]}var d=rG(a),e=a===b?wG(a):(d-rG(b))/(b-a),f=d/e+a;return oG(e)<gG?Kk:(c.invert=function(a,b){var c=f-b;return[qG(a,oG(c))/e*xG(c),f-xG(e)*yG(a*a+c*c)]},c)}function Nk(){return tk(Mk).scale(131.154).center([0,13.9389])}function Ok(a,b){var c=rG(b),d=rG(a)*c;return[c*wG(a)/d,wG(b)/d]}function Pk(){return rk(Ok).scale(144.049).clipAngle(60)}function Qk(a,b,c,d){return 1===a&&1===b&&0===c&&0===d?Jj:kk({point:function(e,f){this.stream.point(e*a+c,f*b+d)}})}function Rk(){function a(){return e=f=null,g}var b,c,d,e,f,g,h=1,i=0,j=0,k=1,l=1,m=Jj,n=null,o=Jj;return g={stream:function(a){return e&&f===a?e:e=m(o(f=a))},clipExtent:function(e){return arguments.length?(o=null==e?(n=b=c=d=null,Jj):oj(n=+e[0][0],b=+e[0][1],c=+e[1][0],d=+e[1][1]),a()):null==n?null:[[n,b],[c,d]]},scale:function(b){return arguments.length?(m=Qk((h=+b)*k,h*l,i,j),a()):h},translate:function(b){return arguments.length?(m=Qk(h*k,h*l,i=+b[0],j=+b[1]),a()):[i,j]},reflectX:function(b){return arguments.length?(m=Qk(h*(k=b?-1:1),h*l,i,j),a()):k<0},reflectY:function(b){return arguments.length?(m=Qk(h*k,h*(l=b?-1:1),i,j),a()):l<0},fitExtent:function(a,b){return mk(g,a,b)},fitSize:function(a,b){return nk(g,a,b)}}}function Sk(a,b){return[rG(b)*wG(a),wG(b)]}function Tk(){return rk(Sk).scale(249.5).clipAngle(90+gG)}function Uk(a,b){var c=rG(b),d=1+rG(a)*c;return[c*wG(a)/d,wG(b)/d]}function Vk(){return rk(Uk).scale(250).clipAngle(142)}function Wk(a,b){return[uG(zG((jG+b)/2)),-a]}function Xk(){var a=Gk(Wk),b=a.center,c=a.rotate;return a.center=function(a){return arguments.length?b([-a[1],a[0]]):(a=b(),[a[1],-a[0]])},a.rotate=function(a){return arguments.length?c([a[0],a[1],a.length>2?a[2]+90:90]):(a=c(),[a[0],a[1],a[2]-90])},c([0,0,90]).scale(159.155)}function Yk(a,b){return a.parent===b.parent?1:2}function Zk(a){return a.reduce($k,0)/a.length}function $k(a,b){return a+b.x}function _k(a){return 1+a.reduce(al,0)}function al(a,b){return Math.max(a,b.y)}function bl(a){for(var b;b=a.children;)a=b[0];return a}function cl(a){for(var b;b=a.children;)a=b[b.length-1];return a}function dl(){function a(a){var f,g=0;a.eachAfter(function(a){var c=a.children;c?(a.x=Zk(c),a.y=_k(c)):(a.x=f?g+=b(a,f):0,a.y=0,f=a)});var h=bl(a),i=cl(a),j=h.x-b(h,i)/2,k=i.x+b(i,h)/2;return a.eachAfter(e?function(b){b.x=(b.x-a.x)*c,b.y=(a.y-b.y)*d}:function(b){b.x=(b.x-j)/(k-j)*c,b.y=(1-(a.y?b.y/a.y:1))*d})}var b=Yk,c=1,d=1,e=!1;return a.separation=function(c){return arguments.length?(b=c,a):b},a.size=function(b){return arguments.length?(e=!1,c=+b[0],d=+b[1],a):e?null:[c,d]},a.nodeSize=function(b){return arguments.length?(e=!0,c=+b[0],d=+b[1],a):e?[c,d]:null},a}function el(a){var b=0,c=a.children,d=c&&c.length;if(d)for(;--d>=0;)b+=c[d].value;else b=1;a.value=b}function fl(){return this.eachAfter(el)}function gl(a){var b,c,d,e,f=this,g=[f];do for(b=g.reverse(),g=[];f=b.pop();)if(a(f),c=f.children)for(d=0,e=c.length;d<e;++d)g.push(c[d]);while(g.length);return this}function hl(a){for(var b,c,d=this,e=[d];d=e.pop();)if(a(d),b=d.children)for(c=b.length-1;c>=0;--c)e.push(b[c]);return this}function il(a){for(var b,c,d,e=this,f=[e],g=[];e=f.pop();)if(g.push(e),b=e.children)for(c=0,d=b.length;c<d;++c)f.push(b[c]);for(;e=g.pop();)a(e);return this}function jl(a){return this.eachAfter(function(b){for(var c=+a(b.data)||0,d=b.children,e=d&&d.length;--e>=0;)c+=d[e].value;b.value=c})}function kl(a){return this.eachBefore(function(b){b.children&&b.children.sort(a)})}function ll(a){for(var b=this,c=ml(b,a),d=[b];b!==c;)b=b.parent,d.push(b);for(var e=d.length;a!==c;)d.splice(e,0,a),a=a.parent;return d}function ml(a,b){if(a===b)return a;var c=a.ancestors(),d=b.ancestors(),e=null;for(a=c.pop(),b=d.pop();a===b;)e=a,a=c.pop(),b=d.pop();return e}function nl(){for(var a=this,b=[a];a=a.parent;)b.push(a);return b}function ol(){var a=[];return this.each(function(b){a.push(b)}),a}function pl(){var a=[];return this.eachBefore(function(b){b.children||a.push(b)}),a}function ql(){var a=this,b=[];return a.each(function(c){c!==a&&b.push({source:c.parent,target:c})}),b}function rl(a,b){var c,d,e,f,g,h=new wl(a),i=+a.value&&(h.value=a.value),j=[h];for(null==b&&(b=tl);c=j.pop();)if(i&&(c.value=+c.data.value),(e=b(c.data))&&(g=e.length))for(c.children=new Array(g),f=g-1;f>=0;--f)j.push(d=c.children[f]=new wl(e[f])),d.parent=c,d.depth=c.depth+1;return h.eachBefore(vl)}function sl(){return rl(this).eachBefore(ul)}function tl(a){return a.children}function ul(a){a.data=a.data.data}function vl(a){var b=0;do a.height=b;while((a=a.parent)&&a.height<++b)}function wl(a){this.data=a,this.depth=this.height=0,this.parent=null}function xl(a){for(var b,c,d=a.length;d;)c=Math.random()*d--|0,b=a[d],a[d]=a[c],a[c]=b;return a}function yl(a){for(var b,c,d=0,e=(a=xl(FH.call(a))).length,f=[];d<e;)b=a[d],c&&Bl(c,b)?++d:(c=Dl(f=zl(f,b)),d=0);return c}function zl(a,b){var c,d;if(Cl(b,a))return[b];for(c=0;c<a.length;++c)if(Al(b,a[c])&&Cl(Fl(a[c],b),a))return[a[c],b];for(c=0;c<a.length-1;++c)for(d=c+1;d<a.length;++d)if(Al(Fl(a[c],a[d]),b)&&Al(Fl(a[c],b),a[d])&&Al(Fl(a[d],b),a[c])&&Cl(Gl(a[c],a[d],b),a))return[a[c],a[d],b];throw new Error}function Al(a,b){var c=a.r-b.r,d=b.x-a.x,e=b.y-a.y;return c<0||c*c<d*d+e*e}function Bl(a,b){var c=a.r-b.r+1e-6,d=b.x-a.x,e=b.y-a.y;return c>0&&c*c>d*d+e*e}function Cl(a,b){for(var c=0;c<b.length;++c)if(!Bl(a,b[c]))return!1;return!0}function Dl(a){switch(a.length){case 1:return El(a[0]);case 2:return Fl(a[0],a[1]);case 3:return Gl(a[0],a[1],a[2])}}function El(a){return{x:a.x,y:a.y,r:a.r}}function Fl(a,b){var c=a.x,d=a.y,e=a.r,f=b.x,g=b.y,h=b.r,i=f-c,j=g-d,k=h-e,l=Math.sqrt(i*i+j*j);return{x:(c+f+i/l*k)/2,y:(d+g+j/l*k)/2,r:(l+e+h)/2}}function Gl(a,b,c){var d=a.x,e=a.y,f=a.r,g=b.x,h=b.y,i=b.r,j=c.x,k=c.y,l=c.r,m=d-g,n=d-j,o=e-h,p=e-k,q=i-f,r=l-f,s=d*d+e*e-f*f,t=s-g*g-h*h+i*i,u=s-j*j-k*k+l*l,v=n*o-m*p,w=(o*u-p*t)/(2*v)-d,x=(p*q-o*r)/v,y=(n*t-m*u)/(2*v)-e,z=(m*r-n*q)/v,A=x*x+z*z-1,B=2*(f+w*x+y*z),C=w*w+y*y-f*f,D=-(A?(B+Math.sqrt(B*B-4*A*C))/(2*A):C/B);return{x:d+w+x*D,y:e+y+z*D,r:D}}function Hl(a,b,c){var d=a.x,e=a.y,f=b.r+c.r,g=a.r+c.r,h=b.x-d,i=b.y-e,j=h*h+i*i;if(j){var k=.5+((g*=g)-(f*=f))/(2*j),l=Math.sqrt(Math.max(0,2*f*(g+j)-(g-=j)*g-f*f))/(2*j);c.x=d+k*h+l*i,c.y=e+k*i-l*h}else c.x=d+g,c.y=e}function Il(a,b){var c=b.x-a.x,d=b.y-a.y,e=a.r+b.r;return e*e-1e-6>c*c+d*d}function Jl(a){var b=a._,c=a.next._,d=b.r+c.r,e=(b.x*c.r+c.x*b.r)/d,f=(b.y*c.r+c.y*b.r)/d;return e*e+f*f}function Kl(a){this._=a,this.next=null,this.previous=null}function Ll(a){if(!(e=a.length))return 0;var b,c,d,e,f,g,h,i,j,k,l;if(b=a[0],b.x=0,b.y=0,!(e>1))return b.r;if(c=a[1],b.x=-c.r,c.x=b.r,c.y=0,!(e>2))return b.r+c.r;Hl(c,b,d=a[2]),b=new Kl(b),c=new Kl(c),d=new Kl(d),b.next=d.previous=c,c.next=b.previous=d,d.next=c.previous=b;a:for(h=3;h<e;++h){Hl(b._,c._,d=a[h]),d=new Kl(d),i=c.next,j=b.previous,k=c._.r,l=b._.r;do if(k<=l){if(Il(i._,d._)){c=i,b.next=c,c.previous=b,--h;continue a}k+=i._.r,i=i.next}else{if(Il(j._,d._)){b=j,b.next=c,c.previous=b,--h;continue a}l+=j._.r,j=j.previous}while(i!==j.next);for(d.previous=b,d.next=c,b.next=c.previous=c=d,f=Jl(b);(d=d.next)!==c;)(g=Jl(d))<f&&(b=d,f=g);c=b.next}for(b=[c._],d=c;(d=d.next)!==c;)b.push(d._);for(d=yl(b),h=0;h<e;++h)b=a[h],b.x-=d.x,b.y-=d.y;return d.r}function Ml(a){return Ll(a),a}function Nl(a){return null==a?null:Ol(a)}function Ol(a){if("function"!=typeof a)throw new Error;return a}function Pl(){return 0}function Ql(a){return function(){return a}}function Rl(a){return Math.sqrt(a.value)}function Sl(){function a(a){return a.x=c/2,a.y=d/2,b?a.eachBefore(Tl(b)).eachAfter(Ul(e,.5)).eachBefore(Vl(1)):a.eachBefore(Tl(Rl)).eachAfter(Ul(Pl,1)).eachAfter(Ul(e,a.r/Math.min(c,d))).eachBefore(Vl(Math.min(c,d)/(2*a.r))),a}var b=null,c=1,d=1,e=Pl;return a.radius=function(c){return arguments.length?(b=Nl(c),a):b},a.size=function(b){return arguments.length?(c=+b[0],d=+b[1],a):[c,d]},a.padding=function(b){return arguments.length?(e="function"==typeof b?b:Ql(+b),a):e},a}function Tl(a){return function(b){b.children||(b.r=Math.max(0,+a(b)||0))}}function Ul(a,b){return function(c){if(d=c.children){var d,e,f,g=d.length,h=a(c)*b||0;if(h)for(e=0;e<g;++e)d[e].r+=h;if(f=Ll(d),h)for(e=0;e<g;++e)d[e].r-=h;c.r=f+h}}}function Vl(a){return function(b){var c=b.parent;b.r*=a,c&&(b.x=c.x+a*b.x,b.y=c.y+a*b.y)}}function Wl(a){a.x0=Math.round(a.x0),a.y0=Math.round(a.y0),a.x1=Math.round(a.x1),a.y1=Math.round(a.y1)}function Xl(a,b,c,d,e){for(var f,g=a.children,h=-1,i=g.length,j=a.value&&(d-b)/a.value;++h<i;)f=g[h],f.y0=c,f.y1=e,f.x0=b,f.x1=b+=f.value*j}function Yl(){function a(a){var g=a.height+1;return a.x0=a.y0=e,a.x1=c,a.y1=d/g,a.eachBefore(b(d,g)),f&&a.eachBefore(Wl),a}function b(a,b){return function(c){c.children&&Xl(c,c.x0,a*(c.depth+1)/b,c.x1,a*(c.depth+2)/b);var d=c.x0,f=c.y0,g=c.x1-e,h=c.y1-e;g<d&&(d=g=(d+g)/2),h<f&&(f=h=(f+h)/2),c.x0=d,c.y0=f,c.x1=g,c.y1=h}}var c=1,d=1,e=0,f=!1;return a.round=function(b){return arguments.length?(f=!!b,a):f},a.size=function(b){return arguments.length?(c=+b[0],d=+b[1],a):[c,d]},a.padding=function(b){return arguments.length?(e=+b,a):e},a}function Zl(a){return a.id}function $l(a){return a.parentId}function _l(){function a(a){var d,e,f,g,h,i,j,k=a.length,l=new Array(k),m={};for(e=0;e<k;++e)d=a[e],h=l[e]=new wl(d),null!=(i=b(d,e,a))&&(i+="")&&(j=GH+(h.id=i),m[j]=j in m?IH:h);for(e=0;e<k;++e)if(h=l[e],i=c(a[e],e,a),null!=i&&(i+="")){if(g=m[GH+i],!g)throw new Error("missing: "+i);if(g===IH)throw new Error("ambiguous: "+i);g.children?g.children.push(h):g.children=[h],h.parent=g}else{if(f)throw new Error("multiple roots");f=h}if(!f)throw new Error("no root");if(f.parent=HH,f.eachBefore(function(a){a.depth=a.parent.depth+1,--k}).eachBefore(vl),f.parent=null,k>0)throw new Error("cycle");return f}var b=Zl,c=$l;return a.id=function(c){return arguments.length?(b=Ol(c),a):b},a.parentId=function(b){return arguments.length?(c=Ol(b),a):c},a}function am(a,b){return a.parent===b.parent?1:2}function bm(a){var b=a.children;return b?b[0]:a.t}function cm(a){var b=a.children;return b?b[b.length-1]:a.t}function dm(a,b,c){var d=c/(b.i-a.i);b.c-=d,b.s+=c,a.c+=d,b.z+=c,b.m+=c}function em(a){for(var b,c=0,d=0,e=a.children,f=e.length;--f>=0;)b=e[f],b.z+=c,b.m+=c,c+=b.s+(d+=b.c)}function fm(a,b,c){return a.a.parent===b.parent?a.a:c}function gm(a,b){this._=a,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=b}function hm(a){for(var b,c,d,e,f,g=new gm(a,0),h=[g];b=h.pop();)if(d=b._.children)for(b.children=new Array(f=d.length),e=f-1;e>=0;--e)h.push(c=b.children[e]=new gm(d[e],e)),c.parent=b;return(g.parent=new gm(null,0)).children=[g],g}function im(){function a(a){var d=hm(a);if(d.eachAfter(b),d.parent.m=-d.z,d.eachBefore(c),i)a.eachBefore(e);else{var j=a,k=a,l=a;a.eachBefore(function(a){a.x<j.x&&(j=a),a.x>k.x&&(k=a),a.depth>l.depth&&(l=a)});var m=j===k?1:f(j,k)/2,n=m-j.x,o=g/(k.x+m+n),p=h/(l.depth||1);a.eachBefore(function(a){a.x=(a.x+n)*o,a.y=a.depth*p})}return a}function b(a){var b=a.children,c=a.parent.children,e=a.i?c[a.i-1]:null;if(b){em(a);var g=(b[0].z+b[b.length-1].z)/2;e?(a.z=e.z+f(a._,e._),a.m=a.z-g):a.z=g}else e&&(a.z=e.z+f(a._,e._));a.parent.A=d(a,e,a.parent.A||c[0])}function c(a){a._.x=a.z+a.parent.m,a.m+=a.parent.m}function d(a,b,c){if(b){for(var d,e=a,g=a,h=b,i=e.parent.children[0],j=e.m,k=g.m,l=h.m,m=i.m;h=cm(h),e=bm(e),h&&e;)i=bm(i),g=cm(g),g.a=a,d=h.z+l-e.z-j+f(h._,e._),d>0&&(dm(fm(h,a,c),a,d),j+=d,k+=d),l+=h.m,j+=e.m,m+=i.m,k+=g.m;h&&!cm(g)&&(g.t=h,g.m+=l-k),e&&!bm(i)&&(i.t=e,i.m+=j-m,c=a)}return c}function e(a){a.x*=g,a.y=a.depth*h}var f=am,g=1,h=1,i=null;return a.separation=function(b){return arguments.length?(f=b,a):f},a.size=function(b){return arguments.length?(i=!1,g=+b[0],h=+b[1],a):i?null:[g,h]},a.nodeSize=function(b){return arguments.length?(i=!0,g=+b[0],h=+b[1],a):i?[g,h]:null},a}function jm(a,b,c,d,e){for(var f,g=a.children,h=-1,i=g.length,j=a.value&&(e-c)/a.value;++h<i;)f=g[h],f.x0=b,f.x1=d,f.y0=c,f.y1=c+=f.value*j}function km(a,b,c,d,e,f){for(var g,h,i,j,k,l,m,n,o,p,q,r=[],s=b.children,t=0,u=0,v=s.length,w=b.value;t<v;){i=e-c,j=f-d;do k=s[u++].value;while(!k&&u<v);for(l=m=k,p=Math.max(j/i,i/j)/(w*a),q=k*k*p,o=Math.max(m/q,q/l);u<v;++u){if(k+=h=s[u].value,h<l&&(l=h),h>m&&(m=h),q=k*k*p,n=Math.max(m/q,q/l),n>o){k-=h;break}o=n}r.push(g={value:k,dice:i<j,children:s.slice(t,u)}),g.dice?Xl(g,c,d,e,w?d+=j*k/w:f):jm(g,c,d,w?c+=i*k/w:e,f),w-=k,t=u}return r}function lm(){function a(a){return a.x0=a.y0=0,a.x1=e,a.y1=f,a.eachBefore(b),g=[0],d&&a.eachBefore(Wl),a}function b(a){var b=g[a.depth],d=a.x0+b,e=a.y0+b,f=a.x1-b,m=a.y1-b;f<d&&(d=f=(d+f)/2),m<e&&(e=m=(e+m)/2),a.x0=d,a.y0=e,a.x1=f,a.y1=m,a.children&&(b=g[a.depth+1]=h(a)/2,d+=l(a)-b,e+=i(a)-b,f-=j(a)-b,m-=k(a)-b,f<d&&(d=f=(d+f)/2),m<e&&(e=m=(e+m)/2),c(a,d,e,f,m))}var c=OH,d=!1,e=1,f=1,g=[0],h=Pl,i=Pl,j=Pl,k=Pl,l=Pl;return a.round=function(b){return arguments.length?(d=!!b,a):d},a.size=function(b){return arguments.length?(e=+b[0],f=+b[1],a):[e,f]},a.tile=function(b){return arguments.length?(c=Ol(b),a):c},a.padding=function(b){return arguments.length?a.paddingInner(b).paddingOuter(b):a.paddingInner()},a.paddingInner=function(b){return arguments.length?(h="function"==typeof b?b:Ql(+b),a):h},a.paddingOuter=function(b){return arguments.length?a.paddingTop(b).paddingRight(b).paddingBottom(b).paddingLeft(b):a.paddingTop()},a.paddingTop=function(b){return arguments.length?(i="function"==typeof b?b:Ql(+b),a):i},a.paddingRight=function(b){return arguments.length?(j="function"==typeof b?b:Ql(+b),a):j},a.paddingBottom=function(b){return arguments.length?(k="function"==typeof b?b:Ql(+b),a):k},a.paddingLeft=function(b){return arguments.length?(l="function"==typeof b?b:Ql(+b),a):l},a}function mm(a,b,c,d,e){function f(a,b,c,d,e,g,h){if(a>=b-1){var j=i[a];return j.x0=d,j.y0=e,j.x1=g,j.y1=h,void 0}for(var l=k[a],m=c/2+l,n=a+1,o=b-1;n<o;){var p=n+o>>>1;k[p]<m?n=p+1:o=p}m-k[n-1]<k[n]-m&&a+1<n&&--n;var q=k[n]-l,r=c-q;if(g-d>h-e){var s=(d*r+g*q)/c;f(a,n,q,d,e,s,h),f(n,b,r,s,e,g,h)}else{var t=(e*r+h*q)/c;f(a,n,q,d,e,g,t),f(n,b,r,d,t,g,h)}}var g,h,i=a.children,j=i.length,k=new Array(j+1);for(k[0]=h=g=0;g<j;++g)k[g+1]=h+=i[g].value;f(0,j,a.value,b,c,d,e)}function nm(a,b,c,d,e){(1&a.depth?jm:Xl)(a,b,c,d,e)}function om(a,b,c,d,e){var f=a*a,g=f*a;return((1-3*a+3*f-g)*b+(4-6*f+3*g)*c+(1+3*a+3*f-3*g)*d+g*e)/6}function pm(a){var b=a.length-1;return function(c){var d=c<=0?c=0:c>=1?(c=1,b-1):Math.floor(c*b),e=a[d],f=a[d+1],g=d>0?a[d-1]:2*e-f,h=d<b-1?a[d+2]:2*f-e;return om((c-d/b)*b,g,e,f,h)}}function qm(a){var b=a.length;return function(c){var d=Math.floor(((c%=1)<0?++c:c)*b),e=a[(d+b-1)%b],f=a[d%b],g=a[(d+1)%b],h=a[(d+2)%b];return om((c-d/b)*b,e,f,g,h)}}function rm(a){return function(){return a}}function sm(a,b){return function(c){return a+c*b}}function tm(a,b,c){return a=Math.pow(a,c),b=Math.pow(b,c)-a,c=1/c,function(d){return Math.pow(a+d*b,c)}}function um(a,b){var c=b-a;return c?sm(a,c>180||c<-180?c-360*Math.round(c/360):c):rm(isNaN(a)?b:a)}function vm(a){return 1===(a=+a)?wm:function(b,c){return c-b?tm(b,c,a):rm(isNaN(b)?c:b)}}function wm(a,b){var c=b-a;return c?sm(a,c):rm(isNaN(a)?b:a)}function xm(a){return function(b){var c,d,e=b.length,f=new Array(e),g=new Array(e),h=new Array(e);for(c=0;c<e;++c)d=Ub(b[c]),f[c]=d.r||0,g[c]=d.g||0,h[c]=d.b||0;return f=a(f),g=a(g),h=a(h),d.opacity=1,function(a){return d.r=f(a),d.g=g(a),d.b=h(a),d+""}}}function ym(a,b){var c,d=b?b.length:0,e=a?Math.min(d,a.length):0,f=new Array(d),g=new Array(d);for(c=0;c<e;++c)f[c]=Fm(a[c],b[c]);for(;c<d;++c)g[c]=b[c];return function(a){for(c=0;c<e;++c)g[c]=f[c](a);return g}}function zm(a,b){var c=new Date;return a=+a,b-=a,function(d){return c.setTime(a+b*d),c}}function Am(a,b){return a=+a,b-=a,function(c){return a+b*c}}function Bm(a,b){var c,d={},e={};null!==a&&"object"==typeof a||(a={}),null!==b&&"object"==typeof b||(b={});for(c in b)c in a?d[c]=Fm(a[c],b[c]):e[c]=b[c];return function(a){for(c in d)e[c]=d[c](a);return e}}function Cm(a){return function(){return a}}function Dm(a){return function(b){return a(b)+""}}function Em(a,b){var c,d,e,f=TH.lastIndex=UH.lastIndex=0,g=-1,h=[],i=[];for(a+="",b+="";(c=TH.exec(a))&&(d=UH.exec(b));)(e=d.index)>f&&(e=b.slice(f,e),h[g]?h[g]+=e:h[++g]=e),(c=c[0])===(d=d[0])?h[g]?h[g]+=d:h[++g]=d:(h[++g]=null,i.push({i:g,x:Am(c,d)})),f=UH.lastIndex;return f<b.length&&(e=b.slice(f),h[g]?h[g]+=e:h[++g]=e),h.length<2?i[0]?Dm(i[0].x):Cm(b):(b=i.length,function(a){for(var c,d=0;d<b;++d)h[(c=i[d]).i]=c.x(a);return h.join("")})}function Fm(a,b){var c,d=typeof b;return null==b||"boolean"===d?rm(b):("number"===d?Am:"string"===d?(c=Qb(b))?(b=c,QH):Em:b instanceof Qb?QH:b instanceof Date?zm:Array.isArray(b)?ym:"function"!=typeof b.valueOf&&"function"!=typeof b.toString||isNaN(b)?Bm:Am)(a,b)}function Gm(a,b){return a=+a,b-=a,function(c){return Math.round(a+b*c)}}function Hm(a,b,c,d,e,f){var g,h,i;return(g=Math.sqrt(a*a+b*b))&&(a/=g,b/=g),(i=a*c+b*d)&&(c-=a*i,d-=b*i),(h=Math.sqrt(c*c+d*d))&&(c/=h,d/=h,i/=h),a*d<b*c&&(a=-a,b=-b,i=-i,g=-g),{translateX:e,translateY:f,rotate:Math.atan2(b,a)*VH,skewX:Math.atan(i)*VH,scaleX:g,scaleY:h}}function Im(a){return"none"===a?WH:(JH||(JH=document.createElement("DIV"),KH=document.documentElement,LH=document.defaultView),JH.style.transform=a,a=LH.getComputedStyle(KH.appendChild(JH),null).getPropertyValue("transform"),KH.removeChild(JH),a=a.slice(7,-1).split(","),Hm(+a[0],+a[1],+a[2],+a[3],+a[4],+a[5]))}function Jm(a){return null==a?WH:(MH||(MH=document.createElementNS("http://www.w3.org/2000/svg","g")),MH.setAttribute("transform",a),(a=MH.transform.baseVal.consolidate())?(a=a.matrix,Hm(a.a,a.b,a.c,a.d,a.e,a.f)):WH)}function Km(a,b,c,d){function e(a){return a.length?a.pop()+" ":""}function f(a,d,e,f,g,h){if(a!==e||d!==f){var i=g.push("translate(",null,b,null,c);h.push({i:i-4,x:Am(a,e)},{i:i-2,x:Am(d,f)})}else(e||f)&&g.push("translate("+e+b+f+c)}function g(a,b,c,f){a!==b?(a-b>180?b+=360:b-a>180&&(a+=360),f.push({i:c.push(e(c)+"rotate(",null,d)-2,x:Am(a,b)})):b&&c.push(e(c)+"rotate("+b+d)}function h(a,b,c,f){a!==b?f.push({i:c.push(e(c)+"skewX(",null,d)-2,x:Am(a,b)}):b&&c.push(e(c)+"skewX("+b+d)}function i(a,b,c,d,f,g){if(a!==c||b!==d){var h=f.push(e(f)+"scale(",null,",",null,")");g.push({i:h-4,x:Am(a,c)},{i:h-2,x:Am(b,d)})}else 1===c&&1===d||f.push(e(f)+"scale("+c+","+d+")")}return function(b,c){var d=[],e=[];return b=a(b),c=a(c),f(b.translateX,b.translateY,c.translateX,c.translateY,d,e),g(b.rotate,c.rotate,d,e),h(b.skewX,c.skewX,d,e),i(b.scaleX,b.scaleY,c.scaleX,c.scaleY,d,e),b=c=null,function(a){for(var b,c=-1,f=e.length;++c<f;)d[(b=e[c]).i]=b.x(a);return d.join("")}}}function Lm(a){return((a=Math.exp(a))+1/a)/2}function Mm(a){return((a=Math.exp(a))-1/a)/2}function Nm(a){return((a=Math.exp(2*a))-1)/(a+1)}function Om(a,b){var c,d,e=a[0],f=a[1],g=a[2],h=b[0],i=b[1],j=b[2],k=h-e,l=i-f,m=k*k+l*l;if(m<aI)d=Math.log(j/g)/ZH,c=function(a){return[e+a*k,f+a*l,g*Math.exp(ZH*a*d)]};else{var n=Math.sqrt(m),o=(j*j-g*g+_H*m)/(2*g*$H*n),p=(j*j-g*g-_H*m)/(2*j*$H*n),q=Math.log(Math.sqrt(o*o+1)-o),r=Math.log(Math.sqrt(p*p+1)-p);d=(r-q)/ZH,c=function(a){var b=a*d,c=Lm(q),h=g/($H*n)*(c*Nm(ZH*b+q)-Mm(q));return[e+h*k,f+h*l,g*c/Lm(ZH*b+q)]}}return c.duration=1e3*d,c}function Pm(a){return function(b,c){var d=a((b=Yb(b)).h,(c=Yb(c)).h),e=wm(b.s,c.s),f=wm(b.l,c.l),g=wm(b.opacity,c.opacity);return function(a){return b.h=d(a),b.s=e(a),b.l=f(a),b.opacity=g(a),b+""}}}function Qm(a,b){var c=wm((a=ac(a)).l,(b=ac(b)).l),d=wm(a.a,b.a),e=wm(a.b,b.b),f=wm(a.opacity,b.opacity);return function(b){return a.l=c(b),a.a=d(b),a.b=e(b),a.opacity=f(b),a+""}}function Rm(a){return function(b,c){var d=a((b=hc(b)).h,(c=hc(c)).h),e=wm(b.c,c.c),f=wm(b.l,c.l),g=wm(b.opacity,c.opacity);return function(a){return b.h=d(a),b.c=e(a),b.l=f(a),b.opacity=g(a),b+""}}}function Sm(a){return function b(c){function d(b,d){var e=a((b=kc(b)).h,(d=kc(d)).h),f=wm(b.s,d.s),g=wm(b.l,d.l),h=wm(b.opacity,d.opacity);return function(a){return b.h=e(a),b.s=f(a),b.l=g(Math.pow(a,c)),b.opacity=h(a),b+""}}return c=+c,d.gamma=b,d}(1)}function Tm(a,b){for(var c=new Array(b),d=0;d<b;++d)c[d]=a(d/(b-1));return c}function Um(a){for(var b,c=-1,d=a.length,e=a[d-1],f=0;++c<d;)b=e,e=a[c],f+=b[1]*e[0]-b[0]*e[1];return f/2}function Vm(a){for(var b,c,d=-1,e=a.length,f=0,g=0,h=a[e-1],i=0;++d<e;)b=h,h=a[d],i+=c=b[0]*h[1]-h[0]*b[1],f+=(b[0]+h[0])*c,g+=(b[1]+h[1])*c;return i*=3,[f/i,g/i]}function Wm(a,b,c){return(b[0]-a[0])*(c[1]-a[1])-(b[1]-a[1])*(c[0]-a[0])}function Xm(a,b){return a[0]-b[0]||a[1]-b[1]}function Ym(a){for(var b=a.length,c=[0,1],d=2,e=2;e<b;++e){for(;d>1&&Wm(a[c[d-2]],a[c[d-1]],a[e])<=0;)--d;c[d++]=e}return c.slice(0,d)}function Zm(a){if((c=a.length)<3)return null;var b,c,d=new Array(c),e=new Array(c);for(b=0;b<c;++b)d[b]=[+a[b][0],+a[b][1],b];for(d.sort(Xm),b=0;b<c;++b)e[b]=[d[b][0],-d[b][1]];var f=Ym(d),g=Ym(e),h=g[0]===f[0],i=g[g.length-1]===f[f.length-1],j=[];for(b=f.length-1;b>=0;--b)j.push(a[d[f[b]][2]]);for(b=+h;b<g.length-i;++b)j.push(a[d[g[b]][2]]);return j}function $m(a,b){for(var c,d,e=a.length,f=a[e-1],g=b[0],h=b[1],i=f[0],j=f[1],k=!1,l=0;l<e;++l)f=a[l],c=f[0],d=f[1],d>h!=j>h&&g<(i-c)*(h-d)/(j-d)+c&&(k=!k),i=c,j=d;return k}function _m(a){for(var b,c,d=-1,e=a.length,f=a[e-1],g=f[0],h=f[1],i=0;++d<e;)b=g,c=h,f=a[d],g=f[0],h=f[1],b-=g,c-=h,i+=Math.sqrt(b*b+c*c);return i}function an(a){this._size=a,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function bn(a){if(!a._start)try{cn(a)}catch(b){if(a._tasks[a._ended+a._active-1])en(a,b);else if(!a._data)throw b}}function cn(a){for(;a._start=a._waiting&&a._active<a._size;){var b=a._ended+a._active,c=a._tasks[b],d=c.length-1,e=c[d];c[d]=dn(a,b),--a._waiting,++a._active,c=e.apply(null,c),a._tasks[b]&&(a._tasks[b]=c||iI)}}function dn(a,b){return function(c,d){a._tasks[b]&&(--a._active,++a._ended,a._tasks[b]=null,null==a._error&&(null!=c?en(a,c):(a._data[b]=d,a._waiting?bn(a):fn(a))))}}function en(a,b){var c,d=a._tasks.length;for(a._error=b,a._data=void 0,a._waiting=NaN;--d>=0;)if((c=a._tasks[d])&&(a._tasks[d]=null,c.abort))try{c.abort()}catch(a){}a._active=NaN,fn(a)}function fn(a){if(!a._active&&a._call){var b=a._data;a._data=void 0,a._call(a._error,b)}}function gn(a){if(null==a)a=1/0;else if(!((a=+a)>=1))throw new Error("invalid concurrency");return new an(a)}function hn(){return Math.random()}function jn(a,b){function c(a){var b,c=j.status;if(!c&&ln(j)||c>=200&&c<300||304===c){if(f)try{b=f.call(d,j)}catch(a){return void h.call("error",d,a)}else b=j;h.call("load",d,b)}else h.call("error",d,a)}var d,e,f,g,h=U("beforesend","progress","load","error"),i=Ke(),j=new XMLHttpRequest,k=null,l=null,m=0;if("undefined"==typeof XDomainRequest||"withCredentials"in j||!/^(http(s)?:)?\/\//.test(a)||(j=new XDomainRequest),"onload"in j?j.onload=j.onerror=j.ontimeout=c:j.onreadystatechange=function(a){j.readyState>3&&c(a)},j.onprogress=function(a){h.call("progress",d,a)},d={header:function(a,b){return a=(a+"").toLowerCase(),arguments.length<2?i.get(a):(null==b?i.remove(a):i.set(a,b+""),d)},mimeType:function(a){return arguments.length?(e=null==a?null:a+"",d):e},responseType:function(a){return arguments.length?(g=a,d):g},timeout:function(a){return arguments.length?(m=+a,d):m},user:function(a){return arguments.length<1?k:(k=null==a?null:a+"",d)},password:function(a){return arguments.length<1?l:(l=null==a?null:a+"",d)},response:function(a){return f=a,d},get:function(a,b){return d.send("GET",a,b)},post:function(a,b){return d.send("POST",a,b)},send:function(b,c,f){return null===k&&null===l?j.open(b,a,!0):j.open(b,a,!0,k,l),null==e||i.has("accept")||i.set("accept",e+",*/*"),j.setRequestHeader&&i.each(function(a,b){j.setRequestHeader(b,a)}),null!=e&&j.overrideMimeType&&j.overrideMimeType(e),null!=g&&(j.responseType=g),m>0&&(j.timeout=m),null==f&&"function"==typeof c&&(f=c,
+c=null),null!=f&&1===f.length&&(f=kn(f)),null!=f&&d.on("error",f).on("load",function(a){f(null,a)}),h.call("beforesend",d,j),j.send(null==c?null:c),d},abort:function(){return j.abort(),d},on:function(){var a=h.on.apply(h,arguments);return a===h?d:a}},null!=b){if("function"!=typeof b)throw new Error("invalid callback: "+b);return d.get(b)}return d}function kn(a){return function(b,c){a(null==b?c:null)}}function ln(a){var b=a.responseType;return b&&"text"!==b?a.response:a.responseText}function mn(a,b){return function(c,d){var e=jn(c).mimeType(a).response(b);if(null!=d){if("function"!=typeof d)throw new Error("invalid callback: "+d);return e.get(d)}return e}}function nn(a){return new Function("d","return {"+a.map(function(a,b){return JSON.stringify(a)+": d["+b+"]"}).join(",")+"}")}function on(a,b){var c=nn(a);return function(d,e){return b(c(d),e,a)}}function pn(a){var b=Object.create(null),c=[];return a.forEach(function(a){for(var d in a)d in b||c.push(b[d]=d)}),c}function qn(a){function b(a,b){var d,e,f=c(a,function(a,c){return d?d(a,c-1):(e=a,void(d=b?on(a,b):nn(a)))});return f.columns=e||[],f}function c(a,b){function c(){if(j)return uI;if(k)return k=!1,tI;var b,c,d=g;if(a.charCodeAt(d)===vI){for(;g++<f&&a.charCodeAt(g)!==vI||a.charCodeAt(++g)===vI;);return(b=g)>=f?j=!0:(c=a.charCodeAt(g++))===wI?k=!0:c===xI&&(k=!0,a.charCodeAt(g)===wI&&++g),a.slice(d+1,b-1).replace(/""/g,'"')}for(;g<f;){if((c=a.charCodeAt(b=g++))===wI)k=!0;else if(c===xI)k=!0,a.charCodeAt(g)===wI&&++g;else if(c!==i)continue;return a.slice(d,b)}return j=!0,a.slice(d,f)}var d,e=[],f=a.length,g=0,h=0,j=f<=0,k=!1;for(a.charCodeAt(f-1)===wI&&--f,a.charCodeAt(f-1)===xI&&--f;(d=c())!==uI;){for(var l=[];d!==tI&&d!==uI;)l.push(d),d=c();b&&null==(l=b(l,h++))||e.push(l)}return e}function d(b,c){return null==c&&(c=pn(b)),[c.map(g).join(a)].concat(b.map(function(b){return c.map(function(a){return g(b[a])}).join(a)})).join("\n")}function e(a){return a.map(f).join("\n")}function f(b){return b.map(g).join(a)}function g(a){return null==a?"":h.test(a+="")?'"'+a.replace(/"/g,'""')+'"':a}var h=new RegExp('["'+a+"\n\r]"),i=a.charCodeAt(0);return{parse:b,parseRows:c,format:d,formatRows:e}}function rn(a,b){return function(c,d,e){arguments.length<3&&(e=d,d=null);var f=jn(c).mimeType(a);return f.row=function(a){return arguments.length?f.response(sn(b,d=a)):d},f.row(d),e?f.get(e):f}}function sn(a,b){return function(c){return a(c.responseText,b)}}function tn(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function un(a){return 1===a.length&&(a=vn(a)),{left:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);d<e;){var f=d+e>>>1;a(b[f],c)<0?d=f+1:e=f}return d},right:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);d<e;){var f=d+e>>>1;a(b[f],c)>0?e=f:d=f+1}return d}}}function vn(a){return function(b,c){return tn(a(b),c)}}function wn(a){return null===a?NaN:+a}function xn(a,b,c){a=+a,b=+b,c=(e=arguments.length)<2?(b=a,a=0,1):e<3?1:+c;for(var d=-1,e=0|Math.max(0,Math.ceil((b-a)/c)),f=new Array(e);++d<e;)f[d]=a+d*c;return f}function yn(a,b,c){var d,e,f,g,h=-1;if(b=+b,a=+a,c=+c,a===b&&c>0)return[a];if((d=b<a)&&(e=a,a=b,b=e),0===(g=zn(a,b,c))||!isFinite(g))return[];if(g>0)for(a=Math.ceil(a/g),b=Math.floor(b/g),f=new Array(e=Math.ceil(b-a+1));++h<e;)f[h]=(a+h)*g;else for(a=Math.floor(a*g),b=Math.ceil(b*g),f=new Array(e=Math.ceil(a-b+1));++h<e;)f[h]=(a-h)/g;return d&&f.reverse(),f}function zn(a,b,c){var d=(b-a)/Math.max(0,c),e=Math.floor(Math.log(d)/Math.LN10),f=d/Math.pow(10,e);return e>=0?(f>=GI?10:f>=HI?5:f>=II?2:1)*Math.pow(10,e):-Math.pow(10,-e)/(f>=GI?10:f>=HI?5:f>=II?2:1)}function An(a,b,c){var d=Math.abs(b-a)/Math.max(0,c),e=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),f=d/e;return f>=GI?e*=10:f>=HI?e*=5:f>=II&&(e*=2),b<a?-e:e}function Bn(a,b,c){if(null==c&&(c=wn),d=a.length){if((b=+b)<=0||d<2)return+c(a[0],0,a);if(b>=1)return+c(a[d-1],d-1,a);var d,e=(d-1)*b,f=Math.floor(e),g=+c(a[f],f,a),h=+c(a[f+1],f+1,a);return g+(h-g)*(e-f)}}function Cn(a){function b(b){var f=b+"",g=c.get(f);if(!g){if(e!==MI)return e;c.set(f,g=d.push(b))}return a[(g-1)%a.length]}var c=Ke(),d=[],e=MI;return a=null==a?[]:LI.call(a),b.domain=function(a){if(!arguments.length)return d.slice();d=[],c=Ke();for(var e,f,g=-1,h=a.length;++g<h;)c.has(f=(e=a[g])+"")||c.set(f,d.push(e));return b},b.range=function(c){return arguments.length?(a=LI.call(c),b):a.slice()},b.unknown=function(a){return arguments.length?(e=a,b):e},b.copy=function(){return Cn().domain(d).range(a).unknown(e)},b}function Dn(){function a(){var a=e().length,d=g[1]<g[0],l=g[d-0],m=g[1-d];b=(m-l)/Math.max(1,a-i+2*j),h&&(b=Math.floor(b)),l+=(m-l-b*(a-i))*k,c=b*(1-i),h&&(l=Math.round(l),c=Math.round(c));var n=xn(a).map(function(a){return l+b*a});return f(d?n.reverse():n)}var b,c,d=Cn().unknown(void 0),e=d.domain,f=d.range,g=[0,1],h=!1,i=0,j=0,k=.5;return delete d.unknown,d.domain=function(b){return arguments.length?(e(b),a()):e()},d.range=function(b){return arguments.length?(g=[+b[0],+b[1]],a()):g.slice()},d.rangeRound=function(b){return g=[+b[0],+b[1]],h=!0,a()},d.bandwidth=function(){return c},d.step=function(){return b},d.round=function(b){return arguments.length?(h=!!b,a()):h},d.padding=function(b){return arguments.length?(i=j=Math.max(0,Math.min(1,b)),a()):i},d.paddingInner=function(b){return arguments.length?(i=Math.max(0,Math.min(1,b)),a()):i},d.paddingOuter=function(b){return arguments.length?(j=Math.max(0,Math.min(1,b)),a()):j},d.align=function(b){return arguments.length?(k=Math.max(0,Math.min(1,b)),a()):k},d.copy=function(){return Dn().domain(e()).range(g).round(h).paddingInner(i).paddingOuter(j).align(k)},a()}function En(a){var b=a.copy;return a.padding=a.paddingOuter,delete a.paddingInner,delete a.paddingOuter,a.copy=function(){return En(b())},a}function Fn(){return En(Dn().paddingInner(1))}function Gn(a){return function(){return a}}function Hn(a,b){return function(c){return a+c*b}}function In(a,b,c){return a=Math.pow(a,c),b=Math.pow(b,c)-a,c=1/c,function(d){return Math.pow(a+d*b,c)}}function Jn(a,b){var c=b-a;return c?Hn(a,c>180||c<-180?c-360*Math.round(c/360):c):Gn(isNaN(a)?b:a)}function Kn(a){return 1===(a=+a)?Ln:function(b,c){return c-b?In(b,c,a):Gn(isNaN(b)?c:b)}}function Ln(a,b){var c=b-a;return c?Hn(a,c):Gn(isNaN(a)?b:a)}function Mn(a,b){var c,d=b?b.length:0,e=a?Math.min(d,a.length):0,f=new Array(e),g=new Array(d);for(c=0;c<e;++c)f[c]=Tn(a[c],b[c]);for(;c<d;++c)g[c]=b[c];return function(a){for(c=0;c<e;++c)g[c]=f[c](a);return g}}function Nn(a,b){var c=new Date;return a=+a,b-=a,function(d){return c.setTime(a+b*d),c}}function On(a,b){return a=+a,b-=a,function(c){return a+b*c}}function Pn(a,b){var c,d={},e={};null!==a&&"object"==typeof a||(a={}),null!==b&&"object"==typeof b||(b={});for(c in b)c in a?d[c]=Tn(a[c],b[c]):e[c]=b[c];return function(a){for(c in d)e[c]=d[c](a);return e}}function Qn(a){return function(){return a}}function Rn(a){return function(b){return a(b)+""}}function Sn(a,b){var c,d,e,f=OI.lastIndex=PI.lastIndex=0,g=-1,h=[],i=[];for(a+="",b+="";(c=OI.exec(a))&&(d=PI.exec(b));)(e=d.index)>f&&(e=b.slice(f,e),h[g]?h[g]+=e:h[++g]=e),(c=c[0])===(d=d[0])?h[g]?h[g]+=d:h[++g]=d:(h[++g]=null,i.push({i:g,x:On(c,d)})),f=PI.lastIndex;return f<b.length&&(e=b.slice(f),h[g]?h[g]+=e:h[++g]=e),h.length<2?i[0]?Rn(i[0].x):Qn(b):(b=i.length,function(a){for(var c,d=0;d<b;++d)h[(c=i[d]).i]=c.x(a);return h.join("")})}function Tn(a,b){var c,d=typeof b;return null==b||"boolean"===d?Gn(b):("number"===d?On:"string"===d?(c=Qb(b))?(b=c,NI):Sn:b instanceof Qb?NI:b instanceof Date?Nn:Array.isArray(b)?Mn:"function"!=typeof b.valueOf&&"function"!=typeof b.toString||isNaN(b)?Pn:On)(a,b)}function Un(a,b){return a=+a,b-=a,function(c){return Math.round(a+b*c)}}function Vn(a){return function b(c){function d(b,d){var e=a((b=kc(b)).h,(d=kc(d)).h),f=Ln(b.s,d.s),g=Ln(b.l,d.l),h=Ln(b.opacity,d.opacity);return function(a){return b.h=e(a),b.s=f(a),b.l=g(Math.pow(a,c)),b.opacity=h(a),b+""}}return c=+c,d.gamma=b,d}(1)}function Wn(a){return function(){return a}}function Xn(a){return+a}function Yn(a,b){return(b-=a=+a)?function(c){return(c-a)/b}:Wn(b)}function Zn(a){return function(b,c){var d=a(b=+b,c=+c);return function(a){return a<=b?0:a>=c?1:d(a)}}}function $n(a){return function(b,c){var d=a(b=+b,c=+c);return function(a){return a<=0?b:a>=1?c:d(a)}}}function _n(a,b,c,d){var e=a[0],f=a[1],g=b[0],h=b[1];return f<e?(e=c(f,e),g=d(h,g)):(e=c(e,f),g=d(g,h)),function(a){return g(e(a))}}function ao(a,b,c,d){var e=Math.min(a.length,b.length)-1,f=new Array(e),g=new Array(e),h=-1;for(a[e]<a[0]&&(a=a.slice().reverse(),b=b.slice().reverse());++h<e;)f[h]=c(a[h],a[h+1]),g[h]=d(b[h],b[h+1]);return function(b){var c=FI(a,b,1,e)-1;return g[c](f[c](b))}}function bo(a,b){return b.domain(a.domain()).range(a.range()).interpolate(a.interpolate()).clamp(a.clamp())}function co(a,b){function c(){return e=Math.min(h.length,i.length)>2?ao:_n,f=g=null,d}function d(b){return(f||(f=e(h,i,k?Zn(a):a,j)))(+b)}var e,f,g,h=SI,i=SI,j=Tn,k=!1;return d.invert=function(a){return(g||(g=e(i,h,Yn,k?$n(b):b)))(+a)},d.domain=function(a){return arguments.length?(h=KI.call(a,Xn),c()):h.slice()},d.range=function(a){return arguments.length?(i=LI.call(a),c()):i.slice()},d.rangeRound=function(a){return i=LI.call(a),j=Un,c()},d.clamp=function(a){return arguments.length?(k=!!a,c()):k},d.interpolate=function(a){return arguments.length?(j=a,c()):j},c()}function eo(a,b){if((c=(a=b?a.toExponential(b-1):a.toExponential()).indexOf("e"))<0)return null;var c,d=a.slice(0,c);return[d.length>1?d[0]+d.slice(2):d,+a.slice(c+1)]}function fo(a){return a=eo(Math.abs(a)),a?a[1]:NaN}function go(a,b){return function(c,d){for(var e=c.length,f=[],g=0,h=a[0],i=0;e>0&&h>0&&(i+h+1>d&&(h=Math.max(1,d-i)),f.push(c.substring(e-=h,e+h)),!((i+=h+1)>d));)h=a[g=(g+1)%a.length];return f.reverse().join(b)}}function ho(a){return function(b){return b.replace(/[0-9]/g,function(b){return a[+b]})}}function io(a,b){a=a.toPrecision(b);a:for(var c,d=a.length,e=1,f=-1;e<d;++e)switch(a[e]){case".":f=c=e;break;case"0":0===f&&(f=e),c=e;break;case"e":break a;default:f>0&&(f=0)}return f>0?a.slice(0,f)+a.slice(c+1):a}function jo(a,b){var c=eo(a,b);if(!c)return a+"";var d=c[0],e=c[1],f=e-(QI=3*Math.max(-8,Math.min(8,Math.floor(e/3))))+1,g=d.length;return f===g?d:f>g?d+new Array(f-g+1).join("0"):f>0?d.slice(0,f)+"."+d.slice(f):"0."+new Array(1-f).join("0")+eo(a,Math.max(0,b+f-1))[0]}function ko(a,b){var c=eo(a,b);if(!c)return a+"";var d=c[0],e=c[1];return e<0?"0."+new Array(-e).join("0")+d:d.length>e+1?d.slice(0,e+1)+"."+d.slice(e+1):d+new Array(e-d.length+2).join("0")}function lo(a){return new mo(a)}function mo(a){if(!(b=UI.exec(a)))throw new Error("invalid format: "+a);var b,c=b[1]||" ",d=b[2]||">",e=b[3]||"-",f=b[4]||"",g=!!b[5],h=b[6]&&+b[6],i=!!b[7],j=b[8]&&+b[8].slice(1),k=b[9]||"";"n"===k?(i=!0,k="g"):TI[k]||(k=""),(g||"0"===c&&"="===d)&&(g=!0,c="0",d="="),this.fill=c,this.align=d,this.sign=e,this.symbol=f,this.zero=g,this.width=h,this.comma=i,this.precision=j,this.type=k}function no(a){return a}function oo(a){function b(a){function b(a){var b,e,h,k=q,u=r;if("c"===p)u=s(a)+u,a="";else{a=+a;var v=a<0;if(a=s(Math.abs(a),o),v&&0===+a&&(v=!1),k=(v?"("===j?j:"-":"-"===j||"("===j?"":j)+k,u=("s"===p?YI[8+QI/3]:"")+u+(v&&"("===j?")":""),t)for(b=-1,e=a.length;++b<e;)if(h=a.charCodeAt(b),48>h||h>57){u=(46===h?f+a.slice(b+1):a.slice(b))+u,a=a.slice(0,b);break}}n&&!l&&(a=d(a,1/0));var w=k.length+a.length+u.length,x=w<m?new Array(m-w+1).join(c):"";switch(n&&l&&(a=d(x+a,x.length?m-u.length:1/0),x=""),i){case"<":a=k+a+u+x;break;case"=":a=k+x+a+u;break;case"^":a=x.slice(0,w=x.length>>1)+k+a+u+x.slice(w);break;default:a=x+k+a+u}return g(a)}a=lo(a);var c=a.fill,i=a.align,j=a.sign,k=a.symbol,l=a.zero,m=a.width,n=a.comma,o=a.precision,p=a.type,q="$"===k?e[0]:"#"===k&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",r="$"===k?e[1]:/[%p]/.test(p)?h:"",s=TI[p],t=!p||/[defgprs%]/.test(p);return o=null==o?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,o)):Math.max(0,Math.min(20,o)),b.toString=function(){return a+""},b}function c(a,c){var d=b((a=lo(a),a.type="f",a)),e=3*Math.max(-8,Math.min(8,Math.floor(fo(c)/3))),f=Math.pow(10,-e),g=YI[8+e/3];return function(a){return d(f*a)+g}}var d=a.grouping&&a.thousands?go(a.grouping,a.thousands):no,e=a.currency,f=a.decimal,g=a.numerals?ho(a.numerals):no,h=a.percent||"%";return{format:b,formatPrefix:c}}function po(a){return VI=oo(a),WI=VI.format,XI=VI.formatPrefix,VI}function qo(a){return Math.max(0,-fo(Math.abs(a)))}function ro(a,b){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(fo(b)/3)))-fo(Math.abs(a)))}function so(a,b){return a=Math.abs(a),b=Math.abs(b)-a,Math.max(0,fo(b)-fo(a))+1}function to(a,b,c){var d,e=a[0],f=a[a.length-1],g=An(e,f,null==b?10:b);switch(c=lo(null==c?",f":c),c.type){case"s":var h=Math.max(Math.abs(e),Math.abs(f));return null!=c.precision||isNaN(d=ro(g,h))||(c.precision=d),XI(c,h);case"":case"e":case"g":case"p":case"r":null!=c.precision||isNaN(d=so(g,Math.max(Math.abs(e),Math.abs(f))))||(c.precision=d-("e"===c.type));break;case"f":case"%":null!=c.precision||isNaN(d=qo(g))||(c.precision=d-2*("%"===c.type))}return WI(c)}function uo(a){var b=a.domain;return a.ticks=function(a){var c=b();return yn(c[0],c[c.length-1],null==a?10:a)},a.tickFormat=function(a,c){return to(b(),a,c)},a.nice=function(c){null==c&&(c=10);var d,e=b(),f=0,g=e.length-1,h=e[f],i=e[g];return i<h&&(d=h,h=i,i=d,d=f,f=g,g=d),d=zn(h,i,c),d>0?(h=Math.floor(h/d)*d,i=Math.ceil(i/d)*d,d=zn(h,i,c)):d<0&&(h=Math.ceil(h*d)/d,i=Math.floor(i*d)/d,d=zn(h,i,c)),d>0?(e[f]=Math.floor(h/d)*d,e[g]=Math.ceil(i/d)*d,b(e)):d<0&&(e[f]=Math.ceil(h*d)/d,e[g]=Math.floor(i*d)/d,b(e)),a},a}function vo(){var a=co(Yn,On);return a.copy=function(){return bo(a,vo())},uo(a)}function wo(){function a(a){return+a}var b=[0,1];return a.invert=a,a.domain=a.range=function(c){return arguments.length?(b=KI.call(c,Xn),a):b.slice()},a.copy=function(){return wo().domain(b)},uo(a)}function xo(a,b){a=a.slice();var c,d=0,e=a.length-1,f=a[d],g=a[e];return g<f&&(c=d,d=e,e=c,c=f,f=g,g=c),a[d]=b.floor(f),a[e]=b.ceil(g),a}function yo(a,b){return(b=Math.log(b/a))?function(c){return Math.log(c/a)/b}:Wn(b)}function zo(a,b){return a<0?function(c){return-Math.pow(-b,c)*Math.pow(-a,1-c)}:function(c){return Math.pow(b,c)*Math.pow(a,1-c)}}function Ao(a){return isFinite(a)?+("1e"+a):a<0?0:a}function Bo(a){return 10===a?Ao:a===Math.E?Math.exp:function(b){return Math.pow(a,b)}}function Co(a){return a===Math.E?Math.log:10===a&&Math.log10||2===a&&Math.log2||(a=Math.log(a),function(b){return Math.log(b)/a})}function Do(a){return function(b){return-a(-b)}}function Eo(){function a(){return e=Co(d),f=Bo(d),c()[0]<0&&(e=Do(e),f=Do(f)),b}var b=co(yo,zo).domain([1,10]),c=b.domain,d=10,e=Co(10),f=Bo(10);return b.base=function(b){return arguments.length?(d=+b,a()):d},b.domain=function(b){return arguments.length?(c(b),a()):c()},b.ticks=function(a){var b,g=c(),h=g[0],i=g[g.length-1];(b=i<h)&&(m=h,h=i,i=m);var j,k,l,m=e(h),n=e(i),o=null==a?10:+a,p=[];if(!(d%1)&&n-m<o){if(m=Math.round(m)-1,n=Math.round(n)+1,h>0){for(;m<n;++m)for(k=1,j=f(m);k<d;++k)if(l=j*k,!(l<h)){if(l>i)break;p.push(l)}}else for(;m<n;++m)for(k=d-1,j=f(m);k>=1;--k)if(l=j*k,!(l<h)){if(l>i)break;p.push(l)}}else p=yn(m,n,Math.min(n-m,o)).map(f);return b?p.reverse():p},b.tickFormat=function(a,c){if(null==c&&(c=10===d?".0e":","),"function"!=typeof c&&(c=WI(c)),a===1/0)return c;null==a&&(a=10);var g=Math.max(1,d*a/b.ticks().length);return function(a){var b=a/f(Math.round(e(a)));return b*d<d-.5&&(b*=d),b<=g?c(a):""}},b.nice=function(){return c(xo(c(),{floor:function(a){return f(Math.floor(e(a)))},ceil:function(a){return f(Math.ceil(e(a)))}}))},b.copy=function(){return bo(b,Eo().base(d))},b}function Fo(a,b){return a<0?-Math.pow(-a,b):Math.pow(a,b)}function Go(){function a(a,b){return(b=Fo(b,c)-(a=Fo(a,c)))?function(d){return(Fo(d,c)-a)/b}:Wn(b)}function b(a,b){return b=Fo(b,c)-(a=Fo(a,c)),function(d){return Fo(a+b*d,1/c)}}var c=1,d=co(a,b),e=d.domain;return d.exponent=function(a){return arguments.length?(c=+a,e(e())):c},d.copy=function(){return bo(d,Go().exponent(c))},uo(d)}function Ho(){return Go().exponent(.5)}function Io(){function a(){var a=0,f=Math.max(1,d.length);for(e=new Array(f-1);++a<f;)e[a-1]=Bn(c,a/f);return b}function b(a){if(!isNaN(a=+a))return d[FI(e,a)]}var c=[],d=[],e=[];return b.invertExtent=function(a){var b=d.indexOf(a);return b<0?[NaN,NaN]:[b>0?e[b-1]:c[0],b<e.length?e[b]:c[c.length-1]]},b.domain=function(b){if(!arguments.length)return c.slice();c=[];for(var d,e=0,f=b.length;e<f;++e)d=b[e],null==d||isNaN(d=+d)||c.push(d);return c.sort(tn),a()},b.range=function(b){return arguments.length?(d=LI.call(b),a()):d.slice()},b.quantiles=function(){return e.slice()},b.copy=function(){return Io().domain(c).range(d)},b}function Jo(){function a(a){if(a<=a)return g[FI(f,a,0,e)]}function b(){var b=-1;for(f=new Array(e);++b<e;)f[b]=((b+1)*d-(b-e)*c)/(e+1);return a}var c=0,d=1,e=1,f=[.5],g=[0,1];return a.domain=function(a){return arguments.length?(c=+a[0],d=+a[1],b()):[c,d]},a.range=function(a){return arguments.length?(e=(g=LI.call(a)).length-1,b()):g.slice()},a.invertExtent=function(a){var b=g.indexOf(a);return b<0?[NaN,NaN]:b<1?[c,f[0]]:b>=e?[f[e-1],d]:[f[b-1],f[b]]},a.copy=function(){return Jo().domain([c,d]).range(g)},uo(a)}function Ko(){function a(a){if(a<=a)return c[FI(b,a,0,d)]}var b=[.5],c=[0,1],d=1;return a.domain=function(e){return arguments.length?(b=LI.call(e),d=Math.min(b.length,c.length-1),a):b.slice()},a.range=function(e){return arguments.length?(c=LI.call(e),d=Math.min(b.length,c.length-1),a):c.slice()},a.invertExtent=function(a){var d=c.indexOf(a);return[b[d-1],b[d]]},a.copy=function(){return Ko().domain(b).range(c)},a}function Lo(a,b,c,d){function e(b){return a(b=new Date(+b)),b}return e.floor=e,e.ceil=function(c){return a(c=new Date(c-1)),b(c,1),a(c),c},e.round=function(a){var b=e(a),c=e.ceil(a);return a-b<c-a?b:c},e.offset=function(a,c){return b(a=new Date(+a),null==c?1:Math.floor(c)),a},e.range=function(c,d,f){var g,h=[];if(c=e.ceil(c),f=null==f?1:Math.floor(f),!(c<d&&f>0))return h;do h.push(g=new Date(+c)),b(c,f),a(c);while(g<c&&c<d);return h},e.filter=function(c){return Lo(function(b){if(b>=b)for(;a(b),!c(b);)b.setTime(b-1)},function(a,d){if(a>=a)if(d<0)for(;++d<=0;)for(;b(a,-1),!c(a););else for(;--d>=0;)for(;b(a,1),!c(a););})},c&&(e.count=function(b,d){return ZI.setTime(+b),$I.setTime(+d),a(ZI),a($I),Math.floor(c(ZI,$I))},e.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?e.filter(d?function(b){return d(b)%a===0}:function(b){return e.count(0,b)%a===0}):e:null}),e}function Mo(a){return Lo(function(b){b.setDate(b.getDate()-(b.getDay()+7-a)%7),b.setHours(0,0,0,0)},function(a,b){a.setDate(a.getDate()+7*b)},function(a,b){return(b-a-(b.getTimezoneOffset()-a.getTimezoneOffset())*bJ)/eJ})}function No(a){return Lo(function(b){b.setUTCDate(b.getUTCDate()-(b.getUTCDay()+7-a)%7),b.setUTCHours(0,0,0,0)},function(a,b){a.setUTCDate(a.getUTCDate()+7*b)},function(a,b){return(b-a)/eJ})}function Oo(a){if(0<=a.y&&a.y<100){var b=new Date(-1,a.m,a.d,a.H,a.M,a.S,a.L);return b.setFullYear(a.y),b}return new Date(a.y,a.m,a.d,a.H,a.M,a.S,a.L)}function Po(a){if(0<=a.y&&a.y<100){var b=new Date(Date.UTC(-1,a.m,a.d,a.H,a.M,a.S,a.L));return b.setUTCFullYear(a.y),b}return new Date(Date.UTC(a.y,a.m,a.d,a.H,a.M,a.S,a.L))}function Qo(a){return{y:a,m:0,d:1,H:0,M:0,S:0,L:0}}function Ro(a){function b(a,b){return function(c){var d,e,f,g=[],h=-1,i=0,j=a.length;for(c instanceof Date||(c=new Date(+c));++h<j;)37===a.charCodeAt(h)&&(g.push(a.slice(i,h)),null!=(e=BJ[d=a.charAt(++h)])?d=a.charAt(++h):e="e"===d?" ":"0",(f=b[d])&&(d=f(c,e)),g.push(d),i=h+1);return g.push(a.slice(i,h)),g.join("")}}function c(a,b){return function(c){var e,f,g=Qo(1900),h=d(g,a,c+="",0);if(h!=c.length)return null;if("Q"in g)return new Date(g.Q);if("p"in g&&(g.H=g.H%12+12*g.p),"V"in g){if(g.V<1||g.V>53)return null;"w"in g||(g.w=1),"Z"in g?(e=Po(Qo(g.y)),f=e.getUTCDay(),e=f>4||0===f?sJ.ceil(e):sJ(e),e=qJ.offset(e,7*(g.V-1)),g.y=e.getUTCFullYear(),g.m=e.getUTCMonth(),g.d=e.getUTCDate()+(g.w+6)%7):(e=b(Qo(g.y)),f=e.getDay(),e=f>4||0===f?kJ.ceil(e):kJ(e),e=iJ.offset(e,7*(g.V-1)),g.y=e.getFullYear(),g.m=e.getMonth(),g.d=e.getDate()+(g.w+6)%7)}else("W"in g||"U"in g)&&("w"in g||(g.w="u"in g?g.u%7:"W"in g?1:0),f="Z"in g?Po(Qo(g.y)).getUTCDay():b(Qo(g.y)).getDay(),g.m=0,g.d="W"in g?(g.w+6)%7+7*g.W-(f+5)%7:g.w+7*g.U-(f+6)%7);return"Z"in g?(g.H+=g.Z/100|0,g.M+=g.Z%100,Po(g)):b(g)}}function d(a,b,c,d){for(var e,f,g=0,h=b.length,i=c.length;g<h;){if(d>=i)return-1;if(e=b.charCodeAt(g++),37===e){if(e=b.charAt(g++),f=Q[e in BJ?b.charAt(g++):e],!f||(d=f(a,c,d))<0)return-1}else if(e!=c.charCodeAt(d++))return-1}return d}function e(a,b,c){var d=E.exec(b.slice(c));return d?(a.p=F[d[0].toLowerCase()],c+d[0].length):-1}function f(a,b,c){var d=I.exec(b.slice(c));return d?(a.w=J[d[0].toLowerCase()],c+d[0].length):-1}function g(a,b,c){var d=G.exec(b.slice(c));return d?(a.w=H[d[0].toLowerCase()],c+d[0].length):-1}function h(a,b,c){var d=M.exec(b.slice(c));return d?(a.m=N[d[0].toLowerCase()],c+d[0].length):-1}function i(a,b,c){var d=K.exec(b.slice(c));return d?(a.m=L[d[0].toLowerCase()],c+d[0].length):-1}function j(a,b,c){return d(a,w,b,c)}function k(a,b,c){return d(a,x,b,c)}function l(a,b,c){return d(a,y,b,c)}function m(a){return B[a.getDay()]}function n(a){return A[a.getDay()]}function o(a){return D[a.getMonth()]}function p(a){return C[a.getMonth()]}function q(a){return z[+(a.getHours()>=12)]}function r(a){return B[a.getUTCDay()]}function s(a){return A[a.getUTCDay()]}function t(a){return D[a.getUTCMonth()]}function u(a){return C[a.getUTCMonth()]}function v(a){return z[+(a.getUTCHours()>=12)]}var w=a.dateTime,x=a.date,y=a.time,z=a.periods,A=a.days,B=a.shortDays,C=a.months,D=a.shortMonths,E=Uo(z),F=Vo(z),G=Uo(A),H=Vo(A),I=Uo(B),J=Vo(B),K=Uo(C),L=Vo(C),M=Uo(D),N=Vo(D),O={a:m,A:n,b:o,B:p,c:null,d:np,e:np,f:sp,H:op,I:pp,j:qp,L:rp,m:tp,M:up,p:q,Q:Wp,s:Xp,S:vp,u:wp,U:xp,V:yp,w:zp,W:Ap,x:null,X:null,y:Bp,Y:Cp,Z:Dp,"%":Vp},P={a:r,A:s,b:t,B:u,c:null,d:Ep,e:Ep,f:Jp,H:Fp,I:Gp,j:Hp,L:Ip,m:Kp,M:Lp,p:v,Q:Wp,s:Xp,S:Mp,u:Np,U:Op,V:Pp,w:Qp,W:Rp,x:null,X:null,y:Sp,Y:Tp,Z:Up,"%":Vp},Q={a:f,A:g,b:h,B:i,c:j,d:dp,e:dp,f:jp,H:fp,I:fp,j:ep,L:ip,m:cp,M:gp,p:e,Q:lp,s:mp,S:hp,u:Xo,U:Yo,V:Zo,w:Wo,W:$o,x:k,X:l,y:ap,Y:_o,Z:bp,"%":kp};return O.x=b(x,O),O.X=b(y,O),O.c=b(w,O),P.x=b(x,P),P.X=b(y,P),P.c=b(w,P),{format:function(a){var c=b(a+="",O);return c.toString=function(){return a},c},parse:function(a){var b=c(a+="",Oo);return b.toString=function(){return a},b},utcFormat:function(a){var c=b(a+="",P);return c.toString=function(){return a},c},utcParse:function(a){var b=c(a,Po);return b.toString=function(){return a},b}}}function So(a,b,c){var d=a<0?"-":"",e=(d?-a:a)+"",f=e.length;return d+(f<c?new Array(c-f+1).join(b)+e:e)}function To(a){return a.replace(EJ,"\\$&")}function Uo(a){return new RegExp("^(?:"+a.map(To).join("|")+")","i")}function Vo(a){for(var b={},c=-1,d=a.length;++c<d;)b[a[c].toLowerCase()]=c;return b}function Wo(a,b,c){var d=CJ.exec(b.slice(c,c+1));return d?(a.w=+d[0],c+d[0].length):-1}function Xo(a,b,c){var d=CJ.exec(b.slice(c,c+1));return d?(a.u=+d[0],c+d[0].length):-1}function Yo(a,b,c){var d=CJ.exec(b.slice(c,c+2));return d?(a.U=+d[0],c+d[0].length):-1}function Zo(a,b,c){var d=CJ.exec(b.slice(c,c+2));return d?(a.V=+d[0],c+d[0].length):-1}function $o(a,b,c){var d=CJ.exec(b.slice(c,c+2));return d?(a.W=+d[0],c+d[0].length):-1}function _o(a,b,c){var d=CJ.exec(b.slice(c,c+4));return d?(a.y=+d[0],c+d[0].length):-1}function ap(a,b,c){var d=CJ.exec(b.slice(c,c+2));return d?(a.y=+d[0]+(+d[0]>68?1900:2e3),c+d[0].length):-1}function bp(a,b,c){var d=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(b.slice(c,c+6));return d?(a.Z=d[1]?0:-(d[2]+(d[3]||"00")),c+d[0].length):-1}function cp(a,b,c){var d=CJ.exec(b.slice(c,c+2));return d?(a.m=d[0]-1,c+d[0].length):-1}function dp(a,b,c){var d=CJ.exec(b.slice(c,c+2));return d?(a.d=+d[0],c+d[0].length):-1}function ep(a,b,c){var d=CJ.exec(b.slice(c,c+3));return d?(a.m=0,a.d=+d[0],c+d[0].length):-1}function fp(a,b,c){var d=CJ.exec(b.slice(c,c+2));return d?(a.H=+d[0],c+d[0].length):-1}function gp(a,b,c){var d=CJ.exec(b.slice(c,c+2));return d?(a.M=+d[0],c+d[0].length):-1}function hp(a,b,c){var d=CJ.exec(b.slice(c,c+2));return d?(a.S=+d[0],c+d[0].length):-1}function ip(a,b,c){var d=CJ.exec(b.slice(c,c+3));return d?(a.L=+d[0],c+d[0].length):-1}function jp(a,b,c){var d=CJ.exec(b.slice(c,c+6));return d?(a.L=Math.floor(d[0]/1e3),c+d[0].length):-1}function kp(a,b,c){var d=DJ.exec(b.slice(c,c+1));return d?c+d[0].length:-1}function lp(a,b,c){var d=CJ.exec(b.slice(c));return d?(a.Q=+d[0],c+d[0].length):-1}function mp(a,b,c){var d=CJ.exec(b.slice(c));return d?(a.Q=1e3*+d[0],c+d[0].length):-1}function np(a,b){return So(a.getDate(),b,2)}function op(a,b){return So(a.getHours(),b,2)}function pp(a,b){return So(a.getHours()%12||12,b,2)}function qp(a,b){return So(1+iJ.count(nJ(a),a),b,3)}function rp(a,b){return So(a.getMilliseconds(),b,3)}function sp(a,b){return rp(a,b)+"000"}function tp(a,b){return So(a.getMonth()+1,b,2)}function up(a,b){return So(a.getMinutes(),b,2)}function vp(a,b){return So(a.getSeconds(),b,2)}function wp(a){var b=a.getDay();return 0===b?7:b}function xp(a,b){return So(jJ.count(nJ(a),a),b,2)}function yp(a,b){var c=a.getDay();return a=c>=4||0===c?lJ(a):lJ.ceil(a),So(lJ.count(nJ(a),a)+(4===nJ(a).getDay()),b,2)}function zp(a){return a.getDay()}function Ap(a,b){return So(kJ.count(nJ(a),a),b,2)}function Bp(a,b){return So(a.getFullYear()%100,b,2)}function Cp(a,b){return So(a.getFullYear()%1e4,b,4)}function Dp(a){var b=a.getTimezoneOffset();return(b>0?"-":(b*=-1,"+"))+So(b/60|0,"0",2)+So(b%60,"0",2)}function Ep(a,b){return So(a.getUTCDate(),b,2)}function Fp(a,b){return So(a.getUTCHours(),b,2)}function Gp(a,b){return So(a.getUTCHours()%12||12,b,2)}function Hp(a,b){return So(1+qJ.count(vJ(a),a),b,3)}function Ip(a,b){return So(a.getUTCMilliseconds(),b,3)}function Jp(a,b){return Ip(a,b)+"000"}function Kp(a,b){return So(a.getUTCMonth()+1,b,2)}function Lp(a,b){return So(a.getUTCMinutes(),b,2)}function Mp(a,b){return So(a.getUTCSeconds(),b,2)}function Np(a){var b=a.getUTCDay();return 0===b?7:b}function Op(a,b){return So(rJ.count(vJ(a),a),b,2)}function Pp(a,b){var c=a.getUTCDay();return a=c>=4||0===c?tJ(a):tJ.ceil(a),So(tJ.count(vJ(a),a)+(4===vJ(a).getUTCDay()),b,2)}function Qp(a){return a.getUTCDay()}function Rp(a,b){return So(sJ.count(vJ(a),a),b,2)}function Sp(a,b){return So(a.getUTCFullYear()%100,b,2)}function Tp(a,b){return So(a.getUTCFullYear()%1e4,b,4)}function Up(){return"+0000"}function Vp(){return"%"}function Wp(a){return+a}function Xp(a){return Math.floor(+a/1e3)}function Yp(a){return wJ=Ro(a),xJ=wJ.format,yJ=wJ.parse,zJ=wJ.utcFormat,AJ=wJ.utcParse,wJ}function Zp(a){return a.toISOString()}function $p(a){var b=new Date(a);return isNaN(b)?null:b}function _p(a){return new Date(a)}function aq(a){return a instanceof Date?+a:+new Date(+a)}function bq(a,b,c,d,e,f,g,h,i){function j(h){return(g(h)<h?o:f(h)<h?p:e(h)<h?q:d(h)<h?r:b(h)<h?c(h)<h?s:t:a(h)<h?u:v)(h)}function k(b,c,d,e){if(null==b&&(b=10),"number"==typeof b){var f=Math.abs(d-c)/b,g=un(function(a){return a[2]}).right(w,f);g===w.length?(e=An(c/MJ,d/MJ,b),b=a):g?(g=w[f/w[g-1][2]<w[g][2]/f?g-1:g],e=g[1],b=g[0]):(e=An(c,d,b),b=h)}return null==e?b:b.every(e)}var l=co(Yn,On),m=l.invert,n=l.domain,o=i(".%L"),p=i(":%S"),q=i("%I:%M"),r=i("%I %p"),s=i("%a %d"),t=i("%b %d"),u=i("%B"),v=i("%Y"),w=[[g,1,GJ],[g,5,5*GJ],[g,15,15*GJ],[g,30,30*GJ],[f,1,HJ],[f,5,5*HJ],[f,15,15*HJ],[f,30,30*HJ],[e,1,IJ],[e,3,3*IJ],[e,6,6*IJ],[e,12,12*IJ],[d,1,JJ],[d,2,2*JJ],[c,1,KJ],[b,1,LJ],[b,3,3*LJ],[a,1,MJ]];return l.invert=function(a){return new Date(m(a))},l.domain=function(a){return arguments.length?n(KI.call(a,aq)):n().map(_p)},l.ticks=function(a,b){var c,d=n(),e=d[0],f=d[d.length-1],g=f<e;return g&&(c=e,e=f,f=c),c=k(a,e,f,b),c=c?c.range(e,f+1):[],g?c.reverse():c},l.tickFormat=function(a,b){return null==b?j:i(b)},l.nice=function(a,b){var c=n();return(a=k(a,c[0],c[c.length-1],b))?n(xo(c,a)):l},l.copy=function(){return bo(l,bq(a,b,c,d,e,f,g,h,i))},l}function cq(){return bq(nJ,mJ,jJ,iJ,hJ,gJ,fJ,_I,xJ).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function dq(){return bq(vJ,uJ,rJ,qJ,pJ,oJ,fJ,_I,zJ).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function eq(a){return a.match(/.{6}/g).map(function(a){return"#"+a})}function fq(a){(a<0||a>1)&&(a-=Math.floor(a));var b=Math.abs(a-.5);return UJ.h=360*a-100,UJ.s=1.5-1.5*b,UJ.l=.8-.9*b,UJ+""}function gq(a){var b=a.length;return function(c){return a[Math.max(0,Math.min(b-1,Math.floor(c*b)))]}}function hq(a){function b(b){var f=(b-c)/(d-c);return a(e?Math.max(0,Math.min(1,f)):f)}var c=0,d=1,e=!1;return b.domain=function(a){return arguments.length?(c=+a[0],d=+a[1],b):[c,d]},b.clamp=function(a){return arguments.length?(e=!!a,b):e},b.interpolator=function(c){return arguments.length?(a=c,b):a},b.copy=function(){return hq(a).domain([c,d]).clamp(e)},uo(b)}function iq(a){var b=a+="",c=b.indexOf(":");return c>=0&&"xmlns"!==(b=a.slice(0,c))&&(a=a.slice(c+1)),$J.hasOwnProperty(b)?{space:$J[b],local:a}:a}function jq(a){return function(){var b=this.ownerDocument,c=this.namespaceURI;return c===ZJ&&b.documentElement.namespaceURI===ZJ?b.createElement(a):b.createElementNS(c,a)}}function kq(a){return function(){return this.ownerDocument.createElementNS(a.space,a.local)}}function lq(a){var b=iq(a);return(b.local?kq:jq)(b)}function mq(){return new nq}function nq(){this._="@"+(++_J).toString(36)}function oq(a,b,c){return a=pq(a,b,c),function(b){var c=b.relatedTarget;c&&(c===this||8&c.compareDocumentPosition(this))||a.call(this,b)}}function pq(b,c,d){return function(e){var f=a.event;a.event=e;try{b.call(this,this.__data__,c,d)}finally{a.event=f}}}function qq(a){return a.trim().split(/^|\s+/).map(function(a){var b="",c=a.indexOf(".");return c>=0&&(b=a.slice(c+1),a=a.slice(0,c)),{type:a,name:b}})}function rq(a){return function(){var b=this.__on;if(b){for(var c,d=0,e=-1,f=b.length;d<f;++d)c=b[d],a.type&&c.type!==a.type||c.name!==a.name?b[++e]=c:this.removeEventListener(c.type,c.listener,c.capture);++e?b.length=e:delete this.__on}}}function sq(a,b,c){var d=eK.hasOwnProperty(a.type)?oq:pq;return function(e,f,g){var h,i=this.__on,j=d(b,f,g);if(i)for(var k=0,l=i.length;k<l;++k)if((h=i[k]).type===a.type&&h.name===a.name)return this.removeEventListener(h.type,h.listener,h.capture),this.addEventListener(h.type,h.listener=j,h.capture=c),void(h.value=b);this.addEventListener(a.type,j,c),h={type:a.type,name:a.name,value:b,listener:j,capture:c},i?i.push(h):this.__on=[h]}}function tq(a,b,c){var d,e,f=qq(a+""),g=f.length;{if(!(arguments.length<2)){for(h=b?sq:rq,null==c&&(c=!1),d=0;d<g;++d)this.each(h(f[d],b,c));return this}var h=this.node().__on;if(h)for(var i,j=0,k=h.length;j<k;++j)for(d=0,i=h[j];d<g;++d)if((e=f[d]).type===i.type&&e.name===i.name)return i.value}}function uq(b,c,d,e){var f=a.event;b.sourceEvent=a.event,a.event=b;try{return c.apply(d,e)}finally{a.event=f}}function vq(){for(var b,c=a.event;b=c.sourceEvent;)c=b;return c}function wq(a,b){var c=a.ownerSVGElement||a;if(c.createSVGPoint){var d=c.createSVGPoint();return d.x=b.clientX,d.y=b.clientY,d=d.matrixTransform(a.getScreenCTM().inverse()),[d.x,d.y]}var e=a.getBoundingClientRect();return[b.clientX-e.left-a.clientLeft,b.clientY-e.top-a.clientTop]}function xq(a){var b=vq();return b.changedTouches&&(b=b.changedTouches[0]),wq(a,b)}function yq(){}function zq(a){return null==a?yq:function(){return this.querySelector(a)}}function Aq(a){"function"!=typeof a&&(a=zq(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g,h=b[e],i=h.length,j=d[e]=new Array(i),k=0;k<i;++k)(f=h[k])&&(g=a.call(f,f.__data__,k,h))&&("__data__"in f&&(g.__data__=f.__data__),j[k]=g);return new Rr(d,this._parents)}function Bq(){return[]}function Cq(a){return null==a?Bq:function(){return this.querySelectorAll(a)}}function Dq(a){"function"!=typeof a&&(a=Cq(a));for(var b=this._groups,c=b.length,d=[],e=[],f=0;f<c;++f)for(var g,h=b[f],i=h.length,j=0;j<i;++j)(g=h[j])&&(d.push(a.call(g,g.__data__,j,h)),e.push(g));return new Rr(d,e)}function Eq(a){"function"!=typeof a&&(a=dK(a));
+for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;j<h;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new Rr(d,this._parents)}function Fq(a){return new Array(a.length)}function Gq(){return new Rr(this._enter||this._groups.map(Fq),this._parents)}function Hq(a,b){this.ownerDocument=a.ownerDocument,this.namespaceURI=a.namespaceURI,this._next=null,this._parent=a,this.__data__=b}function Iq(a){return function(){return a}}function Jq(a,b,c,d,e,f){for(var g,h=0,i=b.length,j=f.length;h<j;++h)(g=b[h])?(g.__data__=f[h],d[h]=g):c[h]=new Hq(a,f[h]);for(;h<i;++h)(g=b[h])&&(e[h]=g)}function Kq(a,b,c,d,e,f,g){var h,i,j,k={},l=b.length,m=f.length,n=new Array(l);for(h=0;h<l;++h)(i=b[h])&&(n[h]=j=gK+g.call(i,i.__data__,h,b),j in k?e[h]=i:k[j]=i);for(h=0;h<m;++h)j=gK+g.call(a,f[h],h,f),(i=k[j])?(d[h]=i,i.__data__=f[h],k[j]=null):c[h]=new Hq(a,f[h]);for(h=0;h<l;++h)(i=b[h])&&k[n[h]]===i&&(e[h]=i)}function Lq(a,b){if(!a)return n=new Array(this.size()),j=-1,this.each(function(a){n[++j]=a}),n;var c=b?Kq:Jq,d=this._parents,e=this._groups;"function"!=typeof a&&(a=Iq(a));for(var f=e.length,g=new Array(f),h=new Array(f),i=new Array(f),j=0;j<f;++j){var k=d[j],l=e[j],m=l.length,n=a.call(k,k&&k.__data__,j,d),o=n.length,p=h[j]=new Array(o),q=g[j]=new Array(o),r=i[j]=new Array(m);c(k,l,p,q,r,n,b);for(var s,t,u=0,v=0;u<o;++u)if(s=p[u]){for(u>=v&&(v=u+1);!(t=q[v])&&++v<o;);s._next=t||null}}return g=new Rr(g,d),g._enter=h,g._exit=i,g}function Mq(){return new Rr(this._exit||this._groups.map(Fq),this._parents)}function Nq(a){for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;h<f;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;n<l;++n)(i=j[n]||k[n])&&(m[n]=i);for(;h<d;++h)g[h]=b[h];return new Rr(g,this._parents)}function Oq(){for(var a=this._groups,b=-1,c=a.length;++b<c;)for(var d,e=a[b],f=e.length-1,g=e[f];--f>=0;)(d=e[f])&&(g&&g!==d.nextSibling&&g.parentNode.insertBefore(d,g),g=d);return this}function Pq(a){function b(b,c){return b&&c?a(b.__data__,c.__data__):!b-!c}a||(a=Qq);for(var c=this._groups,d=c.length,e=new Array(d),f=0;f<d;++f){for(var g,h=c[f],i=h.length,j=e[f]=new Array(i),k=0;k<i;++k)(g=h[k])&&(j[k]=g);j.sort(b)}return new Rr(e,this._parents).order()}function Qq(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function Rq(){var a=arguments[0];return arguments[0]=this,a.apply(null,arguments),this}function Sq(){var a=new Array(this.size()),b=-1;return this.each(function(){a[++b]=this}),a}function Tq(){for(var a=this._groups,b=0,c=a.length;b<c;++b)for(var d=a[b],e=0,f=d.length;e<f;++e){var g=d[e];if(g)return g}return null}function Uq(){var a=0;return this.each(function(){++a}),a}function Vq(){return!this.node()}function Wq(a){for(var b=this._groups,c=0,d=b.length;c<d;++c)for(var e,f=b[c],g=0,h=f.length;g<h;++g)(e=f[g])&&a.call(e,e.__data__,g,f);return this}function Xq(a){return function(){this.removeAttribute(a)}}function Yq(a){return function(){this.removeAttributeNS(a.space,a.local)}}function Zq(a,b){return function(){this.setAttribute(a,b)}}function $q(a,b){return function(){this.setAttributeNS(a.space,a.local,b)}}function _q(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttribute(a):this.setAttribute(a,c)}}function ar(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,c)}}function br(a,b){var c=iq(a);if(arguments.length<2){var d=this.node();return c.local?d.getAttributeNS(c.space,c.local):d.getAttribute(c)}return this.each((null==b?c.local?Yq:Xq:"function"==typeof b?c.local?ar:_q:c.local?$q:Zq)(c,b))}function cr(a){return a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView}function dr(a){return function(){this.style.removeProperty(a)}}function er(a,b,c){return function(){this.style.setProperty(a,b,c)}}function fr(a,b,c){return function(){var d=b.apply(this,arguments);null==d?this.style.removeProperty(a):this.style.setProperty(a,d,c)}}function gr(a,b,c){return arguments.length>1?this.each((null==b?dr:"function"==typeof b?fr:er)(a,b,null==c?"":c)):hr(this.node(),a)}function hr(a,b){return a.style.getPropertyValue(b)||cr(a).getComputedStyle(a,null).getPropertyValue(b)}function ir(a){return function(){delete this[a]}}function jr(a,b){return function(){this[a]=b}}function kr(a,b){return function(){var c=b.apply(this,arguments);null==c?delete this[a]:this[a]=c}}function lr(a,b){return arguments.length>1?this.each((null==b?ir:"function"==typeof b?kr:jr)(a,b)):this.node()[a]}function mr(a){return a.trim().split(/^|\s+/)}function nr(a){return a.classList||new or(a)}function or(a){this._node=a,this._names=mr(a.getAttribute("class")||"")}function pr(a,b){for(var c=nr(a),d=-1,e=b.length;++d<e;)c.add(b[d])}function qr(a,b){for(var c=nr(a),d=-1,e=b.length;++d<e;)c.remove(b[d])}function rr(a){return function(){pr(this,a)}}function sr(a){return function(){qr(this,a)}}function tr(a,b){return function(){(b.apply(this,arguments)?pr:qr)(this,a)}}function ur(a,b){var c=mr(a+"");if(arguments.length<2){for(var d=nr(this.node()),e=-1,f=c.length;++e<f;)if(!d.contains(c[e]))return!1;return!0}return this.each(("function"==typeof b?tr:b?rr:sr)(c,b))}function vr(){this.textContent=""}function wr(a){return function(){this.textContent=a}}function xr(a){return function(){var b=a.apply(this,arguments);this.textContent=null==b?"":b}}function yr(a){return arguments.length?this.each(null==a?vr:("function"==typeof a?xr:wr)(a)):this.node().textContent}function zr(){this.innerHTML=""}function Ar(a){return function(){this.innerHTML=a}}function Br(a){return function(){var b=a.apply(this,arguments);this.innerHTML=null==b?"":b}}function Cr(a){return arguments.length?this.each(null==a?zr:("function"==typeof a?Br:Ar)(a)):this.node().innerHTML}function Dr(){this.nextSibling&&this.parentNode.appendChild(this)}function Er(){return this.each(Dr)}function Fr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Gr(){return this.each(Fr)}function Hr(a){var b="function"==typeof a?a:lq(a);return this.select(function(){return this.appendChild(b.apply(this,arguments))})}function Ir(){return null}function Jr(a,b){var c="function"==typeof a?a:lq(a),d=null==b?Ir:"function"==typeof b?b:zq(b);return this.select(function(){return this.insertBefore(c.apply(this,arguments),d.apply(this,arguments)||null)})}function Kr(){var a=this.parentNode;a&&a.removeChild(this)}function Lr(){return this.each(Kr)}function Mr(a){return arguments.length?this.property("__data__",a):this.node().__data__}function Nr(a,b,c){var d=cr(a),e=d.CustomEvent;"function"==typeof e?e=new e(b,c):(e=d.document.createEvent("Event"),c?(e.initEvent(b,c.bubbles,c.cancelable),e.detail=c.detail):e.initEvent(b,!1,!1)),a.dispatchEvent(e)}function Or(a,b){return function(){return Nr(this,a,b)}}function Pr(a,b){return function(){return Nr(this,a,b.apply(this,arguments))}}function Qr(a,b){return this.each(("function"==typeof b?Pr:Or)(a,b))}function Rr(a,b){this._groups=a,this._parents=b}function Sr(){return new Rr([[document.documentElement]],hK)}function Tr(a){return"string"==typeof a?new Rr([[document.querySelector(a)]],[document.documentElement]):new Rr([[a]],hK)}function Ur(a){return"string"==typeof a?new Rr([document.querySelectorAll(a)],[document.documentElement]):new Rr([null==a?[]:a],hK)}function Vr(a,b,c){arguments.length<3&&(c=b,b=vq().changedTouches);for(var d,e=0,f=b?b.length:0;e<f;++e)if((d=b[e]).identifier===c)return wq(a,d);return null}function Wr(a,b){null==b&&(b=vq().touches);for(var c=0,d=b?b.length:0,e=new Array(d);c<d;++c)e[c]=wq(a,b[c]);return e}function Xr(a){return function(){return a}}function Yr(a){return a>1?0:a<-1?qK:Math.acos(a)}function Zr(a){return a>=1?rK:a<=-1?-rK:Math.asin(a)}function $r(a){return a.innerRadius}function _r(a){return a.outerRadius}function as(a){return a.startAngle}function bs(a){return a.endAngle}function cs(a){return a&&a.padAngle}function ds(a,b,c,d,e,f,g,h){var i=c-a,j=d-b,k=g-e,l=h-f,m=(k*(b-f)-l*(a-e))/(l*i-k*j);return[a+m*i,b+m*j]}function es(a,b,c,d,e,f,g){var h=a-c,i=b-d,j=(g?f:-f)/oK(h*h+i*i),k=j*i,l=-j*h,m=a+k,n=b+l,o=c+k,p=d+l,q=(m+o)/2,r=(n+p)/2,s=o-m,t=p-n,u=s*s+t*t,v=e-f,w=m*p-o*n,x=(t<0?-1:1)*oK(lK(0,v*v*u-w*w)),y=(w*t-s*x)/u,z=(-w*s-t*x)/u,A=(w*t+s*x)/u,B=(-w*s+t*x)/u,C=y-q,D=z-r,E=A-q,F=B-r;return C*C+D*D>E*E+F*F&&(y=A,z=B),{cx:y,cy:z,x01:-k,y01:-l,x11:y*(e/v-1),y11:z*(e/v-1)}}function fs(){function a(){var a,j,k=+b.apply(this,arguments),l=+c.apply(this,arguments),m=f.apply(this,arguments)-rK,n=g.apply(this,arguments)-rK,o=iK(n-m),p=n>m;if(i||(i=a=Ce()),l<k&&(j=l,l=k,k=j),l>pK)if(o>sK-pK)i.moveTo(l*kK(m),l*nK(m)),i.arc(0,0,l,m,n,!p),k>pK&&(i.moveTo(k*kK(n),k*nK(n)),i.arc(0,0,k,n,m,p));else{var q,r,s=m,t=n,u=m,v=n,w=o,x=o,y=h.apply(this,arguments)/2,z=y>pK&&(e?+e.apply(this,arguments):oK(k*k+l*l)),A=mK(iK(l-k)/2,+d.apply(this,arguments)),B=A,C=A;if(z>pK){var D=Zr(z/k*nK(y)),E=Zr(z/l*nK(y));(w-=2*D)>pK?(D*=p?1:-1,u+=D,v-=D):(w=0,u=v=(m+n)/2),(x-=2*E)>pK?(E*=p?1:-1,s+=E,t-=E):(x=0,s=t=(m+n)/2)}var F=l*kK(s),G=l*nK(s),H=k*kK(v),I=k*nK(v);if(A>pK){var J=l*kK(t),K=l*nK(t),L=k*kK(u),M=k*nK(u);if(o<qK){var N=w>pK?ds(F,G,L,M,J,K,H,I):[H,I],O=F-N[0],P=G-N[1],Q=J-N[0],R=K-N[1],S=1/nK(Yr((O*Q+P*R)/(oK(O*O+P*P)*oK(Q*Q+R*R)))/2),T=oK(N[0]*N[0]+N[1]*N[1]);B=mK(A,(k-T)/(S-1)),C=mK(A,(l-T)/(S+1))}}x>pK?C>pK?(q=es(L,M,F,G,l,C,p),r=es(J,K,H,I,l,C,p),i.moveTo(q.cx+q.x01,q.cy+q.y01),C<A?i.arc(q.cx,q.cy,C,jK(q.y01,q.x01),jK(r.y01,r.x01),!p):(i.arc(q.cx,q.cy,C,jK(q.y01,q.x01),jK(q.y11,q.x11),!p),i.arc(0,0,l,jK(q.cy+q.y11,q.cx+q.x11),jK(r.cy+r.y11,r.cx+r.x11),!p),i.arc(r.cx,r.cy,C,jK(r.y11,r.x11),jK(r.y01,r.x01),!p))):(i.moveTo(F,G),i.arc(0,0,l,s,t,!p)):i.moveTo(F,G),k>pK&&w>pK?B>pK?(q=es(H,I,J,K,k,-B,p),r=es(F,G,L,M,k,-B,p),i.lineTo(q.cx+q.x01,q.cy+q.y01),B<A?i.arc(q.cx,q.cy,B,jK(q.y01,q.x01),jK(r.y01,r.x01),!p):(i.arc(q.cx,q.cy,B,jK(q.y01,q.x01),jK(q.y11,q.x11),!p),i.arc(0,0,k,jK(q.cy+q.y11,q.cx+q.x11),jK(r.cy+r.y11,r.cx+r.x11),p),i.arc(r.cx,r.cy,B,jK(r.y11,r.x11),jK(r.y01,r.x01),!p))):i.arc(0,0,k,v,u,p):i.lineTo(H,I)}else i.moveTo(0,0);if(i.closePath(),a)return i=null,a+""||null}var b=$r,c=_r,d=Xr(0),e=null,f=as,g=bs,h=cs,i=null;return a.centroid=function(){var a=(+b.apply(this,arguments)+ +c.apply(this,arguments))/2,d=(+f.apply(this,arguments)+ +g.apply(this,arguments))/2-qK/2;return[kK(d)*a,nK(d)*a]},a.innerRadius=function(c){return arguments.length?(b="function"==typeof c?c:Xr(+c),a):b},a.outerRadius=function(b){return arguments.length?(c="function"==typeof b?b:Xr(+b),a):c},a.cornerRadius=function(b){return arguments.length?(d="function"==typeof b?b:Xr(+b),a):d},a.padRadius=function(b){return arguments.length?(e=null==b?null:"function"==typeof b?b:Xr(+b),a):e},a.startAngle=function(b){return arguments.length?(f="function"==typeof b?b:Xr(+b),a):f},a.endAngle=function(b){return arguments.length?(g="function"==typeof b?b:Xr(+b),a):g},a.padAngle=function(b){return arguments.length?(h="function"==typeof b?b:Xr(+b),a):h},a.context=function(b){return arguments.length?(i=null==b?null:b,a):i},a}function gs(a){this._context=a}function hs(a){return new gs(a)}function is(a){return a[0]}function js(a){return a[1]}function ks(){function a(a){var h,i,j,k=a.length,l=!1;for(null==e&&(g=f(j=Ce())),h=0;h<=k;++h)!(h<k&&d(i=a[h],h,a))===l&&((l=!l)?g.lineStart():g.lineEnd()),l&&g.point(+b(i,h,a),+c(i,h,a));if(j)return g=null,j+""||null}var b=is,c=js,d=Xr(!0),e=null,f=hs,g=null;return a.x=function(c){return arguments.length?(b="function"==typeof c?c:Xr(+c),a):b},a.y=function(b){return arguments.length?(c="function"==typeof b?b:Xr(+b),a):c},a.defined=function(b){return arguments.length?(d="function"==typeof b?b:Xr(!!b),a):d},a.curve=function(b){return arguments.length?(f=b,null!=e&&(g=f(e)),a):f},a.context=function(b){return arguments.length?(null==b?e=g=null:g=f(e=b),a):e},a}function ls(){function a(a){var b,k,l,m,n,o=a.length,p=!1,q=new Array(o),r=new Array(o);for(null==h&&(j=i(n=Ce())),b=0;b<=o;++b){if(!(b<o&&g(m=a[b],b,a))===p)if(p=!p)k=b,j.areaStart(),j.lineStart();else{for(j.lineEnd(),j.lineStart(),l=b-1;l>=k;--l)j.point(q[l],r[l]);j.lineEnd(),j.areaEnd()}p&&(q[b]=+c(m,b,a),r[b]=+e(m,b,a),j.point(d?+d(m,b,a):q[b],f?+f(m,b,a):r[b]))}if(n)return j=null,n+""||null}function b(){return ks().defined(g).curve(i).context(h)}var c=is,d=null,e=Xr(0),f=js,g=Xr(!0),h=null,i=hs,j=null;return a.x=function(b){return arguments.length?(c="function"==typeof b?b:Xr(+b),d=null,a):c},a.x0=function(b){return arguments.length?(c="function"==typeof b?b:Xr(+b),a):c},a.x1=function(b){return arguments.length?(d=null==b?null:"function"==typeof b?b:Xr(+b),a):d},a.y=function(b){return arguments.length?(e="function"==typeof b?b:Xr(+b),f=null,a):e},a.y0=function(b){return arguments.length?(e="function"==typeof b?b:Xr(+b),a):e},a.y1=function(b){return arguments.length?(f=null==b?null:"function"==typeof b?b:Xr(+b),a):f},a.lineX0=a.lineY0=function(){return b().x(c).y(e)},a.lineY1=function(){return b().x(c).y(f)},a.lineX1=function(){return b().x(d).y(e)},a.defined=function(b){return arguments.length?(g="function"==typeof b?b:Xr(!!b),a):g},a.curve=function(b){return arguments.length?(i=b,null!=h&&(j=i(h)),a):i},a.context=function(b){return arguments.length?(null==b?h=j=null:j=i(h=b),a):h},a}function ms(a,b){return b<a?-1:b>a?1:b>=a?0:NaN}function ns(a){return a}function os(){function a(a){var h,i,j,k,l,m=a.length,n=0,o=new Array(m),p=new Array(m),q=+e.apply(this,arguments),r=Math.min(sK,Math.max(-sK,f.apply(this,arguments)-q)),s=Math.min(Math.abs(r)/m,g.apply(this,arguments)),t=s*(r<0?-1:1);for(h=0;h<m;++h)(l=p[o[h]=h]=+b(a[h],h,a))>0&&(n+=l);for(null!=c?o.sort(function(a,b){return c(p[a],p[b])}):null!=d&&o.sort(function(b,c){return d(a[b],a[c])}),h=0,j=n?(r-m*t)/n:0;h<m;++h,q=k)i=o[h],l=p[i],k=q+(l>0?l*j:0)+t,p[i]={data:a[i],index:h,value:l,startAngle:q,endAngle:k,padAngle:s};return p}var b=ns,c=ms,d=null,e=Xr(0),f=Xr(sK),g=Xr(0);return a.value=function(c){return arguments.length?(b="function"==typeof c?c:Xr(+c),a):b},a.sortValues=function(b){return arguments.length?(c=b,d=null,a):c},a.sort=function(b){return arguments.length?(d=b,c=null,a):d},a.startAngle=function(b){return arguments.length?(e="function"==typeof b?b:Xr(+b),a):e},a.endAngle=function(b){return arguments.length?(f="function"==typeof b?b:Xr(+b),a):f},a.padAngle=function(b){return arguments.length?(g="function"==typeof b?b:Xr(+b),a):g},a}function ps(a){this._curve=a}function qs(a){function b(b){return new ps(a(b))}return b._curve=a,b}function rs(a){var b=a.curve;return a.angle=a.x,delete a.x,a.radius=a.y,delete a.y,a.curve=function(a){return arguments.length?b(qs(a)):b()._curve},a}function ss(){return rs(ks().curve(tK))}function ts(){var a=ls().curve(tK),b=a.curve,c=a.lineX0,d=a.lineX1,e=a.lineY0,f=a.lineY1;return a.angle=a.x,delete a.x,a.startAngle=a.x0,delete a.x0,a.endAngle=a.x1,delete a.x1,a.radius=a.y,delete a.y,a.innerRadius=a.y0,delete a.y0,a.outerRadius=a.y1,delete a.y1,a.lineStartAngle=function(){return rs(c())},delete a.lineX0,a.lineEndAngle=function(){return rs(d())},delete a.lineX1,a.lineInnerRadius=function(){return rs(e())},delete a.lineY0,a.lineOuterRadius=function(){return rs(f())},delete a.lineY1,a.curve=function(a){return arguments.length?b(qs(a)):b()._curve},a}function us(a,b){return[(b=+b)*Math.cos(a-=Math.PI/2),b*Math.sin(a)]}function vs(a){return a.source}function ws(a){return a.target}function xs(a){function b(){var b,h=uK.call(arguments),i=c.apply(this,h),j=d.apply(this,h);if(g||(g=b=Ce()),a(g,+e.apply(this,(h[0]=i,h)),+f.apply(this,h),+e.apply(this,(h[0]=j,h)),+f.apply(this,h)),b)return g=null,b+""||null}var c=vs,d=ws,e=is,f=js,g=null;return b.source=function(a){return arguments.length?(c=a,b):c},b.target=function(a){return arguments.length?(d=a,b):d},b.x=function(a){return arguments.length?(e="function"==typeof a?a:Xr(+a),b):e},b.y=function(a){return arguments.length?(f="function"==typeof a?a:Xr(+a),b):f},b.context=function(a){return arguments.length?(g=null==a?null:a,b):g},b}function ys(a,b,c,d,e){a.moveTo(b,c),a.bezierCurveTo(b=(b+d)/2,c,b,e,d,e)}function zs(a,b,c,d,e){a.moveTo(b,c),a.bezierCurveTo(b,c=(c+e)/2,d,c,d,e)}function As(a,b,c,d,e){var f=us(b,c),g=us(b,c=(c+e)/2),h=us(d,c),i=us(d,e);a.moveTo(f[0],f[1]),a.bezierCurveTo(g[0],g[1],h[0],h[1],i[0],i[1])}function Bs(){return xs(ys)}function Cs(){return xs(zs)}function Ds(){var a=xs(As);return a.angle=a.x,delete a.x,a.radius=a.y,delete a.y,a}function Es(){function a(){var a;if(d||(d=a=Ce()),b.apply(this,arguments).draw(d,+c.apply(this,arguments)),a)return d=null,a+""||null}var b=Xr(vK),c=Xr(64),d=null;return a.type=function(c){return arguments.length?(b="function"==typeof c?c:Xr(c),a):b},a.size=function(b){return arguments.length?(c="function"==typeof b?b:Xr(+b),a):c},a.context=function(b){return arguments.length?(d=null==b?null:b,a):d},a}function Fs(){}function Gs(a,b,c){a._context.bezierCurveTo((2*a._x0+a._x1)/3,(2*a._y0+a._y1)/3,(a._x0+2*a._x1)/3,(a._y0+2*a._y1)/3,(a._x0+4*a._x1+b)/6,(a._y0+4*a._y1+c)/6)}function Hs(a){this._context=a}function Is(a){return new Hs(a)}function Js(a){this._context=a}function Ks(a){return new Js(a)}function Ls(a){this._context=a}function Ms(a){return new Ls(a)}function Ns(a,b){this._basis=new Hs(a),this._beta=b}function Os(a,b,c){a._context.bezierCurveTo(a._x1+a._k*(a._x2-a._x0),a._y1+a._k*(a._y2-a._y0),a._x2+a._k*(a._x1-b),a._y2+a._k*(a._y1-c),a._x2,a._y2)}function Ps(a,b){this._context=a,this._k=(1-b)/6}function Qs(a,b){this._context=a,this._k=(1-b)/6}function Rs(a,b){this._context=a,this._k=(1-b)/6}function Ss(a,b,c){var d=a._x1,e=a._y1,f=a._x2,g=a._y2;if(a._l01_a>pK){var h=2*a._l01_2a+3*a._l01_a*a._l12_a+a._l12_2a,i=3*a._l01_a*(a._l01_a+a._l12_a);d=(d*h-a._x0*a._l12_2a+a._x2*a._l01_2a)/i,e=(e*h-a._y0*a._l12_2a+a._y2*a._l01_2a)/i}if(a._l23_a>pK){var j=2*a._l23_2a+3*a._l23_a*a._l12_a+a._l12_2a,k=3*a._l23_a*(a._l23_a+a._l12_a);f=(f*j+a._x1*a._l23_2a-b*a._l12_2a)/k,g=(g*j+a._y1*a._l23_2a-c*a._l12_2a)/k}a._context.bezierCurveTo(d,e,f,g,a._x2,a._y2)}function Ts(a,b){this._context=a,this._alpha=b}function Us(a,b){this._context=a,this._alpha=b}function Vs(a,b){this._context=a,this._alpha=b}function Ws(a){this._context=a}function Xs(a){return new Ws(a)}function Ys(a){return a<0?-1:1}function Zs(a,b,c){var d=a._x1-a._x0,e=b-a._x1,f=(a._y1-a._y0)/(d||e<0&&-0),g=(c-a._y1)/(e||d<0&&-0),h=(f*e+g*d)/(d+e);return(Ys(f)+Ys(g))*Math.min(Math.abs(f),Math.abs(g),.5*Math.abs(h))||0}function $s(a,b){var c=a._x1-a._x0;return c?(3*(a._y1-a._y0)/c-b)/2:b}function _s(a,b,c){var d=a._x0,e=a._y0,f=a._x1,g=a._y1,h=(f-d)/3;a._context.bezierCurveTo(d+h,e+h*b,f-h,g-h*c,f,g)}function at(a){this._context=a}function bt(a){this._context=new ct(a)}function ct(a){this._context=a}function dt(a){return new at(a)}function et(a){return new bt(a)}function ft(a){this._context=a}function gt(a){var b,c,d=a.length-1,e=new Array(d),f=new Array(d),g=new Array(d);for(e[0]=0,f[0]=2,g[0]=a[0]+2*a[1],b=1;b<d-1;++b)e[b]=1,f[b]=4,g[b]=4*a[b]+2*a[b+1];for(e[d-1]=2,f[d-1]=7,g[d-1]=8*a[d-1]+a[d],b=1;b<d;++b)c=e[b]/f[b-1],f[b]-=c,g[b]-=c*g[b-1];for(e[d-1]=g[d-1]/f[d-1],b=d-2;b>=0;--b)e[b]=(g[b]-e[b+1])/f[b];for(f[d-1]=(a[d]+e[d-1])/2,b=0;b<d-1;++b)f[b]=2*a[b+1]-e[b+1];return[e,f]}function ht(a){return new ft(a)}function it(a,b){this._context=a,this._t=b}function jt(a){return new it(a,.5)}function kt(a){return new it(a,0)}function lt(a){return new it(a,1)}function mt(a,b){if((e=a.length)>1)for(var c,d,e,f=1,g=a[b[0]],h=g.length;f<e;++f)for(d=g,g=a[b[f]],c=0;c<h;++c)g[c][1]+=g[c][0]=isNaN(d[c][1])?d[c][0]:d[c][1]}function nt(a){for(var b=a.length,c=new Array(b);--b>=0;)c[b]=b;return c}function ot(a,b){return a[b]}function pt(){function a(a){var f,g,h=b.apply(this,arguments),i=a.length,j=h.length,k=new Array(j);for(f=0;f<j;++f){for(var l,m=h[f],n=k[f]=new Array(i),o=0;o<i;++o)n[o]=l=[0,+e(a[o],m,o,a)],l.data=a[o];n.key=m}for(f=0,g=c(k);f<j;++f)k[g[f]].index=f;return d(k,g),k}var b=Xr([]),c=nt,d=mt,e=ot;return a.keys=function(c){return arguments.length?(b="function"==typeof c?c:Xr(uK.call(c)),a):b},a.value=function(b){return arguments.length?(e="function"==typeof b?b:Xr(+b),a):e},a.order=function(b){return arguments.length?(c=null==b?nt:"function"==typeof b?b:Xr(uK.call(b)),a):c},a.offset=function(b){return arguments.length?(d=null==b?mt:b,a):d},a}function qt(a,b){if((d=a.length)>0){for(var c,d,e,f=0,g=a[0].length;f<g;++f){for(e=c=0;c<d;++c)e+=a[c][f][1]||0;if(e)for(c=0;c<d;++c)a[c][f][1]/=e}mt(a,b)}}function rt(a,b){if((h=a.length)>1)for(var c,d,e,f,g,h,i=0,j=a[b[0]].length;i<j;++i)for(f=g=0,c=0;c<h;++c)(e=(d=a[b[c]][i])[1]-d[0])>=0?(d[0]=f,d[1]=f+=e):e<0?(d[1]=g,d[0]=g+=e):d[0]=f}function st(a,b){if((c=a.length)>0){for(var c,d=0,e=a[b[0]],f=e.length;d<f;++d){for(var g=0,h=0;g<c;++g)h+=a[g][d][1]||0;e[d][1]+=e[d][0]=-h/2}mt(a,b)}}function tt(a,b){if((e=a.length)>0&&(d=(c=a[b[0]]).length)>0){for(var c,d,e,f=0,g=1;g<d;++g){for(var h=0,i=0,j=0;h<e;++h){for(var k=a[b[h]],l=k[g][1]||0,m=k[g-1][1]||0,n=(l-m)/2,o=0;o<h;++o){var p=a[b[o]],q=p[g][1]||0,r=p[g-1][1]||0;n+=q-r}i+=l,j+=n*l}c[g-1][1]+=c[g-1][0]=f,i&&(f-=j/i)}c[g-1][1]+=c[g-1][0]=f,mt(a,b)}}function ut(a){var b=a.map(vt);return nt(a).sort(function(a,c){return b[a]-b[c]})}function vt(a){for(var b,c=0,d=-1,e=a.length;++d<e;)(b=+a[d][1])&&(c+=b);return c}function wt(a){return ut(a).reverse()}function xt(a){var b,c,d=a.length,e=a.map(vt),f=nt(a).sort(function(a,b){return e[b]-e[a]}),g=0,h=0,i=[],j=[];for(b=0;b<d;++b)c=f[b],g<h?(g+=e[c],i.push(c)):(h+=e[c],j.push(c));return j.reverse().concat(i)}function yt(a){return nt(a).reverse()}function zt(a,b,c,d){function e(b){return a(b=new Date(+b)),b}return e.floor=e,e.ceil=function(c){return a(c=new Date(c-1)),b(c,1),a(c),c},e.round=function(a){var b=e(a),c=e.ceil(a);return a-b<c-a?b:c},e.offset=function(a,c){return b(a=new Date(+a),null==c?1:Math.floor(c)),a},e.range=function(c,d,f){var g=[];if(c=e.ceil(c),f=null==f?1:Math.floor(f),!(c<d&&f>0))return g;do g.push(new Date(+c));while(b(c,f),a(c),c<d);return g},e.filter=function(c){return zt(function(b){if(b>=b)for(;a(b),!c(b);)b.setTime(b-1)},function(a,d){if(a>=a)if(d<0)for(;++d<=0;)for(;b(a,-1),!c(a););else for(;--d>=0;)for(;b(a,1),!c(a););})},c&&(e.count=function(b,d){return VK.setTime(+b),WK.setTime(+d),a(VK),a(WK),Math.floor(c(VK,WK))},e.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?e.filter(d?function(b){return d(b)%a===0}:function(b){return e.count(0,b)%a===0}):e:null}),e}function At(a){return zt(function(b){b.setDate(b.getDate()-(b.getDay()+7-a)%7),b.setHours(0,0,0,0)},function(a,b){a.setDate(a.getDate()+7*b)},function(a,b){return(b-a-(b.getTimezoneOffset()-a.getTimezoneOffset())*$K)/bL})}function Bt(a){return zt(function(b){b.setUTCDate(b.getUTCDate()-(b.getUTCDay()+7-a)%7),b.setUTCHours(0,0,0,0)},function(a,b){a.setUTCDate(a.getUTCDate()+7*b)},function(a,b){return(b-a)/bL})}function Ct(a,b,c,d){function e(b){return a(b=new Date(+b)),b}return e.floor=e,e.ceil=function(c){return a(c=new Date(c-1)),b(c,1),a(c),c},e.round=function(a){var b=e(a),c=e.ceil(a);return a-b<c-a?b:c},e.offset=function(a,c){return b(a=new Date(+a),null==c?1:Math.floor(c)),a},e.range=function(c,d,f){var g,h=[];if(c=e.ceil(c),f=null==f?1:Math.floor(f),!(c<d&&f>0))return h;do h.push(g=new Date(+c)),b(c,f),a(c);while(g<c&&c<d);return h},e.filter=function(c){return Ct(function(b){if(b>=b)for(;a(b),!c(b);)b.setTime(b-1)},function(a,d){if(a>=a)if(d<0)for(;++d<=0;)for(;b(a,-1),!c(a););else for(;--d>=0;)for(;b(a,1),!c(a););})},c&&(e.count=function(b,d){return $L.setTime(+b),_L.setTime(+d),a($L),a(_L),Math.floor(c($L,_L))},e.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?e.filter(d?function(b){return d(b)%a===0}:function(b){return e.count(0,b)%a===0}):e:null}),e}function Dt(a){return Ct(function(b){b.setDate(b.getDate()-(b.getDay()+7-a)%7),b.setHours(0,0,0,0)},function(a,b){a.setDate(a.getDate()+7*b)},function(a,b){return(b-a-(b.getTimezoneOffset()-a.getTimezoneOffset())*cM)/fM})}function Et(a){return Ct(function(b){b.setUTCDate(b.getUTCDate()-(b.getUTCDay()+7-a)%7),b.setUTCHours(0,0,0,0)},function(a,b){a.setUTCDate(a.getUTCDate()+7*b)},function(a,b){return(b-a)/fM})}function Ft(a){if(0<=a.y&&a.y<100){var b=new Date(-1,a.m,a.d,a.H,a.M,a.S,a.L);return b.setFullYear(a.y),b}return new Date(a.y,a.m,a.d,a.H,a.M,a.S,a.L)}function Gt(a){if(0<=a.y&&a.y<100){var b=new Date(Date.UTC(-1,a.m,a.d,a.H,a.M,a.S,a.L));return b.setUTCFullYear(a.y),b}return new Date(Date.UTC(a.y,a.m,a.d,a.H,a.M,a.S,a.L))}function Ht(a){return{y:a,m:0,d:1,H:0,M:0,S:0,L:0}}function It(a){function b(a,b){return function(c){var d,e,f,g=[],h=-1,i=0,j=a.length;for(c instanceof Date||(c=new Date(+c));++h<j;)37===a.charCodeAt(h)&&(g.push(a.slice(i,h)),null!=(e=pM[d=a.charAt(++h)])?d=a.charAt(++h):e="e"===d?" ":"0",(f=b[d])&&(d=f(c,e)),g.push(d),i=h+1);return g.push(a.slice(i,h)),g.join("")}}function c(a,b){return function(c){var e=Ht(1900),f=d(e,a,c+="",0);if(f!=c.length)return null;if("p"in e&&(e.H=e.H%12+12*e.p),"W"in e||"U"in e){"w"in e||(e.w="W"in e?1:0);var g="Z"in e?Gt(Ht(e.y)).getUTCDay():b(Ht(e.y)).getDay();e.m=0,e.d="W"in e?(e.w+6)%7+7*e.W-(g+5)%7:e.w+7*e.U-(g+6)%7}return"Z"in e?(e.H+=e.Z/100|0,e.M+=e.Z%100,Gt(e)):b(e)}}function d(a,b,c,d){for(var e,f,g=0,h=b.length,i=c.length;g<h;){if(d>=i)return-1;if(e=b.charCodeAt(g++),37===e){if(e=b.charAt(g++),f=Q[e in pM?b.charAt(g++):e],!f||(d=f(a,c,d))<0)return-1}else if(e!=c.charCodeAt(d++))return-1}return d}function e(a,b,c){var d=E.exec(b.slice(c));return d?(a.p=F[d[0].toLowerCase()],c+d[0].length):-1}function f(a,b,c){var d=I.exec(b.slice(c));return d?(a.w=J[d[0].toLowerCase()],c+d[0].length):-1}function g(a,b,c){var d=G.exec(b.slice(c));return d?(a.w=H[d[0].toLowerCase()],c+d[0].length):-1}function h(a,b,c){var d=M.exec(b.slice(c));return d?(a.m=N[d[0].toLowerCase()],c+d[0].length):-1}function i(a,b,c){var d=K.exec(b.slice(c));return d?(a.m=L[d[0].toLowerCase()],c+d[0].length):-1}function j(a,b,c){return d(a,w,b,c)}function k(a,b,c){return d(a,x,b,c)}function l(a,b,c){return d(a,y,b,c)}function m(a){return B[a.getDay()]}function n(a){return A[a.getDay()]}function o(a){return D[a.getMonth()]}function p(a){return C[a.getMonth()]}function q(a){return z[+(a.getHours()>=12)]}function r(a){return B[a.getUTCDay()]}function s(a){return A[a.getUTCDay()]}function t(a){return D[a.getUTCMonth()]}function u(a){return C[a.getUTCMonth()]}function v(a){return z[+(a.getUTCHours()>=12)]}var w=a.dateTime,x=a.date,y=a.time,z=a.periods,A=a.days,B=a.shortDays,C=a.months,D=a.shortMonths,E=Lt(z),F=Mt(z),G=Lt(A),H=Mt(A),I=Lt(B),J=Mt(B),K=Lt(C),L=Mt(C),M=Lt(D),N=Mt(D),O={a:m,A:n,b:o,B:p,c:null,d:_t,e:_t,H:au,I:bu,j:cu,L:du,m:eu,M:fu,p:q,S:gu,U:hu,w:iu,W:ju,x:null,X:null,y:ku,Y:lu,Z:mu,"%":Bu},P={a:r,A:s,b:t,B:u,c:null,d:nu,e:nu,H:ou,I:pu,j:qu,L:ru,m:su,M:tu,p:v,S:uu,U:vu,w:wu,W:xu,x:null,X:null,y:yu,Y:zu,Z:Au,"%":Bu},Q={a:f,A:g,b:h,B:i,c:j,d:Ut,e:Ut,H:Wt,I:Wt,j:Vt,L:Zt,m:Tt,M:Xt,p:e,S:Yt,U:Ot,w:Nt,W:Pt,x:k,X:l,y:Rt,Y:Qt,Z:St,"%":$t};return O.x=b(x,O),O.X=b(y,O),O.c=b(w,O),P.x=b(x,P),P.X=b(y,P),P.c=b(w,P),{format:function(a){var c=b(a+="",O);return c.toString=function(){return a},c},parse:function(a){var b=c(a+="",Ft);return b.toString=function(){return a},b},utcFormat:function(a){var c=b(a+="",P);return c.toString=function(){return a},c},utcParse:function(a){var b=c(a,Gt);return b.toString=function(){return a},b}}}function Jt(a,b,c){var d=a<0?"-":"",e=(d?-a:a)+"",f=e.length;return d+(f<c?new Array(c-f+1).join(b)+e:e)}function Kt(a){return a.replace(sM,"\\$&")}function Lt(a){return new RegExp("^(?:"+a.map(Kt).join("|")+")","i")}function Mt(a){for(var b={},c=-1,d=a.length;++c<d;)b[a[c].toLowerCase()]=c;return b}function Nt(a,b,c){var d=qM.exec(b.slice(c,c+1));return d?(a.w=+d[0],c+d[0].length):-1}function Ot(a,b,c){var d=qM.exec(b.slice(c));return d?(a.U=+d[0],c+d[0].length):-1}function Pt(a,b,c){var d=qM.exec(b.slice(c));return d?(a.W=+d[0],c+d[0].length):-1}function Qt(a,b,c){var d=qM.exec(b.slice(c,c+4));return d?(a.y=+d[0],c+d[0].length):-1}function Rt(a,b,c){var d=qM.exec(b.slice(c,c+2));return d?(a.y=+d[0]+(+d[0]>68?1900:2e3),c+d[0].length):-1}function St(a,b,c){var d=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(b.slice(c,c+6));return d?(a.Z=d[1]?0:-(d[2]+(d[3]||"00")),c+d[0].length):-1}function Tt(a,b,c){var d=qM.exec(b.slice(c,c+2));return d?(a.m=d[0]-1,c+d[0].length):-1}function Ut(a,b,c){var d=qM.exec(b.slice(c,c+2));return d?(a.d=+d[0],c+d[0].length):-1}function Vt(a,b,c){var d=qM.exec(b.slice(c,c+3));return d?(a.m=0,a.d=+d[0],c+d[0].length):-1}function Wt(a,b,c){var d=qM.exec(b.slice(c,c+2));return d?(a.H=+d[0],c+d[0].length):-1}function Xt(a,b,c){var d=qM.exec(b.slice(c,c+2));return d?(a.M=+d[0],c+d[0].length):-1}function Yt(a,b,c){var d=qM.exec(b.slice(c,c+2));return d?(a.S=+d[0],c+d[0].length):-1}function Zt(a,b,c){var d=qM.exec(b.slice(c,c+3));return d?(a.L=+d[0],c+d[0].length):-1}function $t(a,b,c){var d=rM.exec(b.slice(c,c+1));return d?c+d[0].length:-1}function _t(a,b){return Jt(a.getDate(),b,2)}function au(a,b){return Jt(a.getHours(),b,2)}function bu(a,b){return Jt(a.getHours()%12||12,b,2)}function cu(a,b){return Jt(1+gM.count(jM(a),a),b,3)}function du(a,b){return Jt(a.getMilliseconds(),b,3)}function eu(a,b){return Jt(a.getMonth()+1,b,2)}function fu(a,b){return Jt(a.getMinutes(),b,2)}function gu(a,b){return Jt(a.getSeconds(),b,2)}function hu(a,b){return Jt(hM.count(jM(a),a),b,2)}function iu(a){return a.getDay()}function ju(a,b){return Jt(iM.count(jM(a),a),b,2)}function ku(a,b){return Jt(a.getFullYear()%100,b,2)}function lu(a,b){return Jt(a.getFullYear()%1e4,b,4)}function mu(a){var b=a.getTimezoneOffset();return(b>0?"-":(b*=-1,"+"))+Jt(b/60|0,"0",2)+Jt(b%60,"0",2)}function nu(a,b){return Jt(a.getUTCDate(),b,2)}function ou(a,b){return Jt(a.getUTCHours(),b,2)}function pu(a,b){return Jt(a.getUTCHours()%12||12,b,2)}function qu(a,b){return Jt(1+kM.count(nM(a),a),b,3)}function ru(a,b){return Jt(a.getUTCMilliseconds(),b,3)}function su(a,b){return Jt(a.getUTCMonth()+1,b,2)}function tu(a,b){return Jt(a.getUTCMinutes(),b,2)}function uu(a,b){return Jt(a.getUTCSeconds(),b,2)}function vu(a,b){return Jt(lM.count(nM(a),a),b,2)}function wu(a){return a.getUTCDay()}function xu(a,b){return Jt(mM.count(nM(a),a),b,2)}function yu(a,b){return Jt(a.getUTCFullYear()%100,b,2)}function zu(a,b){return Jt(a.getUTCFullYear()%1e4,b,4)}function Au(){return"+0000"}function Bu(){return"%"}function Cu(b){return oM=It(b),a.timeFormat=oM.format,a.timeParse=oM.parse,a.utcFormat=oM.utcFormat,a.utcParse=oM.utcParse,oM}function Du(a){return a.toISOString()}function Eu(a){var b=new Date(a);return isNaN(b)?null:b}function Fu(){return DM||(GM(Gu),DM=FM.now()+EM)}function Gu(){DM=0}function Hu(){this._call=this._time=this._next=null}function Iu(a,b,c){var d=new Hu;return d.restart(a,b,c),d}function Ju(){Fu(),++yM;for(var a,b=tM;b;)(a=DM-b._time)>=0&&b._call.call(null,a),b=b._next;--yM}function Ku(){DM=(CM=FM.now())+EM,yM=zM=0;try{Ju()}finally{yM=0,Mu(),DM=0}}function Lu(){var a=FM.now(),b=a-CM;b>BM&&(EM-=b,CM=a)}function Mu(){for(var a,b,c=tM,d=1/0;c;)c._call?(d>c._time&&(d=c._time),a=c,c=c._next):(b=c._next,c._next=null,c=a?a._next=b:tM=b);uM=a,Nu(d)}function Nu(a){if(!yM){zM&&(zM=clearTimeout(zM));var b=a-DM;b>24?(a<1/0&&(zM=setTimeout(Ku,b)),AM&&(AM=clearInterval(AM))):(AM||(CM=DM,AM=setInterval(Lu,BM)),yM=1,GM(Ku))}}function Ou(a,b,c){var d=new Hu;return b=null==b?0:+b,d.restart(function(c){d.stop(),a(c+b)},b,c),d}function Pu(a,b,c){var d=new Hu,e=b;return null==b?(d.restart(a,b,c),d):(b=+b,c=null==c?Fu():+c,d.restart(function f(g){g+=e,d.restart(f,e+=b,c),a(g)},b,c),d)}function Qu(a){var b=a+="",c=b.indexOf(":");return c>=0&&"xmlns"!==(b=a.slice(0,c))&&(a=a.slice(c+1)),IM.hasOwnProperty(b)?{space:IM[b],local:a}:a}function Ru(a){return function(){var b=this.ownerDocument,c=this.namespaceURI;return c===HM&&b.documentElement.namespaceURI===HM?b.createElement(a):b.createElementNS(c,a)}}function Su(a){return function(){return this.ownerDocument.createElementNS(a.space,a.local)}}function Tu(a){var b=Qu(a);return(b.local?Su:Ru)(b);
+}function Uu(){}function Vu(a){return null==a?Uu:function(){return this.querySelector(a)}}function Wu(a){"function"!=typeof a&&(a=Vu(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g,h=b[e],i=h.length,j=d[e]=new Array(i),k=0;k<i;++k)(f=h[k])&&(g=a.call(f,f.__data__,k,h))&&("__data__"in f&&(g.__data__=f.__data__),j[k]=g);return new uw(d,this._parents)}function Xu(){return[]}function Yu(a){return null==a?Xu:function(){return this.querySelectorAll(a)}}function Zu(a){"function"!=typeof a&&(a=Yu(a));for(var b=this._groups,c=b.length,d=[],e=[],f=0;f<c;++f)for(var g,h=b[f],i=h.length,j=0;j<i;++j)(g=h[j])&&(d.push(a.call(g,g.__data__,j,h)),e.push(g));return new uw(d,e)}function $u(a){"function"!=typeof a&&(a=MM(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;j<h;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new uw(d,this._parents)}function _u(a){return new Array(a.length)}function av(){return new uw(this._enter||this._groups.map(_u),this._parents)}function bv(a,b){this.ownerDocument=a.ownerDocument,this.namespaceURI=a.namespaceURI,this._next=null,this._parent=a,this.__data__=b}function cv(a){return function(){return a}}function dv(a,b,c,d,e,f){for(var g,h=0,i=b.length,j=f.length;h<j;++h)(g=b[h])?(g.__data__=f[h],d[h]=g):c[h]=new bv(a,f[h]);for(;h<i;++h)(g=b[h])&&(e[h]=g)}function ev(a,b,c,d,e,f,g){var h,i,j,k={},l=b.length,m=f.length,n=new Array(l);for(h=0;h<l;++h)(i=b[h])&&(n[h]=j=NM+g.call(i,i.__data__,h,b),j in k?e[h]=i:k[j]=i);for(h=0;h<m;++h)j=NM+g.call(a,f[h],h,f),(i=k[j])?(d[h]=i,i.__data__=f[h],k[j]=null):c[h]=new bv(a,f[h]);for(h=0;h<l;++h)(i=b[h])&&k[n[h]]===i&&(e[h]=i)}function fv(a,b){if(!a)return n=new Array(this.size()),j=-1,this.each(function(a){n[++j]=a}),n;var c=b?ev:dv,d=this._parents,e=this._groups;"function"!=typeof a&&(a=cv(a));for(var f=e.length,g=new Array(f),h=new Array(f),i=new Array(f),j=0;j<f;++j){var k=d[j],l=e[j],m=l.length,n=a.call(k,k&&k.__data__,j,d),o=n.length,p=h[j]=new Array(o),q=g[j]=new Array(o),r=i[j]=new Array(m);c(k,l,p,q,r,n,b);for(var s,t,u=0,v=0;u<o;++u)if(s=p[u]){for(u>=v&&(v=u+1);!(t=q[v])&&++v<o;);s._next=t||null}}return g=new uw(g,d),g._enter=h,g._exit=i,g}function gv(){return new uw(this._exit||this._groups.map(_u),this._parents)}function hv(a){for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;h<f;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;n<l;++n)(i=j[n]||k[n])&&(m[n]=i);for(;h<d;++h)g[h]=b[h];return new uw(g,this._parents)}function iv(){for(var a=this._groups,b=-1,c=a.length;++b<c;)for(var d,e=a[b],f=e.length-1,g=e[f];--f>=0;)(d=e[f])&&(g&&g!==d.nextSibling&&g.parentNode.insertBefore(d,g),g=d);return this}function jv(a){function b(b,c){return b&&c?a(b.__data__,c.__data__):!b-!c}a||(a=kv);for(var c=this._groups,d=c.length,e=new Array(d),f=0;f<d;++f){for(var g,h=c[f],i=h.length,j=e[f]=new Array(i),k=0;k<i;++k)(g=h[k])&&(j[k]=g);j.sort(b)}return new uw(e,this._parents).order()}function kv(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function lv(){var a=arguments[0];return arguments[0]=this,a.apply(null,arguments),this}function mv(){var a=new Array(this.size()),b=-1;return this.each(function(){a[++b]=this}),a}function nv(){for(var a=this._groups,b=0,c=a.length;b<c;++b)for(var d=a[b],e=0,f=d.length;e<f;++e){var g=d[e];if(g)return g}return null}function ov(){var a=0;return this.each(function(){++a}),a}function pv(){return!this.node()}function qv(a){for(var b=this._groups,c=0,d=b.length;c<d;++c)for(var e,f=b[c],g=0,h=f.length;g<h;++g)(e=f[g])&&a.call(e,e.__data__,g,f);return this}function rv(a){return function(){this.removeAttribute(a)}}function sv(a){return function(){this.removeAttributeNS(a.space,a.local)}}function tv(a,b){return function(){this.setAttribute(a,b)}}function uv(a,b){return function(){this.setAttributeNS(a.space,a.local,b)}}function vv(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttribute(a):this.setAttribute(a,c)}}function wv(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,c)}}function xv(a,b){var c=Qu(a);if(arguments.length<2){var d=this.node();return c.local?d.getAttributeNS(c.space,c.local):d.getAttribute(c)}return this.each((null==b?c.local?sv:rv:"function"==typeof b?c.local?wv:vv:c.local?uv:tv)(c,b))}function yv(a){return a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView}function zv(a){return function(){this.style.removeProperty(a)}}function Av(a,b,c){return function(){this.style.setProperty(a,b,c)}}function Bv(a,b,c){return function(){var d=b.apply(this,arguments);null==d?this.style.removeProperty(a):this.style.setProperty(a,d,c)}}function Cv(a,b,c){return arguments.length>1?this.each((null==b?zv:"function"==typeof b?Bv:Av)(a,b,null==c?"":c)):Dv(this.node(),a)}function Dv(a,b){return a.style.getPropertyValue(b)||yv(a).getComputedStyle(a,null).getPropertyValue(b)}function Ev(a){return function(){delete this[a]}}function Fv(a,b){return function(){this[a]=b}}function Gv(a,b){return function(){var c=b.apply(this,arguments);null==c?delete this[a]:this[a]=c}}function Hv(a,b){return arguments.length>1?this.each((null==b?Ev:"function"==typeof b?Gv:Fv)(a,b)):this.node()[a]}function Iv(a){return a.trim().split(/^|\s+/)}function Jv(a){return a.classList||new Kv(a)}function Kv(a){this._node=a,this._names=Iv(a.getAttribute("class")||"")}function Lv(a,b){for(var c=Jv(a),d=-1,e=b.length;++d<e;)c.add(b[d])}function Mv(a,b){for(var c=Jv(a),d=-1,e=b.length;++d<e;)c.remove(b[d])}function Nv(a){return function(){Lv(this,a)}}function Ov(a){return function(){Mv(this,a)}}function Pv(a,b){return function(){(b.apply(this,arguments)?Lv:Mv)(this,a)}}function Qv(a,b){var c=Iv(a+"");if(arguments.length<2){for(var d=Jv(this.node()),e=-1,f=c.length;++e<f;)if(!d.contains(c[e]))return!1;return!0}return this.each(("function"==typeof b?Pv:b?Nv:Ov)(c,b))}function Rv(){this.textContent=""}function Sv(a){return function(){this.textContent=a}}function Tv(a){return function(){var b=a.apply(this,arguments);this.textContent=null==b?"":b}}function Uv(a){return arguments.length?this.each(null==a?Rv:("function"==typeof a?Tv:Sv)(a)):this.node().textContent}function Vv(){this.innerHTML=""}function Wv(a){return function(){this.innerHTML=a}}function Xv(a){return function(){var b=a.apply(this,arguments);this.innerHTML=null==b?"":b}}function Yv(a){return arguments.length?this.each(null==a?Vv:("function"==typeof a?Xv:Wv)(a)):this.node().innerHTML}function Zv(){this.nextSibling&&this.parentNode.appendChild(this)}function $v(){return this.each(Zv)}function _v(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function aw(){return this.each(_v)}function bw(a){var b="function"==typeof a?a:Tu(a);return this.select(function(){return this.appendChild(b.apply(this,arguments))})}function cw(){return null}function dw(a,b){var c="function"==typeof a?a:Tu(a),d=null==b?cw:"function"==typeof b?b:Vu(b);return this.select(function(){return this.insertBefore(c.apply(this,arguments),d.apply(this,arguments)||null)})}function ew(){var a=this.parentNode;a&&a.removeChild(this)}function fw(){return this.each(ew)}function gw(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function hw(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function iw(a){return this.select(a?hw:gw)}function jw(a){return arguments.length?this.property("__data__",a):this.node().__data__}function kw(a,b,c){return a=lw(a,b,c),function(b){var c=b.relatedTarget;c&&(c===this||8&c.compareDocumentPosition(this))||a.call(this,b)}}function lw(a,b,c){return function(d){try{a.call(this,this.__data__,b,c)}finally{}}}function mw(a){return a.trim().split(/^|\s+/).map(function(a){var b="",c=a.indexOf(".");return c>=0&&(b=a.slice(c+1),a=a.slice(0,c)),{type:a,name:b}})}function nw(a){return function(){var b=this.__on;if(b){for(var c,d=0,e=-1,f=b.length;d<f;++d)c=b[d],a.type&&c.type!==a.type||c.name!==a.name?b[++e]=c:this.removeEventListener(c.type,c.listener,c.capture);++e?b.length=e:delete this.__on}}}function ow(a,b,c){var d=OM.hasOwnProperty(a.type)?kw:lw;return function(e,f,g){var h,i=this.__on,j=d(b,f,g);if(i)for(var k=0,l=i.length;k<l;++k)if((h=i[k]).type===a.type&&h.name===a.name)return this.removeEventListener(h.type,h.listener,h.capture),this.addEventListener(h.type,h.listener=j,h.capture=c),void(h.value=b);this.addEventListener(a.type,j,c),h={type:a.type,name:a.name,value:b,listener:j,capture:c},i?i.push(h):this.__on=[h]}}function pw(a,b,c){var d,e,f=mw(a+""),g=f.length;{if(!(arguments.length<2)){for(h=b?ow:nw,null==c&&(c=!1),d=0;d<g;++d)this.each(h(f[d],b,c));return this}var h=this.node().__on;if(h)for(var i,j=0,k=h.length;j<k;++j)for(d=0,i=h[j];d<g;++d)if((e=f[d]).type===i.type&&e.name===i.name)return i.value}}function qw(a,b,c){var d=yv(a),e=d.CustomEvent;"function"==typeof e?e=new e(b,c):(e=d.document.createEvent("Event"),c?(e.initEvent(b,c.bubbles,c.cancelable),e.detail=c.detail):e.initEvent(b,!1,!1)),a.dispatchEvent(e)}function rw(a,b){return function(){return qw(this,a,b)}}function sw(a,b){return function(){return qw(this,a,b.apply(this,arguments))}}function tw(a,b){return this.each(("function"==typeof b?sw:rw)(a,b))}function uw(a,b){this._groups=a,this._parents=b}function vw(){return new uw([[document.documentElement]],QM)}function ww(){return YM||(_M(xw),YM=$M.now()+ZM)}function xw(){YM=0}function yw(){this._call=this._time=this._next=null}function zw(a,b,c){var d=new yw;return d.restart(a,b,c),d}function Aw(){ww(),++TM;for(var a,b=RM;b;)(a=YM-b._time)>=0&&b._call.call(null,a),b=b._next;--TM}function Bw(){YM=(XM=$M.now())+ZM,TM=UM=0;try{Aw()}finally{TM=0,Dw(),YM=0}}function Cw(){var a=$M.now(),b=a-XM;b>WM&&(ZM-=b,XM=a)}function Dw(){for(var a,b,c=RM,d=1/0;c;)c._call?(d>c._time&&(d=c._time),a=c,c=c._next):(b=c._next,c._next=null,c=a?a._next=b:RM=b);SM=a,Ew(d)}function Ew(a){if(!TM){UM&&(UM=clearTimeout(UM));var b=a-YM;b>24?(a<1/0&&(UM=setTimeout(Bw,a-$M.now()-ZM)),VM&&(VM=clearInterval(VM))):(VM||(XM=$M.now(),VM=setInterval(Cw,WM)),TM=1,_M(Bw))}}function Fw(a,b,c){var d=new yw;return b=null==b?0:+b,d.restart(function(c){d.stop(),a(c+b)},b,c),d}function Gw(a,b,c,d,e,f){var g=a.__transition;if(g){if(c in g)return}else a.__transition={};Kw(a,c,{name:b,index:d,group:e,on:eN,tween:fN,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:gN})}function Hw(a,b){var c=a.__transition;if(!c||!(c=c[b])||c.state>gN)throw new Error("too late");return c}function Iw(a,b){var c=a.__transition;if(!c||!(c=c[b])||c.state>iN)throw new Error("too late");return c}function Jw(a,b){var c=a.__transition;if(!c||!(c=c[b]))throw new Error("too late");return c}function Kw(a,b,c){function d(a){c.state=hN,c.timer.restart(e,c.delay,c.time),c.delay<=a&&e(a-c.delay)}function e(d){var j,k,l,m;if(c.state!==hN)return g();for(j in i)if(m=i[j],m.name===c.name){if(m.state===jN)return Fw(e);m.state===kN?(m.state=mN,m.timer.stop(),m.on.call("interrupt",a,a.__data__,m.index,m.group),delete i[j]):+j<b&&(m.state=mN,m.timer.stop(),delete i[j])}if(Fw(function(){c.state===jN&&(c.state=kN,c.timer.restart(f,c.delay,c.time),f(d))}),c.state=iN,c.on.call("start",a,a.__data__,c.index,c.group),c.state===iN){for(c.state=jN,h=new Array(l=c.tween.length),j=0,k=-1;j<l;++j)(m=c.tween[j].value.call(a,a.__data__,c.index,c.group))&&(h[++k]=m);h.length=k+1}}function f(b){for(var d=b<c.duration?c.ease.call(null,b/c.duration):(c.timer.restart(g),c.state=lN,1),e=-1,f=h.length;++e<f;)h[e].call(null,d);c.state===lN&&(c.on.call("end",a,a.__data__,c.index,c.group),g())}function g(){c.state=mN,c.timer.stop(),delete i[b];for(var d in i)return;delete a.__transition}var h,i=a.__transition;i[b]=c,c.timer=zw(d,0,c.time)}function Lw(a,b){var c,d,e,f=a.__transition,g=!0;if(f){b=null==b?null:b+"";for(e in f)(c=f[e]).name===b?(d=c.state>iN&&c.state<lN,c.state=mN,c.timer.stop(),d&&c.on.call("interrupt",a,a.__data__,c.index,c.group),delete f[e]):g=!1;g&&delete a.__transition}}function Mw(a){return this.each(function(){Lw(this,a)})}function Nw(a){return function(){return a}}function Ow(a,b){return function(c){return a+c*b}}function Pw(a,b,c){return a=Math.pow(a,c),b=Math.pow(b,c)-a,c=1/c,function(d){return Math.pow(a+d*b,c)}}function Qw(a){return 1===(a=+a)?Rw:function(b,c){return c-b?Pw(b,c,a):Nw(isNaN(b)?c:b)}}function Rw(a,b){var c=b-a;return c?Ow(a,c):Nw(isNaN(a)?b:a)}function Sw(a,b){return a=+a,b-=a,function(c){return a+b*c}}function Tw(a){return function(){return a}}function Uw(a){return function(b){return a(b)+""}}function Vw(a,b){var c,d,e,f=oN.lastIndex=pN.lastIndex=0,g=-1,h=[],i=[];for(a+="",b+="";(c=oN.exec(a))&&(d=pN.exec(b));)(e=d.index)>f&&(e=b.slice(f,e),h[g]?h[g]+=e:h[++g]=e),(c=c[0])===(d=d[0])?h[g]?h[g]+=d:h[++g]=d:(h[++g]=null,i.push({i:g,x:Sw(c,d)})),f=pN.lastIndex;return f<b.length&&(e=b.slice(f),h[g]?h[g]+=e:h[++g]=e),h.length<2?i[0]?Uw(i[0].x):Tw(b):(b=i.length,function(a){for(var c,d=0;d<b;++d)h[(c=i[d]).i]=c.x(a);return h.join("")})}function Ww(a,b,c,d,e,f){var g,h,i;return(g=Math.sqrt(a*a+b*b))&&(a/=g,b/=g),(i=a*c+b*d)&&(c-=a*i,d-=b*i),(h=Math.sqrt(c*c+d*d))&&(c/=h,d/=h,i/=h),a*d<b*c&&(a=-a,b=-b,i=-i,g=-g),{translateX:e,translateY:f,rotate:Math.atan2(b,a)*qN,skewX:Math.atan(i)*qN,scaleX:g,scaleY:h}}function Xw(a){return"none"===a?rN:(aN||(aN=document.createElement("DIV"),bN=document.documentElement,cN=document.defaultView),aN.style.transform=a,a=cN.getComputedStyle(bN.appendChild(aN),null).getPropertyValue("transform"),bN.removeChild(aN),a=a.slice(7,-1).split(","),Ww(+a[0],+a[1],+a[2],+a[3],+a[4],+a[5]))}function Yw(a){return null==a?rN:(dN||(dN=document.createElementNS("http://www.w3.org/2000/svg","g")),dN.setAttribute("transform",a),(a=dN.transform.baseVal.consolidate())?(a=a.matrix,Ww(a.a,a.b,a.c,a.d,a.e,a.f)):rN)}function Zw(a,b,c,d){function e(a){return a.length?a.pop()+" ":""}function f(a,d,e,f,g,h){if(a!==e||d!==f){var i=g.push("translate(",null,b,null,c);h.push({i:i-4,x:Sw(a,e)},{i:i-2,x:Sw(d,f)})}else(e||f)&&g.push("translate("+e+b+f+c)}function g(a,b,c,f){a!==b?(a-b>180?b+=360:b-a>180&&(a+=360),f.push({i:c.push(e(c)+"rotate(",null,d)-2,x:Sw(a,b)})):b&&c.push(e(c)+"rotate("+b+d)}function h(a,b,c,f){a!==b?f.push({i:c.push(e(c)+"skewX(",null,d)-2,x:Sw(a,b)}):b&&c.push(e(c)+"skewX("+b+d)}function i(a,b,c,d,f,g){if(a!==c||b!==d){var h=f.push(e(f)+"scale(",null,",",null,")");g.push({i:h-4,x:Sw(a,c)},{i:h-2,x:Sw(b,d)})}else 1===c&&1===d||f.push(e(f)+"scale("+c+","+d+")")}return function(b,c){var d=[],e=[];return b=a(b),c=a(c),f(b.translateX,b.translateY,c.translateX,c.translateY,d,e),g(b.rotate,c.rotate,d,e),h(b.skewX,c.skewX,d,e),i(b.scaleX,b.scaleY,c.scaleX,c.scaleY,d,e),b=c=null,function(a){for(var b,c=-1,f=e.length;++c<f;)d[(b=e[c]).i]=b.x(a);return d.join("")}}}function $w(a,b){var c,d;return function(){var e=Iw(this,a),f=e.tween;if(f!==c){d=c=f;for(var g=0,h=d.length;g<h;++g)if(d[g].name===b){d=d.slice(),d.splice(g,1);break}}e.tween=d}}function _w(a,b,c){var d,e;if("function"!=typeof c)throw new Error;return function(){var f=Iw(this,a),g=f.tween;if(g!==d){e=(d=g).slice();for(var h={name:b,value:c},i=0,j=e.length;i<j;++i)if(e[i].name===b){e[i]=h;break}i===j&&e.push(h)}f.tween=e}}function ax(a,b){var c=this._id;if(a+="",arguments.length<2){for(var d,e=Jw(this.node(),c).tween,f=0,g=e.length;f<g;++f)if((d=e[f]).name===a)return d.value;return null}return this.each((null==b?$w:_w)(c,a,b))}function bx(a,b,c){var d=a._id;return a.each(function(){var a=Iw(this,d);(a.value||(a.value={}))[b]=c.apply(this,arguments)}),function(a){return Jw(a,d).value[b]}}function cx(a,b){var c;return("number"==typeof b?Sw:b instanceof Qb?nN:(c=Qb(b))?(b=c,nN):Vw)(a,b)}function dx(a){return function(){this.removeAttribute(a)}}function ex(a){return function(){this.removeAttributeNS(a.space,a.local)}}function fx(a,b,c){var d,e;return function(){var f=this.getAttribute(a);return f===c?null:f===d?e:e=b(d=f,c)}}function gx(a,b,c){var d,e;return function(){var f=this.getAttributeNS(a.space,a.local);return f===c?null:f===d?e:e=b(d=f,c)}}function hx(a,b,c){var d,e,f;return function(){var g,h=c(this);return null==h?void this.removeAttribute(a):(g=this.getAttribute(a),g===h?null:g===d&&h===e?f:f=b(d=g,e=h))}}function ix(a,b,c){var d,e,f;return function(){var g,h=c(this);return null==h?void this.removeAttributeNS(a.space,a.local):(g=this.getAttributeNS(a.space,a.local),g===h?null:g===d&&h===e?f:f=b(d=g,e=h))}}function jx(a,b){var c=Qu(a),d="transform"===c?tN:cx;return this.attrTween(a,"function"==typeof b?(c.local?ix:hx)(c,d,bx(this,"attr."+a,b)):null==b?(c.local?ex:dx)(c):(c.local?gx:fx)(c,d,b+""))}function kx(a,b){function c(){var c=this,d=b.apply(c,arguments);return d&&function(b){c.setAttributeNS(a.space,a.local,d(b))}}return c._value=b,c}function lx(a,b){function c(){var c=this,d=b.apply(c,arguments);return d&&function(b){c.setAttribute(a,d(b))}}return c._value=b,c}function mx(a,b){var c="attr."+a;if(arguments.length<2)return(c=this.tween(c))&&c._value;if(null==b)return this.tween(c,null);if("function"!=typeof b)throw new Error;var d=Qu(a);return this.tween(c,(d.local?kx:lx)(d,b))}function nx(a,b){return function(){Hw(this,a).delay=+b.apply(this,arguments)}}function ox(a,b){return b=+b,function(){Hw(this,a).delay=b}}function px(a){var b=this._id;return arguments.length?this.each(("function"==typeof a?nx:ox)(b,a)):Jw(this.node(),b).delay}function qx(a,b){return function(){Iw(this,a).duration=+b.apply(this,arguments)}}function rx(a,b){return b=+b,function(){Iw(this,a).duration=b}}function sx(a){var b=this._id;return arguments.length?this.each(("function"==typeof a?qx:rx)(b,a)):Jw(this.node(),b).duration}function tx(a,b){if("function"!=typeof b)throw new Error;return function(){Iw(this,a).ease=b}}function ux(a){var b=this._id;return arguments.length?this.each(tx(b,a)):Jw(this.node(),b).ease}function vx(a){"function"!=typeof a&&(a=MM(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;j<h;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new Qx(d,this._parents,this._name,this._id)}function wx(a){if(a._id!==this._id)throw new Error;for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;h<f;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;n<l;++n)(i=j[n]||k[n])&&(m[n]=i);for(;h<d;++h)g[h]=b[h];return new Qx(g,this._parents,this._name,this._id)}function xx(a){return(a+"").trim().split(/^|\s+/).every(function(a){var b=a.indexOf(".");return b>=0&&(a=a.slice(0,b)),!a||"start"===a})}function yx(a,b,c){var d,e,f=xx(b)?Hw:Iw;return function(){var g=f(this,a),h=g.on;h!==d&&(e=(d=h).copy()).on(b,c),g.on=e}}function zx(a,b){var c=this._id;return arguments.length<2?Jw(this.node(),c).on.on(a):this.each(yx(c,a,b))}function Ax(a){return function(){var b=this.parentNode;for(var c in this.__transition)if(+c!==a)return;b&&b.removeChild(this)}}function Bx(){return this.on("end.remove",Ax(this._id))}function Cx(a){var b=this._name,c=this._id;"function"!=typeof a&&(a=Vu(a));for(var d=this._groups,e=d.length,f=new Array(e),g=0;g<e;++g)for(var h,i,j=d[g],k=j.length,l=f[g]=new Array(k),m=0;m<k;++m)(h=j[m])&&(i=a.call(h,h.__data__,m,j))&&("__data__"in h&&(i.__data__=h.__data__),l[m]=i,Gw(l[m],b,c,m,l,Jw(h,c)));return new Qx(f,this._parents,b,c)}function Dx(a){var b=this._name,c=this._id;"function"!=typeof a&&(a=Yu(a));for(var d=this._groups,e=d.length,f=[],g=[],h=0;h<e;++h)for(var i,j=d[h],k=j.length,l=0;l<k;++l)if(i=j[l]){for(var m,n=a.call(i,i.__data__,l,j),o=Jw(i,c),p=0,q=n.length;p<q;++p)(m=n[p])&&Gw(m,b,c,p,n,o);f.push(n),g.push(i)}return new Qx(f,g,b,c)}function Ex(){return new uN(this._groups,this._parents)}function Fx(a,b){var c,d,e;return function(){var f=Dv(this,a),g=(this.style.removeProperty(a),Dv(this,a));return f===g?null:f===c&&g===d?e:e=b(c=f,d=g)}}function Gx(a){return function(){this.style.removeProperty(a)}}function Hx(a,b,c){var d,e;return function(){var f=Dv(this,a);return f===c?null:f===d?e:e=b(d=f,c)}}function Ix(a,b,c){var d,e,f;return function(){var g=Dv(this,a),h=c(this);return null==h&&(this.style.removeProperty(a),h=Dv(this,a)),g===h?null:g===d&&h===e?f:f=b(d=g,e=h)}}function Jx(a,b,c){var d="transform"==(a+="")?sN:cx;return null==b?this.styleTween(a,Fx(a,d)).on("end.style."+a,Gx(a)):this.styleTween(a,"function"==typeof b?Ix(a,d,bx(this,"style."+a,b)):Hx(a,d,b+""),c)}function Kx(a,b,c){function d(){var d=this,e=b.apply(d,arguments);return e&&function(b){d.style.setProperty(a,e(b),c)}}return d._value=b,d}function Lx(a,b,c){var d="style."+(a+="");if(arguments.length<2)return(d=this.tween(d))&&d._value;if(null==b)return this.tween(d,null);if("function"!=typeof b)throw new Error;return this.tween(d,Kx(a,b,null==c?"":c))}function Mx(a){return function(){this.textContent=a}}function Nx(a){return function(){var b=a(this);this.textContent=null==b?"":b}}function Ox(a){return this.tween("text","function"==typeof a?Nx(bx(this,"text",a)):Mx(null==a?"":a+""))}function Px(){for(var a=this._name,b=this._id,c=Sx(),d=this._groups,e=d.length,f=0;f<e;++f)for(var g,h=d[f],i=h.length,j=0;j<i;++j)if(g=h[j]){var k=Jw(g,b);Gw(g,a,c,j,h,{time:k.time+k.delay+k.duration,delay:0,duration:k.duration,ease:k.ease})}return new Qx(d,this._parents,a,c)}function Qx(a,b,c,d){this._groups=a,this._parents=b,this._name=c,this._id=d}function Rx(a){return vw().transition(a)}function Sx(){return++vN}function Tx(a,b){for(var c;!(c=a.__transition)||!(c=c[b]);)if(!(a=a.parentNode))return xN.time=ww(),xN;return c}function Ux(a){var b,c;a instanceof Qx?(b=a._id,a=a._name):(b=Sx(),(c=xN).time=ww(),a=null==a?null:a+"");for(var d=this._groups,e=d.length,f=0;f<e;++f)for(var g,h=d[f],i=h.length,j=0;j<i;++j)(g=h[j])&&Gw(g,a,b,j,h,c||Tx(g,b));return new Qx(d,this._parents,a,b)}function Vx(a,b){var c,d,e=a.__transition;if(e){b=null==b?null:b+"";for(d in e)if((c=e[d]).state>hN&&c.name===b)return new Qx([[a]],yN,b,+d)}return null}function Wx(a){return function(){return a}}function Xx(a){return a[0]}function Yx(a){return a[1]}function Zx(){this._=null}function $x(a){a.U=a.C=a.L=a.R=a.P=a.N=null}function _x(a,b){var c=b,d=b.R,e=c.U;e?e.L===c?e.L=d:e.R=d:a._=d,d.U=e,c.U=d,c.R=d.L,c.R&&(c.R.U=c),d.L=c}function ay(a,b){var c=b,d=b.L,e=c.U;e?e.L===c?e.L=d:e.R=d:a._=d,d.U=e,c.U=d,c.L=d.R,c.L&&(c.L.U=c),d.R=c}function by(a){for(;a.L;)a=a.L;return a}function cy(a,b,c,d){var e=[null,null],f=DN.push(e)-1;return e.left=a,e.right=b,c&&ey(e,a,b,c),d&&ey(e,b,a,d),BN[a.index].halfedges.push(f),BN[b.index].halfedges.push(f),e}function dy(a,b,c){var d=[b,c];return d.left=a,d}function ey(a,b,c,d){a[0]||a[1]?a.left===c?a[1]=d:a[0]=d:(a[0]=d,a.left=b,a.right=c)}function fy(a,b,c,d,e){var f,g=a[0],h=a[1],i=g[0],j=g[1],k=h[0],l=h[1],m=0,n=1,o=k-i,p=l-j;if(f=b-i,o||!(f>0)){if(f/=o,o<0){if(f<m)return;f<n&&(n=f)}else if(o>0){if(f>n)return;f>m&&(m=f)}if(f=d-i,o||!(f<0)){if(f/=o,o<0){if(f>n)return;f>m&&(m=f)}else if(o>0){if(f<m)return;f<n&&(n=f)}if(f=c-j,p||!(f>0)){if(f/=p,p<0){if(f<m)return;f<n&&(n=f)}else if(p>0){if(f>n)return;f>m&&(m=f)}if(f=e-j,p||!(f<0)){if(f/=p,p<0){if(f>n)return;f>m&&(m=f)}else if(p>0){if(f<m)return;f<n&&(n=f)}return!(m>0||n<1)||(m>0&&(a[0]=[i+m*o,j+m*p]),n<1&&(a[1]=[i+n*o,j+n*p]),!0)}}}}}function gy(a,b,c,d,e){var f=a[1];if(f)return!0;var g,h,i=a[0],j=a.left,k=a.right,l=j[0],m=j[1],n=k[0],o=k[1],p=(l+n)/2,q=(m+o)/2;if(o===m){if(p<b||p>=d)return;if(l>n){if(i){if(i[1]>=e)return}else i=[p,c];f=[p,e]}else{if(i){if(i[1]<c)return}else i=[p,e];f=[p,c]}}else if(g=(l-n)/(o-m),h=q-g*p,g<-1||g>1)if(l>n){if(i){if(i[1]>=e)return}else i=[(c-h)/g,c];f=[(e-h)/g,e]}else{if(i){if(i[1]<c)return}else i=[(e-h)/g,e];f=[(c-h)/g,c]}else if(m<o){if(i){if(i[0]>=d)return}else i=[b,g*b+h];f=[d,g*d+h]}else{if(i){if(i[0]<b)return}else i=[d,g*d+h];f=[b,g*b+h]}return a[0]=i,a[1]=f,!0}function hy(a,b,c,d){for(var e,f=DN.length;f--;)gy(e=DN[f],a,b,c,d)&&fy(e,a,b,c,d)&&(Math.abs(e[0][0]-e[1][0])>GN||Math.abs(e[0][1]-e[1][1])>GN)||delete DN[f]}function iy(a){return BN[a.index]={site:a,halfedges:[]}}function jy(a,b){var c=a.site,d=b.left,e=b.right;return c===e&&(e=d,d=c),e?Math.atan2(e[1]-d[1],e[0]-d[0]):(c===d?(d=b[1],e=b[0]):(d=b[0],e=b[1]),Math.atan2(d[0]-e[0],e[1]-d[1]))}function ky(a,b){return b[+(b.left!==a.site)]}function ly(a,b){return b[+(b.left===a.site)]}function my(){for(var a,b,c,d,e=0,f=BN.length;e<f;++e)if((a=BN[e])&&(d=(b=a.halfedges).length)){var g=new Array(d),h=new Array(d);for(c=0;c<d;++c)g[c]=c,h[c]=jy(a,DN[b[c]]);for(g.sort(function(a,b){return h[b]-h[a]}),c=0;c<d;++c)h[c]=b[g[c]];for(c=0;c<d;++c)b[c]=h[c]}}function ny(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q=BN.length,r=!0;for(e=0;e<q;++e)if(f=BN[e]){for(g=f.site,i=f.halfedges,h=i.length;h--;)DN[i[h]]||i.splice(h,1);for(h=0,j=i.length;h<j;)n=ly(f,DN[i[h]]),o=n[0],p=n[1],k=ky(f,DN[i[++h%j]]),l=k[0],m=k[1],(Math.abs(o-l)>GN||Math.abs(p-m)>GN)&&(i.splice(h,0,DN.push(dy(g,n,Math.abs(o-a)<GN&&d-p>GN?[a,Math.abs(l-a)<GN?m:d]:Math.abs(p-d)<GN&&c-o>GN?[Math.abs(m-d)<GN?l:c,d]:Math.abs(o-c)<GN&&p-b>GN?[c,Math.abs(l-c)<GN?m:b]:Math.abs(p-b)<GN&&o-a>GN?[Math.abs(m-b)<GN?l:a,b]:null))-1),++j);j&&(r=!1)}if(r){var s,t,u,v=1/0;for(e=0,r=null;e<q;++e)(f=BN[e])&&(g=f.site,s=g[0]-a,t=g[1]-b,u=s*s+t*t,u<v&&(v=u,r=f));if(r){var w=[a,b],x=[a,d],y=[c,d],z=[c,b];r.halfedges.push(DN.push(dy(g=r.site,w,x))-1,DN.push(dy(g,x,y))-1,DN.push(dy(g,y,z))-1,DN.push(dy(g,z,w))-1)}}for(e=0;e<q;++e)(f=BN[e])&&(f.halfedges.length||delete BN[e])}function oy(){$x(this),this.x=this.y=this.arc=this.site=this.cy=null}function py(a){var b=a.P,c=a.N;if(b&&c){var d=b.site,e=a.site,f=c.site;if(d!==f){var g=e[0],h=e[1],i=d[0]-g,j=d[1]-h,k=f[0]-g,l=f[1]-h,m=2*(i*l-j*k);if(!(m>=-HN)){var n=i*i+j*j,o=k*k+l*l,p=(l*n-j*o)/m,q=(i*o-k*n)/m,r=EN.pop()||new oy;r.arc=a,r.site=e,r.x=p+g,r.y=(r.cy=q+h)+Math.sqrt(p*p+q*q),a.circle=r;for(var s=null,t=CN._;t;)if(r.y<t.y||r.y===t.y&&r.x<=t.x){if(!t.L){s=t.P;break}t=t.L}else{if(!t.R){s=t;break}t=t.R}CN.insert(s,r),s||(zN=r)}}}}function qy(a){var b=a.circle;b&&(b.P||(zN=b.N),CN.remove(b),EN.push(b),$x(b),a.circle=null)}function ry(){$x(this),this.edge=this.site=this.circle=null}function sy(a){var b=FN.pop()||new ry;return b.site=a,b}function ty(a){qy(a),AN.remove(a),FN.push(a),$x(a)}function uy(a){var b=a.circle,c=b.x,d=b.cy,e=[c,d],f=a.P,g=a.N,h=[a];ty(a);for(var i=f;i.circle&&Math.abs(c-i.circle.x)<GN&&Math.abs(d-i.circle.cy)<GN;)f=i.P,h.unshift(i),ty(i),i=f;h.unshift(i),qy(i);for(var j=g;j.circle&&Math.abs(c-j.circle.x)<GN&&Math.abs(d-j.circle.cy)<GN;)g=j.N,h.push(j),ty(j),j=g;h.push(j),qy(j);var k,l=h.length;for(k=1;k<l;++k)j=h[k],i=h[k-1],ey(j.edge,i.site,j.site,e);i=h[0],j=h[l-1],j.edge=cy(i.site,j.site,null,e),py(i),py(j)}function vy(a){for(var b,c,d,e,f=a[0],g=a[1],h=AN._;h;)if(d=wy(h,g)-f,d>GN)h=h.L;else{if(e=f-xy(h,g),!(e>GN)){d>-GN?(b=h.P,c=h):e>-GN?(b=h,c=h.N):b=c=h;break}if(!h.R){b=h;break}h=h.R}iy(a);var i=sy(a);if(AN.insert(b,i),b||c){if(b===c)return qy(b),c=sy(b.site),AN.insert(i,c),i.edge=c.edge=cy(b.site,i.site),py(b),void py(c);if(!c)return void(i.edge=cy(b.site,i.site));qy(b),qy(c);var j=b.site,k=j[0],l=j[1],m=a[0]-k,n=a[1]-l,o=c.site,p=o[0]-k,q=o[1]-l,r=2*(m*q-n*p),s=m*m+n*n,t=p*p+q*q,u=[(q*s-n*t)/r+k,(m*t-p*s)/r+l];ey(c.edge,j,o,u),i.edge=cy(j,a,null,u),c.edge=cy(a,o,null,u),py(b),py(c)}}function wy(a,b){var c=a.site,d=c[0],e=c[1],f=e-b;if(!f)return d;var g=a.P;if(!g)return-(1/0);c=g.site;var h=c[0],i=c[1],j=i-b;if(!j)return h;var k=h-d,l=1/f-1/j,m=k/j;return l?(-m+Math.sqrt(m*m-2*l*(k*k/(-2*j)-i+j/2+e-f/2)))/l+d:(d+h)/2}function xy(a,b){var c=a.N;if(c)return wy(c,b);var d=a.site;return d[1]===b?d[0]:1/0}function yy(a,b,c){return(a[0]-c[0])*(b[1]-a[1])-(a[0]-b[0])*(c[1]-a[1])}function zy(a,b){return b[1]-a[1]||b[0]-a[0]}function Ay(a,b){var c,d,e,f=a.sort(zy).pop();for(DN=[],BN=new Array(a.length),AN=new Zx,CN=new Zx;;)if(e=zN,f&&(!e||f[1]<e.y||f[1]===e.y&&f[0]<e.x))f[0]===c&&f[1]===d||(vy(f),c=f[0],d=f[1]),f=a.pop();else{if(!e)break;uy(e.arc)}if(my(),b){var g=+b[0][0],h=+b[0][1],i=+b[1][0],j=+b[1][1];hy(g,h,i,j),ny(g,h,i,j)}this.edges=DN,this.cells=BN,AN=CN=DN=BN=null}function By(){function a(a){return new Ay(a.map(function(d,e){var f=[Math.round(b(d,e,a)/GN)*GN,Math.round(c(d,e,a)/GN)*GN];return f.index=e,f.data=d,f}),d)}var b=Xx,c=Yx,d=null;return a.polygons=function(b){return a(b).polygons()},a.links=function(b){return a(b).links()},a.triangles=function(b){return a(b).triangles()},a.x=function(c){return arguments.length?(b="function"==typeof c?c:Wx(+c),a):b},a.y=function(b){return arguments.length?(c="function"==typeof b?b:Wx(+b),a):c},a.extent=function(b){return arguments.length?(d=null==b?null:[[+b[0][0],+b[0][1]],[+b[1][0],+b[1][1]]],a):d&&[[d[0][0],d[0][1]],[d[1][0],d[1][1]]]},a.size=function(b){return arguments.length?(d=null==b?null:[[0,0],[+b[0],+b[1]]],a):d&&[d[1][0]-d[0][0],d[1][1]-d[0][1]]},a}function Cy(a){var b=a+="",c=b.indexOf(":");return c>=0&&"xmlns"!==(b=a.slice(0,c))&&(a=a.slice(c+1)),JN.hasOwnProperty(b)?{space:JN[b],local:a}:a}function Dy(a){return function(){var b=this.ownerDocument,c=this.namespaceURI;return c===IN&&b.documentElement.namespaceURI===IN?b.createElement(a):b.createElementNS(c,a)}}function Ey(a){return function(){return this.ownerDocument.createElementNS(a.space,a.local)}}function Fy(a){var b=Cy(a);return(b.local?Ey:Dy)(b)}function Gy(){}function Hy(a){return null==a?Gy:function(){return this.querySelector(a)}}function Iy(a){"function"!=typeof a&&(a=Hy(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g,h=b[e],i=h.length,j=d[e]=new Array(i),k=0;k<i;++k)(f=h[k])&&(g=a.call(f,f.__data__,k,h))&&("__data__"in f&&(g.__data__=f.__data__),j[k]=g);return new hA(d,this._parents)}function Jy(){return[]}function Ky(a){return null==a?Jy:function(){return this.querySelectorAll(a)}}function Ly(a){"function"!=typeof a&&(a=Ky(a));for(var b=this._groups,c=b.length,d=[],e=[],f=0;f<c;++f)for(var g,h=b[f],i=h.length,j=0;j<i;++j)(g=h[j])&&(d.push(a.call(g,g.__data__,j,h)),e.push(g));return new hA(d,e)}function My(a){"function"!=typeof a&&(a=NN(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;j<h;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new hA(d,this._parents)}function Ny(a){return new Array(a.length)}function Oy(){return new hA(this._enter||this._groups.map(Ny),this._parents)}function Py(a,b){this.ownerDocument=a.ownerDocument,this.namespaceURI=a.namespaceURI,this._next=null,this._parent=a,this.__data__=b}function Qy(a){return function(){return a}}function Ry(a,b,c,d,e,f){for(var g,h=0,i=b.length,j=f.length;h<j;++h)(g=b[h])?(g.__data__=f[h],d[h]=g):c[h]=new Py(a,f[h]);for(;h<i;++h)(g=b[h])&&(e[h]=g)}function Sy(a,b,c,d,e,f,g){var h,i,j,k={},l=b.length,m=f.length,n=new Array(l);for(h=0;h<l;++h)(i=b[h])&&(n[h]=j=ON+g.call(i,i.__data__,h,b),j in k?e[h]=i:k[j]=i);for(h=0;h<m;++h)j=ON+g.call(a,f[h],h,f),(i=k[j])?(d[h]=i,i.__data__=f[h],k[j]=null):c[h]=new Py(a,f[h]);for(h=0;h<l;++h)(i=b[h])&&k[n[h]]===i&&(e[h]=i)}function Ty(a,b){if(!a)return n=new Array(this.size()),j=-1,this.each(function(a){n[++j]=a}),n;var c=b?Sy:Ry,d=this._parents,e=this._groups;"function"!=typeof a&&(a=Qy(a));for(var f=e.length,g=new Array(f),h=new Array(f),i=new Array(f),j=0;j<f;++j){var k=d[j],l=e[j],m=l.length,n=a.call(k,k&&k.__data__,j,d),o=n.length,p=h[j]=new Array(o),q=g[j]=new Array(o),r=i[j]=new Array(m);c(k,l,p,q,r,n,b);for(var s,t,u=0,v=0;u<o;++u)if(s=p[u]){for(u>=v&&(v=u+1);!(t=q[v])&&++v<o;);s._next=t||null}}return g=new hA(g,d),g._enter=h,g._exit=i,g}function Uy(){return new hA(this._exit||this._groups.map(Ny),this._parents)}function Vy(a){for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;h<f;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;n<l;++n)(i=j[n]||k[n])&&(m[n]=i);for(;h<d;++h)g[h]=b[h];return new hA(g,this._parents)}function Wy(){for(var a=this._groups,b=-1,c=a.length;++b<c;)for(var d,e=a[b],f=e.length-1,g=e[f];--f>=0;)(d=e[f])&&(g&&g!==d.nextSibling&&g.parentNode.insertBefore(d,g),
+g=d);return this}function Xy(a){function b(b,c){return b&&c?a(b.__data__,c.__data__):!b-!c}a||(a=Yy);for(var c=this._groups,d=c.length,e=new Array(d),f=0;f<d;++f){for(var g,h=c[f],i=h.length,j=e[f]=new Array(i),k=0;k<i;++k)(g=h[k])&&(j[k]=g);j.sort(b)}return new hA(e,this._parents).order()}function Yy(a,b){return a<b?-1:a>b?1:a>=b?0:NaN}function Zy(){var a=arguments[0];return arguments[0]=this,a.apply(null,arguments),this}function $y(){var a=new Array(this.size()),b=-1;return this.each(function(){a[++b]=this}),a}function _y(){for(var a=this._groups,b=0,c=a.length;b<c;++b)for(var d=a[b],e=0,f=d.length;e<f;++e){var g=d[e];if(g)return g}return null}function az(){var a=0;return this.each(function(){++a}),a}function bz(){return!this.node()}function cz(a){for(var b=this._groups,c=0,d=b.length;c<d;++c)for(var e,f=b[c],g=0,h=f.length;g<h;++g)(e=f[g])&&a.call(e,e.__data__,g,f);return this}function dz(a){return function(){this.removeAttribute(a)}}function ez(a){return function(){this.removeAttributeNS(a.space,a.local)}}function fz(a,b){return function(){this.setAttribute(a,b)}}function gz(a,b){return function(){this.setAttributeNS(a.space,a.local,b)}}function hz(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttribute(a):this.setAttribute(a,c)}}function iz(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,c)}}function jz(a,b){var c=Cy(a);if(arguments.length<2){var d=this.node();return c.local?d.getAttributeNS(c.space,c.local):d.getAttribute(c)}return this.each((null==b?c.local?ez:dz:"function"==typeof b?c.local?iz:hz:c.local?gz:fz)(c,b))}function kz(a){return a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView}function lz(a){return function(){this.style.removeProperty(a)}}function mz(a,b,c){return function(){this.style.setProperty(a,b,c)}}function nz(a,b,c){return function(){var d=b.apply(this,arguments);null==d?this.style.removeProperty(a):this.style.setProperty(a,d,c)}}function oz(a,b,c){return arguments.length>1?this.each((null==b?lz:"function"==typeof b?nz:mz)(a,b,null==c?"":c)):pz(this.node(),a)}function pz(a,b){return a.style.getPropertyValue(b)||kz(a).getComputedStyle(a,null).getPropertyValue(b)}function qz(a){return function(){delete this[a]}}function rz(a,b){return function(){this[a]=b}}function sz(a,b){return function(){var c=b.apply(this,arguments);null==c?delete this[a]:this[a]=c}}function tz(a,b){return arguments.length>1?this.each((null==b?qz:"function"==typeof b?sz:rz)(a,b)):this.node()[a]}function uz(a){return a.trim().split(/^|\s+/)}function vz(a){return a.classList||new wz(a)}function wz(a){this._node=a,this._names=uz(a.getAttribute("class")||"")}function xz(a,b){for(var c=vz(a),d=-1,e=b.length;++d<e;)c.add(b[d])}function yz(a,b){for(var c=vz(a),d=-1,e=b.length;++d<e;)c.remove(b[d])}function zz(a){return function(){xz(this,a)}}function Az(a){return function(){yz(this,a)}}function Bz(a,b){return function(){(b.apply(this,arguments)?xz:yz)(this,a)}}function Cz(a,b){var c=uz(a+"");if(arguments.length<2){for(var d=vz(this.node()),e=-1,f=c.length;++e<f;)if(!d.contains(c[e]))return!1;return!0}return this.each(("function"==typeof b?Bz:b?zz:Az)(c,b))}function Dz(){this.textContent=""}function Ez(a){return function(){this.textContent=a}}function Fz(a){return function(){var b=a.apply(this,arguments);this.textContent=null==b?"":b}}function Gz(a){return arguments.length?this.each(null==a?Dz:("function"==typeof a?Fz:Ez)(a)):this.node().textContent}function Hz(){this.innerHTML=""}function Iz(a){return function(){this.innerHTML=a}}function Jz(a){return function(){var b=a.apply(this,arguments);this.innerHTML=null==b?"":b}}function Kz(a){return arguments.length?this.each(null==a?Hz:("function"==typeof a?Jz:Iz)(a)):this.node().innerHTML}function Lz(){this.nextSibling&&this.parentNode.appendChild(this)}function Mz(){return this.each(Lz)}function Nz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Oz(){return this.each(Nz)}function Pz(a){var b="function"==typeof a?a:Fy(a);return this.select(function(){return this.appendChild(b.apply(this,arguments))})}function Qz(){return null}function Rz(a,b){var c="function"==typeof a?a:Fy(a),d=null==b?Qz:"function"==typeof b?b:Hy(b);return this.select(function(){return this.insertBefore(c.apply(this,arguments),d.apply(this,arguments)||null)})}function Sz(){var a=this.parentNode;a&&a.removeChild(this)}function Tz(){return this.each(Sz)}function Uz(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Vz(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}function Wz(a){return this.select(a?Vz:Uz)}function Xz(a){return arguments.length?this.property("__data__",a):this.node().__data__}function Yz(a,b,c){return a=Zz(a,b,c),function(b){var c=b.relatedTarget;c&&(c===this||8&c.compareDocumentPosition(this))||a.call(this,b)}}function Zz(a,b,c){return function(d){var e=QN;QN=d;try{a.call(this,this.__data__,b,c)}finally{QN=e}}}function $z(a){return a.trim().split(/^|\s+/).map(function(a){var b="",c=a.indexOf(".");return c>=0&&(b=a.slice(c+1),a=a.slice(0,c)),{type:a,name:b}})}function _z(a){return function(){var b=this.__on;if(b){for(var c,d=0,e=-1,f=b.length;d<f;++d)c=b[d],a.type&&c.type!==a.type||c.name!==a.name?b[++e]=c:this.removeEventListener(c.type,c.listener,c.capture);++e?b.length=e:delete this.__on}}}function aA(a,b,c){var d=PN.hasOwnProperty(a.type)?Yz:Zz;return function(e,f,g){var h,i=this.__on,j=d(b,f,g);if(i)for(var k=0,l=i.length;k<l;++k)if((h=i[k]).type===a.type&&h.name===a.name)return this.removeEventListener(h.type,h.listener,h.capture),this.addEventListener(h.type,h.listener=j,h.capture=c),void(h.value=b);this.addEventListener(a.type,j,c),h={type:a.type,name:a.name,value:b,listener:j,capture:c},i?i.push(h):this.__on=[h]}}function bA(a,b,c){var d,e,f=$z(a+""),g=f.length;{if(!(arguments.length<2)){for(h=b?aA:_z,null==c&&(c=!1),d=0;d<g;++d)this.each(h(f[d],b,c));return this}var h=this.node().__on;if(h)for(var i,j=0,k=h.length;j<k;++j)for(d=0,i=h[j];d<g;++d)if((e=f[d]).type===i.type&&e.name===i.name)return i.value}}function cA(a,b,c,d){var e=QN;a.sourceEvent=QN,QN=a;try{return b.apply(c,d)}finally{QN=e}}function dA(a,b,c){var d=kz(a),e=d.CustomEvent;"function"==typeof e?e=new e(b,c):(e=d.document.createEvent("Event"),c?(e.initEvent(b,c.bubbles,c.cancelable),e.detail=c.detail):e.initEvent(b,!1,!1)),a.dispatchEvent(e)}function eA(a,b){return function(){return dA(this,a,b)}}function fA(a,b){return function(){return dA(this,a,b.apply(this,arguments))}}function gA(a,b){return this.each(("function"==typeof b?fA:eA)(a,b))}function hA(a,b){this._groups=a,this._parents=b}function iA(){return new hA([[document.documentElement]],SN)}function jA(a){return"string"==typeof a?new hA([[document.querySelector(a)]],[document.documentElement]):new hA([[a]],SN)}function kA(){for(var a,b=QN;a=b.sourceEvent;)b=a;return b}function lA(a,b){var c=a.ownerSVGElement||a;if(c.createSVGPoint){var d=c.createSVGPoint();return d.x=b.clientX,d.y=b.clientY,d=d.matrixTransform(a.getScreenCTM().inverse()),[d.x,d.y]}var e=a.getBoundingClientRect();return[b.clientX-e.left-a.clientLeft,b.clientY-e.top-a.clientTop]}function mA(a){var b=kA();return b.changedTouches&&(b=b.changedTouches[0]),lA(a,b)}function nA(a,b,c){arguments.length<3&&(c=b,b=kA().changedTouches);for(var d,e=0,f=b?b.length:0;e<f;++e)if((d=b[e]).identifier===c)return lA(a,d);return null}function oA(){QN.preventDefault(),QN.stopImmediatePropagation()}function pA(a){var b=a.document.documentElement,c=jA(a).on("dragstart.drag",oA,!0);"onselectstart"in b?c.on("selectstart.drag",oA,!0):(b.__noselect=b.style.MozUserSelect,b.style.MozUserSelect="none")}function qA(a,b){var c=a.document.documentElement,d=jA(a).on("dragstart.drag",null);b&&(d.on("click.drag",oA,!0),setTimeout(function(){d.on("click.drag",null)},0)),"onselectstart"in c?d.on("selectstart.drag",null):(c.style.MozUserSelect=c.__noselect,delete c.__noselect)}function rA(a){return function(){return a}}function sA(a,b){return function(c){return a+c*b}}function tA(a,b,c){return a=Math.pow(a,c),b=Math.pow(b,c)-a,c=1/c,function(d){return Math.pow(a+d*b,c)}}function uA(a){return 1===(a=+a)?vA:function(b,c){return c-b?tA(b,c,a):rA(isNaN(b)?c:b)}}function vA(a,b){var c=b-a;return c?sA(a,c):rA(isNaN(a)?b:a)}function wA(a,b){return a=+a,b-=a,function(c){return a+b*c}}function xA(a){return function(){return a}}function yA(a){return function(b){return a(b)+""}}function zA(a,b){var c,d,e,f=$N.lastIndex=_N.lastIndex=0,g=-1,h=[],i=[];for(a+="",b+="";(c=$N.exec(a))&&(d=_N.exec(b));)(e=d.index)>f&&(e=b.slice(f,e),h[g]?h[g]+=e:h[++g]=e),(c=c[0])===(d=d[0])?h[g]?h[g]+=d:h[++g]=d:(h[++g]=null,i.push({i:g,x:wA(c,d)})),f=_N.lastIndex;return f<b.length&&(e=b.slice(f),h[g]?h[g]+=e:h[++g]=e),h.length<2?i[0]?yA(i[0].x):xA(b):(b=i.length,function(a){for(var c,d=0;d<b;++d)h[(c=i[d]).i]=c.x(a);return h.join("")})}function AA(a,b,c,d,e,f){var g,h,i;return(g=Math.sqrt(a*a+b*b))&&(a/=g,b/=g),(i=a*c+b*d)&&(c-=a*i,d-=b*i),(h=Math.sqrt(c*c+d*d))&&(c/=h,d/=h,i/=h),a*d<b*c&&(a=-a,b=-b,i=-i,g=-g),{translateX:e,translateY:f,rotate:Math.atan2(b,a)*aO,skewX:Math.atan(i)*aO,scaleX:g,scaleY:h}}function BA(a){return"none"===a?bO:(TN||(TN=document.createElement("DIV"),UN=document.documentElement,VN=document.defaultView),TN.style.transform=a,a=VN.getComputedStyle(UN.appendChild(TN),null).getPropertyValue("transform"),UN.removeChild(TN),a=a.slice(7,-1).split(","),AA(+a[0],+a[1],+a[2],+a[3],+a[4],+a[5]))}function CA(a){return null==a?bO:(WN||(WN=document.createElementNS("http://www.w3.org/2000/svg","g")),WN.setAttribute("transform",a),(a=WN.transform.baseVal.consolidate())?(a=a.matrix,AA(a.a,a.b,a.c,a.d,a.e,a.f)):bO)}function DA(a,b,c,d){function e(a){return a.length?a.pop()+" ":""}function f(a,d,e,f,g,h){if(a!==e||d!==f){var i=g.push("translate(",null,b,null,c);h.push({i:i-4,x:wA(a,e)},{i:i-2,x:wA(d,f)})}else(e||f)&&g.push("translate("+e+b+f+c)}function g(a,b,c,f){a!==b?(a-b>180?b+=360:b-a>180&&(a+=360),f.push({i:c.push(e(c)+"rotate(",null,d)-2,x:wA(a,b)})):b&&c.push(e(c)+"rotate("+b+d)}function h(a,b,c,f){a!==b?f.push({i:c.push(e(c)+"skewX(",null,d)-2,x:wA(a,b)}):b&&c.push(e(c)+"skewX("+b+d)}function i(a,b,c,d,f,g){if(a!==c||b!==d){var h=f.push(e(f)+"scale(",null,",",null,")");g.push({i:h-4,x:wA(a,c)},{i:h-2,x:wA(b,d)})}else 1===c&&1===d||f.push(e(f)+"scale("+c+","+d+")")}return function(b,c){var d=[],e=[];return b=a(b),c=a(c),f(b.translateX,b.translateY,c.translateX,c.translateY,d,e),g(b.rotate,c.rotate,d,e),h(b.skewX,c.skewX,d,e),i(b.scaleX,b.scaleY,c.scaleX,c.scaleY,d,e),b=c=null,function(a){for(var b,c=-1,f=e.length;++c<f;)d[(b=e[c]).i]=b.x(a);return d.join("")}}}function EA(a){return((a=Math.exp(a))+1/a)/2}function FA(a){return((a=Math.exp(a))-1/a)/2}function GA(a){return((a=Math.exp(2*a))-1)/(a+1)}function HA(a,b){var c,d,e=a[0],f=a[1],g=a[2],h=b[0],i=b[1],j=b[2],k=h-e,l=i-f,m=k*k+l*l;if(m<hO)d=Math.log(j/g)/eO,c=function(a){return[e+a*k,f+a*l,g*Math.exp(eO*a*d)]};else{var n=Math.sqrt(m),o=(j*j-g*g+gO*m)/(2*g*fO*n),p=(j*j-g*g-gO*m)/(2*j*fO*n),q=Math.log(Math.sqrt(o*o+1)-o),r=Math.log(Math.sqrt(p*p+1)-p);d=(r-q)/eO,c=function(a){var b=a*d,c=EA(q),h=g/(fO*n)*(c*GA(eO*b+q)-FA(q));return[e+h*k,f+h*l,g*c/EA(eO*b+q)]}}return c.duration=1e3*d,c}function IA(){return nO||(qO(JA),nO=pO.now()+oO)}function JA(){nO=0}function KA(){this._call=this._time=this._next=null}function LA(a,b,c){var d=new KA;return d.restart(a,b,c),d}function MA(){IA(),++iO;for(var a,b=XN;b;)(a=nO-b._time)>=0&&b._call.call(null,a),b=b._next;--iO}function NA(){nO=(mO=pO.now())+oO,iO=jO=0;try{MA()}finally{iO=0,PA(),nO=0}}function OA(){var a=pO.now(),b=a-mO;b>lO&&(oO-=b,mO=a)}function PA(){for(var a,b,c=XN,d=1/0;c;)c._call?(d>c._time&&(d=c._time),a=c,c=c._next):(b=c._next,c._next=null,c=a?a._next=b:XN=b);YN=a,QA(d)}function QA(a){if(!iO){jO&&(jO=clearTimeout(jO));var b=a-nO;b>24?(a<1/0&&(jO=setTimeout(NA,a-pO.now()-oO)),kO&&(kO=clearInterval(kO))):(kO||(mO=pO.now(),kO=setInterval(OA,lO)),iO=1,qO(NA))}}function RA(a,b,c){var d=new KA;return b=null==b?0:+b,d.restart(function(c){d.stop(),a(c+b)},b,c),d}function SA(a,b,c,d,e,f){var g=a.__transition;if(g){if(c in g)return}else a.__transition={};WA(a,c,{name:b,index:d,group:e,on:rO,tween:sO,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:tO})}function TA(a,b){var c=VA(a,b);if(c.state>tO)throw new Error("too late; already scheduled");return c}function UA(a,b){var c=VA(a,b);if(c.state>vO)throw new Error("too late; already started");return c}function VA(a,b){var c=a.__transition;if(!c||!(c=c[b]))throw new Error("transition not found");return c}function WA(a,b,c){function d(a){c.state=uO,c.timer.restart(e,c.delay,c.time),c.delay<=a&&e(a-c.delay)}function e(d){var j,k,l,m;if(c.state!==uO)return g();for(j in i)if(m=i[j],m.name===c.name){if(m.state===wO)return RA(e);m.state===xO?(m.state=zO,m.timer.stop(),m.on.call("interrupt",a,a.__data__,m.index,m.group),delete i[j]):+j<b&&(m.state=zO,m.timer.stop(),delete i[j])}if(RA(function(){c.state===wO&&(c.state=xO,c.timer.restart(f,c.delay,c.time),f(d))}),c.state=vO,c.on.call("start",a,a.__data__,c.index,c.group),c.state===vO){for(c.state=wO,h=new Array(l=c.tween.length),j=0,k=-1;j<l;++j)(m=c.tween[j].value.call(a,a.__data__,c.index,c.group))&&(h[++k]=m);h.length=k+1}}function f(b){for(var d=b<c.duration?c.ease.call(null,b/c.duration):(c.timer.restart(g),c.state=yO,1),e=-1,f=h.length;++e<f;)h[e].call(null,d);c.state===yO&&(c.on.call("end",a,a.__data__,c.index,c.group),g())}function g(){c.state=zO,c.timer.stop(),delete i[b];for(var d in i)return;delete a.__transition}var h,i=a.__transition;i[b]=c,c.timer=LA(d,0,c.time)}function XA(a,b){var c,d,e,f=a.__transition,g=!0;if(f){b=null==b?null:b+"";for(e in f)(c=f[e]).name===b?(d=c.state>vO&&c.state<yO,c.state=zO,c.timer.stop(),d&&c.on.call("interrupt",a,a.__data__,c.index,c.group),delete f[e]):g=!1;g&&delete a.__transition}}function YA(a){return this.each(function(){XA(this,a)})}function ZA(a,b){var c,d;return function(){var e=UA(this,a),f=e.tween;if(f!==c){d=c=f;for(var g=0,h=d.length;g<h;++g)if(d[g].name===b){d=d.slice(),d.splice(g,1);break}}e.tween=d}}function $A(a,b,c){var d,e;if("function"!=typeof c)throw new Error;return function(){var f=UA(this,a),g=f.tween;if(g!==d){e=(d=g).slice();for(var h={name:b,value:c},i=0,j=e.length;i<j;++i)if(e[i].name===b){e[i]=h;break}i===j&&e.push(h)}f.tween=e}}function _A(a,b){var c=this._id;if(a+="",arguments.length<2){for(var d,e=VA(this.node(),c).tween,f=0,g=e.length;f<g;++f)if((d=e[f]).name===a)return d.value;return null}return this.each((null==b?ZA:$A)(c,a,b))}function aB(a,b,c){var d=a._id;return a.each(function(){var a=UA(this,d);(a.value||(a.value={}))[b]=c.apply(this,arguments)}),function(a){return VA(a,d).value[b]}}function bB(a,b){var c;return("number"==typeof b?wA:b instanceof Qb?ZN:(c=Qb(b))?(b=c,ZN):zA)(a,b)}function cB(a){return function(){this.removeAttribute(a)}}function dB(a){return function(){this.removeAttributeNS(a.space,a.local)}}function eB(a,b,c){var d,e;return function(){var f=this.getAttribute(a);return f===c?null:f===d?e:e=b(d=f,c)}}function fB(a,b,c){var d,e;return function(){var f=this.getAttributeNS(a.space,a.local);return f===c?null:f===d?e:e=b(d=f,c)}}function gB(a,b,c){var d,e,f;return function(){var g,h=c(this);return null==h?void this.removeAttribute(a):(g=this.getAttribute(a),g===h?null:g===d&&h===e?f:f=b(d=g,e=h))}}function hB(a,b,c){var d,e,f;return function(){var g,h=c(this);return null==h?void this.removeAttributeNS(a.space,a.local):(g=this.getAttributeNS(a.space,a.local),g===h?null:g===d&&h===e?f:f=b(d=g,e=h))}}function iB(a,b){var c=Cy(a),d="transform"===c?dO:bB;return this.attrTween(a,"function"==typeof b?(c.local?hB:gB)(c,d,aB(this,"attr."+a,b)):null==b?(c.local?dB:cB)(c):(c.local?fB:eB)(c,d,b+""))}function jB(a,b){function c(){var c=this,d=b.apply(c,arguments);return d&&function(b){c.setAttributeNS(a.space,a.local,d(b))}}return c._value=b,c}function kB(a,b){function c(){var c=this,d=b.apply(c,arguments);return d&&function(b){c.setAttribute(a,d(b))}}return c._value=b,c}function lB(a,b){var c="attr."+a;if(arguments.length<2)return(c=this.tween(c))&&c._value;if(null==b)return this.tween(c,null);if("function"!=typeof b)throw new Error;var d=Cy(a);return this.tween(c,(d.local?jB:kB)(d,b))}function mB(a,b){return function(){TA(this,a).delay=+b.apply(this,arguments)}}function nB(a,b){return b=+b,function(){TA(this,a).delay=b}}function oB(a){var b=this._id;return arguments.length?this.each(("function"==typeof a?mB:nB)(b,a)):VA(this.node(),b).delay}function pB(a,b){return function(){UA(this,a).duration=+b.apply(this,arguments)}}function qB(a,b){return b=+b,function(){UA(this,a).duration=b}}function rB(a){var b=this._id;return arguments.length?this.each(("function"==typeof a?pB:qB)(b,a)):VA(this.node(),b).duration}function sB(a,b){if("function"!=typeof b)throw new Error;return function(){UA(this,a).ease=b}}function tB(a){var b=this._id;return arguments.length?this.each(sB(b,a)):VA(this.node(),b).ease}function uB(a){"function"!=typeof a&&(a=NN(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;e<c;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;j<h;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new PB(d,this._parents,this._name,this._id)}function vB(a){if(a._id!==this._id)throw new Error;for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;h<f;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;n<l;++n)(i=j[n]||k[n])&&(m[n]=i);for(;h<d;++h)g[h]=b[h];return new PB(g,this._parents,this._name,this._id)}function wB(a){return(a+"").trim().split(/^|\s+/).every(function(a){var b=a.indexOf(".");return b>=0&&(a=a.slice(0,b)),!a||"start"===a})}function xB(a,b,c){var d,e,f=wB(b)?TA:UA;return function(){var g=f(this,a),h=g.on;h!==d&&(e=(d=h).copy()).on(b,c),g.on=e}}function yB(a,b){var c=this._id;return arguments.length<2?VA(this.node(),c).on.on(a):this.each(xB(c,a,b))}function zB(a){return function(){var b=this.parentNode;for(var c in this.__transition)if(+c!==a)return;b&&b.removeChild(this)}}function AB(){return this.on("end.remove",zB(this._id))}function BB(a){var b=this._name,c=this._id;"function"!=typeof a&&(a=Hy(a));for(var d=this._groups,e=d.length,f=new Array(e),g=0;g<e;++g)for(var h,i,j=d[g],k=j.length,l=f[g]=new Array(k),m=0;m<k;++m)(h=j[m])&&(i=a.call(h,h.__data__,m,j))&&("__data__"in h&&(i.__data__=h.__data__),l[m]=i,SA(l[m],b,c,m,l,VA(h,c)));return new PB(f,this._parents,b,c)}function CB(a){var b=this._name,c=this._id;"function"!=typeof a&&(a=Ky(a));for(var d=this._groups,e=d.length,f=[],g=[],h=0;h<e;++h)for(var i,j=d[h],k=j.length,l=0;l<k;++l)if(i=j[l]){for(var m,n=a.call(i,i.__data__,l,j),o=VA(i,c),p=0,q=n.length;p<q;++p)(m=n[p])&&SA(m,b,c,p,n,o);f.push(n),g.push(i)}return new PB(f,g,b,c)}function DB(){return new AO(this._groups,this._parents)}function EB(a,b){var c,d,e;return function(){var f=pz(this,a),g=(this.style.removeProperty(a),pz(this,a));return f===g?null:f===c&&g===d?e:e=b(c=f,d=g)}}function FB(a){return function(){this.style.removeProperty(a)}}function GB(a,b,c){var d,e;return function(){var f=pz(this,a);return f===c?null:f===d?e:e=b(d=f,c)}}function HB(a,b,c){var d,e,f;return function(){var g=pz(this,a),h=c(this);return null==h&&(this.style.removeProperty(a),h=pz(this,a)),g===h?null:g===d&&h===e?f:f=b(d=g,e=h)}}function IB(a,b,c){var d="transform"==(a+="")?cO:bB;return null==b?this.styleTween(a,EB(a,d)).on("end.style."+a,FB(a)):this.styleTween(a,"function"==typeof b?HB(a,d,aB(this,"style."+a,b)):GB(a,d,b+""),c)}function JB(a,b,c){function d(){var d=this,e=b.apply(d,arguments);return e&&function(b){d.style.setProperty(a,e(b),c)}}return d._value=b,d}function KB(a,b,c){var d="style."+(a+="");if(arguments.length<2)return(d=this.tween(d))&&d._value;if(null==b)return this.tween(d,null);if("function"!=typeof b)throw new Error;return this.tween(d,JB(a,b,null==c?"":c))}function LB(a){return function(){this.textContent=a}}function MB(a){return function(){var b=a(this);this.textContent=null==b?"":b}}function NB(a){return this.tween("text","function"==typeof a?MB(aB(this,"text",a)):LB(null==a?"":a+""))}function OB(){for(var a=this._name,b=this._id,c=RB(),d=this._groups,e=d.length,f=0;f<e;++f)for(var g,h=d[f],i=h.length,j=0;j<i;++j)if(g=h[j]){var k=VA(g,b);SA(g,a,c,j,h,{time:k.time+k.delay+k.duration,delay:0,duration:k.duration,ease:k.ease})}return new PB(d,this._parents,a,c)}function PB(a,b,c,d){this._groups=a,this._parents=b,this._name=c,this._id=d}function QB(a){return iA().transition(a)}function RB(){return++BO}function SB(a,b){for(var c;!(c=a.__transition)||!(c=c[b]);)if(!(a=a.parentNode))return DO.time=IA(),DO;return c}function TB(a){var b,c;a instanceof PB?(b=a._id,a=a._name):(b=RB(),(c=DO).time=IA(),a=null==a?null:a+"");for(var d=this._groups,e=d.length,f=0;f<e;++f)for(var g,h=d[f],i=h.length,j=0;j<i;++j)(g=h[j])&&SA(g,a,b,j,h,c||SB(g,b));return new PB(d,this._parents,a,b)}function UB(a){return function(){return a}}function VB(a,b,c){this.target=a,this.type=b,this.transform=c}function WB(a,b,c){this.k=a,this.x=b,this.y=c}function XB(a){return a.__zoom||EO}function YB(){QN.stopImmediatePropagation()}function ZB(){QN.preventDefault(),QN.stopImmediatePropagation()}function $B(){return!QN.button}function _B(){var a,b,c=this;return c instanceof SVGElement?(c=c.ownerSVGElement||c,a=c.width.baseVal.value,b=c.height.baseVal.value):(a=c.clientWidth,b=c.clientHeight),[[0,0],[a,b]]}function aC(){return this.__zoom||EO}function bC(){return-QN.deltaY*(QN.deltaMode?120:1)/500}function cC(){return"ontouchstart"in this}function dC(){function a(a){a.property("__zoom",aC).on("wheel.zoom",i).on("mousedown.zoom",j).on("dblclick.zoom",k).filter(cC).on("touchstart.zoom",l).on("touchmove.zoom",m).on("touchend.zoom touchcancel.zoom",n).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(a,b){return b=Math.max(t,Math.min(u,b)),b===a.k?a:new WB(b,a.x,a.y)}function c(a,b,c){var d=b[0]-c[0]*a.k,e=b[1]-c[1]*a.k;return d===a.x&&e===a.y?a:new WB(a.k,d,e)}function d(a,b){var c=a.invertX(b[0][0])-v,d=a.invertX(b[1][0])-w,e=a.invertY(b[0][1])-x,f=a.invertY(b[1][1])-y;return a.translate(d>c?(c+d)/2:Math.min(0,c)||Math.max(0,d),f>e?(e+f)/2:Math.min(0,e)||Math.max(0,f))}function e(a){return[(+a[0][0]+ +a[1][0])/2,(+a[0][1]+ +a[1][1])/2]}function f(a,b,c){a.on("start.zoom",function(){g(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){g(this,arguments).end()}).tween("zoom",function(){var a=this,d=arguments,f=g(a,d),h=r.apply(a,d),i=c||e(h),j=Math.max(h[1][0]-h[0][0],h[1][1]-h[0][1]),k=a.__zoom,l="function"==typeof b?b.apply(a,d):b,m=A(k.invert(i).concat(j/k.k),l.invert(i).concat(j/l.k));return function(a){if(1===a)a=l;else{var b=m(a),c=j/b[2];a=new WB(c,i[0]-b[0]*c,i[1]-b[1]*c)}f.zoom(null,a)}})}function g(a,b){for(var c,d=0,e=B.length;d<e;++d)if((c=B[d]).that===a)return c;return new h(a,b)}function h(a,b){this.that=a,this.args=b,this.index=-1,this.active=0,this.extent=r.apply(a,b)}function i(){function a(){e.wheel=null,e.end()}if(q.apply(this,arguments)){var e=g(this,arguments),f=this.__zoom,h=Math.max(t,Math.min(u,f.k*Math.pow(2,s.apply(this,arguments)))),i=mA(this);if(e.wheel)e.mouse[0][0]===i[0]&&e.mouse[0][1]===i[1]||(e.mouse[1]=f.invert(e.mouse[0]=i)),clearTimeout(e.wheel);else{if(f.k===h)return;e.mouse=[i,f.invert(i)],XA(this),e.start()}ZB(),e.wheel=setTimeout(a,E),e.zoom("mouse",d(c(b(f,h),e.mouse[0],e.mouse[1]),e.extent))}}function j(){function a(){if(ZB(),!e.moved){var a=QN.clientX-i,b=QN.clientY-j;e.moved=a*a+b*b>F}e.zoom("mouse",d(c(e.that.__zoom,e.mouse[0]=mA(e.that),e.mouse[1]),e.extent))}function b(){f.on("mousemove.zoom mouseup.zoom",null),qA(QN.view,e.moved),ZB(),e.end()}if(!p&&q.apply(this,arguments)){var e=g(this,arguments),f=jA(QN.view).on("mousemove.zoom",a,!0).on("mouseup.zoom",b,!0),h=mA(this),i=QN.clientX,j=QN.clientY;pA(QN.view),YB(),e.mouse=[h,this.__zoom.invert(h)],XA(this),e.start()}}function k(){if(q.apply(this,arguments)){var e=this.__zoom,g=mA(this),h=e.invert(g),i=e.k*(QN.shiftKey?.5:2),j=d(c(b(e,i),g,h),r.apply(this,arguments));ZB(),z>0?jA(this).transition().duration(z).call(f,j,g):jA(this).call(a.transform,j)}}function l(){if(q.apply(this,arguments)){var a,b,c,d,e=g(this,arguments),f=QN.changedTouches,h=f.length;for(YB(),b=0;b<h;++b)c=f[b],d=nA(this,f,c.identifier),d=[d,this.__zoom.invert(d),c.identifier],e.touch0?e.touch1||(e.touch1=d):(e.touch0=d,a=!0);return o&&(o=clearTimeout(o),!e.touch1)?(e.end(),d=jA(this).on("dblclick.zoom"),void(d&&d.apply(this,arguments))):void(a&&(o=setTimeout(function(){o=null},D),XA(this),e.start()))}}function m(){var a,e,f,h,i=g(this,arguments),j=QN.changedTouches,k=j.length;for(ZB(),o&&(o=clearTimeout(o)),a=0;a<k;++a)e=j[a],f=nA(this,j,e.identifier),i.touch0&&i.touch0[2]===e.identifier?i.touch0[0]=f:i.touch1&&i.touch1[2]===e.identifier&&(i.touch1[0]=f);if(e=i.that.__zoom,i.touch1){var l=i.touch0[0],m=i.touch0[1],n=i.touch1[0],p=i.touch1[1],q=(q=n[0]-l[0])*q+(q=n[1]-l[1])*q,r=(r=p[0]-m[0])*r+(r=p[1]-m[1])*r;e=b(e,Math.sqrt(q/r)),f=[(l[0]+n[0])/2,(l[1]+n[1])/2],h=[(m[0]+p[0])/2,(m[1]+p[1])/2]}else{if(!i.touch0)return;f=i.touch0[0],h=i.touch0[1]}i.zoom("touch",d(c(e,f,h),i.extent))}function n(){var a,b,c=g(this,arguments),d=QN.changedTouches,e=d.length;for(YB(),p&&clearTimeout(p),p=setTimeout(function(){p=null},D),a=0;a<e;++a)b=d[a],c.touch0&&c.touch0[2]===b.identifier?delete c.touch0:c.touch1&&c.touch1[2]===b.identifier&&delete c.touch1;c.touch1&&!c.touch0&&(c.touch0=c.touch1,delete c.touch1),c.touch0?c.touch0[1]=this.__zoom.invert(c.touch0[0]):c.end()}var o,p,q=$B,r=_B,s=bC,t=0,u=1/0,v=-u,w=u,x=v,y=w,z=250,A=HA,B=[],C=U("start","zoom","end"),D=500,E=150,F=0;return a.transform=function(a,b){var c=a.selection?a.selection():a;c.property("__zoom",aC),a!==c?f(a,b):c.interrupt().each(function(){g(this,arguments).start().zoom(null,"function"==typeof b?b.apply(this,arguments):b).end()})},a.scaleBy=function(b,c){a.scaleTo(b,function(){var a=this.__zoom.k,b="function"==typeof c?c.apply(this,arguments):c;return a*b})},a.scaleTo=function(f,g){a.transform(f,function(){var a=r.apply(this,arguments),f=this.__zoom,h=e(a),i=f.invert(h),j="function"==typeof g?g.apply(this,arguments):g;return d(c(b(f,j),h,i),a)})},a.translateBy=function(b,c,e){a.transform(b,function(){return d(this.__zoom.translate("function"==typeof c?c.apply(this,arguments):c,"function"==typeof e?e.apply(this,arguments):e),r.apply(this,arguments))})},a.translateTo=function(b,c,f){a.transform(b,function(){var a=r.apply(this,arguments),b=this.__zoom,g=e(a);return d(EO.translate(g[0],g[1]).scale(b.k).translate("function"==typeof c?-c.apply(this,arguments):-c,"function"==typeof f?-f.apply(this,arguments):-f),a)})},h.prototype={start:function(){return 1===++this.active&&(this.index=B.push(this)-1,this.emit("start")),this},zoom:function(a,b){return this.mouse&&"mouse"!==a&&(this.mouse[1]=b.invert(this.mouse[0])),this.touch0&&"touch"!==a&&(this.touch0[1]=b.invert(this.touch0[0])),this.touch1&&"touch"!==a&&(this.touch1[1]=b.invert(this.touch1[0])),this.that.__zoom=b,this.emit("zoom"),this},end:function(){return 0===--this.active&&(B.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(b){cA(new VB(a,b,this.that.__zoom),C.apply,C,[b,this.that,this.args])}},a.wheelDelta=function(b){return arguments.length?(s="function"==typeof b?b:UB(+b),a):s},a.filter=function(b){return arguments.length?(q="function"==typeof b?b:UB(!!b),a):q},a.extent=function(b){return arguments.length?(r="function"==typeof b?b:UB([[+b[0][0],+b[0][1]],[+b[1][0],+b[1][1]]]),a):r},a.scaleExtent=function(b){return arguments.length?(t=+b[0],u=+b[1],a):[t,u]},a.translateExtent=function(b){return arguments.length?(v=+b[0][0],w=+b[1][0],x=+b[0][1],y=+b[1][1],a):[[v,x],[w,y]]},a.duration=function(b){return arguments.length?(z=+b,a):z},a.interpolate=function(b){return arguments.length?(A=b,a):A},a.on=function(){var b=C.on.apply(C,arguments);return b===C?a:b},a.clickDistance=function(b){return arguments.length?(F=(b=+b)*b,a):Math.sqrt(F)},a}var eC="4.10.0",fC=c(b),gC=fC.right,hC=fC.left,iC=Array.prototype,jC=iC.slice,kC=iC.map,lC=Math.sqrt(50),mC=Math.sqrt(10),nC=Math.sqrt(2),oC=Array.prototype.slice,pC=1,qC=2,rC=3,sC=4,tC=1e-6,uC={value:function(){}};V.prototype=U.prototype={constructor:V,on:function(a,b){var c,d=this._,e=W(a+"",d),f=-1,g=e.length;{if(!(arguments.length<2)){if(null!=b&&"function"!=typeof b)throw new Error("invalid callback: "+b);for(;++f<g;)if(c=(a=e[f]).type)d[c]=Y(d[c],a.name,b);else if(null==b)for(c in d)d[c]=Y(d[c],a.name,null);return this}for(;++f<g;)if((c=(a=e[f]).type)&&(c=X(d[c],a.name)))return c}},copy:function(){var a={},b=this._;for(var c in b)a[c]=b[c].slice();return new V(a)},call:function(a,b){if((c=arguments.length-2)>0)for(var c,d,e=new Array(c),f=0;f<c;++f)e[f]=arguments[f+2];if(!this._.hasOwnProperty(a))throw new Error("unknown type: "+a);for(d=this._[a],f=0,c=d.length;f<c;++f)d[f].value.apply(b,e)},apply:function(a,b,c){if(!this._.hasOwnProperty(a))throw new Error("unknown type: "+a);for(var d=this._[a],e=0,f=d.length;e<f;++e)d[e].value.apply(b,c)}};var vC="http://www.w3.org/1999/xhtml",wC={svg:"http://www.w3.org/2000/svg",xhtml:vC,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},xC=function(a){return function(){return this.matches(a)}};if("undefined"!=typeof document){var yC=document.documentElement;if(!yC.matches){var zC=yC.webkitMatchesSelector||yC.msMatchesSelector||yC.mozMatchesSelector||yC.oMatchesSelector;xC=function(a){return function(){return zC.call(this,a)}}}}var AC=xC;ka.prototype={constructor:ka,appendChild:function(a){return this._parent.insertBefore(a,this._next)},insertBefore:function(a,b){return this._parent.insertBefore(a,b)},querySelector:function(a){return this._parent.querySelector(a)},querySelectorAll:function(a){return this._parent.querySelectorAll(a)}};var BC="$";Ta.prototype={add:function(a){var b=this._names.indexOf(a);b<0&&(this._names.push(a),this._node.setAttribute("class",this._names.join(" ")))},remove:function(a){var b=this._names.indexOf(a);b>=0&&(this._names.splice(b,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(a){return this._names.indexOf(a)>=0}};var CC={},DC=null;if("undefined"!=typeof document){var EC=document.documentElement;"onmouseenter"in EC||(CC={mouseenter:"mouseover",mouseleave:"mouseout"})}var FC=[null];Eb.prototype=Fb.prototype={constructor:Eb,select:da,selectAll:ga,filter:ha,data:oa,enter:ja,exit:pa,merge:qa,order:ra,sort:sa,call:ua,nodes:va,node:wa,size:xa,empty:ya,each:za,attr:Ga,style:La,property:Qa,classed:Za,text:bb,html:fb,raise:hb,lower:jb,append:kb,insert:mb,remove:ob,clone:rb,datum:sb,on:yb,dispatch:Db};var GC=.7,HC=1/GC,IC="\\s*([+-]?\\d+)\\s*",JC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",KC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",LC=/^#([0-9a-f]{3})$/,MC=/^#([0-9a-f]{6})$/,NC=new RegExp("^rgb\\("+[IC,IC,IC]+"\\)$"),OC=new RegExp("^rgb\\("+[KC,KC,KC]+"\\)$"),PC=new RegExp("^rgba\\("+[IC,IC,IC,JC]+"\\)$"),QC=new RegExp("^rgba\\("+[KC,KC,KC,JC]+"\\)$"),RC=new RegExp("^hsl\\("+[JC,KC,KC]+"\\)$"),SC=new RegExp("^hsla\\("+[JC,KC,KC,JC]+"\\)$"),TC={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};Nb(Pb,Qb,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Nb(Vb,Ub,Ob(Pb,{brighter:function(a){return a=null==a?HC:Math.pow(HC,a),new Vb(this.r*a,this.g*a,this.b*a,this.opacity)},darker:function(a){return a=null==a?GC:Math.pow(GC,a),new Vb(this.r*a,this.g*a,this.b*a,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 a=this.opacity;return a=isNaN(a)?1:Math.max(0,Math.min(1,a)),(1===a?"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===a?")":", "+a+")")}})),Nb(Zb,Yb,Ob(Pb,{brighter:function(a){return a=null==a?HC:Math.pow(HC,a),new Zb(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=null==a?GC:Math.pow(GC,a),new Zb(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=this.h%360+360*(this.h<0),b=isNaN(a)||isNaN(this.s)?0:this.s,c=this.l,d=c+(c<.5?c:1-c)*b,e=2*c-d;return new Vb($b(a>=240?a-240:a+120,e,d),$b(a,e,d),$b(a<120?a+240:a-120,e,d),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 UC=Math.PI/180,VC=180/Math.PI,WC=18,XC=.95047,YC=1,ZC=1.08883,$C=4/29,_C=6/29,aD=3*_C*_C,bD=_C*_C*_C;Nb(bc,ac,Ob(Pb,{brighter:function(a){return new bc(this.l+WC*(null==a?1:a),this.a,this.b,this.opacity)},darker:function(a){return new bc(this.l-WC*(null==a?1:a),this.a,this.b,this.opacity)},rgb:function(){var a=(this.l+16)/116,b=isNaN(this.a)?a:a+this.a/500,c=isNaN(this.b)?a:a-this.b/200;return a=YC*dc(a),b=XC*dc(b),c=ZC*dc(c),new Vb(ec(3.2404542*b-1.5371385*a-.4985314*c),ec(-.969266*b+1.8760108*a+.041556*c),ec(.0556434*b-.2040259*a+1.0572252*c),this.opacity)}})),Nb(ic,hc,Ob(Pb,{brighter:function(a){return new ic(this.h,this.c,this.l+WC*(null==a?1:a),this.opacity)},darker:function(a){return new ic(this.h,this.c,this.l-WC*(null==a?1:a),this.opacity)},rgb:function(){return _b(this).rgb()}}));var cD=-.14861,dD=1.78277,eD=-.29227,fD=-.90649,gD=1.97294,hD=gD*fD,iD=gD*dD,jD=dD*eD-fD*cD;Nb(lc,kc,Ob(Pb,{brighter:function(a){return a=null==a?HC:Math.pow(HC,a),new lc(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=null==a?GC:Math.pow(GC,a),new lc(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=isNaN(this.h)?0:(this.h+120)*UC,b=+this.l,c=isNaN(this.s)?0:this.s*b*(1-b),d=Math.cos(a),e=Math.sin(a);return new Vb(255*(b+c*(cD*d+dD*e)),255*(b+c*(eD*d+fD*e)),255*(b+c*(gD*d)),this.opacity)}}));var kD,lD,mD,nD,oD,pD,qD=function a(b){function c(a,b){var c=d((a=Ub(a)).r,(b=Ub(b)).r),e=d(a.g,b.g),f=d(a.b,b.b),g=qc(a.opacity,b.opacity);return function(b){return a.r=c(b),a.g=e(b),a.b=f(b),a.opacity=g(b),a+""}}var d=pc(b);return c.gamma=a,c}(1),rD=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sD=new RegExp(rD.source,"g"),tD=180/Math.PI,uD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},vD=Cc(Ac,"px, ","px)","deg)"),wD=Cc(Bc,", ",")",")"),xD=(Math.SQRT2,0),yD=0,zD=0,AD=1e3,BD=0,CD=0,DD=0,ED="object"==typeof performance&&performance.now?performance:Date,FD="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(a){setTimeout(a,17)};Fc.prototype=Gc.prototype={constructor:Fc,restart:function(a,b,c){if("function"!=typeof a)throw new TypeError("callback is not a function");c=(null==c?Dc():+c)+(null==b?0:+b),this._next||pD===this||(pD?pD._next=this:oD=this,pD=this),this._call=a,this._time=c,Lc()},stop:function(){this._call&&(this._call=null,this._time=1/0,Lc())}};var GD=U("start","end","interrupt"),HD=[],ID=0,JD=1,KD=2,LD=3,MD=4,ND=5,OD=6,PD=Fb.prototype.constructor,QD=0,RD=Fb.prototype;Kd.prototype=Ld.prototype={constructor:Kd,select:wd,selectAll:xd,filter:pd,merge:qd,selection:yd,transition:Jd,call:RD.call,nodes:RD.nodes,node:RD.node,size:RD.size,empty:RD.empty,each:RD.each,on:td,attr:dd,attrTween:gd,style:Dd,styleTween:Fd,text:Id,remove:vd,tween:Wc,delay:jd,duration:md,ease:od};var SD=3,TD=function a(b){function c(a){return Math.pow(a,b)}return b=+b,c.exponent=a,c}(SD),UD=function a(b){function c(a){return 1-Math.pow(1-a,b)}return b=+b,c.exponent=a,c}(SD),VD=function a(b){function c(a){return((a*=2)<=1?Math.pow(a,b):2-Math.pow(2-a,b))/2}return b=+b,c.exponent=a,c}(SD),WD=Math.PI,XD=WD/2,YD=4/11,ZD=6/11,$D=8/11,_D=.75,aE=9/11,bE=10/11,cE=.9375,dE=21/22,eE=63/64,fE=1/YD/YD,gE=1.70158,hE=function a(b){function c(a){return a*a*((b+1)*a-b)}return b=+b,c.overshoot=a,c}(gE),iE=function a(b){function c(a){return--a*a*((b+1)*a+b)+1}return b=+b,c.overshoot=a,c}(gE),jE=function a(b){function c(a){return((a*=2)<1?a*a*((b+1)*a-b):(a-=2)*a*((b+1)*a+b)+2)/2}return b=+b,c.overshoot=a,c}(gE),kE=2*Math.PI,lE=1,mE=.3,nE=function a(b,c){function d(a){return b*Math.pow(2,10*--a)*Math.sin((e-a)/c)}var e=Math.asin(1/(b=Math.max(1,b)))*(c/=kE);return d.amplitude=function(b){return a(b,c*kE)},d.period=function(c){return a(b,c)},d}(lE,mE),oE=function a(b,c){function d(a){return 1-b*Math.pow(2,-10*(a=+a))*Math.sin((a+e)/c)}var e=Math.asin(1/(b=Math.max(1,b)))*(c/=kE);return d.amplitude=function(b){return a(b,c*kE)},d.period=function(c){return a(b,c)},d}(lE,mE),pE=function a(b,c){function d(a){return((a=2*a-1)<0?b*Math.pow(2,10*a)*Math.sin((e-a)/c):2-b*Math.pow(2,-10*a)*Math.sin((e+a)/c))/2}var e=Math.asin(1/(b=Math.max(1,b)))*(c/=kE);return d.amplitude=function(b){return a(b,c*kE)},d.period=function(c){return a(b,c)},d}(lE,mE),qE={time:null,delay:0,duration:250,ease:Td};Fb.prototype.interrupt=Tc,Fb.prototype.transition=fe;var rE={name:"drag"},sE={name:"space"},tE={name:"handle"},uE={name:"center"},vE={name:"x",handles:["e","w"].map(ke),input:function(a,b){return a&&[[a[0],b[0][1]],[a[1],b[1][1]]]},output:function(a){return a&&[a[0][0],a[1][0]]}},wE={name:"y",handles:["n","s"].map(ke),input:function(a,b){return a&&[[b[0][0],a[0]],[b[1][0],a[1]]]},output:function(a){return a&&[a[0][1],a[1][1]]}},xE={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(ke),input:function(a){return a},output:function(a){return a}},yE={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"},zE={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},AE={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},BE={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},CE={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},DE=(ve(ue),Math.cos),EE=Math.sin,FE=Math.PI,GE=FE/2,HE=2*FE,IE=Math.max,JE=Array.prototype.slice,KE=Math.PI,LE=2*KE,ME=1e-6,NE=LE-ME;Be.prototype=Ce.prototype={constructor:Be,moveTo:function(a,b){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(a,b){this._+="L"+(this._x1=+a)+","+(this._y1=+b)},quadraticCurveTo:function(a,b,c,d){this._+="Q"+ +a+","+ +b+","+(this._x1=+c)+","+(this._y1=+d)},bezierCurveTo:function(a,b,c,d,e,f){this._+="C"+ +a+","+ +b+","+ +c+","+ +d+","+(this._x1=+e)+","+(this._y1=+f)},arcTo:function(a,b,c,d,e){a=+a,b=+b,c=+c,d=+d,e=+e;var f=this._x1,g=this._y1,h=c-a,i=d-b,j=f-a,k=g-b,l=j*j+k*k;if(e<0)throw new Error("negative radius: "+e);if(null===this._x1)this._+="M"+(this._x1=a)+","+(this._y1=b);else if(l>ME)if(Math.abs(k*h-i*j)>ME&&e){var m=c-f,n=d-g,o=h*h+i*i,p=m*m+n*n,q=Math.sqrt(o),r=Math.sqrt(l),s=e*Math.tan((KE-Math.acos((o+l-p)/(2*q*r)))/2),t=s/r,u=s/q;Math.abs(t-1)>ME&&(this._+="L"+(a+t*j)+","+(b+t*k)),this._+="A"+e+","+e+",0,0,"+ +(k*m>j*n)+","+(this._x1=a+u*h)+","+(this._y1=b+u*i)}else this._+="L"+(this._x1=a)+","+(this._y1=b);else;},arc:function(a,b,c,d,e,f){a=+a,b=+b,c=+c;var g=c*Math.cos(d),h=c*Math.sin(d),i=a+g,j=b+h,k=1^f,l=f?d-e:e-d;if(c<0)throw new Error("negative radius: "+c);null===this._x1?this._+="M"+i+","+j:(Math.abs(this._x1-i)>ME||Math.abs(this._y1-j)>ME)&&(this._+="L"+i+","+j),c&&(l<0&&(l=l%LE+LE),l>NE?this._+="A"+c+","+c+",0,1,"+k+","+(a-g)+","+(b-h)+"A"+c+","+c+",0,1,"+k+","+(this._x1=i)+","+(this._y1=j):l>ME&&(this._+="A"+c+","+c+",0,"+ +(l>=KE)+","+k+","+(this._x1=a+c*Math.cos(e))+","+(this._y1=b+c*Math.sin(e))))},rect:function(a,b,c,d){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)+"h"+ +c+"v"+ +d+"h"+-c+"Z"},toString:function(){return this._}};var OE="$";Je.prototype=Ke.prototype={constructor:Je,has:function(a){return OE+a in this},get:function(a){return this[OE+a]},set:function(a,b){return this[OE+a]=b,this},remove:function(a){var b=OE+a;return b in this&&delete this[b]},clear:function(){for(var a in this)a[0]===OE&&delete this[a]},keys:function(){var a=[];for(var b in this)b[0]===OE&&a.push(b.slice(1));return a},values:function(){var a=[];for(var b in this)b[0]===OE&&a.push(this[b]);return a},entries:function(){var a=[];for(var b in this)b[0]===OE&&a.push({key:b.slice(1),value:this[b]});return a},size:function(){var a=0;for(var b in this)b[0]===OE&&++a;return a},empty:function(){for(var a in this)if(a[0]===OE)return!1;return!0},each:function(a){for(var b in this)b[0]===OE&&a(this[b],b.slice(1),this)}};var PE=Ke.prototype;Qe.prototype=Re.prototype={constructor:Qe,has:PE.has,add:function(a){return a+="",this[OE+a]=a,this},remove:PE.remove,clear:PE.clear,values:PE.keys,size:PE.size,empty:PE.empty,each:PE.each};var QE="http://www.w3.org/1999/xhtml",RE={svg:"http://www.w3.org/2000/svg",xhtml:QE,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},SE=function(a){return function(){return this.matches(a)}};if("undefined"!=typeof document){var TE=document.documentElement;if(!TE.matches){var UE=TE.webkitMatchesSelector||TE.msMatchesSelector||TE.mozMatchesSelector||TE.oMatchesSelector;SE=function(a){return function(){return UE.call(this,a)}}}}var VE=SE;gf.prototype={constructor:gf,appendChild:function(a){return this._parent.insertBefore(a,this._next)},insertBefore:function(a,b){return this._parent.insertBefore(a,b)},querySelector:function(a){return this._parent.querySelector(a)},querySelectorAll:function(a){return this._parent.querySelectorAll(a)}};var WE="$";Qf.prototype={add:function(a){var b=this._names.indexOf(a);b<0&&(this._names.push(a),this._node.setAttribute("class",this._names.join(" ")))},remove:function(a){var b=this._names.indexOf(a);b>=0&&(this._names.splice(b,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(a){return this._names.indexOf(a)>=0}};var XE={},YE=null;if("undefined"!=typeof document){var ZE=document.documentElement;"onmouseenter"in ZE||(XE={mouseenter:"mouseover",mouseleave:"mouseout"})}var $E=[null];Bg.prototype=Cg.prototype={constructor:Bg,select:_e,selectAll:cf,filter:df,data:lf,enter:ff,exit:mf,merge:nf,order:of,sort:pf,call:rf,nodes:sf,node:tf,size:uf,empty:vf,each:wf,attr:Df,style:If,property:Nf,classed:Wf,text:$f,html:cg,raise:eg,lower:gg,append:hg,insert:jg,remove:lg,clone:og,datum:pg,on:vg,dispatch:Ag},Ng.prototype.on=function(){var a=this._.on.apply(this._,arguments);return a===this._?this:a};var _E=Wg(","),aF=_E.parse,bF=_E.parseRows,cF=_E.format,dF=_E.formatRows,eF=Wg("\t"),fF=eF.parse,gF=eF.parseRows,hF=eF.format,iF=eF.formatRows,jF=qh.prototype=rh.prototype;jF.copy=function(){var a,b,c=new rh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),d=this._root;if(!d)return c;if(!d.length)return c._root=sh(d),c;for(a=[{source:d,target:c._root=new Array(4)}];d=a.pop();)for(var e=0;e<4;++e)(b=d.source[e])&&(b.length?a.push({source:b,target:d.target[e]=new Array(4)}):d.target[e]=sh(b));return c},jF.add=$g,jF.addAll=ah,jF.cover=bh,jF.data=ch,jF.extent=dh,jF.find=fh,jF.remove=gh,jF.removeAll=hh,jF.root=ih,jF.size=jh,jF.visit=kh,jF.visitAfter=lh,jF.x=nh,jF.y=ph;var kF,lF,mF=0,nF=0,oF=0,pF=1e3,qF=0,rF=0,sF=0,tF="object"==typeof performance&&performance.now?performance:Date,uF="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(a){setTimeout(a,17)};Bh.prototype=Ch.prototype={constructor:Bh,restart:function(a,b,c){if("function"!=typeof a)throw new TypeError("callback is not a function");c=(null==c?zh():+c)+(null==b?0:+b),this._next||lF===this||(lF?lF._next=this:kF=this,lF=this),this._call=a,this._time=c,Hh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Hh())}};var vF,wF=10,xF=Math.PI*(3-Math.sqrt(5)),yF={"":Sh,"%":function(a,b){return(100*a).toFixed(b)},b:function(a){return Math.round(a).toString(2)},c:function(a){return a+""},d:function(a){return Math.round(a).toString(10)},e:function(a,b){return a.toExponential(b)},f:function(a,b){return a.toFixed(b)},g:function(a,b){return a.toPrecision(b)},o:function(a){return Math.round(a).toString(8)},p:function(a,b){return Uh(100*a,b)},r:Uh,s:Th,X:function(a){return Math.round(a).toString(16).toUpperCase()},x:function(a){return Math.round(a).toString(16)}},zF=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;Vh.prototype=Wh.prototype,Wh.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 AF,BF=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Zh({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),ci.prototype={constructor:ci,reset:function(){this.s=this.t=0},add:function(a){di(fG,a,this.t),di(this,fG.s,this.s),this.s?this.t+=fG.t:this.s=fG.t},valueOf:function(){return this.s}};var CF,DF,EF,FF,GF,HF,IF,JF,KF,LF,MF,NF,OF,PF,QF,RF,SF,TF,UF,VF,WF,XF,YF,ZF,$F,_F,aG,bG,cG,dG,eG,fG=new ci,gG=1e-6,hG=1e-12,iG=Math.PI,jG=iG/2,kG=iG/4,lG=2*iG,mG=180/iG,nG=iG/180,oG=Math.abs,pG=Math.atan,qG=Math.atan2,rG=Math.cos,sG=Math.ceil,tG=Math.exp,uG=Math.log,vG=Math.pow,wG=Math.sin,xG=Math.sign||function(a){return a>0?1:a<0?-1:0},yG=Math.sqrt,zG=Math.tan,AG={Feature:function(a,b){ii(a.geometry,b)},FeatureCollection:function(a,b){for(var c=a.features,d=-1,e=c.length;++d<e;)ii(c[d].geometry,b)}},BG={Sphere:function(a,b){b.sphere()},Point:function(a,b){a=a.coordinates,b.point(a[0],a[1],a[2])},MultiPoint:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)a=c[d],b.point(a[0],a[1],a[2])},LineString:function(a,b){ji(a.coordinates,b,0)},MultiLineString:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)ji(c[d],b,0)},Polygon:function(a,b){ki(a.coordinates,b)},MultiPolygon:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)ki(c[d],b)},GeometryCollection:function(a,b){for(var c=a.geometries,d=-1,e=c.length;++d<e;)ii(c[d],b)}},CG=bi(),DG=bi(),EG={point:hi,lineStart:hi,lineEnd:hi,polygonStart:function(){CG.reset(),EG.lineStart=mi,EG.lineEnd=ni},polygonEnd:function(){var a=+CG;DG.add(a<0?lG+a:a),this.lineStart=this.lineEnd=this.point=hi},sphere:function(){DG.add(lG)}},FG=bi(),GG={point:yi,lineStart:Ai,lineEnd:Bi,polygonStart:function(){GG.point=Ci,GG.lineStart=Di,GG.lineEnd=Ei,FG.reset(),EG.polygonStart()},polygonEnd:function(){EG.polygonEnd(),GG.point=yi,GG.lineStart=Ai,GG.lineEnd=Bi,CG<0?(HF=-(JF=180),IF=-(KF=90)):FG>gG?KF=90:FG<-gG&&(IF=-90),QF[0]=HF,QF[1]=JF}},HG={sphere:hi,point:Ji,lineStart:Li,lineEnd:Oi,polygonStart:function(){HG.lineStart=Pi,HG.lineEnd=Qi},polygonEnd:function(){HG.lineStart=Li,HG.lineEnd=Oi}};Wi.invert=Wi;var IG,JG,KG,LG,MG,NG,OG,PG,QG,RG,SG,TG=(kj(jj),1e9),UG=-TG,VG=bi(),WG=bi(),XG={sphere:hi,point:hi,lineStart:rj,lineEnd:hi,polygonStart:hi,polygonEnd:hi},YG=[null,null],ZG={type:"LineString",coordinates:YG},$G={Feature:function(a,b){return xj(a.geometry,b)},FeatureCollection:function(a,b){for(var c=a.features,d=-1,e=c.length;++d<e;)if(xj(c[d].geometry,b))return!0;return!1}},_G={Sphere:function(){return!0},Point:function(a,b){return yj(a.coordinates,b)},MultiPoint:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)if(yj(c[d],b))return!0;return!1},LineString:function(a,b){return zj(a.coordinates,b)},MultiLineString:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)if(zj(c[d],b))return!0;return!1},Polygon:function(a,b){return Aj(a.coordinates,b)},MultiPolygon:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)if(Aj(c[d],b))return!0;return!1},GeometryCollection:function(a,b){for(var c=a.geometries,d=-1,e=c.length;++d<e;)if(xj(c[d],b))return!0;return!1}},aH=bi(),bH=bi(),cH={point:hi,lineStart:hi,lineEnd:hi,polygonStart:function(){cH.lineStart=Kj,cH.lineEnd=Nj},polygonEnd:function(){cH.lineStart=cH.lineEnd=cH.point=hi,aH.add(oG(bH)),bH.reset()},result:function(){var a=aH/2;return aH.reset(),a}},dH=1/0,eH=dH,fH=-dH,gH=fH,hH={point:Oj,lineStart:hi,lineEnd:hi,polygonStart:hi,polygonEnd:hi,result:function(){var a=[[dH,eH],[fH,gH]];return fH=gH=-(eH=dH=1/0),a}},iH=0,jH=0,kH=0,lH=0,mH=0,nH=0,oH=0,pH=0,qH=0,rH={point:Pj,lineStart:Qj,lineEnd:Tj,polygonStart:function(){rH.lineStart=Uj,rH.lineEnd=Vj},polygonEnd:function(){rH.point=Pj,rH.lineStart=Qj,rH.lineEnd=Tj},result:function(){var a=qH?[oH/qH,pH/qH]:nH?[lH/nH,mH/nH]:kH?[iH/kH,jH/kH]:[NaN,NaN];return iH=jH=kH=lH=mH=nH=oH=pH=qH=0,a}};Yj.prototype={_radius:4.5,pointRadius:function(a){return this._radius=a,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(a,b){switch(this._point){case 0:this._context.moveTo(a,b),this._point=1;break;case 1:this._context.lineTo(a,b);break;default:this._context.moveTo(a+this._radius,b),this._context.arc(a,b,this._radius,0,lG)}},result:hi};var sH,tH,uH,vH,wH,xH=bi(),yH={point:hi,lineStart:function(){yH.point=Zj},lineEnd:function(){sH&&$j(tH,uH),yH.point=hi},polygonStart:function(){sH=!0},polygonEnd:function(){sH=null},result:function(){var a=+xH;return xH.reset(),a}};_j.prototype={_radius:4.5,_circle:ak(4.5),pointRadius:function(a){return(a=+a)!==this._radius&&(this._radius=a,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(a,b){switch(this._point){case 0:this._string.push("M",a,",",b),this._point=1;break;case 1:this._string.push("L",a,",",b);break;default:null==this._circle&&(this._circle=ak(this._radius)),this._string.push("M",a,",",b,this._circle)}},result:function(){if(this._string.length){var a=this._string.join("");return this._string=[],a}return null}};var zH=ck(function(){return!0},fk,hk,[-iG,-jG]);lk.prototype={constructor:lk,point:function(a,b){this.stream.point(a,b)},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 AH=16,BH=rG(30*nG),CH=kk({point:function(a,b){this.stream.point(a*nG,b*nG)}}),DH=Ak(function(a){return yG(2/(1+a))});DH.invert=Bk(function(a){return 2*fi(a/2)});var EH=Ak(function(a){return(a=ei(a))&&a/wG(a)});EH.invert=Bk(function(a){return a}),Ek.invert=function(a,b){return[a,2*pG(tG(b))-jG]},Kk.invert=Kk,Ok.invert=Bk(pG),Sk.invert=Bk(fi),Uk.invert=Bk(function(a){return 2*pG(a)}),Wk.invert=function(a,b){return[-b,2*pG(tG(a))-jG]},wl.prototype=rl.prototype={constructor:wl,count:fl,each:gl,eachAfter:il,eachBefore:hl,sum:jl,sort:kl,path:ll,ancestors:nl,descendants:ol,leaves:pl,links:ql,copy:sl};var FH=Array.prototype.slice,GH="$",HH={depth:-1},IH={};gm.prototype=Object.create(wl.prototype);var JH,KH,LH,MH,NH=(1+Math.sqrt(5))/2,OH=function a(b){function c(a,c,d,e,f){km(b,a,c,d,e,f)}return c.ratio=function(b){return a((b=+b)>1?b:1)},c}(NH),PH=function a(b){function c(a,c,d,e,f){if((g=a._squarify)&&g.ratio===b)for(var g,h,i,j,k,l=-1,m=g.length,n=a.value;++l<m;){for(h=g[l],i=h.children,j=h.value=0,k=i.length;j<k;++j)h.value+=i[j].value;h.dice?Xl(h,c,d,e,d+=(f-d)*h.value/n):jm(h,c,d,c+=(e-c)*h.value/n,f),n-=h.value}else a._squarify=g=km(b,a,c,d,e,f),g.ratio=b}return c.ratio=function(b){return a((b=+b)>1?b:1)},c}(NH),QH=function a(b){function c(a,b){var c=d((a=Ub(a)).r,(b=Ub(b)).r),e=d(a.g,b.g),f=d(a.b,b.b),g=wm(a.opacity,b.opacity);return function(b){return a.r=c(b),a.g=e(b),a.b=f(b),a.opacity=g(b),a+""}}var d=vm(b);return c.gamma=a,c}(1),RH=xm(pm),SH=xm(qm),TH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,UH=new RegExp(TH.source,"g"),VH=180/Math.PI,WH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},XH=Km(Im,"px, ","px)","deg)"),YH=Km(Jm,", ",")",")"),ZH=Math.SQRT2,$H=2,_H=4,aI=1e-12,bI=Pm(um),cI=Pm(wm),dI=Rm(um),eI=Rm(wm),fI=Sm(um),gI=Sm(wm),hI=[].slice,iI={};an.prototype=gn.prototype={constructor:an,defer:function(a){if("function"!=typeof a)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var b=hI.call(arguments,1);return b.push(a),++this._waiting,this._tasks.push(b),bn(this),this},abort:function(){return null==this._error&&en(this,new Error("abort")),this},await:function(a){if("function"!=typeof a)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(b,c){a.apply(null,[b].concat(c))},fn(this),this},awaitAll:function(a){if("function"!=typeof a)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=a,fn(this),this}};var jI=function a(b){function c(a,c){return a=null==a?0:+a,c=null==c?1:+c,1===arguments.length?(c=a,a=0):c-=a,function(){return b()*c+a}}return c.source=a,c}(hn),kI=function a(b){function c(a,c){var d,e;return a=null==a?0:+a,c=null==c?1:+c,function(){var f;if(null!=d)f=d,d=null;else do d=2*b()-1,f=2*b()-1,e=d*d+f*f;while(!e||e>1);return a+c*f*Math.sqrt(-2*Math.log(e)/e)}}return c.source=a,c}(hn),lI=function a(b){function c(){var a=kI.source(b).apply(this,arguments);return function(){return Math.exp(a())}}return c.source=a,c}(hn),mI=function a(b){function c(a){return function(){for(var c=0,d=0;d<a;++d)c+=b();return c}}return c.source=a,c}(hn),nI=function a(b){function c(a){var c=mI.source(b)(a);return function(){return c()/a}}return c.source=a,c}(hn),oI=function a(b){function c(a){return function(){return-Math.log(1-b())/a}}return c.source=a,c}(hn),pI=mn("text/html",function(a){return document.createRange().createContextualFragment(a.responseText)}),qI=mn("application/json",function(a){return JSON.parse(a.responseText)}),rI=mn("text/plain",function(a){return a.responseText}),sI=mn("application/xml",function(a){var b=a.responseXML;if(!b)throw new Error("parse error");return b}),tI={},uI={},vI=34,wI=10,xI=13,yI=qn(","),zI=yI.parse,AI=qn("\t"),BI=AI.parse,CI=rn("text/csv",zI),DI=rn("text/tab-separated-values",BI),EI=un(tn),FI=EI.right,GI=Math.sqrt(50),HI=Math.sqrt(10),II=Math.sqrt(2),JI=Array.prototype,KI=JI.map,LI=JI.slice,MI={name:"implicit"},NI=function a(b){function c(a,b){var c=d((a=Ub(a)).r,(b=Ub(b)).r),e=d(a.g,b.g),f=d(a.b,b.b),g=Ln(a.opacity,b.opacity);return function(b){return a.r=c(b),a.g=e(b),a.b=f(b),a.opacity=g(b),a+""}}var d=Kn(b);return c.gamma=a,c}(1),OI=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,PI=new RegExp(OI.source,"g");180/Math.PI,Math.SQRT2;Vn(Jn);var QI,RI=Vn(Ln),SI=[0,1],TI={"":io,"%":function(a,b){return(100*a).toFixed(b)},b:function(a){return Math.round(a).toString(2)},c:function(a){return a+""},d:function(a){return Math.round(a).toString(10)},e:function(a,b){return a.toExponential(b)},f:function(a,b){return a.toFixed(b)},g:function(a,b){return a.toPrecision(b)},o:function(a){return Math.round(a).toString(8)},p:function(a,b){return ko(100*a,b)},r:ko,s:jo,X:function(a){return Math.round(a).toString(16).toUpperCase()},x:function(a){return Math.round(a).toString(16)}},UI=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;lo.prototype=mo.prototype,mo.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 VI,WI,XI,YI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];po({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var ZI=new Date,$I=new Date,_I=Lo(function(){},function(a,b){a.setTime(+a+b)},function(a,b){return b-a});_I.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?Lo(function(b){b.setTime(Math.floor(b/a)*a)},function(b,c){b.setTime(+b+c*a)},function(b,c){return(c-b)/a}):_I:null};var aJ=1e3,bJ=6e4,cJ=36e5,dJ=864e5,eJ=6048e5,fJ=Lo(function(a){a.setTime(Math.floor(a/aJ)*aJ)},function(a,b){a.setTime(+a+b*aJ)},function(a,b){return(b-a)/aJ},function(a){return a.getUTCSeconds()}),gJ=Lo(function(a){a.setTime(Math.floor(a/bJ)*bJ)},function(a,b){a.setTime(+a+b*bJ)},function(a,b){return(b-a)/bJ},function(a){return a.getMinutes()}),hJ=Lo(function(a){var b=a.getTimezoneOffset()*bJ%cJ;b<0&&(b+=cJ),a.setTime(Math.floor((+a-b)/cJ)*cJ+b)},function(a,b){a.setTime(+a+b*cJ)},function(a,b){return(b-a)/cJ},function(a){return a.getHours()}),iJ=Lo(function(a){a.setHours(0,0,0,0)},function(a,b){a.setDate(a.getDate()+b)},function(a,b){return(b-a-(b.getTimezoneOffset()-a.getTimezoneOffset())*bJ)/dJ},function(a){return a.getDate()-1}),jJ=Mo(0),kJ=Mo(1),lJ=(Mo(2),Mo(3),Mo(4)),mJ=(Mo(5),Mo(6),Lo(function(a){a.setDate(1),a.setHours(0,0,0,0)},function(a,b){a.setMonth(a.getMonth()+b)},function(a,b){return b.getMonth()-a.getMonth()+12*(b.getFullYear()-a.getFullYear())},function(a){return a.getMonth()})),nJ=Lo(function(a){a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,b){a.setFullYear(a.getFullYear()+b)},function(a,b){return b.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()});nJ.every=function(a){return isFinite(a=Math.floor(a))&&a>0?Lo(function(b){b.setFullYear(Math.floor(b.getFullYear()/a)*a),b.setMonth(0,1),b.setHours(0,0,0,0)},function(b,c){b.setFullYear(b.getFullYear()+c*a)}):null};var oJ=Lo(function(a){a.setUTCSeconds(0,0)},function(a,b){a.setTime(+a+b*bJ)},function(a,b){return(b-a)/bJ},function(a){return a.getUTCMinutes()}),pJ=Lo(function(a){a.setUTCMinutes(0,0,0)},function(a,b){a.setTime(+a+b*cJ)},function(a,b){return(b-a)/cJ},function(a){return a.getUTCHours()}),qJ=Lo(function(a){a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCDate(a.getUTCDate()+b)},function(a,b){return(b-a)/dJ},function(a){return a.getUTCDate()-1}),rJ=No(0),sJ=No(1),tJ=(No(2),No(3),No(4)),uJ=(No(5),No(6),Lo(function(a){a.setUTCDate(1),a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCMonth(a.getUTCMonth()+b)},function(a,b){return b.getUTCMonth()-a.getUTCMonth()+12*(b.getUTCFullYear()-a.getUTCFullYear())},function(a){return a.getUTCMonth()})),vJ=Lo(function(a){a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCFullYear(a.getUTCFullYear()+b)},function(a,b){return b.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()});vJ.every=function(a){return isFinite(a=Math.floor(a))&&a>0?Lo(function(b){b.setUTCFullYear(Math.floor(b.getUTCFullYear()/a)*a),b.setUTCMonth(0,1),b.setUTCHours(0,0,0,0)},function(b,c){b.setUTCFullYear(b.getUTCFullYear()+c*a)}):null};var wJ,xJ,yJ,zJ,AJ,BJ={"-":"",_:" ",0:"0"},CJ=/^\s*\d+/,DJ=/^%/,EJ=/[\\^$*+?|[\]().{}]/g;Yp({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 FJ="%Y-%m-%dT%H:%M:%S.%LZ",GJ=(Date.prototype.toISOString?Zp:zJ(FJ),+new Date("2000-01-01T00:00:00.000Z")?$p:AJ(FJ),1e3),HJ=60*GJ,IJ=60*HJ,JJ=24*IJ,KJ=7*JJ,LJ=30*JJ,MJ=365*JJ,NJ=eq("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),OJ=eq("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),PJ=eq("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),QJ=eq("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),RJ=RI(kc(300,.5,0),kc(-240,.5,1)),SJ=RI(kc(-100,.75,.35),kc(80,1.5,.8)),TJ=RI(kc(260,.75,.35),kc(80,1.5,.8)),UJ=kc(),VJ=gq(eq("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),WJ=gq(eq("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),XJ=gq(eq("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),YJ=gq(eq("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),ZJ="http://www.w3.org/1999/xhtml",$J={
+svg:"http://www.w3.org/2000/svg",xhtml:ZJ,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},_J=0;nq.prototype=mq.prototype={constructor:nq,get:function(a){for(var b=this._;!(b in a);)if(!(a=a.parentNode))return;return a[b]},set:function(a,b){return a[this._]=b},remove:function(a){return this._ in a&&delete a[this._]},toString:function(){return this._}};var aK=function(a){return function(){return this.matches(a)}};if("undefined"!=typeof document){var bK=document.documentElement;if(!bK.matches){var cK=bK.webkitMatchesSelector||bK.msMatchesSelector||bK.mozMatchesSelector||bK.oMatchesSelector;aK=function(a){return function(){return cK.call(this,a)}}}}var dK=aK,eK={};if(a.event=null,"undefined"!=typeof document){var fK=document.documentElement;"onmouseenter"in fK||(eK={mouseenter:"mouseover",mouseleave:"mouseout"})}Hq.prototype={constructor:Hq,appendChild:function(a){return this._parent.insertBefore(a,this._next)},insertBefore:function(a,b){return this._parent.insertBefore(a,b)},querySelector:function(a){return this._parent.querySelector(a)},querySelectorAll:function(a){return this._parent.querySelectorAll(a)}};var gK="$";or.prototype={add:function(a){var b=this._names.indexOf(a);b<0&&(this._names.push(a),this._node.setAttribute("class",this._names.join(" ")))},remove:function(a){var b=this._names.indexOf(a);b>=0&&(this._names.splice(b,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(a){return this._names.indexOf(a)>=0}};var hK=[null];Rr.prototype=Sr.prototype={constructor:Rr,select:Aq,selectAll:Dq,filter:Eq,data:Lq,enter:Gq,exit:Mq,merge:Nq,order:Oq,sort:Pq,call:Rq,nodes:Sq,node:Tq,size:Uq,empty:Vq,each:Wq,attr:br,style:gr,property:lr,classed:ur,text:yr,html:Cr,raise:Er,lower:Gr,append:Hr,insert:Jr,remove:Lr,datum:Mr,on:tq,dispatch:Qr};var iK=Math.abs,jK=Math.atan2,kK=Math.cos,lK=Math.max,mK=Math.min,nK=Math.sin,oK=Math.sqrt,pK=1e-12,qK=Math.PI,rK=qK/2,sK=2*qK;gs.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(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;default:this._context.lineTo(a,b)}}};var tK=qs(hs);ps.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(a,b){this._curve.point(b*Math.sin(a),b*-Math.cos(a))}};var uK=Array.prototype.slice,vK={draw:function(a,b){var c=Math.sqrt(b/qK);a.moveTo(c,0),a.arc(0,0,c,0,sK)}},wK={draw:function(a,b){var c=Math.sqrt(b/5)/2;a.moveTo(-3*c,-c),a.lineTo(-c,-c),a.lineTo(-c,-3*c),a.lineTo(c,-3*c),a.lineTo(c,-c),a.lineTo(3*c,-c),a.lineTo(3*c,c),a.lineTo(c,c),a.lineTo(c,3*c),a.lineTo(-c,3*c),a.lineTo(-c,c),a.lineTo(-3*c,c),a.closePath()}},xK=Math.sqrt(1/3),yK=2*xK,zK={draw:function(a,b){var c=Math.sqrt(b/yK),d=c*xK;a.moveTo(0,-c),a.lineTo(d,0),a.lineTo(0,c),a.lineTo(-d,0),a.closePath()}},AK=.8908130915292852,BK=Math.sin(qK/10)/Math.sin(7*qK/10),CK=Math.sin(sK/10)*BK,DK=-Math.cos(sK/10)*BK,EK={draw:function(a,b){var c=Math.sqrt(b*AK),d=CK*c,e=DK*c;a.moveTo(0,-c),a.lineTo(d,e);for(var f=1;f<5;++f){var g=sK*f/5,h=Math.cos(g),i=Math.sin(g);a.lineTo(i*c,-h*c),a.lineTo(h*d-i*e,i*d+h*e)}a.closePath()}},FK={draw:function(a,b){var c=Math.sqrt(b),d=-c/2;a.rect(d,d,c,c)}},GK=Math.sqrt(3),HK={draw:function(a,b){var c=-Math.sqrt(b/(3*GK));a.moveTo(0,2*c),a.lineTo(-GK*c,-c),a.lineTo(GK*c,-c),a.closePath()}},IK=-.5,JK=Math.sqrt(3)/2,KK=1/Math.sqrt(12),LK=3*(KK/2+1),MK={draw:function(a,b){var c=Math.sqrt(b/LK),d=c/2,e=c*KK,f=d,g=c*KK+c,h=-f,i=g;a.moveTo(d,e),a.lineTo(f,g),a.lineTo(h,i),a.lineTo(IK*d-JK*e,JK*d+IK*e),a.lineTo(IK*f-JK*g,JK*f+IK*g),a.lineTo(IK*h-JK*i,JK*h+IK*i),a.lineTo(IK*d+JK*e,IK*e-JK*d),a.lineTo(IK*f+JK*g,IK*g-JK*f),a.lineTo(IK*h+JK*i,IK*i-JK*h),a.closePath()}},NK=[vK,wK,zK,FK,EK,HK,MK];Hs.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:Gs(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(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);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:Gs(this,a,b)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b}},Js.prototype={areaStart:Fs,areaEnd:Fs,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(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._x2=a,this._y2=b;break;case 1:this._point=2,this._x3=a,this._y3=b;break;case 2:this._point=3,this._x4=a,this._y4=b,this._context.moveTo((this._x0+4*this._x1+a)/6,(this._y0+4*this._y1+b)/6);break;default:Gs(this,a,b)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b}},Ls.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(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var c=(this._x0+4*this._x1+a)/6,d=(this._y0+4*this._y1+b)/6;this._line?this._context.lineTo(c,d):this._context.moveTo(c,d);break;case 3:this._point=4;default:Gs(this,a,b)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b}},Ns.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var a=this._x,b=this._y,c=a.length-1;if(c>0)for(var d,e=a[0],f=b[0],g=a[c]-e,h=b[c]-f,i=-1;++i<=c;)d=i/c,this._basis.point(this._beta*a[i]+(1-this._beta)*(e+d*g),this._beta*b[i]+(1-this._beta)*(f+d*h));this._x=this._y=null,this._basis.lineEnd()},point:function(a,b){this._x.push(+a),this._y.push(+b)}};var OK=function a(b){function c(a){return 1===b?new Hs(a):new Ns(a,b)}return c.beta=function(b){return a(+b)},c}(.85);Ps.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:Os(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2,this._x1=a,this._y1=b;break;case 2:this._point=3;default:Os(this,a,b)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var PK=function a(b){function c(a){return new Ps(a,b)}return c.tension=function(b){return a(+b)},c}(0);Qs.prototype={areaStart:Fs,areaEnd:Fs,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(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._x3=a,this._y3=b;break;case 1:this._point=2,this._context.moveTo(this._x4=a,this._y4=b);break;case 2:this._point=3,this._x5=a,this._y5=b;break;default:Os(this,a,b)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var QK=function a(b){function c(a){return new Qs(a,b)}return c.tension=function(b){return a(+b)},c}(0);Rs.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(a,b){switch(a=+a,b=+b,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:Os(this,a,b)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var RK=function a(b){function c(a){return new Rs(a,b)}return c.tension=function(b){return a(+b)},c}(0);Ts.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(a,b){if(a=+a,b=+b,this._point){var c=this._x2-a,d=this._y2-b;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+d*d,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;break;case 2:this._point=3;default:Ss(this,a,b)}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=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var SK=function a(b){function c(a){return b?new Ts(a,b):new Ps(a,0)}return c.alpha=function(b){return a(+b)},c}(.5);Us.prototype={areaStart:Fs,areaEnd:Fs,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(a,b){if(a=+a,b=+b,this._point){var c=this._x2-a,d=this._y2-b;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+d*d,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=a,this._y3=b;break;case 1:this._point=2,this._context.moveTo(this._x4=a,this._y4=b);break;case 2:this._point=3,this._x5=a,this._y5=b;break;default:Ss(this,a,b)}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=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var TK=function a(b){function c(a){return b?new Us(a,b):new Qs(a,0)}return c.alpha=function(b){return a(+b)},c}(.5);Vs.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(a,b){if(a=+a,b=+b,this._point){var c=this._x2-a,d=this._y2-b;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+d*d,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:Ss(this,a,b)}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=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var UK=function a(b){function c(a){return b?new Vs(a,b):new Rs(a,0)}return c.alpha=function(b){return a(+b)},c}(.5);Ws.prototype={areaStart:Fs,areaEnd:Fs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(a,b){a=+a,b=+b,this._point?this._context.lineTo(a,b):(this._point=1,this._context.moveTo(a,b))}},at.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:_s(this,this._t0,$s(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){var c=NaN;if(a=+a,b=+b,a!==this._x1||b!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;break;case 2:this._point=3,_s(this,$s(this,c=Zs(this,a,b)),c);break;default:_s(this,this._t0,c=Zs(this,a,b))}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b,this._t0=c}}},(bt.prototype=Object.create(at.prototype)).point=function(a,b){at.prototype.point.call(this,b,a)},ct.prototype={moveTo:function(a,b){this._context.moveTo(b,a)},closePath:function(){this._context.closePath()},lineTo:function(a,b){this._context.lineTo(b,a)},bezierCurveTo:function(a,b,c,d,e,f){this._context.bezierCurveTo(b,a,d,c,f,e)}},ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var a=this._x,b=this._y,c=a.length;if(c)if(this._line?this._context.lineTo(a[0],b[0]):this._context.moveTo(a[0],b[0]),2===c)this._context.lineTo(a[1],b[1]);else for(var d=gt(a),e=gt(b),f=0,g=1;g<c;++f,++g)this._context.bezierCurveTo(d[0][f],e[0][f],d[1][f],e[1][f],a[g],b[g]);(this._line||0!==this._line&&1===c)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(a,b){this._x.push(+a),this._y.push(+b)}},it.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(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,b),this._context.lineTo(a,b);else{var c=this._x*(1-this._t)+a*this._t;this._context.lineTo(c,this._y),this._context.lineTo(c,b)}}this._x=a,this._y=b}};var VK=new Date,WK=new Date,XK=zt(function(){},function(a,b){a.setTime(+a+b)},function(a,b){return b-a});XK.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?zt(function(b){b.setTime(Math.floor(b/a)*a)},function(b,c){b.setTime(+b+c*a)},function(b,c){return(c-b)/a}):XK:null};var YK=XK.range,ZK=1e3,$K=6e4,_K=36e5,aL=864e5,bL=6048e5,cL=zt(function(a){a.setTime(Math.floor(a/ZK)*ZK)},function(a,b){a.setTime(+a+b*ZK)},function(a,b){return(b-a)/ZK},function(a){return a.getUTCSeconds()}),dL=cL.range,eL=zt(function(a){a.setTime(Math.floor(a/$K)*$K)},function(a,b){a.setTime(+a+b*$K)},function(a,b){return(b-a)/$K},function(a){return a.getMinutes()}),fL=eL.range,gL=zt(function(a){var b=a.getTimezoneOffset()*$K%_K;b<0&&(b+=_K),a.setTime(Math.floor((+a-b)/_K)*_K+b)},function(a,b){a.setTime(+a+b*_K)},function(a,b){return(b-a)/_K},function(a){return a.getHours()}),hL=gL.range,iL=zt(function(a){a.setHours(0,0,0,0)},function(a,b){a.setDate(a.getDate()+b)},function(a,b){return(b-a-(b.getTimezoneOffset()-a.getTimezoneOffset())*$K)/aL},function(a){return a.getDate()-1}),jL=iL.range,kL=At(0),lL=At(1),mL=At(2),nL=At(3),oL=At(4),pL=At(5),qL=At(6),rL=kL.range,sL=lL.range,tL=mL.range,uL=nL.range,vL=oL.range,wL=pL.range,xL=qL.range,yL=zt(function(a){a.setDate(1),a.setHours(0,0,0,0)},function(a,b){a.setMonth(a.getMonth()+b)},function(a,b){return b.getMonth()-a.getMonth()+12*(b.getFullYear()-a.getFullYear())},function(a){return a.getMonth()}),zL=yL.range,AL=zt(function(a){a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,b){a.setFullYear(a.getFullYear()+b)},function(a,b){return b.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()});AL.every=function(a){return isFinite(a=Math.floor(a))&&a>0?zt(function(b){b.setFullYear(Math.floor(b.getFullYear()/a)*a),b.setMonth(0,1),b.setHours(0,0,0,0)},function(b,c){b.setFullYear(b.getFullYear()+c*a)}):null};var BL=AL.range,CL=zt(function(a){a.setUTCSeconds(0,0)},function(a,b){a.setTime(+a+b*$K)},function(a,b){return(b-a)/$K},function(a){return a.getUTCMinutes()}),DL=CL.range,EL=zt(function(a){a.setUTCMinutes(0,0,0)},function(a,b){a.setTime(+a+b*_K)},function(a,b){return(b-a)/_K},function(a){return a.getUTCHours()}),FL=EL.range,GL=zt(function(a){a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCDate(a.getUTCDate()+b)},function(a,b){return(b-a)/aL},function(a){return a.getUTCDate()-1}),HL=GL.range,IL=Bt(0),JL=Bt(1),KL=Bt(2),LL=Bt(3),ML=Bt(4),NL=Bt(5),OL=Bt(6),PL=IL.range,QL=JL.range,RL=KL.range,SL=LL.range,TL=ML.range,UL=NL.range,VL=OL.range,WL=zt(function(a){a.setUTCDate(1),a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCMonth(a.getUTCMonth()+b)},function(a,b){return b.getUTCMonth()-a.getUTCMonth()+12*(b.getUTCFullYear()-a.getUTCFullYear())},function(a){return a.getUTCMonth()}),XL=WL.range,YL=zt(function(a){a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCFullYear(a.getUTCFullYear()+b)},function(a,b){return b.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()});YL.every=function(a){return isFinite(a=Math.floor(a))&&a>0?zt(function(b){b.setUTCFullYear(Math.floor(b.getUTCFullYear()/a)*a),b.setUTCMonth(0,1),b.setUTCHours(0,0,0,0)},function(b,c){b.setUTCFullYear(b.getUTCFullYear()+c*a)}):null};var ZL=YL.range,$L=new Date,_L=new Date,aM=Ct(function(){},function(a,b){a.setTime(+a+b)},function(a,b){return b-a});aM.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?Ct(function(b){b.setTime(Math.floor(b/a)*a)},function(b,c){b.setTime(+b+c*a)},function(b,c){return(c-b)/a}):aM:null};var bM=1e3,cM=6e4,dM=36e5,eM=864e5,fM=6048e5,gM=(Ct(function(a){a.setTime(Math.floor(a/bM)*bM)},function(a,b){a.setTime(+a+b*bM)},function(a,b){return(b-a)/bM},function(a){return a.getUTCSeconds()}),Ct(function(a){a.setTime(Math.floor(a/cM)*cM)},function(a,b){a.setTime(+a+b*cM)},function(a,b){return(b-a)/cM},function(a){return a.getMinutes()}),Ct(function(a){var b=a.getTimezoneOffset()*cM%dM;b<0&&(b+=dM),a.setTime(Math.floor((+a-b)/dM)*dM+b)},function(a,b){a.setTime(+a+b*dM)},function(a,b){return(b-a)/dM},function(a){return a.getHours()}),Ct(function(a){a.setHours(0,0,0,0)},function(a,b){a.setDate(a.getDate()+b)},function(a,b){return(b-a-(b.getTimezoneOffset()-a.getTimezoneOffset())*cM)/eM},function(a){return a.getDate()-1})),hM=Dt(0),iM=Dt(1),jM=(Dt(2),Dt(3),Dt(4),Dt(5),Dt(6),Ct(function(a){a.setDate(1),a.setHours(0,0,0,0)},function(a,b){a.setMonth(a.getMonth()+b)},function(a,b){return b.getMonth()-a.getMonth()+12*(b.getFullYear()-a.getFullYear())},function(a){return a.getMonth()}),Ct(function(a){a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,b){a.setFullYear(a.getFullYear()+b)},function(a,b){return b.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()}));jM.every=function(a){return isFinite(a=Math.floor(a))&&a>0?Ct(function(b){b.setFullYear(Math.floor(b.getFullYear()/a)*a),b.setMonth(0,1),b.setHours(0,0,0,0)},function(b,c){b.setFullYear(b.getFullYear()+c*a)}):null};var kM=(Ct(function(a){a.setUTCSeconds(0,0)},function(a,b){a.setTime(+a+b*cM)},function(a,b){return(b-a)/cM},function(a){return a.getUTCMinutes()}),Ct(function(a){a.setUTCMinutes(0,0,0)},function(a,b){a.setTime(+a+b*dM)},function(a,b){return(b-a)/dM},function(a){return a.getUTCHours()}),Ct(function(a){a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCDate(a.getUTCDate()+b)},function(a,b){return(b-a)/eM},function(a){return a.getUTCDate()-1})),lM=Et(0),mM=Et(1),nM=(Et(2),Et(3),Et(4),Et(5),Et(6),Ct(function(a){a.setUTCDate(1),a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCMonth(a.getUTCMonth()+b)},function(a,b){return b.getUTCMonth()-a.getUTCMonth()+12*(b.getUTCFullYear()-a.getUTCFullYear())},function(a){return a.getUTCMonth()}),Ct(function(a){a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCFullYear(a.getUTCFullYear()+b)},function(a,b){return b.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()}));nM.every=function(a){return isFinite(a=Math.floor(a))&&a>0?Ct(function(b){b.setUTCFullYear(Math.floor(b.getUTCFullYear()/a)*a),b.setUTCMonth(0,1),b.setUTCHours(0,0,0,0)},function(b,c){b.setUTCFullYear(b.getUTCFullYear()+c*a)}):null};var oM,pM={"-":"",_:" ",0:"0"},qM=/^\s*\d+/,rM=/^%/,sM=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;Cu({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 tM,uM,vM="%Y-%m-%dT%H:%M:%S.%LZ",wM=Date.prototype.toISOString?Du:a.utcFormat(vM),xM=+new Date("2000-01-01T00:00:00.000Z")?Eu:a.utcParse(vM),yM=0,zM=0,AM=0,BM=1e3,CM=0,DM=0,EM=0,FM="object"==typeof performance&&performance.now?performance:Date,GM="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(a){setTimeout(a,17)};Hu.prototype=Iu.prototype={constructor:Hu,restart:function(a,b,c){if("function"!=typeof a)throw new TypeError("callback is not a function");c=(null==c?Fu():+c)+(null==b?0:+b),this._next||uM===this||(uM?uM._next=this:tM=this,uM=this),this._call=a,this._time=c,Nu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Nu())}};var HM="http://www.w3.org/1999/xhtml",IM={svg:"http://www.w3.org/2000/svg",xhtml:HM,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},JM=function(a){return function(){return this.matches(a)}};if("undefined"!=typeof document){var KM=document.documentElement;if(!KM.matches){var LM=KM.webkitMatchesSelector||KM.msMatchesSelector||KM.mozMatchesSelector||KM.oMatchesSelector;JM=function(a){return function(){return LM.call(this,a)}}}}var MM=JM;bv.prototype={constructor:bv,appendChild:function(a){return this._parent.insertBefore(a,this._next)},insertBefore:function(a,b){return this._parent.insertBefore(a,b)},querySelector:function(a){return this._parent.querySelector(a)},querySelectorAll:function(a){return this._parent.querySelectorAll(a)}};var NM="$";Kv.prototype={add:function(a){var b=this._names.indexOf(a);b<0&&(this._names.push(a),this._node.setAttribute("class",this._names.join(" ")))},remove:function(a){var b=this._names.indexOf(a);b>=0&&(this._names.splice(b,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(a){return this._names.indexOf(a)>=0}};var OM={};if("undefined"!=typeof document){var PM=document.documentElement;"onmouseenter"in PM||(OM={mouseenter:"mouseover",mouseleave:"mouseout"})}var QM=[null];uw.prototype=vw.prototype={constructor:uw,select:Wu,selectAll:Zu,filter:$u,data:fv,enter:av,exit:gv,merge:hv,order:iv,sort:jv,call:lv,nodes:mv,node:nv,size:ov,empty:pv,each:qv,attr:xv,style:Cv,property:Hv,classed:Qv,text:Uv,html:Yv,raise:$v,lower:aw,append:bw,insert:dw,remove:fw,clone:iw,datum:jw,on:pw,dispatch:tw};var RM,SM,TM=0,UM=0,VM=0,WM=1e3,XM=0,YM=0,ZM=0,$M="object"==typeof performance&&performance.now?performance:Date,_M="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(a){setTimeout(a,17)};yw.prototype=zw.prototype={constructor:yw,restart:function(a,b,c){if("function"!=typeof a)throw new TypeError("callback is not a function");c=(null==c?ww():+c)+(null==b?0:+b),this._next||SM===this||(SM?SM._next=this:RM=this,SM=this),this._call=a,this._time=c,Ew()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ew())}};var aN,bN,cN,dN,eN=U("start","end","interrupt"),fN=[],gN=0,hN=1,iN=2,jN=3,kN=4,lN=5,mN=6,nN=function a(b){function c(a,b){var c=d((a=Ub(a)).r,(b=Ub(b)).r),e=d(a.g,b.g),f=d(a.b,b.b),g=Rw(a.opacity,b.opacity);return function(b){return a.r=c(b),a.g=e(b),a.b=f(b),a.opacity=g(b),a+""}}var d=Qw(b);return c.gamma=a,c}(1),oN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pN=new RegExp(oN.source,"g"),qN=180/Math.PI,rN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},sN=Zw(Xw,"px, ","px)","deg)"),tN=Zw(Yw,", ",")",")"),uN=(Math.SQRT2,vw.prototype.constructor),vN=0,wN=vw.prototype;Qx.prototype=Rx.prototype={constructor:Qx,select:Cx,selectAll:Dx,filter:vx,merge:wx,selection:Ex,transition:Px,call:wN.call,nodes:wN.nodes,node:wN.node,size:wN.size,empty:wN.empty,each:wN.each,on:zx,attr:jx,attrTween:mx,style:Jx,styleTween:Lx,text:Ox,remove:Bx,tween:ax,delay:px,duration:sx,ease:ux};var xN={time:null,delay:0,duration:250,ease:Td};vw.prototype.interrupt=Mw,vw.prototype.transition=Ux;var yN=[null];Zx.prototype={constructor:Zx,insert:function(a,b){var c,d,e;if(a){if(b.P=a,b.N=a.N,a.N&&(a.N.P=b),a.N=b,a.R){for(a=a.R;a.L;)a=a.L;a.L=b}else a.R=b;c=a}else this._?(a=by(this._),b.P=null,b.N=a,a.P=a.L=b,c=a):(b.P=b.N=null,this._=b,c=null);for(b.L=b.R=null,b.U=c,b.C=!0,a=b;c&&c.C;)d=c.U,c===d.L?(e=d.R,e&&e.C?(c.C=e.C=!1,d.C=!0,a=d):(a===c.R&&(_x(this,c),a=c,c=a.U),c.C=!1,d.C=!0,ay(this,d))):(e=d.L,e&&e.C?(c.C=e.C=!1,d.C=!0,a=d):(a===c.L&&(ay(this,c),a=c,c=a.U),c.C=!1,d.C=!0,_x(this,d))),c=a.U;this._.C=!1},remove:function(a){a.N&&(a.N.P=a.P),a.P&&(a.P.N=a.N),a.N=a.P=null;var b,c,d,e=a.U,f=a.L,g=a.R;if(c=f?g?by(g):f:g,e?e.L===a?e.L=c:e.R=c:this._=c,f&&g?(d=c.C,c.C=a.C,c.L=f,f.U=c,c!==g?(e=c.U,c.U=a.U,a=c.R,e.L=a,c.R=g,g.U=c):(c.U=e,e=c,a=c.R)):(d=a.C,a=c),a&&(a.U=e),!d){if(a&&a.C)return void(a.C=!1);do{if(a===this._)break;if(a===e.L){if(b=e.R,b.C&&(b.C=!1,e.C=!0,_x(this,e),b=e.R),b.L&&b.L.C||b.R&&b.R.C){b.R&&b.R.C||(b.L.C=!1,b.C=!0,ay(this,b),b=e.R),b.C=e.C,e.C=b.R.C=!1,_x(this,e),a=this._;break}}else if(b=e.L,b.C&&(b.C=!1,e.C=!0,ay(this,e),b=e.L),b.L&&b.L.C||b.R&&b.R.C){b.L&&b.L.C||(b.R.C=!1,b.C=!0,_x(this,b),b=e.L),b.C=e.C,e.C=b.L.C=!1,ay(this,e),a=this._;break}b.C=!0,a=e,e=e.U}while(!a.C);a&&(a.C=!1)}}};var zN,AN,BN,CN,DN,EN=[],FN=[],GN=1e-6,HN=1e-12;Ay.prototype={constructor:Ay,polygons:function(){var a=this.edges;return this.cells.map(function(b){var c=b.halfedges.map(function(c){return ky(b,a[c])});return c.data=b.site.data,c})},triangles:function(){var a=[],b=this.edges;return this.cells.forEach(function(c,d){if(f=(e=c.halfedges).length)for(var e,f,g,h=c.site,i=-1,j=b[e[f-1]],k=j.left===h?j.right:j.left;++i<f;)g=k,j=b[e[i]],k=j.left===h?j.right:j.left,g&&k&&d<g.index&&d<k.index&&yy(h,g,k)<0&&a.push([h.data,g.data,k.data])}),a},links:function(){return this.edges.filter(function(a){return a.right}).map(function(a){return{source:a.left.data,target:a.right.data}})},find:function(a,b,c){for(var d,e,f=this,g=f._found||0,h=f.cells.length;!(e=f.cells[g]);)if(++g>=h)return null;var i=a-e.site[0],j=b-e.site[1],k=i*i+j*j;do e=f.cells[d=g],g=null,e.halfedges.forEach(function(c){var d=f.edges[c],h=d.left;if(h!==e.site&&h||(h=d.right)){var i=a-h[0],j=b-h[1],l=i*i+j*j;l<k&&(k=l,g=h.index)}});while(null!==g);return f._found=d,null==c||k<=c*c?e.site:null}};var IN="http://www.w3.org/1999/xhtml",JN={svg:"http://www.w3.org/2000/svg",xhtml:IN,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},KN=function(a){return function(){return this.matches(a)}};if("undefined"!=typeof document){var LN=document.documentElement;if(!LN.matches){var MN=LN.webkitMatchesSelector||LN.msMatchesSelector||LN.mozMatchesSelector||LN.oMatchesSelector;KN=function(a){return function(){return MN.call(this,a)}}}}var NN=KN;Py.prototype={constructor:Py,appendChild:function(a){return this._parent.insertBefore(a,this._next)},insertBefore:function(a,b){return this._parent.insertBefore(a,b)},querySelector:function(a){return this._parent.querySelector(a)},querySelectorAll:function(a){return this._parent.querySelectorAll(a)}};var ON="$";wz.prototype={add:function(a){var b=this._names.indexOf(a);b<0&&(this._names.push(a),this._node.setAttribute("class",this._names.join(" ")))},remove:function(a){var b=this._names.indexOf(a);b>=0&&(this._names.splice(b,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(a){return this._names.indexOf(a)>=0}};var PN={},QN=null;if("undefined"!=typeof document){var RN=document.documentElement;"onmouseenter"in RN||(PN={mouseenter:"mouseover",mouseleave:"mouseout"})}var SN=[null];hA.prototype=iA.prototype={constructor:hA,select:Iy,selectAll:Ly,filter:My,data:Ty,enter:Oy,exit:Uy,merge:Vy,order:Wy,sort:Xy,call:Zy,nodes:$y,node:_y,size:az,empty:bz,each:cz,attr:jz,style:oz,property:tz,classed:Cz,text:Gz,html:Kz,raise:Mz,lower:Oz,append:Pz,insert:Rz,remove:Tz,clone:Wz,datum:Xz,on:bA,dispatch:gA};var TN,UN,VN,WN,XN,YN,ZN=function a(b){function c(a,b){var c=d((a=Ub(a)).r,(b=Ub(b)).r),e=d(a.g,b.g),f=d(a.b,b.b),g=vA(a.opacity,b.opacity);return function(b){return a.r=c(b),a.g=e(b),a.b=f(b),a.opacity=g(b),a+""}}var d=uA(b);return c.gamma=a,c}(1),$N=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_N=new RegExp($N.source,"g"),aO=180/Math.PI,bO={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},cO=DA(BA,"px, ","px)","deg)"),dO=DA(CA,", ",")",")"),eO=Math.SQRT2,fO=2,gO=4,hO=1e-12,iO=0,jO=0,kO=0,lO=1e3,mO=0,nO=0,oO=0,pO="object"==typeof performance&&performance.now?performance:Date,qO="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(a){setTimeout(a,17)};KA.prototype=LA.prototype={constructor:KA,restart:function(a,b,c){if("function"!=typeof a)throw new TypeError("callback is not a function");c=(null==c?IA():+c)+(null==b?0:+b),this._next||YN===this||(YN?YN._next=this:XN=this,YN=this),this._call=a,this._time=c,QA()},stop:function(){this._call&&(this._call=null,this._time=1/0,QA())}};var rO=U("start","end","interrupt"),sO=[],tO=0,uO=1,vO=2,wO=3,xO=4,yO=5,zO=6,AO=iA.prototype.constructor,BO=0,CO=iA.prototype;PB.prototype=QB.prototype={constructor:PB,select:BB,selectAll:CB,filter:uB,merge:vB,selection:DB,transition:OB,call:CO.call,nodes:CO.nodes,node:CO.node,size:CO.size,empty:CO.empty,each:CO.each,on:yB,attr:iB,attrTween:lB,style:IB,styleTween:KB,text:NB,remove:AB,tween:_A,delay:oB,duration:rB,ease:tB};var DO={time:null,delay:0,duration:250,ease:Td};iA.prototype.interrupt=YA,iA.prototype.transition=TB,WB.prototype={constructor:WB,scale:function(a){return 1===a?this:new WB(this.k*a,this.x,this.y)},translate:function(a,b){return 0===a&0===b?this:new WB(this.k,this.x+this.k*a,this.y+this.k*b)},apply:function(a){return[a[0]*this.k+this.x,a[1]*this.k+this.y]},applyX:function(a){return a*this.k+this.x},applyY:function(a){return a*this.k+this.y},invert:function(a){return[(a[0]-this.x)/this.k,(a[1]-this.y)/this.k]},invertX:function(a){return(a-this.x)/this.k;
+},invertY:function(a){return(a-this.y)/this.k},rescaleX:function(a){return a.copy().domain(a.range().map(this.invertX,this).map(a.invert,a))},rescaleY:function(a){return a.copy().domain(a.range().map(this.invertY,this).map(a.invert,a))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var EO=new WB(1,0,0);XB.prototype=WB.prototype,a.version=eC,a.bisect=gC,a.bisectRight=gC,a.bisectLeft=hC,a.ascending=b,a.bisector=c,a.cross=g,a.descending=h,a.deviation=k,a.extent=l,a.histogram=t,a.thresholdFreedmanDiaconis=v,a.thresholdScott=w,a.thresholdSturges=s,a.max=x,a.mean=y,a.median=z,a.merge=A,a.min=B,a.pairs=e,a.permute=C,a.quantile=u,a.range=o,a.scan=D,a.shuffle=E,a.sum=F,a.ticks=p,a.tickIncrement=q,a.tickStep=r,a.transpose=G,a.variance=j,a.zip=I,a.axisTop=Q,a.axisRight=R,a.axisBottom=S,a.axisLeft=T,a.brush=se,a.brushX=qe,a.brushY=re,a.brushSelection=pe,a.chord=ze,a.ribbon=Ie,a.nest=Le,a.set=Re,a.map=Ke,a.keys=Se,a.values=Te,a.entries=Ue,a.color=Qb,a.rgb=Ub,a.hsl=Yb,a.lab=ac,a.hcl=hc,a.cubehelix=kc,a.dispatch=U,a.drag=Sg,a.dragDisable=Kg,a.dragEnable=Lg,a.dsvFormat=Wg,a.csvParse=aF,a.csvParseRows=bF,a.csvFormat=cF,a.csvFormatRows=dF,a.tsvParse=fF,a.tsvParseRows=gF,a.tsvFormat=hF,a.tsvFormatRows=iF,a.easeLinear=Nd,a.easeQuad=Qd,a.easeQuadIn=Od,a.easeQuadOut=Pd,a.easeQuadInOut=Qd,a.easeCubic=Td,a.easeCubicIn=Rd,a.easeCubicOut=Sd,a.easeCubicInOut=Td,a.easePoly=VD,a.easePolyIn=TD,a.easePolyOut=UD,a.easePolyInOut=VD,a.easeSin=Wd,a.easeSinIn=Ud,a.easeSinOut=Vd,a.easeSinInOut=Wd,a.easeExp=Zd,a.easeExpIn=Xd,a.easeExpOut=Yd,a.easeExpInOut=Zd,a.easeCircle=ae,a.easeCircleIn=$d,a.easeCircleOut=_d,a.easeCircleInOut=ae,a.easeBounce=ce,a.easeBounceIn=be,a.easeBounceOut=ce,a.easeBounceInOut=de,a.easeBack=jE,a.easeBackIn=hE,a.easeBackOut=iE,a.easeBackInOut=jE,a.easeElastic=oE,a.easeElasticIn=nE,a.easeElasticOut=oE,a.easeElasticInOut=pE,a.forceCenter=Xg,a.forceCollide=vh,a.forceLink=yh,a.forceManyBody=Lh,a.forceSimulation=Kh,a.forceX=Mh,a.forceY=Nh,a.formatDefaultLocale=Zh,a.formatLocale=Yh,a.formatSpecifier=Vh,a.precisionFixed=$h,a.precisionPrefix=_h,a.precisionRound=ai,a.geoArea=qi,a.geoBounds=Ii,a.geoCentroid=Ti,a.geoCircle=cj,a.geoClipExtent=pj,a.geoContains=Dj,a.geoDistance=wj,a.geoGraticule=Gj,a.geoGraticule10=Hj,a.geoInterpolate=Ij,a.geoLength=vj,a.geoPath=bk,a.geoAlbers=xk,a.geoAlbersUsa=zk,a.geoAzimuthalEqualArea=Ck,a.geoAzimuthalEqualAreaRaw=DH,a.geoAzimuthalEquidistant=Dk,a.geoAzimuthalEquidistantRaw=EH,a.geoConicConformal=Jk,a.geoConicConformalRaw=Ik,a.geoConicEqualArea=wk,a.geoConicEqualAreaRaw=vk,a.geoConicEquidistant=Nk,a.geoConicEquidistantRaw=Mk,a.geoEquirectangular=Lk,a.geoEquirectangularRaw=Kk,a.geoGnomonic=Pk,a.geoGnomonicRaw=Ok,a.geoIdentity=Rk,a.geoProjection=rk,a.geoProjectionMutator=sk,a.geoMercator=Fk,a.geoMercatorRaw=Ek,a.geoOrthographic=Tk,a.geoOrthographicRaw=Sk,a.geoStereographic=Vk,a.geoStereographicRaw=Uk,a.geoTransverseMercator=Xk,a.geoTransverseMercatorRaw=Wk,a.geoRotation=_i,a.geoStream=li,a.geoTransform=jk,a.cluster=dl,a.hierarchy=rl,a.pack=Sl,a.packSiblings=Ml,a.packEnclose=yl,a.partition=Yl,a.stratify=_l,a.tree=im,a.treemap=lm,a.treemapBinary=mm,a.treemapDice=Xl,a.treemapSlice=jm,a.treemapSliceDice=nm,a.treemapSquarify=OH,a.treemapResquarify=PH,a.interpolate=Fm,a.interpolateArray=ym,a.interpolateBasis=pm,a.interpolateBasisClosed=qm,a.interpolateDate=zm,a.interpolateNumber=Am,a.interpolateObject=Bm,a.interpolateRound=Gm,a.interpolateString=Em,a.interpolateTransformCss=XH,a.interpolateTransformSvg=YH,a.interpolateZoom=Om,a.interpolateRgb=QH,a.interpolateRgbBasis=RH,a.interpolateRgbBasisClosed=SH,a.interpolateHsl=bI,a.interpolateHslLong=cI,a.interpolateLab=Qm,a.interpolateHcl=dI,a.interpolateHclLong=eI,a.interpolateCubehelix=fI,a.interpolateCubehelixLong=gI,a.quantize=Tm,a.path=Ce,a.polygonArea=Um;a.polygonCentroid=Vm;a.polygonHull=Zm,a.polygonContains=$m,a.polygonLength=_m,a.quadtree=qh,a.queue=gn,a.randomUniform=jI,a.randomNormal=kI,a.randomLogNormal=lI,a.randomBates=nI,a.randomIrwinHall=mI,a.randomExponential=oI,a.request=jn,a.html=pI,a.json=qI,a.text=rI,a.xml=sI,a.csv=CI,a.tsv=DI,a.scaleBand=Dn,a.scalePoint=Fn,a.scaleIdentity=wo,a.scaleLinear=vo,a.scaleLog=Eo,a.scaleOrdinal=Cn,a.scaleImplicit=MI,a.scalePow=Go,a.scaleSqrt=Ho,a.scaleQuantile=Io,a.scaleQuantize=Jo,a.scaleThreshold=Ko,a.scaleTime=cq,a.scaleUtc=dq,a.schemeCategory10=NJ,a.schemeCategory20b=OJ,a.schemeCategory20c=PJ,a.schemeCategory20=QJ,a.interpolateCubehelixDefault=RJ,a.interpolateRainbow=fq,a.interpolateWarm=SJ,a.interpolateCool=TJ,a.interpolateViridis=VJ,a.interpolateMagma=WJ,a.interpolateInferno=XJ,a.interpolatePlasma=YJ,a.scaleSequential=hq,a.creator=lq,a.local=mq,a.matcher=dK,a.mouse=xq,a.namespace=iq,a.namespaces=$J,a.select=Tr,a.selectAll=Ur,a.selection=Sr,a.selector=zq,a.selectorAll=Cq,a.style=hr,a.touch=Vr,a.touches=Wr,a.window=cr,a.customEvent=uq,a.arc=fs,a.area=ls,a.line=ks,a.pie=os,a.areaRadial=ts,a.radialArea=ts,a.lineRadial=ss,a.radialLine=ss,a.pointRadial=us,a.linkHorizontal=Bs,a.linkVertical=Cs,a.linkRadial=Ds,a.symbol=Es,a.symbols=NK,a.symbolCircle=vK,a.symbolCross=wK,a.symbolDiamond=zK,a.symbolSquare=FK,a.symbolStar=EK,a.symbolTriangle=HK,a.symbolWye=MK,a.curveBasisClosed=Ks,a.curveBasisOpen=Ms,a.curveBasis=Is,a.curveBundle=OK,a.curveCardinalClosed=QK,a.curveCardinalOpen=RK,a.curveCardinal=PK,a.curveCatmullRomClosed=TK,a.curveCatmullRomOpen=UK,a.curveCatmullRom=SK,a.curveLinearClosed=Xs,a.curveLinear=hs,a.curveMonotoneX=dt,a.curveMonotoneY=et,a.curveNatural=ht,a.curveStep=jt,a.curveStepAfter=lt,a.curveStepBefore=kt,a.stack=pt,a.stackOffsetExpand=qt,a.stackOffsetDiverging=rt,a.stackOffsetNone=mt,a.stackOffsetSilhouette=st,a.stackOffsetWiggle=tt,a.stackOrderAscending=ut,a.stackOrderDescending=wt,a.stackOrderInsideOut=xt,a.stackOrderNone=nt,a.stackOrderReverse=yt,a.timeInterval=zt,a.timeMillisecond=XK,a.timeMilliseconds=YK,a.utcMillisecond=XK,a.utcMilliseconds=YK,a.timeSecond=cL,a.timeSeconds=dL,a.utcSecond=cL,a.utcSeconds=dL,a.timeMinute=eL,a.timeMinutes=fL,a.timeHour=gL,a.timeHours=hL,a.timeDay=iL,a.timeDays=jL,a.timeWeek=kL,a.timeWeeks=rL,a.timeSunday=kL,a.timeSundays=rL,a.timeMonday=lL,a.timeMondays=sL,a.timeTuesday=mL,a.timeTuesdays=tL,a.timeWednesday=nL,a.timeWednesdays=uL,a.timeThursday=oL,a.timeThursdays=vL,a.timeFriday=pL,a.timeFridays=wL,a.timeSaturday=qL,a.timeSaturdays=xL,a.timeMonth=yL,a.timeMonths=zL,a.timeYear=AL,a.timeYears=BL,a.utcMinute=CL,a.utcMinutes=DL,a.utcHour=EL,a.utcHours=FL,a.utcDay=GL,a.utcDays=HL,a.utcWeek=IL,a.utcWeeks=PL,a.utcSunday=IL,a.utcSundays=PL,a.utcMonday=JL,a.utcMondays=QL,a.utcTuesday=KL,a.utcTuesdays=RL,a.utcWednesday=LL,a.utcWednesdays=SL,a.utcThursday=ML,a.utcThursdays=TL,a.utcFriday=NL,a.utcFridays=UL,a.utcSaturday=OL,a.utcSaturdays=VL,a.utcMonth=WL,a.utcMonths=XL,a.utcYear=YL,a.utcYears=ZL,a.timeFormatDefaultLocale=Cu,a.timeFormatLocale=It,a.isoFormat=wM,a.isoParse=xM,a.now=Fu,a.timer=Iu,a.timerFlush=Ju,a.timeout=Ou,a.interval=Pu,a.transition=Rx,a.active=Vx,a.interrupt=Lw,a.voronoi=By,a.zoom=dC,a.zoomTransform=XB,a.zoomIdentity=EO,Object.defineProperty(a,"__esModule",{value:!0})});