-
Notifications
You must be signed in to change notification settings - Fork 0
/
d3.min.js
5 lines (5 loc) · 132 KB
/
d3.min.js
1
2
3
4
5
d3=function(){function n(n){return null!=n&&!isNaN(n)}function t(n){return n.length}function e(n){for(var t=1;n*t%1;)t*=10;return t}function r(n,t){try{for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}catch(r){n.prototype=t}}function i(){}function u(){}function a(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function o(){}function c(n){function t(){for(var t,r=e,i=-1,u=r.length;u>++i;)(t=r[i].on)&&t.apply(this,arguments);return n}var e=[],r=new i;return t.on=function(t,i){var u,a=r.get(t);return 2>arguments.length?a&&a.on:(a&&(a.on=null,e=e.slice(0,u=e.indexOf(a)).concat(e.slice(u+1)),r.remove(t)),i&&e.push(r.set(t,{on:i})),n)},t}function f(){ia.event.stopPropagation(),ia.event.preventDefault()}function l(){for(var n,t=ia.event;n=t.sourceEvent;)t=n;return t}function s(n){for(var t=new o,e=0,r=arguments.length;r>++e;)t[arguments[e]]=c(t);return t.of=function(e,r){return function(i){try{var u=i.sourceEvent=ia.event;i.target=n,ia.event=i,t[i.type].apply(e,r)}finally{ia.event=u}}},t}function h(n,t){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();if(0>ga&&(aa.scrollX||aa.scrollY)){e=ia.select(ua.body).append("svg").style("position","absolute").style("top",0).style("left",0);var i=e[0][0].getScreenCTM();ga=!(i.f||i.e),e.remove()}return ga?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),r=r.matrixTransform(n.getScreenCTM().inverse()),[r.x,r.y]}var u=n.getBoundingClientRect();return[t.clientX-u.left-n.clientLeft,t.clientY-u.top-n.clientTop]}function g(n){for(var t=-1,e=n.length,r=[];e>++t;)r.push(n[t]);return r}function p(n){return Array.prototype.slice.call(n)}function d(n){return ma(n,_a),n}function m(n){return function(){return va(n,this)}}function v(n){return function(){return ya(n,this)}}function y(n,t){function e(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function i(){this.setAttribute(n,t)}function u(){this.setAttributeNS(n.space,n.local,t)}function a(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}function o(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}return n=ia.ns.qualify(n),null==t?n.local?r:e:"function"==typeof t?n.local?o:a:n.local?u:i}function M(n){return n.trim().replace(/\s+/g," ")}function x(n){return RegExp("(?:^|\\s+)"+ia.requote(n)+"(?:\\s+|$)","g")}function _(n,t){function e(){for(var e=-1;i>++e;)n[e](this,t)}function r(){for(var e=-1,r=t.apply(this,arguments);i>++e;)n[e](this,r)}n=n.trim().split(/\s+/).map(w);var i=n.length;return"function"==typeof t?r:e}function w(n){var t=x(n);return function(e,r){if(i=e.classList)return r?i.add(n):i.remove(n);var i=e.className,u=null!=i.baseVal,a=u?i.baseVal:i;r?(t.lastIndex=0,t.test(a)||(a=M(a+" "+n),u?i.baseVal=a:e.className=a)):a&&(a=M(a.replace(t," ")),u?i.baseVal=a:e.className=a)}}function S(n,t,e){function r(){this.style.removeProperty(n)}function i(){this.style.setProperty(n,t,e)}function u(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}return null==t?r:"function"==typeof t?u:i}function E(n,t){function e(){delete this[n]}function r(){this[n]=t}function i(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}return null==t?e:"function"==typeof t?i:r}function k(n){return{__data__:n}}function A(n){return function(){return xa(this,n)}}function q(n){return arguments.length||(n=ia.ascending),function(t,e){return!t-!e||n(t.__data__,e.__data__)}}function N(){}function T(n,t,e){function r(){var t=this[a];t&&(this.removeEventListener(n,t,t.$),delete this[a])}function i(){var i=c(t,pa(arguments));r.call(this),this.addEventListener(n,this[a]=i,i.$=e),i._=t}function u(){var t,e=RegExp("^__on([^.]+)"+ia.requote(n)+"$");for(var r in this)if(t=r.match(e)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}var a="__on"+n,o=n.indexOf("."),c=C;o>0&&(n=n.substring(0,o));var f=Ea.get(n);return f&&(n=f,c=z),o?t?i:r:t?N:u}function C(n,t){return function(e){var r=ia.event;ia.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{ia.event=r}}}function z(n,t){var e=C(n,t);return function(n){var t=this,r=n.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||e.call(t,n)}}function D(n,t){for(var e=0,r=n.length;r>e;e++)for(var i,u=n[e],a=0,o=u.length;o>a;a++)(i=u[a])&&t(i,a,e);return n}function j(n){return ma(n,ka),n}function L(){}function F(n,t,e){return new H(n,t,e)}function H(n,t,e){this.h=n,this.s=t,this.l=e}function P(n,t,e){function r(n){return n>360?n-=360:0>n&&(n+=360),60>n?u+(a-u)*n/60:180>n?a:240>n?u+(a-u)*(240-n)/60:u}function i(n){return Math.round(255*r(n))}var u,a;return n%=360,0>n&&(n+=360),t=0>t?0:t>1?1:t,e=0>e?0:e>1?1:e,a=.5>=e?e*(1+t):e+t-e*t,u=2*e-a,tt(i(n+120),i(n),i(n-120))}function R(n){return n>0?1:0>n?-1:0}function O(n){return Math.acos(Math.max(-1,Math.min(1,n)))}function Y(n){return n>1?za/2:-1>n?-za/2:Math.asin(n)}function U(n){return(Math.exp(n)-Math.exp(-n))/2}function I(n){return(Math.exp(n)+Math.exp(-n))/2}function V(n){return(n=Math.sin(n/2))*n}function X(n,t,e){return new Z(n,t,e)}function Z(n,t,e){this.h=n,this.c=t,this.l=e}function B(n,t,e){return $(e,Math.cos(n*=ja)*t,Math.sin(n)*t)}function $(n,t,e){return new J(n,t,e)}function J(n,t,e){this.l=n,this.a=t,this.b=e}function G(n,t,e){var r=(n+16)/116,i=r+t/500,u=r-e/200;return i=W(i)*Pa,r=W(r)*Ra,u=W(u)*Oa,tt(nt(3.2404542*i-1.5371385*r-.4985314*u),nt(-.969266*i+1.8760108*r+.041556*u),nt(.0556434*i-.2040259*r+1.0572252*u))}function K(n,t,e){return X(Math.atan2(e,t)*La,Math.sqrt(t*t+e*e),n)}function W(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function Q(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function nt(n){return Math.round(255*(.00304>=n?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function tt(n,t,e){return new et(n,t,e)}function et(n,t,e){this.r=n,this.g=t,this.b=e}function rt(n){return 16>n?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function it(n,t,e){var r,i,u,a=0,o=0,c=0;if(r=/([a-z]+)\((.*)\)/i.exec(n))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(ct(i[0]),ct(i[1]),ct(i[2]))}return(u=Ia.get(n))?t(u.r,u.g,u.b):(null!=n&&"#"===n.charAt(0)&&(4===n.length?(a=n.charAt(1),a+=a,o=n.charAt(2),o+=o,c=n.charAt(3),c+=c):7===n.length&&(a=n.substring(1,3),o=n.substring(3,5),c=n.substring(5,7)),a=parseInt(a,16),o=parseInt(o,16),c=parseInt(c,16)),t(a,o,c))}function ut(n,t,e){var r,i,u=Math.min(n/=255,t/=255,e/=255),a=Math.max(n,t,e),o=a-u,c=(a+u)/2;return o?(i=.5>c?o/(a+u):o/(2-a-u),r=n==a?(t-e)/o+(e>t?6:0):t==a?(e-n)/o+2:(n-t)/o+4,r*=60):i=r=0,F(r,i,c)}function at(n,t,e){n=ot(n),t=ot(t),e=ot(e);var r=Q((.4124564*n+.3575761*t+.1804375*e)/Pa),i=Q((.2126729*n+.7151522*t+.072175*e)/Ra),u=Q((.0193339*n+.119192*t+.9503041*e)/Oa);return $(116*i-16,500*(r-i),200*(i-u))}function ot(n){return.04045>=(n/=255)?n/12.92:Math.pow((n+.055)/1.055,2.4)}function ct(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}function ft(n){return"function"==typeof n?n:function(){return n}}function lt(n){return n}function st(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}function ht(n,t){function e(n,e,u){3>arguments.length&&(u=e,e=null);var a=ia.xhr(n,t,u);return a.row=function(n){return arguments.length?a.response(null==(e=n)?r:i(n)):e},a.row(e)}function r(n){return e.parse(n.responseText)}function i(n){return function(t){return e.parse(t.responseText,n)}}function a(t){return t.map(o).join(n)}function o(n){return c.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}var c=RegExp('["'+n+"\n]"),f=n.charCodeAt(0);return e.parse=function(n,t){var r;return e.parseRows(n,function(n,e){if(r)return r(n,e-1);var i=Function("d","return {"+n.map(function(n,t){return JSON.stringify(n)+": d["+t+"]"}).join(",")+"}");r=t?function(n,e){return t(i(n),e)}:i})},e.parseRows=function(n,t){function e(){if(l>=c)return a;if(i)return i=!1,u;var t=l;if(34===n.charCodeAt(t)){for(var e=t;c>e++;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}l=e+2;var r=n.charCodeAt(e+1);return 13===r?(i=!0,10===n.charCodeAt(e+2)&&++l):10===r&&(i=!0),n.substring(t+1,e).replace(/""/g,'"')}for(;c>l;){var r=n.charCodeAt(l++),o=1;if(10===r)i=!0;else if(13===r)i=!0,10===n.charCodeAt(l)&&(++l,++o);else if(r!==f)continue;return n.substring(t,l-o)}return n.substring(t)}for(var r,i,u={},a={},o=[],c=n.length,l=0,s=0;(r=e())!==a;){for(var h=[];r!==u&&r!==a;)h.push(r),r=e();(!t||(h=t(h,s++)))&&o.push(h)}return o},e.format=function(t){if(Array.isArray(t[0]))return e.formatRows(t);var r=new u,i=[];return t.forEach(function(n){for(var t in n)r.has(t)||i.push(r.add(t))}),[i.map(o).join(n)].concat(t.map(function(t){return i.map(function(n){return o(t[n])}).join(n)})).join("\n")},e.formatRows=function(n){return n.map(a).join("\n")},e}function gt(){for(var n,t=Date.now(),e=$a;e;)n=t-e.then,n>=e.delay&&(e.flush=e.callback(n)),e=e.next;var r=pt()-t;r>24?(isFinite(r)&&(clearTimeout(Xa),Xa=setTimeout(gt,r)),Va=0):(Va=1,Ja(gt))}function pt(){for(var n=null,t=$a,e=1/0;t;)t.flush?(delete Ba[t.callback.id],t=n?n.next=t.next:$a=t.next):(e=Math.min(e,t.then+t.delay),t=(n=t).next);return e}function dt(n,t){var e=Math.pow(10,3*Math.abs(8-t));return{scale:t>8?function(n){return n/e}:function(n){return n*e},symbol:n}}function mt(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}function vt(n){return n+""}function yt(n,t){uo.hasOwnProperty(n.type)&&uo[n.type](n,t)}function Mt(n,t,e){var r,i=-1,u=n.length-e;for(t.lineStart();u>++i;)r=n[i],t.point(r[0],r[1]);t.lineEnd()}function bt(n,t){var e=-1,r=n.length;for(t.polygonStart();r>++e;)Mt(n[e],t,1);t.polygonEnd()}function xt(){function n(n,t){n*=ja,t=t*ja/2+za/4;var e=n-r,a=Math.cos(t),o=Math.sin(t),c=u*o,f=oo,l=co,s=i*a+c*Math.cos(e),h=c*Math.sin(e);oo=f*s-l*h,co=l*s+f*h,r=n,i=a,u=o}var t,e,r,i,u;fo.point=function(a,o){fo.point=n,r=(t=a)*ja,i=Math.cos(o=(e=o)*ja/2+za/4),u=Math.sin(o)},fo.lineEnd=function(){n(t,e)}}function _t(n){function t(n,t){r>n&&(r=n),n>u&&(u=n),i>t&&(i=t),t>a&&(a=t)}function e(){o.point=o.lineEnd=N}var r,i,u,a,o={point:t,lineStart:N,lineEnd:N,polygonStart:function(){o.lineEnd=e},polygonEnd:function(){o.point=t}};return function(t){return a=u=-(r=i=1/0),ia.geo.stream(t,n(o)),[[r,i],[u,a]]}}function wt(n,t){if(!lo){++so,n*=ja;var e=Math.cos(t*=ja);ho+=(e*Math.cos(n)-ho)/so,go+=(e*Math.sin(n)-go)/so,po+=(Math.sin(t)-po)/so}}function St(){var n,t;lo=1,Et(),lo=2;var e=mo.point;mo.point=function(r,i){e(n=r,t=i)},mo.lineEnd=function(){mo.point(n,t),kt(),mo.lineEnd=kt}}function Et(){function n(n,i){n*=ja;var u=Math.cos(i*=ja),a=u*Math.cos(n),o=u*Math.sin(n),c=Math.sin(i),f=Math.atan2(Math.sqrt((f=e*c-r*o)*f+(f=r*a-t*c)*f+(f=t*o-e*a)*f),t*a+e*o+r*c);so+=f,ho+=f*(t+(t=a)),go+=f*(e+(e=o)),po+=f*(r+(r=c))}var t,e,r;lo>1||(1>lo&&(lo=1,so=ho=go=po=0),mo.point=function(i,u){i*=ja;var a=Math.cos(u*=ja);t=a*Math.cos(i),e=a*Math.sin(i),r=Math.sin(u),mo.point=n})}function kt(){mo.point=wt}function At(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function qt(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function Nt(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Tt(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function Ct(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function zt(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function Dt(){return!0}function jt(n){return[Math.atan2(n[1],n[0]),Math.asin(Math.max(-1,Math.min(1,n[2])))]}function Lt(n,t){return Da>Math.abs(n[0]-t[0])&&Da>Math.abs(n[1]-t[1])}function Ft(n,t,e,r,i){var u=[],a=[];if(n.forEach(function(n){if(!(1>=(t=n.length))){var t,e=n[0],r=n[t-1];if(Lt(e,r)){i.lineStart();for(var o=0;t>o;++o)i.point((e=n[o])[0],e[1]);return i.lineEnd(),void 0}var c={point:e,points:n,other:null,visited:!1,entry:!0,subject:!0},f={point:e,points:[e],other:c,visited:!1,entry:!1,subject:!1};c.other=f,u.push(c),a.push(f),c={point:r,points:[r],other:null,visited:!1,entry:!1,subject:!0},f={point:r,points:[r],other:c,visited:!1,entry:!0,subject:!1},c.other=f,u.push(c),a.push(f)}}),a.sort(t),Ht(u),Ht(a),u.length){if(e)for(var o=1,c=!e(a[0].point),f=a.length;f>o;++o)a[o].entry=c=!c;for(var l,s,h,g=u[0];;){for(l=g;l.visited;)if((l=l.next)===g)return;s=l.points,i.lineStart();do{if(l.visited=l.other.visited=!0,l.entry){if(l.subject)for(var o=0;s.length>o;o++)i.point((h=s[o])[0],h[1]);else r(l.point,l.next.point,1,i);l=l.next}else{if(l.subject){s=l.prev.points;for(var o=s.length;--o>=0;)i.point((h=s[o])[0],h[1])}else r(l.point,l.prev.point,-1,i);l=l.prev}l=l.other,s=l.points}while(!l.visited);i.lineEnd()}}}function Ht(n){if(t=n.length){for(var t,e,r=0,i=n[0];t>++r;)i.next=e=n[r],e.prev=i,i=e;i.next=e=n[0],e.prev=i}}function Pt(n,t,e){return function(r){function i(t,e){n(t,e)&&r.point(t,e)}function u(n,t){m.point(n,t)}function a(){v.point=u,m.lineStart()}function o(){v.point=i,m.lineEnd()}function c(n,t){M.point(n,t),d.push([n,t])}function f(){M.lineStart(),d=[]}function l(){c(d[0][0],d[0][1]),M.lineEnd();var n,t=M.clean(),e=y.buffer(),i=e.length;if(!i)return p=!0,g+=Yt(d,-1),d=null,void 0;if(d=null,1&t){n=e[0],h+=Yt(n,1);var u,i=n.length-1,a=-1;for(r.lineStart();i>++a;)r.point((u=n[a])[0],u[1]);return r.lineEnd(),void 0}i>1&&2&t&&e.push(e.pop().concat(e.shift())),s.push(e.filter(Rt))}var s,h,g,p,d,m=t(r),v={point:i,lineStart:a,lineEnd:o,polygonStart:function(){v.point=c,v.lineStart=f,v.lineEnd=l,p=!1,g=h=0,s=[],r.polygonStart()},polygonEnd:function(){v.point=i,v.lineStart=a,v.lineEnd=o,s=ia.merge(s),s.length?Ft(s,Ut,null,e,r):(-Da>h||p&&-Da>g)&&(r.lineStart(),e(null,null,1,r),r.lineEnd()),r.polygonEnd(),s=null},sphere:function(){r.polygonStart(),r.lineStart(),e(null,null,1,r),r.lineEnd(),r.polygonEnd()}},y=Ot(),M=t(y);return v}}function Rt(n){return n.length>1}function Ot(){var n,t=[];return{lineStart:function(){t.push(n=[])},point:function(t,e){n.push([t,e])},lineEnd:N,buffer:function(){var e=t;return t=[],n=null,e},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Yt(n,t){if(!(e=n.length))return 0;for(var e,r,i,u=0,a=0,o=n[0],c=o[0],f=o[1],l=Math.cos(f),s=Math.atan2(t*Math.sin(c)*l,Math.sin(f)),h=1-t*Math.cos(c)*l,g=s;e>++u;)o=n[u],l=Math.cos(f=o[1]),r=Math.atan2(t*Math.sin(c=o[0])*l,Math.sin(f)),i=1-t*Math.cos(c)*l,Da>Math.abs(h-2)&&Da>Math.abs(i-2)||(Da>Math.abs(i)||Da>Math.abs(h)||(Da>Math.abs(Math.abs(r-s)-za)?i+h>2&&(a+=4*(r-s)):a+=Da>Math.abs(h-2)?4*(r-g):((3*za+r-s)%(2*za)-za)*(h+i)),g=s,s=r,h=i);return a}function Ut(n,t){return(0>(n=n.point)[0]?n[1]-za/2-Da:za/2-n[1])-(0>(t=t.point)[0]?t[1]-za/2-Da:za/2-t[1])}function It(n){var t,e=0/0,r=0/0,i=0/0;return{lineStart:function(){n.lineStart(),t=1},point:function(u,a){var o=u>0?za:-za,c=Math.abs(u-e);Da>Math.abs(c-za)?(n.point(e,r=(r+a)/2>0?za/2:-za/2),n.point(i,r),n.lineEnd(),n.lineStart(),n.point(o,r),n.point(u,r),t=0):i!==o&&c>=za&&(Da>Math.abs(e-i)&&(e-=i*Da),Da>Math.abs(u-o)&&(u-=o*Da),r=Vt(e,r,u,a),n.point(i,r),n.lineEnd(),n.lineStart(),n.point(o,r),t=0),n.point(e=u,r=a),i=o},lineEnd:function(){n.lineEnd(),e=r=0/0},clean:function(){return 2-t}}}function Vt(n,t,e,r){var i,u,a=Math.sin(n-e);return Math.abs(a)>Da?Math.atan((Math.sin(t)*(u=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(t))*Math.sin(n))/(i*u*a)):(t+r)/2}function Xt(n,t,e,r){var i;if(null==n)i=e*za/2,r.point(-za,i),r.point(0,i),r.point(za,i),r.point(za,0),r.point(za,-i),r.point(0,-i),r.point(-za,-i),r.point(-za,0),r.point(-za,i);else if(Math.abs(n[0]-t[0])>Da){var u=(n[0]<t[0]?1:-1)*za;i=e*u/2,r.point(-u,i),r.point(0,i),r.point(u,i)}else r.point(t[0],t[1])}function Zt(n){function t(n,t){return Math.cos(n)*Math.cos(t)>u}function e(n){var e,u,c,f,l;return{lineStart:function(){f=c=!1,l=1},point:function(s,h){var g,p=[s,h],d=t(s,h),m=a?d?0:i(s,h):d?i(s+(0>s?za:-za),h):0;if(!e&&(f=c=d)&&n.lineStart(),d!==c&&(g=r(e,p),(Lt(e,g)||Lt(p,g))&&(p[0]+=Da,p[1]+=Da,d=t(p[0],p[1]))),d!==c)l=0,d?(n.lineStart(),g=r(p,e),n.point(g[0],g[1])):(g=r(e,p),n.point(g[0],g[1]),n.lineEnd()),e=g;else if(o&&e&&a^d){var v;m&u||!(v=r(p,e,!0))||(l=0,a?(n.lineStart(),n.point(v[0][0],v[0][1]),n.point(v[1][0],v[1][1]),n.lineEnd()):(n.point(v[1][0],v[1][1]),n.lineEnd(),n.lineStart(),n.point(v[0][0],v[0][1])))}!d||e&&Lt(e,p)||n.point(p[0],p[1]),e=p,c=d,u=m},lineEnd:function(){c&&n.lineEnd(),e=null},clean:function(){return l|(f&&c)<<1}}}function r(n,t,e){var r=At(n),i=At(t),a=[1,0,0],o=Nt(r,i),c=qt(o,o),f=o[0],l=c-f*f;if(!l)return!e&&n;var s=u*c/l,h=-u*f/l,g=Nt(a,o),p=Ct(a,s),d=Ct(o,h);Tt(p,d);var m=g,v=qt(p,m),y=qt(m,m),M=v*v-y*(qt(p,p)-1);if(!(0>M)){var b=Math.sqrt(M),x=Ct(m,(-v-b)/y);if(Tt(x,p),x=jt(x),!e)return x;var _,w=n[0],S=t[0],E=n[1],k=t[1];w>S&&(_=w,w=S,S=_);var A=S-w,q=Da>Math.abs(A-za),N=q||Da>A;if(!q&&E>k&&(_=E,E=k,k=_),N?q?E+k>0^x[1]<(Da>Math.abs(x[0]-w)?E:k):x[1]>=E&&k>=x[1]:A>za^(x[0]>=w&&S>=x[0])){var T=Ct(m,(-v+b)/y);return Tt(T,p),[x,jt(T)]}}}function i(t,e){var r=a?n:za-n,i=0;return-r>t?i|=1:t>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var u=Math.cos(n),a=u>0,o=Math.abs(u)>Da,c=ue(n,6*ja);return Pt(t,e,c)}function Bt(n,t,e,r){function i(r,i){return Da>Math.abs(r[0]-n)?i>0?0:3:Da>Math.abs(r[0]-e)?i>0?2:1:Da>Math.abs(r[1]-t)?i>0?1:0:i>0?3:2}function u(n,t){return a(n.point,t.point)}function a(n,t){var e=i(n,1),r=i(t,1);return e!==r?e-r:0===e?t[1]-n[1]:1===e?n[0]-t[0]:2===e?n[1]-t[1]:t[0]-n[0]}function o(i,u){i[0]=Math.max(-yo,Math.min(yo,i[0])),i[1]=Math.max(-yo,Math.min(yo,i[1])),u[0]=Math.max(-yo,Math.min(yo,u[0])),u[1]=Math.max(-yo,Math.min(yo,u[1]));var a=u[0]-i[0],o=u[1]-i[1],c=[0,1];return Da>Math.abs(a)&&Da>Math.abs(o)?i[0]>=n&&e>=i[0]&&i[1]>=t&&r>=i[1]:$t(n-i[0],a,c)&&$t(i[0]-e,-a,c)&&$t(t-i[1],o,c)&&$t(i[1]-r,-o,c)?(1>c[1]&&(u[0]=i[0]+c[1]*a,u[1]=i[1]+c[1]*o),c[0]>0&&(i[0]+=c[0]*a,i[1]+=c[0]*o),!0):!1}return function(c){function f(u){var a=i(u,-1),o=l([0===a||3===a?n:e,a>1?r:t]);return o}function l(n){for(var t=0,e=M.length,r=n[1],i=0;e>i;++i)for(var u=1,a=M[i],o=a.length,c=a[0];o>u;++u)b=a[u],r>=c[1]?b[1]>r&&s(c,b,n)>0&&++t:r>=b[1]&&0>s(c,b,n)&&--t,c=b;return 0!==t}function s(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(e[0]-n[0])*(t[1]-n[1])}function h(u,o,c,f){var l=0,s=0;if(null==u||(l=i(u,c))!==(s=i(o,c))||0>a(u,o)^c>0){do f.point(0===l||3===l?n:e,l>1?r:t);while((l=(l+c+4)%4)!==s)}else f.point(o[0],o[1])}function g(i,u){return i>=n&&e>=i&&u>=t&&r>=u}function p(n,t){g(n,t)&&c.point(n,t)}function d(){C.point=v,M&&M.push(x=[]),q=!0,A=!1,E=k=0/0}function m(){y&&(v(_,w),S&&A&&T.rejoin(),y.push(T.buffer())),C.point=p,A&&c.lineEnd()}function v(n,t){var e=g(n,t);if(M&&x.push([n,t]),q)_=n,w=t,S=e,q=!1,e&&(c.lineStart(),c.point(n,t));else if(e&&A)c.point(n,t);else{var r=[E,k],i=[n,t];o(r,i)&&(A||(c.lineStart(),c.point(r[0],r[1])),c.point(i[0],i[1]),e||c.lineEnd())}E=n,k=t,A=e}var y,M,x,_,w,S,E,k,A,q,N=c,T=Ot(),C={point:p,lineStart:d,lineEnd:m,polygonStart:function(){c=T,y=[],M=[]},polygonEnd:function(){c=N,(y=ia.merge(y)).length?(c.polygonStart(),Ft(y,u,f,h,c),c.polygonEnd()):l([n,t])&&(c.polygonStart(),c.lineStart(),h(null,null,1,c),c.lineEnd(),c.polygonEnd()),y=M=x=null}};return C}}function $t(n,t,e){if(Da>Math.abs(t))return 0>n;var r=n/t;if(t>0){if(r>e[1])return!1;r>e[0]&&(e[0]=r)}else{if(e[0]>r)return!1;e[1]>r&&(e[1]=r)}return!0}function Jt(n,t){function e(e,r){return e=n(e,r),t(e[0],e[1])}return n.invert&&t.invert&&(e.invert=function(e,r){return e=t.invert(e,r),e&&n.invert(e[0],e[1])}),e}function Gt(n){function t(t){function r(e,r){e=n(e,r),t.point(e[0],e[1])}function u(){l=0/0,d.point=a,t.lineStart()}function a(r,u){var a=At([r,u]),o=n(r,u);e(l,s,f,h,g,p,l=o[0],s=o[1],f=r,h=a[0],g=a[1],p=a[2],i,t),t.point(l,s)}function o(){d.point=r,t.lineEnd()}function c(){var n,r,c,m,v,y,M;u(),d.point=function(t,e){a(n=t,r=e),c=l,m=s,v=h,y=g,M=p,d.point=a},d.lineEnd=function(){e(l,s,f,h,g,p,c,m,n,v,y,M,i,t),d.lineEnd=o,o()}}var f,l,s,h,g,p,d={point:r,lineStart:u,lineEnd:o,polygonStart:function(){t.polygonStart(),d.lineStart=c},polygonEnd:function(){t.polygonEnd(),d.lineStart=u}};return d}function e(t,i,u,a,o,c,f,l,s,h,g,p,d,m){var v=f-t,y=l-i,M=v*v+y*y;if(M>4*r&&d--){var b=a+h,x=o+g,_=c+p,w=Math.sqrt(b*b+x*x+_*_),S=Math.asin(_/=w),E=Da>Math.abs(Math.abs(_)-1)?(u+s)/2:Math.atan2(x,b),k=n(E,S),A=k[0],q=k[1],N=A-t,T=q-i,C=y*N-v*T;(C*C/M>r||Math.abs((v*N+y*T)/M-.5)>.3)&&(e(t,i,u,a,o,c,A,q,E,b/=w,x/=w,_,d,m),m.point(A,q),e(A,q,E,b,x,_,f,l,s,h,g,p,d,m))}}var r=.5,i=16;return t.precision=function(n){return arguments.length?(i=(r=n*n)>0&&16,t):Math.sqrt(r)},t}function Kt(n){return Wt(function(){return n})()}function Wt(n){function t(n){return n=a(n[0]*ja,n[1]*ja),[n[0]*l+o,c-n[1]*l]}function e(n){return n=a.invert((n[0]-o)/l,(c-n[1])/l),n&&[n[0]*La,n[1]*La]}function r(){a=Jt(u=te(d,m,v),i);var n=i(g,p);return o=s-n[0]*l,c=h+n[1]*l,t}var i,u,a,o,c,f=Gt(function(n,t){return n=i(n,t),[n[0]*l+o,c-n[1]*l]}),l=150,s=480,h=250,g=0,p=0,d=0,m=0,v=0,y=vo,M=lt,b=null,x=null;return t.stream=function(n){return Qt(u,y(f(M(n))))},t.clipAngle=function(n){return arguments.length?(y=null==n?(b=n,vo):Zt((b=+n)*ja),t):b},t.clipExtent=function(n){return arguments.length?(x=n,M=null==n?lt:Bt(n[0][0],n[0][1],n[1][0],n[1][1]),t):x},t.scale=function(n){return arguments.length?(l=+n,r()):l},t.translate=function(n){return arguments.length?(s=+n[0],h=+n[1],r()):[s,h]},t.center=function(n){return arguments.length?(g=n[0]%360*ja,p=n[1]%360*ja,r()):[g*La,p*La]},t.rotate=function(n){return arguments.length?(d=n[0]%360*ja,m=n[1]%360*ja,v=n.length>2?n[2]%360*ja:0,r()):[d*La,m*La,v*La]},ia.rebind(t,f,"precision"),function(){return i=n.apply(this,arguments),t.invert=i.invert&&e,r()}}function Qt(n,t){return{point:function(e,r){r=n(e*ja,r*ja),e=r[0],t.point(e>za?e-2*za:-za>e?e+2*za:e,r[1])},sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function ne(n,t){return[n,t]}function te(n,t,e){return n?t||e?Jt(re(n),ie(t,e)):re(n):t||e?ie(t,e):ne}function ee(n){return function(t,e){return t+=n,[t>za?t-2*za:-za>t?t+2*za:t,e]}}function re(n){var t=ee(n);return t.invert=ee(-n),t}function ie(n,t){function e(n,t){var e=Math.cos(t),o=Math.cos(n)*e,c=Math.sin(n)*e,f=Math.sin(t),l=f*r+o*i;return[Math.atan2(c*u-l*a,o*r-f*i),Math.asin(Math.max(-1,Math.min(1,l*u+c*a)))]}var r=Math.cos(n),i=Math.sin(n),u=Math.cos(t),a=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),o=Math.cos(n)*e,c=Math.sin(n)*e,f=Math.sin(t),l=f*u-c*a;return[Math.atan2(c*u+f*a,o*r+l*i),Math.asin(Math.max(-1,Math.min(1,l*r-o*i)))]},e}function ue(n,t){var e=Math.cos(n),r=Math.sin(n);return function(i,u,a,o){null!=i?(i=ae(e,i),u=ae(e,u),(a>0?u>i:i>u)&&(i+=2*a*za)):(i=n+2*a*za,u=n);for(var c,f=a*t,l=i;a>0?l>u:u>l;l-=f)o.point((c=jt([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function ae(n,t){var e=At(t);e[0]-=n,zt(e);var r=O(-e[1]);return((0>-e[2]?-r:r)+2*Math.PI-Da)%(2*Math.PI)}function oe(n,t,e){var r=ia.range(n,t-Da,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function ce(n,t,e){var r=ia.range(n,t-Da,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function fe(n){return n.source}function le(n){return n.target}function se(n,t,e,r){var i=Math.cos(t),u=Math.sin(t),a=Math.cos(r),o=Math.sin(r),c=i*Math.cos(n),f=i*Math.sin(n),l=a*Math.cos(e),s=a*Math.sin(e),h=2*Math.asin(Math.sqrt(V(r-t)+i*a*V(e-n))),g=1/Math.sin(h),p=h?function(n){var t=Math.sin(n*=h)*g,e=Math.sin(h-n)*g,r=e*c+t*l,i=e*f+t*s,a=e*u+t*o;return[Math.atan2(i,r)*La,Math.atan2(a,Math.sqrt(r*r+i*i))*La]}:function(){return[n*La,t*La]};return p.distance=h,p}function he(){function n(n,i){var u=Math.sin(i*=ja),a=Math.cos(i),o=Math.abs((n*=ja)-t),c=Math.cos(o);Mo+=Math.atan2(Math.sqrt((o=a*Math.sin(o))*o+(o=r*u-e*a*c)*o),e*u+r*a*c),t=n,e=u,r=a}var t,e,r;bo.point=function(i,u){t=i*ja,e=Math.sin(u*=ja),r=Math.cos(u),bo.point=n},bo.lineEnd=function(){bo.point=bo.lineEnd=N}}function ge(n){var t=0,e=za/3,r=Wt(n),i=r(t,e);return i.parallels=function(n){return arguments.length?r(t=n[0]*za/180,e=n[1]*za/180):[180*(t/za),180*(e/za)]},i}function pe(n,t){function e(n,t){var e=Math.sqrt(u-2*i*Math.sin(t))/i;return[e*Math.sin(n*=i),a-e*Math.cos(n)]}var r=Math.sin(n),i=(r+Math.sin(t))/2,u=1+r*(2*i-r),a=Math.sqrt(u)/i;return e.invert=function(n,t){var e=a-t;return[Math.atan2(n,e)/i,Math.asin((u-(n*n+e*e)*i*i)/(2*i))]},e}function de(n,t){var e=n(t[0]),r=n([.5*(t[0][0]+t[1][0]),t[0][1]]),i=n([t[1][0],t[0][1]]),u=n(t[1]),a=r[1]-e[1],o=r[0]-e[0],c=i[1]-r[1],f=i[0]-r[0],l=a/o,s=c/f,h=.5*(l*s*(e[1]-i[1])+s*(e[0]+r[0])-l*(r[0]+i[0]))/(s-l),g=(.5*(e[0]+r[0])-h)/l+.5*(e[1]+r[1]),p=u[0]-h,d=u[1]-g,m=e[0]-h,v=e[1]-g,y=p*p+d*d,M=m*m+v*v,b=Math.atan2(d,p),x=Math.atan2(v,m);return function(t){var e=t[0]-h,r=t[1]-g,i=e*e+r*r,u=Math.atan2(r,e);return i>y&&M>i&&u>b&&x>u?n.invert(t):void 0}}function me(){function n(n,t){_o+=i*n-r*t,r=n,i=t}var t,e,r,i;wo.point=function(u,a){wo.point=n,t=r=u,e=i=a},wo.lineEnd=function(){n(t,e)}}function ve(){function n(n,t){a.push("M",n,",",t,u)}function t(n,t){a.push("M",n,",",t),o.point=e}function e(n,t){a.push("L",n,",",t)}function r(){o.point=n}function i(){a.push("Z")}var u=we(4.5),a=[],o={point:n,lineStart:function(){o.point=t},lineEnd:r,polygonStart:function(){o.lineEnd=i},polygonEnd:function(){o.lineEnd=r,o.point=n},pointRadius:function(n){return u=we(n),o},result:function(){if(a.length){var n=a.join("");return a=[],n}}};return o}function ye(n,t){lo||(ho+=n,go+=t,++po)}function Me(){function n(n,r){var i=n-t,u=r-e,a=Math.sqrt(i*i+u*u);ho+=a*(t+n)/2,go+=a*(e+r)/2,po+=a,t=n,e=r}var t,e;if(1!==lo){if(!(1>lo))return;lo=1,ho=go=po=0}So.point=function(r,i){So.point=n,t=r,e=i}}function be(){So.point=ye}function xe(){function n(n,t){var e=i*n-r*t;ho+=e*(r+n),go+=e*(i+t),po+=3*e,r=n,i=t}var t,e,r,i;2>lo&&(lo=2,ho=go=po=0),So.point=function(u,a){So.point=n,t=r=u,e=i=a},So.lineEnd=function(){n(t,e)}}function _e(n){function t(t,e){n.moveTo(t,e),n.arc(t,e,a,0,2*za)}function e(t,e){n.moveTo(t,e),o.point=r}function r(t,e){n.lineTo(t,e)}function i(){o.point=t}function u(){n.closePath()}var a=4.5,o={point:t,lineStart:function(){o.point=e},lineEnd:i,polygonStart:function(){o.lineEnd=u},polygonEnd:function(){o.lineEnd=i,o.point=t},pointRadius:function(n){return a=n,o},result:N};return o}function we(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function Se(n){var t=Gt(function(t,e){return n([t*La,e*La])});return function(n){return n=t(n),{point:function(t,e){n.point(t*ja,e*ja)},sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}}function Ee(n,t){function e(t,e){var r=Math.cos(t),i=Math.cos(e),u=n(r*i);return[u*i*Math.sin(t),u*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),i=t(r),u=Math.sin(i),a=Math.cos(i);return[Math.atan2(n*u,r*a),Math.asin(r&&e*u/r)]},e}function ke(n,t){function e(n,t){var e=Da>Math.abs(Math.abs(t)-za/2)?0:a/Math.pow(i(t),u);return[e*Math.sin(u*n),a-e*Math.cos(u*n)]}var r=Math.cos(n),i=function(n){return Math.tan(za/4+n/2)},u=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(i(t)/i(n)),a=r*Math.pow(i(n),u)/u;return u?(e.invert=function(n,t){var e=a-t,r=R(u)*Math.sqrt(n*n+e*e);return[Math.atan2(n,e)/u,2*Math.atan(Math.pow(a/r,1/u))-za/2]},e):qe}function Ae(n,t){function e(n,t){var e=u-t;return[e*Math.sin(i*n),u-e*Math.cos(i*n)]}var r=Math.cos(n),i=n===t?Math.sin(n):(r-Math.cos(t))/(t-n),u=r/i+n;return Da>Math.abs(i)?ne:(e.invert=function(n,t){var e=u-t;return[Math.atan2(n,e)/i,u-R(i)*Math.sqrt(n*n+e*e)]},e)}function qe(n,t){return[n,Math.log(Math.tan(za/4+t/2))]}function Ne(n,t){var e=Math.cos(t)*Math.sin(n);return[Math.log((1+e)/(1-e))/2,Math.atan2(Math.tan(t),Math.cos(n))]}function Te(n,t,e,r){var i,u,a,o,c,f,l;return i=r[n],u=i[0],a=i[1],i=r[t],o=i[0],c=i[1],i=r[e],f=i[0],l=i[1],(l-a)*(o-u)-(c-a)*(f-u)>0}function Ce(n,t,e){return(e[0]-t[0])*(n[1]-t[1])<(e[1]-t[1])*(n[0]-t[0])}function ze(n,t,e,r){var i=n[0],u=e[0],a=t[0]-i,o=r[0]-u,c=n[1],f=e[1],l=t[1]-c,s=r[1]-f,h=(o*(c-f)-s*(i-u))/(s*a-o*l);return[i+h*a,c+h*l]}function De(n,t){var e={list:n.map(function(n,t){return{index:t,x:n[0],y:n[1]}}).sort(function(n,t){return n.y<t.y?-1:n.y>t.y?1:n.x<t.x?-1:n.x>t.x?1:0}),bottomSite:null},r={list:[],leftEnd:null,rightEnd:null,init:function(){r.leftEnd=r.createHalfEdge(null,"l"),r.rightEnd=r.createHalfEdge(null,"l"),r.leftEnd.r=r.rightEnd,r.rightEnd.l=r.leftEnd,r.list.unshift(r.leftEnd,r.rightEnd)},createHalfEdge:function(n,t){return{edge:n,side:t,vertex:null,l:null,r:null}},insert:function(n,t){t.l=n,t.r=n.r,n.r.l=t,n.r=t},leftBound:function(n){var t=r.leftEnd;do t=t.r;while(t!=r.rightEnd&&i.rightOf(t,n));return t=t.l},del:function(n){n.l.r=n.r,n.r.l=n.l,n.edge=null},right:function(n){return n.r},left:function(n){return n.l},leftRegion:function(n){return null==n.edge?e.bottomSite:n.edge.region[n.side]},rightRegion:function(n){return null==n.edge?e.bottomSite:n.edge.region[To[n.side]]}},i={bisect:function(n,t){var e={region:{l:n,r:t},ep:{l:null,r:null}},r=t.x-n.x,i=t.y-n.y,u=r>0?r:-r,a=i>0?i:-i;return e.c=n.x*r+n.y*i+.5*(r*r+i*i),u>a?(e.a=1,e.b=i/r,e.c/=r):(e.b=1,e.a=r/i,e.c/=i),e},intersect:function(n,t){var e=n.edge,r=t.edge;if(!e||!r||e.region.r==r.region.r)return null;var i=e.a*r.b-e.b*r.a;if(1e-10>Math.abs(i))return null;var u,a,o=(e.c*r.b-r.c*e.b)/i,c=(r.c*e.a-e.c*r.a)/i,f=e.region.r,l=r.region.r;f.y<l.y||f.y==l.y&&f.x<l.x?(u=n,a=e):(u=t,a=r);var s=o>=a.region.r.x;return s&&"l"===u.side||!s&&"r"===u.side?null:{x:o,y:c}},rightOf:function(n,t){var e=n.edge,r=e.region.r,i=t.x>r.x;if(i&&"l"===n.side)return 1;if(!i&&"r"===n.side)return 0;if(1===e.a){var u=t.y-r.y,a=t.x-r.x,o=0,c=0;if(!i&&0>e.b||i&&e.b>=0?c=o=u>=e.b*a:(c=t.x+t.y*e.b>e.c,0>e.b&&(c=!c),c||(o=1)),!o){var f=r.x-e.region.l.x;c=e.b*(a*a-u*u)<f*u*(1+2*a/f+e.b*e.b),0>e.b&&(c=!c)}}else{var l=e.c-e.a*t.x,s=t.y-l,h=t.x-r.x,g=l-r.y;c=s*s>h*h+g*g}return"l"===n.side?c:!c},endPoint:function(n,e,r){n.ep[e]=r,n.ep[To[e]]&&t(n)},distance:function(n,t){var e=n.x-t.x,r=n.y-t.y;return Math.sqrt(e*e+r*r)}},u={list:[],insert:function(n,t,e){n.vertex=t,n.ystar=t.y+e;for(var r=0,i=u.list,a=i.length;a>r;r++){var o=i[r];if(!(n.ystar>o.ystar||n.ystar==o.ystar&&t.x>o.vertex.x))break}i.splice(r,0,n)},del:function(n){for(var t=0,e=u.list,r=e.length;r>t&&e[t]!=n;++t);e.splice(t,1)},empty:function(){return 0===u.list.length},nextEvent:function(n){for(var t=0,e=u.list,r=e.length;r>t;++t)if(e[t]==n)return e[t+1];return null},min:function(){var n=u.list[0];return{x:n.vertex.x,y:n.ystar}},extractMin:function(){return u.list.shift()}};r.init(),e.bottomSite=e.list.shift();for(var a,o,c,f,l,s,h,g,p,d,m,v,y,M=e.list.shift();;)if(u.empty()||(a=u.min()),M&&(u.empty()||M.y<a.y||M.y==a.y&&M.x<a.x))o=r.leftBound(M),c=r.right(o),h=r.rightRegion(o),v=i.bisect(h,M),s=r.createHalfEdge(v,"l"),r.insert(o,s),d=i.intersect(o,s),d&&(u.del(o),u.insert(o,d,i.distance(d,M))),o=s,s=r.createHalfEdge(v,"r"),r.insert(o,s),d=i.intersect(s,c),d&&u.insert(s,d,i.distance(d,M)),M=e.list.shift();else{if(u.empty())break;o=u.extractMin(),f=r.left(o),c=r.right(o),l=r.right(c),h=r.leftRegion(o),g=r.rightRegion(c),m=o.vertex,i.endPoint(o.edge,o.side,m),i.endPoint(c.edge,c.side,m),r.del(o),u.del(c),r.del(c),y="l",h.y>g.y&&(p=h,h=g,g=p,y="r"),v=i.bisect(h,g),s=r.createHalfEdge(v,y),r.insert(f,s),i.endPoint(v,To[y],m),d=i.intersect(f,s),d&&(u.del(f),u.insert(f,d,i.distance(d,h))),d=i.intersect(s,l),d&&u.insert(s,d,i.distance(d,h))}for(o=r.right(r.leftEnd);o!=r.rightEnd;o=r.right(o))t(o.edge)}function je(){return{leaf:!0,nodes:[],point:null}}function Le(n,t,e,r,i,u){if(!n(t,e,r,i,u)){var a=.5*(e+i),o=.5*(r+u),c=t.nodes;c[0]&&Le(n,c[0],e,r,a,o),c[1]&&Le(n,c[1],a,r,i,o),c[2]&&Le(n,c[2],e,o,a,u),c[3]&&Le(n,c[3],a,o,i,u)}}function Fe(n,t){n=ia.rgb(n),t=ia.rgb(t);var e=n.r,r=n.g,i=n.b,u=t.r-e,a=t.g-r,o=t.b-i;return function(n){return"#"+rt(Math.round(e+u*n))+rt(Math.round(r+a*n))+rt(Math.round(i+o*n))}}function He(n){var t=[n.a,n.b],e=[n.c,n.d],r=Re(t),i=Pe(t,e),u=Re(Oe(e,t,-i))||0;
t[0]*e[1]<e[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-e[0],e[1]))*La,this.translate=[n.e,n.f],this.scale=[r,u],this.skew=u?Math.atan2(i,u)*La:0}function Pe(n,t){return n[0]*t[0]+n[1]*t[1]}function Re(n){var t=Math.sqrt(Pe(n,n));return t&&(n[0]/=t,n[1]/=t),t}function Oe(n,t,e){return n[0]+=e*t[0],n[1]+=e*t[1],n}function Ye(n,t){return t-=n,function(e){return n+t*e}}function Ue(n,t){var e,r=[],i=[],u=He(n),a=He(t),o=u.translate,c=a.translate,f=u.rotate,l=a.rotate,s=u.skew,h=a.skew,g=u.scale,p=a.scale;return o[0]!=c[0]||o[1]!=c[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:Ye(o[0],c[0])},{i:3,x:Ye(o[1],c[1])})):c[0]||c[1]?r.push("translate("+c+")"):r.push(""),f!=l?(f-l>180?l+=360:l-f>180&&(f+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:Ye(f,l)})):l&&r.push(r.pop()+"rotate("+l+")"),s!=h?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:Ye(s,h)}):h&&r.push(r.pop()+"skewX("+h+")"),g[0]!=p[0]||g[1]!=p[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:e-4,x:Ye(g[0],p[0])},{i:e-2,x:Ye(g[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),e=i.length,function(n){for(var t,u=-1;e>++u;)r[(t=i[u]).i]=t.x(n);return r.join("")}}function Ie(n,t){var e,r={},i={};for(e in n)e in t?r[e]=Ze(e)(n[e],t[e]):i[e]=n[e];for(e in t)e in n||(i[e]=t[e]);return function(n){for(e in r)i[e]=r[e](n);return i}}function Ve(n,t){var e,r,i,u,a,o=0,c=0,f=[],l=[];for(zo.lastIndex=0,r=0;e=zo.exec(t);++r)e.index&&f.push(t.substring(o,c=e.index)),l.push({i:f.length,x:e[0]}),f.push(null),o=zo.lastIndex;for(t.length>o&&f.push(t.substring(o)),r=0,u=l.length;(e=zo.exec(n))&&u>r;++r)if(a=l[r],a.x==e[0]){if(a.i)if(null==f[a.i+1])for(f[a.i-1]+=a.x,f.splice(a.i,1),i=r+1;u>i;++i)l[i].i--;else for(f[a.i-1]+=a.x+f[a.i+1],f.splice(a.i,2),i=r+1;u>i;++i)l[i].i-=2;else if(null==f[a.i+1])f[a.i]=a.x;else for(f[a.i]=a.x+f[a.i+1],f.splice(a.i+1,1),i=r+1;u>i;++i)l[i].i--;l.splice(r,1),u--,r--}else a.x=Ye(parseFloat(e[0]),parseFloat(a.x));for(;u>r;)a=l.pop(),null==f[a.i+1]?f[a.i]=a.x:(f[a.i]=a.x+f[a.i+1],f.splice(a.i+1,1)),u--;return 1===f.length?null==f[0]?l[0].x:function(){return t}:function(n){for(r=0;u>r;++r)f[(a=l[r]).i]=a.x(n);return f.join("")}}function Xe(n,t){for(var e,r=ia.interpolators.length;--r>=0&&!(e=ia.interpolators[r](n,t)););return e}function Ze(n){return"transform"==n?Ue:Xe}function Be(n,t){var e,r=[],i=[],u=n.length,a=t.length,o=Math.min(n.length,t.length);for(e=0;o>e;++e)r.push(Xe(n[e],t[e]));for(;u>e;++e)i[e]=n[e];for(;a>e;++e)i[e]=t[e];return function(n){for(e=0;o>e;++e)i[e]=r[e](n);return i}}function $e(n){return function(t){return 0>=t?0:t>=1?1:n(t)}}function Je(n){return function(t){return 1-n(1-t)}}function Ge(n){return function(t){return.5*(.5>t?n(2*t):2-n(2-2*t))}}function Ke(n){return n*n}function We(n){return n*n*n}function Qe(n){if(0>=n)return 0;if(n>=1)return 1;var t=n*n,e=t*n;return 4*(.5>n?e:3*(n-t)+e-.75)}function nr(n){return function(t){return Math.pow(t,n)}}function tr(n){return 1-Math.cos(n*za/2)}function er(n){return Math.pow(2,10*(n-1))}function rr(n){return 1-Math.sqrt(1-n*n)}function ir(n,t){var e;return 2>arguments.length&&(t=.45),arguments.length?e=t/(2*za)*Math.asin(1/n):(n=1,e=t/4),function(r){return 1+n*Math.pow(2,10*-r)*Math.sin(2*(r-e)*za/t)}}function ur(n){return n||(n=1.70158),function(t){return t*t*((n+1)*t-n)}}function ar(n){return 1/2.75>n?7.5625*n*n:2/2.75>n?7.5625*(n-=1.5/2.75)*n+.75:2.5/2.75>n?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}function or(n,t){n=ia.hcl(n),t=ia.hcl(t);var e=n.h,r=n.c,i=n.l,u=t.h-e,a=t.c-r,o=t.l-i;return u>180?u-=360:-180>u&&(u+=360),function(n){return B(e+u*n,r+a*n,i+o*n)+""}}function cr(n,t){n=ia.hsl(n),t=ia.hsl(t);var e=n.h,r=n.s,i=n.l,u=t.h-e,a=t.s-r,o=t.l-i;return u>180?u-=360:-180>u&&(u+=360),function(n){return P(e+u*n,r+a*n,i+o*n)+""}}function fr(n,t){n=ia.lab(n),t=ia.lab(t);var e=n.l,r=n.a,i=n.b,u=t.l-e,a=t.a-r,o=t.b-i;return function(n){return G(e+u*n,r+a*n,i+o*n)+""}}function lr(n,t){return t-=n,function(e){return Math.round(n+t*e)}}function sr(n,t){return t=t-(n=+n)?1/(t-n):0,function(e){return(e-n)*t}}function hr(n,t){return t=t-(n=+n)?1/(t-n):0,function(e){return Math.max(0,Math.min(1,(e-n)*t))}}function gr(n){for(var t=n.source,e=n.target,r=dr(t,e),i=[t];t!==r;)t=t.parent,i.push(t);for(var u=i.length;e!==r;)i.splice(u,0,e),e=e.parent;return i}function pr(n){for(var t=[],e=n.parent;null!=e;)t.push(n),n=e,e=e.parent;return t.push(n),t}function dr(n,t){if(n===t)return n;for(var e=pr(n),r=pr(t),i=e.pop(),u=r.pop(),a=null;i===u;)a=i,i=e.pop(),u=r.pop();return a}function mr(n){n.fixed|=2}function vr(n){n.fixed&=-7}function yr(n){n.fixed|=4,n.px=n.x,n.py=n.y}function Mr(n){n.fixed&=-5}function br(n,t,e){var r=0,i=0;if(n.charge=0,!n.leaf)for(var u,a=n.nodes,o=a.length,c=-1;o>++c;)u=a[c],null!=u&&(br(u,t,e),n.charge+=u.charge,r+=u.charge*u.cx,i+=u.charge*u.cy);if(n.point){n.leaf||(n.point.x+=Math.random()-.5,n.point.y+=Math.random()-.5);var f=t*e[n.point.index];n.charge+=n.pointCharge=f,r+=f*n.point.x,i+=f*n.point.y}n.cx=r/n.charge,n.cy=i/n.charge}function xr(n,t){return ia.rebind(n,t,"sort","children","value"),n.nodes=n,n.links=Er,n}function _r(n){return n.children}function wr(n){return n.value}function Sr(n,t){return t.value-n.value}function Er(n){return ia.merge(n.map(function(n){return(n.children||[]).map(function(t){return{source:n,target:t}})}))}function kr(n){return n.x}function Ar(n){return n.y}function qr(n,t,e){n.y0=t,n.y=e}function Nr(n){return ia.range(n.length)}function Tr(n){for(var t=-1,e=n[0].length,r=[];e>++t;)r[t]=0;return r}function Cr(n){for(var t,e=1,r=0,i=n[0][1],u=n.length;u>e;++e)(t=n[e][1])>i&&(r=e,i=t);return r}function zr(n){return n.reduce(Dr,0)}function Dr(n,t){return n+t[1]}function jr(n,t){return Lr(n,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Lr(n,t){for(var e=-1,r=+n[0],i=(n[1]-r)/t,u=[];t>=++e;)u[e]=i*e+r;return u}function Fr(n){return[ia.min(n),ia.max(n)]}function Hr(n,t){return n.parent==t.parent?1:2}function Pr(n){var t=n.children;return t&&t.length?t[0]:n._tree.thread}function Rr(n){var t,e=n.children;return e&&(t=e.length)?e[t-1]:n._tree.thread}function Or(n,t){var e=n.children;if(e&&(i=e.length))for(var r,i,u=-1;i>++u;)t(r=Or(e[u],t),n)>0&&(n=r);return n}function Yr(n,t){return n.x-t.x}function Ur(n,t){return t.x-n.x}function Ir(n,t){return n.depth-t.depth}function Vr(n,t){function e(n,r){var i=n.children;if(i&&(a=i.length))for(var u,a,o=null,c=-1;a>++c;)u=i[c],e(u,o),o=u;t(n,r)}e(n,null)}function Xr(n){for(var t,e=0,r=0,i=n.children,u=i.length;--u>=0;)t=i[u]._tree,t.prelim+=e,t.mod+=e,e+=t.shift+(r+=t.change)}function Zr(n,t,e){n=n._tree,t=t._tree;var r=e/(t.number-n.number);n.change+=r,t.change-=r,t.shift+=e,t.prelim+=e,t.mod+=e}function Br(n,t,e){return n._tree.ancestor.parent==t.parent?n._tree.ancestor:e}function $r(n,t){return n.value-t.value}function Jr(n,t){var e=n._pack_next;n._pack_next=t,t._pack_prev=n,t._pack_next=e,e._pack_prev=t}function Gr(n,t){n._pack_next=t,t._pack_prev=n}function Kr(n,t){var e=t.x-n.x,r=t.y-n.y,i=n.r+t.r;return i*i-e*e-r*r>.001}function Wr(n){function t(n){l=Math.min(n.x-n.r,l),s=Math.max(n.x+n.r,s),h=Math.min(n.y-n.r,h),g=Math.max(n.y+n.r,g)}if((e=n.children)&&(f=e.length)){var e,r,i,u,a,o,c,f,l=1/0,s=-1/0,h=1/0,g=-1/0;if(e.forEach(Qr),r=e[0],r.x=-r.r,r.y=0,t(r),f>1&&(i=e[1],i.x=i.r,i.y=0,t(i),f>2))for(u=e[2],ei(r,i,u),t(u),Jr(r,u),r._pack_prev=u,Jr(u,i),i=r._pack_next,a=3;f>a;a++){ei(r,i,u=e[a]);var p=0,d=1,m=1;for(o=i._pack_next;o!==i;o=o._pack_next,d++)if(Kr(o,u)){p=1;break}if(1==p)for(c=r._pack_prev;c!==o._pack_prev&&!Kr(c,u);c=c._pack_prev,m++);p?(m>d||d==m&&i.r<r.r?Gr(r,i=o):Gr(r=c,i),a--):(Jr(r,u),i=u,t(u))}var v=(l+s)/2,y=(h+g)/2,M=0;for(a=0;f>a;a++)u=e[a],u.x-=v,u.y-=y,M=Math.max(M,u.r+Math.sqrt(u.x*u.x+u.y*u.y));n.r=M,e.forEach(ni)}}function Qr(n){n._pack_next=n._pack_prev=n}function ni(n){delete n._pack_next,delete n._pack_prev}function ti(n,t,e,r){var i=n.children;if(n.x=t+=r*n.x,n.y=e+=r*n.y,n.r*=r,i)for(var u=-1,a=i.length;a>++u;)ti(i[u],t,e,r)}function ei(n,t,e){var r=n.r+e.r,i=t.x-n.x,u=t.y-n.y;if(r&&(i||u)){var a=t.r+e.r,o=i*i+u*u;a*=a,r*=r;var c=.5+(r-a)/(2*o),f=Math.sqrt(Math.max(0,2*a*(r+o)-(r-=o)*r-a*a))/(2*o);e.x=n.x+c*i+f*u,e.y=n.y+c*u-f*i}else e.x=n.x+r,e.y=n.y}function ri(n){return 1+ia.max(n,function(n){return n.y})}function ii(n){return n.reduce(function(n,t){return n+t.x},0)/n.length}function ui(n){var t=n.children;return t&&t.length?ui(t[0]):n}function ai(n){var t,e=n.children;return e&&(t=e.length)?ai(e[t-1]):n}function oi(n){return{x:n.x,y:n.y,dx:n.dx,dy:n.dy}}function ci(n,t){var e=n.x+t[3],r=n.y+t[0],i=n.dx-t[1]-t[3],u=n.dy-t[0]-t[2];return 0>i&&(e+=i/2,i=0),0>u&&(r+=u/2,u=0),{x:e,y:r,dx:i,dy:u}}function fi(n){function t(t){function a(){f.push("M",u(n(l),o))}for(var c,f=[],l=[],s=-1,h=t.length,g=ft(e),p=ft(r);h>++s;)i.call(this,c=t[s],s)?l.push([+g.call(this,c,s),+p.call(this,c,s)]):l.length&&(a(),l=[]);return l.length&&a(),f.length?f.join(""):null}var e=li,r=si,i=Dt,u=hi,a=u.key,o=.7;return t.x=function(n){return arguments.length?(e=n,t):e},t.y=function(n){return arguments.length?(r=n,t):r},t.defined=function(n){return arguments.length?(i=n,t):i},t.interpolate=function(n){return arguments.length?(a="function"==typeof n?u=n:(u=Yo.get(n)||hi).key,t):a},t.tension=function(n){return arguments.length?(o=n,t):o},t}function li(n){return n[0]}function si(n){return n[1]}function hi(n){return n.join("L")}function gi(n){return hi(n)+"Z"}function pi(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];e>++t;)i.push("V",(r=n[t])[1],"H",r[0]);return i.join("")}function di(n){for(var t=0,e=n.length,r=n[0],i=[r[0],",",r[1]];e>++t;)i.push("H",(r=n[t])[0],"V",r[1]);return i.join("")}function mi(n,t){return 4>n.length?hi(n):n[1]+Mi(n.slice(1,n.length-1),bi(n,t))}function vi(n,t){return 3>n.length?hi(n):n[0]+Mi((n.push(n[0]),n),bi([n[n.length-2]].concat(n,[n[1]]),t))}function yi(n,t){return 3>n.length?hi(n):n[0]+Mi(n,bi(n,t))}function Mi(n,t){if(1>t.length||n.length!=t.length&&n.length!=t.length+2)return hi(n);var e=n.length!=t.length,r="",i=n[0],u=n[1],a=t[0],o=a,c=1;if(e&&(r+="Q"+(u[0]-2*a[0]/3)+","+(u[1]-2*a[1]/3)+","+u[0]+","+u[1],i=n[1],c=2),t.length>1){o=t[1],u=n[c],c++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(u[0]-o[0])+","+(u[1]-o[1])+","+u[0]+","+u[1];for(var f=2;t.length>f;f++,c++)u=n[c],o=t[f],r+="S"+(u[0]-o[0])+","+(u[1]-o[1])+","+u[0]+","+u[1]}if(e){var l=n[c];r+="Q"+(u[0]+2*o[0]/3)+","+(u[1]+2*o[1]/3)+","+l[0]+","+l[1]}return r}function bi(n,t){for(var e,r=[],i=(1-t)/2,u=n[0],a=n[1],o=1,c=n.length;c>++o;)e=u,u=a,a=n[o],r.push([i*(a[0]-e[0]),i*(a[1]-e[1])]);return r}function xi(n){if(3>n.length)return hi(n);var t=1,e=n.length,r=n[0],i=r[0],u=r[1],a=[i,i,i,(r=n[1])[0]],o=[u,u,u,r[1]],c=[i,",",u];for(ki(c,a,o);e>++t;)r=n[t],a.shift(),a.push(r[0]),o.shift(),o.push(r[1]),ki(c,a,o);for(t=-1;2>++t;)a.shift(),a.push(r[0]),o.shift(),o.push(r[1]),ki(c,a,o);return c.join("")}function _i(n){if(4>n.length)return hi(n);for(var t,e=[],r=-1,i=n.length,u=[0],a=[0];3>++r;)t=n[r],u.push(t[0]),a.push(t[1]);for(e.push(Ei(Vo,u)+","+Ei(Vo,a)),--r;i>++r;)t=n[r],u.shift(),u.push(t[0]),a.shift(),a.push(t[1]),ki(e,u,a);return e.join("")}function wi(n){for(var t,e,r=-1,i=n.length,u=i+4,a=[],o=[];4>++r;)e=n[r%i],a.push(e[0]),o.push(e[1]);for(t=[Ei(Vo,a),",",Ei(Vo,o)],--r;u>++r;)e=n[r%i],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),ki(t,a,o);return t.join("")}function Si(n,t){var e=n.length-1;if(e)for(var r,i,u=n[0][0],a=n[0][1],o=n[e][0]-u,c=n[e][1]-a,f=-1;e>=++f;)r=n[f],i=f/e,r[0]=t*r[0]+(1-t)*(u+i*o),r[1]=t*r[1]+(1-t)*(a+i*c);return xi(n)}function Ei(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function ki(n,t,e){n.push("C",Ei(Uo,t),",",Ei(Uo,e),",",Ei(Io,t),",",Ei(Io,e),",",Ei(Vo,t),",",Ei(Vo,e))}function Ai(n,t){return(t[1]-n[1])/(t[0]-n[0])}function qi(n){for(var t=0,e=n.length-1,r=[],i=n[0],u=n[1],a=r[0]=Ai(i,u);e>++t;)r[t]=(a+(a=Ai(i=u,u=n[t+1])))/2;return r[t]=a,r}function Ni(n){for(var t,e,r,i,u=[],a=qi(n),o=-1,c=n.length-1;c>++o;)t=Ai(n[o],n[o+1]),1e-6>Math.abs(t)?a[o]=a[o+1]=0:(e=a[o]/t,r=a[o+1]/t,i=e*e+r*r,i>9&&(i=3*t/Math.sqrt(i),a[o]=i*e,a[o+1]=i*r));for(o=-1;c>=++o;)i=(n[Math.min(c,o+1)][0]-n[Math.max(0,o-1)][0])/(6*(1+a[o]*a[o])),u.push([i||0,a[o]*i||0]);return u}function Ti(n){return 3>n.length?hi(n):n[0]+Mi(n,Ni(n))}function Ci(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function zi(n){return n.rangeExtent?n.rangeExtent():Ci(n.range())}function Di(n,t,e,r){var i=e(n[0],n[1]),u=r(t[0],t[1]);return function(n){return u(i(n))}}function ji(n,t){var e,r=0,i=n.length-1,u=n[r],a=n[i];return u>a&&(e=r,r=i,i=e,e=u,u=a,a=e),(t=t(a-u))&&(n[r]=t.floor(u),n[i]=t.ceil(a)),n}function Li(n,t,e,r){var i=[],u=[],a=0,o=Math.min(n.length,t.length)-1;for(n[o]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());o>=++a;)i.push(e(n[a-1],n[a])),u.push(r(t[a-1],t[a]));return function(t){var e=ia.bisect(n,t,1,o)-1;return u[e](i[e](t))}}function Fi(n,t,e,r){function i(){var i=Math.min(n.length,t.length)>2?Li:Di,c=r?hr:sr;return a=i(n,t,c,e),o=i(t,n,c,Xe),u}function u(n){return a(n)}var a,o;return u.invert=function(n){return o(n)},u.domain=function(t){return arguments.length?(n=t.map(Number),i()):n},u.range=function(n){return arguments.length?(t=n,i()):t},u.rangeRound=function(n){return u.range(n).interpolate(lr)},u.clamp=function(n){return arguments.length?(r=n,i()):r},u.interpolate=function(n){return arguments.length?(e=n,i()):e},u.ticks=function(t){return Oi(n,t)},u.tickFormat=function(t,e){return Yi(n,t,e)},u.nice=function(){return ji(n,Pi),i()},u.copy=function(){return Fi(n,t,e,r)},i()}function Hi(n,t){return ia.rebind(n,t,"range","rangeRound","interpolate","clamp")}function Pi(n){return n=Math.pow(10,Math.round(Math.log(n)/Math.LN10)-1),n&&{floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}}}function Ri(n,t){var e=Ci(n),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),u=t/r*i;return.15>=u?i*=10:.35>=u?i*=5:.75>=u&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Oi(n,t){return ia.range.apply(ia,Ri(n,t))}function Yi(n,t,e){var r=-Math.floor(Math.log(Ri(n,t)[2])/Math.LN10+.01);return ia.format(e?e.replace(no,function(n,t,e,i,u,a,o,c,f,l){return[t,e,i,u,a,o,c,f||"."+(r-2*("%"===l)),l].join("")}):",."+r+"f")}function Ui(n,t,e,r){function i(t){return n(e(t))}return i.invert=function(t){return r(n.invert(t))},i.domain=function(t){return arguments.length?(0>t[0]?(e=Xi,r=Zi):(e=Ii,r=Vi),n.domain(t.map(e)),i):n.domain().map(r)},i.base=function(n){return arguments.length?(t=+n,i):t},i.nice=function(){return n.domain(ji(n.domain(),Bi(t))),i},i.ticks=function(){var i=Ci(n.domain()),u=[];if(i.every(isFinite)){var a=Math.log(t),o=Math.floor(i[0]/a),c=Math.ceil(i[1]/a),f=r(i[0]),l=r(i[1]),s=t%1?2:t;if(e===Xi)for(u.push(-Math.pow(t,-o));c>o++;)for(var h=s-1;h>0;h--)u.push(-Math.pow(t,-o)*h);else{for(;c>o;o++)for(var h=1;s>h;h++)u.push(Math.pow(t,o)*h);u.push(Math.pow(t,o))}for(o=0;f>u[o];o++);for(c=u.length;u[c-1]>l;c--);u=u.slice(o,c)}return u},i.tickFormat=function(n,u){if(2>arguments.length&&(u=Xo),!arguments.length)return u;var a,o=Math.log(t),c=Math.max(.1,n/i.ticks().length),f=e===Xi?(a=-1e-12,Math.floor):(a=1e-12,Math.ceil);return function(n){return c>=n/r(o*f(e(n)/o+a))?u(n):""}},i.copy=function(){return Ui(n.copy(),t,e,r)},Hi(i,n)}function Ii(n){return Math.log(0>n?0:n)}function Vi(n){return Math.exp(n)}function Xi(n){return-Math.log(n>0?0:-n)}function Zi(n){return-Math.exp(-n)}function Bi(n){n=Math.log(n);var t={floor:function(t){return Math.floor(t/n)*n},ceil:function(t){return Math.ceil(t/n)*n}};return function(){return t}}function $i(n,t){function e(t){return n(r(t))}var r=Ji(t),i=Ji(1/t);return e.invert=function(t){return i(n.invert(t))},e.domain=function(t){return arguments.length?(n.domain(t.map(r)),e):n.domain().map(i)},e.ticks=function(n){return Oi(e.domain(),n)},e.tickFormat=function(n,t){return Yi(e.domain(),n,t)},e.nice=function(){return e.domain(ji(e.domain(),Pi))},e.exponent=function(n){if(!arguments.length)return t;var u=e.domain();return r=Ji(t=n),i=Ji(1/t),e.domain(u)},e.copy=function(){return $i(n.copy(),t)},Hi(e,n)}function Ji(n){return function(t){return 0>t?-Math.pow(-t,n):Math.pow(t,n)}}function Gi(n,t){function e(t){return a[((u.get(t)||u.set(t,n.push(t)))-1)%a.length]}function r(t,e){return ia.range(n.length).map(function(n){return t+e*n})}var u,a,o;return e.domain=function(r){if(!arguments.length)return n;n=[],u=new i;for(var a,o=-1,c=r.length;c>++o;)u.has(a=r[o])||u.set(a,n.push(a));return e[t.t].apply(e,t.a)},e.range=function(n){return arguments.length?(a=n,o=0,t={t:"range",a:arguments},e):a},e.rangePoints=function(i,u){2>arguments.length&&(u=0);var c=i[0],f=i[1],l=(f-c)/(Math.max(1,n.length-1)+u);return a=r(2>n.length?(c+f)/2:c+l*u/2,l),o=0,t={t:"rangePoints",a:arguments},e},e.rangeBands=function(i,u,c){2>arguments.length&&(u=0),3>arguments.length&&(c=u);var f=i[1]<i[0],l=i[f-0],s=i[1-f],h=(s-l)/(n.length-u+2*c);return a=r(l+h*c,h),f&&a.reverse(),o=h*(1-u),t={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(i,u,c){2>arguments.length&&(u=0),3>arguments.length&&(c=u);var f=i[1]<i[0],l=i[f-0],s=i[1-f],h=Math.floor((s-l)/(n.length-u+2*c)),g=s-l-(n.length-u)*h;return a=r(l+Math.round(g/2),h),f&&a.reverse(),o=Math.round(h*(1-u)),t={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return o},e.rangeExtent=function(){return Ci(t.a[0])},e.copy=function(){return Gi(n,t)},e.domain(n)}function Ki(n,t){function e(){var e=0,u=t.length;for(i=[];u>++e;)i[e-1]=ia.quantile(n,e/u);return r}function r(n){return isNaN(n=+n)?0/0:t[ia.bisect(i,n)]}var i;return r.domain=function(t){return arguments.length?(n=t.filter(function(n){return!isNaN(n)}).sort(ia.ascending),e()):n},r.range=function(n){return arguments.length?(t=n,e()):t},r.quantiles=function(){return i},r.copy=function(){return Ki(n,t)},e()}function Wi(n,t,e){function r(t){return e[Math.max(0,Math.min(a,Math.floor(u*(t-n))))]}function i(){return u=e.length/(t-n),a=e.length-1,r}var u,a;return r.domain=function(e){return arguments.length?(n=+e[0],t=+e[e.length-1],i()):[n,t]},r.range=function(n){return arguments.length?(e=n,i()):e},r.copy=function(){return Wi(n,t,e)},i()}function Qi(n,t){function e(e){return t[ia.bisect(n,e)]}return e.domain=function(t){return arguments.length?(n=t,e):n},e.range=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return Qi(n,t)},e}function nu(n){function t(n){return+n}return t.invert=t,t.domain=t.range=function(e){return arguments.length?(n=e.map(t),t):n},t.ticks=function(t){return Oi(n,t)},t.tickFormat=function(t,e){return Yi(n,t,e)},t.copy=function(){return nu(n)},t}function tu(n){return n.innerRadius}function eu(n){return n.outerRadius}function ru(n){return n.startAngle}function iu(n){return n.endAngle}function uu(n){for(var t,e,r,i=-1,u=n.length;u>++i;)t=n[i],e=t[0],r=t[1]+Go,t[0]=e*Math.cos(r),t[1]=e*Math.sin(r);return n}function au(n){function t(t){function c(){d.push("M",o(n(v),s),l,f(n(m.reverse()),s),"Z")}for(var h,g,p,d=[],m=[],v=[],y=-1,M=t.length,b=ft(e),x=ft(i),_=e===r?function(){return g}:ft(r),w=i===u?function(){return p}:ft(u);M>++y;)a.call(this,h=t[y],y)?(m.push([g=+b.call(this,h,y),p=+x.call(this,h,y)]),v.push([+_.call(this,h,y),+w.call(this,h,y)])):m.length&&(c(),m=[],v=[]);return m.length&&c(),d.length?d.join(""):null}var e=li,r=li,i=0,u=si,a=Dt,o=hi,c=o.key,f=o,l="L",s=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(i=u=n,t):u},t.y0=function(n){return arguments.length?(i=n,t):i},t.y1=function(n){return arguments.length?(u=n,t):u},t.defined=function(n){return arguments.length?(a=n,t):a},t.interpolate=function(n){return arguments.length?(c="function"==typeof n?o=n:(o=Yo.get(n)||hi).key,f=o.reverse||o,l=o.closed?"M":"L",t):c},t.tension=function(n){return arguments.length?(s=n,t):s},t}function ou(n){return n.radius}function cu(n){return[n.x,n.y]}function fu(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]+Go;return[e*Math.cos(r),e*Math.sin(r)]}}function lu(){return 64}function su(){return"circle"}function hu(n){var t=Math.sqrt(n/za);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function gu(n,t){return ma(n,ec),n.id=t,n}function pu(n,t,e,r){var i=n.id;return D(n,"function"==typeof e?function(n,u,a){n.__transition__[i].tween.set(t,r(e.call(n,n.__data__,u,a)))}:(e=r(e),function(n){n.__transition__[i].tween.set(t,e)}))}function du(n){return null==n&&(n=""),function(){this.textContent=n}}function mu(n,t,e,r){var u=n.__transition__||(n.__transition__={active:0,count:0}),a=u[e];if(!a){var o=r.time;return a=u[e]={tween:new i,event:ia.dispatch("start","end"),time:o,ease:r.ease,delay:r.delay,duration:r.duration},++u.count,ia.timer(function(r){function i(r){return u.active>e?f():(u.active=e,h.start.call(n,l,t),a.tween.forEach(function(e,r){(r=r.call(n,l,t))&&d.push(r)}),c(r)||ia.timer(c,0,o),1)}function c(r){if(u.active!==e)return f();for(var i=(r-g)/p,a=s(i),o=d.length;o>0;)d[--o].call(n,a);return i>=1?(f(),h.end.call(n,l,t),1):void 0}function f(){return--u.count?delete u[e]:delete n.__transition__,1}var l=n.__data__,s=a.ease,h=a.event,g=a.delay,p=a.duration,d=[];return r>=g?i(r):ia.timer(i,g,o),1},0,o),a}}function vu(n,t){n.attr("transform",function(n){return"translate("+t(n)+",0)"})}function yu(n,t){n.attr("transform",function(n){return"translate(0,"+t(n)+")"})}function Mu(n,t,e){if(r=[],e&&t.length>1){for(var r,i,u,a=Ci(n.domain()),o=-1,c=t.length,f=(t[1]-t[0])/++e;c>++o;)for(i=e;--i>0;)(u=+t[o]-i*f)>=a[0]&&r.push(u);for(--o,i=0;e>++i&&(u=+t[o]+i*f)<a[1];)r.push(u)}return r}function bu(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function xu(n,t,e){function r(t){var e=n(t),r=u(e,1);return r-t>t-e?e:r}function i(e){return t(e=n(new fc(e-1)),1),e}function u(n,e){return t(n=new fc(+n),e),n}function a(n,r,u){var a=i(n),o=[];if(u>1)for(;r>a;)e(a)%u||o.push(new Date(+a)),t(a,1);else for(;r>a;)o.push(new Date(+a)),t(a,1);return o}function o(n,t,e){try{fc=bu;var r=new bu;return r._=n,a(r,t,e)}finally{fc=Date}}n.floor=n,n.round=r,n.ceil=i,n.offset=u,n.range=a;var c=n.utc=_u(n);return c.floor=c,c.round=_u(r),c.ceil=_u(i),c.offset=_u(u),c.range=o,n}function _u(n){return function(t,e){try{fc=bu;var r=new bu;return r._=t,n(r,e)._}finally{fc=Date}}}function wu(n,t,e,r){for(var i,u,a=0,o=t.length,c=e.length;o>a;){if(r>=c)return-1;if(i=t.charCodeAt(a++),37===i){if(u=Ac[t.charAt(a++)],!u||0>(r=u(n,e,r)))return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function Su(n){return RegExp("^(?:"+n.map(ia.requote).join("|")+")","i")}function Eu(n){for(var t=new i,e=-1,r=n.length;r>++e;)t.set(n[e].toLowerCase(),e);return t}function ku(n,t,e){n+="";var r=n.length;return e>r?Array(e-r+1).join(t)+n:n}function Au(n,t,e){bc.lastIndex=0;var r=bc.exec(t.substring(e));return r?e+=r[0].length:-1}function qu(n,t,e){Mc.lastIndex=0;var r=Mc.exec(t.substring(e));return r?e+=r[0].length:-1}function Nu(n,t,e){wc.lastIndex=0;var r=wc.exec(t.substring(e));return r?(n.m=Sc.get(r[0].toLowerCase()),e+=r[0].length):-1}function Tu(n,t,e){xc.lastIndex=0;var r=xc.exec(t.substring(e));return r?(n.m=_c.get(r[0].toLowerCase()),e+=r[0].length):-1}function Cu(n,t,e){return wu(n,""+kc.c,t,e)}function zu(n,t,e){return wu(n,""+kc.x,t,e)}function Du(n,t,e){return wu(n,""+kc.X,t,e)}function ju(n,t,e){qc.lastIndex=0;var r=qc.exec(t.substring(e,e+4));return r?(n.y=+r[0],e+=r[0].length):-1}function Lu(n,t,e){qc.lastIndex=0;var r=qc.exec(t.substring(e,e+2));return r?(n.y=Fu(+r[0]),e+=r[0].length):-1}function Fu(n){return n+(n>68?1900:2e3)}function Hu(n,t,e){qc.lastIndex=0;var r=qc.exec(t.substring(e,e+2));return r?(n.m=r[0]-1,e+=r[0].length):-1}function Pu(n,t,e){qc.lastIndex=0;var r=qc.exec(t.substring(e,e+2));return r?(n.d=+r[0],e+=r[0].length):-1}function Ru(n,t,e){qc.lastIndex=0;var r=qc.exec(t.substring(e,e+2));return r?(n.H=+r[0],e+=r[0].length):-1}function Ou(n,t,e){qc.lastIndex=0;var r=qc.exec(t.substring(e,e+2));return r?(n.M=+r[0],e+=r[0].length):-1}function Yu(n,t,e){qc.lastIndex=0;var r=qc.exec(t.substring(e,e+2));return r?(n.S=+r[0],e+=r[0].length):-1}function Uu(n,t,e){qc.lastIndex=0;var r=qc.exec(t.substring(e,e+3));return r?(n.L=+r[0],e+=r[0].length):-1}function Iu(n,t,e){var r=Nc.get(t.substring(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)}function Vu(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=~~(Math.abs(t)/60),i=Math.abs(t)%60;return e+ku(r,"0",2)+ku(i,"0",2)}function Xu(n){return n.toISOString()}function Zu(n,t,e){function r(t){return n(t)}return r.invert=function(t){return $u(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map($u)},r.nice=function(n){return r.domain(ji(r.domain(),function(){return n}))},r.ticks=function(e,i){var u=Bu(r.domain());if("function"!=typeof e){var a=u[1]-u[0],o=a/e,c=ia.bisect(Cc,o);if(c==Cc.length)return t.year(u,e);if(!c)return n.ticks(e).map($u);Math.log(o/Cc[c-1])<Math.log(Cc[c]/o)&&--c,e=t[c],i=e[1],e=e[0].range}return e(u[0],new Date(+u[1]+1),i)},r.tickFormat=function(){return e},r.copy=function(){return Zu(n.copy(),t,e)},ia.rebind(r,n,"range","rangeRound","interpolate","clamp")}function Bu(n){var t=n[0],e=n[n.length-1];return e>t?[t,e]:[e,t]}function $u(n){return new Date(n)}function Ju(n){return function(t){for(var e=n.length-1,r=n[e];!r[1](t);)r=n[--e];return r[0](t)}}function Gu(n){var t=new Date(n,0,1);return t.setFullYear(n),t}function Ku(n){var t=n.getFullYear(),e=Gu(t),r=Gu(t+1);return t+(n-e)/(r-e)}function Wu(n){var t=new Date(Date.UTC(n,0,1));return t.setUTCFullYear(n),t}function Qu(n){var t=n.getUTCFullYear(),e=Wu(t),r=Wu(t+1);return t+(n-e)/(r-e)}function na(n){return n.responseText}function ta(n){return JSON.parse(n.responseText)}function ea(n){var t=ua.createRange();return t.selectNode(ua.body),t.createContextualFragment(n.responseText)}function ra(n){return n.responseXML}var ia={version:"3.1.0pre"};Date.now||(Date.now=function(){return+new Date});var ua=document,aa=window;try{ua.createElement("div").style.setProperty("opacity",0,"")}catch(oa){var ca=aa.CSSStyleDeclaration.prototype,fa=ca.setProperty;ca.setProperty=function(n,t,e){fa.call(this,n,t+"",e)}}ia.ascending=function(n,t){return t>n?-1:n>t?1:n>=t?0:0/0},ia.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:0/0},ia.min=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;u>++i&&(null==(e=n[i])||e!=e);)e=void 0;for(;u>++i;)null!=(r=n[i])&&e>r&&(e=r)}else{for(;u>++i&&(null==(e=t.call(n,n[i],i))||e!=e);)e=void 0;for(;u>++i;)null!=(r=t.call(n,n[i],i))&&e>r&&(e=r)}return e},ia.max=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;u>++i&&(null==(e=n[i])||e!=e);)e=void 0;for(;u>++i;)null!=(r=n[i])&&r>e&&(e=r)}else{for(;u>++i&&(null==(e=t.call(n,n[i],i))||e!=e);)e=void 0;for(;u>++i;)null!=(r=t.call(n,n[i],i))&&r>e&&(e=r)}return e},ia.extent=function(n,t){var e,r,i,u=-1,a=n.length;if(1===arguments.length){for(;a>++u&&(null==(e=i=n[u])||e!=e);)e=i=void 0;for(;a>++u;)null!=(r=n[u])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;a>++u&&(null==(e=i=t.call(n,n[u],u))||e!=e);)e=void 0;for(;a>++u;)null!=(r=t.call(n,n[u],u))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},ia.sum=function(n,t){var e,r=0,i=n.length,u=-1;if(1===arguments.length)for(;i>++u;)isNaN(e=+n[u])||(r+=e);else for(;i>++u;)isNaN(e=+t.call(n,n[u],u))||(r+=e);return r},ia.mean=function(t,e){var r,i=t.length,u=0,a=-1,o=0;if(1===arguments.length)for(;i>++a;)n(r=t[a])&&(u+=(r-u)/++o);else for(;i>++a;)n(r=e.call(t,t[a],a))&&(u+=(r-u)/++o);return o?u:void 0},ia.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),i=+n[r-1],u=e-r;return u?i+u*(n[r]-i):i},ia.median=function(t,e){return arguments.length>1&&(t=t.map(e)),t=t.filter(n),t.length?ia.quantile(t.sort(ia.ascending),.5):void 0},ia.bisector=function(n){return{left:function(t,e,r,i){for(3>arguments.length&&(r=0),4>arguments.length&&(i=t.length);i>r;){var u=r+i>>>1;e>n.call(t,t[u],u)?r=u+1:i=u}return r},right:function(t,e,r,i){for(3>arguments.length&&(r=0),4>arguments.length&&(i=t.length);i>r;){var u=r+i>>>1;n.call(t,t[u],u)>e?i=u:r=u+1}return r}}};var la=ia.bisector(function(n){return n});ia.bisectLeft=la.left,ia.bisect=ia.bisectRight=la.right,ia.shuffle=function(n){for(var t,e,r=n.length;r;)e=0|Math.random()*r--,t=n[r],n[r]=n[e],n[e]=t;return n},ia.permute=function(n,t){for(var e=[],r=-1,i=t.length;i>++r;)e[r]=n[t[r]];return e},ia.zip=function(){if(!(i=arguments.length))return[];for(var n=-1,e=ia.min(arguments,t),r=Array(e);e>++n;)for(var i,u=-1,a=r[n]=Array(i);i>++u;)a[u]=arguments[u][n];return r},ia.transpose=function(n){return ia.zip.apply(ia,n)},ia.keys=function(n){var t=[];for(var e in n)t.push(e);return t},ia.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},ia.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},ia.merge=function(n){return Array.prototype.concat.apply([],n)},ia.range=function(n,t,r){if(3>arguments.length&&(r=1,2>arguments.length&&(t=n,n=0)),1/0===(t-n)/r)throw Error("infinite range");var i,u=[],a=e(Math.abs(r)),o=-1;if(n*=a,t*=a,r*=a,0>r)for(;(i=n+r*++o)>t;)u.push(i/a);else for(;t>(i=n+r*++o);)u.push(i/a);return u},ia.map=function(n){var t=new i;for(var e in n)t.set(e,n[e]);return t},r(i,{has:function(n){return sa+n in this},get:function(n){return this[sa+n]},set:function(n,t){return this[sa+n]=t},remove:function(n){return n=sa+n,n in this&&delete this[n]},keys:function(){var n=[];return this.forEach(function(t){n.push(t)}),n},values:function(){var n=[];return this.forEach(function(t,e){n.push(e)}),n},entries:function(){var n=[];return this.forEach(function(t,e){n.push({key:t,value:e})}),n},forEach:function(n){for(var t in this)t.charCodeAt(0)===ha&&n.call(this,t.substring(1),this[t])}});var sa="\0",ha=sa.charCodeAt(0);ia.nest=function(){function n(t,o,c){if(c>=a.length)return r?r.call(u,o):e?o.sort(e):o;for(var f,l,s,h,g=-1,p=o.length,d=a[c++],m=new i;p>++g;)(h=m.get(f=d(l=o[g])))?h.push(l):m.set(f,[l]);return t?(l=t(),s=function(e,r){l.set(e,n(t,r,c))}):(l={},s=function(e,r){l[e]=n(t,r,c)}),m.forEach(s),l}function t(n,e){if(e>=a.length)return n;var r=[],i=o[e++];return n.forEach(function(n,i){r.push({key:n,values:t(i,e)})}),i?r.sort(function(n,t){return i(n.key,t.key)}):r}var e,r,u={},a=[],o=[];return u.map=function(t,e){return n(e,t,0)},u.entries=function(e){return t(n(ia.map,e,0),0)},u.key=function(n){return a.push(n),u},u.sortKeys=function(n){return o[a.length-1]=n,u},u.sortValues=function(n){return e=n,u},u.rollup=function(n){return r=n,u},u},ia.set=function(n){var t=new u;if(n)for(var e=0;n.length>e;e++)t.add(n[e]);return t},r(u,{has:function(n){return sa+n in this},add:function(n){return this[sa+n]=!0,n},remove:function(n){return n=sa+n,n in this&&delete this[n]},values:function(){var n=[];return this.forEach(function(t){n.push(t)}),n},forEach:function(n){for(var t in this)t.charCodeAt(0)===ha&&n.call(this,t.substring(1))}}),ia.behavior={},ia.rebind=function(n,t){for(var e,r=1,i=arguments.length;i>++r;)n[e=arguments[r]]=a(n,t,t[e]);return n},ia.dispatch=function(){for(var n=new o,t=-1,e=arguments.length;e>++t;)n[arguments[t]]=c(n);return n},o.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.substring(e+1),n=n.substring(0,e)),n)return 2>arguments.length?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},ia.event=null,ia.behavior.drag=function(){function n(){this.on("mousedown.drag",t).on("touchstart.drag",t)}function t(){function n(){var n=o.parentNode;return null!=s?ia.touches(n).filter(function(n){return n.identifier===s})[0]:ia.mouse(n)}function t(){if(!o.parentNode)return i();var t=n(),e=t[0]-h[0],r=t[1]-h[1];g|=e|r,h=t,f(),c({type:"drag",x:t[0]+a[0],y:t[1]+a[1],dx:e,dy:r})}function i(){c({type:"dragend"}),g&&(f(),ia.event.target===l&&p.on("click.drag",u,!0)),p.on(null!=s?"touchmove.drag-"+s:"mousemove.drag",null).on(null!=s?"touchend.drag-"+s:"mouseup.drag",null)
}function u(){f(),p.on("click.drag",null)}var a,o=this,c=e.of(o,arguments),l=ia.event.target,s=ia.event.touches?ia.event.changedTouches[0].identifier:null,h=n(),g=0,p=ia.select(aa).on(null!=s?"touchmove.drag-"+s:"mousemove.drag",t).on(null!=s?"touchend.drag-"+s:"mouseup.drag",i,!0);r?(a=r.apply(o,arguments),a=[a.x-h[0],a.y-h[1]]):a=[0,0],null==s&&f(),c({type:"dragstart"})}var e=s(n,"drag","dragstart","dragend"),r=null;return n.origin=function(t){return arguments.length?(r=t,n):r},ia.rebind(n,e,"on")},ia.mouse=function(n){return h(n,l())};var ga=/WebKit/.test(aa.navigator.userAgent)?-1:0,pa=p;try{pa(ua.documentElement.childNodes)[0].nodeType}catch(da){pa=g}var ma=[].__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]};ia.touches=function(n,t){return 2>arguments.length&&(t=l().touches),t?pa(t).map(function(t){var e=h(n,t);return e.identifier=t.identifier,e}):[]};var va=function(n,t){return t.querySelector(n)},ya=function(n,t){return t.querySelectorAll(n)},Ma=ua.documentElement,ba=Ma.matchesSelector||Ma.webkitMatchesSelector||Ma.mozMatchesSelector||Ma.msMatchesSelector||Ma.oMatchesSelector,xa=function(n,t){return ba.call(n,t)};"function"==typeof Sizzle&&(va=function(n,t){return Sizzle(n,t)[0]||null},ya=function(n,t){return Sizzle.uniqueSort(Sizzle(n,t))},xa=Sizzle.matchesSelector);var _a=[];ia.selection=function(){return Aa},ia.selection.prototype=_a,_a.select=function(n){var t,e,r,i,u=[];"function"!=typeof n&&(n=m(n));for(var a=-1,o=this.length;o>++a;){u.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var c=-1,f=r.length;f>++c;)(i=r[c])?(t.push(e=n.call(i,i.__data__,c)),e&&"__data__"in i&&(e.__data__=i.__data__)):t.push(null)}return d(u)},_a.selectAll=function(n){var t,e,r=[];"function"!=typeof n&&(n=v(n));for(var i=-1,u=this.length;u>++i;)for(var a=this[i],o=-1,c=a.length;c>++o;)(e=a[o])&&(r.push(t=pa(n.call(e,e.__data__,o))),t.parentNode=e);return d(r)};var wa={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};ia.ns={prefix:wa,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&(e=n.substring(0,t),n=n.substring(t+1)),wa.hasOwnProperty(e)?{space:wa[e],local:n}:n}},_a.attr=function(n,t){if(2>arguments.length){if("string"==typeof n){var e=this.node();return n=ia.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(y(t,n[t]));return this}return this.each(y(n,t))},ia.requote=function(n){return n.replace(Sa,"\\$&")};var Sa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;_a.classed=function(n,t){if(2>arguments.length){if("string"==typeof n){var e=this.node(),r=(n=n.trim().split(/^|\s+/g)).length,i=-1;if(t=e.classList){for(;r>++i;)if(!t.contains(n[i]))return!1}else for(t=e.className,null!=t.baseVal&&(t=t.baseVal);r>++i;)if(!x(n[i]).test(t))return!1;return!0}for(t in n)this.each(_(t,n[t]));return this}return this.each(_(n,t))},_a.style=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t="");for(e in n)this.each(S(e,n[e],t));return this}if(2>r)return aa.getComputedStyle(this.node(),null).getPropertyValue(n);e=""}return this.each(S(n,t,e))},_a.property=function(n,t){if(2>arguments.length){if("string"==typeof n)return this.node()[n];for(t in n)this.each(E(t,n[t]));return this}return this.each(E(n,t))},_a.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},_a.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},_a.append=function(n){function t(){return this.appendChild(ua.createElementNS(this.namespaceURI,n))}function e(){return this.appendChild(ua.createElementNS(n.space,n.local))}return n=ia.ns.qualify(n),this.select(n.local?e:t)},_a.insert=function(n,t){function e(e,r){return this.insertBefore(ua.createElementNS(this.namespaceURI,n),t.call(this,e,r))}function r(e,r){return this.insertBefore(ua.createElementNS(n.space,n.local),t.call(this,e,r))}return n=ia.ns.qualify(n),"function"!=typeof t&&(t=m(t)),this.select(n.local?r:e)},_a.remove=function(){return this.each(function(){var n=this.parentNode;n&&n.removeChild(this)})},_a.data=function(n,t){function e(n,e){var r,u,a,o=n.length,s=e.length,h=Math.min(o,s),g=Array(s),p=Array(s),d=Array(o);if(t){var m,v=new i,y=new i,M=[];for(r=-1;o>++r;)m=t.call(u=n[r],u.__data__,r),v.has(m)?d[r]=u:v.set(m,u),M.push(m);for(r=-1;s>++r;)m=t.call(e,a=e[r],r),(u=v.get(m))?(g[r]=u,u.__data__=a):y.has(m)||(p[r]=k(a)),y.set(m,a),v.remove(m);for(r=-1;o>++r;)v.has(M[r])&&(d[r]=n[r])}else{for(r=-1;h>++r;)u=n[r],a=e[r],u?(u.__data__=a,g[r]=u):p[r]=k(a);for(;s>r;++r)p[r]=k(e[r]);for(;o>r;++r)d[r]=n[r]}p.update=g,p.parentNode=g.parentNode=d.parentNode=n.parentNode,c.push(p),f.push(g),l.push(d)}var r,u,a=-1,o=this.length;if(!arguments.length){for(n=Array(o=(r=this[0]).length);o>++a;)(u=r[a])&&(n[a]=u.__data__);return n}var c=j([]),f=d([]),l=d([]);if("function"==typeof n)for(;o>++a;)e(r=this[a],n.call(r,r.parentNode.__data__,a));else for(;o>++a;)e(r=this[a],n);return f.enter=function(){return c},f.exit=function(){return l},f},_a.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},_a.filter=function(n){var t,e,r,i=[];"function"!=typeof n&&(n=A(n));for(var u=0,a=this.length;a>u;u++){i.push(t=[]),t.parentNode=(e=this[u]).parentNode;for(var o=0,c=e.length;c>o;o++)(r=e[o])&&n.call(r,r.__data__,o)&&t.push(r)}return d(i)},_a.order=function(){for(var n=-1,t=this.length;t>++n;)for(var e,r=this[n],i=r.length-1,u=r[i];--i>=0;)(e=r[i])&&(u&&u!==e.nextSibling&&u.parentNode.insertBefore(e,u),u=e);return this},_a.sort=function(n){n=q.apply(this,arguments);for(var t=-1,e=this.length;e>++t;)this[t].sort(n);return this.order()},_a.on=function(n,t,e){var r=arguments.length;if(3>r){if("string"!=typeof n){2>r&&(t=!1);for(e in n)this.each(T(e,n[e],t));return this}if(2>r)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(T(n,t,e))};var Ea=ia.map({mouseenter:"mouseover",mouseleave:"mouseout"});Ea.forEach(function(n){"on"+n in ua&&Ea.remove(n)}),_a.each=function(n){return D(this,function(t,e,r){n.call(t,t.__data__,e,r)})},_a.call=function(n){var t=pa(arguments);return n.apply(t[0]=this,t),this},_a.empty=function(){return!this.node()},_a.node=function(){for(var n=0,t=this.length;t>n;n++)for(var e=this[n],r=0,i=e.length;i>r;r++){var u=e[r];if(u)return u}return null};var ka=[];ia.selection.enter=j,ia.selection.enter.prototype=ka,ka.append=_a.append,ka.insert=_a.insert,ka.empty=_a.empty,ka.node=_a.node,ka.select=function(n){for(var t,e,r,i,u,a=[],o=-1,c=this.length;c>++o;){r=(i=this[o]).update,a.push(t=[]),t.parentNode=i.parentNode;for(var f=-1,l=i.length;l>++f;)(u=i[f])?(t.push(r[f]=e=n.call(i.parentNode,u.__data__,f)),e.__data__=u.__data__):t.push(null)}return d(a)},_a.transition=function(){var n,t,e=Qo||++rc,r=[],i=Object.create(ic);i.time=Date.now();for(var u=-1,a=this.length;a>++u;){r.push(n=[]);for(var o=this[u],c=-1,f=o.length;f>++c;)(t=o[c])&&mu(t,c,e,i),n.push(t)}return gu(r,e)};var Aa=d([[ua]]);Aa[0].parentNode=Ma,ia.select=function(n){return"string"==typeof n?Aa.select(n):d([[n]])},ia.selectAll=function(n){return"string"==typeof n?Aa.selectAll(n):d([pa(n)])},ia.behavior.zoom=function(){function n(){this.on("mousedown.zoom",o).on("mousemove.zoom",l).on(Ta+".zoom",c).on("dblclick.zoom",h).on("touchstart.zoom",g).on("touchmove.zoom",p).on("touchend.zoom",g)}function t(n){return[(n[0]-_[0])/w,(n[1]-_[1])/w]}function e(n){return[n[0]*w+_[0],n[1]*w+_[1]]}function r(n){w=Math.max(S[0],Math.min(S[1],n))}function i(n,t){t=e(t),_[0]+=n[0]-t[0],_[1]+=n[1]-t[1]}function u(){y&&y.domain(v.range().map(function(n){return(n-_[0])/w}).map(v.invert)),b&&b.domain(M.range().map(function(n){return(n-_[1])/w}).map(M.invert))}function a(n){u(),ia.event.preventDefault(),n({type:"zoom",scale:w,translate:_})}function o(){function n(){l=1,i(ia.mouse(u),h),a(o)}function e(){l&&f(),s.on("mousemove.zoom",null).on("mouseup.zoom",null),l&&ia.event.target===c&&s.on("click.zoom",r,!0)}function r(){f(),s.on("click.zoom",null)}var u=this,o=E.of(u,arguments),c=ia.event.target,l=0,s=ia.select(aa).on("mousemove.zoom",n).on("mouseup.zoom",e),h=t(ia.mouse(u));aa.focus(),f()}function c(){d||(d=t(ia.mouse(this))),r(Math.pow(2,.002*qa())*w),i(ia.mouse(this),d),a(E.of(this,arguments))}function l(){d=null}function h(){var n=ia.mouse(this),e=t(n),u=Math.log(w)/Math.LN2;r(Math.pow(2,ia.event.shiftKey?Math.ceil(u)-1:Math.floor(u)+1)),i(n,e),a(E.of(this,arguments))}function g(){var n=ia.touches(this),e=Date.now();if(m=w,d={},n.forEach(function(n){d[n.identifier]=t(n)}),f(),1===n.length){if(500>e-x){var u=n[0],o=t(n[0]);r(2*w),i(u,o),a(E.of(this,arguments))}x=e}}function p(){var n=ia.touches(this),t=n[0],e=d[t.identifier];if(u=n[1]){var u,o=d[u.identifier];t=[(t[0]+u[0])/2,(t[1]+u[1])/2],e=[(e[0]+o[0])/2,(e[1]+o[1])/2],r(ia.event.scale*m)}i(t,e),x=null,a(E.of(this,arguments))}var d,m,v,y,M,b,x,_=[0,0],w=1,S=Na,E=s(n,"zoom");return n.translate=function(t){return arguments.length?(_=t.map(Number),u(),n):_},n.scale=function(t){return arguments.length?(w=+t,u(),n):w},n.scaleExtent=function(t){return arguments.length?(S=null==t?Na:t.map(Number),n):S},n.x=function(t){return arguments.length?(y=t,v=t.copy(),_=[0,0],w=1,n):y},n.y=function(t){return arguments.length?(b=t,M=t.copy(),_=[0,0],w=1,n):b},ia.rebind(n,E,"on")};var qa,Na=[0,1/0],Ta="onwheel"in ua?(qa=function(){return-ia.event.deltaY*(ia.event.deltaMode?120:1)},"wheel"):"onmousewheel"in ua?(qa=function(){return ia.event.wheelDelta},"mousewheel"):(qa=function(){return-ia.event.detail},"MozMousePixelScroll");L.prototype.toString=function(){return this.rgb()+""},ia.hsl=function(n,t,e){return 1===arguments.length?n instanceof H?F(n.h,n.s,n.l):it(""+n,ut,F):F(+n,+t,+e)};var Ca=H.prototype=new L;Ca.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),F(this.h,this.s,this.l/n)},Ca.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),F(this.h,this.s,n*this.l)},Ca.rgb=function(){return P(this.h,this.s,this.l)};var za=Math.PI,Da=1e-6,ja=za/180,La=180/za;ia.hcl=function(n,t,e){return 1===arguments.length?n instanceof Z?X(n.h,n.c,n.l):n instanceof J?K(n.l,n.a,n.b):K((n=at((n=ia.rgb(n)).r,n.g,n.b)).l,n.a,n.b):X(+n,+t,+e)};var Fa=Z.prototype=new L;Fa.brighter=function(n){return X(this.h,this.c,Math.min(100,this.l+Ha*(arguments.length?n:1)))},Fa.darker=function(n){return X(this.h,this.c,Math.max(0,this.l-Ha*(arguments.length?n:1)))},Fa.rgb=function(){return B(this.h,this.c,this.l).rgb()},ia.lab=function(n,t,e){return 1===arguments.length?n instanceof J?$(n.l,n.a,n.b):n instanceof Z?B(n.l,n.c,n.h):at((n=ia.rgb(n)).r,n.g,n.b):$(+n,+t,+e)};var Ha=18,Pa=.95047,Ra=1,Oa=1.08883,Ya=J.prototype=new L;Ya.brighter=function(n){return $(Math.min(100,this.l+Ha*(arguments.length?n:1)),this.a,this.b)},Ya.darker=function(n){return $(Math.max(0,this.l-Ha*(arguments.length?n:1)),this.a,this.b)},Ya.rgb=function(){return G(this.l,this.a,this.b)},ia.rgb=function(n,t,e){return 1===arguments.length?n instanceof et?tt(n.r,n.g,n.b):it(""+n,tt,P):tt(~~n,~~t,~~e)};var Ua=et.prototype=new L;Ua.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,i=30;return t||e||r?(t&&i>t&&(t=i),e&&i>e&&(e=i),r&&i>r&&(r=i),tt(Math.min(255,Math.floor(t/n)),Math.min(255,Math.floor(e/n)),Math.min(255,Math.floor(r/n)))):tt(i,i,i)},Ua.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),tt(Math.floor(n*this.r),Math.floor(n*this.g),Math.floor(n*this.b))},Ua.hsl=function(){return ut(this.r,this.g,this.b)},Ua.toString=function(){return"#"+rt(this.r)+rt(this.g)+rt(this.b)};var Ia=ia.map({aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"});Ia.forEach(function(n,t){Ia.set(n,it(t,tt,P))}),ia.functor=ft,ia.xhr=function(n,t,e){function r(){var n=c.status;!n&&c.responseText||n>=200&&300>n||304===n?u.load.call(i,o.call(i,c)):u.error.call(i,c)}var i={},u=ia.dispatch("progress","load","error"),a={},o=lt,c=new(aa.XDomainRequest&&/^(http(s)?:)?\/\//.test(n)?XDomainRequest:XMLHttpRequest);return"onload"in c?c.onload=c.onerror=r:c.onreadystatechange=function(){c.readyState>3&&r()},c.onprogress=function(n){var t=ia.event;ia.event=n;try{u.progress.call(i,c)}finally{ia.event=t}},i.header=function(n,t){return n=(n+"").toLowerCase(),2>arguments.length?a[n]:(null==t?delete a[n]:a[n]=t+"",i)},i.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",i):t},i.response=function(n){return o=n,i},["get","post"].forEach(function(n){i[n]=function(){return i.send.apply(i,[n].concat(pa(arguments)))}}),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),c.open(e,n,!0),null==t||"accept"in a||(a.accept=t+",*/*"),c.setRequestHeader)for(var o in a)c.setRequestHeader(o,a[o]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=u&&i.on("error",u).on("load",function(n){u(null,n)}),c.send(null==r?null:r),i},i.abort=function(){return c.abort(),i},ia.rebind(i,u,"on"),2===arguments.length&&"function"==typeof t&&(e=t,t=null),null==e?i:i.get(st(e))},ia.csv=ht(",","text/csv"),ia.tsv=ht(" ","text/tab-separated-values");var Va,Xa,Za=0,Ba={},$a=null;ia.timer=function(n,t,e){if(3>arguments.length){if(2>arguments.length)t=0;else if(!isFinite(t))return;e=Date.now()}var r=Ba[n.id];r&&r.callback===n?(r.then=e,r.delay=t):Ba[n.id=++Za]=$a={callback:n,then:e,delay:t,next:$a},Va||(Xa=clearTimeout(Xa),Va=1,Ja(gt))},ia.timer.flush=function(){for(var n,t=Date.now(),e=$a;e;)n=t-e.then,e.delay||(e.flush=e.callback(n)),e=e.next;pt()};var Ja=aa.requestAnimationFrame||aa.webkitRequestAnimationFrame||aa.mozRequestAnimationFrame||aa.oRequestAnimationFrame||aa.msRequestAnimationFrame||function(n){setTimeout(n,17)},Ga=".",Ka=",",Wa=[3,3],Qa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(dt);ia.formatPrefix=function(n,t){var e=0;return n&&(0>n&&(n*=-1),t&&(n=ia.round(n,mt(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((0>=e?e+1:e-1)/3)))),Qa[8+e/3]},ia.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)},ia.format=function(n){var t=no.exec(n),e=t[1]||" ",r=t[2]||">",i=t[3]||"",u=t[4]||"",a=t[5],o=+t[6],c=t[7],f=t[8],l=t[9],s=1,h="",g=!1;switch(f&&(f=+f.substring(1)),(a||"0"===e&&"="===r)&&(a=e="0",r="=",c&&(o-=Math.floor((o-1)/4))),l){case"n":c=!0,l="g";break;case"%":s=100,h="%",l="f";break;case"p":s=100,h="%",l="r";break;case"b":case"o":case"x":case"X":u&&(u="0"+l.toLowerCase());case"c":case"d":g=!0,f=0;break;case"s":s=-1,l="r"}"#"===u&&(u=""),"r"!=l||f||(l="g"),null!=f&&("g"==l?f=Math.max(1,Math.min(21,f)):("e"==l||"f"==l)&&(f=Math.max(0,Math.min(20,f)))),l=to.get(l)||vt;var p=a&&c;return function(n){if(g&&n%1)return"";var t=0>n||0===n&&0>1/n?(n=-n,"-"):i;if(0>s){var d=ia.formatPrefix(n,f);n=d.scale(n),h=d.symbol}else n*=s;n=l(n,f),!a&&c&&(n=eo(n));var m=u.length+n.length+(p?0:t.length),v=o>m?Array(m=o-m+1).join(e):"";return p&&(n=eo(v+n)),Ga&&n.replace(".",Ga),t+=u,("<"===r?t+n+v:">"===r?v+t+n:"^"===r?v.substring(0,m>>=1)+t+n+v.substring(m):t+(p?n:v+n))+h}};var no=/(?:([^{])?([<>=^]))?([+\- ])?(#)?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,to=ia.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=ia.round(n,mt(n,t))).toFixed(Math.max(0,Math.min(20,mt(n*(1+1e-15),t))))}}),eo=lt;if(Wa){var ro=Wa.length;eo=function(n){for(var t=n.lastIndexOf("."),e=t>=0?"."+n.substring(t+1):(t=n.length,""),r=[],i=0,u=Wa[0];t>0&&u>0;)r.push(n.substring(t-=u,t+u)),u=Wa[i=(i+1)%ro];return r.reverse().join(Ka||"")+e}}ia.geo={},ia.geo.stream=function(n,t){io.hasOwnProperty(n.type)?io[n.type](n,t):yt(n,t)};var io={Feature:function(n,t){yt(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,i=e.length;i>++r;)yt(e[r].geometry,t)}},uo={Sphere:function(n,t){t.sphere()},Point:function(n,t){var e=n.coordinates;t.point(e[0],e[1])},MultiPoint:function(n,t){for(var e,r=n.coordinates,i=-1,u=r.length;u>++i;)e=r[i],t.point(e[0],e[1])},LineString:function(n,t){Mt(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;i>++r;)Mt(e[r],t,0)},Polygon:function(n,t){bt(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;i>++r;)bt(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,i=e.length;i>++r;)yt(e[r],t)}};ia.geo.area=function(n){return ao=0,ia.geo.stream(n,fo),ao};var ao,oo,co,fo={sphere:function(){ao+=4*za},point:N,lineStart:N,lineEnd:N,polygonStart:function(){oo=1,co=0,fo.lineStart=xt},polygonEnd:function(){var n=2*Math.atan2(co,oo);ao+=0>n?4*za+n:n,fo.lineStart=fo.lineEnd=fo.point=N}};ia.geo.bounds=_t(lt),ia.geo.centroid=function(n){lo=so=ho=go=po=0,ia.geo.stream(n,mo);var t;return so&&Math.abs(t=Math.sqrt(ho*ho+go*go+po*po))>Da?[Math.atan2(go,ho)*La,Math.asin(Math.max(-1,Math.min(1,po/t)))*La]:void 0};var lo,so,ho,go,po,mo={sphere:function(){2>lo&&(lo=2,so=ho=go=po=0)},point:wt,lineStart:Et,lineEnd:kt,polygonStart:function(){2>lo&&(lo=2,so=ho=go=po=0),mo.lineStart=St},polygonEnd:function(){mo.lineStart=Et}},vo=Pt(Dt,It,Xt),yo=1e15;ia.geo.projection=Kt,ia.geo.projectionMutator=Wt,(ia.geo.equirectangular=function(){return Kt(ne)}).raw=ne.invert=ne,ia.geo.rotation=function(n){function t(t){return t=n(t[0]*ja,t[1]*ja),t[0]*=La,t[1]*=La,t}return n=te(n[0]%360*ja,n[1]*ja,n.length>2?n[2]*ja:0),t.invert=function(t){return t=n.invert(t[0]*ja,t[1]*ja),t[0]*=La,t[1]*=La,t},t},ia.geo.circle=function(){function n(){var n="function"==typeof r?r.apply(this,arguments):r,t=te(-n[0]*ja,-n[1]*ja,0).invert,i=[];return e(null,null,1,{point:function(n,e){i.push(n=t(n,e)),n[0]*=La,n[1]*=La}}),{type:"Polygon",coordinates:[i]}}var t,e,r=[0,0],i=6;return n.origin=function(t){return arguments.length?(r=t,n):r},n.angle=function(r){return arguments.length?(e=ue((t=+r)*ja,i*ja),n):t},n.precision=function(r){return arguments.length?(e=ue(t*ja,(i=+r)*ja),n):i},n.angle(90)},ia.geo.distance=function(n,t){var e,r=(t[0]-n[0])*ja,i=n[1]*ja,u=t[1]*ja,a=Math.sin(r),o=Math.cos(r),c=Math.sin(i),f=Math.cos(i),l=Math.sin(u),s=Math.cos(u);return Math.atan2(Math.sqrt((e=s*a)*e+(e=f*l-c*s*o)*e),c*l+f*s*o)},ia.geo.graticule=function(){function n(){return{type:"MultiLineString",coordinates:t()}}function t(){return ia.range(Math.ceil(u/m)*m,i,m).map(h).concat(ia.range(Math.ceil(f/v)*v,c,v).map(g)).concat(ia.range(Math.ceil(r/p)*p,e,p).filter(function(n){return Math.abs(n%m)>Da}).map(l)).concat(ia.range(Math.ceil(o/d)*d,a,d).filter(function(n){return Math.abs(n%v)>Da}).map(s))}var e,r,i,u,a,o,c,f,l,s,h,g,p=10,d=p,m=90,v=360,y=2.5;return n.lines=function(){return t().map(function(n){return{type:"LineString",coordinates:n}})},n.outline=function(){return{type:"Polygon",coordinates:[h(u).concat(g(c).slice(1),h(i).reverse().slice(1),g(f).reverse().slice(1))]}},n.extent=function(t){return arguments.length?n.majorExtent(t).minorExtent(t):n.minorExtent()},n.majorExtent=function(t){return arguments.length?(u=+t[0][0],i=+t[1][0],f=+t[0][1],c=+t[1][1],u>i&&(t=u,u=i,i=t),f>c&&(t=f,f=c,c=t),n.precision(y)):[[u,f],[i,c]]},n.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),o>a&&(t=o,o=a,a=t),n.precision(y)):[[r,o],[e,a]]},n.step=function(t){return arguments.length?n.majorStep(t).minorStep(t):n.minorStep()},n.majorStep=function(t){return arguments.length?(m=+t[0],v=+t[1],n):[m,v]},n.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],n):[p,d]},n.precision=function(t){return arguments.length?(y=+t,l=oe(o,a,90),s=ce(r,e,y),h=oe(f,c,90),g=ce(u,i,y),n):y},n.majorExtent([[-180,-90+Da],[180,90-Da]]).minorExtent([[-180,-80-Da],[180,80+Da]])},ia.geo.greatArc=function(){function n(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),e||i.apply(this,arguments)]}}var t,e,r=fe,i=le;return n.distance=function(){return ia.geo.distance(t||r.apply(this,arguments),e||i.apply(this,arguments))},n.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,n):r},n.target=function(t){return arguments.length?(i=t,e="function"==typeof t?null:t,n):i},n.precision=function(){return arguments.length?n:0},n},ia.geo.interpolate=function(n,t){return se(n[0]*ja,n[1]*ja,t[0]*ja,t[1]*ja)},ia.geo.length=function(n){return Mo=0,ia.geo.stream(n,bo),Mo};var Mo,bo={sphere:N,point:N,lineStart:he,lineEnd:N,polygonStart:N,polygonEnd:N};(ia.geo.conicEqualArea=function(){return ge(pe)}).raw=pe,ia.geo.albersUsa=function(){function n(n){return t(n)(n)}function t(n){var t=n[0],e=n[1];return e>50?a:-140>t?o:21>e?c:u}var e,r,i,u=ia.geo.conicEqualArea().rotate([98,0]).center([0,38]).parallels([29.5,45.5]),a=ia.geo.conicEqualArea().rotate([160,0]).center([0,60]).parallels([55,65]),o=ia.geo.conicEqualArea().rotate([160,0]).center([0,20]).parallels([8,18]),c=ia.geo.conicEqualArea().rotate([60,0]).center([0,10]).parallels([8,18]);return n.invert=function(n){return e(n)||r(n)||i(n)||u.invert(n)},n.scale=function(t){return arguments.length?(u.scale(t),a.scale(.6*t),o.scale(t),c.scale(1.5*t),n.translate(u.translate())):u.scale()},n.translate=function(t){if(!arguments.length)return u.translate();var f=u.scale(),l=t[0],s=t[1];return u.translate(t),a.translate([l-.4*f,s+.17*f]),o.translate([l-.19*f,s+.2*f]),c.translate([l+.58*f,s+.43*f]),e=de(a,[[-180,50],[-130,72]]),r=de(o,[[-164,18],[-154,24]]),i=de(c,[[-67.5,17.5],[-65,19]]),n},n.scale(1e3)};var xo,_o,wo={point:N,lineStart:N,lineEnd:N,polygonStart:function(){_o=0,wo.lineStart=me},polygonEnd:function(){wo.lineStart=wo.lineEnd=wo.point=N,xo+=Math.abs(_o/2)}},So={point:ye,lineStart:Me,lineEnd:be,polygonStart:function(){So.lineStart=xe},polygonEnd:function(){So.point=ye,So.lineStart=Me,So.lineEnd=be}};ia.geo.path=function(){function n(n){return n&&ia.geo.stream(n,r(i.pointRadius("function"==typeof u?+u.apply(this,arguments):u))),i.result()}var t,e,r,i,u=4.5;return n.area=function(n){return xo=0,ia.geo.stream(n,r(wo)),xo},n.centroid=function(n){return lo=ho=go=po=0,ia.geo.stream(n,r(So)),po?[ho/po,go/po]:void 0},n.bounds=function(n){return _t(r)(n)},n.projection=function(e){return arguments.length?(r=(t=e)?e.stream||Se(e):lt,n):t},n.context=function(t){return arguments.length?(i=null==(e=t)?new ve:new _e(t),n):e},n.pointRadius=function(t){return arguments.length?(u="function"==typeof t?t:+t,n):u},n.projection(ia.geo.albersUsa()).context(null)},ia.geo.albers=function(){return ia.geo.conicEqualArea().parallels([29.5,45.5]).rotate([98,0]).center([0,38]).scale(1e3)};var Eo=Ee(function(n){return Math.sqrt(2/(1+n))},function(n){return 2*Math.asin(n/2)});(ia.geo.azimuthalEqualArea=function(){return Kt(Eo)}).raw=Eo;var ko=Ee(function(n){var t=Math.acos(n);return t&&t/Math.sin(t)},lt);(ia.geo.azimuthalEquidistant=function(){return Kt(ko)}).raw=ko,(ia.geo.conicConformal=function(){return ge(ke)}).raw=ke,(ia.geo.conicEquidistant=function(){return ge(Ae)}).raw=Ae;var Ao=Ee(function(n){return 1/n},Math.atan);(ia.geo.gnomonic=function(){return Kt(Ao)}).raw=Ao,qe.invert=function(n,t){return[n,2*Math.atan(Math.exp(t))-za/2]},(ia.geo.mercator=function(){return Kt(qe)}).raw=qe;var qo=Ee(function(){return 1},Math.asin);(ia.geo.orthographic=function(){return Kt(qo)}).raw=qo;var No=Ee(function(n){return 1/(1+n)},function(n){return 2*Math.atan(n)});(ia.geo.stereographic=function(){return Kt(No)}).raw=No,Ne.invert=function(n,t){return[Math.atan2(U(n),Math.cos(t)),Y(Math.sin(t)/I(n))]},(ia.geo.transverseMercator=function(){return Kt(Ne)}).raw=Ne,ia.geom={},ia.geom.hull=function(n){if(3>n.length)return[];var t,e,r,i,u,a,o,c,f,l,s=n.length,h=s-1,g=[],p=[],d=0;for(t=1;s>t;++t)n[t][1]<n[d][1]?d=t:n[t][1]==n[d][1]&&(d=n[t][0]<n[d][0]?t:d);for(t=0;s>t;++t)t!==d&&(i=n[t][1]-n[d][1],r=n[t][0]-n[d][0],g.push({angle:Math.atan2(i,r),index:t}));for(g.sort(function(n,t){return n.angle-t.angle}),f=g[0].angle,c=g[0].index,o=0,t=1;h>t;++t)e=g[t].index,f==g[t].angle?(r=n[c][0]-n[d][0],i=n[c][1]-n[d][1],u=n[e][0]-n[d][0],a=n[e][1]-n[d][1],r*r+i*i>=u*u+a*a?g[t].index=-1:(g[o].index=-1,f=g[t].angle,o=t,c=e)):(f=g[t].angle,o=t,c=e);for(p.push(d),t=0,e=0;2>t;++e)-1!==g[e].index&&(p.push(g[e].index),t++);for(l=p.length;h>e;++e)if(-1!==g[e].index){for(;!Te(p[l-2],p[l-1],g[e].index,n);)--l;p[l++]=g[e].index}var m=[];for(t=0;l>t;++t)m.push(n[p[t]]);return m},ia.geom.polygon=function(n){return n.area=function(){for(var t=0,e=n.length,r=n[e-1][1]*n[0][0]-n[e-1][0]*n[0][1];e>++t;)r+=n[t-1][1]*n[t][0]-n[t-1][0]*n[t][1];return.5*r},n.centroid=function(t){var e,r,i=-1,u=n.length,a=0,o=0,c=n[u-1];for(arguments.length||(t=-1/(6*n.area()));u>++i;)e=c,c=n[i],r=e[0]*c[1]-c[0]*e[1],a+=(e[0]+c[0])*r,o+=(e[1]+c[1])*r;return[a*t,o*t]},n.clip=function(t){for(var e,r,i,u,a,o,c=-1,f=n.length,l=n[f-1];f>++c;){for(e=t.slice(),t.length=0,u=n[c],a=e[(i=e.length)-1],r=-1;i>++r;)o=e[r],Ce(o,l,u)?(Ce(a,l,u)||t.push(ze(a,o,l,u)),t.push(o)):Ce(a,l,u)&&t.push(ze(a,o,l,u)),a=o;l=u}return t},n},ia.geom.voronoi=function(n){var t=n.map(function(){return[]}),e=1e6;return De(n,function(n){var r,i,u,a,o,c;1===n.a&&n.b>=0?(r=n.ep.r,i=n.ep.l):(r=n.ep.l,i=n.ep.r),1===n.a?(o=r?r.y:-e,u=n.c-n.b*o,c=i?i.y:e,a=n.c-n.b*c):(u=r?r.x:-e,o=n.c-n.a*u,a=i?i.x:e,c=n.c-n.a*a);var f=[u,o],l=[a,c];t[n.region.l.index].push(f,l),t[n.region.r.index].push(f,l)}),t=t.map(function(t,e){var r=n[e][0],i=n[e][1],u=t.map(function(n){return Math.atan2(n[0]-r,n[1]-i)}),a=ia.range(t.length).sort(function(n,t){return u[n]-u[t]});return a.filter(function(n,t){return!t||u[n]-u[a[t-1]]>Da}).map(function(n){return t[n]})}),t.forEach(function(t,r){var i=t.length;if(!i)return t.push([-e,-e],[-e,e],[e,e],[e,-e]);if(!(i>2)){var u=n[r],a=t[0],o=t[1],c=u[0],f=u[1],l=a[0],s=a[1],h=o[0],g=o[1],p=Math.abs(h-l),d=g-s;if(Da>Math.abs(d)){var m=s>f?-e:e;t.push([-e,m],[e,m])}else if(Da>p){var v=l>c?-e:e;t.push([v,-e],[v,e])}else{var m=(l-c)*(g-s)>(h-l)*(s-f)?e:-e,y=Math.abs(d)-p;Da>Math.abs(y)?t.push([0>d?m:-m,m]):(y>0&&(m*=-1),t.push([-e,m],[e,m]))}}}),t};var To={l:"r",r:"l"};ia.geom.delaunay=function(n){var t=n.map(function(){return[]}),e=[];return De(n,function(e){t[e.region.l.index].push(n[e.region.r.index])}),t.forEach(function(t,r){var i=n[r],u=i[0],a=i[1];t.forEach(function(n){n.angle=Math.atan2(n[0]-u,n[1]-a)}),t.sort(function(n,t){return n.angle-t.angle});for(var o=0,c=t.length-1;c>o;o++)e.push([i,t[o],t[o+1]])}),e},ia.geom.quadtree=function(n,t,e,r,i){function u(n,t,e,r,i,u){if(!isNaN(t.x)&&!isNaN(t.y))if(n.leaf){var o=n.point;o?.01>Math.abs(o.x-t.x)+Math.abs(o.y-t.y)?a(n,t,e,r,i,u):(n.point=null,a(n,o,e,r,i,u),a(n,t,e,r,i,u)):n.point=t}else a(n,t,e,r,i,u)}function a(n,t,e,r,i,a){var o=.5*(e+i),c=.5*(r+a),f=t.x>=o,l=t.y>=c,s=(l<<1)+f;n.leaf=!1,n=n.nodes[s]||(n.nodes[s]=je()),f?e=o:i=o,l?r=c:a=c,u(n,t,e,r,i,a)}var o,c=-1,f=n.length;if(5>arguments.length)if(3===arguments.length)i=e,r=t,e=t=0;else for(t=e=1/0,r=i=-1/0;f>++c;)o=n[c],t>o.x&&(t=o.x),e>o.y&&(e=o.y),o.x>r&&(r=o.x),o.y>i&&(i=o.y);var l=r-t,s=i-e;l>s?i=e+l:r=t+s;var h=je();return h.add=function(n){u(h,n,t,e,r,i)},h.visit=function(n){Le(n,h,t,e,r,i)},n.forEach(h.add),h},ia.interpolateRgb=Fe,ia.transform=function(n){var t=ua.createElementNS(ia.ns.prefix.svg,"g");return(ia.transform=function(n){t.setAttribute("transform",n);var e=t.transform.baseVal.consolidate();return new He(e?e.matrix:Co)})(n)},He.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Co={a:1,b:0,c:0,d:1,e:0,f:0};ia.interpolateNumber=Ye,ia.interpolateTransform=Ue,ia.interpolateObject=Ie,ia.interpolateString=Ve;var zo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;ia.interpolate=Xe,ia.interpolators=[Ie,function(n,t){return Array.isArray(t)&&Be(n,t)},function(n,t){return("string"==typeof n||"string"==typeof t)&&Ve(n+"",t+"")},function(n,t){return("string"==typeof t?Ia.has(t)||/^(#|rgb\(|hsl\()/.test(t):t instanceof L)&&Fe(n,t)},function(n,t){return!isNaN(n=+n)&&!isNaN(t=+t)&&Ye(n,t)}],ia.interpolateArray=Be;var Do=function(){return lt},jo=ia.map({linear:Do,poly:nr,quad:function(){return Ke},cubic:function(){return We},sin:function(){return tr},exp:function(){return er},circle:function(){return rr},elastic:ir,back:ur,bounce:function(){return ar}}),Lo=ia.map({"in":lt,out:Je,"in-out":Ge,"out-in":function(n){return Ge(Je(n))}});ia.ease=function(n){var t=n.indexOf("-"),e=t>=0?n.substring(0,t):n,r=t>=0?n.substring(t+1):"in";return e=jo.get(e)||Do,r=Lo.get(r)||lt,$e(r(e.apply(null,Array.prototype.slice.call(arguments,1))))},ia.interpolateHcl=or,ia.interpolateHsl=cr,ia.interpolateLab=fr,ia.interpolateRound=lr,ia.layout={},ia.layout.bundle=function(){return function(n){for(var t=[],e=-1,r=n.length;r>++e;)t.push(gr(n[e]));
return t}},ia.layout.chord=function(){function n(){var n,f,s,h,g,p={},d=[],m=ia.range(u),v=[];for(e=[],r=[],n=0,h=-1;u>++h;){for(f=0,g=-1;u>++g;)f+=i[h][g];d.push(f),v.push(ia.range(u)),n+=f}for(a&&m.sort(function(n,t){return a(d[n],d[t])}),o&&v.forEach(function(n,t){n.sort(function(n,e){return o(i[t][n],i[t][e])})}),n=(2*za-l*u)/n,f=0,h=-1;u>++h;){for(s=f,g=-1;u>++g;){var y=m[h],M=v[y][g],b=i[y][M],x=f,_=f+=b*n;p[y+"-"+M]={index:y,subindex:M,startAngle:x,endAngle:_,value:b}}r[y]={index:y,startAngle:s,endAngle:f,value:(f-s)/n},f+=l}for(h=-1;u>++h;)for(g=h-1;u>++g;){var w=p[h+"-"+g],S=p[g+"-"+h];(w.value||S.value)&&e.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}c&&t()}function t(){e.sort(function(n,t){return c((n.source.value+n.target.value)/2,(t.source.value+t.target.value)/2)})}var e,r,i,u,a,o,c,f={},l=0;return f.matrix=function(n){return arguments.length?(u=(i=n)&&i.length,e=r=null,f):i},f.padding=function(n){return arguments.length?(l=n,e=r=null,f):l},f.sortGroups=function(n){return arguments.length?(a=n,e=r=null,f):a},f.sortSubgroups=function(n){return arguments.length?(o=n,e=null,f):o},f.sortChords=function(n){return arguments.length?(c=n,e&&t(),f):c},f.chords=function(){return e||n(),e},f.groups=function(){return r||n(),r},f},ia.layout.force=function(){function n(n){return function(t,e,r,i){if(t.point!==n){var u=t.cx-n.x,a=t.cy-n.y,o=1/Math.sqrt(u*u+a*a);if(d>(i-e)*o){var c=t.charge*o*o;return n.px-=u*c,n.py-=a*c,!0}if(t.point&&isFinite(o)){var c=t.pointCharge*o*o;n.px-=u*c,n.py-=a*c}}return!t.charge}}function t(n){n.px=ia.event.x,n.py=ia.event.y,o.resume()}var e,r,i,u,a,o={},c=ia.dispatch("start","tick","end"),f=[1,1],l=.9,s=Fo,h=Ho,g=-30,p=.1,d=.8,m=[],v=[];return o.tick=function(){if(.005>(r*=.99))return c.end({type:"end",alpha:r=0}),!0;var t,e,o,s,h,d,y,M,b,x=m.length,_=v.length;for(e=0;_>e;++e)o=v[e],s=o.source,h=o.target,M=h.x-s.x,b=h.y-s.y,(d=M*M+b*b)&&(d=r*u[e]*((d=Math.sqrt(d))-i[e])/d,M*=d,b*=d,h.x-=M*(y=s.weight/(h.weight+s.weight)),h.y-=b*y,s.x+=M*(y=1-y),s.y+=b*y);if((y=r*p)&&(M=f[0]/2,b=f[1]/2,e=-1,y))for(;x>++e;)o=m[e],o.x+=(M-o.x)*y,o.y+=(b-o.y)*y;if(g)for(br(t=ia.geom.quadtree(m),r,a),e=-1;x>++e;)(o=m[e]).fixed||t.visit(n(o));for(e=-1;x>++e;)o=m[e],o.fixed?(o.x=o.px,o.y=o.py):(o.x-=(o.px-(o.px=o.x))*l,o.y-=(o.py-(o.py=o.y))*l);c.tick({type:"tick",alpha:r})},o.nodes=function(n){return arguments.length?(m=n,o):m},o.links=function(n){return arguments.length?(v=n,o):v},o.size=function(n){return arguments.length?(f=n,o):f},o.linkDistance=function(n){return arguments.length?(s="function"==typeof n?n:+n,o):s},o.distance=o.linkDistance,o.linkStrength=function(n){return arguments.length?(h="function"==typeof n?n:+n,o):h},o.friction=function(n){return arguments.length?(l=+n,o):l},o.charge=function(n){return arguments.length?(g="function"==typeof n?n:+n,o):g},o.gravity=function(n){return arguments.length?(p=+n,o):p},o.theta=function(n){return arguments.length?(d=+n,o):d},o.alpha=function(n){return arguments.length?(n=+n,r?r=n>0?n:0:n>0&&(c.start({type:"start",alpha:r=n}),ia.timer(o.tick)),o):r},o.start=function(){function n(n,r){for(var i,u=t(e),a=-1,o=u.length;o>++a;)if(!isNaN(i=u[a][n]))return i;return Math.random()*r}function t(){if(!c){for(c=[],r=0;p>r;++r)c[r]=[];for(r=0;d>r;++r){var n=v[r];c[n.source.index].push(n.target),c[n.target.index].push(n.source)}}return c[e]}var e,r,c,l,p=m.length,d=v.length,y=f[0],M=f[1];for(e=0;p>e;++e)(l=m[e]).index=e,l.weight=0;for(e=0;d>e;++e)l=v[e],"number"==typeof l.source&&(l.source=m[l.source]),"number"==typeof l.target&&(l.target=m[l.target]),++l.source.weight,++l.target.weight;for(e=0;p>e;++e)l=m[e],isNaN(l.x)&&(l.x=n("x",y)),isNaN(l.y)&&(l.y=n("y",M)),isNaN(l.px)&&(l.px=l.x),isNaN(l.py)&&(l.py=l.y);if(i=[],"function"==typeof s)for(e=0;d>e;++e)i[e]=+s.call(this,v[e],e);else for(e=0;d>e;++e)i[e]=s;if(u=[],"function"==typeof h)for(e=0;d>e;++e)u[e]=+h.call(this,v[e],e);else for(e=0;d>e;++e)u[e]=h;if(a=[],"function"==typeof g)for(e=0;p>e;++e)a[e]=+g.call(this,m[e],e);else for(e=0;p>e;++e)a[e]=g;return o.resume()},o.resume=function(){return o.alpha(.1)},o.stop=function(){return o.alpha(0)},o.drag=function(){return e||(e=ia.behavior.drag().origin(lt).on("dragstart.force",mr).on("drag.force",t).on("dragend.force",vr)),arguments.length?(this.on("mouseover.force",yr).on("mouseout.force",Mr).call(e),void 0):e},ia.rebind(o,c,"on")};var Fo=20,Ho=1;ia.layout.hierarchy=function(){function n(t,a,o){var c=i.call(e,t,a);if(t.depth=a,o.push(t),c&&(f=c.length)){for(var f,l,s=-1,h=t.children=[],g=0,p=a+1;f>++s;)l=n(c[s],p,o),l.parent=t,h.push(l),g+=l.value;r&&h.sort(r),u&&(t.value=g)}else u&&(t.value=+u.call(e,t,a)||0);return t}function t(n,r){var i=n.children,a=0;if(i&&(o=i.length))for(var o,c=-1,f=r+1;o>++c;)a+=t(i[c],f);else u&&(a=+u.call(e,n,r)||0);return u&&(n.value=a),a}function e(t){var e=[];return n(t,0,e),e}var r=Sr,i=_r,u=wr;return e.sort=function(n){return arguments.length?(r=n,e):r},e.children=function(n){return arguments.length?(i=n,e):i},e.value=function(n){return arguments.length?(u=n,e):u},e.revalue=function(n){return t(n,0),n},e},ia.layout.partition=function(){function n(t,e,r,i){var u=t.children;if(t.x=e,t.y=t.depth*i,t.dx=r,t.dy=i,u&&(a=u.length)){var a,o,c,f=-1;for(r=t.value?r/t.value:0;a>++f;)n(o=u[f],e,c=o.value*r,i),e+=c}}function t(n){var e=n.children,r=0;if(e&&(i=e.length))for(var i,u=-1;i>++u;)r=Math.max(r,t(e[u]));return 1+r}function e(e,u){var a=r.call(this,e,u);return n(a[0],0,i[0],i[1]/t(a[0])),a}var r=ia.layout.hierarchy(),i=[1,1];return e.size=function(n){return arguments.length?(i=n,e):i},xr(e,r)},ia.layout.pie=function(){function n(u){var a=u.map(function(e,r){return+t.call(n,e,r)}),o=+("function"==typeof r?r.apply(this,arguments):r),c=(("function"==typeof i?i.apply(this,arguments):i)-r)/ia.sum(a),f=ia.range(u.length);null!=e&&f.sort(e===Po?function(n,t){return a[t]-a[n]}:function(n,t){return e(u[n],u[t])});var l=[];return f.forEach(function(n){var t;l[n]={data:u[n],value:t=a[n],startAngle:o,endAngle:o+=t*c}}),l}var t=Number,e=Po,r=0,i=2*za;return n.value=function(e){return arguments.length?(t=e,n):t},n.sort=function(t){return arguments.length?(e=t,n):e},n.startAngle=function(t){return arguments.length?(r=t,n):r},n.endAngle=function(t){return arguments.length?(i=t,n):i},n};var Po={};ia.layout.stack=function(){function n(o,c){var f=o.map(function(e,r){return t.call(n,e,r)}),l=f.map(function(t){return t.map(function(t,e){return[u.call(n,t,e),a.call(n,t,e)]})}),s=e.call(n,l,c);f=ia.permute(f,s),l=ia.permute(l,s);var h,g,p,d=r.call(n,l,c),m=f.length,v=f[0].length;for(g=0;v>g;++g)for(i.call(n,f[0][g],p=d[g],l[0][g][1]),h=1;m>h;++h)i.call(n,f[h][g],p+=l[h-1][g][1],l[h][g][1]);return o}var t=lt,e=Nr,r=Tr,i=qr,u=kr,a=Ar;return n.values=function(e){return arguments.length?(t=e,n):t},n.order=function(t){return arguments.length?(e="function"==typeof t?t:Ro.get(t)||Nr,n):e},n.offset=function(t){return arguments.length?(r="function"==typeof t?t:Oo.get(t)||Tr,n):r},n.x=function(t){return arguments.length?(u=t,n):u},n.y=function(t){return arguments.length?(a=t,n):a},n.out=function(t){return arguments.length?(i=t,n):i},n};var Ro=ia.map({"inside-out":function(n){var t,e,r=n.length,i=n.map(Cr),u=n.map(zr),a=ia.range(r).sort(function(n,t){return i[n]-i[t]}),o=0,c=0,f=[],l=[];for(t=0;r>t;++t)e=a[t],c>o?(o+=u[e],f.push(e)):(c+=u[e],l.push(e));return l.reverse().concat(f)},reverse:function(n){return ia.range(n.length).reverse()},"default":Nr}),Oo=ia.map({silhouette:function(n){var t,e,r,i=n.length,u=n[0].length,a=[],o=0,c=[];for(e=0;u>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];r>o&&(o=r),a.push(r)}for(e=0;u>e;++e)c[e]=(o-a[e])/2;return c},wiggle:function(n){var t,e,r,i,u,a,o,c,f,l=n.length,s=n[0],h=s.length,g=[];for(g[0]=c=f=0,e=1;h>e;++e){for(t=0,i=0;l>t;++t)i+=n[t][e][1];for(t=0,u=0,o=s[e][0]-s[e-1][0];l>t;++t){for(r=0,a=(n[t][e][1]-n[t][e-1][1])/(2*o);t>r;++r)a+=(n[r][e][1]-n[r][e-1][1])/o;u+=a*n[t][e][1]}g[e]=c-=i?u/i*o:0,f>c&&(f=c)}for(e=0;h>e;++e)g[e]-=f;return g},expand:function(n){var t,e,r,i=n.length,u=n[0].length,a=1/i,o=[];for(e=0;u>e;++e){for(t=0,r=0;i>t;t++)r+=n[t][e][1];if(r)for(t=0;i>t;t++)n[t][e][1]/=r;else for(t=0;i>t;t++)n[t][e][1]=a}for(e=0;u>e;++e)o[e]=0;return o},zero:Tr});ia.layout.histogram=function(){function n(n,u){for(var a,o,c=[],f=n.map(e,this),l=r.call(this,f,u),s=i.call(this,l,f,u),u=-1,h=f.length,g=s.length-1,p=t?1:1/h;g>++u;)a=c[u]=[],a.dx=s[u+1]-(a.x=s[u]),a.y=0;if(g>0)for(u=-1;h>++u;)o=f[u],o>=l[0]&&l[1]>=o&&(a=c[ia.bisect(s,o,1,g)-1],a.y+=p,a.push(n[u]));return c}var t=!0,e=Number,r=Fr,i=jr;return n.value=function(t){return arguments.length?(e=t,n):e},n.range=function(t){return arguments.length?(r=ft(t),n):r},n.bins=function(t){return arguments.length?(i="number"==typeof t?function(n){return Lr(n,t)}:ft(t),n):i},n.frequency=function(e){return arguments.length?(t=!!e,n):t},n},ia.layout.tree=function(){function n(n,i){function u(n,t){var r=n.children,i=n._tree;if(r&&(a=r.length)){for(var a,c,f,l=r[0],s=l,h=-1;a>++h;)f=r[h],u(f,c),s=o(f,c,s),c=f;Xr(n);var g=.5*(l._tree.prelim+f._tree.prelim);t?(i.prelim=t._tree.prelim+e(n,t),i.mod=i.prelim-g):i.prelim=g}else t&&(i.prelim=t._tree.prelim+e(n,t))}function a(n,t){n.x=n._tree.prelim+t;var e=n.children;if(e&&(r=e.length)){var r,i=-1;for(t+=n._tree.mod;r>++i;)a(e[i],t)}}function o(n,t,r){if(t){for(var i,u=n,a=n,o=t,c=n.parent.children[0],f=u._tree.mod,l=a._tree.mod,s=o._tree.mod,h=c._tree.mod;o=Rr(o),u=Pr(u),o&&u;)c=Pr(c),a=Rr(a),a._tree.ancestor=n,i=o._tree.prelim+s-u._tree.prelim-f+e(o,u),i>0&&(Zr(Br(o,n,r),n,i),f+=i,l+=i),s+=o._tree.mod,f+=u._tree.mod,h+=c._tree.mod,l+=a._tree.mod;o&&!Rr(a)&&(a._tree.thread=o,a._tree.mod+=s-l),u&&!Pr(c)&&(c._tree.thread=u,c._tree.mod+=f-h,r=n)}return r}var c=t.call(this,n,i),f=c[0];Vr(f,function(n,t){n._tree={ancestor:n,prelim:0,mod:0,change:0,shift:0,number:t?t._tree.number+1:0}}),u(f),a(f,-f._tree.prelim);var l=Or(f,Ur),s=Or(f,Yr),h=Or(f,Ir),g=l.x-e(l,s)/2,p=s.x+e(s,l)/2,d=h.depth||1;return Vr(f,function(n){n.x=(n.x-g)/(p-g)*r[0],n.y=n.depth/d*r[1],delete n._tree}),c}var t=ia.layout.hierarchy().sort(null).value(null),e=Hr,r=[1,1];return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(r=t,n):r},xr(n,t)},ia.layout.pack=function(){function n(n,i){var u=t.call(this,n,i),a=u[0];a.x=0,a.y=0,Vr(a,function(n){n.r=Math.sqrt(n.value)}),Vr(a,Wr);var o=r[0],c=r[1],f=Math.max(2*a.r/o,2*a.r/c);if(e>0){var l=e*f/2;Vr(a,function(n){n.r+=l}),Vr(a,Wr),Vr(a,function(n){n.r-=l}),f=Math.max(2*a.r/o,2*a.r/c)}return ti(a,o/2,c/2,1/f),u}var t=ia.layout.hierarchy().sort($r),e=0,r=[1,1];return n.size=function(t){return arguments.length?(r=t,n):r},n.padding=function(t){return arguments.length?(e=+t,n):e},xr(n,t)},ia.layout.cluster=function(){function n(n,i){var u,a=t.call(this,n,i),o=a[0],c=0;Vr(o,function(n){var t=n.children;t&&t.length?(n.x=ii(t),n.y=ri(t)):(n.x=u?c+=e(n,u):0,n.y=0,u=n)});var f=ui(o),l=ai(o),s=f.x-e(f,l)/2,h=l.x+e(l,f)/2;return Vr(o,function(n){n.x=(n.x-s)/(h-s)*r[0],n.y=(1-(o.y?n.y/o.y:1))*r[1]}),a}var t=ia.layout.hierarchy().sort(null).value(null),e=Hr,r=[1,1];return n.separation=function(t){return arguments.length?(e=t,n):e},n.size=function(t){return arguments.length?(r=t,n):r},xr(n,t)},ia.layout.treemap=function(){function n(n,t){for(var e,r,i=-1,u=n.length;u>++i;)r=(e=n[i]).value*(0>t?0:t),e.area=isNaN(r)||0>=r?0:r}function t(e){var u=e.children;if(u&&u.length){var a,o,c,f=s(e),l=[],h=u.slice(),p=1/0,d="slice"===g?f.dx:"dice"===g?f.dy:"slice-dice"===g?1&e.depth?f.dy:f.dx:Math.min(f.dx,f.dy);for(n(h,f.dx*f.dy/e.value),l.area=0;(c=h.length)>0;)l.push(a=h[c-1]),l.area+=a.area,"squarify"!==g||p>=(o=r(l,d))?(h.pop(),p=o):(l.area-=l.pop().area,i(l,d,f,!1),d=Math.min(f.dx,f.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,d,f,!0),l.length=l.area=0),u.forEach(t)}}function e(t){var r=t.children;if(r&&r.length){var u,a=s(t),o=r.slice(),c=[];for(n(o,a.dx*a.dy/t.value),c.area=0;u=o.pop();)c.push(u),c.area+=u.area,null!=u.z&&(i(c,u.z?a.dx:a.dy,a,!o.length),c.length=c.area=0);r.forEach(e)}}function r(n,t){for(var e,r=n.area,i=0,u=1/0,a=-1,o=n.length;o>++a;)(e=n[a].area)&&(u>e&&(u=e),e>i&&(i=e));return r*=r,t*=t,r?Math.max(t*i*p/r,r/(t*u*p)):1/0}function i(n,t,e,r){var i,u=-1,a=n.length,o=e.x,f=e.y,l=t?c(n.area/t):0;if(t==e.dx){for((r||l>e.dy)&&(l=e.dy);a>++u;)i=n[u],i.x=o,i.y=f,i.dy=l,o+=i.dx=Math.min(e.x+e.dx-o,l?c(i.area/l):0);i.z=!0,i.dx+=e.x+e.dx-o,e.y+=l,e.dy-=l}else{for((r||l>e.dx)&&(l=e.dx);a>++u;)i=n[u],i.x=o,i.y=f,i.dx=l,f+=i.dy=Math.min(e.y+e.dy-f,l?c(i.area/l):0);i.z=!1,i.dy+=e.y+e.dy-f,e.x+=l,e.dx-=l}}function u(r){var i=a||o(r),u=i[0];return u.x=0,u.y=0,u.dx=f[0],u.dy=f[1],a&&o.revalue(u),n([u],u.dx*u.dy/u.value),(a?e:t)(u),h&&(a=i),i}var a,o=ia.layout.hierarchy(),c=Math.round,f=[1,1],l=null,s=oi,h=!1,g="squarify",p=.5*(1+Math.sqrt(5));return u.size=function(n){return arguments.length?(f=n,u):f},u.padding=function(n){function t(t){var e=n.call(u,t,t.depth);return null==e?oi(t):ci(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return ci(t,n)}if(!arguments.length)return l;var r;return s=null==(l=n)?oi:"function"==(r=typeof n)?t:"number"===r?(n=[n,n,n,n],e):e,u},u.round=function(n){return arguments.length?(c=n?Math.round:Number,u):c!=Number},u.sticky=function(n){return arguments.length?(h=n,a=null,u):h},u.ratio=function(n){return arguments.length?(p=n,u):p},u.mode=function(n){return arguments.length?(g=n+"",u):g},xr(u,o)},ia.svg={},ia.svg.line=function(){return fi(lt)};var Yo=ia.map({linear:hi,"linear-closed":gi,"step-before":pi,"step-after":di,basis:xi,"basis-open":_i,"basis-closed":wi,bundle:Si,cardinal:yi,"cardinal-open":mi,"cardinal-closed":vi,monotone:Ti});Yo.forEach(function(n,t){t.key=n,t.closed=/-closed$/.test(n)});var Uo=[0,2/3,1/3,0],Io=[0,1/3,2/3,0],Vo=[0,1/6,2/3,1/6];ia.layout.voronoi=function(){function n(n){var e,u,a,o=[],c=ft(r),f=ft(i),l=n.length;for(a=0;l>a;++a)o.push([+c.call(this,u=n[a],a),+f.call(this,u,a)]);for(e=ia.geom.voronoi(o),a=0;l>a;++a)e[a].data=n[a];if(t)for(a=0;l>a;++a)t(e[a]);return e}var t,e=null,r=li,i=si;return n.x=function(t){return arguments.length?(r=t,n):r},n.y=function(t){return arguments.length?(i=t,n):i},n.size=function(r){if(!arguments.length)return e;if(null==r)t=null;else{var i=+r[0],u=+r[1];t=ia.geom.polygon([[0,0],[0,u],[i,u],[i,0]]).clip}return n},n},ia.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return n+t*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var n=ia.random.normal.apply(ia,arguments);return function(){return Math.exp(n())}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t/n}}},ia.scale={},ia.scale.linear=function(){return Fi([0,1],[0,1],Xe,!1)},ia.scale.log=function(){return Ui(ia.scale.linear().domain([0,Math.LN10]),10,Ii,Vi)};var Xo=ia.format(".0e");ia.scale.pow=function(){return $i(ia.scale.linear(),1)},ia.scale.sqrt=function(){return ia.scale.pow().exponent(.5)},ia.scale.ordinal=function(){return Gi([],{t:"range",a:[[]]})},ia.scale.category10=function(){return ia.scale.ordinal().range(Zo)},ia.scale.category20=function(){return ia.scale.ordinal().range(Bo)},ia.scale.category20b=function(){return ia.scale.ordinal().range($o)},ia.scale.category20c=function(){return ia.scale.ordinal().range(Jo)};var Zo=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Bo=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],$o=["#393b79","#5254a3","#6b6ecf","#9c9ede","#637939","#8ca252","#b5cf6b","#cedb9c","#8c6d31","#bd9e39","#e7ba52","#e7cb94","#843c39","#ad494a","#d6616b","#e7969c","#7b4173","#a55194","#ce6dbd","#de9ed6"],Jo=["#3182bd","#6baed6","#9ecae1","#c6dbef","#e6550d","#fd8d3c","#fdae6b","#fdd0a2","#31a354","#74c476","#a1d99b","#c7e9c0","#756bb1","#9e9ac8","#bcbddc","#dadaeb","#636363","#969696","#bdbdbd","#d9d9d9"];ia.scale.quantile=function(){return Ki([],[])},ia.scale.quantize=function(){return Wi(0,1,[0,1])},ia.scale.threshold=function(){return Qi([.5],[0,1])},ia.scale.identity=function(){return nu([0,1])},ia.svg.arc=function(){function n(){var n=t.apply(this,arguments),u=e.apply(this,arguments),a=r.apply(this,arguments)+Go,o=i.apply(this,arguments)+Go,c=(a>o&&(c=a,a=o,o=c),o-a),f=za>c?"0":"1",l=Math.cos(a),s=Math.sin(a),h=Math.cos(o),g=Math.sin(o);return c>=Ko?n?"M0,"+u+"A"+u+","+u+" 0 1,1 0,"+-u+"A"+u+","+u+" 0 1,1 0,"+u+"M0,"+n+"A"+n+","+n+" 0 1,0 0,"+-n+"A"+n+","+n+" 0 1,0 0,"+n+"Z":"M0,"+u+"A"+u+","+u+" 0 1,1 0,"+-u+"A"+u+","+u+" 0 1,1 0,"+u+"Z":n?"M"+u*l+","+u*s+"A"+u+","+u+" 0 "+f+",1 "+u*h+","+u*g+"L"+n*h+","+n*g+"A"+n+","+n+" 0 "+f+",0 "+n*l+","+n*s+"Z":"M"+u*l+","+u*s+"A"+u+","+u+" 0 "+f+",1 "+u*h+","+u*g+"L0,0"+"Z"}var t=tu,e=eu,r=ru,i=iu;return n.innerRadius=function(e){return arguments.length?(t=ft(e),n):t},n.outerRadius=function(t){return arguments.length?(e=ft(t),n):e},n.startAngle=function(t){return arguments.length?(r=ft(t),n):r},n.endAngle=function(t){return arguments.length?(i=ft(t),n):i},n.centroid=function(){var n=(t.apply(this,arguments)+e.apply(this,arguments))/2,u=(r.apply(this,arguments)+i.apply(this,arguments))/2+Go;return[Math.cos(u)*n,Math.sin(u)*n]},n};var Go=-za/2,Ko=2*za-1e-6;ia.svg.line.radial=function(){var n=fi(uu);return n.radius=n.x,delete n.x,n.angle=n.y,delete n.y,n},pi.reverse=di,di.reverse=pi,ia.svg.area=function(){return au(lt)},ia.svg.area.radial=function(){var n=au(uu);return n.radius=n.x,delete n.x,n.innerRadius=n.x0,delete n.x0,n.outerRadius=n.x1,delete n.x1,n.angle=n.y,delete n.y,n.startAngle=n.y0,delete n.y0,n.endAngle=n.y1,delete n.y1,n},ia.svg.chord=function(){function n(n,o){var c=t(this,u,n,o),f=t(this,a,n,o);return"M"+c.p0+r(c.r,c.p1,c.a1-c.a0)+(e(c,f)?i(c.r,c.p1,c.r,c.p0):i(c.r,c.p1,f.r,f.p0)+r(f.r,f.p1,f.a1-f.a0)+i(f.r,f.p1,c.r,c.p0))+"Z"}function t(n,t,e,r){var i=t.call(n,e,r),u=o.call(n,i,r),a=c.call(n,i,r)+Go,l=f.call(n,i,r)+Go;return{r:u,a0:a,a1:l,p0:[u*Math.cos(a),u*Math.sin(a)],p1:[u*Math.cos(l),u*Math.sin(l)]}}function e(n,t){return n.a0==t.a0&&n.a1==t.a1}function r(n,t,e){return"A"+n+","+n+" 0 "+ +(e>za)+",1 "+t}function i(n,t,e,r){return"Q 0,0 "+r}var u=fe,a=le,o=ou,c=ru,f=iu;return n.radius=function(t){return arguments.length?(o=ft(t),n):o},n.source=function(t){return arguments.length?(u=ft(t),n):u},n.target=function(t){return arguments.length?(a=ft(t),n):a},n.startAngle=function(t){return arguments.length?(c=ft(t),n):c},n.endAngle=function(t){return arguments.length?(f=ft(t),n):f},n},ia.svg.diagonal=function(){function n(n,i){var u=t.call(this,n,i),a=e.call(this,n,i),o=(u.y+a.y)/2,c=[u,{x:u.x,y:o},{x:a.x,y:o},a];return c=c.map(r),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var t=fe,e=le,r=cu;return n.source=function(e){return arguments.length?(t=ft(e),n):t},n.target=function(t){return arguments.length?(e=ft(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},ia.svg.diagonal.radial=function(){var n=ia.svg.diagonal(),t=cu,e=n.projection;return n.projection=function(n){return arguments.length?e(fu(t=n)):t},n},ia.svg.symbol=function(){function n(n,r){return(Wo.get(t.call(this,n,r))||hu)(e.call(this,n,r))}var t=su,e=lu;return n.type=function(e){return arguments.length?(t=ft(e),n):t},n.size=function(t){return arguments.length?(e=ft(t),n):e},n};var Wo=ia.map({circle:hu,cross:function(n){var t=Math.sqrt(n/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(n){var t=Math.sqrt(n/(2*tc)),e=t*tc;return"M0,"+-t+"L"+e+",0"+" 0,"+t+" "+-e+",0"+"Z"},square:function(n){var t=Math.sqrt(n)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(n){var t=Math.sqrt(n/nc),e=t*nc/2;return"M0,"+e+"L"+t+","+-e+" "+-t+","+-e+"Z"},"triangle-up":function(n){var t=Math.sqrt(n/nc),e=t*nc/2;return"M0,"+-e+"L"+t+","+e+" "+-t+","+e+"Z"}});ia.svg.symbolTypes=Wo.keys();var Qo,nc=Math.sqrt(3),tc=Math.tan(30*ja),ec=[],rc=0,ic={ease:Qe,delay:0,duration:250};ec.call=_a.call,ec.empty=_a.empty,ec.node=_a.node,ia.transition=function(n){return arguments.length?Qo?n.transition():n:Aa.transition()},ia.transition.prototype=ec,ec.select=function(n){var t,e,r,i=this.id,u=[];"function"!=typeof n&&(n=m(n));for(var a=-1,o=this.length;o>++a;){u.push(t=[]);for(var c=this[a],f=-1,l=c.length;l>++f;)(r=c[f])&&(e=n.call(r,r.__data__,f))?("__data__"in r&&(e.__data__=r.__data__),mu(e,f,i,r.__transition__[i]),t.push(e)):t.push(null)}return gu(u,i)},ec.selectAll=function(n){var t,e,r,i,u,a=this.id,o=[];"function"!=typeof n&&(n=v(n));for(var c=-1,f=this.length;f>++c;)for(var l=this[c],s=-1,h=l.length;h>++s;)if(r=l[s]){u=r.__transition__[a],e=n.call(r,r.__data__,s),o.push(t=[]);for(var g=-1,p=e.length;p>++g;)mu(i=e[g],g,a,u),t.push(i)}return gu(o,a)},ec.filter=function(n){var t,e,r,i=[];"function"!=typeof n&&(n=A(n));for(var u=0,a=this.length;a>u;u++){i.push(t=[]);for(var e=this[u],o=0,c=e.length;c>o;o++)(r=e[o])&&n.call(r,r.__data__,o)&&t.push(r)}return gu(i,this.id,this.time).ease(this.ease())},ec.tween=function(n,t){var e=this.id;return 2>arguments.length?this.node().__transition__[e].tween.get(n):D(this,null==t?function(t){t.__transition__[e].tween.remove(n)}:function(r){r.__transition__[e].tween.set(n,t)})},ec.attr=function(n,t){function e(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}if(2>arguments.length){for(t in n)this.attr(t,n[t]);return this}var i=Ze(n),u=ia.ns.qualify(n);return pu(this,"attr."+n,t,function(n){function t(){var t,e=this.getAttribute(u);return e!==n&&(t=i(e,n),function(n){this.setAttribute(u,t(n))})}function a(){var t,e=this.getAttributeNS(u.space,u.local);return e!==n&&(t=i(e,n),function(n){this.setAttributeNS(u.space,u.local,t(n))})}return null==n?u.local?r:e:(n+="",u.local?a:t)})},ec.attrTween=function(n,t){function e(n,e){var r=t.call(this,n,e,this.getAttribute(i));return r&&function(n){this.setAttribute(i,r(n))}}function r(n,e){var r=t.call(this,n,e,this.getAttributeNS(i.space,i.local));return r&&function(n){this.setAttributeNS(i.space,i.local,r(n))}}var i=ia.ns.qualify(n);return this.tween("attr."+n,i.local?r:e)},ec.style=function(n,t,e){function r(){this.style.removeProperty(n)}var i=arguments.length;if(3>i){if("string"!=typeof n){2>i&&(t="");for(e in n)this.style(e,n[e],t);return this}e=""}var u=Ze(n);return pu(this,"style."+n,t,function(t){function i(){var r,i=aa.getComputedStyle(this,null).getPropertyValue(n);return i!==t&&(r=u(i,t),function(t){this.style.setProperty(n,r(t),e)})}return null==t?r:(t+="",i)})},ec.styleTween=function(n,t,e){return 3>arguments.length&&(e=""),this.tween("style."+n,function(r,i){var u=t.call(this,r,i,aa.getComputedStyle(this,null).getPropertyValue(n));return u&&function(t){this.style.setProperty(n,u(t),e)}})},ec.text=function(n){return pu(this,"text",n,du)},ec.remove=function(){return this.each("end.transition",function(){var n;!this.__transition__&&(n=this.parentNode)&&n.removeChild(this)})},ec.ease=function(n){var t=this.id;return 1>arguments.length?this.node().__transition__[t].ease:("function"!=typeof n&&(n=ia.ease.apply(ia,arguments)),D(this,function(e){e.__transition__[t].ease=n}))},ec.delay=function(n){var t=this.id;return D(this,"function"==typeof n?function(e,r,i){e.__transition__[t].delay=0|n.call(e,e.__data__,r,i)}:(n|=0,function(e){e.__transition__[t].delay=n}))},ec.duration=function(n){var t=this.id;return D(this,"function"==typeof n?function(e,r,i){e.__transition__[t].duration=Math.max(1,0|n.call(e,e.__data__,r,i))}:(n=Math.max(1,0|n),function(e){e.__transition__[t].duration=n}))},ec.each=function(n,t){var e=this.id;if(2>arguments.length){var r=ic,i=Qo;Qo=e,D(this,function(t,r,i){ic=t.__transition__[e],n.call(t,t.__data__,r,i)}),ic=r,Qo=i}else D(this,function(r){r.__transition__[e].event.on(n,t)});return this},ec.transition=function(){for(var n,t,e,r,i=this.id,u=++rc,a=[],o=0,c=this.length;c>o;o++){a.push(n=[]);for(var t=this[o],f=0,l=t.length;l>f;f++)(e=t[f])&&(r=Object.create(e.__transition__[i]),r.delay+=r.duration,mu(e,f,u,r)),n.push(e)}return gu(a,u)},ia.svg.axis=function(){function n(n){n.each(function(){var n,s=ia.select(this),h=null==f?e.ticks?e.ticks.apply(e,c):e.domain():f,g=null==t?e.tickFormat?e.tickFormat.apply(e,c):String:t,p=Mu(e,h,l),d=s.selectAll(".tick.minor").data(p,String),m=d.enter().insert("line",".tick").attr("class","tick minor").style("opacity",1e-6),v=ia.transition(d.exit()).style("opacity",1e-6).remove(),y=ia.transition(d).style("opacity",1),M=s.selectAll(".tick.major").data(h,String),b=M.enter().insert("g","path").attr("class","tick major").style("opacity",1e-6),x=ia.transition(M.exit()).style("opacity",1e-6).remove(),_=ia.transition(M).style("opacity",1),w=zi(e),S=s.selectAll(".domain").data([0]),E=(S.enter().append("path").attr("class","domain"),ia.transition(S)),k=e.copy(),A=this.__chart__||k;this.__chart__=k,b.append("line"),b.append("text");var q=b.select("line"),N=_.select("line"),T=M.select("text").text(g),C=b.select("text"),z=_.select("text");switch(r){case"bottom":n=vu,m.attr("y2",u),y.attr("x2",0).attr("y2",u),q.attr("y2",i),C.attr("y",Math.max(i,0)+o),N.attr("x2",0).attr("y2",i),z.attr("x",0).attr("y",Math.max(i,0)+o),T.attr("dy",".71em").style("text-anchor","middle"),E.attr("d","M"+w[0]+","+a+"V0H"+w[1]+"V"+a);break;case"top":n=vu,m.attr("y2",-u),y.attr("x2",0).attr("y2",-u),q.attr("y2",-i),C.attr("y",-(Math.max(i,0)+o)),N.attr("x2",0).attr("y2",-i),z.attr("x",0).attr("y",-(Math.max(i,0)+o)),T.attr("dy","0em").style("text-anchor","middle"),E.attr("d","M"+w[0]+","+-a+"V0H"+w[1]+"V"+-a);break;case"left":n=yu,m.attr("x2",-u),y.attr("x2",-u).attr("y2",0),q.attr("x2",-i),C.attr("x",-(Math.max(i,0)+o)),N.attr("x2",-i).attr("y2",0),z.attr("x",-(Math.max(i,0)+o)).attr("y",0),T.attr("dy",".32em").style("text-anchor","end"),E.attr("d","M"+-a+","+w[0]+"H0V"+w[1]+"H"+-a);break;case"right":n=yu,m.attr("x2",u),y.attr("x2",u).attr("y2",0),q.attr("x2",i),C.attr("x",Math.max(i,0)+o),N.attr("x2",i).attr("y2",0),z.attr("x",Math.max(i,0)+o).attr("y",0),T.attr("dy",".32em").style("text-anchor","start"),E.attr("d","M"+a+","+w[0]+"H0V"+w[1]+"H"+a)}if(e.ticks)b.call(n,A),_.call(n,k),x.call(n,k),m.call(n,A),y.call(n,k),v.call(n,k);else{var D=k.rangeBand()/2,j=function(n){return k(n)+D};b.call(n,j),_.call(n,j)}})}var t,e=ia.scale.linear(),r=uc,i=6,u=6,a=6,o=3,c=[10],f=null,l=0;return n.scale=function(t){return arguments.length?(e=t,n):e},n.orient=function(t){return arguments.length?(r=t in ac?t+"":uc,n):r},n.ticks=function(){return arguments.length?(c=arguments,n):c},n.tickValues=function(t){return arguments.length?(f=t,n):f},n.tickFormat=function(e){return arguments.length?(t=e,n):t},n.tickSize=function(t,e){if(!arguments.length)return i;var r=arguments.length-1;return i=+t,u=r>1?+e:i,a=r>0?+arguments[r]:i,n},n.tickPadding=function(t){return arguments.length?(o=+t,n):o},n.tickSubdivide=function(t){return arguments.length?(l=+t,n):l},n};var uc="bottom",ac={top:1,right:1,bottom:1,left:1};ia.svg.brush=function(){function n(u){u.each(function(){var u,a=ia.select(this),f=a.selectAll(".background").data([0]),s=a.selectAll(".extent").data([0]),h=a.selectAll(".resize").data(l,String);a.style("pointer-events","all").on("mousedown.brush",i).on("touchstart.brush",i),f.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),s.enter().append("rect").attr("class","extent").style("cursor","move"),h.enter().append("g").attr("class",function(n){return"resize "+n}).style("cursor",function(n){return oc[n]}).append("rect").attr("x",function(n){return/[ew]$/.test(n)?-3:null}).attr("y",function(n){return/^[ns]/.test(n)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),h.style("display",n.empty()?"none":null),h.exit().remove(),o&&(u=zi(o),f.attr("x",u[0]).attr("width",u[1]-u[0]),e(a)),c&&(u=zi(c),f.attr("y",u[0]).attr("height",u[1]-u[0]),r(a)),t(a)})}function t(n){n.selectAll(".resize").attr("transform",function(n){return"translate("+h[+/e$/.test(n)][0]+","+h[+/^s/.test(n)][1]+")"})}function e(n){n.select(".extent").attr("x",h[0][0]),n.selectAll(".extent,.n>rect,.s>rect").attr("width",h[1][0]-h[0][0])}function r(n){n.select(".extent").attr("y",h[0][1]),n.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1][1]-h[0][1])}function i(){function i(){var n=ia.event.changedTouches;return n?ia.touches(y,n)[0]:ia.mouse(y)}function l(){32==ia.event.keyCode&&(E||(m=null,k[0]-=h[1][0],k[1]-=h[1][1],E=2),f())}function s(){32==ia.event.keyCode&&2==E&&(k[0]+=h[1][0],k[1]+=h[1][1],E=0,f())}function g(){var n=i(),u=!1;v&&(n[0]+=v[0],n[1]+=v[1]),E||(ia.event.altKey?(m||(m=[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]),k[0]=h[+(n[0]<m[0])][0],k[1]=h[+(n[1]<m[1])][1]):m=null),w&&p(n,o,0)&&(e(x),u=!0),S&&p(n,c,1)&&(r(x),u=!0),u&&(t(x),b({type:"brush",mode:E?"move":"resize"}))}function p(n,t,e){var r,i,a=zi(t),o=a[0],c=a[1],f=k[e],l=h[1][e]-h[0][e];return E&&(o-=f,c-=l+f),r=Math.max(o,Math.min(c,n[e])),E?i=(r+=f)+l:(m&&(f=Math.max(o,Math.min(c,2*m[e]-r))),r>f?(i=r,r=f):i=f),h[0][e]!==r||h[1][e]!==i?(u=null,h[0][e]=r,h[1][e]=i,!0):void 0}function d(){g(),x.style("pointer-events","all").selectAll(".resize").style("display",n.empty()?"none":null),ia.select("body").style("cursor",null),A.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),b({type:"brushend"}),f()}var m,v,y=this,M=ia.select(ia.event.target),b=a.of(y,arguments),x=ia.select(y),_=M.datum(),w=!/^(n|s)$/.test(_)&&o,S=!/^(e|w)$/.test(_)&&c,E=M.classed("extent"),k=i(),A=ia.select(aa).on("mousemove.brush",g).on("mouseup.brush",d).on("touchmove.brush",g).on("touchend.brush",d).on("keydown.brush",l).on("keyup.brush",s);if(E)k[0]=h[0][0]-k[0],k[1]=h[0][1]-k[1];else if(_){var q=+/w$/.test(_),N=+/^n/.test(_);v=[h[1-q][0]-k[0],h[1-N][1]-k[1]],k[0]=h[q][0],k[1]=h[N][1]}else ia.event.altKey&&(m=k.slice());x.style("pointer-events","none").selectAll(".resize").style("display",null),ia.select("body").style("cursor",M.style("cursor")),b({type:"brushstart"}),g(),f()}var u,a=s(n,"brushstart","brush","brushend"),o=null,c=null,l=cc[0],h=[[0,0],[0,0]];return n.x=function(t){return arguments.length?(o=t,l=cc[!o<<1|!c],n):o},n.y=function(t){return arguments.length?(c=t,l=cc[!o<<1|!c],n):c},n.extent=function(t){var e,r,i,a,f;return arguments.length?(u=[[0,0],[0,0]],o&&(e=t[0],r=t[1],c&&(e=e[0],r=r[0]),u[0][0]=e,u[1][0]=r,o.invert&&(e=o(e),r=o(r)),e>r&&(f=e,e=r,r=f),h[0][0]=0|e,h[1][0]=0|r),c&&(i=t[0],a=t[1],o&&(i=i[1],a=a[1]),u[0][1]=i,u[1][1]=a,c.invert&&(i=c(i),a=c(a)),i>a&&(f=i,i=a,a=f),h[0][1]=0|i,h[1][1]=0|a),n):(t=u||h,o&&(e=t[0][0],r=t[1][0],u||(e=h[0][0],r=h[1][0],o.invert&&(e=o.invert(e),r=o.invert(r)),e>r&&(f=e,e=r,r=f))),c&&(i=t[0][1],a=t[1][1],u||(i=h[0][1],a=h[1][1],c.invert&&(i=c.invert(i),a=c.invert(a)),i>a&&(f=i,i=a,a=f))),o&&c?[[e,i],[r,a]]:o?[e,r]:c&&[i,a])},n.clear=function(){return u=null,h[0][0]=h[0][1]=h[1][0]=h[1][1]=0,n},n.empty=function(){return o&&h[0][0]===h[1][0]||c&&h[0][1]===h[1][1]},ia.rebind(n,a,"on")};var oc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},cc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];ia.time={};var fc=Date,lc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];bu.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()
},setDate:function(){sc.setUTCDate.apply(this._,arguments)},setDay:function(){sc.setUTCDay.apply(this._,arguments)},setFullYear:function(){sc.setUTCFullYear.apply(this._,arguments)},setHours:function(){sc.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){sc.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){sc.setUTCMinutes.apply(this._,arguments)},setMonth:function(){sc.setUTCMonth.apply(this._,arguments)},setSeconds:function(){sc.setUTCSeconds.apply(this._,arguments)},setTime:function(){sc.setTime.apply(this._,arguments)}};var sc=Date.prototype,hc="%a %b %e %X %Y",gc="%m/%d/%Y",pc="%H:%M:%S",dc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],mc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],vc=["January","February","March","April","May","June","July","August","September","October","November","December"],yc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];ia.time.year=xu(function(n){return n=ia.time.day(n),n.setMonth(0,1),n},function(n,t){n.setFullYear(n.getFullYear()+t)},function(n){return n.getFullYear()}),ia.time.years=ia.time.year.range,ia.time.years.utc=ia.time.year.utc.range,ia.time.day=xu(function(n){var t=new fc(1970,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t},function(n,t){n.setDate(n.getDate()+t)},function(n){return n.getDate()-1}),ia.time.days=ia.time.day.range,ia.time.days.utc=ia.time.day.utc.range,ia.time.dayOfYear=function(n){var t=ia.time.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},lc.forEach(function(n,t){n=n.toLowerCase(),t=7-t;var e=ia.time[n]=xu(function(n){return(n=ia.time.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n},function(n,t){n.setDate(n.getDate()+7*Math.floor(t))},function(n){var e=ia.time.year(n).getDay();return Math.floor((ia.time.dayOfYear(n)+(e+t)%7)/7)-(e!==t)});ia.time[n+"s"]=e.range,ia.time[n+"s"].utc=e.utc.range,ia.time[n+"OfYear"]=function(n){var e=ia.time.year(n).getDay();return Math.floor((ia.time.dayOfYear(n)+(e+t)%7)/7)}}),ia.time.week=ia.time.sunday,ia.time.weeks=ia.time.sunday.range,ia.time.weeks.utc=ia.time.sunday.utc.range,ia.time.weekOfYear=ia.time.sundayOfYear,ia.time.format=function(n){function t(t){for(var r,i,u,a=[],o=-1,c=0;e>++o;)37===n.charCodeAt(o)&&(a.push(n.substring(c,o)),null!=(i=Ec[r=n.charAt(++o)])&&(r=n.charAt(++o)),(u=kc[r])&&(r=u(t,null==i?"e"===r?" ":"0":i)),a.push(r),c=o+1);return a.push(n.substring(c,o)),a.join("")}var e=n.length;return t.parse=function(t){var e={y:1900,m:0,d:1,H:0,M:0,S:0,L:0},r=wu(e,n,t,0);if(r!=t.length)return null;"p"in e&&(e.H=e.H%12+12*e.p);var i=new fc;return i.setFullYear(e.y,e.m,e.d),i.setHours(e.H,e.M,e.S,e.L),i},t.toString=function(){return n},t};var Mc=Su(dc),bc=Su(mc),xc=Su(vc),_c=Eu(vc),wc=Su(yc),Sc=Eu(yc),Ec={"-":"",_:" ",0:"0"},kc={a:function(n){return mc[n.getDay()]},A:function(n){return dc[n.getDay()]},b:function(n){return yc[n.getMonth()]},B:function(n){return vc[n.getMonth()]},c:ia.time.format(hc),d:function(n,t){return ku(n.getDate(),t,2)},e:function(n,t){return ku(n.getDate(),t,2)},H:function(n,t){return ku(n.getHours(),t,2)},I:function(n,t){return ku(n.getHours()%12||12,t,2)},j:function(n,t){return ku(1+ia.time.dayOfYear(n),t,3)},L:function(n,t){return ku(n.getMilliseconds(),t,3)},m:function(n,t){return ku(n.getMonth()+1,t,2)},M:function(n,t){return ku(n.getMinutes(),t,2)},p:function(n){return n.getHours()>=12?"PM":"AM"},S:function(n,t){return ku(n.getSeconds(),t,2)},U:function(n,t){return ku(ia.time.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return ku(ia.time.mondayOfYear(n),t,2)},x:ia.time.format(gc),X:ia.time.format(pc),y:function(n,t){return ku(n.getFullYear()%100,t,2)},Y:function(n,t){return ku(n.getFullYear()%1e4,t,4)},Z:Vu,"%":function(){return"%"}},Ac={a:Au,A:qu,b:Nu,B:Tu,c:Cu,d:Pu,e:Pu,H:Ru,I:Ru,L:Uu,m:Hu,M:Ou,p:Iu,S:Yu,x:zu,X:Du,y:Lu,Y:ju},qc=/^\s*\d+/,Nc=ia.map({am:0,pm:1});ia.time.format.utc=function(n){function t(n){try{fc=bu;var t=new fc;return t._=n,e(t)}finally{fc=Date}}var e=ia.time.format(n);return t.parse=function(n){try{fc=bu;var t=e.parse(n);return t&&t._}finally{fc=Date}},t.toString=e.toString,t};var Tc=ia.time.format.utc("%Y-%m-%dT%H:%M:%S.%LZ");ia.time.format.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Xu:Tc,Xu.parse=function(n){var t=new Date(n);return isNaN(t)?null:t},Xu.toString=Tc.toString,ia.time.second=xu(function(n){return new fc(1e3*Math.floor(n/1e3))},function(n,t){n.setTime(n.getTime()+1e3*Math.floor(t))},function(n){return n.getSeconds()}),ia.time.seconds=ia.time.second.range,ia.time.seconds.utc=ia.time.second.utc.range,ia.time.minute=xu(function(n){return new fc(6e4*Math.floor(n/6e4))},function(n,t){n.setTime(n.getTime()+6e4*Math.floor(t))},function(n){return n.getMinutes()}),ia.time.minutes=ia.time.minute.range,ia.time.minutes.utc=ia.time.minute.utc.range,ia.time.hour=xu(function(n){var t=n.getTimezoneOffset()/60;return new fc(36e5*(Math.floor(n/36e5-t)+t))},function(n,t){n.setTime(n.getTime()+36e5*Math.floor(t))},function(n){return n.getHours()}),ia.time.hours=ia.time.hour.range,ia.time.hours.utc=ia.time.hour.utc.range,ia.time.month=xu(function(n){return n=ia.time.day(n),n.setDate(1),n},function(n,t){n.setMonth(n.getMonth()+t)},function(n){return n.getMonth()}),ia.time.months=ia.time.month.range,ia.time.months.utc=ia.time.month.utc.range;var Cc=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],zc=[[ia.time.second,1],[ia.time.second,5],[ia.time.second,15],[ia.time.second,30],[ia.time.minute,1],[ia.time.minute,5],[ia.time.minute,15],[ia.time.minute,30],[ia.time.hour,1],[ia.time.hour,3],[ia.time.hour,6],[ia.time.hour,12],[ia.time.day,1],[ia.time.day,2],[ia.time.week,1],[ia.time.month,1],[ia.time.month,3],[ia.time.year,1]],Dc=[[ia.time.format("%Y"),Dt],[ia.time.format("%B"),function(n){return n.getMonth()}],[ia.time.format("%b %d"),function(n){return 1!=n.getDate()}],[ia.time.format("%a %d"),function(n){return n.getDay()&&1!=n.getDate()}],[ia.time.format("%I %p"),function(n){return n.getHours()}],[ia.time.format("%I:%M"),function(n){return n.getMinutes()}],[ia.time.format(":%S"),function(n){return n.getSeconds()}],[ia.time.format(".%L"),function(n){return n.getMilliseconds()}]],jc=ia.scale.linear(),Lc=Ju(Dc);zc.year=function(n,t){return jc.domain(n.map(Ku)).ticks(t).map(Gu)},ia.time.scale=function(){return Zu(ia.scale.linear(),zc,Lc)};var Fc=zc.map(function(n){return[n[0].utc,n[1]]}),Hc=[[ia.time.format.utc("%Y"),Dt],[ia.time.format.utc("%B"),function(n){return n.getUTCMonth()}],[ia.time.format.utc("%b %d"),function(n){return 1!=n.getUTCDate()}],[ia.time.format.utc("%a %d"),function(n){return n.getUTCDay()&&1!=n.getUTCDate()}],[ia.time.format.utc("%I %p"),function(n){return n.getUTCHours()}],[ia.time.format.utc("%I:%M"),function(n){return n.getUTCMinutes()}],[ia.time.format.utc(":%S"),function(n){return n.getUTCSeconds()}],[ia.time.format.utc(".%L"),function(n){return n.getUTCMilliseconds()}]],Pc=Ju(Hc);return Fc.year=function(n,t){return jc.domain(n.map(Qu)).ticks(t).map(Wu)},ia.time.scale.utc=function(){return Zu(ia.scale.linear(),Fc,Pc)},ia.text=function(){return ia.xhr.apply(ia,arguments).response(na)},ia.json=function(n,t){return ia.xhr(n,"application/json",t).response(ta)},ia.html=function(n,t){return ia.xhr(n,"text/html",t).response(ea)},ia.xml=function(){return ia.xhr.apply(ia,arguments).response(ra)},ia}();