text: <<<<<<< HEAD
  !function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=1)}([function(t,n,e){"use strict";e.r(n);var r=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},i=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return r(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)>0?i=u:r=u+1}return r}}};var u=i(r),o=u.right,a=u.left,c=o,f=function(t,n){null==n&&(n=l);for(var e=0,r=t.length-1,i=t[0],u=new Array(r<0?0:r);e<r;)u[e]=n(i,i=t[++e]);return u};function l(t,n){return[t,n]}var s=function(t,n,e){var r,i,u,o,a=t.length,c=n.length,f=new Array(a*c);for(null==e&&(e=l),r=u=0;r<a;++r)for(o=t[r],i=0;i<c;++i,++u)f[u]=e(o,n[i]);return f},h=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,n){var e,r,i=t.length,u=0,o=-1,a=0,c=0;if(null==n)for(;++o<i;)isNaN(e=d(t[o]))||(c+=(r=e-a)*(e-(a+=r/++u)));else for(;++o<i;)isNaN(e=d(n(t[o],o,t)))||(c+=(r=e-a)*(e-(a+=r/++u)));if(u>1)return c/(u-1)},v=function(t,n){var e=p(t,n);return e?Math.sqrt(e):e},g=function(t,n){var e,r,i,u=t.length,o=-1;if(null==n){for(;++o<u;)if(null!=(e=t[o])&&e>=e)for(r=i=e;++o<u;)null!=(e=t[o])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++o<u;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=i=e;++o<u;)null!=(e=n(t[o],o,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]},y=Array.prototype,b=y.slice,_=y.map,m=function(t){return function(){return t}},x=function(t){return t},w=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)),u=new Array(i);++r<i;)u[r]=t+r*e;return u},M=Math.sqrt(50),N=Math.sqrt(10),A=Math.sqrt(2),k=function(t,n,e){var r,i,u,o,a=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(o=T(t,n,e))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),n=Math.floor(n/o),u=new Array(i=Math.ceil(n-t+1));++a<i;)u[a]=(t+a)*o;else for(t=Math.floor(t*o),n=Math.ceil(n*o),u=new Array(i=Math.ceil(t-n+1));++a<i;)u[a]=(t-a)/o;return r&&u.reverse(),u};function T(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),u=r/Math.pow(10,i);return i>=0?(u>=M?10:u>=N?5:u>=A?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(u>=M?10:u>=N?5:u>=A?2:1)}function S(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/i;return u>=M?i*=10:u>=N?i*=5:u>=A&&(i*=2),n<t?-i:i}var E=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},C=function(){var t=x,n=g,e=E;function r(r){var i,u,o=r.length,a=new Array(o);for(i=0;i<o;++i)a[i]=t(r[i],i,r);var f=n(a),l=f[0],s=f[1],h=e(a,l,s);Array.isArray(h)||(h=S(l,s,h),h=w(Math.ceil(l/h)*h,s,h));for(var d=h.length;h[0]<=l;)h.shift(),--d;for(;h[d-1]>s;)h.pop(),--d;var p,v=new Array(d+1);for(i=0;i<=d;++i)(p=v[i]=[]).x0=i>0?h[i-1]:l,p.x1=i<d?h[i]:s;for(i=0;i<o;++i)l<=(u=a[i])&&u<=s&&v[c(h,u,0,d)].push(r[i]);return v}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:m(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:m([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?m(b.call(t)):m(t),r):e},r},P=function(t,n,e){if(null==e&&(e=d),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,u=Math.floor(i),o=+e(t[u],u,t);return o+(+e(t[u+1],u+1,t)-o)*(i-u)}},z=function(t,n,e){return t=_.call(t,d).sort(r),Math.ceil((e-n)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))},R=function(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))},D=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u<i;)if(null!=(e=t[u])&&e>=e)for(r=e;++u<i;)null!=(e=t[u])&&e>r&&(r=e)}else for(;++u<i;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=e;++u<i;)null!=(e=n(t[u],u,t))&&e>r&&(r=e);return r},O=function(t,n){var e,r=t.length,i=r,u=-1,o=0;if(null==n)for(;++u<r;)isNaN(e=d(t[u]))?--i:o+=e;else for(;++u<r;)isNaN(e=d(n(t[u],u,t)))?--i:o+=e;if(i)return o/i},q=function(t,n){var e,i=t.length,u=-1,o=[];if(null==n)for(;++u<i;)isNaN(e=d(t[u]))||o.push(e);else for(;++u<i;)isNaN(e=d(n(t[u],u,t)))||o.push(e);return P(o.sort(r),.5)},L=function(t){for(var n,e,r,i=t.length,u=-1,o=0;++u<i;)o+=t[u].length;for(e=new Array(o);--i>=0;)for(n=(r=t[i]).length;--n>=0;)e[--o]=r[n];return e},U=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u<i;)if(null!=(e=t[u])&&e>=e)for(r=e;++u<i;)null!=(e=t[u])&&r>e&&(r=e)}else for(;++u<i;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=e;++u<i;)null!=(e=n(t[u],u,t))&&r>e&&(r=e);return r},j=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},B=function(t,n){if(e=t.length){var e,i,u=0,o=0,a=t[o];for(null==n&&(n=r);++u<e;)(n(i=t[u],a)<0||0!==n(a,a))&&(a=i,o=u);return 0===n(a,a)?o:void 0}},F=function(t,n,e){for(var r,i,u=(null==e?t.length:e)-(n=null==n?0:+n);u;)i=Math.random()*u--|0,r=t[u+n],t[u+n]=t[i+n],t[i+n]=r;return t},Y=function(t,n){var e,r=t.length,i=-1,u=0;if(null==n)for(;++i<r;)(e=+t[i])&&(u+=e);else for(;++i<r;)(e=+n(t[i],i,t))&&(u+=e);return u},I=function(t){if(!(i=t.length))return[];for(var n=-1,e=U(t,H),r=new Array(e);++n<e;)for(var i,u=-1,o=r[n]=new Array(i);++u<i;)o[u]=t[u][n];return r};function H(t){return t.length}var V=function(){return I(arguments)},X=Array.prototype.slice,G=function(t){return t},W=1,Z=2,$=3,Q=4,K=1e-6;function J(t){return"translate("+(t+.5)+",0)"}function tt(t){return"translate(0,"+(t+.5)+")"}function nt(t){return function(n){return+t(n)}}function et(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function rt(){return!this.__axis}function it(t,n){var e=[],r=null,i=null,u=6,o=6,a=3,c=t===W||t===Q?-1:1,f=t===Q||t===Z?"x":"y",l=t===W||t===$?J:tt;function s(s){var h=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,d=null==i?n.tickFormat?n.tickFormat.apply(n,e):G:i,p=Math.max(u,0)+a,v=n.range(),g=+v[0]+.5,y=+v[v.length-1]+.5,b=(n.bandwidth?et:nt)(n.copy()),_=s.selection?s.selection():s,m=_.selectAll(".domain").data([null]),x=_.selectAll(".tick").data(h,n).order(),w=x.exit(),M=x.enter().append("g").attr("class","tick"),N=x.select("line"),A=x.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(M),N=N.merge(M.append("line").attr("stroke","currentColor").attr(f+"2",c*u)),A=A.merge(M.append("text").attr("fill","currentColor").attr(f,c*p).attr("dy",t===W?"0em":t===$?"0.71em":"0.32em")),s!==_&&(m=m.transition(s),x=x.transition(s),N=N.transition(s),A=A.transition(s),w=w.transition(s).attr("opacity",K).attr("transform",(function(t){return isFinite(t=b(t))?l(t):this.getAttribute("transform")})),M.attr("opacity",K).attr("transform",(function(t){var n=this.parentNode.__axis;return l(n&&isFinite(n=n(t))?n:b(t))}))),w.remove(),m.attr("d",t===Q||t==Z?o?"M"+c*o+","+g+"H0.5V"+y+"H"+c*o:"M0.5,"+g+"V"+y:o?"M"+g+","+c*o+"V0.5H"+y+"V"+c*o:"M"+g+",0.5H"+y),x.attr("opacity",1).attr("transform",(function(t){return l(b(t))})),N.attr(f+"2",c*u),A.attr(f,c*p).text(d),_.filter(rt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Z?"start":t===Q?"end":"middle"),_.each((function(){this.__axis=b}))}return s.scale=function(t){return arguments.length?(n=t,s):n},s.ticks=function(){return e=X.call(arguments),s},s.tickArguments=function(t){return arguments.length?(e=null==t?[]:X.call(t),s):e.slice()},s.tickValues=function(t){return arguments.length?(r=null==t?null:X.call(t),s):r&&r.slice()},s.tickFormat=function(t){return arguments.length?(i=t,s):i},s.tickSize=function(t){return arguments.length?(u=o=+t,s):u},s.tickSizeInner=function(t){return arguments.length?(u=+t,s):u},s.tickSizeOuter=function(t){return arguments.length?(o=+t,s):o},s.tickPadding=function(t){return arguments.length?(a=+t,s):a},s}function ut(t){return it(W,t)}function ot(t){return it(Z,t)}function at(t){return it($,t)}function ct(t){return it(Q,t)}var ft={value:function(){}};function lt(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new st(r)}function st(t){this._=t}function ht(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 dt(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function pt(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=ft,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}st.prototype=lt.prototype={constructor:st,on:function(t,n){var e,r=this._,i=ht(t+"",r),u=-1,o=i.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++u<o;)if(e=(t=i[u]).type)r[e]=pt(r[e],t.name,n);else if(null==n)for(e in r)r[e]=pt(r[e],t.name,null);return this}for(;++u<o;)if((e=(t=i[u]).type)&&(e=dt(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new st(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),u=0;u<e;++u)i[u]=arguments[u+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=0,e=(r=this._[t]).length;u<e;++u)r[u].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,u=r.length;i<u;++i)r[i].value.apply(n,e)}};var vt=lt;function gt(){}var yt=function(t){return null==t?gt:function(){return this.querySelector(t)}};function bt(){return[]}var _t=function(t){return null==t?bt:function(){return this.querySelectorAll(t)}},mt=function(t){return function(){return this.matches(t)}},xt=function(t){return new Array(t.length)};function wt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}wt.prototype={constructor:wt,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 Mt="$";function Nt(t,n,e,r,i,u){for(var o,a=0,c=n.length,f=u.length;a<f;++a)(o=n[a])?(o.__data__=u[a],r[a]=o):e[a]=new wt(t,u[a]);for(;a<c;++a)(o=n[a])&&(i[a]=o)}function At(t,n,e,r,i,u,o){var a,c,f,l={},s=n.length,h=u.length,d=new Array(s);for(a=0;a<s;++a)(c=n[a])&&(d[a]=f=Mt+o.call(c,c.__data__,a,n),f in l?i[a]=c:l[f]=c);for(a=0;a<h;++a)(c=l[f=Mt+o.call(t,u[a],a,u)])?(r[a]=c,c.__data__=u[a],l[f]=null):e[a]=new wt(t,u[a]);for(a=0;a<s;++a)(c=n[a])&&l[d[a]]===c&&(i[a]=c)}function kt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var Tt="http://www.w3.org/1999/xhtml",St={svg:"http://www.w3.org/2000/svg",xhtml:Tt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Et=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),St.hasOwnProperty(n)?{space:St[n],local:t}:t};function Ct(t){return function(){this.removeAttribute(t)}}function Pt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zt(t,n){return function(){this.setAttribute(t,n)}}function Rt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Dt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Ot(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)}}var qt=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Lt(t){return function(){this.style.removeProperty(t)}}function Ut(t,n,e){return function(){this.style.setProperty(t,n,e)}}function jt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Bt(t,n){return t.style.getPropertyValue(n)||qt(t).getComputedStyle(t,null).getPropertyValue(n)}function Ft(t){return function(){delete this[t]}}function Yt(t,n){return function(){this[t]=n}}function It(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Ht(t){return t.trim().split(/^|\s+/)}function Vt(t){return t.classList||new Xt(t)}function Xt(t){this._node=t,this._names=Ht(t.getAttribute("class")||"")}function Gt(t,n){for(var e=Vt(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Wt(t,n){for(var e=Vt(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Zt(t){return function(){Gt(this,t)}}function $t(t){return function(){Wt(this,t)}}function Qt(t,n){return function(){(n.apply(this,arguments)?Gt:Wt)(this,t)}}Xt.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Kt(){this.textContent=""}function Jt(t){return function(){this.textContent=t}}function tn(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function nn(){this.innerHTML=""}function en(t){return function(){this.innerHTML=t}}function rn(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function un(){this.nextSibling&&this.parentNode.appendChild(this)}function on(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function an(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Tt&&n.documentElement.namespaceURI===Tt?n.createElement(t):n.createElementNS(e,t)}}function cn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var fn=function(t){var n=Et(t);return(n.local?cn:an)(n)};function ln(){return null}function sn(){var t=this.parentNode;t&&t.removeChild(this)}function hn(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function dn(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var pn={},vn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(pn={mouseenter:"mouseover",mouseleave:"mouseout"}));function gn(t,n,e){return t=yn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function yn(t,n,e){return function(r){var i=vn;vn=r;try{t.call(this,this.__data__,n,e)}finally{vn=i}}}function bn(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 _n(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r<u;++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 mn(t,n,e){var r=pn.hasOwnProperty(t.type)?gn:yn;return function(i,u,o){var a,c=this.__on,f=r(n,u,o);if(c)for(var l=0,s=c.length;l<s;++l)if((a=c[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=f,a.capture=e),void(a.value=n);this.addEventListener(t.type,f,e),a={type:t.type,name:t.name,value:n,listener:f,capture:e},c?c.push(a):this.__on=[a]}}function xn(t,n,e,r){var i=vn;t.sourceEvent=vn,vn=t;try{return n.apply(e,r)}finally{vn=i}}function wn(t,n,e){var r=qt(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 Mn(t,n){return function(){return wn(this,t,n)}}function Nn(t,n){return function(){return wn(this,t,n.apply(this,arguments))}}var An=[null];function kn(t,n){this._groups=t,this._parents=n}function Tn(){return new kn([[document.documentElement]],An)}kn.prototype=Tn.prototype={constructor:kn,select:function(t){"function"!=typeof t&&(t=yt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,o,a=n[i],c=a.length,f=r[i]=new Array(c),l=0;l<c;++l)(u=a[l])&&(o=t.call(u,u.__data__,l,a))&&("__data__"in u&&(o.__data__=u.__data__),f[l]=o);return new kn(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=_t(t));for(var n=this._groups,e=n.length,r=[],i=[],u=0;u<e;++u)for(var o,a=n[u],c=a.length,f=0;f<c;++f)(o=a[f])&&(r.push(t.call(o,o.__data__,f,a)),i.push(o));return new kn(r,i)},filter:function(t){"function"!=typeof t&&(t=mt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,o=n[i],a=o.length,c=r[i]=[],f=0;f<a;++f)(u=o[f])&&t.call(u,u.__data__,f,o)&&c.push(u);return new kn(r,this._parents)},data:function(t,n){if(!t)return p=new Array(this.size()),l=-1,this.each((function(t){p[++l]=t})),p;var e,r=n?At:Nt,i=this._parents,u=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var o=u.length,a=new Array(o),c=new Array(o),f=new Array(o),l=0;l<o;++l){var s=i[l],h=u[l],d=h.length,p=t.call(s,s&&s.__data__,l,i),v=p.length,g=c[l]=new Array(v),y=a[l]=new Array(v);r(s,h,g,y,f[l]=new Array(d),p,n);for(var b,_,m=0,x=0;m<v;++m)if(b=g[m]){for(m>=x&&(x=m+1);!(_=y[x])&&++x<v;);b._next=_||null}}return(a=new kn(a,i))._enter=c,a._exit=f,a},enter:function(){return new kn(this._enter||this._groups.map(xt),this._parents)},exit:function(){return new kn(this._exit||this._groups.map(xt),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,u=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?u.remove():e(u),r&&i?r.merge(i).order():i},merge:function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,u=Math.min(r,i),o=new Array(r),a=0;a<u;++a)for(var c,f=n[a],l=e[a],s=f.length,h=o[a]=new Array(s),d=0;d<s;++d)(c=f[d]||l[d])&&(h[d]=c);for(;a<r;++a)o[a]=n[a];return new kn(o,this._parents)},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],u=i.length-1,o=i[u];--u>=0;)(r=i[u])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=kt);for(var e=this._groups,r=e.length,i=new Array(r),u=0;u<r;++u){for(var o,a=e[u],c=a.length,f=i[u]=new Array(c),l=0;l<c;++l)(o=a[l])&&(f[l]=o);f.sort(n)}return new kn(i,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,u=r.length;i<u;++i){var o=r[i];if(o)return o}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,u=n[e],o=0,a=u.length;o<a;++o)(i=u[o])&&t.call(i,i.__data__,o,u);return this},attr:function(t,n){var e=Et(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?Pt:Ct:"function"==typeof n?e.local?Ot:Dt:e.local?Rt:zt)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?Lt:"function"==typeof n?jt:Ut)(t,n,null==e?"":e)):Bt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Ft:"function"==typeof n?It:Yt)(t,n)):this.node()[t]},classed:function(t,n){var e=Ht(t+"");if(arguments.length<2){for(var r=Vt(this.node()),i=-1,u=e.length;++i<u;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?Qt:n?Zt:$t)(e,n))},text:function(t){return arguments.length?this.each(null==t?Kt:("function"==typeof t?tn:Jt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?nn:("function"==typeof t?rn:en)(t)):this.node().innerHTML},raise:function(){return this.each(un)},lower:function(){return this.each(on)},append:function(t){var n="function"==typeof t?t:fn(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:fn(t),r=null==n?ln:"function"==typeof n?n:yt(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(sn)},clone:function(t){return this.select(t?dn:hn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,u=bn(t+""),o=u.length;if(!(arguments.length<2)){for(a=n?mn:_n,null==e&&(e=!1),r=0;r<o;++r)this.each(a(u[r],n,e));return this}var a=this.node().__on;if(a)for(var c,f=0,l=a.length;f<l;++f)for(r=0,c=a[f];r<o;++r)if((i=u[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?Nn:Mn)(t,n))}};var Sn=Tn,En=function(t){return"string"==typeof t?new kn([[document.querySelector(t)]],[document.documentElement]):new kn([[t]],An)};function Cn(){vn.stopImmediatePropagation()}var Pn=function(){vn.preventDefault(),vn.stopImmediatePropagation()},zn=function(t){var n=t.document.documentElement,e=En(t).on("dragstart.drag",Pn,!0);"onselectstart"in n?e.on("selectstart.drag",Pn,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")};function Rn(t,n){var e=t.document.documentElement,r=En(t).on("dragstart.drag",null);n&&(r.on("click.drag",Pn,!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)}var Dn=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function On(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function qn(){}var Ln="\\s*([+-]?\\d+)\\s*",Un="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",jn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bn=/^#([0-9a-f]{3,8})$/,Fn=new RegExp("^rgb\\("+[Ln,Ln,Ln]+"\\)$"),Yn=new RegExp("^rgb\\("+[jn,jn,jn]+"\\)$"),In=new RegExp("^rgba\\("+[Ln,Ln,Ln,Un]+"\\)$"),Hn=new RegExp("^rgba\\("+[jn,jn,jn,Un]+"\\)$"),Vn=new RegExp("^hsl\\("+[Un,jn,jn]+"\\)$"),Xn=new RegExp("^hsla\\("+[Un,jn,jn,Un]+"\\)$"),Gn={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};function Wn(){return this.rgb().formatHex()}function Zn(){return this.rgb().formatRgb()}function $n(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=Bn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?Qn(n):3===e?new ne(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?new ne(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?new ne(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Fn.exec(t))?new ne(n[1],n[2],n[3],1):(n=Yn.exec(t))?new ne(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=In.exec(t))?Kn(n[1],n[2],n[3],n[4]):(n=Hn.exec(t))?Kn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Vn.exec(t))?ue(n[1],n[2]/100,n[3]/100,1):(n=Xn.exec(t))?ue(n[1],n[2]/100,n[3]/100,n[4]):Gn.hasOwnProperty(t)?Qn(Gn[t]):"transparent"===t?new ne(NaN,NaN,NaN,0):null}function Qn(t){return new ne(t>>16&255,t>>8&255,255&t,1)}function Kn(t,n,e,r){return r<=0&&(t=n=e=NaN),new ne(t,n,e,r)}function Jn(t){return t instanceof qn||(t=$n(t)),t?new ne((t=t.rgb()).r,t.g,t.b,t.opacity):new ne}function te(t,n,e,r){return 1===arguments.length?Jn(t):new ne(t,n,e,null==r?1:r)}function ne(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ee(){return"#"+ie(this.r)+ie(this.g)+ie(this.b)}function re(){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+")")}function ie(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ue(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new ce(t,n,e,r)}function oe(t){if(t instanceof ce)return new ce(t.h,t.s,t.l,t.opacity);if(t instanceof qn||(t=$n(t)),!t)return new ce;if(t instanceof ce)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),u=Math.max(n,e,r),o=NaN,a=u-i,c=(u+i)/2;return a?(o=n===u?(e-r)/a+6*(e<r):e===u?(r-n)/a+2:(n-e)/a+4,a/=c<.5?u+i:2-u-i,o*=60):a=c>0&&c<1?0:o,new ce(o,a,c,t.opacity)}function ae(t,n,e,r){return 1===arguments.length?oe(t):new ce(t,n,e,null==r?1:r)}function ce(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function fe(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 le(t,n,e,r,i){var u=t*t,o=u*t;return((1-3*t+3*u-o)*n+(4-6*u+3*o)*e+(1+3*t+3*u-3*o)*r+o*i)/6}Dn(qn,$n,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Wn,formatHex:Wn,formatHsl:function(){return oe(this).formatHsl()},formatRgb:Zn,toString:Zn}),Dn(ne,te,On(qn,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ne(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ee,formatHex:ee,formatRgb:re,toString:re})),Dn(ce,ae,On(qn,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ce(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ce(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 ne(fe(t>=240?t-240:t+120,i,r),fe(t,i,r),fe(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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var se=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],u=t[r+1],o=r>0?t[r-1]:2*i-u,a=r<n-1?t[r+2]:2*u-i;return le((e-r/n)*n,o,i,u,a)}},he=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],u=t[r%n],o=t[(r+1)%n],a=t[(r+2)%n];return le((e-r/n)*n,i,u,o,a)}},de=function(t){return function(){return t}};function pe(t,n){return function(e){return t+e*n}}function ve(t,n){var e=n-t;return e?pe(t,e>180||e<-180?e-360*Math.round(e/360):e):de(isNaN(t)?n:t)}function ge(t){return 1==(t=+t)?ye:function(n,e){return e-n?function(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)}}(n,e,t):de(isNaN(n)?e:n)}}function ye(t,n){var e=n-t;return e?pe(t,e):de(isNaN(t)?n:t)}var be=function t(n){var e=ge(n);function r(t,n){var r=e((t=te(t)).r,(n=te(n)).r),i=e(t.g,n.g),u=e(t.b,n.b),o=ye(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=u(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function _e(t){return function(n){var e,r,i=n.length,u=new Array(i),o=new Array(i),a=new Array(i);for(e=0;e<i;++e)r=te(n[e]),u[e]=r.r||0,o[e]=r.g||0,a[e]=r.b||0;return u=t(u),o=t(o),a=t(a),r.opacity=1,function(t){return r.r=u(t),r.g=o(t),r.b=a(t),r+""}}}var me=_e(se),xe=_e(he),we=function(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(u){for(e=0;e<r;++e)i[e]=t[e]*(1-u)+n[e]*u;return i}};function Me(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var Ne=function(t,n){return(Me(n)?we:Ae)(t,n)};function Ae(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,u=new Array(i),o=new Array(r);for(e=0;e<i;++e)u[e]=De(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<i;++e)o[e]=u[e](t);return o}}var ke=function(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}},Te=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},Se=function(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=De(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},Ee=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ce=new RegExp(Ee.source,"g");var Pe,ze,Re=function(t,n){var e,r,i,u=Ee.lastIndex=Ce.lastIndex=0,o=-1,a=[],c=[];for(t+="",n+="";(e=Ee.exec(t))&&(r=Ce.exec(n));)(i=r.index)>u&&(i=n.slice(u,i),a[o]?a[o]+=i:a[++o]=i),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,c.push({i:o,x:Te(e,r)})),u=Ce.lastIndex;return u<n.length&&(i=n.slice(u),a[o]?a[o]+=i:a[++o]=i),a.length<2?c[0]?function(t){return function(n){return t(n)+""}}(c[0].x):function(t){return function(){return t}}(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("")})},De=function(t,n){var e,r=typeof n;return null==n||"boolean"===r?de(n):("number"===r?Te:"string"===r?(e=$n(n))?(n=e,be):Re:n instanceof $n?be:n instanceof Date?ke:Me(n)?we:Array.isArray(n)?Ae:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Se:Te)(t,n)},Oe=function(){for(var t,n=vn;t=n.sourceEvent;)n=t;return n},qe=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())).x,r.y]}var i=t.getBoundingClientRect();return[n.clientX-i.left-t.clientLeft,n.clientY-i.top-t.clientTop]},Le=function(t,n,e){arguments.length<3&&(e=n,n=Oe().changedTouches);for(var r,i=0,u=n?n.length:0;i<u;++i)if((r=n[i]).identifier===e)return qe(t,r);return null},Ue=function(t){var n=Oe();return n.changedTouches&&(n=n.changedTouches[0]),qe(t,n)},je=0,Be=0,Fe=0,Ye=1e3,Ie=0,He=0,Ve=0,Xe="object"==typeof performance&&performance.now?performance:Date,Ge="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function We(){return He||(Ge(Ze),He=Xe.now()+Ve)}function Ze(){He=0}function $e(){this._call=this._time=this._next=null}function Qe(t,n,e){var r=new $e;return r.restart(t,n,e),r}function Ke(){We(),++je;for(var t,n=Pe;n;)(t=He-n._time)>=0&&n._call.call(null,t),n=n._next;--je}function Je(){He=(Ie=Xe.now())+Ve,je=Be=0;try{Ke()}finally{je=0,function(){var t,n,e=Pe,r=1/0;for(;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:Pe=n);ze=t,nr(r)}(),He=0}}function tr(){var t=Xe.now(),n=t-Ie;n>Ye&&(Ve-=n,Ie=t)}function nr(t){je||(Be&&(Be=clearTimeout(Be)),t-He>24?(t<1/0&&(Be=setTimeout(Je,t-Xe.now()-Ve)),Fe&&(Fe=clearInterval(Fe))):(Fe||(Ie=Xe.now(),Fe=setInterval(tr,Ye)),je=1,Ge(Je)))}$e.prototype=Qe.prototype={constructor:$e,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?We():+e)+(null==n?0:+n),this._next||ze===this||(ze?ze._next=this:Pe=this,ze=this),this._call=t,this._time=e,nr()},stop:function(){this._call&&(this._call=null,this._time=1/0,nr())}};var er=function(t,n,e){var r=new $e;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},rr=vt("start","end","cancel","interrupt"),ir=[],ur=0,or=1,ar=2,cr=3,fr=4,lr=5,sr=6,hr=function(t,n,e,r,i,u){var o=t.__transition;if(o){if(e in o)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function u(c){var f,l,s,h;if(e.state!==or)return a();for(f in i)if((h=i[f]).name===e.name){if(h.state===cr)return er(u);h.state===fr?(h.state=sr,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[f]):+f<n&&(h.state=sr,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[f])}if(er((function(){e.state===cr&&(e.state=fr,e.timer.restart(o,e.delay,e.time),o(c))})),e.state=ar,e.on.call("start",t,t.__data__,e.index,e.group),e.state===ar){for(e.state=cr,r=new Array(s=e.tween.length),f=0,l=-1;f<s;++f)(h=e.tween[f].value.call(t,t.__data__,e.index,e.group))&&(r[++l]=h);r.length=l+1}}function o(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=lr,1),u=-1,o=r.length;++u<o;)r[u].call(t,i);e.state===lr&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=sr,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=Qe((function(t){e.state=or,e.timer.restart(u,e.delay,e.time),e.delay<=t&&u(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:rr,tween:ir,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:ur})};function dr(t,n){var e=vr(t,n);if(e.state>ur)throw new Error("too late; already scheduled");return e}function pr(t,n){var e=vr(t,n);if(e.state>cr)throw new Error("too late; already running");return e}function vr(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var gr,yr,br,_r,mr=function(t,n){var e,r,i,u=t.__transition,o=!0;if(u){for(i in n=null==n?null:n+"",u)(e=u[i]).name===n?(r=e.state>ar&&e.state<lr,e.state=sr,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete u[i]):o=!1;o&&delete t.__transition}},xr=180/Math.PI,wr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Mr=function(t,n,e,r,i,u){var o,a,c;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(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,o=-o),{translateX:i,translateY:u,rotate:Math.atan2(n,t)*xr,skewX:Math.atan(c)*xr,scaleX:o,scaleY:a}};function Nr(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(u,o){var a=[],c=[];return u=t(u),o=t(o),function(t,r,i,u,o,a){if(t!==i||r!==u){var c=o.push("translate(",null,n,null,e);a.push({i:c-4,x:Te(t,i)},{i:c-2,x:Te(r,u)})}else(i||u)&&o.push("translate("+i+n+u+e)}(u.translateX,u.translateY,o.translateX,o.translateY,a,c),function(t,n,e,u){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),u.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Te(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(u.rotate,o.rotate,a,c),function(t,n,e,u){t!==n?u.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Te(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(u.skewX,o.skewX,a,c),function(t,n,e,r,u,o){if(t!==e||n!==r){var a=u.push(i(u)+"scale(",null,",",null,")");o.push({i:a-4,x:Te(t,e)},{i:a-2,x:Te(n,r)})}else 1===e&&1===r||u.push(i(u)+"scale("+e+","+r+")")}(u.scaleX,u.scaleY,o.scaleX,o.scaleY,a,c),u=o=null,function(t){for(var n,e=-1,r=c.length;++e<r;)a[(n=c[e]).i]=n.x(t);return a.join("")}}}var Ar=Nr((function(t){return"none"===t?wr:(gr||(gr=document.createElement("DIV"),yr=document.documentElement,br=document.defaultView),gr.style.transform=t,t=br.getComputedStyle(yr.appendChild(gr),null).getPropertyValue("transform"),yr.removeChild(gr),t=t.slice(7,-1).split(","),Mr(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),kr=Nr((function(t){return null==t?wr:(_r||(_r=document.createElementNS("http://www.w3.org/2000/svg","g")),_r.setAttribute("transform",t),(t=_r.transform.baseVal.consolidate())?(t=t.matrix,Mr(t.a,t.b,t.c,t.d,t.e,t.f)):wr)}),", ",")",")");function Tr(t,n){var e,r;return function(){var i=pr(this,t),u=i.tween;if(u!==e)for(var o=0,a=(r=e=u).length;o<a;++o)if(r[o].name===n){(r=r.slice()).splice(o,1);break}i.tween=r}}function Sr(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var u=pr(this,t),o=u.tween;if(o!==r){i=(r=o).slice();for(var a={name:n,value:e},c=0,f=i.length;c<f;++c)if(i[c].name===n){i[c]=a;break}c===f&&i.push(a)}u.tween=i}}function Er(t,n,e){var r=t._id;return t.each((function(){var t=pr(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return vr(t,r).value[n]}}var Cr=function(t,n){var e;return("number"==typeof n?Te:n instanceof $n?be:(e=$n(n))?(n=e,be):Re)(t,n)};function Pr(t){return function(){this.removeAttribute(t)}}function zr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Rr(t,n,e){var r,i,u=e+"";return function(){var o=this.getAttribute(t);return o===u?null:o===r?i:i=n(r=o,e)}}function Dr(t,n,e){var r,i,u=e+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===u?null:o===r?i:i=n(r=o,e)}}function Or(t,n,e){var r,i,u;return function(){var o,a,c=e(this);if(null!=c)return(o=this.getAttribute(t))===(a=c+"")?null:o===r&&a===i?u:(i=a,u=n(r=o,c));this.removeAttribute(t)}}function qr(t,n,e){var r,i,u;return function(){var o,a,c=e(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:o===r&&a===i?u:(i=a,u=n(r=o,c));this.removeAttributeNS(t.space,t.local)}}function Lr(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Ur(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i}function jr(t,n){return function(){dr(this,t).delay=+n.apply(this,arguments)}}function Br(t,n){return n=+n,function(){dr(this,t).delay=n}}function Fr(t,n){return function(){pr(this,t).duration=+n.apply(this,arguments)}}function Yr(t,n){return n=+n,function(){pr(this,t).duration=n}}function Ir(t,n){if("function"!=typeof n)throw new Error;return function(){pr(this,t).ease=n}}function Hr(t,n,e){var r,i,u=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?dr:pr;return function(){var o=u(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(n,e),o.on=i}}var Vr=Sn.prototype.constructor;function Xr(t){return function(){this.style.removeProperty(t)}}function Gr(t,n,e){var r,i;function u(){var u=n.apply(this,arguments);return u!==i&&(r=(i=u)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,u,e)),r}return u._value=n,u}function Wr(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}var Zr=0;function $r(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function Qr(t){return Sn().transition(t)}function Kr(){return++Zr}var Jr=Sn.prototype;function ti(t){return t*t*t}function ni(t){return--t*t*t+1}function ei(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}$r.prototype=Qr.prototype={constructor:$r,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=yt(t));for(var r=this._groups,i=r.length,u=new Array(i),o=0;o<i;++o)for(var a,c,f=r[o],l=f.length,s=u[o]=new Array(l),h=0;h<l;++h)(a=f[h])&&(c=t.call(a,a.__data__,h,f))&&("__data__"in a&&(c.__data__=a.__data__),s[h]=c,hr(s[h],n,e,h,s,vr(a,e)));return new $r(u,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=_t(t));for(var r=this._groups,i=r.length,u=[],o=[],a=0;a<i;++a)for(var c,f=r[a],l=f.length,s=0;s<l;++s)if(c=f[s]){for(var h,d=t.call(c,c.__data__,s,f),p=vr(c,e),v=0,g=d.length;v<g;++v)(h=d[v])&&hr(h,n,e,v,d,p);u.push(d),o.push(c)}return new $r(u,o,n,e)},filter:function(t){"function"!=typeof t&&(t=mt(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,o=n[i],a=o.length,c=r[i]=[],f=0;f<a;++f)(u=o[f])&&t.call(u,u.__data__,f,o)&&c.push(u);return new $r(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,u=Math.min(r,i),o=new Array(r),a=0;a<u;++a)for(var c,f=n[a],l=e[a],s=f.length,h=o[a]=new Array(s),d=0;d<s;++d)(c=f[d]||l[d])&&(h[d]=c);for(;a<r;++a)o[a]=n[a];return new $r(o,this._parents,this._name,this._id)},selection:function(){return new Vr(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=Kr(),r=this._groups,i=r.length,u=0;u<i;++u)for(var o,a=r[u],c=a.length,f=0;f<c;++f)if(o=a[f]){var l=vr(o,n);hr(o,t,e,f,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new $r(r,this._parents,t,e)},call:Jr.call,nodes:Jr.nodes,node:Jr.node,size:Jr.size,empty:Jr.empty,each:Jr.each,on:function(t,n){var e=this._id;return arguments.length<2?vr(this.node(),e).on.on(t):this.each(Hr(e,t,n))},attr:function(t,n){var e=Et(t),r="transform"===e?kr:Cr;return this.attrTween(t,"function"==typeof n?(e.local?qr:Or)(e,r,Er(this,"attr."+t,n)):null==n?(e.local?zr:Pr)(e):(e.local?Dr:Rr)(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=Et(t);return this.tween(e,(r.local?Lr:Ur)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Ar:Cr;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var u=Bt(this,t),o=(this.style.removeProperty(t),Bt(this,t));return u===o?null:u===e&&o===r?i:i=n(e=u,r=o)}}(t,r)).on("end.style."+t,Xr(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,u;return function(){var o=Bt(this,t),a=e(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=Bt(this,t)),o===c?null:o===r&&c===i?u:(i=c,u=n(r=o,a))}}(t,r,Er(this,"style."+t,n))).each(function(t,n){var e,r,i,u,o="style."+n,a="end."+o;return function(){var c=pr(this,t),f=c.on,l=null==c.value[o]?u||(u=Xr(n)):void 0;f===e&&i===l||(r=(e=f).copy()).on(a,i=l),c.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,u=e+"";return function(){var o=Bt(this,t);return o===u?null:o===r?i:i=n(r=o,e)}}(t,r,n),e).on("end.style."+t,null)},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,Gr(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Er(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,Wr(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=vr(this.node(),e).tween,u=0,o=i.length;u<o;++u)if((r=i[u]).name===t)return r.value;return null}return this.each((null==n?Tr:Sr)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?jr:Br)(n,t)):vr(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Fr:Yr)(n,t)):vr(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(Ir(n,t)):vr(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(u,o){var a={value:o},c={value:function(){0==--i&&u()}};e.each((function(){var e=pr(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(c)),e.on=n}))}))}};var ri={time:null,delay:0,duration:250,ease:ei};function ii(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return ri.time=We(),ri;return e}Sn.prototype.interrupt=function(t){return this.each((function(){mr(this,t)}))},Sn.prototype.transition=function(t){var n,e;t instanceof $r?(n=t._id,t=t._name):(n=Kr(),(e=ri).time=We(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,u=0;u<i;++u)for(var o,a=r[u],c=a.length,f=0;f<c;++f)(o=a[f])&&hr(o,t,n,f,a,e||ii(o,n));return new $r(r,this._parents,t,n)};var ui=[null],oi=function(t,n){var e,r,i=t.__transition;if(i)for(r in n=null==n?null:n+"",i)if((e=i[r]).state>or&&e.name===n)return new $r([[t]],ui,n,+r);return null},ai=function(t){return function(){return t}},ci=function(t,n,e){this.target=t,this.type=n,this.selection=e};function fi(){vn.stopImmediatePropagation()}var li=function(){vn.preventDefault(),vn.stopImmediatePropagation()},si={name:"drag"},hi={name:"space"},di={name:"handle"},pi={name:"center"};function vi(t){return[+t[0],+t[1]]}function gi(t){return[vi(t[0]),vi(t[1])]}var yi={name:"x",handles:["w","e"].map(Ai),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},bi={name:"y",handles:["n","s"].map(Ai),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},_i={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ai),input:function(t){return null==t?null:gi(t)},output:function(t){return t}},mi={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"},xi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},wi={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Mi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Ni={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ai(t){return{type:t}}function ki(){return!vn.ctrlKey&&!vn.button}function Ti(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Si(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ei(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ci(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function Pi(){return Di(yi)}function zi(){return Di(bi)}var Ri=function(){return Di(_i)};function Di(t){var n,e=Ti,r=ki,i=Si,u=!0,o=vt("start","brush","end"),a=6;function c(n){var e=n.property("__brush",v).selectAll(".overlay").data([Ai("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",mi.overlay).merge(e).each((function(){var t=Ei(this).extent;En(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])})),n.selectAll(".selection").data([Ai("selection")]).enter().append("rect").attr("class","selection").attr("cursor",mi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return mi[t.type]})),n.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){var t=En(this),n=Ei(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]-a/2:n[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-a/2:n[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,n,e){return!e&&t.__brush.emitter||new s(t,n)}function s(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function h(){if((!n||vn.touches)&&r.apply(this,arguments)){var e,i,o,a,c,s,h,d,p,v,g,y,b=this,_=vn.target.__data__.type,m="selection"===(u&&vn.metaKey?_="overlay":_)?si:u&&vn.altKey?pi:di,x=t===bi?null:Mi[_],w=t===yi?null:Ni[_],M=Ei(b),N=M.extent,A=M.selection,k=N[0][0],T=N[0][1],S=N[1][0],E=N[1][1],C=0,P=0,z=x&&w&&u&&vn.shiftKey,R=vn.touches?(y=vn.changedTouches[0].identifier,function(t){return Le(t,vn.touches,y)}):Ue,D=R(b),O=D,q=l(b,arguments,!0).beforestart();"overlay"===_?(A&&(p=!0),M.selection=A=[[e=t===bi?k:D[0],o=t===yi?T:D[1]],[c=t===bi?S:e,h=t===yi?E:o]]):(e=A[0][0],o=A[0][1],c=A[1][0],h=A[1][1]),i=e,a=o,s=c,d=h;var L=En(b).attr("pointer-events","none"),U=L.selectAll(".overlay").attr("cursor",mi[_]);if(vn.touches)q.moved=B,q.ended=Y;else{var j=En(vn.view).on("mousemove.brush",B,!0).on("mouseup.brush",Y,!0);u&&j.on("keydown.brush",(function(){switch(vn.keyCode){case 16:z=x&&w;break;case 18:m===di&&(x&&(c=s-C*x,e=i+C*x),w&&(h=d-P*w,o=a+P*w),m=pi,F());break;case 32:m!==di&&m!==pi||(x<0?c=s-C:x>0&&(e=i-C),w<0?h=d-P:w>0&&(o=a-P),m=hi,U.attr("cursor",mi.selection),F());break;default:return}li()}),!0).on("keyup.brush",(function(){switch(vn.keyCode){case 16:z&&(v=g=z=!1,F());break;case 18:m===pi&&(x<0?c=s:x>0&&(e=i),w<0?h=d:w>0&&(o=a),m=di,F());break;case 32:m===hi&&(vn.altKey?(x&&(c=s-C*x,e=i+C*x),w&&(h=d-P*w,o=a+P*w),m=pi):(x<0?c=s:x>0&&(e=i),w<0?h=d:w>0&&(o=a),m=di),U.attr("cursor",mi[_]),F());break;default:return}li()}),!0),zn(vn.view)}fi(),mr(b),f.call(b),q.start()}function B(){var t=R(b);!z||v||g||(Math.abs(t[0]-O[0])>Math.abs(t[1]-O[1])?g=!0:v=!0),O=t,p=!0,li(),F()}function F(){var t;switch(C=O[0]-D[0],P=O[1]-D[1],m){case hi:case si:x&&(C=Math.max(k-e,Math.min(S-c,C)),i=e+C,s=c+C),w&&(P=Math.max(T-o,Math.min(E-h,P)),a=o+P,d=h+P);break;case di:x<0?(C=Math.max(k-e,Math.min(S-e,C)),i=e+C,s=c):x>0&&(C=Math.max(k-c,Math.min(S-c,C)),i=e,s=c+C),w<0?(P=Math.max(T-o,Math.min(E-o,P)),a=o+P,d=h):w>0&&(P=Math.max(T-h,Math.min(E-h,P)),a=o,d=h+P);break;case pi:x&&(i=Math.max(k,Math.min(S,e-C*x)),s=Math.max(k,Math.min(S,c+C*x))),w&&(a=Math.max(T,Math.min(E,o-P*w)),d=Math.max(T,Math.min(E,h+P*w)))}s<i&&(x*=-1,t=e,e=c,c=t,t=i,i=s,s=t,_ in xi&&U.attr("cursor",mi[_=xi[_]])),d<a&&(w*=-1,t=o,o=h,h=t,t=a,a=d,d=t,_ in wi&&U.attr("cursor",mi[_=wi[_]])),M.selection&&(A=M.selection),v&&(i=A[0][0],s=A[1][0]),g&&(a=A[0][1],d=A[1][1]),A[0][0]===i&&A[0][1]===a&&A[1][0]===s&&A[1][1]===d||(M.selection=[[i,a],[s,d]],f.call(b),q.brush())}function Y(){if(fi(),vn.touches){if(vn.touches.length)return;n&&clearTimeout(n),n=setTimeout((function(){n=null}),500)}else Rn(vn.view,p),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);L.attr("pointer-events","all"),U.attr("cursor",mi.overlay),M.selection&&(A=M.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(A)&&(M.selection=null,f.call(b)),q.end()}}function d(){l(this,arguments).moved()}function p(){l(this,arguments).ended()}function v(){var n=this.__brush||{selection:null};return n.extent=gi(e.apply(this,arguments)),n.dim=t,n}return c.move=function(n,e){n.selection?n.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var n=this,r=n.__brush,i=l(n,arguments),u=r.selection,o=t.input("function"==typeof e?e.apply(this,arguments):e,r.extent),a=De(u,o);function c(t){r.selection=1===t&&null===o?null:a(t),f.call(n),i.brush()}return null!==u&&null!==o?c:c(1)})):n.each((function(){var n=this,r=arguments,i=n.__brush,u=t.input("function"==typeof e?e.apply(n,r):e,i.extent),o=l(n,r).beforestart();mr(n),i.selection=null===u?null:u,f.call(n),o.start().brush().end()}))},c.clear=function(t){c.move(t,null)},s.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.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){xn(new ci(c,n,t.output(this.state.selection)),o.apply,o,[n,this.that,this.args])}},c.extent=function(t){return arguments.length?(e="function"==typeof t?t:ai(gi(t)),c):e},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:ai(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:ai(!!t),c):i},c.handleSize=function(t){return arguments.length?(a=+t,c):a},c.keyModifiers=function(t){return arguments.length?(u=!!t,c):u},c.on=function(){var t=o.on.apply(o,arguments);return t===o?c:t},c}var Oi=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN};var qi,Li;1===(qi=Oi).length&&(Li=qi,qi=function(t,n){return Oi(Li(t),n)});var Ui=Array.prototype,ji=(Ui.slice,Ui.map,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)),u=new Array(i);++r<i;)u[r]=t+r*e;return u});Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Bi=Math.cos,Fi=Math.sin,Yi=Math.PI,Ii=Yi/2,Hi=2*Yi,Vi=Math.max;function Xi(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}var Gi=function(){var t=0,n=null,e=null,r=null;function i(i){var u,o,a,c,f,l,s=i.length,h=[],d=ji(s),p=[],v=[],g=v.groups=new Array(s),y=new Array(s*s);for(u=0,f=-1;++f<s;){for(o=0,l=-1;++l<s;)o+=i[f][l];h.push(o),p.push(ji(s)),u+=o}for(n&&d.sort((function(t,e){return n(h[t],h[e])})),e&&p.forEach((function(t,n){t.sort((function(t,r){return e(i[n][t],i[n][r])}))})),c=(u=Vi(0,Hi-t*s)/u)?t:Hi/s,o=0,f=-1;++f<s;){for(a=o,l=-1;++l<s;){var b=d[f],_=p[b][l],m=i[b][_],x=o,w=o+=m*u;y[_*s+b]={index:b,subindex:_,startAngle:x,endAngle:w,value:m}}g[b]={index:b,startAngle:a,endAngle:o,value:h[b]},o+=c}for(f=-1;++f<s;)for(l=f-1;++l<s;){var M=y[l*s+f],N=y[f*s+l];(M.value||N.value)&&v.push(M.value<N.value?{source:N,target:M}:{source:M,target:N})}return r?v.sort(r):v}return i.padAngle=function(n){return arguments.length?(t=Vi(0,n),i):t},i.sortGroups=function(t){return arguments.length?(n=t,i):n},i.sortSubgroups=function(t){return arguments.length?(e=t,i):e},i.sortChords=function(t){return arguments.length?(null==t?r=null:(r=Xi(t))._=t,i):r&&r._},i},Wi=Array.prototype.slice,Zi=function(t){return function(){return t}},$i=Math.PI,Qi=2*$i,Ki=Qi-1e-6;function Ji(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function tu(){return new Ji}Ji.prototype=tu.prototype={constructor:Ji,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,u){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+u)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var u=this._x1,o=this._y1,a=e-t,c=r-n,f=u-t,l=o-n,s=f*f+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(s>1e-6)if(Math.abs(l*a-c*f)>1e-6&&i){var h=e-u,d=r-o,p=a*a+c*c,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(s),b=i*Math.tan(($i-Math.acos((p+s-v)/(2*g*y)))/2),_=b/y,m=b/g;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*f)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>f*d)+","+(this._x1=t+m*a)+","+(this._y1=n+m*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,u){t=+t,n=+n,u=!!u;var o=(e=+e)*Math.cos(r),a=e*Math.sin(r),c=t+o,f=n+a,l=1^u,s=u?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+f:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+c+","+f),e&&(s<0&&(s=s%Qi+Qi),s>Ki?this._+="A"+e+","+e+",0,1,"+l+","+(t-o)+","+(n-a)+"A"+e+","+e+",0,1,"+l+","+(this._x1=c)+","+(this._y1=f):s>1e-6&&(this._+="A"+e+","+e+",0,"+ +(s>=$i)+","+l+","+(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._}};var nu=tu;function eu(t){return t.source}function ru(t){return t.target}function iu(t){return t.radius}function uu(t){return t.startAngle}function ou(t){return t.endAngle}var au=function(){var t=eu,n=ru,e=iu,r=uu,i=ou,u=null;function o(){var o,a=Wi.call(arguments),c=t.apply(this,a),f=n.apply(this,a),l=+e.apply(this,(a[0]=c,a)),s=r.apply(this,a)-Ii,h=i.apply(this,a)-Ii,d=l*Bi(s),p=l*Fi(s),v=+e.apply(this,(a[0]=f,a)),g=r.apply(this,a)-Ii,y=i.apply(this,a)-Ii;if(u||(u=o=nu()),u.moveTo(d,p),u.arc(0,0,l,s,h),s===g&&h===y||(u.quadraticCurveTo(0,0,v*Bi(g),v*Fi(g)),u.arc(0,0,v,g,y)),u.quadraticCurveTo(0,0,d,p),u.closePath(),o)return u=null,o+""||null}return o.radius=function(t){return arguments.length?(e="function"==typeof t?t:Zi(+t),o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Zi(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Zi(+t),o):i},o.source=function(n){return arguments.length?(t=n,o):t},o.target=function(t){return arguments.length?(n=t,o):n},o.context=function(t){return arguments.length?(u=null==t?null:t,o):u},o};function cu(){}function fu(t,n){var e=new cu;if(t instanceof cu)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,u=t.length;if(null==n)for(;++i<u;)e.set(i,t[i]);else for(;++i<u;)e.set(n(r=t[i],i,t),r)}else if(t)for(var o in t)e.set(o,t[o]);return e}cu.prototype=fu.prototype={constructor:cu,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 lu=fu,su=function(){var t,n,e,r=[],i=[];function u(e,i,o,a){if(i>=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var c,f,l,s=-1,h=e.length,d=r[i++],p=lu(),v=o();++s<h;)(l=p.get(c=d(f=e[s])+""))?l.push(f):p.set(c,[f]);return p.each((function(t,n){a(v,n,u(t,i,o,a))})),v}return e={object:function(t){return u(t,0,hu,du)},map:function(t){return u(t,0,pu,vu)},entries:function(t){return function t(e,u){if(++u>r.length)return e;var o,a=i[u-1];return null!=n&&u>=r.length?o=e.entries():(o=[],e.each((function(n,e){o.push({key:e,values:t(n,u)})}))),null!=a?o.sort((function(t,n){return a(t.key,n.key)})):o}(u(t,0,pu,vu),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function hu(){return{}}function du(t,n,e){t[n]=e}function pu(){return lu()}function vu(t,n,e){t.set(n,e)}function gu(){}var yu=lu.prototype;function bu(t,n){var e=new gu;if(t instanceof gu)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}gu.prototype=bu.prototype={constructor:gu,has:yu.has,add:function(t){return this["$"+(t+="")]=t,this},remove:yu.remove,clear:yu.clear,values:yu.keys,size:yu.size,empty:yu.empty,each:yu.each};var _u=bu,mu=function(t){var n=[];for(var e in t)n.push(e);return n},xu=function(t){var n=[];for(var e in t)n.push(t[e]);return n},wu=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},Mu=Math.PI/180,Nu=180/Math.PI,Au=.96422,ku=1,Tu=.82521,Su=4/29,Eu=6/29,Cu=3*Eu*Eu,Pu=Eu*Eu*Eu;function zu(t){if(t instanceof Ou)return new Ou(t.l,t.a,t.b,t.opacity);if(t instanceof Iu)return Hu(t);t instanceof ne||(t=Jn(t));var n,e,r=ju(t.r),i=ju(t.g),u=ju(t.b),o=qu((.2225045*r+.7168786*i+.0606169*u)/ku);return r===i&&i===u?n=e=o:(n=qu((.4360747*r+.3850649*i+.1430804*u)/Au),e=qu((.0139322*r+.0971045*i+.7141733*u)/Tu)),new Ou(116*o-16,500*(n-o),200*(o-e),t.opacity)}function Ru(t,n){return new Ou(t,0,0,null==n?1:n)}function Du(t,n,e,r){return 1===arguments.length?zu(t):new Ou(t,n,e,null==r?1:r)}function Ou(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function qu(t){return t>Pu?Math.pow(t,1/3):t/Cu+Su}function Lu(t){return t>Eu?t*t*t:Cu*(t-Su)}function Uu(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ju(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Bu(t){if(t instanceof Iu)return new Iu(t.h,t.c,t.l,t.opacity);if(t instanceof Ou||(t=zu(t)),0===t.a&&0===t.b)return new Iu(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Nu;return new Iu(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Fu(t,n,e,r){return 1===arguments.length?Bu(t):new Iu(e,n,t,null==r?1:r)}function Yu(t,n,e,r){return 1===arguments.length?Bu(t):new Iu(t,n,e,null==r?1:r)}function Iu(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Hu(t){if(isNaN(t.h))return new Ou(t.l,0,0,t.opacity);var n=t.h*Mu;return new Ou(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}Dn(Ou,Du,On(qn,{brighter:function(t){return new Ou(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Ou(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 new ne(Uu(3.1338561*(n=Au*Lu(n))-1.6168667*(t=ku*Lu(t))-.4906146*(e=Tu*Lu(e))),Uu(-.9787684*n+1.9161415*t+.033454*e),Uu(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Dn(Iu,Yu,On(qn,{brighter:function(t){return new Iu(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Iu(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Hu(this).rgb()}}));var Vu=-.29227,Xu=-.90649,Gu=1.97294,Wu=Gu*Xu,Zu=1.78277*Gu,$u=1.78277*Vu- -.14861*Xu;function Qu(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ku)return new Ku(t.h,t.s,t.l,t.opacity);t instanceof ne||(t=Jn(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=($u*r+Wu*n-Zu*e)/($u+Wu-Zu),u=r-i,o=(Gu*(e-i)-Vu*u)/Xu,a=Math.sqrt(o*o+u*u)/(Gu*i*(1-i)),c=a?Math.atan2(o,u)*Nu-120:NaN;return new Ku(c<0?c+360:c,a,i,t.opacity)}(t):new Ku(t,n,e,null==r?1:r)}function Ku(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}Dn(Ku,Qu,On(qn,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Ku(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ku(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Mu,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ne(255*(n+e*(-.14861*r+1.78277*i)),255*(n+e*(Vu*r+Xu*i)),255*(n+e*(Gu*r)),this.opacity)}}));var Ju=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN};var to=function(t){return 1===t.length&&(t=function(t){return function(n,e){return Ju(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)>0?i=u:r=u+1}return r}}}(Ju);to.right,to.left;var no=function(t,n){var e,r,i,u=t.length,o=-1;if(null==n){for(;++o<u;)if(null!=(e=t[o])&&e>=e)for(r=i=e;++o<u;)null!=(e=t[o])&&(r>e&&(r=e),i<e&&(i=e))}else for(;++o<u;)if(null!=(e=n(t[o],o,t))&&e>=e)for(r=i=e;++o<u;)null!=(e=n(t[o],o,t))&&(r>e&&(r=e),i<e&&(i=e));return[r,i]},eo=Array.prototype,ro=(eo.slice,eo.map,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)),u=new Array(i);++r<i;)u[r]=t+r*e;return u}),io=Math.sqrt(50),uo=Math.sqrt(10),oo=Math.sqrt(2);function ao(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),u=r/i;return u>=io?i*=10:u>=uo?i*=5:u>=oo&&(i*=2),n<t?-i:i}var co=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1},fo=function(t,n){var e,r,i=t.length,u=-1;if(null==n){for(;++u<i;)if(null!=(e=t[u])&&e>=e)for(r=e;++u<i;)null!=(e=t[u])&&e>r&&(r=e)}else for(;++u<i;)if(null!=(e=n(t[u],u,t))&&e>=e)for(r=e;++u<i;)null!=(e=n(t[u],u,t))&&e>r&&(r=e);return r};var lo=Array.prototype.slice,so=function(t,n){return t-n},ho=function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r},po=function(t){return function(){return t}},vo=function(t,n){for(var e,r=-1,i=n.length;++r<i;)if(e=go(t,n[r]))return e;return 0};function go(t,n){for(var e=n[0],r=n[1],i=-1,u=0,o=t.length,a=o-1;u<o;a=u++){var c=t[u],f=c[0],l=c[1],s=t[a],h=s[0],d=s[1];if(yo(c,s,n))return 0;l>r!=d>r&&e<(h-f)*(r-l)/(d-l)+f&&(i=-i)}return i}function yo(t,n,e){var r,i,u,o;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],u=e[r],o=n[r],i<=u&&u<=o||o<=u&&u<=i)}var bo=function(){},_o=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],mo=function(){var t=1,n=1,e=co,r=a;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(so);else{var r=no(t),i=r[0],o=r[1];n=ao(i,o,n),n=ro(Math.floor(i/n)*n,Math.floor(o/n)*n,n)}return n.map((function(n){return u(t,n)}))}function u(e,i){var u=[],a=[];return function(e,r,i){var u,a,c,f,l,s,h=new Array,d=new Array;u=a=-1,f=e[0]>=r,_o[f<<1].forEach(p);for(;++u<t-1;)c=f,f=e[u+1]>=r,_o[c|f<<1].forEach(p);_o[f<<0].forEach(p);for(;++a<n-1;){for(u=-1,f=e[a*t+t]>=r,l=e[a*t]>=r,_o[f<<1|l<<2].forEach(p);++u<t-1;)c=f,f=e[a*t+t+u+1]>=r,s=l,l=e[a*t+u+1]>=r,_o[c|f<<1|l<<2|s<<3].forEach(p);_o[f|l<<3].forEach(p)}u=-1,l=e[a*t]>=r,_o[l<<2].forEach(p);for(;++u<t-1;)s=l,l=e[a*t+u+1]>=r,_o[l<<2|s<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+u,t[0][1]+a],c=[t[1][0]+u,t[1][1]+a],f=o(r),l=o(c);(n=d[f])?(e=h[l])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=l]=n):(n=h[l])?(e=d[f])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(c),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=f]=n):h[f]=d[l]={start:f,end:l,ring:[r,c]}}_o[l<<3].forEach(p)}(e,i,(function(t){r(t,e,i),ho(t)>0?u.push([t]):a.push(t)})),a.forEach((function(t){for(var n,e=0,r=u.length;e<r;++e)if(-1!==vo((n=u[e])[0],t))return void n.push(t)})),{type:"MultiPolygon",value:i,coordinates:u}}function o(n){return 2*n[0]+n[1]*(t+1)*4}function a(e,r,i){e.forEach((function(e){var u,o=e[0],a=e[1],c=0|o,f=0|a,l=r[f*t+c];o>0&&o<t&&c===o&&(u=r[f*t+c-1],e[0]=o+(i-u)/(l-u)-.5),a>0&&a<n&&f===a&&(u=r[(f-1)*t+c],e[1]=a+(i-u)/(l-u)-.5)}))}return i.contour=u,i.size=function(e){if(!arguments.length)return[t,n];var r=Math.ceil(e[0]),u=Math.ceil(e[1]);if(!(r>0&&u>0))throw new Error("invalid size");return t=r,n=u,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?po(lo.call(t)):po(t),i):e},i.smooth=function(t){return arguments.length?(r=t?a:bo,i):r===a},i};function xo(t,n,e){for(var r=t.width,i=t.height,u=1+(e<<1),o=0;o<i;++o)for(var a=0,c=0;a<r+e;++a)a<r&&(c+=t.data[a+o*r]),a>=e&&(a>=u&&(c-=t.data[a-u+o*r]),n.data[a-e+o*r]=c/Math.min(a+1,r-1+u-a,u))}function wo(t,n,e){for(var r=t.width,i=t.height,u=1+(e<<1),o=0;o<r;++o)for(var a=0,c=0;a<i+e;++a)a<i&&(c+=t.data[o+a*r]),a>=e&&(a>=u&&(c-=t.data[o+(a-u)*r]),n.data[o+(a-e)*r]=c/Math.min(a+1,i-1+u-a,u))}function Mo(t){return t[0]}function No(t){return t[1]}function Ao(){return 1}var ko=function(){var t=Mo,n=No,e=Ao,r=960,i=500,u=20,o=2,a=3*u,c=r+2*a>>o,f=i+2*a>>o,l=po(20);function s(r){var i=new Float32Array(c*f),s=new Float32Array(c*f);r.forEach((function(r,u,l){var s=+t(r,u,l)+a>>o,h=+n(r,u,l)+a>>o,d=+e(r,u,l);s>=0&&s<c&&h>=0&&h<f&&(i[s+h*c]+=d)})),xo({width:c,height:f,data:i},{width:c,height:f,data:s},u>>o),wo({width:c,height:f,data:s},{width:c,height:f,data:i},u>>o),xo({width:c,height:f,data:i},{width:c,height:f,data:s},u>>o),wo({width:c,height:f,data:s},{width:c,height:f,data:i},u>>o),xo({width:c,height:f,data:i},{width:c,height:f,data:s},u>>o),wo({width:c,height:f,data:s},{width:c,height:f,data:i},u>>o);var d=l(i);if(!Array.isArray(d)){var p=fo(i);d=ao(0,p,d),(d=ro(0,Math.floor(p/d)*d,d)).shift()}return mo().thresholds(d).size([c,f])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(v)}function v(t){t[0]=t[0]*Math.pow(2,o)-a,t[1]=t[1]*Math.pow(2,o)-a}function g(){return c=r+2*(a=3*u)>>o,f=i+2*a>>o,s}return s.x=function(n){return arguments.length?(t="function"==typeof n?n:po(+n),s):t},s.y=function(t){return arguments.length?(n="function"==typeof t?t:po(+t),s):n},s.weight=function(t){return arguments.length?(e="function"==typeof t?t:po(+t),s):e},s.size=function(t){if(!arguments.length)return[r,i];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0||n>=0))throw new Error("invalid size");return r=n,i=e,g()},s.cellSize=function(t){if(!arguments.length)return 1<<o;if(!((t=+t)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),g()},s.thresholds=function(t){return arguments.length?(l="function"==typeof t?t:Array.isArray(t)?po(lo.call(t)):po(t),s):l},s.bandwidth=function(t){if(!arguments.length)return Math.sqrt(u*(u+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return u=Math.round((Math.sqrt(4*t*t+1)-1)/2),g()},s},To=function(t){return function(){return t}};function So(t,n,e,r,i,u,o,a,c,f){this.target=t,this.type=n,this.subject=e,this.identifier=r,this.active=i,this.x=u,this.y=o,this.dx=a,this.dy=c,this._=f}function Eo(){return!vn.ctrlKey&&!vn.button}function Co(){return this.parentNode}function Po(t){return null==t?{x:vn.x,y:vn.y}:t}function zo(){return navigator.maxTouchPoints||"ontouchstart"in this}So.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Ro=function(){var t,n,e,r,i=Eo,u=Co,o=Po,a=zo,c={},f=vt("start","drag","end"),l=0,s=0;function h(t){t.on("mousedown.drag",d).filter(a).on("touchstart.drag",g).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var o=_("mouse",u.apply(this,arguments),Ue,this,arguments);o&&(En(vn.view).on("mousemove.drag",p,!0).on("mouseup.drag",v,!0),zn(vn.view),Cn(),e=!1,t=vn.clientX,n=vn.clientY,o("start"))}}function p(){if(Pn(),!e){var r=vn.clientX-t,i=vn.clientY-n;e=r*r+i*i>s}c.mouse("drag")}function v(){En(vn.view).on("mousemove.drag mouseup.drag",null),Rn(vn.view,e),Pn(),c.mouse("end")}function g(){if(i.apply(this,arguments)){var t,n,e=vn.changedTouches,r=u.apply(this,arguments),o=e.length;for(t=0;t<o;++t)(n=_(e[t].identifier,r,Le,this,arguments))&&(Cn(),n("start"))}}function y(){var t,n,e=vn.changedTouches,r=e.length;for(t=0;t<r;++t)(n=c[e[t].identifier])&&(Pn(),n("drag"))}function b(){var t,n,e=vn.changedTouches,i=e.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(n=c[e[t].identifier])&&(Cn(),n("end"))}function _(t,n,e,r,i){var u,a,s,d=e(n,t),p=f.copy();if(xn(new So(h,"beforestart",u,t,l,d[0],d[1],0,0,p),(function(){return null!=(vn.subject=u=o.apply(r,i))&&(a=u.x-d[0]||0,s=u.y-d[1]||0,!0)})))return function o(f){var v,g=d;switch(f){case"start":c[t]=o,v=l++;break;case"end":delete c[t],--l;case"drag":d=e(n,t),v=l}xn(new So(h,f,u,t,v,d[0]+a,d[1]+s,d[0]-g[0],d[1]-g[1],p),p.apply,p,[f,r,i])}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:To(!!t),h):i},h.container=function(t){return arguments.length?(u="function"==typeof t?t:To(t),h):u},h.subject=function(t){return arguments.length?(o="function"==typeof t?t:To(t),h):o},h.touchable=function(t){return arguments.length?(a="function"==typeof t?t:To(!!t),h):a},h.on=function(){var t=f.on.apply(f,arguments);return t===f?h:t},h.clickDistance=function(t){return arguments.length?(s=(t=+t)*t,h):Math.sqrt(s)},h},Do={},Oo={},qo=34,Lo=10,Uo=13;function jo(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function Bo(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 Fo(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function Yo(t){var n,e=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),u=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((n=t.getUTCFullYear())<0?"-"+Fo(-n,6):n>9999?"+"+Fo(n,6):Fo(n,4))+"-"+Fo(t.getUTCMonth()+1,2)+"-"+Fo(t.getUTCDate(),2)+(u?"T"+Fo(e,2)+":"+Fo(r,2)+":"+Fo(i,2)+"."+Fo(u,3)+"Z":i?"T"+Fo(e,2)+":"+Fo(r,2)+":"+Fo(i,2)+"Z":r||e?"T"+Fo(e,2)+":"+Fo(r,2)+"Z":"")}var Io=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],u=t.length,o=0,a=0,c=u<=0,f=!1;function l(){if(c)return Oo;if(f)return f=!1,Do;var n,r,i=o;if(t.charCodeAt(i)===qo){for(;o++<u&&t.charCodeAt(o)!==qo||t.charCodeAt(++o)===qo;);return(n=o)>=u?c=!0:(r=t.charCodeAt(o++))===Lo?f=!0:r===Uo&&(f=!0,t.charCodeAt(o)===Lo&&++o),t.slice(i+1,n-1).replace(/""/g,'"')}for(;o<u;){if((r=t.charCodeAt(n=o++))===Lo)f=!0;else if(r===Uo)f=!0,t.charCodeAt(o)===Lo&&++o;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,u)}for(t.charCodeAt(u-1)===Lo&&--u,t.charCodeAt(u-1)===Uo&&--u;(r=l())!==Oo;){for(var s=[];r!==Do&&r!==Oo;)s.push(r),r=l();n&&null==(s=n(s,a++))||i.push(s)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return o(n[t])})).join(t)}))}function u(n){return n.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?Yo(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,u=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=jo(t);return function(r,i){return n(e(r),i,t)}}(t,n):jo(t)}));return u.columns=i||[],u},parseRows:r,format:function(n,e){return null==e&&(e=Bo(n)),[e.map(o).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=Bo(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(u).join("\n")},formatRow:u,formatValue:o}},Ho=Io(","),Vo=Ho.parse,Xo=Ho.parseRows,Go=Ho.format,Wo=Ho.formatBody,Zo=Ho.formatRows,$o=Ho.formatRow,Qo=Ho.formatValue,Ko=Io("\t"),Jo=Ko.parse,ta=Ko.parseRows,na=Ko.format,ea=Ko.formatBody,ra=Ko.formatRows,ia=Ko.formatRow,ua=Ko.formatValue;function oa(t){for(var n in t){var e,r,i=t[n].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(e=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;aa&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=e;else i=null;t[n]=i}return t}var aa=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function ca(t){return+t}function fa(t){return t*t}function la(t){return t*(2-t)}function sa(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var ha=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),da=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),pa=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),va=Math.PI,ga=va/2;function ya(t){return 1-Math.cos(t*ga)}function ba(t){return Math.sin(t*ga)}function _a(t){return(1-Math.cos(va*t))/2}function ma(t){return Math.pow(2,10*t-10)}function xa(t){return 1-Math.pow(2,-10*t)}function wa(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function Ma(t){return 1-Math.sqrt(1-t*t)}function Na(t){return Math.sqrt(1- --t*t)}function Aa(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var ka=4/11,Ta=6/11,Sa=8/11,Ea=.75,Ca=9/11,Pa=10/11,za=.9375,Ra=21/22,Da=63/64,Oa=1/ka/ka;function qa(t){return 1-La(1-t)}function La(t){return(t=+t)<ka?Oa*t*t:t<Sa?Oa*(t-=Ta)*t+Ea:t<Pa?Oa*(t-=Ca)*t+za:Oa*(t-=Ra)*t+Da}function Ua(t){return((t*=2)<=1?1-La(1-t):La(t-1)+1)/2}var ja=function t(n){function e(t){return t*t*((n+1)*t-n)}return n=+n,e.overshoot=t,e}(1.70158),Ba=function t(n){function e(t){return--t*t*((n+1)*t+n)+1}return n=+n,e.overshoot=t,e}(1.70158),Fa=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),Ya=2*Math.PI,Ia=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ya);function i(t){return n*Math.pow(2,10*--t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Ya)},i.period=function(e){return t(n,e)},i}(1,.3),Ha=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ya);function i(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Ya)},i.period=function(e){return t(n,e)},i}(1,.3),Va=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Ya);function i(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((r-t)/e):2-n*Math.pow(2,-10*t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Ya)},i.period=function(e){return t(n,e)},i}(1,.3);function Xa(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}var Ga=function(t,n){return fetch(t,n).then(Xa)};function Wa(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}var Za=function(t,n){return fetch(t,n).then(Wa)},$a={},Qa={},Ka=34,Ja=10,tc=13;function nc(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function ec(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 rc(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function ic(t){var n,e=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),u=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((n=t.getUTCFullYear())<0?"-"+rc(-n,6):n>9999?"+"+rc(n,6):rc(n,4))+"-"+rc(t.getUTCMonth()+1,2)+"-"+rc(t.getUTCDate(),2)+(u?"T"+rc(e,2)+":"+rc(r,2)+":"+rc(i,2)+"."+rc(u,3)+"Z":i?"T"+rc(e,2)+":"+rc(r,2)+":"+rc(i,2)+"Z":r||e?"T"+rc(e,2)+":"+rc(r,2)+"Z":"")}var uc=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],u=t.length,o=0,a=0,c=u<=0,f=!1;function l(){if(c)return Qa;if(f)return f=!1,$a;var n,r,i=o;if(t.charCodeAt(i)===Ka){for(;o++<u&&t.charCodeAt(o)!==Ka||t.charCodeAt(++o)===Ka;);return(n=o)>=u?c=!0:(r=t.charCodeAt(o++))===Ja?f=!0:r===tc&&(f=!0,t.charCodeAt(o)===Ja&&++o),t.slice(i+1,n-1).replace(/""/g,'"')}for(;o<u;){if((r=t.charCodeAt(n=o++))===Ja)f=!0;else if(r===tc)f=!0,t.charCodeAt(o)===Ja&&++o;else if(r!==e)continue;return t.slice(i,n)}return c=!0,t.slice(i,u)}for(t.charCodeAt(u-1)===Ja&&--u,t.charCodeAt(u-1)===tc&&--u;(r=l())!==Qa;){for(var s=[];r!==$a&&r!==Qa;)s.push(r),r=l();n&&null==(s=n(s,a++))||i.push(s)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return o(n[t])})).join(t)}))}function u(n){return n.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?ic(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,u=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=nc(t);return function(r,i){return n(e(r),i,t)}}(t,n):nc(t)}));return u.columns=i||[],u},parseRows:r,format:function(n,e){return null==e&&(e=ec(n)),[e.map(o).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=ec(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(u).join("\n")},formatRow:u,formatValue:o}},oc=uc(","),ac=oc.parse,cc=(oc.parseRows,oc.format,oc.formatBody,oc.formatRows,oc.formatRow,oc.formatValue,uc("\t")),fc=cc.parse;cc.parseRows,cc.format,cc.formatBody,cc.formatRows,cc.formatRow,cc.formatValue;function lc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}var sc=function(t,n){return fetch(t,n).then(lc)};function hc(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),sc(n,e).then((function(n){return t(n,r)}))}}function dc(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=uc(t);return sc(n,e).then((function(t){return i.parse(t,r)}))}var pc=hc(ac),vc=hc(fc),gc=function(t,n){return new Promise((function(e,r){var i=new Image;for(var u in n)i[u]=n[u];i.onerror=r,i.onload=function(){e(i)},i.src=t}))};function yc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.json()}var bc=function(t,n){return fetch(t,n).then(yc)};function _c(t){return function(n,e){return sc(n,e).then((function(n){return(new DOMParser).parseFromString(n,t)}))}}var mc=_c("application/xml"),xc=_c("text/html"),wc=_c("image/svg+xml"),Mc=function(t,n){var e;function r(){var r,i,u=e.length,o=0,a=0;for(r=0;r<u;++r)o+=(i=e[r]).x,a+=i.y;for(o=o/u-t,a=a/u-n,r=0;r<u;++r)(i=e[r]).x-=o,i.y-=a}return null==t&&(t=0),null==n&&(n=0),r.initialize=function(t){e=t},r.x=function(n){return arguments.length?(t=+n,r):t},r.y=function(t){return arguments.length?(n=+t,r):n},r},Nc=function(t){return function(){return t}},Ac=function(){return 1e-6*(Math.random()-.5)};function kc(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,u,o,a,c,f,l,s,h,d=t._root,p={data:r},v=t._x0,g=t._y0,y=t._x1,b=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((f=n>=(u=(v+y)/2))?v=u:y=u,(l=e>=(o=(g+b)/2))?g=o:b=o,i=d,!(d=d[s=l<<1|f]))return i[s]=p,t;if(a=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===a&&e===c)return p.next=d,i?i[s]=p:t._root=p,t;do{i=i?i[s]=new Array(4):t._root=new Array(4),(f=n>=(u=(v+y)/2))?v=u:y=u,(l=e>=(o=(g+b)/2))?g=o:b=o}while((s=l<<1|f)==(h=(c>=o)<<1|a>=u));return i[h]=d,i[s]=p,t}var Tc=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function Sc(t){return t[0]}function Ec(t){return t[1]}function Cc(t,n,e){var r=new Pc(null==n?Sc:n,null==e?Ec:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Pc(t,n,e,r,i,u){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=u,this._root=void 0}function zc(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Rc=Cc.prototype=Pc.prototype;function Dc(t){return t.x+t.vx}function Oc(t){return t.y+t.vy}Rc.copy=function(){var t,n,e=new Pc(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=zc(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]=zc(n));return e},Rc.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return kc(this.cover(n,e),n,e,t)},Rc.addAll=function(t){var n,e,r,i,u=t.length,o=new Array(u),a=new Array(u),c=1/0,f=1/0,l=-1/0,s=-1/0;for(e=0;e<u;++e)isNaN(r=+this._x.call(null,n=t[e]))||isNaN(i=+this._y.call(null,n))||(o[e]=r,a[e]=i,r<c&&(c=r),r>l&&(l=r),i<f&&(f=i),i>s&&(s=i));if(c>l||f>s)return this;for(this.cover(c,f).cover(l,s),e=0;e<u;++e)kc(this,o[e],a[e],t[e]);return this},Rc.cover=function(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var e=this._x0,r=this._y0,i=this._x1,u=this._y1;if(isNaN(e))i=(e=Math.floor(t))+1,u=(r=Math.floor(n))+1;else{for(var o,a,c=i-e,f=this._root;e>t||t>=i||r>n||n>=u;)switch(a=(n<r)<<1|t<e,(o=new Array(4))[a]=f,f=o,c*=2,a){case 0:i=e+c,u=r+c;break;case 1:e=i-c,u=r+c;break;case 2:i=e+c,r=u-c;break;case 3:e=i-c,r=u-c}this._root&&this._root.length&&(this._root=f)}return this._x0=e,this._y0=r,this._x1=i,this._y1=u,this},Rc.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},Rc.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]]},Rc.find=function(t,n,e){var r,i,u,o,a,c,f,l=this._x0,s=this._y0,h=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new Tc(v,l,s,h,d)),null==e?e=1/0:(l=t-e,s=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(v=c.node)||(i=c.x0)>h||(u=c.y0)>d||(o=c.x1)<l||(a=c.y1)<s))if(v.length){var g=(i+o)/2,y=(u+a)/2;p.push(new Tc(v[3],g,y,o,a),new Tc(v[2],i,y,g,a),new Tc(v[1],g,u,o,y),new Tc(v[0],i,u,g,y)),(f=(n>=y)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=c)}else{var b=t-+this._x.call(null,v.data),_=n-+this._y.call(null,v.data),m=b*b+_*_;if(m<e){var x=Math.sqrt(e=m);l=t-x,s=n-x,h=t+x,d=n+x,r=v.data}}return r},Rc.remove=function(t){if(isNaN(u=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var n,e,r,i,u,o,a,c,f,l,s,h,d=this._root,p=this._x0,v=this._y0,g=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((f=u>=(a=(p+g)/2))?p=a:g=a,(l=o>=(c=(v+y)/2))?v=c:y=c,n=d,!(d=d[s=l<<1|f]))return this;if(!d.length)break;(n[s+1&3]||n[s+2&3]||n[s+3&3])&&(e=n,h=s)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[s]=i:delete n[s],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Rc.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},Rc.root=function(){return this._root},Rc.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},Rc.visit=function(t){var n,e,r,i,u,o,a=[],c=this._root;for(c&&a.push(new Tc(c,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(c=n.node,r=n.x0,i=n.y0,u=n.x1,o=n.y1)&&c.length){var f=(r+u)/2,l=(i+o)/2;(e=c[3])&&a.push(new Tc(e,f,l,u,o)),(e=c[2])&&a.push(new Tc(e,r,l,f,o)),(e=c[1])&&a.push(new Tc(e,f,i,u,l)),(e=c[0])&&a.push(new Tc(e,r,i,f,l))}return this},Rc.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new Tc(this._root,this._x0,this._y0,this._x1,this._y1));n=e.pop();){var i=n.node;if(i.length){var u,o=n.x0,a=n.y0,c=n.x1,f=n.y1,l=(o+c)/2,s=(a+f)/2;(u=i[0])&&e.push(new Tc(u,o,a,l,s)),(u=i[1])&&e.push(new Tc(u,l,a,c,s)),(u=i[2])&&e.push(new Tc(u,o,s,l,f)),(u=i[3])&&e.push(new Tc(u,l,s,c,f))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},Rc.x=function(t){return arguments.length?(this._x=t,this):this._x},Rc.y=function(t){return arguments.length?(this._y=t,this):this._y};var qc=function(t){var n,e,r=1,i=1;function u(){for(var t,u,a,c,f,l,s,h=n.length,d=0;d<i;++d)for(u=Cc(n,Dc,Oc).visitAfter(o),t=0;t<h;++t)a=n[t],l=e[a.index],s=l*l,c=a.x+a.vx,f=a.y+a.vy,u.visit(p);function p(t,n,e,i,u){var o=t.data,h=t.r,d=l+h;if(!o)return n>c+d||i<c-d||e>f+d||u<f-d;if(o.index>a.index){var p=c-o.x-o.vx,v=f-o.y-o.vy,g=p*p+v*v;g<d*d&&(0===p&&(g+=(p=Ac())*p),0===v&&(g+=(v=Ac())*v),g=(d-(g=Math.sqrt(g)))/g*r,a.vx+=(p*=g)*(d=(h*=h)/(s+h)),a.vy+=(v*=g)*d,o.vx-=p*(d=1-d),o.vy-=v*d)}}}function o(t){if(t.data)return t.r=e[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 a(){if(n){var r,i,u=n.length;for(e=new Array(u),r=0;r<u;++r)i=n[r],e[i.index]=+t(i,r,n)}}return"function"!=typeof t&&(t=Nc(null==t?1:+t)),u.initialize=function(t){n=t,a()},u.iterations=function(t){return arguments.length?(i=+t,u):i},u.strength=function(t){return arguments.length?(r=+t,u):r},u.radius=function(n){return arguments.length?(t="function"==typeof n?n:Nc(+n),a(),u):t},u};function Lc(t){return t.index}function Uc(t,n){var e=t.get(n);if(!e)throw new Error("missing: "+n);return e}var jc=function(t){var n,e,r,i,u,o=Lc,a=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},c=Nc(30),f=1;function l(r){for(var i=0,o=t.length;i<f;++i)for(var a,c,l,s,h,d,p,v=0;v<o;++v)c=(a=t[v]).source,s=(l=a.target).x+l.vx-c.x-c.vx||Ac(),h=l.y+l.vy-c.y-c.vy||Ac(),s*=d=((d=Math.sqrt(s*s+h*h))-e[v])/d*r*n[v],h*=d,l.vx-=s*(p=u[v]),l.vy-=h*p,c.vx+=s*(p=1-p),c.vy+=h*p}function s(){if(r){var a,c,f=r.length,l=t.length,s=lu(r,o);for(a=0,i=new Array(f);a<l;++a)(c=t[a]).index=a,"object"!=typeof c.source&&(c.source=Uc(s,c.source)),"object"!=typeof c.target&&(c.target=Uc(s,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(a=0,u=new Array(l);a<l;++a)c=t[a],u[a]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);n=new Array(l),h(),e=new Array(l),d()}}function h(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+a(t[e],e,t)}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}return null==t&&(t=[]),l.initialize=function(t){r=t,s()},l.links=function(n){return arguments.length?(t=n,s(),l):t},l.id=function(t){return arguments.length?(o=t,l):o},l.iterations=function(t){return arguments.length?(f=+t,l):f},l.strength=function(t){return arguments.length?(a="function"==typeof t?t:Nc(+t),h(),l):a},l.distance=function(t){return arguments.length?(c="function"==typeof t?t:Nc(+t),d(),l):c},l};function Bc(t){return t.x}function Fc(t){return t.y}var Yc=10,Ic=Math.PI*(3-Math.sqrt(5)),Hc=function(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),u=0,o=.6,a=lu(),c=Qe(l),f=vt("tick","end");function l(){s(),f.call("tick",n),e<r&&(c.stop(),f.call("end",n))}function s(r){var c,f,l=t.length;void 0===r&&(r=1);for(var s=0;s<r;++s)for(e+=(u-e)*i,a.each((function(t){t(e)})),c=0;c<l;++c)null==(f=t[c]).fx?f.x+=f.vx*=o:(f.x=f.fx,f.vx=0),null==f.fy?f.y+=f.vy*=o:(f.y=f.fy,f.vy=0);return n}function h(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=Yc*Math.sqrt(e),u=e*Ic;n.x=i*Math.cos(u),n.y=i*Math.sin(u)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function d(n){return n.initialize&&n.initialize(t),n}return null==t&&(t=[]),h(),n={tick:s,restart:function(){return c.restart(l),n},stop:function(){return c.stop(),n},nodes:function(e){return arguments.length?(t=e,h(),a.each(d),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(u=+t,n):u},velocityDecay:function(t){return arguments.length?(o=1-t,n):1-o},force:function(t,e){return arguments.length>1?(null==e?a.remove(t):a.set(t,d(e)),n):a.get(t)},find:function(n,e,r){var i,u,o,a,c,f=0,l=t.length;for(null==r?r=1/0:r*=r,f=0;f<l;++f)(o=(i=n-(a=t[f]).x)*i+(u=e-a.y)*u)<r&&(c=a,r=o);return c},on:function(t,e){return arguments.length>1?(f.on(t,e),n):f.on(t)}}},Vc=function(){var t,n,e,r,i=Nc(-30),u=1,o=1/0,a=.81;function c(r){var i,u=t.length,o=Cc(t,Bc,Fc).visitAfter(l);for(e=r,i=0;i<u;++i)n=t[i],o.visit(s)}function f(){if(t){var n,e,u=t.length;for(r=new Array(u),n=0;n<u;++n)e=t[n],r[e.index]=+i(e,n,t)}}function l(t){var n,e,i,u,o,a=0,c=0;if(t.length){for(i=u=o=0;o<4;++o)(n=t[o])&&(e=Math.abs(n.value))&&(a+=n.value,c+=e,i+=e*n.x,u+=e*n.y);t.x=i/c,t.y=u/c}else{(n=t).x=n.data.x,n.y=n.data.y;do{a+=r[n.data.index]}while(n=n.next)}t.value=a}function s(t,i,c,f){if(!t.value)return!0;var l=t.x-n.x,s=t.y-n.y,h=f-i,d=l*l+s*s;if(h*h/a<d)return d<o&&(0===l&&(d+=(l=Ac())*l),0===s&&(d+=(s=Ac())*s),d<u&&(d=Math.sqrt(u*d)),n.vx+=l*t.value*e/d,n.vy+=s*t.value*e/d),!0;if(!(t.length||d>=o)){(t.data!==n||t.next)&&(0===l&&(d+=(l=Ac())*l),0===s&&(d+=(s=Ac())*s),d<u&&(d=Math.sqrt(u*d)));do{t.data!==n&&(h=r[t.data.index]*e/d,n.vx+=l*h,n.vy+=s*h)}while(t=t.next)}}return c.initialize=function(n){t=n,f()},c.strength=function(t){return arguments.length?(i="function"==typeof t?t:Nc(+t),f(),c):i},c.distanceMin=function(t){return arguments.length?(u=t*t,c):Math.sqrt(u)},c.distanceMax=function(t){return arguments.length?(o=t*t,c):Math.sqrt(o)},c.theta=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c},Xc=function(t,n,e){var r,i,u,o=Nc(.1);function a(t){for(var o=0,a=r.length;o<a;++o){var c=r[o],f=c.x-n||1e-6,l=c.y-e||1e-6,s=Math.sqrt(f*f+l*l),h=(u[o]-s)*i[o]*t/s;c.vx+=f*h,c.vy+=l*h}}function c(){if(r){var n,e=r.length;for(i=new Array(e),u=new Array(e),n=0;n<e;++n)u[n]=+t(r[n],n,r),i[n]=isNaN(u[n])?0:+o(r[n],n,r)}}return"function"!=typeof t&&(t=Nc(+t)),null==n&&(n=0),null==e&&(e=0),a.initialize=function(t){r=t,c()},a.strength=function(t){return arguments.length?(o="function"==typeof t?t:Nc(+t),c(),a):o},a.radius=function(n){return arguments.length?(t="function"==typeof n?n:Nc(+n),c(),a):t},a.x=function(t){return arguments.length?(n=+t,a):n},a.y=function(t){return arguments.length?(e=+t,a):e},a},Gc=function(t){var n,e,r,i=Nc(.1);function u(t){for(var i,u=0,o=n.length;u<o;++u)(i=n[u]).vx+=(r[u]-i.x)*e[u]*t}function o(){if(n){var u,o=n.length;for(e=new Array(o),r=new Array(o),u=0;u<o;++u)e[u]=isNaN(r[u]=+t(n[u],u,n))?0:+i(n[u],u,n)}}return"function"!=typeof t&&(t=Nc(null==t?0:+t)),u.initialize=function(t){n=t,o()},u.strength=function(t){return arguments.length?(i="function"==typeof t?t:Nc(+t),o(),u):i},u.x=function(n){return arguments.length?(t="function"==typeof n?n:Nc(+n),o(),u):t},u},Wc=function(t){var n,e,r,i=Nc(.1);function u(t){for(var i,u=0,o=n.length;u<o;++u)(i=n[u]).vy+=(r[u]-i.y)*e[u]*t}function o(){if(n){var u,o=n.length;for(e=new Array(o),r=new Array(o),u=0;u<o;++u)e[u]=isNaN(r[u]=+t(n[u],u,n))?0:+i(n[u],u,n)}}return"function"!=typeof t&&(t=Nc(null==t?0:+t)),u.initialize=function(t){n=t,o()},u.strength=function(t){return arguments.length?(i="function"==typeof t?t:Nc(+t),o(),u):i},u.y=function(n){return arguments.length?(t="function"==typeof n?n:Nc(+n),o(),u):t},u},Zc=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)]},$c=function(t){return(t=Zc(Math.abs(t)))?t[1]:NaN},Qc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kc(t){if(!(n=Qc.exec(t)))throw new Error("invalid format: "+t);var n;return new Jc({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Jc(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}Kc.prototype=Jc.prototype,Jc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var tf,nf,ef,rf,uf=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t},of=function(t,n){var e=Zc(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")},af={"%":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 of(100*t,n)},r:of,s:function(t,n){var e=Zc(t,n);if(!e)return t+"";var r=e[0],i=e[1],u=i-(tf=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return u===o?r:u>o?r+new Array(u-o+1).join("0"):u>0?r.slice(0,u)+"."+r.slice(u):"0."+new Array(1-u).join("0")+Zc(t,Math.max(0,n+u-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},cf=function(t){return t},ff=Array.prototype.map,lf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],sf=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?cf:(n=ff.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,u=[],o=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),u.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[o=(o+1)%n.length];return u.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?cf:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(ff.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function s(t){var n=(t=Kc(t)).fill,e=t.align,s=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,g=t.precision,y=t.trim,b=t.type;"n"===b?(v=!0,b="g"):af[b]||(void 0===g&&(g=12),y=!0,b="g"),(d||"0"===n&&"="===e)&&(d=!0,n="0",e="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",m="$"===h?u:/[%p]/.test(b)?c:"",x=af[b],w=/[defgprs%]/.test(b);function M(t){var i,u,c,h=_,M=m;if("c"===b)M=x(t)+M,t="";else{var N=(t=+t)<0;if(t=isNaN(t)?l:x(Math.abs(t),g),y&&(t=uf(t)),N&&0==+t&&(N=!1),h=(N?"("===s?s:f:"-"===s||"("===s?"":s)+h,M=("s"===b?lf[8+tf/3]:"")+M+(N&&"("===s?")":""),w)for(i=-1,u=t.length;++i<u;)if(48>(c=t.charCodeAt(i))||c>57){M=(46===c?o+t.slice(i+1):t.slice(i))+M,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var A=h.length+t.length+M.length,k=A<p?new Array(p-A+1).join(n):"";switch(v&&d&&(t=r(k+t,k.length?p-M.length:1/0),k=""),e){case"<":t=h+t+M+k;break;case"=":t=h+k+t+M;break;case"^":t=k.slice(0,A=k.length>>1)+h+t+M+k.slice(A);break;default:t=k+h+t+M}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:s,formatPrefix:function(t,n){var e=s(((t=Kc(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor($c(n)/3))),i=Math.pow(10,-r),u=lf[8+r/3];return function(t){return e(i*t)+u}}}};function hf(t){return nf=sf(t),ef=nf.format,rf=nf.formatPrefix,nf}hf({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var df=function(t){return Math.max(0,-$c(Math.abs(t)))},pf=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor($c(n)/3)))-$c(Math.abs(t)))},vf=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,$c(n)-$c(t))+1},gf=function(){return new yf};function yf(){this.reset()}yf.prototype={constructor:yf,reset:function(){this.s=this.t=0},add:function(t){_f(bf,t,this.t),_f(this,bf.s,this.s),this.s?this.t+=bf.t:this.s=bf.t},valueOf:function(){return this.s}};var bf=new yf;function _f(t,n,e){var r=t.s=n+e,i=r-n,u=r-i;t.t=n-u+(e-i)}var mf=1e-6,xf=1e-12,wf=Math.PI,Mf=wf/2,Nf=wf/4,Af=2*wf,kf=180/wf,Tf=wf/180,Sf=Math.abs,Ef=Math.atan,Cf=Math.atan2,Pf=Math.cos,zf=Math.ceil,Rf=Math.exp,Df=(Math.floor,Math.log),Of=Math.pow,qf=Math.sin,Lf=Math.sign||function(t){return t>0?1:t<0?-1:0},Uf=Math.sqrt,jf=Math.tan;function Bf(t){return t>1?0:t<-1?wf:Math.acos(t)}function Ff(t){return t>1?Mf:t<-1?-Mf:Math.asin(t)}function Yf(t){return(t=qf(t/2))*t}function If(){}function Hf(t,n){t&&Xf.hasOwnProperty(t.type)&&Xf[t.type](t,n)}var Vf={Feature:function(t,n){Hf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)Hf(e[r].geometry,n)}},Xf={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){Gf(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Gf(e[r],n,0)},Polygon:function(t,n){Wf(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)Wf(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)Hf(e[r],n)}};function Gf(t,n,e){var r,i=-1,u=t.length-e;for(n.lineStart();++i<u;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function Wf(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)Gf(t[e],n,1);n.polygonEnd()}var Zf,$f,Qf,Kf,Jf,tl=function(t,n){t&&Vf.hasOwnProperty(t.type)?Vf[t.type](t,n):Hf(t,n)},nl=gf(),el=gf(),rl={point:If,lineStart:If,lineEnd:If,polygonStart:function(){nl.reset(),rl.lineStart=il,rl.lineEnd=ul},polygonEnd:function(){var t=+nl;el.add(t<0?Af+t:t),this.lineStart=this.lineEnd=this.point=If},sphere:function(){el.add(Af)}};function il(){rl.point=ol}function ul(){al(Zf,$f)}function ol(t,n){rl.point=al,Zf=t,$f=n,Qf=t*=Tf,Kf=Pf(n=(n*=Tf)/2+Nf),Jf=qf(n)}function al(t,n){var e=(t*=Tf)-Qf,r=e>=0?1:-1,i=r*e,u=Pf(n=(n*=Tf)/2+Nf),o=qf(n),a=Jf*o,c=Kf*u+a*Pf(i),f=a*r*qf(i);nl.add(Cf(f,c)),Qf=t,Kf=u,Jf=o}var cl=function(t){return el.reset(),tl(t,rl),2*el};function fl(t){return[Cf(t[1],t[0]),Ff(t[2])]}function ll(t){var n=t[0],e=t[1],r=Pf(e);return[r*Pf(n),r*qf(n),qf(e)]}function sl(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function hl(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 dl(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function pl(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function vl(t){var n=Uf(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var gl,yl,bl,_l,ml,xl,wl,Ml,Nl,Al,kl=gf(),Tl={point:Sl,lineStart:Cl,lineEnd:Pl,polygonStart:function(){Tl.point=zl,Tl.lineStart=Rl,Tl.lineEnd=Dl,kl.reset(),rl.polygonStart()},polygonEnd:function(){rl.polygonEnd(),Tl.point=Sl,Tl.lineStart=Cl,Tl.lineEnd=Pl,nl<0?(gl=-(bl=180),yl=-(_l=90)):kl>mf?_l=90:kl<-mf&&(yl=-90),Al[0]=gl,Al[1]=bl},sphere:function(){gl=-(bl=180),yl=-(_l=90)}};function Sl(t,n){Nl.push(Al=[gl=t,bl=t]),n<yl&&(yl=n),n>_l&&(_l=n)}function El(t,n){var e=ll([t*Tf,n*Tf]);if(Ml){var r=hl(Ml,e),i=hl([r[1],-r[0],0],r);vl(i),i=fl(i);var u,o=t-ml,a=o>0?1:-1,c=i[0]*kf*a,f=Sf(o)>180;f^(a*ml<c&&c<a*t)?(u=i[1]*kf)>_l&&(_l=u):f^(a*ml<(c=(c+360)%360-180)&&c<a*t)?(u=-i[1]*kf)<yl&&(yl=u):(n<yl&&(yl=n),n>_l&&(_l=n)),f?t<ml?Ol(gl,t)>Ol(gl,bl)&&(bl=t):Ol(t,bl)>Ol(gl,bl)&&(gl=t):bl>=gl?(t<gl&&(gl=t),t>bl&&(bl=t)):t>ml?Ol(gl,t)>Ol(gl,bl)&&(bl=t):Ol(t,bl)>Ol(gl,bl)&&(gl=t)}else Nl.push(Al=[gl=t,bl=t]);n<yl&&(yl=n),n>_l&&(_l=n),Ml=e,ml=t}function Cl(){Tl.point=El}function Pl(){Al[0]=gl,Al[1]=bl,Tl.point=Sl,Ml=null}function zl(t,n){if(Ml){var e=t-ml;kl.add(Sf(e)>180?e+(e>0?360:-360):e)}else xl=t,wl=n;rl.point(t,n),El(t,n)}function Rl(){rl.lineStart()}function Dl(){zl(xl,wl),rl.lineEnd(),Sf(kl)>mf&&(gl=-(bl=180)),Al[0]=gl,Al[1]=bl,Ml=null}function Ol(t,n){return(n-=t)<0?n+360:n}function ql(t,n){return t[0]-n[0]}function Ll(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var Ul,jl,Bl,Fl,Yl,Il,Hl,Vl,Xl,Gl,Wl,Zl,$l,Ql,Kl,Jl,ts=function(t){var n,e,r,i,u,o,a;if(_l=bl=-(gl=yl=1/0),Nl=[],tl(t,Tl),e=Nl.length){for(Nl.sort(ql),n=1,u=[r=Nl[0]];n<e;++n)Ll(r,(i=Nl[n])[0])||Ll(r,i[1])?(Ol(r[0],i[1])>Ol(r[0],r[1])&&(r[1]=i[1]),Ol(i[0],r[1])>Ol(r[0],r[1])&&(r[0]=i[0])):u.push(r=i);for(o=-1/0,n=0,r=u[e=u.length-1];n<=e;r=i,++n)i=u[n],(a=Ol(r[1],i[0]))>o&&(o=a,gl=i[0],bl=r[1])}return Nl=Al=null,gl===1/0||yl===1/0?[[NaN,NaN],[NaN,NaN]]:[[gl,yl],[bl,_l]]},ns={sphere:If,point:es,lineStart:is,lineEnd:as,polygonStart:function(){ns.lineStart=cs,ns.lineEnd=fs},polygonEnd:function(){ns.lineStart=is,ns.lineEnd=as}};function es(t,n){t*=Tf;var e=Pf(n*=Tf);rs(e*Pf(t),e*qf(t),qf(n))}function rs(t,n,e){++Ul,Bl+=(t-Bl)/Ul,Fl+=(n-Fl)/Ul,Yl+=(e-Yl)/Ul}function is(){ns.point=us}function us(t,n){t*=Tf;var e=Pf(n*=Tf);Ql=e*Pf(t),Kl=e*qf(t),Jl=qf(n),ns.point=os,rs(Ql,Kl,Jl)}function os(t,n){t*=Tf;var e=Pf(n*=Tf),r=e*Pf(t),i=e*qf(t),u=qf(n),o=Cf(Uf((o=Kl*u-Jl*i)*o+(o=Jl*r-Ql*u)*o+(o=Ql*i-Kl*r)*o),Ql*r+Kl*i+Jl*u);jl+=o,Il+=o*(Ql+(Ql=r)),Hl+=o*(Kl+(Kl=i)),Vl+=o*(Jl+(Jl=u)),rs(Ql,Kl,Jl)}function as(){ns.point=es}function cs(){ns.point=ls}function fs(){ss(Zl,$l),ns.point=es}function ls(t,n){Zl=t,$l=n,t*=Tf,n*=Tf,ns.point=ss;var e=Pf(n);Ql=e*Pf(t),Kl=e*qf(t),Jl=qf(n),rs(Ql,Kl,Jl)}function ss(t,n){t*=Tf;var e=Pf(n*=Tf),r=e*Pf(t),i=e*qf(t),u=qf(n),o=Kl*u-Jl*i,a=Jl*r-Ql*u,c=Ql*i-Kl*r,f=Uf(o*o+a*a+c*c),l=Ff(f),s=f&&-l/f;Xl+=s*o,Gl+=s*a,Wl+=s*c,jl+=l,Il+=l*(Ql+(Ql=r)),Hl+=l*(Kl+(Kl=i)),Vl+=l*(Jl+(Jl=u)),rs(Ql,Kl,Jl)}var hs=function(t){Ul=jl=Bl=Fl=Yl=Il=Hl=Vl=Xl=Gl=Wl=0,tl(t,ns);var n=Xl,e=Gl,r=Wl,i=n*n+e*e+r*r;return i<xf&&(n=Il,e=Hl,r=Vl,jl<mf&&(n=Bl,e=Fl,r=Yl),(i=n*n+e*e+r*r)<xf)?[NaN,NaN]:[Cf(e,n)*kf,Ff(r/Uf(i))*kf]},ds=function(t){return function(){return t}},ps=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};function vs(t,n){return[Sf(t)>wf?t+Math.round(-t/Af)*Af:t,n]}function gs(t,n,e){return(t%=Af)?n||e?ps(bs(t),_s(n,e)):bs(t):n||e?_s(n,e):vs}function ys(t){return function(n,e){return[(n+=t)>wf?n-Af:n<-wf?n+Af:n,e]}}function bs(t){var n=ys(t);return n.invert=ys(-t),n}function _s(t,n){var e=Pf(t),r=qf(t),i=Pf(n),u=qf(n);function o(t,n){var o=Pf(n),a=Pf(t)*o,c=qf(t)*o,f=qf(n),l=f*e+a*r;return[Cf(c*i-l*u,a*e-f*r),Ff(l*i+c*u)]}return o.invert=function(t,n){var o=Pf(n),a=Pf(t)*o,c=qf(t)*o,f=qf(n),l=f*i-c*u;return[Cf(c*i+f*u,a*e+l*r),Ff(l*e-a*r)]},o}vs.invert=vs;var ms=function(t){function n(n){return(n=t(n[0]*Tf,n[1]*Tf))[0]*=kf,n[1]*=kf,n}return t=gs(t[0]*Tf,t[1]*Tf,t.length>2?t[2]*Tf:0),n.invert=function(n){return(n=t.invert(n[0]*Tf,n[1]*Tf))[0]*=kf,n[1]*=kf,n},n};function xs(t,n,e,r,i,u){if(e){var o=Pf(n),a=qf(n),c=r*e;null==i?(i=n+r*Af,u=n-c/2):(i=ws(o,i),u=ws(o,u),(r>0?i<u:i>u)&&(i+=r*Af));for(var f,l=i;r>0?l>u:l<u;l-=c)f=fl([o,-a*Pf(l),-a*qf(l)]),t.point(f[0],f[1])}}function ws(t,n){(n=ll(n))[0]-=t,vl(n);var e=Bf(-n[1]);return((-n[2]<0?-e:e)+Af-mf)%Af}var Ms=function(){var t,n,e=ds([0,0]),r=ds(90),i=ds(6),u={point:function(e,r){t.push(e=n(e,r)),e[0]*=kf,e[1]*=kf}};function o(){var o=e.apply(this,arguments),a=r.apply(this,arguments)*Tf,c=i.apply(this,arguments)*Tf;return t=[],n=gs(-o[0]*Tf,-o[1]*Tf,0).invert,xs(u,a,c,1),o={type:"Polygon",coordinates:[t]},t=n=null,o}return o.center=function(t){return arguments.length?(e="function"==typeof t?t:ds([+t[0],+t[1]]),o):e},o.radius=function(t){return arguments.length?(r="function"==typeof t?t:ds(+t),o):r},o.precision=function(t){return arguments.length?(i="function"==typeof t?t:ds(+t),o):i},o},Ns=function(){var t,n=[];return{point:function(n,e){t.push([n,e])},lineStart:function(){n.push(t=[])},lineEnd:If,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}},As=function(t,n){return Sf(t[0]-n[0])<mf&&Sf(t[1]-n[1])<mf};function ks(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}var Ts=function(t,n,e,r,i){var u,o,a=[],c=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,e,r=t[0],o=t[n];if(As(r,o)){for(i.lineStart(),u=0;u<n;++u)i.point((r=t[u])[0],r[1]);i.lineEnd()}else a.push(e=new ks(r,t,null,!0)),c.push(e.o=new ks(r,null,e,!1)),a.push(e=new ks(o,t,null,!1)),c.push(e.o=new ks(o,null,e,!0))}})),a.length){for(c.sort(n),Ss(a),Ss(c),u=0,o=c.length;u<o;++u)c[u].e=e=!e;for(var f,l,s=a[0];;){for(var h=s,d=!0;h.v;)if((h=h.n)===s)return;f=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(u=0,o=f.length;u<o;++u)i.point((l=f[u])[0],l[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(f=h.p.z,u=f.length-1;u>=0;--u)i.point((l=f[u])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}f=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}};function Ss(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}}var Es=gf();function Cs(t){return Sf(t[0])<=wf?t[0]:Lf(t[0])*((Sf(t[0])+wf)%Af-wf)}var Ps=function(t,n){var e=Cs(n),r=n[1],i=qf(r),u=[qf(e),-Pf(e),0],o=0,a=0;Es.reset(),1===i?r=Mf+mf:-1===i&&(r=-Mf-mf);for(var c=0,f=t.length;c<f;++c)if(s=(l=t[c]).length)for(var l,s,h=l[s-1],d=Cs(h),p=h[1]/2+Nf,v=qf(p),g=Pf(p),y=0;y<s;++y,d=_,v=x,g=w,h=b){var b=l[y],_=Cs(b),m=b[1]/2+Nf,x=qf(m),w=Pf(m),M=_-d,N=M>=0?1:-1,A=N*M,k=A>wf,T=v*x;if(Es.add(Cf(T*N*qf(A),g*w+T*Pf(A))),o+=k?M+N*Af:M,k^d>=e^_>=e){var S=hl(ll(h),ll(b));vl(S);var E=hl(u,S);vl(E);var C=(k^M>=0?-1:1)*Ff(E[2]);(r>C||r===C&&(S[0]||S[1]))&&(a+=k^M>=0?1:-1)}}return(o<-mf||o<mf&&Es<-mf)^1&a},zs=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN};var Rs=function(t){return 1===t.length&&(t=function(t){return function(n,e){return zs(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)<0?r=u+1:i=u}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var u=r+i>>>1;t(n[u],e)>0?i=u:r=u+1}return r}}}(zs);Rs.right,Rs.left;var Ds=Array.prototype,Os=(Ds.slice,Ds.map,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)),u=new Array(i);++r<i;)u[r]=t+r*e;return u});Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var qs=function(t){for(var n,e,r,i=t.length,u=-1,o=0;++u<i;)o+=t[u].length;for(e=new Array(o);--i>=0;)for(n=(r=t[i]).length;--n>=0;)e[--o]=r[n];return e};var Ls=function(t,n,e,r){return function(i){var u,o,a,c=n(i),f=Ns(),l=n(f),s=!1,h={point:d,lineStart:v,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=b,h.lineEnd=_,o=[],u=[]},polygonEnd:function(){h.point=d,h.lineStart=v,h.lineEnd=g,o=qs(o);var t=Ps(u,r);o.length?(s||(i.polygonStart(),s=!0),Ts(o,js,t,e,i)):t&&(s||(i.polygonStart(),s=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),s&&(i.polygonEnd(),s=!1),o=u=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(n,e){t(n,e)&&i.point(n,e)}function p(t,n){c.point(t,n)}function v(){h.point=p,c.lineStart()}function g(){h.point=d,c.lineEnd()}function y(t,n){a.push([t,n]),l.point(t,n)}function b(){l.lineStart(),a=[]}function _(){y(a[0][0],a[0][1]),l.lineEnd();var t,n,e,r,c=l.clean(),h=f.result(),d=h.length;if(a.pop(),u.push(a),a=null,d)if(1&c){if((n=(e=h[0]).length-1)>0){for(s||(i.polygonStart(),s=!0),i.lineStart(),t=0;t<n;++t)i.point((r=e[t])[0],r[1]);i.lineEnd()}}else d>1&&2&c&&h.push(h.pop().concat(h.shift())),o.push(h.filter(Us))}return h}};function Us(t){return t.length>1}function js(t,n){return((t=t.x)[0]<0?t[1]-Mf-mf:Mf-t[1])-((n=n.x)[0]<0?n[1]-Mf-mf:Mf-n[1])}var Bs=Ls((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(u,o){var a=u>0?wf:-wf,c=Sf(u-e);Sf(c-wf)<mf?(t.point(e,r=(r+o)/2>0?Mf:-Mf),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(u,r),n=0):i!==a&&c>=wf&&(Sf(e-i)<mf&&(e-=i*mf),Sf(u-a)<mf&&(u-=a*mf),r=function(t,n,e,r){var i,u,o=qf(t-e);return Sf(o)>mf?Ef((qf(n)*(u=Pf(r))*qf(e)-qf(r)*(i=Pf(n))*qf(t))/(i*u*o)):(n+r)/2}(e,r,u,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=u,r=o),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*Mf,r.point(-wf,i),r.point(0,i),r.point(wf,i),r.point(wf,0),r.point(wf,-i),r.point(0,-i),r.point(-wf,-i),r.point(-wf,0),r.point(-wf,i);else if(Sf(t[0]-n[0])>mf){var u=t[0]<n[0]?wf:-wf;i=e*u/2,r.point(-u,i),r.point(0,i),r.point(u,i)}else r.point(n[0],n[1])}),[-wf,-Mf]);var Fs=function(t){var n=Pf(t),e=6*Tf,r=n>0,i=Sf(n)>mf;function u(t,e){return Pf(t)*Pf(e)>n}function o(t,e,r){var i=[1,0,0],u=hl(ll(t),ll(e)),o=sl(u,u),a=u[0],c=o-a*a;if(!c)return!r&&t;var f=n*o/c,l=-n*a/c,s=hl(i,u),h=pl(i,f);dl(h,pl(u,l));var d=s,p=sl(h,d),v=sl(d,d),g=p*p-v*(sl(h,h)-1);if(!(g<0)){var y=Uf(g),b=pl(d,(-p-y)/v);if(dl(b,h),b=fl(b),!r)return b;var _,m=t[0],x=e[0],w=t[1],M=e[1];x<m&&(_=m,m=x,x=_);var N=x-m,A=Sf(N-wf)<mf;if(!A&&M<w&&(_=w,w=M,M=_),A||N<mf?A?w+M>0^b[1]<(Sf(b[0]-m)<mf?w:M):w<=b[1]&&b[1]<=M:N>wf^(m<=b[0]&&b[0]<=x)){var k=pl(d,(-p+y)/v);return dl(k,h),[b,fl(k)]}}}function a(n,e){var i=r?t:wf-t,u=0;return n<-i?u|=1:n>i&&(u|=2),e<-i?u|=4:e>i&&(u|=8),u}return Ls(u,(function(t){var n,e,c,f,l;return{lineStart:function(){f=c=!1,l=1},point:function(s,h){var d,p=[s,h],v=u(s,h),g=r?v?0:a(s,h):v?a(s+(s<0?wf:-wf),h):0;if(!n&&(f=c=v)&&t.lineStart(),v!==c&&(!(d=o(n,p))||As(n,d)||As(p,d))&&(p[0]+=mf,p[1]+=mf,v=u(p[0],p[1])),v!==c)l=0,v?(t.lineStart(),d=o(p,n),t.point(d[0],d[1])):(d=o(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^v){var y;g&e||!(y=o(p,n,!0))||(l=0,r?(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&&As(n,p)||t.point(p[0],p[1]),n=p,c=v,e=g},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return l|(f&&c)<<1}}}),(function(n,r,i,u){xs(u,t,e,i,n,r)}),r?[0,-t]:[-wf,t-wf])},Ys=function(t,n,e,r,i,u){var o,a=t[0],c=t[1],f=0,l=1,s=n[0]-a,h=n[1]-c;if(o=e-a,s||!(o>0)){if(o/=s,s<0){if(o<f)return;o<l&&(l=o)}else if(s>0){if(o>l)return;o>f&&(f=o)}if(o=i-a,s||!(o<0)){if(o/=s,s<0){if(o>l)return;o>f&&(f=o)}else if(s>0){if(o<f)return;o<l&&(l=o)}if(o=r-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=u-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)}return f>0&&(t[0]=a+f*s,t[1]=c+f*h),l<1&&(n[0]=a+l*s,n[1]=c+l*h),!0}}}}},Is=1e9,Hs=-Is;function Vs(t,n,e,r){function i(i,u){return t<=i&&i<=e&&n<=u&&u<=r}function u(i,u,a,f){var l=0,s=0;if(null==i||(l=o(i,a))!==(s=o(u,a))||c(i,u)<0^a>0)do{f.point(0===l||3===l?t:e,l>1?r:n)}while((l=(l+a+4)%4)!==s);else f.point(u[0],u[1])}function o(r,i){return Sf(r[0]-t)<mf?i>0?0:3:Sf(r[0]-e)<mf?i>0?2:1:Sf(r[1]-n)<mf?i>0?1:0:i>0?3:2}function a(t,n){return c(t.x,n.x)}function c(t,n){var e=o(t,1),r=o(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(o){var c,f,l,s,h,d,p,v,g,y,b,_=o,m=Ns(),x={point:w,lineStart:function(){x.point=M,f&&f.push(l=[]);y=!0,g=!1,p=v=NaN},lineEnd:function(){c&&(M(s,h),d&&g&&m.rejoin(),c.push(m.result()));x.point=w,g&&_.lineEnd()},polygonStart:function(){_=m,c=[],f=[],b=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=f.length;e<i;++e)for(var u,o,a=f[e],c=1,l=a.length,s=a[0],h=s[0],d=s[1];c<l;++c)u=h,o=d,s=a[c],h=s[0],d=s[1],o<=r?d>r&&(h-u)*(r-o)>(d-o)*(t-u)&&++n:d<=r&&(h-u)*(r-o)<(d-o)*(t-u)&&--n;return n}(),e=b&&n,i=(c=qs(c)).length;(e||i)&&(o.polygonStart(),e&&(o.lineStart(),u(null,null,1,o),o.lineEnd()),i&&Ts(c,a,n,u,o),o.polygonEnd());_=o,c=f=l=null}};function w(t,n){i(t,n)&&_.point(t,n)}function M(u,o){var a=i(u,o);if(f&&l.push([u,o]),y)s=u,h=o,d=a,y=!1,a&&(_.lineStart(),_.point(u,o));else if(a&&g)_.point(u,o);else{var c=[p=Math.max(Hs,Math.min(Is,p)),v=Math.max(Hs,Math.min(Is,v))],m=[u=Math.max(Hs,Math.min(Is,u)),o=Math.max(Hs,Math.min(Is,o))];Ys(c,m,t,n,e,r)?(g||(_.lineStart(),_.point(c[0],c[1])),_.point(m[0],m[1]),a||_.lineEnd(),b=!1):a&&(_.lineStart(),_.point(u,o),b=!1)}p=u,v=o,g=a}return x}}var Xs,Gs,Ws,Zs=function(){var t,n,e,r=0,i=0,u=960,o=500;return e={stream:function(e){return t&&n===e?t:t=Vs(r,i,u,o)(n=e)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],u=+a[1][0],o=+a[1][1],t=n=null,e):[[r,i],[u,o]]}}},$s=gf(),Qs={sphere:If,point:If,lineStart:function(){Qs.point=Js,Qs.lineEnd=Ks},lineEnd:If,polygonStart:If,polygonEnd:If};function Ks(){Qs.point=Qs.lineEnd=If}function Js(t,n){Xs=t*=Tf,Gs=qf(n*=Tf),Ws=Pf(n),Qs.point=th}function th(t,n){t*=Tf;var e=qf(n*=Tf),r=Pf(n),i=Sf(t-Xs),u=Pf(i),o=r*qf(i),a=Ws*e-Gs*r*u,c=Gs*e+Ws*r*u;$s.add(Cf(Uf(o*o+a*a),c)),Xs=t,Gs=e,Ws=r}var nh=function(t){return $s.reset(),tl(t,Qs),+$s},eh=[null,null],rh={type:"LineString",coordinates:eh},ih=function(t,n){return eh[0]=t,eh[1]=n,nh(rh)},uh={Feature:function(t,n){return ah(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)if(ah(e[r].geometry,n))return!0;return!1}},oh={Sphere:function(){return!0},Point:function(t,n){return ch(t.coordinates,n)},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(ch(e[r],n))return!0;return!1},LineString:function(t,n){return fh(t.coordinates,n)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(fh(e[r],n))return!0;return!1},Polygon:function(t,n){return lh(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)if(lh(e[r],n))return!0;return!1},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)if(ah(e[r],n))return!0;return!1}};function ah(t,n){return!(!t||!oh.hasOwnProperty(t.type))&&oh[t.type](t,n)}function ch(t,n){return 0===ih(t,n)}function fh(t,n){for(var e,r,i,u=0,o=t.length;u<o;u++){if(0===(r=ih(t[u],n)))return!0;if(u>0&&(i=ih(t[u],t[u-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))<xf*i)return!0;e=r}return!1}function lh(t,n){return!!Ps(t.map(sh),hh(n))}function sh(t){return(t=t.map(hh)).pop(),t}function hh(t){return[t[0]*Tf,t[1]*Tf]}var dh=function(t,n){return(t&&uh.hasOwnProperty(t.type)?uh[t.type]:ah)(t,n)};function ph(t,n,e){var r=Os(t,n-mf,e).concat(n);return function(t){return r.map((function(n){return[t,n]}))}}function vh(t,n,e){var r=Os(t,n-mf,e).concat(n);return function(t){return r.map((function(n){return[n,t]}))}}function gh(){var t,n,e,r,i,u,o,a,c,f,l,s,h=10,d=h,p=90,v=360,g=2.5;function y(){return{type:"MultiLineString",coordinates:b()}}function b(){return Os(zf(r/p)*p,e,p).map(l).concat(Os(zf(a/v)*v,o,v).map(s)).concat(Os(zf(n/h)*h,t,h).filter((function(t){return Sf(t%p)>mf})).map(c)).concat(Os(zf(u/d)*d,i,d).filter((function(t){return Sf(t%v)>mf})).map(f))}return y.lines=function(){return b().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(s(o).slice(1),l(e).reverse().slice(1),s(a).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],r>e&&(t=r,r=e,e=t),a>o&&(t=a,a=o,o=t),y.precision(g)):[[r,a],[e,o]]},y.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],u=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),u>i&&(e=u,u=i,i=e),y.precision(g)):[[n,u],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],v=+t[1],y):[p,v]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(g=+h,c=ph(u,i,90),f=vh(n,t,g),l=ph(a,o,90),s=vh(r,e,g),y):g},y.extentMajor([[-180,-90+mf],[180,90-mf]]).extentMinor([[-180,-80-mf],[180,80+mf]])}function yh(){return gh()()}var bh,_h,mh,xh,wh=function(t,n){var e=t[0]*Tf,r=t[1]*Tf,i=n[0]*Tf,u=n[1]*Tf,o=Pf(r),a=qf(r),c=Pf(u),f=qf(u),l=o*Pf(e),s=o*qf(e),h=c*Pf(i),d=c*qf(i),p=2*Ff(Uf(Yf(u-r)+o*c*Yf(i-e))),v=qf(p),g=p?function(t){var n=qf(t*=p)/v,e=qf(p-t)/v,r=e*l+n*h,i=e*s+n*d,u=e*a+n*f;return[Cf(i,r)*kf,Cf(u,Uf(r*r+i*i))*kf]}:function(){return[e*kf,r*kf]};return g.distance=p,g},Mh=function(t){return t},Nh=gf(),Ah=gf(),kh={point:If,lineStart:If,lineEnd:If,polygonStart:function(){kh.lineStart=Th,kh.lineEnd=Ch},polygonEnd:function(){kh.lineStart=kh.lineEnd=kh.point=If,Nh.add(Sf(Ah)),Ah.reset()},result:function(){var t=Nh/2;return Nh.reset(),t}};function Th(){kh.point=Sh}function Sh(t,n){kh.point=Eh,bh=mh=t,_h=xh=n}function Eh(t,n){Ah.add(xh*t-mh*n),mh=t,xh=n}function Ch(){Eh(bh,_h)}var Ph=kh,zh=1/0,Rh=zh,Dh=-zh,Oh=Dh;var qh,Lh,Uh,jh,Bh={point:function(t,n){t<zh&&(zh=t);t>Dh&&(Dh=t);n<Rh&&(Rh=n);n>Oh&&(Oh=n)},lineStart:If,lineEnd:If,polygonStart:If,polygonEnd:If,result:function(){var t=[[zh,Rh],[Dh,Oh]];return Dh=Oh=-(Rh=zh=1/0),t}},Fh=0,Yh=0,Ih=0,Hh=0,Vh=0,Xh=0,Gh=0,Wh=0,Zh=0,$h={point:Qh,lineStart:Kh,lineEnd:nd,polygonStart:function(){$h.lineStart=ed,$h.lineEnd=rd},polygonEnd:function(){$h.point=Qh,$h.lineStart=Kh,$h.lineEnd=nd},result:function(){var t=Zh?[Gh/Zh,Wh/Zh]:Xh?[Hh/Xh,Vh/Xh]:Ih?[Fh/Ih,Yh/Ih]:[NaN,NaN];return Fh=Yh=Ih=Hh=Vh=Xh=Gh=Wh=Zh=0,t}};function Qh(t,n){Fh+=t,Yh+=n,++Ih}function Kh(){$h.point=Jh}function Jh(t,n){$h.point=td,Qh(Uh=t,jh=n)}function td(t,n){var e=t-Uh,r=n-jh,i=Uf(e*e+r*r);Hh+=i*(Uh+t)/2,Vh+=i*(jh+n)/2,Xh+=i,Qh(Uh=t,jh=n)}function nd(){$h.point=Qh}function ed(){$h.point=id}function rd(){ud(qh,Lh)}function id(t,n){$h.point=ud,Qh(qh=Uh=t,Lh=jh=n)}function ud(t,n){var e=t-Uh,r=n-jh,i=Uf(e*e+r*r);Hh+=i*(Uh+t)/2,Vh+=i*(jh+n)/2,Xh+=i,Gh+=(i=jh*t-Uh*n)*(Uh+t),Wh+=i*(jh+n),Zh+=3*i,Qh(Uh=t,jh=n)}var od=$h;function ad(t){this._context=t}ad.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,Af)}},result:If};var cd,fd,ld,sd,hd,dd=gf(),pd={point:If,lineStart:function(){pd.point=vd},lineEnd:function(){cd&&gd(fd,ld),pd.point=If},polygonStart:function(){cd=!0},polygonEnd:function(){cd=null},result:function(){var t=+dd;return dd.reset(),t}};function vd(t,n){pd.point=gd,fd=sd=t,ld=hd=n}function gd(t,n){sd-=t,hd-=n,dd.add(Uf(sd*sd+hd*hd)),sd=t,hd=n}var yd=pd;function bd(){this._string=[]}function _d(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}bd.prototype={_radius:4.5,_circle:_d(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=_d(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 md=function(t,n){var e,r,i=4.5;function u(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),tl(t,e(r))),r.result()}return u.area=function(t){return tl(t,e(Ph)),Ph.result()},u.measure=function(t){return tl(t,e(yd)),yd.result()},u.bounds=function(t){return tl(t,e(Bh)),Bh.result()},u.centroid=function(t){return tl(t,e(od)),od.result()},u.projection=function(n){return arguments.length?(e=null==n?(t=null,Mh):(t=n).stream,u):t},u.context=function(t){return arguments.length?(r=null==t?(n=null,new bd):new ad(n=t),"function"!=typeof i&&r.pointRadius(i),u):n},u.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),u):i},u.projection(t).context(n)},xd=function(t){return{stream:wd(t)}};function wd(t){return function(n){var e=new Md;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Md(){}function Nd(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),tl(e,t.stream(Bh)),n(Bh.result()),null!=r&&t.clipExtent(r),t}function Ad(t,n,e){return Nd(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],u=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),o=+n[0][0]+(r-u*(e[1][0]+e[0][0]))/2,a=+n[0][1]+(i-u*(e[1][1]+e[0][1]))/2;t.scale(150*u).translate([o,a])}),e)}function kd(t,n,e){return Ad(t,[[0,0],n],e)}function Td(t,n,e){return Nd(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),u=(r-i*(e[1][0]+e[0][0]))/2,o=-i*e[0][1];t.scale(150*i).translate([u,o])}),e)}function Sd(t,n,e){return Nd(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),u=-i*e[0][0],o=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([u,o])}),e)}Md.prototype={constructor:Md,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 Ed=16,Cd=Pf(30*Tf),Pd=function(t,n){return+n?function(t,n){function e(r,i,u,o,a,c,f,l,s,h,d,p,v,g){var y=f-r,b=l-i,_=y*y+b*b;if(_>4*n&&v--){var m=o+h,x=a+d,w=c+p,M=Uf(m*m+x*x+w*w),N=Ff(w/=M),A=Sf(Sf(w)-1)<mf||Sf(u-s)<mf?(u+s)/2:Cf(x,m),k=t(A,N),T=k[0],S=k[1],E=T-r,C=S-i,P=b*E-y*C;(P*P/_>n||Sf((y*E+b*C)/_-.5)>.3||o*h+a*d+c*p<Cd)&&(e(r,i,u,o,a,c,T,S,A,m/=M,x/=M,w,v,g),g.point(T,S),e(T,S,A,m,x,w,f,l,s,h,d,p,v,g))}}return function(n){var r,i,u,o,a,c,f,l,s,h,d,p,v={point:g,lineStart:y,lineEnd:_,polygonStart:function(){n.polygonStart(),v.lineStart=m},polygonEnd:function(){n.polygonEnd(),v.lineStart=y}};function g(e,r){e=t(e,r),n.point(e[0],e[1])}function y(){l=NaN,v.point=b,n.lineStart()}function b(r,i){var u=ll([r,i]),o=t(r,i);e(l,s,f,h,d,p,l=o[0],s=o[1],f=r,h=u[0],d=u[1],p=u[2],Ed,n),n.point(l,s)}function _(){v.point=g,n.lineEnd()}function m(){y(),v.point=x,v.lineEnd=w}function x(t,n){b(r=t,n),i=l,u=s,o=h,a=d,c=p,v.point=b}function w(){e(l,s,f,h,d,p,i,u,r,o,a,c,Ed,n),v.lineEnd=_,_()}return v}}(t,n):function(t){return wd({point:function(n,e){n=t(n,e),this.stream.point(n[0],n[1])}})}(t)};var zd=wd({point:function(t,n){this.stream.point(t*Tf,n*Tf)}});function Rd(t,n,e){function r(r,i){return[n+t*r,e-t*i]}return r.invert=function(r,i){return[(r-n)/t,(e-i)/t]},r}function Dd(t,n,e,r){var i=Pf(r),u=qf(r),o=i*t,a=u*t,c=i/t,f=u/t,l=(u*e-i*n)/t,s=(u*n+i*e)/t;function h(t,r){return[o*t-a*r+n,e-a*t-o*r]}return h.invert=function(t,n){return[c*t-f*n+l,s-f*t-c*n]},h}function Od(t){return qd((function(){return t}))()}function qd(t){var n,e,r,i,u,o,a,c,f,l,s=150,h=480,d=250,p=0,v=0,g=0,y=0,b=0,_=0,m=null,x=Bs,w=null,M=Mh,N=.5;function A(t){return c(t[0]*Tf,t[1]*Tf)}function k(t){return(t=c.invert(t[0],t[1]))&&[t[0]*kf,t[1]*kf]}function T(){var t=Dd(s,0,0,_).apply(null,n(p,v)),r=(_?Dd:Rd)(s,h-t[0],d-t[1],_);return e=gs(g,y,b),a=ps(n,r),c=ps(e,a),o=Pd(a,N),S()}function S(){return f=l=null,A}return A.stream=function(t){return f&&l===t?f:f=zd(function(t){return wd({point:function(n,e){var r=t(n,e);return this.stream.point(r[0],r[1])}})}(e)(x(o(M(l=t)))))},A.preclip=function(t){return arguments.length?(x=t,m=void 0,S()):x},A.postclip=function(t){return arguments.length?(M=t,w=r=i=u=null,S()):M},A.clipAngle=function(t){return arguments.length?(x=+t?Fs(m=t*Tf):(m=null,Bs),S()):m*kf},A.clipExtent=function(t){return arguments.length?(M=null==t?(w=r=i=u=null,Mh):Vs(w=+t[0][0],r=+t[0][1],i=+t[1][0],u=+t[1][1]),S()):null==w?null:[[w,r],[i,u]]},A.scale=function(t){return arguments.length?(s=+t,T()):s},A.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],T()):[h,d]},A.center=function(t){return arguments.length?(p=t[0]%360*Tf,v=t[1]%360*Tf,T()):[p*kf,v*kf]},A.rotate=function(t){return arguments.length?(g=t[0]%360*Tf,y=t[1]%360*Tf,b=t.length>2?t[2]%360*Tf:0,T()):[g*kf,y*kf,b*kf]},A.angle=function(t){return arguments.length?(_=t%360*Tf,T()):_*kf},A.precision=function(t){return arguments.length?(o=Pd(a,N=t*t),S()):Uf(N)},A.fitExtent=function(t,n){return Ad(A,t,n)},A.fitSize=function(t,n){return kd(A,t,n)},A.fitWidth=function(t,n){return Td(A,t,n)},A.fitHeight=function(t,n){return Sd(A,t,n)},function(){return n=t.apply(this,arguments),A.invert=n.invert&&k,T()}}function Ld(t){var n=0,e=wf/3,r=qd(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Tf,e=t[1]*Tf):[n*kf,e*kf]},i}function Ud(t,n){var e=qf(t),r=(e+qf(n))/2;if(Sf(r)<mf)return function(t){var n=Pf(t);function e(t,e){return[t*n,qf(e)/n]}return e.invert=function(t,e){return[t/n,Ff(e*n)]},e}(t);var i=1+e*(2*r-e),u=Uf(i)/r;function o(t,n){var e=Uf(i-2*r*qf(n))/r;return[e*qf(t*=r),u-e*Pf(t)]}return o.invert=function(t,n){var e=u-n;return[Cf(t,Sf(e))/r*Lf(e),Ff((i-(t*t+e*e)*r*r)/(2*r))]},o}var jd=function(){return Ld(Ud).scale(155.424).center([0,33.6442])},Bd=function(){return jd().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var Fd=function(){var t,n,e,r,i,u,o=Bd(),a=jd().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=jd().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,n){u=[t,n]}};function l(t){var n=t[0],o=t[1];return u=null,e.point(n,o),u||(r.point(n,o),u)||(i.point(n,o),u)}function s(){return t=n=null,l}return l.invert=function(t){var n=o.scale(),e=o.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},l.stream=function(e){return t&&n===e?t:(r=[o.stream(n=e),a.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e<i;)r[e].point(t,n)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),c.precision(t),s()):o.precision()},l.scale=function(t){return arguments.length?(o.scale(t),a.scale(.35*t),c.scale(t),l.translate(o.translate())):o.scale()},l.translate=function(t){if(!arguments.length)return o.translate();var n=o.scale(),u=+t[0],l=+t[1];return e=o.translate(t).clipExtent([[u-.455*n,l-.238*n],[u+.455*n,l+.238*n]]).stream(f),r=a.translate([u-.307*n,l+.201*n]).clipExtent([[u-.425*n+mf,l+.12*n+mf],[u-.214*n-mf,l+.234*n-mf]]).stream(f),i=c.translate([u-.205*n,l+.212*n]).clipExtent([[u-.214*n+mf,l+.166*n+mf],[u-.115*n-mf,l+.234*n-mf]]).stream(f),s()},l.fitExtent=function(t,n){return Ad(l,t,n)},l.fitSize=function(t,n){return kd(l,t,n)},l.fitWidth=function(t,n){return Td(l,t,n)},l.fitHeight=function(t,n){return Sd(l,t,n)},l.scale(1070)};function Yd(t){return function(n,e){var r=Pf(n),i=Pf(e),u=t(r*i);return[u*i*qf(n),u*qf(e)]}}function Id(t){return function(n,e){var r=Uf(n*n+e*e),i=t(r),u=qf(i),o=Pf(i);return[Cf(n*u,r*o),Ff(r&&e*u/r)]}}var Hd=Yd((function(t){return Uf(2/(1+t))}));Hd.invert=Id((function(t){return 2*Ff(t/2)}));var Vd=function(){return Od(Hd).scale(124.75).clipAngle(179.999)},Xd=Yd((function(t){return(t=Bf(t))&&t/qf(t)}));Xd.invert=Id((function(t){return t}));var Gd=function(){return Od(Xd).scale(79.4188).clipAngle(179.999)};function Wd(t,n){return[t,Df(jf((Mf+n)/2))]}Wd.invert=function(t,n){return[t,2*Ef(Rf(n))-Mf]};var Zd=function(){return $d(Wd).scale(961/Af)};function $d(t){var n,e,r,i=Od(t),u=i.center,o=i.scale,a=i.translate,c=i.clipExtent,f=null;function l(){var u=wf*o(),a=i(ms(i.rotate()).invert([0,0]));return c(null==f?[[a[0]-u,a[1]-u],[a[0]+u,a[1]+u]]:t===Wd?[[Math.max(a[0]-u,f),n],[Math.min(a[0]+u,e),r]]:[[f,Math.max(a[1]-u,n)],[e,Math.min(a[1]+u,r)]])}return i.scale=function(t){return arguments.length?(o(t),l()):o()},i.translate=function(t){return arguments.length?(a(t),l()):a()},i.center=function(t){return arguments.length?(u(t),l()):u()},i.clipExtent=function(t){return arguments.length?(null==t?f=n=e=r=null:(f=+t[0][0],n=+t[0][1],e=+t[1][0],r=+t[1][1]),l()):null==f?null:[[f,n],[e,r]]},l()}function Qd(t){return jf((Mf+t)/2)}function Kd(t,n){var e=Pf(t),r=t===n?qf(t):Df(e/Pf(n))/Df(Qd(n)/Qd(t)),i=e*Of(Qd(t),r)/r;if(!r)return Wd;function u(t,n){i>0?n<-Mf+mf&&(n=-Mf+mf):n>Mf-mf&&(n=Mf-mf);var e=i/Of(Qd(n),r);return[e*qf(r*t),i-e*Pf(r*t)]}return u.invert=function(t,n){var e=i-n,u=Lf(r)*Uf(t*t+e*e);return[Cf(t,Sf(e))/r*Lf(e),2*Ef(Of(i/u,1/r))-Mf]},u}var Jd=function(){return Ld(Kd).scale(109.5).parallels([30,30])};function tp(t,n){return[t,n]}tp.invert=tp;var np=function(){return Od(tp).scale(152.63)};function ep(t,n){var e=Pf(t),r=t===n?qf(t):(e-Pf(n))/(n-t),i=e/r+t;if(Sf(r)<mf)return tp;function u(t,n){var e=i-n,u=r*t;return[e*qf(u),i-e*Pf(u)]}return u.invert=function(t,n){var e=i-n;return[Cf(t,Sf(e))/r*Lf(e),i-Lf(r)*Uf(t*t+e*e)]},u}var rp=function(){return Ld(ep).scale(131.154).center([0,13.9389])},ip=1.340264,up=-.081106,op=893e-6,ap=.003796,cp=Uf(3)/2;function fp(t,n){var e=Ff(cp*qf(n)),r=e*e,i=r*r*r;return[t*Pf(e)/(cp*(ip+3*up*r+i*(7*op+9*ap*r))),e*(ip+up*r+i*(op+ap*r))]}fp.invert=function(t,n){for(var e,r=n,i=r*r,u=i*i*i,o=0;o<12&&(u=(i=(r-=e=(r*(ip+up*i+u*(op+ap*i))-n)/(ip+3*up*i+u*(7*op+9*ap*i)))*r)*i*i,!(Sf(e)<xf));++o);return[cp*t*(ip+3*up*i+u*(7*op+9*ap*i))/Pf(r),Ff(qf(r)/cp)]};var lp=function(){return Od(fp).scale(177.158)};function sp(t,n){var e=Pf(n),r=Pf(t)*e;return[e*qf(t)/r,qf(n)/r]}sp.invert=Id(Ef);var hp=function(){return Od(sp).scale(144.049).clipAngle(60)};function dp(t,n,e,r){return 1===t&&1===n&&0===e&&0===r?Mh:wd({point:function(i,u){this.stream.point(i*t+e,u*n+r)}})}var pp=function(){var t,n,e,r,i,u,o=1,a=0,c=0,f=1,l=1,s=Mh,h=null,d=Mh;function p(){return r=i=null,u}return u={stream:function(t){return r&&i===t?r:r=s(d(i=t))},postclip:function(r){return arguments.length?(d=r,h=t=n=e=null,p()):d},clipExtent:function(r){return arguments.length?(d=null==r?(h=t=n=e=null,Mh):Vs(h=+r[0][0],t=+r[0][1],n=+r[1][0],e=+r[1][1]),p()):null==h?null:[[h,t],[n,e]]},scale:function(t){return arguments.length?(s=dp((o=+t)*f,o*l,a,c),p()):o},translate:function(t){return arguments.length?(s=dp(o*f,o*l,a=+t[0],c=+t[1]),p()):[a,c]},reflectX:function(t){return arguments.length?(s=dp(o*(f=t?-1:1),o*l,a,c),p()):f<0},reflectY:function(t){return arguments.length?(s=dp(o*f,o*(l=t?-1:1),a,c),p()):l<0},fitExtent:function(t,n){return Ad(u,t,n)},fitSize:function(t,n){return kd(u,t,n)},fitWidth:function(t,n){return Td(u,t,n)},fitHeight:function(t,n){return Sd(u,t,n)}}};function vp(t,n){var e=n*n,r=e*e;return[t*(.8707-.131979*e+r*(r*(.003971*e-.001529*r)-.013791)),n*(1.007226+e*(.015085+r*(.028874*e-.044475-.005916*r)))]}vp.invert=function(t,n){var e,r=n,i=25;do{var u=r*r,o=u*u;r-=e=(r*(1.007226+u*(.015085+o*(.028874*u-.044475-.005916*o)))-n)/(1.007226+u*(.045255+o*(.259866*u-.311325-.005916*11*o)))}while(Sf(e)>mf&&--i>0);return[t/(.8707+(u=r*r)*(u*(u*u*u*(.003971-.001529*u)-.013791)-.131979)),r]};var gp=function(){return Od(vp).scale(175.295)};function yp(t,n){return[Pf(n)*qf(t),qf(n)]}yp.invert=Id(Ff);var bp=function(){return Od(yp).scale(249.5).clipAngle(90+mf)};function _p(t,n){var e=Pf(n),r=1+Pf(t)*e;return[e*qf(t)/r,qf(n)/r]}_p.invert=Id((function(t){return 2*Ef(t)}));var mp=function(){return Od(_p).scale(250).clipAngle(142)};function xp(t,n){return[Df(jf((Mf+n)/2)),-t]}xp.invert=function(t,n){return[-n,2*Ef(Rf(t))-Mf]};var wp=function(){var t=$d(xp),n=t.center,e=t.rotate;return t.center=function(t){return arguments.length?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return arguments.length?e([t[0],t[1],t.length>2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)};function Mp(t,n){return t.parent===n.parent?1:2}function Np(t,n){return t+n.x}function Ap(t,n){return Math.max(t,n.y)}var kp=function(){var t=Mp,n=1,e=1,r=!1;function i(i){var u,o=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(Np,0)/t.length}(e),n.y=function(t){return 1+t.reduce(Ap,0)}(e)):(n.x=u?o+=t(n,u):0,n.y=0,u=n)}));var a=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),f=a.x-t(a,c)/2,l=c.x+t(c,a)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-f)/(l-f)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i};function Tp(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 Sp(t,n){var e,r,i,u,o,a=new zp(t),c=+t.value&&(a.value=t.value),f=[a];for(null==n&&(n=Ep);e=f.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(o=i.length))for(e.children=new Array(o),u=o-1;u>=0;--u)f.push(r=e.children[u]=new zp(i[u])),r.parent=e,r.depth=e.depth+1;return a.eachBefore(Pp)}function Ep(t){return t.children}function Cp(t){t.data=t.data.data}function Pp(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function zp(t){this.data=t,this.depth=this.height=0,this.parent=null}zp.prototype=Sp.prototype={constructor:zp,count:function(){return this.eachAfter(Tp)},each:function(t){var n,e,r,i,u=this,o=[u];do{for(n=o.reverse(),o=[];u=n.pop();)if(t(u),e=u.children)for(r=0,i=e.length;r<i;++r)o.push(e[r])}while(o.length);return this},eachAfter:function(t){for(var n,e,r,i=this,u=[i],o=[];i=u.pop();)if(o.push(i),n=i.children)for(e=0,r=n.length;e<r;++e)u.push(n[e]);for(;i=o.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=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;t=e.pop(),n=r.pop();for(;t===n;)i=t,t=e.pop(),n=r.pop();return i}(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 Sp(this).eachBefore(Cp)}};var Rp=Array.prototype.slice;var Dp=function(t){for(var n,e,r=0,i=(t=function(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}(Rp.call(t))).length,u=[];r<i;)n=t[r],e&&Lp(e,n)?++r:(e=jp(u=Op(u,n)),r=0);return e};function Op(t,n){var e,r;if(Up(n,t))return[n];for(e=0;e<t.length;++e)if(qp(n,t[e])&&Up(Bp(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(qp(Bp(t[e],t[r]),n)&&qp(Bp(t[e],n),t[r])&&qp(Bp(t[r],n),t[e])&&Up(Fp(t[e],t[r],n),t))return[t[e],t[r],n];throw new Error}function qp(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 Lp(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 Up(t,n){for(var e=0;e<n.length;++e)if(!Lp(t,n[e]))return!1;return!0}function jp(t){switch(t.length){case 1:return{x:(n=t[0]).x,y:n.y,r:n.r};case 2:return Bp(t[0],t[1]);case 3:return Fp(t[0],t[1],t[2])}var n}function Bp(t,n){var e=t.x,r=t.y,i=t.r,u=n.x,o=n.y,a=n.r,c=u-e,f=o-r,l=a-i,s=Math.sqrt(c*c+f*f);return{x:(e+u+c/s*l)/2,y:(r+o+f/s*l)/2,r:(s+i+a)/2}}function Fp(t,n,e){var r=t.x,i=t.y,u=t.r,o=n.x,a=n.y,c=n.r,f=e.x,l=e.y,s=e.r,h=r-o,d=r-f,p=i-a,v=i-l,g=c-u,y=s-u,b=r*r+i*i-u*u,_=b-o*o-a*a+c*c,m=b-f*f-l*l+s*s,x=d*p-h*v,w=(p*m-v*_)/(2*x)-r,M=(v*g-p*y)/x,N=(d*_-h*m)/(2*x)-i,A=(h*y-d*g)/x,k=M*M+A*A-1,T=2*(u+w*M+N*A),S=w*w+N*N-u*u,E=-(k?(T+Math.sqrt(T*T-4*k*S))/(2*k):S/T);return{x:r+w+M*E,y:i+N+A*E,r:E}}function Yp(t,n,e){var r,i,u,o,a=t.x-n.x,c=t.y-n.y,f=a*a+c*c;f?(i=n.r+e.r,i*=i,o=t.r+e.r,i>(o*=o)?(r=(f+o-i)/(2*f),u=Math.sqrt(Math.max(0,o/f-r*r)),e.x=t.x-r*a-u*c,e.y=t.y-r*c+u*a):(r=(f+i-o)/(2*f),u=Math.sqrt(Math.max(0,i/f-r*r)),e.x=n.x+r*a-u*c,e.y=n.y+r*c+u*a)):(e.x=n.x+e.r,e.y=n.y)}function Ip(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 Hp(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,u=(n.y*e.r+e.y*n.r)/r;return i*i+u*u}function Vp(t){this._=t,this.next=null,this.previous=null}function Xp(t){if(!(i=t.length))return 0;var n,e,r,i,u,o,a,c,f,l,s;if((n=t[0]).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;Yp(e,n,r=t[2]),n=new Vp(n),e=new Vp(e),r=new Vp(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(a=3;a<i;++a){Yp(n._,e._,r=t[a]),r=new Vp(r),c=e.next,f=n.previous,l=e._.r,s=n._.r;do{if(l<=s){if(Ip(c._,r._)){e=c,n.next=e,e.previous=n,--a;continue t}l+=c._.r,c=c.next}else{if(Ip(f._,r._)){(n=f).next=e,e.previous=n,--a;continue t}s+=f._.r,f=f.previous}}while(c!==f.next);for(r.previous=n,r.next=e,n.next=e.previous=e=r,u=Hp(n);(r=r.next)!==e;)(o=Hp(r))<u&&(n=r,u=o);e=n.next}for(n=[e._],r=e;(r=r.next)!==e;)n.push(r._);for(r=Dp(n),a=0;a<i;++a)(n=t[a]).x-=r.x,n.y-=r.y;return r.r}var Gp=function(t){return Xp(t),t};function Wp(t){return null==t?null:Zp(t)}function Zp(t){if("function"!=typeof t)throw new Error;return t}function $p(){return 0}var Qp=function(t){return function(){return t}};function Kp(t){return Math.sqrt(t.value)}var Jp=function(){var t=null,n=1,e=1,r=$p;function i(i){return i.x=n/2,i.y=e/2,t?i.eachBefore(tv(t)).eachAfter(nv(r,.5)).eachBefore(ev(1)):i.eachBefore(tv(Kp)).eachAfter(nv($p,1)).eachAfter(nv(r,i.r/Math.min(n,e))).eachBefore(ev(Math.min(n,e)/(2*i.r))),i}return i.radius=function(n){return arguments.length?(t=Wp(n),i):t},i.size=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:Qp(+t),i):r},i};function tv(t){return function(n){n.children||(n.r=Math.max(0,+t(n)||0))}}function nv(t,n){return function(e){if(r=e.children){var r,i,u,o=r.length,a=t(e)*n||0;if(a)for(i=0;i<o;++i)r[i].r+=a;if(u=Xp(r),a)for(i=0;i<o;++i)r[i].r-=a;e.r=u+a}}}function ev(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)}}var rv=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)},iv=function(t,n,e,r,i){for(var u,o=t.children,a=-1,c=o.length,f=t.value&&(r-n)/t.value;++a<c;)(u=o[a]).y0=e,u.y1=i,u.x0=n,u.x1=n+=u.value*f},uv=function(){var t=1,n=1,e=0,r=!1;function i(i){var u=i.height+1;return i.x0=i.y0=e,i.x1=t,i.y1=n/u,i.eachBefore(function(t,n){return function(r){r.children&&iv(r,r.x0,t*(r.depth+1)/n,r.x1,t*(r.depth+2)/n);var i=r.x0,u=r.y0,o=r.x1-e,a=r.y1-e;o<i&&(i=o=(i+o)/2),a<u&&(u=a=(u+a)/2),r.x0=i,r.y0=u,r.x1=o,r.y1=a}}(n,u)),r&&i.eachBefore(rv),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(t){return arguments.length?(e=+t,i):e},i},ov="$",av={depth:-1},cv={};function fv(t){return t.id}function lv(t){return t.parentId}var sv=function(){var t=fv,n=lv;function e(e){var r,i,u,o,a,c,f,l=e.length,s=new Array(l),h={};for(i=0;i<l;++i)r=e[i],a=s[i]=new zp(r),null!=(c=t(r,i,e))&&(c+="")&&(h[f=ov+(a.id=c)]=f in h?cv:a);for(i=0;i<l;++i)if(a=s[i],null!=(c=n(e[i],i,e))&&(c+="")){if(!(o=h[ov+c]))throw new Error("missing: "+c);if(o===cv)throw new Error("ambiguous: "+c);o.children?o.children.push(a):o.children=[a],a.parent=o}else{if(u)throw new Error("multiple roots");u=a}if(!u)throw new Error("no root");if(u.parent=av,u.eachBefore((function(t){t.depth=t.parent.depth+1,--l})).eachBefore(Pp),u.parent=null,l>0)throw new Error("cycle");return u}return e.id=function(n){return arguments.length?(t=Zp(n),e):t},e.parentId=function(t){return arguments.length?(n=Zp(t),e):n},e};function hv(t,n){return t.parent===n.parent?1:2}function dv(t){var n=t.children;return n?n[0]:t.t}function pv(t){var n=t.children;return n?n[n.length-1]:t.t}function vv(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 gv(t,n,e){return t.a.parent===n.parent?t.a:e}function yv(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}yv.prototype=Object.create(zp.prototype);var bv=function(){var t=hv,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,u,o=new yv(t,0),a=[o];n=a.pop();)if(r=n._.children)for(n.children=new Array(u=r.length),i=u-1;i>=0;--i)a.push(e=n.children[i]=new yv(r[i],i)),e.parent=n;return(o.parent=new yv(null,0)).children=[o],o}(i);if(c.eachAfter(u),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(a);else{var f=i,l=i,s=i;i.eachBefore((function(t){t.x<f.x&&(f=t),t.x>l.x&&(l=t),t.depth>s.depth&&(s=t)}));var h=f===l?1:t(f,l)/2,d=h-f.x,p=n/(l.x+h+d),v=e/(s.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*v}))}return i}function u(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,u=i.length;--u>=0;)(n=i[u]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var u=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-u):n.z=u}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,u=n,o=n,a=e,c=u.parent.children[0],f=u.m,l=o.m,s=a.m,h=c.m;a=pv(a),u=dv(u),a&&u;)c=dv(c),(o=pv(o)).a=n,(i=a.z+s-u.z-f+t(a._,u._))>0&&(vv(gv(a,n,r),n,i),f+=i,l+=i),s+=a.m,f+=u.m,h+=c.m,l+=o.m;a&&!pv(o)&&(o.t=a,o.m+=s-l),u&&!dv(c)&&(c.t=u,c.m+=f-h,r=n)}return r}(n,i,n.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i},_v=function(t,n,e,r,i){for(var u,o=t.children,a=-1,c=o.length,f=t.value&&(i-e)/t.value;++a<c;)(u=o[a]).x0=n,u.x1=r,u.y0=e,u.y1=e+=u.value*f},mv=(1+Math.sqrt(5))/2;function xv(t,n,e,r,i,u){for(var o,a,c,f,l,s,h,d,p,v,g,y=[],b=n.children,_=0,m=0,x=b.length,w=n.value;_<x;){c=i-e,f=u-r;do{l=b[m++].value}while(!l&&m<x);for(s=h=l,g=l*l*(v=Math.max(f/c,c/f)/(w*t)),p=Math.max(h/g,g/s);m<x;++m){if(l+=a=b[m].value,a<s&&(s=a),a>h&&(h=a),g=l*l*v,(d=Math.max(h/g,g/s))>p){l-=a;break}p=d}y.push(o={value:l,dice:c<f,children:b.slice(_,m)}),o.dice?iv(o,e,r,i,w?r+=f*l/w:u):_v(o,e,r,w?e+=c*l/w:i,u),w-=l,_=m}return y}var wv=function t(n){function e(t,e,r,i,u){xv(n,t,e,r,i,u)}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(mv),Mv=function(){var t=wv,n=!1,e=1,r=1,i=[0],u=$p,o=$p,a=$p,c=$p,f=$p;function l(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(s),i=[0],n&&t.eachBefore(rv),t}function s(n){var e=i[n.depth],r=n.x0+e,l=n.y0+e,s=n.x1-e,h=n.y1-e;s<r&&(r=s=(r+s)/2),h<l&&(l=h=(l+h)/2),n.x0=r,n.y0=l,n.x1=s,n.y1=h,n.children&&(e=i[n.depth+1]=u(n)/2,r+=f(n)-e,l+=o(n)-e,(s-=a(n)-e)<r&&(r=s=(r+s)/2),(h-=c(n)-e)<l&&(l=h=(l+h)/2),t(n,r,l,s,h))}return l.round=function(t){return arguments.length?(n=!!t,l):n},l.size=function(t){return arguments.length?(e=+t[0],r=+t[1],l):[e,r]},l.tile=function(n){return arguments.length?(t=Zp(n),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(u="function"==typeof t?t:Qp(+t),l):u},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:Qp(+t),l):o},l.paddingRight=function(t){return arguments.length?(a="function"==typeof t?t:Qp(+t),l):a},l.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Qp(+t),l):c},l.paddingLeft=function(t){return arguments.length?(f="function"==typeof t?t:Qp(+t),l):f},l},Nv=function(t,n,e,r,i){var u,o,a=t.children,c=a.length,f=new Array(c+1);for(f[0]=o=u=0;u<c;++u)f[u+1]=o+=a[u].value;!function t(n,e,r,i,u,o,c){if(n>=e-1){var l=a[n];return l.x0=i,l.y0=u,l.x1=o,void(l.y1=c)}var s=f[n],h=r/2+s,d=n+1,p=e-1;for(;d<p;){var v=d+p>>>1;f[v]<h?d=v+1:p=v}h-f[d-1]<f[d]-h&&n+1<d&&--d;var g=f[d]-s,y=r-g;if(o-i>c-u){var b=(i*y+o*g)/r;t(n,d,g,i,u,b,c),t(d,e,y,b,u,o,c)}else{var _=(u*y+c*g)/r;t(n,d,g,i,u,o,_),t(d,e,y,i,_,o,c)}}(0,c,t.value,n,e,r,i)},Av=function(t,n,e,r,i){(1&t.depth?_v:iv)(t,n,e,r,i)},kv=function t(n){function e(t,e,r,i,u){if((o=t._squarify)&&o.ratio===n)for(var o,a,c,f,l,s=-1,h=o.length,d=t.value;++s<h;){for(c=(a=o[s]).children,f=a.value=0,l=c.length;f<l;++f)a.value+=c[f].value;a.dice?iv(a,e,r,i,r+=(u-r)*a.value/d):_v(a,e,r,e+=(i-e)*a.value/d,u),d-=a.value}else t._squarify=o=xv(n,t,e,r,i,u),o.ratio=n}return e.ratio=function(n){return t((n=+n)>1?n:1)},e}(mv),Tv=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},Sv=function(t,n){var e=ve(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},Ev=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},Cv=Math.SQRT2;function Pv(t){return((t=Math.exp(t))+1/t)/2}var zv=function(t,n){var e,r,i=t[0],u=t[1],o=t[2],a=n[0],c=n[1],f=n[2],l=a-i,s=c-u,h=l*l+s*s;if(h<1e-12)r=Math.log(f/o)/Cv,e=function(t){return[i+t*l,u+t*s,o*Math.exp(Cv*t*r)]};else{var d=Math.sqrt(h),p=(f*f-o*o+4*h)/(2*o*2*d),v=(f*f-o*o-4*h)/(2*f*2*d),g=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-g)/Cv,e=function(t){var n,e=t*r,a=Pv(g),c=o/(2*d)*(a*(n=Cv*e+g,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+c*l,u+c*s,o*a/Pv(Cv*e+g)]}}return e.duration=1e3*r,e};function Rv(t){return function(n,e){var r=t((n=ae(n)).h,(e=ae(e)).h),i=ye(n.s,e.s),u=ye(n.l,e.l),o=ye(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=u(t),n.opacity=o(t),n+""}}}var Dv=Rv(ve),Ov=Rv(ye);function qv(t,n){var e=ye((t=Du(t)).l,(n=Du(n)).l),r=ye(t.a,n.a),i=ye(t.b,n.b),u=ye(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=u(n),t+""}}function Lv(t){return function(n,e){var r=t((n=Yu(n)).h,(e=Yu(e)).h),i=ye(n.c,e.c),u=ye(n.l,e.l),o=ye(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=u(t),n.opacity=o(t),n+""}}}var Uv=Lv(ve),jv=Lv(ye);function Bv(t){return function n(e){function r(n,r){var i=t((n=Qu(n)).h,(r=Qu(r)).h),u=ye(n.s,r.s),o=ye(n.l,r.l),a=ye(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=u(t),n.l=o(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}var Fv=Bv(ve),Yv=Bv(ye);function Iv(t,n){for(var e=0,r=n.length-1,i=n[0],u=new Array(r<0?0:r);e<r;)u[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return u[n](t-n)}}var Hv=function(t,n){for(var e=new Array(n),r=0;r<n;++r)e[r]=t(r/(n-1));return e},Vv=function(t){for(var n,e=-1,r=t.length,i=t[r-1],u=0;++e<r;)n=i,i=t[e],u+=n[1]*i[0]-n[0]*i[1];return u/2},Xv=function(t){for(var n,e,r=-1,i=t.length,u=0,o=0,a=t[i-1],c=0;++r<i;)n=a,a=t[r],c+=e=n[0]*a[1]-a[0]*n[1],u+=(n[0]+a[0])*e,o+=(n[1]+a[1])*e;return[u/(c*=3),o/c]},Gv=function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])};function Wv(t,n){return t[0]-n[0]||t[1]-n[1]}function Zv(t){for(var n=t.length,e=[0,1],r=2,i=2;i<n;++i){for(;r>1&&Gv(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}var $v=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(Wv),n=0;n<e;++n)i[n]=[r[n][0],-r[n][1]];var u=Zv(r),o=Zv(i),a=o[0]===u[0],c=o[o.length-1]===u[u.length-1],f=[];for(n=u.length-1;n>=0;--n)f.push(t[r[u[n]][2]]);for(n=+a;n<o.length-c;++n)f.push(t[r[o[n]][2]]);return f},Qv=function(t,n){for(var e,r,i=t.length,u=t[i-1],o=n[0],a=n[1],c=u[0],f=u[1],l=!1,s=0;s<i;++s)e=(u=t[s])[0],(r=u[1])>a!=f>a&&o<(c-e)*(a-r)/(f-r)+e&&(l=!l),c=e,f=r;return l},Kv=function(t){for(var n,e,r=-1,i=t.length,u=t[i-1],o=u[0],a=u[1],c=0;++r<i;)n=o,e=a,n-=o=(u=t[r])[0],e-=a=u[1],c+=Math.sqrt(n*n+e*e);return c},Jv=function(){return Math.random()},tg=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}(Jv),ng=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var u;if(null!=r)u=r,r=null;else do{r=2*n()-1,u=2*n()-1,i=r*r+u*u}while(!i||i>1);return t+e*u*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(Jv),eg=function t(n){function e(){var t=ng.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(Jv),rg=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}(Jv),ig=function t(n){function e(t){var e=rg.source(n)(t);return function(){return e()/t}}return e.source=t,e}(Jv),ug=function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(Jv);function og(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function ag(t,n){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(n).domain(t)}return this}var cg=Array.prototype,fg=cg.map,lg=cg.slice,sg={name:"implicit"};function hg(){var t=lu(),n=[],e=[],r=sg;function i(i){var u=i+"",o=t.get(u);if(!o){if(r!==sg)return r;t.set(u,o=n.push(i))}return e[(o-1)%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=lu();for(var r,u,o=-1,a=e.length;++o<a;)t.has(u=(r=e[o])+"")||t.set(u,n.push(r));return i},i.range=function(t){return arguments.length?(e=lg.call(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return hg(n,e).unknown(r)},og.apply(i,arguments),i}function dg(){var t,n,e=hg().unknown(void 0),r=e.domain,i=e.range,u=[0,1],o=!1,a=0,c=0,f=.5;function l(){var e=r().length,l=u[1]<u[0],s=u[l-0],h=u[1-l];t=(h-s)/Math.max(1,e-a+2*c),o&&(t=Math.floor(t)),s+=(h-s-t*(e-a))*f,n=t*(1-a),o&&(s=Math.round(s),n=Math.round(n));var d=w(e).map((function(n){return s+t*n}));return i(l?d.reverse():d)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),l()):r()},e.range=function(t){return arguments.length?(u=[+t[0],+t[1]],l()):u.slice()},e.rangeRound=function(t){return u=[+t[0],+t[1]],o=!0,l()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(o=!!t,l()):o},e.padding=function(t){return arguments.length?(a=Math.min(1,c=+t),l()):a},e.paddingInner=function(t){return arguments.length?(a=Math.min(1,t),l()):a},e.paddingOuter=function(t){return arguments.length?(c=+t,l()):c},e.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),l()):f},e.copy=function(){return dg(r(),u).round(o).paddingInner(a).paddingOuter(c).align(f)},og.apply(l(),arguments)}function pg(){return function t(n){var e=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return t(e())},n}(dg.apply(null,arguments).paddingInner(1))}var vg=function(t){return function(){return t}},gg=function(t){return+t},yg=[0,1];function bg(t){return t}function _g(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:vg(isNaN(n)?NaN:.5)}function mg(t){var n,e=t[0],r=t[t.length-1];return e>r&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function xg(t,n,e){var r=t[0],i=t[1],u=n[0],o=n[1];return i<r?(r=_g(i,r),u=e(o,u)):(r=_g(r,i),u=e(u,o)),function(t){return u(r(t))}}function wg(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),u=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<r;)i[o]=_g(t[o],t[o+1]),u[o]=e(n[o],n[o+1]);return function(n){var e=c(t,n,1,r)-1;return u[e](i[e](n))}}function Mg(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ng(){var t,n,e,r,i,u,o=yg,a=yg,c=De,f=bg;function l(){return r=Math.min(o.length,a.length)>2?wg:xg,i=u=null,s}function s(n){return isNaN(n=+n)?e:(i||(i=r(o.map(t),a,c)))(t(f(n)))}return s.invert=function(e){return f(n((u||(u=r(a,o.map(t),Te)))(e)))},s.domain=function(t){return arguments.length?(o=fg.call(t,gg),f===bg||(f=mg(o)),l()):o.slice()},s.range=function(t){return arguments.length?(a=lg.call(t),l()):a.slice()},s.rangeRound=function(t){return a=lg.call(t),c=Ev,l()},s.clamp=function(t){return arguments.length?(f=t?mg(o):bg,s):f!==bg},s.interpolate=function(t){return arguments.length?(c=t,l()):c},s.unknown=function(t){return arguments.length?(e=t,s):e},function(e,r){return t=e,n=r,l()}}function Ag(t,n){return Ng()(t,n)}var kg=function(t,n,e,r){var i,u=S(t,n,e);switch((r=Kc(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=pf(u,o))||(r.precision=i),rf(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=vf(u,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=df(u))||(r.precision=i-2*("%"===r.type))}return ef(r)};function Tg(t){var n=t.domain;return t.ticks=function(t){var e=n();return k(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return kg(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),u=0,o=i.length-1,a=i[u],c=i[o];return c<a&&(r=a,a=c,c=r,r=u,u=o,o=r),(r=T(a,c,e))>0?r=T(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=T(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[u]=Math.floor(a/r)*r,i[o]=Math.ceil(c/r)*r,n(i)):r<0&&(i[u]=Math.ceil(a*r)/r,i[o]=Math.floor(c*r)/r,n(i)),t},t}function Sg(){var t=Ag(bg,bg);return t.copy=function(){return Mg(t,Sg())},og.apply(t,arguments),Tg(t)}function Eg(t){var n;function e(t){return isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=fg.call(n,gg),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return Eg(t).unknown(n)},t=arguments.length?fg.call(t,gg):[0,1],Tg(e)}var Cg=function(t,n){var e,r=0,i=(t=t.slice()).length-1,u=t[r],o=t[i];return o<u&&(e=r,r=i,i=e,e=u,u=o,o=e),t[r]=n.floor(u),t[i]=n.ceil(o),t};function Pg(t){return Math.log(t)}function zg(t){return Math.exp(t)}function Rg(t){return-Math.log(-t)}function Dg(t){return-Math.exp(-t)}function Og(t){return isFinite(t)?+("1e"+t):t<0?0:t}function qg(t){return function(n){return-t(-n)}}function Lg(t){var n,e,r=t(Pg,zg),i=r.domain,u=10;function o(){return n=function(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})}(u),e=function(t){return 10===t?Og:t===Math.E?Math.exp:function(n){return Math.pow(t,n)}}(u),i()[0]<0?(n=qg(n),e=qg(e),t(Rg,Dg)):t(Pg,zg),r}return r.base=function(t){return arguments.length?(u=+t,o()):u},r.domain=function(t){return arguments.length?(i(t),o()):i()},r.ticks=function(t){var r,o=i(),a=o[0],c=o[o.length-1];(r=c<a)&&(h=a,a=c,c=h);var f,l,s,h=n(a),d=n(c),p=null==t?10:+t,v=[];if(!(u%1)&&d-h<p){if(h=Math.round(h)-1,d=Math.round(d)+1,a>0){for(;h<d;++h)for(l=1,f=e(h);l<u;++l)if(!((s=f*l)<a)){if(s>c)break;v.push(s)}}else for(;h<d;++h)for(l=u-1,f=e(h);l>=1;--l)if(!((s=f*l)<a)){if(s>c)break;v.push(s)}}else v=k(h,d,Math.min(d-h,p)).map(e);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===u?".0e":","),"function"!=typeof i&&(i=ef(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,u*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*u<u-.5&&(r*=u),r<=o?i(t):""}},r.nice=function(){return i(Cg(i(),{floor:function(t){return e(Math.floor(n(t)))},ceil:function(t){return e(Math.ceil(n(t)))}}))},r}function Ug(){var t=Lg(Ng()).domain([1,10]);return t.copy=function(){return Mg(t,Ug()).base(t.base())},og.apply(t,arguments),t}function jg(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function Bg(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Fg(t){var n=1,e=t(jg(n),Bg(n));return e.constant=function(e){return arguments.length?t(jg(n=+e),Bg(n)):n},Tg(e)}function Yg(){var t=Fg(Ng());return t.copy=function(){return Mg(t,Yg()).constant(t.constant())},og.apply(t,arguments)}function Ig(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Hg(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Vg(t){return t<0?-t*t:t*t}function Xg(t){var n=t(bg,bg),e=1;function r(){return 1===e?t(bg,bg):.5===e?t(Hg,Vg):t(Ig(e),Ig(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},Tg(n)}function Gg(){var t=Xg(Ng());return t.copy=function(){return Mg(t,Gg()).exponent(t.exponent())},og.apply(t,arguments),t}function Wg(){return Gg.apply(null,arguments).exponent(.5)}function Zg(){var t,n=[],e=[],i=[];function u(){var t=0,r=Math.max(1,e.length);for(i=new Array(r-1);++t<r;)i[t-1]=P(n,t/r);return o}function o(n){return isNaN(n=+n)?t:e[c(i,n)]}return o.invertExtent=function(t){var r=e.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:n[0],r<i.length?i[r]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(var e,i=0,o=t.length;i<o;++i)null==(e=t[i])||isNaN(e=+e)||n.push(e);return n.sort(r),u()},o.range=function(t){return arguments.length?(e=lg.call(t),u()):e.slice()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.quantiles=function(){return i.slice()},o.copy=function(){return Zg().domain(n).range(e).unknown(t)},og.apply(o,arguments)}function $g(){var t,n=0,e=1,r=1,i=[.5],u=[0,1];function o(n){return n<=n?u[c(i,n,0,r)]:t}function a(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return o}return o.domain=function(t){return arguments.length?(n=+t[0],e=+t[1],a()):[n,e]},o.range=function(t){return arguments.length?(r=(u=lg.call(t)).length-1,a()):u.slice()},o.invertExtent=function(t){var o=u.indexOf(t);return o<0?[NaN,NaN]:o<1?[n,i[0]]:o>=r?[i[r-1],e]:[i[o-1],i[o]]},o.unknown=function(n){return arguments.length?(t=n,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return $g().domain([n,e]).range(u).unknown(t)},og.apply(Tg(o),arguments)}function Qg(){var t,n=[.5],e=[0,1],r=1;function i(i){return i<=i?e[c(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=lg.call(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=lg.call(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Qg().domain(n).range(e).unknown(t)},og.apply(i,arguments)}var Kg=new Date,Jg=new Date;function ty(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},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,u){var o,a=[];if(e=i.ceil(e),u=null==u?1:Math.floor(u),!(e<r&&u>0))return a;do{a.push(o=new Date(+e)),n(e,u),t(e)}while(o<e&&e<r);return a},i.filter=function(e){return ty((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 Kg.setTime(+n),Jg.setTime(+r),t(Kg),t(Jg),Math.floor(e(Kg,Jg))},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}var ny=ty((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()}));ny.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ty((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 ey=ny,ry=ny.range,iy=ty((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()})),uy=iy,oy=iy.range,ay=6e4,cy=6048e5;function fy(t){return ty((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())*ay)/cy}))}var ly=fy(0),sy=fy(1),hy=fy(2),dy=fy(3),py=fy(4),vy=fy(5),gy=fy(6),yy=ly.range,by=sy.range,_y=hy.range,my=dy.range,xy=py.range,wy=vy.range,My=gy.range,Ny=ty((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())*ay)/864e5}),(function(t){return t.getDate()-1})),Ay=Ny,ky=Ny.range,Ty=ty((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*ay)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()})),Sy=Ty,Ey=Ty.range,Cy=ty((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+n*ay)}),(function(t,n){return(n-t)/ay}),(function(t){return t.getMinutes()})),Py=Cy,zy=Cy.range,Ry=ty((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()})),Dy=Ry,Oy=Ry.range,qy=ty((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));qy.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ty((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):qy:null};var Ly=qy,Uy=qy.range;function jy(t){return ty((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)/cy}))}var By=jy(0),Fy=jy(1),Yy=jy(2),Iy=jy(3),Hy=jy(4),Vy=jy(5),Xy=jy(6),Gy=By.range,Wy=Fy.range,Zy=Yy.range,$y=Iy.range,Qy=Hy.range,Ky=Vy.range,Jy=Xy.range,tb=ty((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})),nb=tb,eb=tb.range,rb=ty((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()}));rb.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ty((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 ib=rb,ub=rb.range;function ob(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 ab(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 cb(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function fb(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,u=t.days,o=t.shortDays,a=t.months,c=t.shortMonths,f=xb(i),l=wb(i),s=xb(u),h=wb(u),d=xb(o),p=wb(o),v=xb(a),g=wb(a),y=xb(c),b=wb(c),_={a:function(t){return o[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Ib,e:Ib,f:Wb,H:Hb,I:Vb,j:Xb,L:Gb,m:Zb,M:$b,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:N_,s:A_,S:Qb,u:Kb,U:Jb,V:t_,w:n_,W:e_,x:null,X:null,y:r_,Y:i_,Z:u_,"%":M_},m={a:function(t){return o[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:o_,e:o_,f:s_,H:a_,I:c_,j:f_,L:l_,m:h_,M:d_,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:N_,s:A_,S:p_,u:v_,U:g_,V:y_,w:b_,W:__,x:null,X:null,y:m_,Y:x_,Z:w_,"%":M_},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=b[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=g[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return N(t,n,e,r)},d:Rb,e:Rb,f:jb,H:Ob,I:Ob,j:Db,L:Ub,m:zb,M:qb,p:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.p=l[r[0].toLowerCase()],e+r[0].length):-1},q:Pb,Q:Fb,s:Yb,S:Lb,u:Nb,U:Ab,V:kb,w:Mb,W:Tb,x:function(t,n,r){return N(t,e,n,r)},X:function(t,n,e){return N(t,r,n,e)},y:Eb,Y:Sb,Z:Cb,"%":Bb};function w(t,n){return function(e){var r,i,u,o=[],a=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++a<f;)37===t.charCodeAt(a)&&(o.push(t.slice(c,a)),null!=(i=vb[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(u=n[r])&&(r=u(e,i)),o.push(r),c=a+1);return o.push(t.slice(c,a)),o.join("")}}function M(t,n){return function(e){var r,i,u=cb(1900,void 0,1);if(N(u,t,e+="",0)!=e.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(1e3*u.s+("L"in u?u.L:0));if(!n||"Z"in u||(u.Z=0),"p"in u&&(u.H=u.H%12+12*u.p),void 0===u.m&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(i=(r=ab(cb(u.y,0,1))).getUTCDay(),r=i>4||0===i?Fy.ceil(r):Fy(r),r=nb.offset(r,7*(u.V-1)),u.y=r.getUTCFullYear(),u.m=r.getUTCMonth(),u.d=r.getUTCDate()+(u.w+6)%7):(i=(r=ob(cb(u.y,0,1))).getDay(),r=i>4||0===i?sy.ceil(r):sy(r),r=Ay.offset(r,7*(u.V-1)),u.y=r.getFullYear(),u.m=r.getMonth(),u.d=r.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),i="Z"in u?ab(cb(u.y,0,1)).getUTCDay():ob(cb(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(i+5)%7:u.w+7*u.U-(i+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,ab(u)):ob(u)}}function N(t,n,e,r){for(var i,u,o=0,a=n.length,c=e.length;o<a;){if(r>=c)return-1;if(37===(i=n.charCodeAt(o++))){if(i=n.charAt(o++),!(u=x[i in vb?n.charAt(o++):i])||(r=u(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return(_.x=w(e,_),_.X=w(r,_),_.c=w(n,_),m.x=w(e,m),m.X=w(r,m),m.c=w(n,m),{format:function(t){var n=w(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",m);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}})}var lb,sb,hb,db,pb,vb={"-":"",_:" ",0:"0"},gb=/^\s*\d+/,yb=/^%/,bb=/[\\^$*+?|[\]().{}]/g;function _b(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",u=i.length;return r+(u<e?new Array(e-u+1).join(n)+i:i)}function mb(t){return t.replace(bb,"\\$&")}function xb(t){return new RegExp("^(?:"+t.map(mb).join("|")+")","i")}function wb(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function Mb(t,n,e){var r=gb.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Nb(t,n,e){var r=gb.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function Ab(t,n,e){var r=gb.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function kb(t,n,e){var r=gb.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function Tb(t,n,e){var r=gb.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function Sb(t,n,e){var r=gb.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Eb(t,n,e){var r=gb.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function Cb(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 Pb(t,n,e){var r=gb.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function zb(t,n,e){var r=gb.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Rb(t,n,e){var r=gb.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Db(t,n,e){var r=gb.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Ob(t,n,e){var r=gb.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function qb(t,n,e){var r=gb.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Lb(t,n,e){var r=gb.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Ub(t,n,e){var r=gb.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function jb(t,n,e){var r=gb.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Bb(t,n,e){var r=yb.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Fb(t,n,e){var r=gb.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Yb(t,n,e){var r=gb.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function Ib(t,n){return _b(t.getDate(),n,2)}function Hb(t,n){return _b(t.getHours(),n,2)}function Vb(t,n){return _b(t.getHours()%12||12,n,2)}function Xb(t,n){return _b(1+Ay.count(ey(t),t),n,3)}function Gb(t,n){return _b(t.getMilliseconds(),n,3)}function Wb(t,n){return Gb(t,n)+"000"}function Zb(t,n){return _b(t.getMonth()+1,n,2)}function $b(t,n){return _b(t.getMinutes(),n,2)}function Qb(t,n){return _b(t.getSeconds(),n,2)}function Kb(t){var n=t.getDay();return 0===n?7:n}function Jb(t,n){return _b(ly.count(ey(t)-1,t),n,2)}function t_(t,n){var e=t.getDay();return t=e>=4||0===e?py(t):py.ceil(t),_b(py.count(ey(t),t)+(4===ey(t).getDay()),n,2)}function n_(t){return t.getDay()}function e_(t,n){return _b(sy.count(ey(t)-1,t),n,2)}function r_(t,n){return _b(t.getFullYear()%100,n,2)}function i_(t,n){return _b(t.getFullYear()%1e4,n,4)}function u_(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+_b(n/60|0,"0",2)+_b(n%60,"0",2)}function o_(t,n){return _b(t.getUTCDate(),n,2)}function a_(t,n){return _b(t.getUTCHours(),n,2)}function c_(t,n){return _b(t.getUTCHours()%12||12,n,2)}function f_(t,n){return _b(1+nb.count(ib(t),t),n,3)}function l_(t,n){return _b(t.getUTCMilliseconds(),n,3)}function s_(t,n){return l_(t,n)+"000"}function h_(t,n){return _b(t.getUTCMonth()+1,n,2)}function d_(t,n){return _b(t.getUTCMinutes(),n,2)}function p_(t,n){return _b(t.getUTCSeconds(),n,2)}function v_(t){var n=t.getUTCDay();return 0===n?7:n}function g_(t,n){return _b(By.count(ib(t)-1,t),n,2)}function y_(t,n){var e=t.getUTCDay();return t=e>=4||0===e?Hy(t):Hy.ceil(t),_b(Hy.count(ib(t),t)+(4===ib(t).getUTCDay()),n,2)}function b_(t){return t.getUTCDay()}function __(t,n){return _b(Fy.count(ib(t)-1,t),n,2)}function m_(t,n){return _b(t.getUTCFullYear()%100,n,2)}function x_(t,n){return _b(t.getUTCFullYear()%1e4,n,4)}function w_(){return"+0000"}function M_(){return"%"}function N_(t){return+t}function A_(t){return Math.floor(+t/1e3)}function k_(t){return lb=fb(t),sb=lb.format,hb=lb.parse,db=lb.utcFormat,pb=lb.utcParse,lb}k_({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 T_=1e3,S_=60*T_,E_=60*S_,C_=24*E_,P_=7*C_,z_=30*C_,R_=365*C_;function D_(t){return new Date(t)}function O_(t){return t instanceof Date?+t:+new Date(+t)}function q_(t,n,e,r,u,o,a,c,f){var l=Ag(bg,bg),s=l.invert,h=l.domain,d=f(".%L"),p=f(":%S"),v=f("%I:%M"),g=f("%I %p"),y=f("%a %d"),b=f("%b %d"),_=f("%B"),m=f("%Y"),x=[[a,1,T_],[a,5,5*T_],[a,15,15*T_],[a,30,30*T_],[o,1,S_],[o,5,5*S_],[o,15,15*S_],[o,30,30*S_],[u,1,E_],[u,3,3*E_],[u,6,6*E_],[u,12,12*E_],[r,1,C_],[r,2,2*C_],[e,1,P_],[n,1,z_],[n,3,3*z_],[t,1,R_]];function w(i){return(a(i)<i?d:o(i)<i?p:u(i)<i?v:r(i)<i?g:n(i)<i?e(i)<i?y:b:t(i)<i?_:m)(i)}function M(n,e,r,u){if(null==n&&(n=10),"number"==typeof n){var o=Math.abs(r-e)/n,a=i((function(t){return t[2]})).right(x,o);a===x.length?(u=S(e/R_,r/R_,n),n=t):a?(u=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],n=a[0]):(u=Math.max(S(e,r,n),1),n=c)}return null==u?n:n.every(u)}return l.invert=function(t){return new Date(s(t))},l.domain=function(t){return arguments.length?h(fg.call(t,O_)):h().map(D_)},l.ticks=function(t,n){var e,r=h(),i=r[0],u=r[r.length-1],o=u<i;return o&&(e=i,i=u,u=e),e=(e=M(t,i,u,n))?e.range(i,u+1):[],o?e.reverse():e},l.tickFormat=function(t,n){return null==n?w:f(n)},l.nice=function(t,n){var e=h();return(t=M(t,e[0],e[e.length-1],n))?h(Cg(e,t)):l},l.copy=function(){return Mg(l,q_(t,n,e,r,u,o,a,c,f))},l}var L_=function(){return og.apply(q_(ey,uy,ly,Ay,Sy,Py,Dy,Ly,sb).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},U_=ty((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()})),j_=U_,B_=U_.range,F_=ty((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()})),Y_=F_,I_=F_.range,H_=ty((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*ay)}),(function(t,n){return(n-t)/ay}),(function(t){return t.getUTCMinutes()})),V_=H_,X_=H_.range,G_=function(){return og.apply(q_(ib,j_,By,nb,Y_,V_,Dy,Ly,db).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function W_(){var t,n,e,r,i,u=0,o=1,a=bg,c=!1;function f(n){return isNaN(n=+n)?i:a(0===e?.5:(n=(r(n)-t)*e,c?Math.max(0,Math.min(1,n)):n))}return f.domain=function(i){return arguments.length?(t=r(u=+i[0]),n=r(o=+i[1]),e=t===n?0:1/(n-t),f):[u,o]},f.clamp=function(t){return arguments.length?(c=!!t,f):c},f.interpolator=function(t){return arguments.length?(a=t,f):a},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i){return r=i,t=i(u),n=i(o),e=t===n?0:1/(n-t),f}}function Z_(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function $_(){var t=Tg(W_()(bg));return t.copy=function(){return Z_(t,$_())},ag.apply(t,arguments)}function Q_(){var t=Lg(W_()).domain([1,10]);return t.copy=function(){return Z_(t,Q_()).base(t.base())},ag.apply(t,arguments)}function K_(){var t=Fg(W_());return t.copy=function(){return Z_(t,K_()).constant(t.constant())},ag.apply(t,arguments)}function J_(){var t=Xg(W_());return t.copy=function(){return Z_(t,J_()).exponent(t.exponent())},ag.apply(t,arguments)}function tm(){return J_.apply(null,arguments).exponent(.5)}function nm(){var t=[],n=bg;function e(e){if(!isNaN(e=+e))return n((c(t,e)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var i,u=0,o=n.length;u<o;++u)null==(i=n[u])||isNaN(i=+i)||t.push(i);return t.sort(r),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return nm(n).domain(t)},ag.apply(e,arguments)}function em(){var t,n,e,r,i,u,o,a=0,c=.5,f=1,l=bg,s=!1;function h(t){return isNaN(t=+t)?o:(t=.5+((t=+u(t))-n)*(t<n?r:i),l(s?Math.max(0,Math.min(1,t)):t))}return h.domain=function(o){return arguments.length?(t=u(a=+o[0]),n=u(c=+o[1]),e=u(f=+o[2]),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),h):[a,c,f]},h.clamp=function(t){return arguments.length?(s=!!t,h):s},h.interpolator=function(t){return arguments.length?(l=t,h):l},h.unknown=function(t){return arguments.length?(o=t,h):o},function(o){return u=o,t=o(a),n=o(c),e=o(f),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),h}}function rm(){var t=Tg(em()(bg));return t.copy=function(){return Z_(t,rm())},ag.apply(t,arguments)}function im(){var t=Lg(em()).domain([.1,1,10]);return t.copy=function(){return Z_(t,im()).base(t.base())},ag.apply(t,arguments)}function um(){var t=Fg(em());return t.copy=function(){return Z_(t,um()).constant(t.constant())},ag.apply(t,arguments)}function om(){var t=Xg(em());return t.copy=function(){return Z_(t,om()).exponent(t.exponent())},ag.apply(t,arguments)}function am(){return om.apply(null,arguments).exponent(.5)}var cm=function(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e},fm=cm("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),lm=cm("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),sm=cm("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),hm=cm("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),dm=cm("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),pm=cm("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),vm=cm("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),gm=cm("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),ym=cm("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),bm=cm("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),_m=function(t){return me(t[t.length-1])},mm=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(cm),xm=_m(mm),wm=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(cm),Mm=_m(wm),Nm=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(cm),Am=_m(Nm),km=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(cm),Tm=_m(km),Sm=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(cm),Em=_m(Sm),Cm=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(cm),Pm=_m(Cm),zm=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(cm),Rm=_m(zm),Dm=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(cm),Om=_m(Dm),qm=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(cm),Lm=_m(qm),Um=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(cm),jm=_m(Um),Bm=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(cm),Fm=_m(Bm),Ym=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(cm),Im=_m(Ym),Hm=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(cm),Vm=_m(Hm),Xm=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(cm),Gm=_m(Xm),Wm=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(cm),Zm=_m(Wm),$m=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(cm),Qm=_m($m),Km=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(cm),Jm=_m(Km),tx=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(cm),nx=_m(tx),ex=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(cm),rx=_m(ex),ix=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(cm),ux=_m(ix),ox=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(cm),ax=_m(ox),cx=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(cm),fx=_m(cx),lx=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(cm),sx=_m(lx),hx=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(cm),dx=_m(hx),px=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(cm),vx=_m(px),gx=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(cm),yx=_m(gx),bx=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(cm),_x=_m(bx),mx=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"},xx=Yv(Qu(300,.5,0),Qu(-240,.5,1)),wx=Yv(Qu(-100,.75,.35),Qu(80,1.5,.8)),Mx=Yv(Qu(260,.75,.35),Qu(80,1.5,.8)),Nx=Qu(),Ax=function(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Nx.h=360*t-100,Nx.s=1.5-1.5*n,Nx.l=.8-.9*n,Nx+""},kx=te(),Tx=Math.PI/3,Sx=2*Math.PI/3,Ex=function(t){var n;return t=(.5-t)*Math.PI,kx.r=255*(n=Math.sin(t))*n,kx.g=255*(n=Math.sin(t+Tx))*n,kx.b=255*(n=Math.sin(t+Sx))*n,kx+""},Cx=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function Px(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var zx=Px(cm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Rx=Px(cm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Dx=Px(cm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Ox=Px(cm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),qx=function(t){return En(fn(t).call(document.documentElement))},Lx=0;function Ux(){return new jx}function jx(){this._="@"+(++Lx).toString(36)}jx.prototype=Ux.prototype={constructor:jx,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 Bx=function(t){return"string"==typeof t?new kn([document.querySelectorAll(t)],[document.documentElement]):new kn([null==t?[]:t],An)},Fx=function(t,n){null==n&&(n=Oe().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e<r;++e)i[e]=qe(t,n[e]);return i},Yx=function(t){return function(){return t}},Ix=Math.abs,Hx=Math.atan2,Vx=Math.cos,Xx=Math.max,Gx=Math.min,Wx=Math.sin,Zx=Math.sqrt,$x=1e-12,Qx=Math.PI,Kx=Qx/2,Jx=2*Qx;function tw(t){return t>=1?Kx:t<=-1?-Kx:Math.asin(t)}function nw(t){return t.innerRadius}function ew(t){return t.outerRadius}function rw(t){return t.startAngle}function iw(t){return t.endAngle}function uw(t){return t&&t.padAngle}function ow(t,n,e,r,i,u,o){var a=t-e,c=n-r,f=(o?u:-u)/Zx(a*a+c*c),l=f*c,s=-f*a,h=t+l,d=n+s,p=e+l,v=r+s,g=(h+p)/2,y=(d+v)/2,b=p-h,_=v-d,m=b*b+_*_,x=i-u,w=h*v-p*d,M=(_<0?-1:1)*Zx(Xx(0,x*x*m-w*w)),N=(w*_-b*M)/m,A=(-w*b-_*M)/m,k=(w*_+b*M)/m,T=(-w*b+_*M)/m,S=N-g,E=A-y,C=k-g,P=T-y;return S*S+E*E>C*C+P*P&&(N=k,A=T),{cx:N,cy:A,x01:-l,y01:-s,x11:N*(i/x-1),y11:A*(i/x-1)}}var aw=function(){var t=nw,n=ew,e=Yx(0),r=null,i=rw,u=iw,o=uw,a=null;function c(){var c,f,l,s=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-Kx,p=u.apply(this,arguments)-Kx,v=Ix(p-d),g=p>d;if(a||(a=c=nu()),h<s&&(f=h,h=s,s=f),h>$x)if(v>Jx-$x)a.moveTo(h*Vx(d),h*Wx(d)),a.arc(0,0,h,d,p,!g),s>$x&&(a.moveTo(s*Vx(p),s*Wx(p)),a.arc(0,0,s,p,d,g));else{var y,b,_=d,m=p,x=d,w=p,M=v,N=v,A=o.apply(this,arguments)/2,k=A>$x&&(r?+r.apply(this,arguments):Zx(s*s+h*h)),T=Gx(Ix(h-s)/2,+e.apply(this,arguments)),S=T,E=T;if(k>$x){var C=tw(k/s*Wx(A)),P=tw(k/h*Wx(A));(M-=2*C)>$x?(x+=C*=g?1:-1,w-=C):(M=0,x=w=(d+p)/2),(N-=2*P)>$x?(_+=P*=g?1:-1,m-=P):(N=0,_=m=(d+p)/2)}var z=h*Vx(_),R=h*Wx(_),D=s*Vx(w),O=s*Wx(w);if(T>$x){var q,L=h*Vx(m),U=h*Wx(m),j=s*Vx(x),B=s*Wx(x);if(v<Qx&&(q=function(t,n,e,r,i,u,o,a){var c=e-t,f=r-n,l=o-i,s=a-u,h=s*c-l*f;if(!(h*h<$x))return[t+(h=(l*(n-u)-s*(t-i))/h)*c,n+h*f]}(z,R,j,B,L,U,D,O))){var F=z-q[0],Y=R-q[1],I=L-q[0],H=U-q[1],V=1/Wx(((l=(F*I+Y*H)/(Zx(F*F+Y*Y)*Zx(I*I+H*H)))>1?0:l<-1?Qx:Math.acos(l))/2),X=Zx(q[0]*q[0]+q[1]*q[1]);S=Gx(T,(s-X)/(V-1)),E=Gx(T,(h-X)/(V+1))}}N>$x?E>$x?(y=ow(j,B,z,R,h,E,g),b=ow(L,U,D,O,h,E,g),a.moveTo(y.cx+y.x01,y.cy+y.y01),E<T?a.arc(y.cx,y.cy,E,Hx(y.y01,y.x01),Hx(b.y01,b.x01),!g):(a.arc(y.cx,y.cy,E,Hx(y.y01,y.x01),Hx(y.y11,y.x11),!g),a.arc(0,0,h,Hx(y.cy+y.y11,y.cx+y.x11),Hx(b.cy+b.y11,b.cx+b.x11),!g),a.arc(b.cx,b.cy,E,Hx(b.y11,b.x11),Hx(b.y01,b.x01),!g))):(a.moveTo(z,R),a.arc(0,0,h,_,m,!g)):a.moveTo(z,R),s>$x&&M>$x?S>$x?(y=ow(D,O,L,U,s,-S,g),b=ow(z,R,j,B,s,-S,g),a.lineTo(y.cx+y.x01,y.cy+y.y01),S<T?a.arc(y.cx,y.cy,S,Hx(y.y01,y.x01),Hx(b.y01,b.x01),!g):(a.arc(y.cx,y.cy,S,Hx(y.y01,y.x01),Hx(y.y11,y.x11),!g),a.arc(0,0,s,Hx(y.cy+y.y11,y.cx+y.x11),Hx(b.cy+b.y11,b.cx+b.x11),g),a.arc(b.cx,b.cy,S,Hx(b.y11,b.x11),Hx(b.y01,b.x01),!g))):a.arc(0,0,s,w,x,g):a.lineTo(D,O)}else a.moveTo(0,0);if(a.closePath(),c)return a=null,c+""||null}return c.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +u.apply(this,arguments))/2-Qx/2;return[Vx(r)*e,Wx(r)*e]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Yx(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Yx(+t),c):n},c.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Yx(+t),c):e},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Yx(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:Yx(+t),c):i},c.endAngle=function(t){return arguments.length?(u="function"==typeof t?t:Yx(+t),c):u},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Yx(+t),c):o},c.context=function(t){return arguments.length?(a=null==t?null:t,c):a},c};function cw(t){this._context=t}cw.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 fw=function(t){return new cw(t)};function lw(t){return t[0]}function sw(t){return t[1]}var hw=function(){var t=lw,n=sw,e=Yx(!0),r=null,i=fw,u=null;function o(o){var a,c,f,l=o.length,s=!1;for(null==r&&(u=i(f=nu())),a=0;a<=l;++a)!(a<l&&e(c=o[a],a,o))===s&&((s=!s)?u.lineStart():u.lineEnd()),s&&u.point(+t(c,a,o),+n(c,a,o));if(f)return u=null,f+""||null}return o.x=function(n){return arguments.length?(t="function"==typeof n?n:Yx(+n),o):t},o.y=function(t){return arguments.length?(n="function"==typeof t?t:Yx(+t),o):n},o.defined=function(t){return arguments.length?(e="function"==typeof t?t:Yx(!!t),o):e},o.curve=function(t){return arguments.length?(i=t,null!=r&&(u=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=u=null:u=i(r=t),o):r},o},dw=function(){var t=lw,n=null,e=Yx(0),r=sw,i=Yx(!0),u=null,o=fw,a=null;function c(c){var f,l,s,h,d,p=c.length,v=!1,g=new Array(p),y=new Array(p);for(null==u&&(a=o(d=nu())),f=0;f<=p;++f){if(!(f<p&&i(h=c[f],f,c))===v)if(v=!v)l=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),s=f-1;s>=l;--s)a.point(g[s],y[s]);a.lineEnd(),a.areaEnd()}v&&(g[f]=+t(h,f,c),y[f]=+e(h,f,c),a.point(n?+n(h,f,c):g[f],r?+r(h,f,c):y[f]))}if(d)return a=null,d+""||null}function f(){return hw().defined(i).curve(o).context(u)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:Yx(+e),n=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:Yx(+n),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Yx(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Yx(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:Yx(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Yx(+t),c):r},c.lineX0=c.lineY0=function(){return f().x(t).y(e)},c.lineY1=function(){return f().x(t).y(r)},c.lineX1=function(){return f().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Yx(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=u&&(a=o(u)),c):o},c.context=function(t){return arguments.length?(null==t?u=a=null:a=o(u=t),c):u},c},pw=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},vw=function(t){return t},gw=function(){var t=vw,n=pw,e=null,r=Yx(0),i=Yx(Jx),u=Yx(0);function o(o){var a,c,f,l,s,h=o.length,d=0,p=new Array(h),v=new Array(h),g=+r.apply(this,arguments),y=Math.min(Jx,Math.max(-Jx,i.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),_=b*(y<0?-1:1);for(a=0;a<h;++a)(s=v[p[a]=a]=+t(o[a],a,o))>0&&(d+=s);for(null!=n?p.sort((function(t,e){return n(v[t],v[e])})):null!=e&&p.sort((function(t,n){return e(o[t],o[n])})),a=0,f=d?(y-h*_)/d:0;a<h;++a,g=l)c=p[a],l=g+((s=v[c])>0?s*f:0)+_,v[c]={data:o[c],index:a,value:s,startAngle:g,endAngle:l,padAngle:b};return v}return o.value=function(n){return arguments.length?(t="function"==typeof n?n:Yx(+n),o):t},o.sortValues=function(t){return arguments.length?(n=t,e=null,o):n},o.sort=function(t){return arguments.length?(e=t,n=null,o):e},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Yx(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Yx(+t),o):i},o.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Yx(+t),o):u},o},yw=_w(fw);function bw(t){this._curve=t}function _w(t){function n(n){return new bw(t(n))}return n._curve=t,n}function mw(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(_w(t)):n()._curve},t}bw.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 xw=function(){return mw(hw().curve(yw))},ww=function(){var t=dw().curve(yw),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,u=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 mw(e())},delete t.lineX0,t.lineEndAngle=function(){return mw(r())},delete t.lineX1,t.lineInnerRadius=function(){return mw(i())},delete t.lineY0,t.lineOuterRadius=function(){return mw(u())},delete t.lineY1,t.curve=function(t){return arguments.length?n(_w(t)):n()._curve},t},Mw=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},Nw=Array.prototype.slice;function Aw(t){return t.source}function kw(t){return t.target}function Tw(t){var n=Aw,e=kw,r=lw,i=sw,u=null;function o(){var o,a=Nw.call(arguments),c=n.apply(this,a),f=e.apply(this,a);if(u||(u=o=nu()),t(u,+r.apply(this,(a[0]=c,a)),+i.apply(this,a),+r.apply(this,(a[0]=f,a)),+i.apply(this,a)),o)return u=null,o+""||null}return o.source=function(t){return arguments.length?(n=t,o):n},o.target=function(t){return arguments.length?(e=t,o):e},o.x=function(t){return arguments.length?(r="function"==typeof t?t:Yx(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:Yx(+t),o):i},o.context=function(t){return arguments.length?(u=null==t?null:t,o):u},o}function Sw(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function Ew(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function Cw(t,n,e,r,i){var u=Mw(n,e),o=Mw(n,e=(e+i)/2),a=Mw(r,e),c=Mw(r,i);t.moveTo(u[0],u[1]),t.bezierCurveTo(o[0],o[1],a[0],a[1],c[0],c[1])}function Pw(){return Tw(Sw)}function zw(){return Tw(Ew)}function Rw(){var t=Tw(Cw);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var Dw={draw:function(t,n){var e=Math.sqrt(n/Qx);t.moveTo(e,0),t.arc(0,0,e,0,Jx)}},Ow={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()}},qw=Math.sqrt(1/3),Lw=2*qw,Uw={draw:function(t,n){var e=Math.sqrt(n/Lw),r=e*qw;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},jw=Math.sin(Qx/10)/Math.sin(7*Qx/10),Bw=Math.sin(Jx/10)*jw,Fw=-Math.cos(Jx/10)*jw,Yw={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Bw*e,i=Fw*e;t.moveTo(0,-e),t.lineTo(r,i);for(var u=1;u<5;++u){var o=Jx*u/5,a=Math.cos(o),c=Math.sin(o);t.lineTo(c*e,-a*e),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},Iw={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Hw=Math.sqrt(3),Vw={draw:function(t,n){var e=-Math.sqrt(n/(3*Hw));t.moveTo(0,2*e),t.lineTo(-Hw*e,-e),t.lineTo(Hw*e,-e),t.closePath()}},Xw=Math.sqrt(3)/2,Gw=1/Math.sqrt(12),Ww=3*(Gw/2+1),Zw={draw:function(t,n){var e=Math.sqrt(n/Ww),r=e/2,i=e*Gw,u=r,o=e*Gw+e,a=-u,c=o;t.moveTo(r,i),t.lineTo(u,o),t.lineTo(a,c),t.lineTo(-.5*r-Xw*i,Xw*r+-.5*i),t.lineTo(-.5*u-Xw*o,Xw*u+-.5*o),t.lineTo(-.5*a-Xw*c,Xw*a+-.5*c),t.lineTo(-.5*r+Xw*i,-.5*i-Xw*r),t.lineTo(-.5*u+Xw*o,-.5*o-Xw*u),t.lineTo(-.5*a+Xw*c,-.5*c-Xw*a),t.closePath()}},$w=[Dw,Ow,Uw,Iw,Yw,Vw,Zw],Qw=function(){var t=Yx(Dw),n=Yx(64),e=null;function r(){var r;if(e||(e=r=nu()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:Yx(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:Yx(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r},Kw=function(){};function Jw(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 tM(t){this._context=t}tM.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:Jw(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:Jw(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var nM=function(t){return new tM(t)};function eM(t){this._context=t}eM.prototype={areaStart:Kw,areaEnd:Kw,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:Jw(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var rM=function(t){return new eM(t)};function iM(t){this._context=t}iM.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:Jw(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var uM=function(t){return new iM(t)};function oM(t,n){this._basis=new tM(t),this._beta=n}oM.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],u=n[0],o=t[e]-i,a=n[e]-u,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*n[c]+(1-this._beta)*(u+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var aM=function t(n){function e(t){return 1===n?new tM(t):new oM(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function cM(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 fM(t,n){this._context=t,this._k=(1-n)/6}fM.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:cM(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:cM(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 lM=function t(n){function e(t){return new fM(t,n)}return e.tension=function(n){return t(+n)},e}(0);function sM(t,n){this._context=t,this._k=(1-n)/6}sM.prototype={areaStart:Kw,areaEnd:Kw,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:cM(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 hM=function t(n){function e(t){return new sM(t,n)}return e.tension=function(n){return t(+n)},e}(0);function dM(t,n){this._context=t,this._k=(1-n)/6}dM.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:cM(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 pM=function t(n){function e(t){return new dM(t,n)}return e.tension=function(n){return t(+n)},e}(0);function vM(t,n,e){var r=t._x1,i=t._y1,u=t._x2,o=t._y2;if(t._l01_a>$x){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>$x){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);u=(u*f+t._x1*t._l23_2a-n*t._l12_2a)/l,o=(o*f+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,i,u,o,t._x2,t._y2)}function gM(t,n){this._context=t,this._alpha=n}gM.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:vM(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 yM=function t(n){function e(t){return n?new gM(t,n):new fM(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function bM(t,n){this._context=t,this._alpha=n}bM.prototype={areaStart:Kw,areaEnd:Kw,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:vM(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 _M=function t(n){function e(t){return n?new bM(t,n):new sM(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function mM(t,n){this._context=t,this._alpha=n}mM.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:vM(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 xM=function t(n){function e(t){return n?new mM(t,n):new dM(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function wM(t){this._context=t}wM.prototype={areaStart:Kw,areaEnd:Kw,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))}};var MM=function(t){return new wM(t)};function NM(t){return t<0?-1:1}function AM(t,n,e){var r=t._x1-t._x0,i=n-t._x1,u=(t._y1-t._y0)/(r||i<0&&-0),o=(e-t._y1)/(i||r<0&&-0),a=(u*i+o*r)/(r+i);return(NM(u)+NM(o))*Math.min(Math.abs(u),Math.abs(o),.5*Math.abs(a))||0}function kM(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function TM(t,n,e){var r=t._x0,i=t._y0,u=t._x1,o=t._y1,a=(u-r)/3;t._context.bezierCurveTo(r+a,i+a*n,u-a,o-a*e,u,o)}function SM(t){this._context=t}function EM(t){this._context=new CM(t)}function CM(t){this._context=t}function PM(t){return new SM(t)}function zM(t){return new EM(t)}function RM(t){this._context=t}function DM(t){var n,e,r=t.length-1,i=new Array(r),u=new Array(r),o=new Array(r);for(i[0]=0,u[0]=2,o[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,u[n]=4,o[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,u[r-1]=7,o[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/u[n-1],u[n]-=e,o[n]-=e*o[n-1];for(i[r-1]=o[r-1]/u[r-1],n=r-2;n>=0;--n)i[n]=(o[n]-i[n+1])/u[n];for(u[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)u[n]=2*t[n+1]-i[n+1];return[i,u]}SM.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:TM(this,this._t0,kM(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(n=+n,(t=+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,TM(this,kM(this,e=AM(this,t,n)),e);break;default:TM(this,this._t0,e=AM(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(EM.prototype=Object.create(SM.prototype)).point=function(t,n){SM.prototype.point.call(this,n,t)},CM.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,u){this._context.bezierCurveTo(n,t,r,e,u,i)}},RM.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=DM(t),i=DM(n),u=0,o=1;o<e;++u,++o)this._context.bezierCurveTo(r[0][u],i[0][u],r[1][u],i[1][u],t[o],n[o]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var OM=function(t){return new RM(t)};function qM(t,n){this._context=t,this._t=n}qM.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 LM=function(t){return new qM(t,.5)};function UM(t){return new qM(t,0)}function jM(t){return new qM(t,1)}var BM=function(t,n){if((i=t.length)>1)for(var e,r,i,u=1,o=t[n[0]],a=o.length;u<i;++u)for(r=o,o=t[n[u]],e=0;e<a;++e)o[e][1]+=o[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]},FM=function(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e};function YM(t,n){return t[n]}var IM=function(){var t=Yx([]),n=FM,e=BM,r=YM;function i(i){var u,o,a=t.apply(this,arguments),c=i.length,f=a.length,l=new Array(f);for(u=0;u<f;++u){for(var s,h=a[u],d=l[u]=new Array(c),p=0;p<c;++p)d[p]=s=[0,+r(i[p],h,p,i)],s.data=i[p];d.key=h}for(u=0,o=n(l);u<f;++u)l[o[u]].index=u;return e(l,o),l}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:Yx(Nw.call(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Yx(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?FM:"function"==typeof t?t:Yx(Nw.call(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?BM:t,i):e},i},HM=function(t,n){if((r=t.length)>0){for(var e,r,i,u=0,o=t[0].length;u<o;++u){for(i=e=0;e<r;++e)i+=t[e][u][1]||0;if(i)for(e=0;e<r;++e)t[e][u][1]/=i}BM(t,n)}},VM=function(t,n){if((a=t.length)>0)for(var e,r,i,u,o,a,c=0,f=t[n[0]].length;c<f;++c)for(u=o=0,e=0;e<a;++e)(i=(r=t[n[e]][c])[1]-r[0])>0?(r[0]=u,r[1]=u+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)},XM=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],u=i.length;r<u;++r){for(var o=0,a=0;o<e;++o)a+=t[o][r][1]||0;i[r][1]+=i[r][0]=-a/2}BM(t,n)}},GM=function(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,u=0,o=1;o<r;++o){for(var a=0,c=0,f=0;a<i;++a){for(var l=t[n[a]],s=l[o][1]||0,h=(s-(l[o-1][1]||0))/2,d=0;d<a;++d){var p=t[n[d]];h+=(p[o][1]||0)-(p[o-1][1]||0)}c+=s,f+=h*s}e[o-1][1]+=e[o-1][0]=u,c&&(u-=f/c)}e[o-1][1]+=e[o-1][0]=u,BM(t,n)}},WM=function(t){var n=t.map(ZM);return FM(t).sort((function(t,e){return n[t]-n[e]}))};function ZM(t){for(var n,e=-1,r=0,i=t.length,u=-1/0;++e<i;)(n=+t[e][1])>u&&(u=n,r=e);return r}var $M=function(t){var n=t.map(QM);return FM(t).sort((function(t,e){return n[t]-n[e]}))};function QM(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}var KM=function(t){return $M(t).reverse()},JM=function(t){var n,e,r=t.length,i=t.map(QM),u=WM(t),o=0,a=0,c=[],f=[];for(n=0;n<r;++n)e=u[n],o<a?(o+=i[e],c.push(e)):(a+=i[e],f.push(e));return f.reverse().concat(c)},tN=function(t){return FM(t).reverse()};var nN=Date.prototype.toISOString?function(t){return t.toISOString()}:db("%Y-%m-%dT%H:%M:%S.%LZ");var eN=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:pb("%Y-%m-%dT%H:%M:%S.%LZ"),rN=function(t,n,e){var r=new $e,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?We():+e,r.restart((function u(o){o+=i,r.restart(u,i+=n,e),t(o)}),n,e),r)},iN=function(t){return function(){return t}};function uN(t){return t[0]}function oN(t){return t[1]}function aN(){this._=null}function cN(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function fN(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 lN(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 sN(t){for(;t.L;)t=t.L;return t}aN.prototype={constructor:aN,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=sN(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&&(fN(this,e),e=(t=e).U),e.C=!1,r.C=!0,lN(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(lN(this,e),e=(t=e).U),e.C=!1,r.C=!0,fN(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,u=t.L,o=t.R;if(e=u?o?sN(o):u:o,i?i.L===t?i.L=e:i.R=e:this._=e,u&&o?(r=e.C,e.C=t.C,e.L=u,u.U=e,e!==o?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=o,o.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,fN(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,lN(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,fN(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,lN(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,fN(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,lN(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var hN=aN;function dN(t,n,e,r){var i=[null,null],u=LN.push(i)-1;return i.left=t,i.right=n,e&&vN(i,t,n,e),r&&vN(i,n,t,r),ON[t.index].halfedges.push(u),ON[n.index].halfedges.push(u),i}function pN(t,n,e){var r=[n,e];return r.left=t,r}function vN(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 gN(t,n,e,r,i){var u,o=t[0],a=t[1],c=o[0],f=o[1],l=0,s=1,h=a[0]-c,d=a[1]-f;if(u=n-c,h||!(u>0)){if(u/=h,h<0){if(u<l)return;u<s&&(s=u)}else if(h>0){if(u>s)return;u>l&&(l=u)}if(u=r-c,h||!(u<0)){if(u/=h,h<0){if(u>s)return;u>l&&(l=u)}else if(h>0){if(u<l)return;u<s&&(s=u)}if(u=e-f,d||!(u>0)){if(u/=d,d<0){if(u<l)return;u<s&&(s=u)}else if(d>0){if(u>s)return;u>l&&(l=u)}if(u=i-f,d||!(u<0)){if(u/=d,d<0){if(u>s)return;u>l&&(l=u)}else if(d>0){if(u<l)return;u<s&&(s=u)}return!(l>0||s<1)||(l>0&&(t[0]=[c+l*h,f+l*d]),s<1&&(t[1]=[c+s*h,f+s*d]),!0)}}}}}function yN(t,n,e,r,i){var u=t[1];if(u)return!0;var o,a,c=t[0],f=t.left,l=t.right,s=f[0],h=f[1],d=l[0],p=l[1],v=(s+d)/2,g=(h+p)/2;if(p===h){if(v<n||v>=r)return;if(s>d){if(c){if(c[1]>=i)return}else c=[v,e];u=[v,i]}else{if(c){if(c[1]<e)return}else c=[v,i];u=[v,e]}}else if(a=g-(o=(s-d)/(p-h))*v,o<-1||o>1)if(s>d){if(c){if(c[1]>=i)return}else c=[(e-a)/o,e];u=[(i-a)/o,i]}else{if(c){if(c[1]<e)return}else c=[(i-a)/o,i];u=[(e-a)/o,e]}else if(h<p){if(c){if(c[0]>=r)return}else c=[n,o*n+a];u=[r,o*r+a]}else{if(c){if(c[0]<n)return}else c=[r,o*r+a];u=[n,o*n+a]}return t[0]=c,t[1]=u,!0}function bN(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 _N(t,n){return n[+(n.left!==t.site)]}function mN(t,n){return n[+(n.left===t.site)]}var xN,wN=[];function MN(){cN(this),this.x=this.y=this.arc=this.site=this.cy=null}function NN(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,u=e.site;if(r!==u){var o=i[0],a=i[1],c=r[0]-o,f=r[1]-a,l=u[0]-o,s=u[1]-a,h=2*(c*s-f*l);if(!(h>=-jN)){var d=c*c+f*f,p=l*l+s*s,v=(s*d-f*p)/h,g=(c*p-l*d)/h,y=wN.pop()||new MN;y.arc=t,y.site=i,y.x=v+o,y.y=(y.cy=g+a)+Math.sqrt(v*v+g*g),t.circle=y;for(var b=null,_=qN._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){b=_.P;break}_=_.L}else{if(!_.R){b=_;break}_=_.R}qN.insert(b,y),b||(xN=y)}}}}function AN(t){var n=t.circle;n&&(n.P||(xN=n.N),qN.remove(n),wN.push(n),cN(n),t.circle=null)}var kN=[];function TN(){cN(this),this.edge=this.site=this.circle=null}function SN(t){var n=kN.pop()||new TN;return n.site=t,n}function EN(t){AN(t),DN.remove(t),kN.push(t),cN(t)}function CN(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],u=t.P,o=t.N,a=[t];EN(t);for(var c=u;c.circle&&Math.abs(e-c.circle.x)<UN&&Math.abs(r-c.circle.cy)<UN;)u=c.P,a.unshift(c),EN(c),c=u;a.unshift(c),AN(c);for(var f=o;f.circle&&Math.abs(e-f.circle.x)<UN&&Math.abs(r-f.circle.cy)<UN;)o=f.N,a.push(f),EN(f),f=o;a.push(f),AN(f);var l,s=a.length;for(l=1;l<s;++l)f=a[l],c=a[l-1],vN(f.edge,c.site,f.site,i);c=a[0],(f=a[s-1]).edge=dN(c.site,f.site,null,i),NN(c),NN(f)}function PN(t){for(var n,e,r,i,u=t[0],o=t[1],a=DN._;a;)if((r=zN(a,o)-u)>UN)a=a.L;else{if(!((i=u-RN(a,o))>UN)){r>-UN?(n=a.P,e=a):i>-UN?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){ON[t.index]={site:t,halfedges:[]}}(t);var c=SN(t);if(DN.insert(n,c),n||e){if(n===e)return AN(n),e=SN(n.site),DN.insert(c,e),c.edge=e.edge=dN(n.site,c.site),NN(n),void NN(e);if(e){AN(n),AN(e);var f=n.site,l=f[0],s=f[1],h=t[0]-l,d=t[1]-s,p=e.site,v=p[0]-l,g=p[1]-s,y=2*(h*g-d*v),b=h*h+d*d,_=v*v+g*g,m=[(g*b-d*_)/y+l,(h*_-v*b)/y+s];vN(e.edge,f,p,m),c.edge=dN(f,t,null,m),e.edge=dN(t,p,null,m),NN(n),NN(e)}else c.edge=dN(n.site,c.site)}}function zN(t,n){var e=t.site,r=e[0],i=e[1],u=i-n;if(!u)return r;var o=t.P;if(!o)return-1/0;var a=(e=o.site)[0],c=e[1],f=c-n;if(!f)return a;var l=a-r,s=1/u-1/f,h=l/f;return s?(-h+Math.sqrt(h*h-2*s*(l*l/(-2*f)-c+f/2+i-u/2)))/s+r:(r+a)/2}function RN(t,n){var e=t.N;if(e)return zN(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var DN,ON,qN,LN,UN=1e-6,jN=1e-12;function BN(t,n){return n[1]-t[1]||n[0]-t[0]}function FN(t,n){var e,r,i,u=t.sort(BN).pop();for(LN=[],ON=new Array(t.length),DN=new hN,qN=new hN;;)if(i=xN,u&&(!i||u[1]<i.y||u[1]===i.y&&u[0]<i.x))u[0]===e&&u[1]===r||(PN(u),e=u[0],r=u[1]),u=t.pop();else{if(!i)break;CN(i.arc)}if(function(){for(var t,n,e,r,i=0,u=ON.length;i<u;++i)if((t=ON[i])&&(r=(n=t.halfedges).length)){var o=new Array(r),a=new Array(r);for(e=0;e<r;++e)o[e]=e,a[e]=bN(t,LN[n[e]]);for(o.sort((function(t,n){return a[n]-a[t]})),e=0;e<r;++e)a[e]=n[o[e]];for(e=0;e<r;++e)n[e]=a[e]}}(),n){var o=+n[0][0],a=+n[0][1],c=+n[1][0],f=+n[1][1];!function(t,n,e,r){for(var i,u=LN.length;u--;)yN(i=LN[u],t,n,e,r)&&gN(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>UN||Math.abs(i[0][1]-i[1][1])>UN)||delete LN[u]}(o,a,c,f),function(t,n,e,r){var i,u,o,a,c,f,l,s,h,d,p,v,g=ON.length,y=!0;for(i=0;i<g;++i)if(u=ON[i]){for(o=u.site,a=(c=u.halfedges).length;a--;)LN[c[a]]||c.splice(a,1);for(a=0,f=c.length;a<f;)p=(d=mN(u,LN[c[a]]))[0],v=d[1],s=(l=_N(u,LN[c[++a%f]]))[0],h=l[1],(Math.abs(p-s)>UN||Math.abs(v-h)>UN)&&(c.splice(a,0,LN.push(pN(o,d,Math.abs(p-t)<UN&&r-v>UN?[t,Math.abs(s-t)<UN?h:r]:Math.abs(v-r)<UN&&e-p>UN?[Math.abs(h-r)<UN?s:e,r]:Math.abs(p-e)<UN&&v-n>UN?[e,Math.abs(s-e)<UN?h:n]:Math.abs(v-n)<UN&&p-t>UN?[Math.abs(h-n)<UN?s:t,n]:null))-1),++f);f&&(y=!1)}if(y){var b,_,m,x=1/0;for(i=0,y=null;i<g;++i)(u=ON[i])&&(m=(b=(o=u.site)[0]-t)*b+(_=o[1]-n)*_)<x&&(x=m,y=u);if(y){var w=[t,n],M=[t,r],N=[e,r],A=[e,n];y.halfedges.push(LN.push(pN(o=y.site,w,M))-1,LN.push(pN(o,M,N))-1,LN.push(pN(o,N,A))-1,LN.push(pN(o,A,w))-1)}}for(i=0;i<g;++i)(u=ON[i])&&(u.halfedges.length||delete ON[i])}(o,a,c,f)}this.edges=LN,this.cells=ON,DN=qN=LN=ON=null}FN.prototype={constructor:FN,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return _N(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(u=(i=e.halfedges).length)for(var i,u,o,a,c,f,l=e.site,s=-1,h=n[i[u-1]],d=h.left===l?h.right:h.left;++s<u;)o=d,d=(h=n[i[s]]).left===l?h.right:h.left,o&&d&&r<o.index&&r<d.index&&(c=o,f=d,((a=l)[0]-f[0])*(c[1]-a[1])-(a[0]-c[0])*(f[1]-a[1])<0)&&t.push([l.data,o.data,d.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,u=this,o=u._found||0,a=u.cells.length;!(i=u.cells[o]);)if(++o>=a)return null;var c=t-i.site[0],f=n-i.site[1],l=c*c+f*f;do{i=u.cells[r=o],o=null,i.halfedges.forEach((function(e){var r=u.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var c=t-a[0],f=n-a[1],s=c*c+f*f;s<l&&(l=s,o=a.index)}}))}while(null!==o);return u._found=r,null==e||l<=e*e?i.site:null}};var YN=function(){var t=uN,n=oN,e=null;function r(r){return new FN(r.map((function(e,i){var u=[Math.round(t(e,i,r)/UN)*UN,Math.round(n(e,i,r)/UN)*UN];return u.index=i,u.data=e,u})),e)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(n){return arguments.length?(t="function"==typeof n?n:iN(+n),r):t},r.y=function(t){return arguments.length?(n="function"==typeof t?t:iN(+t),r):n},r.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},r.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],r):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},r},IN=function(t){return function(){return t}};function HN(t,n,e){this.target=t,this.type=n,this.transform=e}function VN(t,n,e){this.k=t,this.x=n,this.y=e}VN.prototype={constructor:VN,scale:function(t){return 1===t?this:new VN(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new VN(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 XN=new VN(1,0,0);function GN(t){for(;!t.__zoom;)if(!(t=t.parentNode))return XN;return t.__zoom}function WN(){vn.stopImmediatePropagation()}GN.prototype=VN.prototype;var ZN=function(){vn.preventDefault(),vn.stopImmediatePropagation()};function $N(){return!vn.ctrlKey&&!vn.button}function QN(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function KN(){return this.__zoom||XN}function JN(){return-vn.deltaY*(1===vn.deltaMode?.05:vn.deltaMode?1:.002)}function tA(){return navigator.maxTouchPoints||"ontouchstart"in this}function nA(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],u=t.invertY(n[0][1])-e[0][1],o=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>u?(u+o)/2:Math.min(0,u)||Math.max(0,o))}var eA=function(){var t,n,e=$N,r=QN,i=nA,u=JN,o=tA,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],f=250,l=zv,s=vt("start","zoom","end"),h=500,d=150,p=0;function v(t){t.property("__zoom",KN).on("wheel.zoom",w).on("mousedown.zoom",M).on("dblclick.zoom",N).filter(o).on("touchstart.zoom",A).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,n){return(n=Math.max(a[0],Math.min(a[1],n)))===t.k?t:new VN(n,t.x,t.y)}function y(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 VN(t.k,r,i)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function _(t,n,e){t.on("start.zoom",(function(){m(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){m(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,u=m(t,i),o=r.apply(t,i),a=null==e?b(o):"function"==typeof e?e.apply(t,i):e,c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),f=t.__zoom,s="function"==typeof n?n.apply(t,i):n,h=l(f.invert(a).concat(c/f.k),s.invert(a).concat(c/s.k));return function(t){if(1===t)t=s;else{var n=h(t),e=c/n[2];t=new VN(e,a[0]-n[0]*e,a[1]-n[1]*e)}u.zoom(null,t)}}))}function m(t,n,e){return!e&&t.__zooming||new x(t,n)}function x(t,n){this.that=t,this.args=n,this.active=0,this.extent=r.apply(t,n),this.taps=0}function w(){if(e.apply(this,arguments)){var t=m(this,arguments),n=this.__zoom,r=Math.max(a[0],Math.min(a[1],n.k*Math.pow(2,u.apply(this,arguments)))),o=Ue(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=n.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(n.k===r)return;t.mouse=[o,n.invert(o)],mr(this),t.start()}ZN(),t.wheel=setTimeout((function(){t.wheel=null,t.end()}),d),t.zoom("mouse",i(y(g(n,r),t.mouse[0],t.mouse[1]),t.extent,c))}}function M(){if(!n&&e.apply(this,arguments)){var t=m(this,arguments,!0),r=En(vn.view).on("mousemove.zoom",(function(){if(ZN(),!t.moved){var n=vn.clientX-o,e=vn.clientY-a;t.moved=n*n+e*e>p}t.zoom("mouse",i(y(t.that.__zoom,t.mouse[0]=Ue(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Rn(vn.view,t.moved),ZN(),t.end()}),!0),u=Ue(this),o=vn.clientX,a=vn.clientY;zn(vn.view),WN(),t.mouse=[u,this.__zoom.invert(u)],mr(this),t.start()}}function N(){if(e.apply(this,arguments)){var t=this.__zoom,n=Ue(this),u=t.invert(n),o=t.k*(vn.shiftKey?.5:2),a=i(y(g(t,o),n,u),r.apply(this,arguments),c);ZN(),f>0?En(this).transition().duration(f).call(_,a,n):En(this).call(v.transform,a)}}function A(){if(e.apply(this,arguments)){var n,r,i,u,o=vn.touches,a=o.length,c=m(this,arguments,vn.changedTouches.length===a);for(WN(),r=0;r<a;++r)i=o[r],u=[u=Le(this,o,i.identifier),this.__zoom.invert(u),i.identifier],c.touch0?c.touch1||c.touch0[2]===u[2]||(c.touch1=u,c.taps=0):(c.touch0=u,n=!0,c.taps=1+!!t);t&&(t=clearTimeout(t)),n&&(c.taps<2&&(t=setTimeout((function(){t=null}),h)),mr(this),c.start())}}function k(){if(this.__zooming){var n,e,r,u,o=m(this,arguments),a=vn.changedTouches,f=a.length;for(ZN(),t&&(t=clearTimeout(t)),o.taps=0,n=0;n<f;++n)e=a[n],r=Le(this,a,e.identifier),o.touch0&&o.touch0[2]===e.identifier?o.touch0[0]=r:o.touch1&&o.touch1[2]===e.identifier&&(o.touch1[0]=r);if(e=o.that.__zoom,o.touch1){var l=o.touch0[0],s=o.touch0[1],h=o.touch1[0],d=o.touch1[1],p=(p=h[0]-l[0])*p+(p=h[1]-l[1])*p,v=(v=d[0]-s[0])*v+(v=d[1]-s[1])*v;e=g(e,Math.sqrt(p/v)),r=[(l[0]+h[0])/2,(l[1]+h[1])/2],u=[(s[0]+d[0])/2,(s[1]+d[1])/2]}else{if(!o.touch0)return;r=o.touch0[0],u=o.touch0[1]}o.zoom("touch",i(y(e,r,u),o.extent,c))}}function T(){if(this.__zooming){var t,e,r=m(this,arguments),i=vn.changedTouches,u=i.length;for(WN(),n&&clearTimeout(n),n=setTimeout((function(){n=null}),h),t=0;t<u;++t)e=i[t],r.touch0&&r.touch0[2]===e.identifier?delete r.touch0:r.touch1&&r.touch1[2]===e.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var o=En(this).on("dblclick.zoom");o&&o.apply(this,arguments)}}}return v.transform=function(t,n,e){var r=t.selection?t.selection():t;r.property("__zoom",KN),t!==r?_(t,n,e):r.interrupt().each((function(){m(this,arguments).start().zoom(null,"function"==typeof n?n.apply(this,arguments):n).end()}))},v.scaleBy=function(t,n,e){v.scaleTo(t,(function(){var t=this.__zoom.k,e="function"==typeof n?n.apply(this,arguments):n;return t*e}),e)},v.scaleTo=function(t,n,e){v.transform(t,(function(){var t=r.apply(this,arguments),u=this.__zoom,o=null==e?b(t):"function"==typeof e?e.apply(this,arguments):e,a=u.invert(o),f="function"==typeof n?n.apply(this,arguments):n;return i(y(g(u,f),o,a),t,c)}),e)},v.translateBy=function(t,n,e){v.transform(t,(function(){return i(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof e?e.apply(this,arguments):e),r.apply(this,arguments),c)}))},v.translateTo=function(t,n,e,u){v.transform(t,(function(){var t=r.apply(this,arguments),o=this.__zoom,a=null==u?b(t):"function"==typeof u?u.apply(this,arguments):u;return i(XN.translate(a[0],a[1]).scale(o.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof e?-e.apply(this,arguments):-e),t,c)}),u)},x.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,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&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){xn(new HN(v,t,this.that.__zoom),s.apply,s,[t,this.that,this.args])}},v.wheelDelta=function(t){return arguments.length?(u="function"==typeof t?t:IN(+t),v):u},v.filter=function(t){return arguments.length?(e="function"==typeof t?t:IN(!!t),v):e},v.touchable=function(t){return arguments.length?(o="function"==typeof t?t:IN(!!t),v):o},v.extent=function(t){return arguments.length?(r="function"==typeof t?t:IN([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):r},v.scaleExtent=function(t){return arguments.length?(a[0]=+t[0],a[1]=+t[1],v):[a[0],a[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(i=t,v):i},v.duration=function(t){return arguments.length?(f=+t,v):f},v.interpolate=function(t){return arguments.length?(l=t,v):l},v.on=function(){var t=s.on.apply(s,arguments);return t===s?v:t},v.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,v):Math.sqrt(p)},v};e.d(n,"version",(function(){return"5.15.0"})),e.d(n,"bisect",(function(){return c})),e.d(n,"bisectRight",(function(){return o})),e.d(n,"bisectLeft",(function(){return a})),e.d(n,"ascending",(function(){return r})),e.d(n,"bisector",(function(){return i})),e.d(n,"cross",(function(){return s})),e.d(n,"descending",(function(){return h})),e.d(n,"deviation",(function(){return v})),e.d(n,"extent",(function(){return g})),e.d(n,"histogram",(function(){return C})),e.d(n,"thresholdFreedmanDiaconis",(function(){return z})),e.d(n,"thresholdScott",(function(){return R})),e.d(n,"thresholdSturges",(function(){return E})),e.d(n,"max",(function(){return D})),e.d(n,"mean",(function(){return O})),e.d(n,"median",(function(){return q})),e.d(n,"merge",(function(){return L})),e.d(n,"min",(function(){return U})),e.d(n,"pairs",(function(){return f})),e.d(n,"permute",(function(){return j})),e.d(n,"quantile",(function(){return P})),e.d(n,"range",(function(){return w})),e.d(n,"scan",(function(){return B})),e.d(n,"shuffle",(function(){return F})),e.d(n,"sum",(function(){return Y})),e.d(n,"ticks",(function(){return k})),e.d(n,"tickIncrement",(function(){return T})),e.d(n,"tickStep",(function(){return S})),e.d(n,"transpose",(function(){return I})),e.d(n,"variance",(function(){return p})),e.d(n,"zip",(function(){return V})),e.d(n,"axisTop",(function(){return ut})),e.d(n,"axisRight",(function(){return ot})),e.d(n,"axisBottom",(function(){return at})),e.d(n,"axisLeft",(function(){return ct})),e.d(n,"brush",(function(){return Ri})),e.d(n,"brushX",(function(){return Pi})),e.d(n,"brushY",(function(){return zi})),e.d(n,"brushSelection",(function(){return Ci})),e.d(n,"chord",(function(){return Gi})),e.d(n,"ribbon",(function(){return au})),e.d(n,"nest",(function(){return su})),e.d(n,"set",(function(){return _u})),e.d(n,"map",(function(){return lu})),e.d(n,"keys",(function(){return mu})),e.d(n,"values",(function(){return xu})),e.d(n,"entries",(function(){return wu})),e.d(n,"color",(function(){return $n})),e.d(n,"rgb",(function(){return te})),e.d(n,"hsl",(function(){return ae})),e.d(n,"lab",(function(){return Du})),e.d(n,"hcl",(function(){return Yu})),e.d(n,"lch",(function(){return Fu})),e.d(n,"gray",(function(){return Ru})),e.d(n,"cubehelix",(function(){return Qu})),e.d(n,"contours",(function(){return mo})),e.d(n,"contourDensity",(function(){return ko})),e.d(n,"dispatch",(function(){return vt})),e.d(n,"drag",(function(){return Ro})),e.d(n,"dragDisable",(function(){return zn})),e.d(n,"dragEnable",(function(){return Rn})),e.d(n,"dsvFormat",(function(){return Io})),e.d(n,"csvParse",(function(){return Vo})),e.d(n,"csvParseRows",(function(){return Xo})),e.d(n,"csvFormat",(function(){return Go})),e.d(n,"csvFormatBody",(function(){return Wo})),e.d(n,"csvFormatRows",(function(){return Zo})),e.d(n,"csvFormatRow",(function(){return $o})),e.d(n,"csvFormatValue",(function(){return Qo})),e.d(n,"tsvParse",(function(){return Jo})),e.d(n,"tsvParseRows",(function(){return ta})),e.d(n,"tsvFormat",(function(){return na})),e.d(n,"tsvFormatBody",(function(){return ea})),e.d(n,"tsvFormatRows",(function(){return ra})),e.d(n,"tsvFormatRow",(function(){return ia})),e.d(n,"tsvFormatValue",(function(){return ua})),e.d(n,"autoType",(function(){return oa})),e.d(n,"easeLinear",(function(){return ca})),e.d(n,"easeQuad",(function(){return sa})),e.d(n,"easeQuadIn",(function(){return fa})),e.d(n,"easeQuadOut",(function(){return la})),e.d(n,"easeQuadInOut",(function(){return sa})),e.d(n,"easeCubic",(function(){return ei})),e.d(n,"easeCubicIn",(function(){return ti})),e.d(n,"easeCubicOut",(function(){return ni})),e.d(n,"easeCubicInOut",(function(){return ei})),e.d(n,"easePoly",(function(){return pa})),e.d(n,"easePolyIn",(function(){return ha})),e.d(n,"easePolyOut",(function(){return da})),e.d(n,"easePolyInOut",(function(){return pa})),e.d(n,"easeSin",(function(){return _a})),e.d(n,"easeSinIn",(function(){return ya})),e.d(n,"easeSinOut",(function(){return ba})),e.d(n,"easeSinInOut",(function(){return _a})),e.d(n,"easeExp",(function(){return wa})),e.d(n,"easeExpIn",(function(){return ma})),e.d(n,"easeExpOut",(function(){return xa})),e.d(n,"easeExpInOut",(function(){return wa})),e.d(n,"easeCircle",(function(){return Aa})),e.d(n,"easeCircleIn",(function(){return Ma})),e.d(n,"easeCircleOut",(function(){return Na})),e.d(n,"easeCircleInOut",(function(){return Aa})),e.d(n,"easeBounce",(function(){return La})),e.d(n,"easeBounceIn",(function(){return qa})),e.d(n,"easeBounceOut",(function(){return La})),e.d(n,"easeBounceInOut",(function(){return Ua})),e.d(n,"easeBack",(function(){return Fa})),e.d(n,"easeBackIn",(function(){return ja})),e.d(n,"easeBackOut",(function(){return Ba})),e.d(n,"easeBackInOut",(function(){return Fa})),e.d(n,"easeElastic",(function(){return Ha})),e.d(n,"easeElasticIn",(function(){return Ia})),e.d(n,"easeElasticOut",(function(){return Ha})),e.d(n,"easeElasticInOut",(function(){return Va})),e.d(n,"blob",(function(){return Ga})),e.d(n,"buffer",(function(){return Za})),e.d(n,"dsv",(function(){return dc})),e.d(n,"csv",(function(){return pc})),e.d(n,"tsv",(function(){return vc})),e.d(n,"image",(function(){return gc})),e.d(n,"json",(function(){return bc})),e.d(n,"text",(function(){return sc})),e.d(n,"xml",(function(){return mc})),e.d(n,"html",(function(){return xc})),e.d(n,"svg",(function(){return wc})),e.d(n,"forceCenter",(function(){return Mc})),e.d(n,"forceCollide",(function(){return qc})),e.d(n,"forceLink",(function(){return jc})),e.d(n,"forceManyBody",(function(){return Vc})),e.d(n,"forceRadial",(function(){return Xc})),e.d(n,"forceSimulation",(function(){return Hc})),e.d(n,"forceX",(function(){return Gc})),e.d(n,"forceY",(function(){return Wc})),e.d(n,"formatDefaultLocale",(function(){return hf})),e.d(n,"format",(function(){return ef})),e.d(n,"formatPrefix",(function(){return rf})),e.d(n,"formatLocale",(function(){return sf})),e.d(n,"formatSpecifier",(function(){return Kc})),e.d(n,"FormatSpecifier",(function(){return Jc})),e.d(n,"precisionFixed",(function(){return df})),e.d(n,"precisionPrefix",(function(){return pf})),e.d(n,"precisionRound",(function(){return vf})),e.d(n,"geoArea",(function(){return cl})),e.d(n,"geoBounds",(function(){return ts})),e.d(n,"geoCentroid",(function(){return hs})),e.d(n,"geoCircle",(function(){return Ms})),e.d(n,"geoClipAntimeridian",(function(){return Bs})),e.d(n,"geoClipCircle",(function(){return Fs})),e.d(n,"geoClipExtent",(function(){return Zs})),e.d(n,"geoClipRectangle",(function(){return Vs})),e.d(n,"geoContains",(function(){return dh})),e.d(n,"geoDistance",(function(){return ih})),e.d(n,"geoGraticule",(function(){return gh})),e.d(n,"geoGraticule10",(function(){return yh})),e.d(n,"geoInterpolate",(function(){return wh})),e.d(n,"geoLength",(function(){return nh})),e.d(n,"geoPath",(function(){return md})),e.d(n,"geoAlbers",(function(){return Bd})),e.d(n,"geoAlbersUsa",(function(){return Fd})),e.d(n,"geoAzimuthalEqualArea",(function(){return Vd})),e.d(n,"geoAzimuthalEqualAreaRaw",(function(){return Hd})),e.d(n,"geoAzimuthalEquidistant",(function(){return Gd})),e.d(n,"geoAzimuthalEquidistantRaw",(function(){return Xd})),e.d(n,"geoConicConformal",(function(){return Jd})),e.d(n,"geoConicConformalRaw",(function(){return Kd})),e.d(n,"geoConicEqualArea",(function(){return jd})),e.d(n,"geoConicEqualAreaRaw",(function(){return Ud})),e.d(n,"geoConicEquidistant",(function(){return rp})),e.d(n,"geoConicEquidistantRaw",(function(){return ep})),e.d(n,"geoEqualEarth",(function(){return lp})),e.d(n,"geoEqualEarthRaw",(function(){return fp})),e.d(n,"geoEquirectangular",(function(){return np})),e.d(n,"geoEquirectangularRaw",(function(){return tp})),e.d(n,"geoGnomonic",(function(){return hp})),e.d(n,"geoGnomonicRaw",(function(){return sp})),e.d(n,"geoIdentity",(function(){return pp})),e.d(n,"geoProjection",(function(){return Od})),e.d(n,"geoProjectionMutator",(function(){return qd})),e.d(n,"geoMercator",(function(){return Zd})),e.d(n,"geoMercatorRaw",(function(){return Wd})),e.d(n,"geoNaturalEarth1",(function(){return gp})),e.d(n,"geoNaturalEarth1Raw",(function(){return vp})),e.d(n,"geoOrthographic",(function(){return bp})),e.d(n,"geoOrthographicRaw",(function(){return yp})),e.d(n,"geoStereographic",(function(){return mp})),e.d(n,"geoStereographicRaw",(function(){return _p})),e.d(n,"geoTransverseMercator",(function(){return wp})),e.d(n,"geoTransverseMercatorRaw",(function(){return xp})),e.d(n,"geoRotation",(function(){return ms})),e.d(n,"geoStream",(function(){return tl})),e.d(n,"geoTransform",(function(){return xd})),e.d(n,"cluster",(function(){return kp})),e.d(n,"hierarchy",(function(){return Sp})),e.d(n,"pack",(function(){return Jp})),e.d(n,"packSiblings",(function(){return Gp})),e.d(n,"packEnclose",(function(){return Dp})),e.d(n,"partition",(function(){return uv})),e.d(n,"stratify",(function(){return sv})),e.d(n,"tree",(function(){return bv})),e.d(n,"treemap",(function(){return Mv})),e.d(n,"treemapBinary",(function(){return Nv})),e.d(n,"treemapDice",(function(){return iv})),e.d(n,"treemapSlice",(function(){return _v})),e.d(n,"treemapSliceDice",(function(){return Av})),e.d(n,"treemapSquarify",(function(){return wv})),e.d(n,"treemapResquarify",(function(){return kv})),e.d(n,"interpolate",(function(){return De})),e.d(n,"interpolateArray",(function(){return Ne})),e.d(n,"interpolateBasis",(function(){return se})),e.d(n,"interpolateBasisClosed",(function(){return he})),e.d(n,"interpolateDate",(function(){return ke})),e.d(n,"interpolateDiscrete",(function(){return Tv})),e.d(n,"interpolateHue",(function(){return Sv})),e.d(n,"interpolateNumber",(function(){return Te})),e.d(n,"interpolateNumberArray",(function(){return we})),e.d(n,"interpolateObject",(function(){return Se})),e.d(n,"interpolateRound",(function(){return Ev})),e.d(n,"interpolateString",(function(){return Re})),e.d(n,"interpolateTransformCss",(function(){return Ar})),e.d(n,"interpolateTransformSvg",(function(){return kr})),e.d(n,"interpolateZoom",(function(){return zv})),e.d(n,"interpolateRgb",(function(){return be})),e.d(n,"interpolateRgbBasis",(function(){return me})),e.d(n,"interpolateRgbBasisClosed",(function(){return xe})),e.d(n,"interpolateHsl",(function(){return Dv})),e.d(n,"interpolateHslLong",(function(){return Ov})),e.d(n,"interpolateLab",(function(){return qv})),e.d(n,"interpolateHcl",(function(){return Uv})),e.d(n,"interpolateHclLong",(function(){return jv})),e.d(n,"interpolateCubehelix",(function(){return Fv})),e.d(n,"interpolateCubehelixLong",(function(){return Yv})),e.d(n,"piecewise",(function(){return Iv})),e.d(n,"quantize",(function(){return Hv})),e.d(n,"path",(function(){return nu})),e.d(n,"polygonArea",(function(){return Vv})),e.d(n,"polygonCentroid",(function(){return Xv})),e.d(n,"polygonHull",(function(){return $v})),e.d(n,"polygonContains",(function(){return Qv})),e.d(n,"polygonLength",(function(){return Kv})),e.d(n,"quadtree",(function(){return Cc})),e.d(n,"randomUniform",(function(){return tg})),e.d(n,"randomNormal",(function(){return ng})),e.d(n,"randomLogNormal",(function(){return eg})),e.d(n,"randomBates",(function(){return ig})),e.d(n,"randomIrwinHall",(function(){return rg})),e.d(n,"randomExponential",(function(){return ug})),e.d(n,"scaleBand",(function(){return dg})),e.d(n,"scalePoint",(function(){return pg})),e.d(n,"scaleIdentity",(function(){return Eg})),e.d(n,"scaleLinear",(function(){return Sg})),e.d(n,"scaleLog",(function(){return Ug})),e.d(n,"scaleSymlog",(function(){return Yg})),e.d(n,"scaleOrdinal",(function(){return hg})),e.d(n,"scaleImplicit",(function(){return sg})),e.d(n,"scalePow",(function(){return Gg})),e.d(n,"scaleSqrt",(function(){return Wg})),e.d(n,"scaleQuantile",(function(){return Zg})),e.d(n,"scaleQuantize",(function(){return $g})),e.d(n,"scaleThreshold",(function(){return Qg})),e.d(n,"scaleTime",(function(){return L_})),e.d(n,"scaleUtc",(function(){return G_})),e.d(n,"scaleSequential",(function(){return $_})),e.d(n,"scaleSequentialLog",(function(){return Q_})),e.d(n,"scaleSequentialPow",(function(){return J_})),e.d(n,"scaleSequentialSqrt",(function(){return tm})),e.d(n,"scaleSequentialSymlog",(function(){return K_})),e.d(n,"scaleSequentialQuantile",(function(){return nm})),e.d(n,"scaleDiverging",(function(){return rm})),e.d(n,"scaleDivergingLog",(function(){return im})),e.d(n,"scaleDivergingPow",(function(){return om})),e.d(n,"scaleDivergingSqrt",(function(){return am})),e.d(n,"scaleDivergingSymlog",(function(){return um})),e.d(n,"tickFormat",(function(){return kg})),e.d(n,"schemeCategory10",(function(){return fm})),e.d(n,"schemeAccent",(function(){return lm})),e.d(n,"schemeDark2",(function(){return sm})),e.d(n,"schemePaired",(function(){return hm})),e.d(n,"schemePastel1",(function(){return dm})),e.d(n,"schemePastel2",(function(){return pm})),e.d(n,"schemeSet1",(function(){return vm})),e.d(n,"schemeSet2",(function(){return gm})),e.d(n,"schemeSet3",(function(){return ym})),e.d(n,"schemeTableau10",(function(){return bm})),e.d(n,"interpolateBrBG",(function(){return xm})),e.d(n,"schemeBrBG",(function(){return mm})),e.d(n,"interpolatePRGn",(function(){return Mm})),e.d(n,"schemePRGn",(function(){return wm})),e.d(n,"interpolatePiYG",(function(){return Am})),e.d(n,"schemePiYG",(function(){return Nm})),e.d(n,"interpolatePuOr",(function(){return Tm})),e.d(n,"schemePuOr",(function(){return km})),e.d(n,"interpolateRdBu",(function(){return Em})),e.d(n,"schemeRdBu",(function(){return Sm})),e.d(n,"interpolateRdGy",(function(){return Pm})),e.d(n,"schemeRdGy",(function(){return Cm})),e.d(n,"interpolateRdYlBu",(function(){return Rm})),e.d(n,"schemeRdYlBu",(function(){return zm})),e.d(n,"interpolateRdYlGn",(function(){return Om})),e.d(n,"schemeRdYlGn",(function(){return Dm})),e.d(n,"interpolateSpectral",(function(){return Lm})),e.d(n,"schemeSpectral",(function(){return qm})),e.d(n,"interpolateBuGn",(function(){return jm})),e.d(n,"schemeBuGn",(function(){return Um})),e.d(n,"interpolateBuPu",(function(){return Fm})),e.d(n,"schemeBuPu",(function(){return Bm})),e.d(n,"interpolateGnBu",(function(){return Im})),e.d(n,"schemeGnBu",(function(){return Ym})),e.d(n,"interpolateOrRd",(function(){return Vm})),e.d(n,"schemeOrRd",(function(){return Hm})),e.d(n,"interpolatePuBuGn",(function(){return Gm})),e.d(n,"schemePuBuGn",(function(){return Xm})),e.d(n,"interpolatePuBu",(function(){return Zm})),e.d(n,"schemePuBu",(function(){return Wm})),e.d(n,"interpolatePuRd",(function(){return Qm})),e.d(n,"schemePuRd",(function(){return $m})),e.d(n,"interpolateRdPu",(function(){return Jm})),e.d(n,"schemeRdPu",(function(){return Km})),e.d(n,"interpolateYlGnBu",(function(){return nx})),e.d(n,"schemeYlGnBu",(function(){return tx})),e.d(n,"interpolateYlGn",(function(){return rx})),e.d(n,"schemeYlGn",(function(){return ex})),e.d(n,"interpolateYlOrBr",(function(){return ux})),e.d(n,"schemeYlOrBr",(function(){return ix})),e.d(n,"interpolateYlOrRd",(function(){return ax})),e.d(n,"schemeYlOrRd",(function(){return ox})),e.d(n,"interpolateBlues",(function(){return fx})),e.d(n,"schemeBlues",(function(){return cx})),e.d(n,"interpolateGreens",(function(){return sx})),e.d(n,"schemeGreens",(function(){return lx})),e.d(n,"interpolateGreys",(function(){return dx})),e.d(n,"schemeGreys",(function(){return hx})),e.d(n,"interpolatePurples",(function(){return vx})),e.d(n,"schemePurples",(function(){return px})),e.d(n,"interpolateReds",(function(){return yx})),e.d(n,"schemeReds",(function(){return gx})),e.d(n,"interpolateOranges",(function(){return _x})),e.d(n,"schemeOranges",(function(){return bx})),e.d(n,"interpolateCividis",(function(){return mx})),e.d(n,"interpolateCubehelixDefault",(function(){return xx})),e.d(n,"interpolateRainbow",(function(){return Ax})),e.d(n,"interpolateWarm",(function(){return wx})),e.d(n,"interpolateCool",(function(){return Mx})),e.d(n,"interpolateSinebow",(function(){return Ex})),e.d(n,"interpolateTurbo",(function(){return Cx})),e.d(n,"interpolateViridis",(function(){return zx})),e.d(n,"interpolateMagma",(function(){return Rx})),e.d(n,"interpolateInferno",(function(){return Dx})),e.d(n,"interpolatePlasma",(function(){return Ox})),e.d(n,"create",(function(){return qx})),e.d(n,"creator",(function(){return fn})),e.d(n,"local",(function(){return Ux})),e.d(n,"matcher",(function(){return mt})),e.d(n,"mouse",(function(){return Ue})),e.d(n,"namespace",(function(){return Et})),e.d(n,"namespaces",(function(){return St})),e.d(n,"clientPoint",(function(){return qe})),e.d(n,"select",(function(){return En})),e.d(n,"selectAll",(function(){return Bx})),e.d(n,"selection",(function(){return Sn})),e.d(n,"selector",(function(){return yt})),e.d(n,"selectorAll",(function(){return _t})),e.d(n,"style",(function(){return Bt})),e.d(n,"touch",(function(){return Le})),e.d(n,"touches",(function(){return Fx})),e.d(n,"window",(function(){return qt})),e.d(n,"event",(function(){return vn})),e.d(n,"customEvent",(function(){return xn})),e.d(n,"arc",(function(){return aw})),e.d(n,"area",(function(){return dw})),e.d(n,"line",(function(){return hw})),e.d(n,"pie",(function(){return gw})),e.d(n,"areaRadial",(function(){return ww})),e.d(n,"radialArea",(function(){return ww})),e.d(n,"lineRadial",(function(){return xw})),e.d(n,"radialLine",(function(){return xw})),e.d(n,"pointRadial",(function(){return Mw})),e.d(n,"linkHorizontal",(function(){return Pw})),e.d(n,"linkVertical",(function(){return zw})),e.d(n,"linkRadial",(function(){return Rw})),e.d(n,"symbol",(function(){return Qw})),e.d(n,"symbols",(function(){return $w})),e.d(n,"symbolCircle",(function(){return Dw})),e.d(n,"symbolCross",(function(){return Ow})),e.d(n,"symbolDiamond",(function(){return Uw})),e.d(n,"symbolSquare",(function(){return Iw})),e.d(n,"symbolStar",(function(){return Yw})),e.d(n,"symbolTriangle",(function(){return Vw})),e.d(n,"symbolWye",(function(){return Zw})),e.d(n,"curveBasisClosed",(function(){return rM})),e.d(n,"curveBasisOpen",(function(){return uM})),e.d(n,"curveBasis",(function(){return nM})),e.d(n,"curveBundle",(function(){return aM})),e.d(n,"curveCardinalClosed",(function(){return hM})),e.d(n,"curveCardinalOpen",(function(){return pM})),e.d(n,"curveCardinal",(function(){return lM})),e.d(n,"curveCatmullRomClosed",(function(){return _M})),e.d(n,"curveCatmullRomOpen",(function(){return xM})),e.d(n,"curveCatmullRom",(function(){return yM})),e.d(n,"curveLinearClosed",(function(){return MM})),e.d(n,"curveLinear",(function(){return fw})),e.d(n,"curveMonotoneX",(function(){return PM})),e.d(n,"curveMonotoneY",(function(){return zM})),e.d(n,"curveNatural",(function(){return OM})),e.d(n,"curveStep",(function(){return LM})),e.d(n,"curveStepAfter",(function(){return jM})),e.d(n,"curveStepBefore",(function(){return UM})),e.d(n,"stack",(function(){return IM})),e.d(n,"stackOffsetExpand",(function(){return HM})),e.d(n,"stackOffsetDiverging",(function(){return VM})),e.d(n,"stackOffsetNone",(function(){return BM})),e.d(n,"stackOffsetSilhouette",(function(){return XM})),e.d(n,"stackOffsetWiggle",(function(){return GM})),e.d(n,"stackOrderAppearance",(function(){return WM})),e.d(n,"stackOrderAscending",(function(){return $M})),e.d(n,"stackOrderDescending",(function(){return KM})),e.d(n,"stackOrderInsideOut",(function(){return JM})),e.d(n,"stackOrderNone",(function(){return FM})),e.d(n,"stackOrderReverse",(function(){return tN})),e.d(n,"timeInterval",(function(){return ty})),e.d(n,"timeMillisecond",(function(){return Ly})),e.d(n,"timeMilliseconds",(function(){return Uy})),e.d(n,"utcMillisecond",(function(){return Ly})),e.d(n,"utcMilliseconds",(function(){return Uy})),e.d(n,"timeSecond",(function(){return Dy})),e.d(n,"timeSeconds",(function(){return Oy})),e.d(n,"utcSecond",(function(){return Dy})),e.d(n,"utcSeconds",(function(){return Oy})),e.d(n,"timeMinute",(function(){return Py})),e.d(n,"timeMinutes",(function(){return zy})),e.d(n,"timeHour",(function(){return Sy})),e.d(n,"timeHours",(function(){return Ey})),e.d(n,"timeDay",(function(){return Ay})),e.d(n,"timeDays",(function(){return ky})),e.d(n,"timeWeek",(function(){return ly})),e.d(n,"timeWeeks",(function(){return yy})),e.d(n,"timeSunday",(function(){return ly})),e.d(n,"timeSundays",(function(){return yy})),e.d(n,"timeMonday",(function(){return sy})),e.d(n,"timeMondays",(function(){return by})),e.d(n,"timeTuesday",(function(){return hy})),e.d(n,"timeTuesdays",(function(){return _y})),e.d(n,"timeWednesday",(function(){return dy})),e.d(n,"timeWednesdays",(function(){return my})),e.d(n,"timeThursday",(function(){return py})),e.d(n,"timeThursdays",(function(){return xy})),e.d(n,"timeFriday",(function(){return vy})),e.d(n,"timeFridays",(function(){return wy})),e.d(n,"timeSaturday",(function(){return gy})),e.d(n,"timeSaturdays",(function(){return My})),e.d(n,"timeMonth",(function(){return uy})),e.d(n,"timeMonths",(function(){return oy})),e.d(n,"timeYear",(function(){return ey})),e.d(n,"timeYears",(function(){return ry})),e.d(n,"utcMinute",(function(){return V_})),e.d(n,"utcMinutes",(function(){return X_})),e.d(n,"utcHour",(function(){return Y_})),e.d(n,"utcHours",(function(){return I_})),e.d(n,"utcDay",(function(){return nb})),e.d(n,"utcDays",(function(){return eb})),e.d(n,"utcWeek",(function(){return By})),e.d(n,"utcWeeks",(function(){return Gy})),e.d(n,"utcSunday",(function(){return By})),e.d(n,"utcSundays",(function(){return Gy})),e.d(n,"utcMonday",(function(){return Fy})),e.d(n,"utcMondays",(function(){return Wy})),e.d(n,"utcTuesday",(function(){return Yy})),e.d(n,"utcTuesdays",(function(){return Zy})),e.d(n,"utcWednesday",(function(){return Iy})),e.d(n,"utcWednesdays",(function(){return $y})),e.d(n,"utcThursday",(function(){return Hy})),e.d(n,"utcThursdays",(function(){return Qy})),e.d(n,"utcFriday",(function(){return Vy})),e.d(n,"utcFridays",(function(){return Ky})),e.d(n,"utcSaturday",(function(){return Xy})),e.d(n,"utcSaturdays",(function(){return Jy})),e.d(n,"utcMonth",(function(){return j_})),e.d(n,"utcMonths",(function(){return B_})),e.d(n,"utcYear",(function(){return ib})),e.d(n,"utcYears",(function(){return ub})),e.d(n,"timeFormatDefaultLocale",(function(){return k_})),e.d(n,"timeFormat",(function(){return sb})),e.d(n,"timeParse",(function(){return hb})),e.d(n,"utcFormat",(function(){return db})),e.d(n,"utcParse",(function(){return pb})),e.d(n,"timeFormatLocale",(function(){return fb})),e.d(n,"isoFormat",(function(){return nN})),e.d(n,"isoParse",(function(){return eN})),e.d(n,"now",(function(){return We})),e.d(n,"timer",(function(){return Qe})),e.d(n,"timerFlush",(function(){return Ke})),e.d(n,"timeout",(function(){return er})),e.d(n,"interval",(function(){return rN})),e.d(n,"transition",(function(){return Qr})),e.d(n,"active",(function(){return oi})),e.d(n,"interrupt",(function(){return mr})),e.d(n,"voronoi",(function(){return YN})),e.d(n,"zoom",(function(){return eA})),e.d(n,"zoomTransform",(function(){return GN})),e.d(n,"zoomIdentity",(function(){return XN}))},function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=a();if(n&&n.has(t))return n.get(t);var e={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var o=i?Object.getOwnPropertyDescriptor(t,u):null;o&&(o.get||o.set)?Object.defineProperty(e,u,o):e[u]=t[u]}e.default=t,n&&n.set(t,e);return e}(e(0)),u=e(2),o=e(3);function a(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return a=function(){return t},t}function c(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var f=500-10-10;fetch("http://localhost:4000/api/get/users").then((function(t){return t.json()})).then((function(t){return(0,u.filterData)(t)})).then((function(t){return function(t){var n=(0,u.hasMigrationBg)(t),e=i.nest().key((function(t){return t.migratieachtergrond})).entries(n),r=(0,o.formatData)(t),a=e.map((function(t){return t.key})).sort(),l=i.scaleOrdinal().domain(a).range(["#F79824","blue"]);console.log(a,"hello"),r.forEach((function(t){t.length=t.values.length}));var s=["Zeer terecht","Terecht","Niet terecht, niet onterecht","Onterecht","Zeer onterecht"],h=i.nest().key((function(t){return t.stel_terecht})).sortKeys((function(t,n){return s.indexOf(t)-s.indexOf(n)})).key((function(t){return t.migratieachtergrond})).entries(n);function d(t){var n=i.nest().key((function(t){return t.migratieachtergrond})).entries(t);console.log(n,"ewfwef"),n.forEach((function(t){return t.values.forEach((function(n){return n.parentLength=t.values.length}))}));var e=i.nest().key((function(t){return t.stel_terecht})).rollup((function(t){return Math.ceil(100/t[0].parentLength*t.length)})).entries(n[0].values),r=i.nest().key((function(t){return t.stel_terecht})).rollup((function(t){return Math.round(100/t[0].parentLength*t.length)})).entries(n[1].values),u=[{key:"migratieachtergrond",waarden:e.map((function(t){return{key:t.key,waarden:c(Array(t.value).keys()).map((function(n){return{plek:n,terechtheid:t.key,migratieachtergrond:"ja"}}))}}))},{key:"geen_mig",waarden:r.map((function(t){return{key:t.key,waarden:c(Array(t.value).keys()).map((function(n){return{plek:n,terechtheid:t.key,migratieachtergrond:"nee"}}))}}))}],o=[].concat(c(u[0].waarden),c(u[1].waarden)).map((function(t){return t.waarden})).flat(2);console.log(o,"voor Fred");var a=o.map((function(t){return t.idealy=p(t.terechtheid)+f/h.length/2}));console.log(a);for(var l=i.forceSimulation(o).force("x",i.forceX((function(t,n){return t.x}))).force("y",i.forceY((function(t){return t.idealy}))),s=0;s<120;++s)l.tick();console.log(o,"halle"),m(o)}var p=i.scaleBand().rangeRound([0,f]);p.domain(i.map(h,(function(t){return t.key})).keys());var v=i.select("#population").selectAll("div").data(h).enter().append("div");v.append("h3").text((function(n){return"".concat(n.key," ").concat(Math.round(100/t.length*n.length),"%")})),v.append("p").text((function(t){return"Nederlandse Nederlanders ".concat(t.values[0].values.length)})),v.append("p").text((function(t){return"Nederlanders met een migratieachtergrond ".concat(t.values[1].values.length)}));var g=i.axisLeft(p);g.tickSize(-1300);h.map((function(t){return t.values.map((function(t,n){return t.x=n+120}))}));console.log(t);var y=i.select("svg").attr("viewBox","0 0 ".concat(window.innerWidth," 900"));y.append("g");var b=y.append("g");b.attr("id","scatterplot"),y.append("g").attr("class","y axis").attr("id","axis--y").call(g),d(t);var _=1;function m(n){i.select('nav[data-filter="gevolg-contact"]').on("click",(function(){_%2==0?console.log("disabled"):(console.log("enabled"),_=1),[event.target.dataset],event.target.classList.add("active"),d(t.filter((function(t){return"99999"!=t[event.target.dataset.value]&&"0"!=t[event.target.dataset.value]})))})),console.log("update");var e=b.selectAll(".dot");e.data(n).exit().remove(),e.data(n).enter().append("circle").attr("id",(function(t){return t.migratieachtergrond})).attr("class","dot").transition().duration(2e3).attr("r",5).attr("cx",(function(t,n){return console.log("enter pattern"),0==t.plek?15:15*t.plek})).attr("cy",(function(t,n,e){return t.y+("ja"==t.migratieachtergrond?10:-10)})).style("fill",(function(t){return l(t.migratieachtergrond)})),e.data(n).attr("id",(function(t){return t.migratieachtergrond})).attr("class","dot").attr("r",5),e.attr("cy",(function(t,n,e){return t.y+("ja"==t.migratieachtergrond?10:-10)})).attr("cx",(function(t,n){return console.log("update pattern"),0==t.plek?15:15*t.plek})).style("fill",(function(t){return l(t.migratieachtergrond)}))}console.log(l.domain(),"wefwef"),function(){var t=y.append("g").attr("class","legend");t.append("rect").attr("x",5).attr("class","legend-wrapper");var n=t.append("g").attr("class","legend-container").attr("data-legend","container").on("click",(function(){var t;if("container"===event.target.parentNode.parentNode.dataset.legend){var e=event.target.parentNode;n.selectAll(".legend-item").classed("active",!1).attr("class","legend-item"),e.classList.add("active"),t=e.dataset.category,m(h.filter((function(n){return n.key==t})).reduce((function(t){return t})).values)}})),e=n.selectAll(".legend").data(l.domain()).enter().append("g").attr("class","legend-item").attr("data-category",(function(t){return console.log(t),t})).attr("transform",(function(t,n){return"translate(0,"+35*n+")"})).on("click",(function(){}));e.append("circle").attr("cx",180).attr("cy",9).attr("r",10).style("fill",l),e.append("text").attr("x",200).attr("y",9).attr("dy",".35em").attr("class","legend-text").text((function(t){return t})),t.style("transform","translate(0px, ".concat(f+5,"px)"))}()}(t)}))},function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.hasMigrationBg=n.filterData=void 0;!function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=i();if(n&&n.has(t))return n.get(t);var e={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=u?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(e,o,a):e[o]=t[o]}e.default=t,n&&n.set(t,e)}(e(0));function i(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return i=function(){return t},t}function u(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.filterData=function(t){return console.log(t.filter((function(t){return"99999"!=t.stel_terecht}))),t.filter((function(t){if("99999"!=t.stel_terecht&&"Geen antwoord"!=t.stel_terecht&&"De politie kwam naar mij toe"==t.Totstand)return!0}))},n.hasMigrationBg=function(t){var n=t.filter((function(t){if("Nederlands"==t.Herkomst_def)return t.migratieachtergrond="Deelnemers zonder migratieachtergrond",!0})),e=t.filter((function(t){if("Nederlands"!=t.Herkomst_def)return t.migratieachtergrond="Deelnemers met migratieachtergrond",!0}));return[].concat(u(n),u(e))}},function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.formatData=void 0;var i=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=u();if(n&&n.has(t))return n.get(t);var e={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(e,o,a):e[o]=t[o]}e.default=t,n&&n.set(t,e);return e}(e(0));function u(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return u=function(){return t},t}n.formatData=function(t){var n=["Zeer terecht","Terecht","Niet terecht, niet onterecht","Onterecht","Zeer onterecht"];return i.nest().key((function(t){return t.stel_terecht})).sortKeys((function(t,e){return n.indexOf(t)-n.indexOf(e)})).entries(t)}}]);
  =======
  !function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=62)}({62:function(t,n,e){"use strict";e.r(n);var r=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},i=function(t){var n;return 1===t.length&&(n=t,t=function(t,e){return r(n(t),e)}),{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}}};var o=i(r);o.right,o.left;var u=Array.prototype,a=(u.slice,u.map,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});Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var s=Array.prototype.slice,c=function(t){return t},l=1,f=2,h=3,g=4,p=1e-6;function d(t){return"translate("+(t+.5)+",0)"}function v(t){return"translate(0,"+(t+.5)+")"}function y(t){return function(n){return+t(n)}}function m(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}function _(){return!this.__axis}function w(t,n){var e=[],r=null,i=null,o=6,u=6,a=3,w=t===l||t===g?-1:1,x=t===g||t===f?"x":"y",M=t===l||t===h?d:v;function b(s){var d=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,v=null==i?n.tickFormat?n.tickFormat.apply(n,e):c:i,b=Math.max(o,0)+a,C=n.range(),k=+C[0]+.5,N=+C[C.length-1]+.5,A=(n.bandwidth?m:y)(n.copy()),T=s.selection?s.selection():s,U=T.selectAll(".domain").data([null]),D=T.selectAll(".tick").data(d,n).order(),S=D.exit(),L=D.enter().append("g").attr("class","tick"),E=D.select("line"),R=D.select("text");U=U.merge(U.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),D=D.merge(L),E=E.merge(L.append("line").attr("stroke","currentColor").attr(x+"2",w*o)),R=R.merge(L.append("text").attr("fill","currentColor").attr(x,w*b).attr("dy",t===l?"0em":t===h?"0.71em":"0.32em")),s!==T&&(U=U.transition(s),D=D.transition(s),E=E.transition(s),R=R.transition(s),S=S.transition(s).attr("opacity",p).attr("transform",(function(t){return isFinite(t=A(t))?M(t):this.getAttribute("transform")})),L.attr("opacity",p).attr("transform",(function(t){var n=this.parentNode.__axis;return M(n&&isFinite(n=n(t))?n:A(t))}))),S.remove(),U.attr("d",t===g||t==f?u?"M"+w*u+","+k+"H0.5V"+N+"H"+w*u:"M0.5,"+k+"V"+N:u?"M"+k+","+w*u+"V0.5H"+N+"V"+w*u:"M"+k+",0.5H"+N),D.attr("opacity",1).attr("transform",(function(t){return M(A(t))})),E.attr(x+"2",w*o),R.attr(x,w*b).text(v),T.filter(_).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===f?"start":t===g?"end":"middle"),T.each((function(){this.__axis=A}))}return b.scale=function(t){return arguments.length?(n=t,b):n},b.ticks=function(){return e=s.call(arguments),b},b.tickArguments=function(t){return arguments.length?(e=null==t?[]:s.call(t),b):e.slice()},b.tickValues=function(t){return arguments.length?(r=null==t?null:s.call(t),b):r&&r.slice()},b.tickFormat=function(t){return arguments.length?(i=t,b):i},b.tickSize=function(t){return arguments.length?(o=u=+t,b):o},b.tickSizeInner=function(t){return arguments.length?(o=+t,b):o},b.tickSizeOuter=function(t){return arguments.length?(u=+t,b):u},b.tickPadding=function(t){return arguments.length?(a=+t,b):a},b}var x={value:function(){}};function M(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new b(r)}function b(t){this._=t}function C(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 k(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function N(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=x,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}b.prototype=M.prototype={constructor:b,on:function(t,n){var e,r=this._,i=C(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]=N(r[e],t.name,n);else if(null==n)for(e in r)r[e]=N(r[e],t.name,null);return this}for(;++o<u;)if((e=(t=i[o]).type)&&(e=k(r[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new b(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 A=M;function T(){}var U=function(t){return null==t?T:function(){return this.querySelector(t)}};function D(){return[]}var S=function(t){return null==t?D:function(){return this.querySelectorAll(t)}},L=function(t){return function(){return this.matches(t)}},E=function(t){return new Array(t.length)};function R(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}R.prototype={constructor:R,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 P="$";function F(t,n,e,r,i,o){for(var u,a=0,s=n.length,c=o.length;a<c;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new R(t,o[a]);for(;a<s;++a)(u=n[a])&&(i[a]=u)}function Y(t,n,e,r,i,o,u){var a,s,c,l={},f=n.length,h=o.length,g=new Array(f);for(a=0;a<f;++a)(s=n[a])&&(g[a]=c=P+u.call(s,s.__data__,a,n),c in l?i[a]=s:l[c]=s);for(a=0;a<h;++a)(s=l[c=P+u.call(t,o[a],a,o)])?(r[a]=s,s.__data__=o[a],l[c]=null):e[a]=new R(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&l[g[a]]===s&&(i[a]=s)}function H(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}var j="http://www.w3.org/1999/xhtml",q={svg:"http://www.w3.org/2000/svg",xhtml:j,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},O=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),q.hasOwnProperty(n)?{space:q[n],local:t}:t};function z(t){return function(){this.removeAttribute(t)}}function X(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $(t,n){return function(){this.setAttribute(t,n)}}function V(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function I(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Z(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)}}var B=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function W(t){return function(){this.style.removeProperty(t)}}function Q(t,n,e){return function(){this.style.setProperty(t,n,e)}}function J(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function K(t,n){return t.style.getPropertyValue(n)||B(t).getComputedStyle(t,null).getPropertyValue(n)}function G(t){return function(){delete this[t]}}function tt(t,n){return function(){this[t]=n}}function nt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function et(t){return t.trim().split(/^|\s+/)}function rt(t){return t.classList||new it(t)}function it(t){this._node=t,this._names=et(t.getAttribute("class")||"")}function ot(t,n){for(var e=rt(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function ut(t,n){for(var e=rt(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function at(t){return function(){ot(this,t)}}function st(t){return function(){ut(this,t)}}function ct(t,n){return function(){(n.apply(this,arguments)?ot:ut)(this,t)}}it.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}};function lt(){this.textContent=""}function ft(t){return function(){this.textContent=t}}function ht(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function gt(){this.innerHTML=""}function pt(t){return function(){this.innerHTML=t}}function dt(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function vt(){this.nextSibling&&this.parentNode.appendChild(this)}function yt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function mt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===j&&n.documentElement.namespaceURI===j?n.createElement(t):n.createElementNS(e,t)}}function _t(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var wt=function(t){var n=O(t);return(n.local?_t:mt)(n)};function xt(){return null}function Mt(){var t=this.parentNode;t&&t.removeChild(this)}function bt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ct(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}var kt={},Nt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(kt={mouseenter:"mouseover",mouseleave:"mouseout"}));function At(t,n,e){return t=Tt(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Tt(t,n,e){return function(r){var i=Nt;Nt=r;try{t.call(this,this.__data__,n,e)}finally{Nt=i}}}function Ut(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 Dt(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 St(t,n,e){var r=kt.hasOwnProperty(t.type)?At:Tt;return function(i,o,u){var a,s=this.__on,c=r(n,o,u);if(s)for(var l=0,f=s.length;l<f;++l)if((a=s[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=e),void(a.value=n);this.addEventListener(t.type,c,e),a={type:t.type,name:t.name,value:n,listener:c,capture:e},s?s.push(a):this.__on=[a]}}function Lt(t,n,e){var r=B(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 Et(t,n){return function(){return Lt(this,t,n)}}function Rt(t,n){return function(){return Lt(this,t,n.apply(this,arguments))}}var Pt=[null];function Ft(t,n){this._groups=t,this._parents=n}function Yt(){return new Ft([[document.documentElement]],Pt)}Ft.prototype=Yt.prototype={constructor:Ft,select:function(t){"function"!=typeof t&&(t=U(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],s=a.length,c=r[i]=new Array(s),l=0;l<s;++l)(o=a[l])&&(u=t.call(o,o.__data__,l,a))&&("__data__"in o&&(u.__data__=o.__data__),c[l]=u);return new Ft(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=S(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],s=a.length,c=0;c<s;++c)(u=a[c])&&(r.push(t.call(u,u.__data__,c,a)),i.push(u));return new Ft(r,i)},filter:function(t){"function"!=typeof t&&(t=L(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,s=r[i]=[],c=0;c<a;++c)(o=u[c])&&t.call(o,o.__data__,c,u)&&s.push(o);return new Ft(r,this._parents)},data:function(t,n){if(!t)return p=new Array(this.size()),l=-1,this.each((function(t){p[++l]=t})),p;var e,r=n?Y:F,i=this._parents,o=this._groups;"function"!=typeof t&&(e=t,t=function(){return e});for(var u=o.length,a=new Array(u),s=new Array(u),c=new Array(u),l=0;l<u;++l){var f=i[l],h=o[l],g=h.length,p=t.call(f,f&&f.__data__,l,i),d=p.length,v=s[l]=new Array(d),y=a[l]=new Array(d);r(f,h,v,y,c[l]=new Array(g),p,n);for(var m,_,w=0,x=0;w<d;++w)if(m=v[w]){for(w>=x&&(x=w+1);!(_=y[x])&&++x<d;);m._next=_||null}}return(a=new Ft(a,i))._enter=s,a._exit=c,a},enter:function(){return new Ft(this._enter||this._groups.map(E),this._parents)},exit:function(){return new Ft(this._exit||this._groups.map(E),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},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 s,c=n[a],l=e[a],f=c.length,h=u[a]=new Array(f),g=0;g<f;++g)(s=c[g]||l[g])&&(h[g]=s);for(;a<r;++a)u[a]=n[a];return new Ft(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&&4^r.compareDocumentPosition(u)&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=H);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],s=a.length,c=i[o]=new Array(s),l=0;l<s;++l)(u=a[l])&&(c[l]=u);c.sort(n)}return new Ft(i,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=O(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?X:z:"function"==typeof n?e.local?Z:I:e.local?V:$)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?W:"function"==typeof n?J:Q)(t,n,null==e?"":e)):K(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?G:"function"==typeof n?nt:tt)(t,n)):this.node()[t]},classed:function(t,n){var e=et(t+"");if(arguments.length<2){for(var r=rt(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ct:n?at:st)(e,n))},text:function(t){return arguments.length?this.each(null==t?lt:("function"==typeof t?ht:ft)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?gt:("function"==typeof t?dt:pt)(t)):this.node().innerHTML},raise:function(){return this.each(vt)},lower:function(){return this.each(yt)},append:function(t){var n="function"==typeof t?t:wt(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:wt(t),r=null==n?xt:"function"==typeof n?n:U(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Mt)},clone:function(t){return this.select(t?Ct:bt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=Ut(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?St:Dt,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 s,c=0,l=a.length;c<l;++c)for(r=0,s=a[c];r<u;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?Rt:Et)(t,n))}};var Ht=Yt,jt=function(t){return"string"==typeof t?new Ft([[document.querySelector(t)]],[document.documentElement]):new Ft([[t]],Pt)};var qt=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t};function Ot(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function zt(){}var Xt="\\s*([+-]?\\d+)\\s*",$t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",It=/^#([0-9a-f]{3,8})$/,Zt=new RegExp("^rgb\\("+[Xt,Xt,Xt]+"\\)$"),Bt=new RegExp("^rgb\\("+[Vt,Vt,Vt]+"\\)$"),Wt=new RegExp("^rgba\\("+[Xt,Xt,Xt,$t]+"\\)$"),Qt=new RegExp("^rgba\\("+[Vt,Vt,Vt,$t]+"\\)$"),Jt=new RegExp("^hsl\\("+[$t,Vt,Vt]+"\\)$"),Kt=new RegExp("^hsla\\("+[$t,Vt,Vt,$t]+"\\)$"),Gt={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};function tn(){return this.rgb().formatHex()}function nn(){return this.rgb().formatRgb()}function en(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=It.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?rn(n):3===e?new an(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?new an(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?new an(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Zt.exec(t))?new an(n[1],n[2],n[3],1):(n=Bt.exec(t))?new an(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Wt.exec(t))?on(n[1],n[2],n[3],n[4]):(n=Qt.exec(t))?on(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Jt.exec(t))?fn(n[1],n[2]/100,n[3]/100,1):(n=Kt.exec(t))?fn(n[1],n[2]/100,n[3]/100,n[4]):Gt.hasOwnProperty(t)?rn(Gt[t]):"transparent"===t?new an(NaN,NaN,NaN,0):null}function rn(t){return new an(t>>16&255,t>>8&255,255&t,1)}function on(t,n,e,r){return r<=0&&(t=n=e=NaN),new an(t,n,e,r)}function un(t,n,e,r){return 1===arguments.length?((i=t)instanceof zt||(i=en(i)),i?new an((i=i.rgb()).r,i.g,i.b,i.opacity):new an):new an(t,n,e,null==r?1:r);var i}function an(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function sn(){return"#"+ln(this.r)+ln(this.g)+ln(this.b)}function cn(){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+")")}function ln(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function fn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new gn(t,n,e,r)}function hn(t){if(t instanceof gn)return new gn(t.h,t.s,t.l,t.opacity);if(t instanceof zt||(t=en(t)),!t)return new gn;if(t instanceof gn)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,s=(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/=s<.5?o+i:2-o-i,u*=60):a=s>0&&s<1?0:u,new gn(u,a,s,t.opacity)}function gn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function pn(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 dn(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}qt(zt,en,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:tn,formatHex:tn,formatHsl:function(){return hn(this).formatHsl()},formatRgb:nn,toString:nn}),qt(an,un,Ot(zt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new an(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new an(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sn,formatHex:sn,formatRgb:cn,toString:cn})),qt(gn,(function(t,n,e,r){return 1===arguments.length?hn(t):new gn(t,n,e,null==r?1:r)}),Ot(zt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new gn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new gn(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 an(pn(t>=240?t-240:t+120,i,r),pn(t,i,r),pn(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},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var vn=function(t){return function(){return t}};function yn(t,n){return function(e){return t+e*n}}function mn(t){return 1==(t=+t)?_n:function(n,e){return e-n?function(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)}}(n,e,t):vn(isNaN(n)?e:n)}}function _n(t,n){var e=n-t;return e?yn(t,e):vn(isNaN(t)?n:t)}var wn=function t(n){var e=mn(n);function r(t,n){var r=e((t=un(t)).r,(n=un(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),u=_n(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}return r.gamma=t,r}(1);function xn(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=un(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+""}}}xn((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 dn((e-r/n)*n,u,i,o,a)}})),xn((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 dn((e-r/n)*n,i,o,u,a)}}));var Mn=function(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}},bn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cn=new RegExp(bn.source,"g");var kn,Nn,An=function(t,n){var e,r,i,o=bn.lastIndex=Cn.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(e=bn.exec(t))&&(r=Cn.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,s.push({i:u,x:Mn(e,r)})),o=Cn.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var e,r=0;r<n;++r)a[(e=s[r]).i]=e.x(t);return a.join("")})},Tn=0,Un=0,Dn=0,Sn=1e3,Ln=0,En=0,Rn=0,Pn="object"==typeof performance&&performance.now?performance:Date,Fn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Yn(){return En||(Fn(Hn),En=Pn.now()+Rn)}function Hn(){En=0}function jn(){this._call=this._time=this._next=null}function qn(t,n,e){var r=new jn;return r.restart(t,n,e),r}function On(){En=(Ln=Pn.now())+Rn,Tn=Un=0;try{!function(){Yn(),++Tn;for(var t,n=kn;n;)(t=En-n._time)>=0&&n._call.call(null,t),n=n._next;--Tn}()}finally{Tn=0,function(){var t,n,e=kn,r=1/0;for(;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:kn=n);Nn=t,Xn(r)}(),En=0}}function zn(){var t=Pn.now(),n=t-Ln;n>Sn&&(Rn-=n,Ln=t)}function Xn(t){Tn||(Un&&(Un=clearTimeout(Un)),t-En>24?(t<1/0&&(Un=setTimeout(On,t-Pn.now()-Rn)),Dn&&(Dn=clearInterval(Dn))):(Dn||(Ln=Pn.now(),Dn=setInterval(zn,Sn)),Tn=1,Fn(On)))}jn.prototype=qn.prototype={constructor:jn,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Yn():+e)+(null==n?0:+n),this._next||Nn===this||(Nn?Nn._next=this:kn=this,Nn=this),this._call=t,this._time=e,Xn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xn())}};var $n=function(t,n,e){var r=new jn;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r},Vn=A("start","end","cancel","interrupt"),In=[],Zn=0,Bn=1,Wn=2,Qn=3,Jn=4,Kn=5,Gn=6,te=function(t,n,e,r,i,o){var u=t.__transition;if(u){if(e in u)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(s){var c,l,f,h;if(e.state!==Bn)return a();for(c in i)if((h=i[c]).name===e.name){if(h.state===Qn)return $n(o);h.state===Jn?(h.state=Gn,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[c]):+c<n&&(h.state=Gn,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[c])}if($n((function(){e.state===Qn&&(e.state=Jn,e.timer.restart(u,e.delay,e.time),u(s))})),e.state=Wn,e.on.call("start",t,t.__data__,e.index,e.group),e.state===Wn){for(e.state=Qn,r=new Array(f=e.tween.length),c=0,l=-1;c<f;++c)(h=e.tween[c].value.call(t,t.__data__,e.index,e.group))&&(r[++l]=h);r.length=l+1}}function u(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(a),e.state=Kn,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);e.state===Kn&&(e.on.call("end",t,t.__data__,e.index,e.group),a())}function a(){for(var r in e.state=Gn,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=qn((function(t){e.state=Bn,e.timer.restart(o,e.delay,e.time),e.delay<=t&&o(t-e.delay)}),0,e.time)}(t,e,{name:n,index:r,group:i,on:Vn,tween:In,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Zn})};function ne(t,n){var e=re(t,n);if(e.state>Zn)throw new Error("too late; already scheduled");return e}function ee(t,n){var e=re(t,n);if(e.state>Qn)throw new Error("too late; already running");return e}function re(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var ie,oe,ue,ae,se=function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>Wn&&e.state<Kn,e.state=Gn,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}},ce=180/Math.PI,le={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},fe=function(t,n,e,r,i,o){var u,a,s;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(s=t*e+n*r)&&(e-=t*s,r-=n*s),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,s/=a),t*r<n*e&&(t=-t,n=-n,s=-s,u=-u),{translateX:i,translateY:o,rotate:Math.atan2(n,t)*ce,skewX:Math.atan(s)*ce,scaleX:u,scaleY:a}};function he(t,n,e,r){function i(t){return t.length?t.pop()+" ":""}return function(o,u){var a=[],s=[];return o=t(o),u=t(u),function(t,r,i,o,u,a){if(t!==i||r!==o){var s=u.push("translate(",null,n,null,e);a.push({i:s-4,x:Mn(t,i)},{i:s-2,x:Mn(r,o)})}else(i||o)&&u.push("translate("+i+n+o+e)}(o.translateX,o.translateY,u.translateX,u.translateY,a,s),function(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:Mn(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,u.rotate,a,s),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Mn(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,u.skewX,a,s),function(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:Mn(t,e)},{i:a-2,x:Mn(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,a,s),o=u=null,function(t){for(var n,e=-1,r=s.length;++e<r;)a[(n=s[e]).i]=n.x(t);return a.join("")}}}var ge=he((function(t){return"none"===t?le:(ie||(ie=document.createElement("DIV"),oe=document.documentElement,ue=document.defaultView),ie.style.transform=t,t=ue.getComputedStyle(oe.appendChild(ie),null).getPropertyValue("transform"),oe.removeChild(ie),t=t.slice(7,-1).split(","),fe(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),pe=he((function(t){return null==t?le:(ae||(ae=document.createElementNS("http://www.w3.org/2000/svg","g")),ae.setAttribute("transform",t),(t=ae.transform.baseVal.consolidate())?(t=t.matrix,fe(t.a,t.b,t.c,t.d,t.e,t.f)):le)}),", ",")",")");function de(t,n){var e,r;return function(){var i=ee(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 ve(t,n,e){var r,i;if("function"!=typeof e)throw new Error;return function(){var o=ee(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,c=i.length;s<c;++s)if(i[s].name===n){i[s]=a;break}s===c&&i.push(a)}o.tween=i}}function ye(t,n,e){var r=t._id;return t.each((function(){var t=ee(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return re(t,r).value[n]}}var me=function(t,n){var e;return("number"==typeof n?Mn:n instanceof en?wn:(e=en(n))?(n=e,wn):An)(t,n)};function _e(t){return function(){this.removeAttribute(t)}}function we(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xe(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function Me(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function be(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttribute(t)}}function Ce(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttributeNS(t.space,t.local)}}function ke(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Ne(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i}function Ae(t,n){return function(){ne(this,t).delay=+n.apply(this,arguments)}}function Te(t,n){return n=+n,function(){ne(this,t).delay=n}}function Ue(t,n){return function(){ee(this,t).duration=+n.apply(this,arguments)}}function De(t,n){return n=+n,function(){ee(this,t).duration=n}}function Se(t,n){if("function"!=typeof n)throw new Error;return function(){ee(this,t).ease=n}}function Le(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?ne:ee;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}var Ee=Ht.prototype.constructor;function Re(t){return function(){this.style.removeProperty(t)}}function Pe(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}function Fe(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}var Ye=0;function He(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function je(){return++Ye}var qe=Ht.prototype;He.prototype=function(t){return Ht().transition(t)}.prototype={constructor:He,select:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=U(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,s,c=r[u],l=c.length,f=o[u]=new Array(l),h=0;h<l;++h)(a=c[h])&&(s=t.call(a,a.__data__,h,c))&&("__data__"in a&&(s.__data__=a.__data__),f[h]=s,te(f[h],n,e,h,f,re(a,e)));return new He(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!=typeof t&&(t=S(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,c=r[a],l=c.length,f=0;f<l;++f)if(s=c[f]){for(var h,g=t.call(s,s.__data__,f,c),p=re(s,e),d=0,v=g.length;d<v;++d)(h=g[d])&&te(h,n,e,d,g,p);o.push(g),u.push(s)}return new He(o,u,n,e)},filter:function(t){"function"!=typeof t&&(t=L(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,s=r[i]=[],c=0;c<a;++c)(o=u[c])&&t.call(o,o.__data__,c,u)&&s.push(o);return new He(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 s,c=n[a],l=e[a],f=c.length,h=u[a]=new Array(f),g=0;g<f;++g)(s=c[g]||l[g])&&(h[g]=s);for(;a<r;++a)u[a]=n[a];return new He(u,this._parents,this._name,this._id)},selection:function(){return new Ee(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=je(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,c=0;c<s;++c)if(u=a[c]){var l=re(u,n);te(u,t,e,c,a,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new He(r,this._parents,t,e)},call:qe.call,nodes:qe.nodes,node:qe.node,size:qe.size,empty:qe.empty,each:qe.each,on:function(t,n){var e=this._id;return arguments.length<2?re(this.node(),e).on.on(t):this.each(Le(e,t,n))},attr:function(t,n){var e=O(t),r="transform"===e?pe:me;return this.attrTween(t,"function"==typeof n?(e.local?Ce:be)(e,r,ye(this,"attr."+t,n)):null==n?(e.local?we:_e)(e):(e.local?Me:xe)(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=O(t);return this.tween(e,(r.local?ke:Ne)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?ge:me;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=K(this,t),u=(this.style.removeProperty(t),K(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,Re(t)):"function"==typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=K(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=K(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}(t,r,ye(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=ee(this,t),c=s.on,l=null==s.value[u]?o||(o=Re(n)):void 0;c===e&&i===l||(r=(e=c).copy()).on(a,i=l),s.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=K(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},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,Pe(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(ye(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,Fe(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=re(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?de:ve)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Ae:Te)(n,t)):re(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?Ue:De)(n,t)):re(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(Se(n,t)):re(this.node(),n).ease},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0==--i&&o()}};e.each((function(){var e=ee(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n}))}))}};var Oe={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function ze(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))return Oe.time=Yn(),Oe;return e}Ht.prototype.interrupt=function(t){return this.each((function(){se(this,t)}))},Ht.prototype.transition=function(t){var n,e;t instanceof He?(n=t._id,t=t._name):(n=je(),(e=Oe).time=Yn(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,c=0;c<s;++c)(u=a[c])&&te(u,t,n,c,a,e||ze(u,n));return new He(r,this._parents,t,n)};function Xe(t){return[+t[0],+t[1]]}function $e(t){return[Xe(t[0]),Xe(t[1])]}["w","e"].map(Ve),["n","s"].map(Ve),["n","w","e","s","nw","ne","sw","se"].map(Ve);function Ve(t){return{type:t}}var Ie=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN};var Ze,Be;1===(Ze=Ie).length&&(Be=Ze,Ze=function(t,n){return Ie(Be(t),n)});var We=Array.prototype;We.slice,We.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);Math.cos,Math.sin,Math.PI,Math.max;Array.prototype.slice;var Qe=Math.PI,Je=2*Qe,Ke=Je-1e-6;function Ge(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function tr(){return new Ge}Ge.prototype=tr.prototype={constructor:Ge,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,s=r-n,c=o-t,l=u-n,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(f>1e-6)if(Math.abs(l*a-s*c)>1e-6&&i){var h=e-o,g=r-u,p=a*a+s*s,d=h*h+g*g,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((Qe-Math.acos((p+f-d)/(2*v*y)))/2),_=m/y,w=m/v;Math.abs(_-1)>1e-6&&(this._+="L"+(t+_*c)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*g)+","+(this._x1=t+w*a)+","+(this._y1=n+w*s)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var u=(e=+e)*Math.cos(r),a=e*Math.sin(r),s=t+u,c=n+a,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+s+","+c),e&&(f<0&&(f=f%Je+Je),f>Ke?this._+="A"+e+","+e+",0,1,"+l+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+l+","+(this._x1=s)+","+(this._y1=c):f>1e-6&&(this._+="A"+e+","+e+",0,"+ +(f>=Qe)+","+l+","+(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._}};function nr(){}function er(t,n){var e=new nr;if(t instanceof nr)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}nr.prototype=er.prototype={constructor:nr,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 rr=er,ir=function(){var t,n,e,r=[],i=[];function o(e,i,u,a){if(i>=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var s,c,l,f=-1,h=e.length,g=r[i++],p=rr(),d=u();++f<h;)(l=p.get(s=g(c=e[f])+""))?l.push(c):p.set(s,[c]);return p.each((function(t,n){a(d,n,o(t,i,u,a))})),d}return e={object:function(t){return o(t,0,or,ur)},map:function(t){return o(t,0,ar,sr)},entries:function(t){return function t(e,o){if(++o>r.length)return e;var u,a=i[o-1];return null!=n&&o>=r.length?u=e.entries():(u=[],e.each((function(n,e){u.push({key:e,values:t(n,o)})}))),null!=a?u.sort((function(t,n){return a(t.key,n.key)})):u}(o(t,0,ar,sr),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}};function or(){return{}}function ur(t,n,e){t[n]=e}function ar(){return rr()}function sr(t,n,e){t.set(n,e)}function cr(){}var lr=rr.prototype;function fr(t,n){var e=new cr;if(t instanceof cr)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}cr.prototype=fr.prototype={constructor:cr,has:lr.has,add:function(t){return this["$"+(t+="")]=t,this},remove:lr.remove,clear:lr.clear,values:lr.keys,size:lr.size,empty:lr.empty,each:lr.each};var hr=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN};var gr=function(t){return 1===t.length&&(t=function(t){return function(n,e){return hr(t(n),e)}}(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}}}(hr);gr.right,gr.left;var pr=Array.prototype;pr.slice,pr.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);Array.prototype.slice;var dr={},vr={},yr=34,mr=10,_r=13;function wr(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'})).join(",")+"}")}function xr(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 Mr(t,n){var e=t+"",r=e.length;return r<n?new Array(n-r+1).join(0)+e:e}function br(t){var n,e=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((n=t.getUTCFullYear())<0?"-"+Mr(-n,6):n>9999?"+"+Mr(n,6):Mr(n,4))+"-"+Mr(t.getUTCMonth()+1,2)+"-"+Mr(t.getUTCDate(),2)+(o?"T"+Mr(e,2)+":"+Mr(r,2)+":"+Mr(i,2)+"."+Mr(o,3)+"Z":i?"T"+Mr(e,2)+":"+Mr(r,2)+":"+Mr(i,2)+"Z":r||e?"T"+Mr(e,2)+":"+Mr(r,2)+"Z":"")}var Cr=function(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function r(t,n){var r,i=[],o=t.length,u=0,a=0,s=o<=0,c=!1;function l(){if(s)return vr;if(c)return c=!1,dr;var n,r,i=u;if(t.charCodeAt(i)===yr){for(;u++<o&&t.charCodeAt(u)!==yr||t.charCodeAt(++u)===yr;);return(n=u)>=o?s=!0:(r=t.charCodeAt(u++))===mr?c=!0:r===_r&&(c=!0,t.charCodeAt(u)===mr&&++u),t.slice(i+1,n-1).replace(/""/g,'"')}for(;u<o;){if((r=t.charCodeAt(n=u++))===mr)c=!0;else if(r===_r)c=!0,t.charCodeAt(u)===mr&&++u;else if(r!==e)continue;return t.slice(i,n)}return s=!0,t.slice(i,o)}for(t.charCodeAt(o-1)===mr&&--o,t.charCodeAt(o-1)===_r&&--o;(r=l())!==vr;){for(var f=[];r!==dr&&r!==vr;)f.push(r),r=l();n&&null==(f=n(f,a++))||i.push(f)}return i}function i(n,e){return n.map((function(n){return e.map((function(t){return u(n[t])})).join(t)}))}function o(n){return n.map(u).join(t)}function u(t){return null==t?"":t instanceof Date?br(t):n.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,n){var e,i,o=r(t,(function(t,r){if(e)return e(t,r-1);i=t,e=n?function(t,n){var e=wr(t);return function(r,i){return n(e(r),i,t)}}(t,n):wr(t)}));return o.columns=i||[],o},parseRows:r,format:function(n,e){return null==e&&(e=xr(n)),[e.map(u).join(t)].concat(i(n,e)).join("\n")},formatBody:function(t,n){return null==n&&(n=xr(t)),i(t,n).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:u}},kr=Cr(","),Nr=kr.parse,Ar=(kr.parseRows,kr.format,kr.formatBody,kr.formatRows,kr.formatRow,kr.formatValue,Cr("\t")),Tr=Ar.parse;Ar.parseRows,Ar.format,Ar.formatBody,Ar.formatRows,Ar.formatRow,Ar.formatValue;function Ur(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}var Dr=function(t,n){return fetch(t,n).then(Ur)};function Sr(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),Dr(n,e).then((function(n){return t(n,r)}))}}Sr(Nr),Sr(Tr);function Lr(t){return function(n,e){return Dr(n,e).then((function(n){return(new DOMParser).parseFromString(n,t)}))}}Lr("application/xml"),Lr("text/html"),Lr("image/svg+xml");var Er=function(t){return function(){return t}};function Rr(t,n,e,r){if(isNaN(n)||isNaN(e))return t;var i,o,u,a,s,c,l,f,h,g=t._root,p={data:r},d=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!g)return t._root=p,t;for(;g.length;)if((c=n>=(o=(d+y)/2))?d=o:y=o,(l=e>=(u=(v+m)/2))?v=u:m=u,i=g,!(g=g[f=l<<1|c]))return i[f]=p,t;if(a=+t._x.call(null,g.data),s=+t._y.call(null,g.data),n===a&&e===s)return p.next=g,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=n>=(o=(d+y)/2))?d=o:y=o,(l=e>=(u=(v+m)/2))?v=u:m=u}while((f=l<<1|c)==(h=(s>=u)<<1|a>=o));return i[h]=g,i[f]=p,t}var Pr=function(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i};function Fr(t){return t[0]}function Yr(t){return t[1]}function Hr(t,n,e){var r=new jr(null==n?Fr:n,null==e?Yr:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function jr(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 qr(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Or=Hr.prototype=jr.prototype;Or.copy=function(){var t,n,e=new jr(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=qr(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]=qr(n));return e},Or.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Rr(this.cover(n,e),n,e,t)},Or.addAll=function(t){var n,e,r,i,o=t.length,u=new Array(o),a=new Array(o),s=1/0,c=1/0,l=-1/0,f=-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<s&&(s=r),r>l&&(l=r),i<c&&(c=i),i>f&&(f=i));if(s>l||c>f)return this;for(this.cover(s,c).cover(l,f),e=0;e<o;++e)Rr(this,u[e],a[e],t[e]);return this},Or.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{for(var u,a,s=i-e,c=this._root;e>t||t>=i||r>n||n>=o;)switch(a=(n<r)<<1|t<e,(u=new Array(4))[a]=c,c=u,s*=2,a){case 0:i=e+s,o=r+s;break;case 1:e=i-s,o=r+s;break;case 2:i=e+s,r=o-s;break;case 3:e=i-s,r=o-s}this._root&&this._root.length&&(this._root=c)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Or.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},Or.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]]},Or.find=function(t,n,e){var r,i,o,u,a,s,c,l=this._x0,f=this._y0,h=this._x1,g=this._y1,p=[],d=this._root;for(d&&p.push(new Pr(d,l,f,h,g)),null==e?e=1/0:(l=t-e,f=n-e,h=t+e,g=n+e,e*=e);s=p.pop();)if(!(!(d=s.node)||(i=s.x0)>h||(o=s.y0)>g||(u=s.x1)<l||(a=s.y1)<f))if(d.length){var v=(i+u)/2,y=(o+a)/2;p.push(new Pr(d[3],v,y,u,a),new Pr(d[2],i,y,v,a),new Pr(d[1],v,o,u,y),new Pr(d[0],i,o,v,y)),(c=(n>=y)<<1|t>=v)&&(s=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=s)}else{var m=t-+this._x.call(null,d.data),_=n-+this._y.call(null,d.data),w=m*m+_*_;if(w<e){var x=Math.sqrt(e=w);l=t-x,f=n-x,h=t+x,g=n+x,r=d.data}}return r},Or.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,s,c,l,f,h,g=this._root,p=this._x0,d=this._y0,v=this._x1,y=this._y1;if(!g)return this;if(g.length)for(;;){if((c=o>=(a=(p+v)/2))?p=a:v=a,(l=u>=(s=(d+y)/2))?d=s:y=s,n=g,!(g=g[f=l<<1|c]))return this;if(!g.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}for(;g.data!==t;)if(r=g,!(g=g.next))return this;return(i=g.next)&&delete g.next,r?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(g=n[0]||n[1]||n[2]||n[3])&&g===(n[3]||n[2]||n[1]||n[0])&&!g.length&&(e?e[h]=g:this._root=g),this):(this._root=i,this)},Or.removeAll=function(t){for(var n=0,e=t.length;n<e;++n)this.remove(t[n]);return this},Or.root=function(){return this._root},Or.size=function(){var t=0;return this.visit((function(n){if(!n.length)do{++t}while(n=n.next)})),t},Or.visit=function(t){var n,e,r,i,o,u,a=[],s=this._root;for(s&&a.push(new Pr(s,this._x0,this._y0,this._x1,this._y1));n=a.pop();)if(!t(s=n.node,r=n.x0,i=n.y0,o=n.x1,u=n.y1)&&s.length){var c=(r+o)/2,l=(i+u)/2;(e=s[3])&&a.push(new Pr(e,c,l,o,u)),(e=s[2])&&a.push(new Pr(e,r,l,c,u)),(e=s[1])&&a.push(new Pr(e,c,i,o,l)),(e=s[0])&&a.push(new Pr(e,r,i,c,l))}return this},Or.visitAfter=function(t){var n,e=[],r=[];for(this._root&&e.push(new Pr(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,s=n.x1,c=n.y1,l=(u+s)/2,f=(a+c)/2;(o=i[0])&&e.push(new Pr(o,u,a,l,f)),(o=i[1])&&e.push(new Pr(o,l,a,s,f)),(o=i[2])&&e.push(new Pr(o,u,f,l,c)),(o=i[3])&&e.push(new Pr(o,l,f,s,c))}r.push(n)}for(;n=r.pop();)t(n.node,n.x0,n.y0,n.x1,n.y1);return this},Or.x=function(t){return arguments.length?(this._x=t,this):this._x},Or.y=function(t){return arguments.length?(this._y=t,this):this._y};var zr=10,Xr=Math.PI*(3-Math.sqrt(5)),$r=function(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,u=.6,a=rr(),s=qn(l),c=A("tick","end");function l(){f(),c.call("tick",n),e<r&&(s.stop(),c.call("end",n))}function f(r){var s,c,l=t.length;void 0===r&&(r=1);for(var f=0;f<r;++f)for(e+=(o-e)*i,a.each((function(t){t(e)})),s=0;s<l;++s)null==(c=t[s]).fx?c.x+=c.vx*=u:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=u:(c.y=c.fy,c.vy=0);return n}function h(){for(var n,e=0,r=t.length;e<r;++e){if((n=t[e]).index=e,null!=n.fx&&(n.x=n.fx),null!=n.fy&&(n.y=n.fy),isNaN(n.x)||isNaN(n.y)){var i=zr*Math.sqrt(e),o=e*Xr;n.x=i*Math.cos(o),n.y=i*Math.sin(o)}(isNaN(n.vx)||isNaN(n.vy))&&(n.vx=n.vy=0)}}function g(n){return n.initialize&&n.initialize(t),n}return null==t&&(t=[]),h(),n={tick:f,restart:function(){return s.restart(l),n},stop:function(){return s.stop(),n},nodes:function(e){return arguments.length?(t=e,h(),a.each(g),n):t},alpha:function(t){return arguments.length?(e=+t,n):e},alphaMin:function(t){return arguments.length?(r=+t,n):r},alphaDecay:function(t){return arguments.length?(i=+t,n):+i},alphaTarget:function(t){return arguments.length?(o=+t,n):o},velocityDecay:function(t){return arguments.length?(u=1-t,n):1-u},force:function(t,e){return arguments.length>1?(null==e?a.remove(t):a.set(t,g(e)),n):a.get(t)},find:function(n,e,r){var i,o,u,a,s,c=0,l=t.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)(u=(i=n-(a=t[c]).x)*i+(o=e-a.y)*o)<r&&(s=a,r=u);return s},on:function(t,e){return arguments.length>1?(c.on(t,e),n):c.on(t)}}},Vr=function(t){var n,e,r,i=Er(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vx+=(r[o]-i.x)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=Er(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:Er(+t),u(),o):i},o.x=function(n){return arguments.length?(t="function"==typeof n?n:Er(+n),u(),o):t},o},Ir=function(t){var n,e,r,i=Er(.1);function o(t){for(var i,o=0,u=n.length;o<u;++o)(i=n[o]).vy+=(r[o]-i.y)*e[o]*t}function u(){if(n){var o,u=n.length;for(e=new Array(u),r=new Array(u),o=0;o<u;++o)e[o]=isNaN(r[o]=+t(n[o],o,n))?0:+i(n[o],o,n)}}return"function"!=typeof t&&(t=Er(null==t?0:+t)),o.initialize=function(t){n=t,u()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:Er(+t),u(),o):i},o.y=function(n){return arguments.length?(t="function"==typeof n?n:Er(+n),u(),o):t},o},Zr=function(){return Math.random()},Br=(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}(Zr),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}(Zr)),Wr=(function t(n){function e(){var t=Br.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(Zr),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}(Zr));(function t(n){function e(t){var e=Wr.source(n)(t);return function(){return e()/t}}return e.source=t,e})(Zr),function t(n){function e(t){return function(){return-Math.log(1-n())/t}}return e.source=t,e}(Zr);function Qr(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Jr=Array.prototype,Kr=(Jr.map,Jr.slice),Gr={name:"implicit"};function ti(){var t=rr(),n=[],e=[],r=Gr;function i(i){var o=i+"",u=t.get(o);if(!u){if(r!==Gr)return r;t.set(o,u=n.push(i))}return e[(u-1)%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=rr();for(var r,o,u=-1,a=e.length;++u<a;)t.has(o=(r=e[u])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=Kr.call(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return ti(n,e).unknown(r)},Qr.apply(i,arguments),i}function ni(){var t,n,e=ti().unknown(void 0),r=e.domain,i=e.range,o=[0,1],u=!1,s=0,c=0,l=.5;function f(){var e=r().length,f=o[1]<o[0],h=o[f-0],g=o[1-f];t=(g-h)/Math.max(1,e-s+2*c),u&&(t=Math.floor(t)),h+=(g-h-t*(e-s))*l,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var p=a(e).map((function(n){return h+t*n}));return i(f?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),f()):r()},e.range=function(t){return arguments.length?(o=[+t[0],+t[1]],f()):o.slice()},e.rangeRound=function(t){return o=[+t[0],+t[1]],u=!0,f()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(u=!!t,f()):u},e.padding=function(t){return arguments.length?(s=Math.min(1,c=+t),f()):s},e.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},e.paddingOuter=function(t){return arguments.length?(c=+t,f()):c},e.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),f()):l},e.copy=function(){return ni(r(),o).round(u).paddingInner(s).paddingOuter(c).align(l)},Qr.apply(f(),arguments)}var ei=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ri(t){if(!(n=ei.exec(t)))throw new Error("invalid format: "+t);var n;return new ii({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function ii(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}ri.prototype=ii.prototype,ii.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var oi,ui,ai=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)]},si=function(t){return(t=ai(Math.abs(t)))?t[1]:NaN},ci=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(i>0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t},li=function(t,n){var e=ai(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")},fi={"%":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 li(100*t,n)},r:li,s:function(t,n){var e=ai(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(oi=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")+ai(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)}},hi=function(t){return t},gi=Array.prototype.map,pi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];ui=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?hi:(n=gi.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],u=0,a=n[0],s=0;i>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),o.push(t.substring(i-=a,i+a)),!((s+=a+1)>r));)a=n[u=(u+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?hi:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(gi.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=ri(t)).fill,e=t.align,f=t.sign,h=t.symbol,g=t.zero,p=t.width,d=t.comma,v=t.precision,y=t.trim,m=t.type;"n"===m?(d=!0,m="g"):fi[m]||(void 0===v&&(v=12),y=!0,m="g"),(g||"0"===n&&"="===e)&&(g=!0,n="0",e="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?o:/[%p]/.test(m)?s:"",x=fi[m],M=/[defgprs%]/.test(m);function b(t){var i,o,s,h=_,b=w;if("c"===m)b=x(t)+b,t="";else{var C=(t=+t)<0;if(t=isNaN(t)?l:x(Math.abs(t),v),y&&(t=ci(t)),C&&0==+t&&(C=!1),h=(C?"("===f?f:c:"-"===f||"("===f?"":f)+h,b=("s"===m?pi[8+oi/3]:"")+b+(C&&"("===f?")":""),M)for(i=-1,o=t.length;++i<o;)if(48>(s=t.charCodeAt(i))||s>57){b=(46===s?u+t.slice(i+1):t.slice(i))+b,t=t.slice(0,i);break}}d&&!g&&(t=r(t,1/0));var k=h.length+t.length+b.length,N=k<p?new Array(p-k+1).join(n):"";switch(d&&g&&(t=r(N+t,N.length?p-b.length:1/0),N=""),e){case"<":t=h+t+b+N;break;case"=":t=h+N+t+b;break;case"^":t=N.slice(0,k=N.length>>1)+h+t+b+N.slice(k);break;default:t=N+h+t+b}return a(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),b.toString=function(){return t+""},b}return{format:f,formatPrefix:function(t,n){var e=f(((t=ri(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(si(n)/3))),i=Math.pow(10,-r),o=pi[8+r/3];return function(t){return e(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ui.format,ui.formatPrefix;var di=new Date,vi=new Date;function yi(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u,a=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u<e&&e<r);return a},i.filter=function(e){return yi((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 di.setTime(+n),vi.setTime(+r),t(di),t(vi),Math.floor(e(di,vi))},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}var mi=yi((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()}));mi.every=function(t){return isFinite(t=Math.floor(t))&&t>0?yi((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 _i=mi,wi=(mi.range,yi((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()}))),xi=(wi.range,6e4),Mi=6048e5;function bi(t){return yi((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())*xi)/Mi}))}var Ci=bi(0),ki=bi(1),Ni=bi(2),Ai=bi(3),Ti=bi(4),Ui=bi(5),Di=bi(6),Si=(Ci.range,ki.range,Ni.range,Ai.range,Ti.range,Ui.range,Di.range,yi((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())*xi)/864e5}),(function(t){return t.getDate()-1}))),Li=Si,Ei=(Si.range,yi((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*xi)}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()}))),Ri=(Ei.range,yi((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+n*xi)}),(function(t,n){return(n-t)/xi}),(function(t){return t.getMinutes()}))),Pi=(Ri.range,yi((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()}))),Fi=(Pi.range,yi((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t})));Fi.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?yi((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Fi:null};Fi.range;function Yi(t){return yi((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)/Mi}))}var Hi=Yi(0),ji=Yi(1),qi=Yi(2),Oi=Yi(3),zi=Yi(4),Xi=Yi(5),$i=Yi(6),Vi=(Hi.range,ji.range,qi.range,Oi.range,zi.range,Xi.range,$i.range,yi((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}))),Ii=Vi,Zi=(Vi.range,yi((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()})));Zi.every=function(t){return isFinite(t=Math.floor(t))&&t>0?yi((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 Bi=Zi;Zi.range;function Wi(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 Qi(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 Ji(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var Ki,Gi={"-":"",_:" ",0:"0"},to=/^\s*\d+/,no=/^%/,eo=/[\\^$*+?|[\]().{}]/g;function ro(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 io(t){return t.replace(eo,"\\$&")}function oo(t){return new RegExp("^(?:"+t.map(io).join("|")+")","i")}function uo(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function ao(t,n,e){var r=to.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function so(t,n,e){var r=to.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function co(t,n,e){var r=to.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function lo(t,n,e){var r=to.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function fo(t,n,e){var r=to.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function ho(t,n,e){var r=to.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function go(t,n,e){var r=to.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function po(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 vo(t,n,e){var r=to.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function yo(t,n,e){var r=to.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function mo(t,n,e){var r=to.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function _o(t,n,e){var r=to.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function wo(t,n,e){var r=to.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function xo(t,n,e){var r=to.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Mo(t,n,e){var r=to.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function bo(t,n,e){var r=to.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Co(t,n,e){var r=to.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function ko(t,n,e){var r=no.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function No(t,n,e){var r=to.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Ao(t,n,e){var r=to.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function To(t,n){return ro(t.getDate(),n,2)}function Uo(t,n){return ro(t.getHours(),n,2)}function Do(t,n){return ro(t.getHours()%12||12,n,2)}function So(t,n){return ro(1+Li.count(_i(t),t),n,3)}function Lo(t,n){return ro(t.getMilliseconds(),n,3)}function Eo(t,n){return Lo(t,n)+"000"}function Ro(t,n){return ro(t.getMonth()+1,n,2)}function Po(t,n){return ro(t.getMinutes(),n,2)}function Fo(t,n){return ro(t.getSeconds(),n,2)}function Yo(t){var n=t.getDay();return 0===n?7:n}function Ho(t,n){return ro(Ci.count(_i(t)-1,t),n,2)}function jo(t,n){var e=t.getDay();return t=e>=4||0===e?Ti(t):Ti.ceil(t),ro(Ti.count(_i(t),t)+(4===_i(t).getDay()),n,2)}function qo(t){return t.getDay()}function Oo(t,n){return ro(ki.count(_i(t)-1,t),n,2)}function zo(t,n){return ro(t.getFullYear()%100,n,2)}function Xo(t,n){return ro(t.getFullYear()%1e4,n,4)}function $o(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ro(n/60|0,"0",2)+ro(n%60,"0",2)}function Vo(t,n){return ro(t.getUTCDate(),n,2)}function Io(t,n){return ro(t.getUTCHours(),n,2)}function Zo(t,n){return ro(t.getUTCHours()%12||12,n,2)}function Bo(t,n){return ro(1+Ii.count(Bi(t),t),n,3)}function Wo(t,n){return ro(t.getUTCMilliseconds(),n,3)}function Qo(t,n){return Wo(t,n)+"000"}function Jo(t,n){return ro(t.getUTCMonth()+1,n,2)}function Ko(t,n){return ro(t.getUTCMinutes(),n,2)}function Go(t,n){return ro(t.getUTCSeconds(),n,2)}function tu(t){var n=t.getUTCDay();return 0===n?7:n}function nu(t,n){return ro(Hi.count(Bi(t)-1,t),n,2)}function eu(t,n){var e=t.getUTCDay();return t=e>=4||0===e?zi(t):zi.ceil(t),ro(zi.count(Bi(t),t)+(4===Bi(t).getUTCDay()),n,2)}function ru(t){return t.getUTCDay()}function iu(t,n){return ro(ji.count(Bi(t)-1,t),n,2)}function ou(t,n){return ro(t.getUTCFullYear()%100,n,2)}function uu(t,n){return ro(t.getUTCFullYear()%1e4,n,4)}function au(){return"+0000"}function su(){return"%"}function cu(t){return+t}function lu(t){return Math.floor(+t/1e3)}!function(t){Ki=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,s=t.shortMonths,c=oo(i),l=uo(i),f=oo(o),h=uo(o),g=oo(u),p=uo(u),d=oo(a),v=uo(a),y=oo(s),m=uo(s),_={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:To,e:To,f:Eo,H:Uo,I:Do,j:So,L:Lo,m:Ro,M:Po,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:cu,s:lu,S:Fo,u:Yo,U:Ho,V:jo,w:qo,W:Oo,x:null,X:null,y:zo,Y:Xo,Z:$o,"%":su},w={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Vo,e:Vo,f:Qo,H:Io,I:Zo,j:Bo,L:Wo,m:Jo,M:Ko,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:cu,s:lu,S:Go,u:tu,U:nu,V:eu,w:ru,W:iu,x:null,X:null,y:ou,Y:uu,Z:au,"%":su},x={a:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return C(t,n,e,r)},d:mo,e:mo,f:Co,H:wo,I:wo,j:_o,L:bo,m:yo,M:xo,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=l[r[0].toLowerCase()],e+r[0].length):-1},q:vo,Q:No,s:Ao,S:Mo,u:so,U:co,V:lo,w:ao,W:fo,x:function(t,n,r){return C(t,e,n,r)},X:function(t,n,e){return C(t,r,n,e)},y:go,Y:ho,Z:po,"%":ko};function M(t,n){return function(e){var r,i,o,u=[],a=-1,s=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++a<c;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(i=Gi[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),s=a+1);return u.push(t.slice(s,a)),u.join("")}}function b(t,n){return function(e){var r,i,o=Ji(1900,void 0,1);if(C(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!n||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Qi(Ji(o.y,0,1))).getUTCDay(),r=i>4||0===i?ji.ceil(r):ji(r),r=Ii.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Wi(Ji(o.y,0,1))).getDay(),r=i>4||0===i?ki.ceil(r):ki(r),r=Li.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Qi(Ji(o.y,0,1)).getUTCDay():Wi(Ji(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Qi(o)):Wi(o)}}function C(t,n,e,r){for(var i,o,u=0,a=n.length,s=e.length;u<a;){if(r>=s)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=x[i in Gi?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return(_.x=M(e,_),_.X=M(r,_),_.c=M(n,_),w.x=M(e,w),w.X=M(r,w),w.c=M(n,w),{format:function(t){var n=M(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=b(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",w);return n.toString=function(){return t},n},utcParse:function(t){var n=b(t+="",!0);return n.toString=function(){return t},n}})}(t),Ki.format,Ki.parse,Ki.utcFormat,Ki.utcParse}({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 fu=yi((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()})),hu=(fu.range,yi((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()}))),gu=(hu.range,yi((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*xi)}),(function(t,n){return(n-t)/xi}),(function(t){return t.getUTCMinutes()})));gu.range;var pu=function(t){for(var n=t.length/6|0,e=new Array(n),r=0;r<n;)e[r]="#"+t.slice(6*r,6*++r);return e}("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function du(){this._=null}function vu(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function yu(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 mu(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 _u(t){for(;t.L;)t=t.L;return t}du.prototype={constructor:du,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=_u(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&&(yu(this,e),e=(t=e).U),e.C=!1,r.C=!0,mu(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(mu(this,e),e=(t=e).U),e.C=!1,r.C=!0,yu(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?_u(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,yu(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,mu(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,yu(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,mu(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,yu(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,mu(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var wu=du;function xu(t,n,e,r){var i=[null,null],o=Vu.push(i)-1;return i.left=t,i.right=n,e&&bu(i,t,n,e),r&&bu(i,n,t,r),Xu[t.index].halfedges.push(o),Xu[n.index].halfedges.push(o),i}function Mu(t,n,e){var r=[n,e];return r.left=t,r}function bu(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 Cu(t,n,e,r,i){var o,u=t[0],a=t[1],s=u[0],c=u[1],l=0,f=1,h=a[0]-s,g=a[1]-c;if(o=n-s,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=r-s,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=e-c,g||!(o>0)){if(o/=g,g<0){if(o<l)return;o<f&&(f=o)}else if(g>0){if(o>f)return;o>l&&(l=o)}if(o=i-c,g||!(o<0)){if(o/=g,g<0){if(o>f)return;o>l&&(l=o)}else if(g>0){if(o<l)return;o<f&&(f=o)}return!(l>0||f<1)||(l>0&&(t[0]=[s+l*h,c+l*g]),f<1&&(t[1]=[s+f*h,c+f*g]),!0)}}}}}function ku(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,s=t[0],c=t.left,l=t.right,f=c[0],h=c[1],g=l[0],p=l[1],d=(f+g)/2,v=(h+p)/2;if(p===h){if(d<n||d>=r)return;if(f>g){if(s){if(s[1]>=i)return}else s=[d,e];o=[d,i]}else{if(s){if(s[1]<e)return}else s=[d,i];o=[d,e]}}else if(a=v-(u=(f-g)/(p-h))*d,u<-1||u>1)if(f>g){if(s){if(s[1]>=i)return}else s=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(s){if(s[1]<e)return}else s=[(i-a)/u,i];o=[(e-a)/u,e]}else if(h<p){if(s){if(s[0]>=r)return}else s=[n,u*n+a];o=[r,u*r+a]}else{if(s){if(s[0]<n)return}else s=[r,u*r+a];o=[n,u*n+a]}return t[0]=s,t[1]=o,!0}function Nu(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 Au(t,n){return n[+(n.left!==t.site)]}function Tu(t,n){return n[+(n.left===t.site)]}var Uu,Du=[];function Su(){vu(this),this.x=this.y=this.arc=this.site=this.cy=null}function Lu(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],s=r[0]-u,c=r[1]-a,l=o[0]-u,f=o[1]-a,h=2*(s*f-c*l);if(!(h>=-Zu)){var g=s*s+c*c,p=l*l+f*f,d=(f*g-c*p)/h,v=(s*p-l*g)/h,y=Du.pop()||new Su;y.arc=t,y.site=i,y.x=d+u,y.y=(y.cy=v+a)+Math.sqrt(d*d+v*v),t.circle=y;for(var m=null,_=$u._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}$u.insert(m,y),m||(Uu=y)}}}}function Eu(t){var n=t.circle;n&&(n.P||(Uu=n.N),$u.remove(n),Du.push(n),vu(n),t.circle=null)}var Ru=[];function Pu(){vu(this),this.edge=this.site=this.circle=null}function Fu(t){var n=Ru.pop()||new Pu;return n.site=t,n}function Yu(t){Eu(t),zu.remove(t),Ru.push(t),vu(t)}function Hu(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,u=t.N,a=[t];Yu(t);for(var s=o;s.circle&&Math.abs(e-s.circle.x)<Iu&&Math.abs(r-s.circle.cy)<Iu;)o=s.P,a.unshift(s),Yu(s),s=o;a.unshift(s),Eu(s);for(var c=u;c.circle&&Math.abs(e-c.circle.x)<Iu&&Math.abs(r-c.circle.cy)<Iu;)u=c.N,a.push(c),Yu(c),c=u;a.push(c),Eu(c);var l,f=a.length;for(l=1;l<f;++l)c=a[l],s=a[l-1],bu(c.edge,s.site,c.site,i);s=a[0],(c=a[f-1]).edge=xu(s.site,c.site,null,i),Lu(s),Lu(c)}function ju(t){for(var n,e,r,i,o=t[0],u=t[1],a=zu._;a;)if((r=qu(a,u)-o)>Iu)a=a.L;else{if(!((i=o-Ou(a,u))>Iu)){r>-Iu?(n=a.P,e=a):i>-Iu?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){Xu[t.index]={site:t,halfedges:[]}}(t);var s=Fu(t);if(zu.insert(n,s),n||e){if(n===e)return Eu(n),e=Fu(n.site),zu.insert(s,e),s.edge=e.edge=xu(n.site,s.site),Lu(n),void Lu(e);if(e){Eu(n),Eu(e);var c=n.site,l=c[0],f=c[1],h=t[0]-l,g=t[1]-f,p=e.site,d=p[0]-l,v=p[1]-f,y=2*(h*v-g*d),m=h*h+g*g,_=d*d+v*v,w=[(v*m-g*_)/y+l,(h*_-d*m)/y+f];bu(e.edge,c,p,w),s.edge=xu(c,t,null,w),e.edge=xu(t,p,null,w),Lu(n),Lu(e)}else s.edge=xu(n.site,s.site)}}function qu(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],s=e[1],c=s-n;if(!c)return a;var l=a-r,f=1/o-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-s+c/2+i-o/2)))/f+r:(r+a)/2}function Ou(t,n){var e=t.N;if(e)return qu(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var zu,Xu,$u,Vu,Iu=1e-6,Zu=1e-12;function Bu(t,n){return n[1]-t[1]||n[0]-t[0]}function Wu(t,n){var e,r,i,o=t.sort(Bu).pop();for(Vu=[],Xu=new Array(t.length),zu=new wu,$u=new wu;;)if(i=Uu,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(ju(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;Hu(i.arc)}if(function(){for(var t,n,e,r,i=0,o=Xu.length;i<o;++i)if((t=Xu[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]=Nu(t,Vu[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]}}(),n){var u=+n[0][0],a=+n[0][1],s=+n[1][0],c=+n[1][1];!function(t,n,e,r){for(var i,o=Vu.length;o--;)ku(i=Vu[o],t,n,e,r)&&Cu(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>Iu||Math.abs(i[0][1]-i[1][1])>Iu)||delete Vu[o]}(u,a,s,c),function(t,n,e,r){var i,o,u,a,s,c,l,f,h,g,p,d,v=Xu.length,y=!0;for(i=0;i<v;++i)if(o=Xu[i]){for(u=o.site,a=(s=o.halfedges).length;a--;)Vu[s[a]]||s.splice(a,1);for(a=0,c=s.length;a<c;)p=(g=Tu(o,Vu[s[a]]))[0],d=g[1],f=(l=Au(o,Vu[s[++a%c]]))[0],h=l[1],(Math.abs(p-f)>Iu||Math.abs(d-h)>Iu)&&(s.splice(a,0,Vu.push(Mu(u,g,Math.abs(p-t)<Iu&&r-d>Iu?[t,Math.abs(f-t)<Iu?h:r]:Math.abs(d-r)<Iu&&e-p>Iu?[Math.abs(h-r)<Iu?f:e,r]:Math.abs(p-e)<Iu&&d-n>Iu?[e,Math.abs(f-e)<Iu?h:n]:Math.abs(d-n)<Iu&&p-t>Iu?[Math.abs(h-n)<Iu?f:t,n]:null))-1),++c);c&&(y=!1)}if(y){var m,_,w,x=1/0;for(i=0,y=null;i<v;++i)(o=Xu[i])&&(w=(m=(u=o.site)[0]-t)*m+(_=u[1]-n)*_)<x&&(x=w,y=o);if(y){var M=[t,n],b=[t,r],C=[e,r],k=[e,n];y.halfedges.push(Vu.push(Mu(u=y.site,M,b))-1,Vu.push(Mu(u,b,C))-1,Vu.push(Mu(u,C,k))-1,Vu.push(Mu(u,k,M))-1)}}for(i=0;i<v;++i)(o=Xu[i])&&(o.halfedges.length||delete Xu[i])}(u,a,s,c)}this.edges=Vu,this.cells=Xu,zu=$u=Vu=Xu=null}Wu.prototype={constructor:Wu,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return Au(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,s,c,l=e.site,f=-1,h=n[i[o-1]],g=h.left===l?h.right:h.left;++f<o;)u=g,g=(h=n[i[f]]).left===l?h.right:h.left,u&&g&&r<u.index&&r<g.index&&(s=u,c=g,((a=l)[0]-c[0])*(s[1]-a[1])-(a[0]-s[0])*(c[1]-a[1])<0)&&t.push([l.data,u.data,g.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 s=t-i.site[0],c=n-i.site[1],l=s*s+c*c;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 s=t-a[0],c=n-a[1],f=s*s+c*c;f<l&&(l=f,u=a.index)}}))}while(null!==u);return o._found=r,null==e||l<=e*e?i.site:null}};Math.SQRT2;function Qu(t,n,e){this.k=t,this.x=n,this.y=e}Qu.prototype={constructor:Qu,scale:function(t){return 1===t?this:new Qu(this.k*t,this.x,this.y)},translate:function(t,n){return 0===t&0===n?this:new Qu(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+")"}};new Qu(1,0,0);Qu.prototype;function Ju(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ku=1230-5-5,Gu=500-10-10;fetch("http://localhost:4000/api/get/users").then((function(t){return t.json()})).then((function(t){return function(t){return console.log(t.filter((function(t){return"99999"!=t.stel_terecht}))),t.filter((function(t){if("99999"!=t.stel_terecht&&"Geen antwoord"!=t.stel_terecht&&"De politie kwam naar mij toe"==t.Totstand)return!0}))}(t)})).then((function(t){return function(t){var n=function(t){var n=t.filter((function(t){if("Nederlands"==t.Herkomst_def)return t.migratieachtergrond="Deelnemers zonder migratieachtergrond",!0})),e=t.filter((function(t){if("Nederlands"!=t.Herkomst_def)return t.migratieachtergrond="Deelnemers met migratieachtergrond",!0}));return[].concat(Ju(n),Ju(e))}(t),e=ir().key((function(t){return t.migratieachtergrond})).entries(n),r=function(t){var n=["Zeer terecht","Terecht","Niet terecht, niet onterecht","Onterecht","Zeer onterecht"];return ir().key((function(t){return t.stel_terecht})).sortKeys((function(t,e){return n.indexOf(t)-n.indexOf(e)})).entries(t)}(t),i=e.map((function(t){return t.key}));console.log(e);var o=ti().domain(i).range(pu);r.forEach((function(t){t.length=t.values.length}));var u=["Zeer terecht","Terecht","Niet terecht, niet onterecht","Onterecht","Zeer onterecht"],a=ir().key((function(t){return t.stel_terecht})).sortKeys((function(t,n){return u.indexOf(t)-u.indexOf(n)})).key((function(t){return t.migratieachtergrond})).entries(n);a.forEach((function(t){t.values.forEach((function(t,n){t.values.forEach((function(n,e){n.plek=e,n.parentLength=t.values.length}))}))})),console.log(a);var s={top:20,right:20,bottom:60,left:60},c=ni().rangeRound([0,Gu]);c.domain(rr(a,(function(t){return t.key})).keys());var l=(f=c,w(g,f));var f;l.tickSize(-1300);t.map((function(t){return t.idealy=c(t.stel_terecht)+Gu/a.length/2})),a.map((function(t){return t.values.map((function(t,n){return t.x=n+120}))}));console.log(t);var h=jt("svg").attr("width",Ku+s.left+s.right).attr("height",Gu+s.top+s.bottom);h.append("g");var p=h.append("g").attr("id","scatterplot");p.append("rect").attr("x",0).attr("y",0).attr("width","100%").attr("height","100%"),h.append("g").attr("class","y axis").attr("id","axis--y").call(l);for(var d=$r(t).force("x",Vr((function(t,n){return t.x}))).force("y",Ir((function(t){return t.idealy}))),v=0;v<120;++v)d.tick();function y(t){p.selectAll(".dot").data(t).enter().append("circle").attr("id",(function(t){return t.stel_terecht})).attr("class","dot").attr("r",3).attr("cx",(function(t,n){return 0==t.plek?10:10*t.plek})).attr("cy",(function(t,n,e){return t.y+("Deelnemers met migratieachtergrond"==t.migratieachtergrond?5:-5)})).style("fill",(function(t){return o(t.migratieachtergrond)}))}y(t),jt('nav[data-filter="gevolg-contact"]').on("click",(function(){console.log(event.target.dataset.value)}));var m=ir().key((function(t){return t.polben_gevolg_controle})).entries(t);console.log(m),function(){var t=h.append("g").attr("class","legend");t.append("rect").attr("x",5).attr("class","legend-wrapper");var n=t.append("g").attr("class","legend-container").attr("data-legend","container").on("click",(function(){var t,e;if("container"===event.target.parentNode.parentNode.dataset.legend){var r=event.target.parentNode;n.selectAll(".legend-item").classed("active",!1).attr("class","legend-item"),r.classList.add("active"),t=r.dataset.category,e=a.filter((function(n){return n.key==t})).reduce((function(t){return t})),console.log(e),y(e.values)}})),e=n.selectAll(".legend").data(o.domain()).enter().append("g").attr("class","legend-item").attr("data-category",(function(t){return t})).attr("transform",(function(t,n){return"translate(0,"+35*n+")"})).on("click",(function(){}));e.append("circle").attr("cx",180).attr("cy",9).attr("r",10).style("fill",o),e.append("text").attr("x",200).attr("y",9).attr("dy",".35em").attr("class","legend-text").text((function(t){return t})),t.style("transform","translate(0px, ".concat(Gu+5,"px)"))}()}(t)}))}});
  >>>>>>> 95513de71d7437cd39e6a252e84f917b0923acca
  