This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
script.js
5 lines (5 loc) · 149 KB
/
script.js
1
2
3
4
5
!function(){function a(a,b){return b>a?-1:a>b?1:a>=b?0:0/0}function b(a){return null!=a&&!isNaN(a)}function c(a){return{left:function(b,c,d,e){for(arguments.length<3&&(d=0),arguments.length<4&&(e=b.length);e>d;){var f=d+e>>>1;a(b[f],c)<0?d=f+1:e=f}return d},right:function(b,c,d,e){for(arguments.length<3&&(d=0),arguments.length<4&&(e=b.length);e>d;){var f=d+e>>>1;a(b[f],c)>0?e=f:d=f+1}return d}}}function d(a){return a.length}function e(a){for(var b=1;a*b%1;)b*=10;return b}function f(a,b){try{for(var c in b)Object.defineProperty(a.prototype,c,{value:b[c],enumerable:!1})}catch(d){a.prototype=b}}function g(){}function h(a){return mh+a in this}function i(a){return a=mh+a,a in this&&delete this[a]}function j(){var a=[];return this.forEach(function(b){a.push(b)}),a}function k(){var a=0;for(var b in this)b.charCodeAt(0)===nh&&++a;return a}function l(){for(var a in this)if(a.charCodeAt(0)===nh)return!1;return!0}function m(){}function n(a,b,c){return function(){var d=c.apply(b,arguments);return d===b?a:d}}function o(a,b){if(b in a)return b;b=b.charAt(0).toUpperCase()+b.substring(1);for(var c=0,d=oh.length;d>c;++c){var e=oh[c]+b;if(e in a)return e}}function p(){}function q(){}function r(a){function b(){for(var b,d=c,e=-1,f=d.length;++e<f;)(b=d[e].on)&&b.apply(this,arguments);return a}var c=[],d=new g;return b.on=function(b,e){var f,g=d.get(b);return arguments.length<2?g&&g.on:(g&&(g.on=null,c=c.slice(0,f=c.indexOf(g)).concat(c.slice(f+1)),d.remove(b)),e&&c.push(d.set(b,{on:e})),a)},b}function s(){Zg.event.preventDefault()}function t(){for(var a,b=Zg.event;a=b.sourceEvent;)b=a;return b}function u(a){for(var b=new q,c=0,d=arguments.length;++c<d;)b[arguments[c]]=r(b);return b.of=function(c,d){return function(e){try{var f=e.sourceEvent=Zg.event;e.target=a,Zg.event=e,b[e.type].apply(c,d)}finally{Zg.event=f}}},b}function v(a){return qh(a,vh),a}function w(a){return"function"==typeof a?a:function(){return rh(a,this)}}function x(a){return"function"==typeof a?a:function(){return sh(a,this)}}function y(a,b){function c(){this.removeAttribute(a)}function d(){this.removeAttributeNS(a.space,a.local)}function e(){this.setAttribute(a,b)}function f(){this.setAttributeNS(a.space,a.local,b)}function g(){var c=b.apply(this,arguments);null==c?this.removeAttribute(a):this.setAttribute(a,c)}function h(){var c=b.apply(this,arguments);null==c?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,c)}return a=Zg.ns.qualify(a),null==b?a.local?d:c:"function"==typeof b?a.local?h:g:a.local?f:e}function z(a){return a.trim().replace(/\s+/g," ")}function A(a){return new RegExp("(?:^|\\s+)"+Zg.requote(a)+"(?:\\s+|$)","g")}function B(a){return a.trim().split(/^|\s+/)}function C(a,b){function c(){for(var c=-1;++c<e;)a[c](this,b)}function d(){for(var c=-1,d=b.apply(this,arguments);++c<e;)a[c](this,d)}a=B(a).map(D);var e=a.length;return"function"==typeof b?d:c}function D(a){var b=A(a);return function(c,d){if(e=c.classList)return d?e.add(a):e.remove(a);var e=c.getAttribute("class")||"";d?(b.lastIndex=0,b.test(e)||c.setAttribute("class",z(e+" "+a))):c.setAttribute("class",z(e.replace(b," ")))}}function E(a,b,c){function d(){this.style.removeProperty(a)}function e(){this.style.setProperty(a,b,c)}function f(){var d=b.apply(this,arguments);null==d?this.style.removeProperty(a):this.style.setProperty(a,d,c)}return null==b?d:"function"==typeof b?f:e}function F(a,b){function c(){delete this[a]}function d(){this[a]=b}function e(){var c=b.apply(this,arguments);null==c?delete this[a]:this[a]=c}return null==b?c:"function"==typeof b?e:d}function G(a){return"function"==typeof a?a:(a=Zg.ns.qualify(a)).local?function(){return this.ownerDocument.createElementNS(a.space,a.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,a)}}function H(a){return{__data__:a}}function I(a){return function(){return uh(this,a)}}function J(b){return arguments.length||(b=a),function(a,c){return a&&c?b(a.__data__,c.__data__):!a-!c}}function K(a,b){for(var c=0,d=a.length;d>c;c++)for(var e,f=a[c],g=0,h=f.length;h>g;g++)(e=f[g])&&b(e,g,c);return a}function L(a){return qh(a,xh),a}function M(a){var b,c;return function(d,e,f){var g,h=a[f].update,i=h.length;for(f!=c&&(c=f,b=0),e>=b&&(b=e+1);!(g=h[b])&&++b<i;);return g}}function N(){var a=this.__transition__;a&&++a.active}function O(a,b,c){function d(){var b=this[g];b&&(this.removeEventListener(a,b,b.$),delete this[g])}function e(){var e=i(b,_g(arguments));d.call(this),this.addEventListener(a,this[g]=e,e.$=c),e._=b}function f(){var b,c=new RegExp("^__on([^.]+)"+Zg.requote(a)+"$");for(var d in this)if(b=d.match(c)){var e=this[d];this.removeEventListener(b[1],e,e.$),delete this[d]}}var g="__on"+a,h=a.indexOf("."),i=P;h>0&&(a=a.substring(0,h));var j=zh.get(a);return j&&(a=j,i=Q),h?b?e:d:b?p:f}function P(a,b){return function(c){var d=Zg.event;Zg.event=c,b[0]=this.__data__;try{a.apply(this,b)}finally{Zg.event=d}}}function Q(a,b){var c=P(a,b);return function(a){var b=this,d=a.relatedTarget;d&&(d===b||8&d.compareDocumentPosition(b))||c.call(b,a)}}function R(){var a=".dragsuppress-"+ ++Bh,b="click"+a,c=Zg.select(ch).on("touchmove"+a,s).on("dragstart"+a,s).on("selectstart"+a,s);if(Ah){var d=bh.style,e=d[Ah];d[Ah]="none"}return function(f){function g(){c.on(b,null)}c.on(a,null),Ah&&(d[Ah]=e),f&&(c.on(b,function(){s(),g()},!0),setTimeout(g,0))}}function S(a,b){b.changedTouches&&(b=b.changedTouches[0]);var c=a.ownerSVGElement||a;if(c.createSVGPoint){var d=c.createSVGPoint();return d.x=b.clientX,d.y=b.clientY,d=d.matrixTransform(a.getScreenCTM().inverse()),[d.x,d.y]}var e=a.getBoundingClientRect();return[b.clientX-e.left-a.clientLeft,b.clientY-e.top-a.clientTop]}function T(){return Zg.event.changedTouches[0].identifier}function U(){return Zg.event.target}function V(){return ch}function W(a){return a>0?1:0>a?-1:0}function X(a,b,c){return(b[0]-a[0])*(c[1]-a[1])-(b[1]-a[1])*(c[0]-a[0])}function Y(a){return a>1?0:-1>a?Ch:Math.acos(a)}function Z(a){return a>1?Eh:-1>a?-Eh:Math.asin(a)}function $(a){return((a=Math.exp(a))-1/a)/2}function _(a){return((a=Math.exp(a))+1/a)/2}function ab(a){return((a=Math.exp(2*a))-1)/(a+1)}function bb(a){return(a=Math.sin(a/2))*a}function cb(){}function db(a,b,c){return new eb(a,b,c)}function eb(a,b,c){this.h=a,this.s=b,this.l=c}function fb(a,b,c){function d(a){return a>360?a-=360:0>a&&(a+=360),60>a?f+(g-f)*a/60:180>a?g:240>a?f+(g-f)*(240-a)/60:f}function e(a){return Math.round(255*d(a))}var f,g;return a=isNaN(a)?0:(a%=360)<0?a+360:a,b=isNaN(b)?0:0>b?0:b>1?1:b,c=0>c?0:c>1?1:c,g=.5>=c?c*(1+b):c+b-c*b,f=2*c-g,sb(e(a+120),e(a),e(a-120))}function gb(a,b,c){return new hb(a,b,c)}function hb(a,b,c){this.h=a,this.c=b,this.l=c}function ib(a,b,c){return isNaN(a)&&(a=0),isNaN(b)&&(b=0),jb(c,Math.cos(a*=Hh)*b,Math.sin(a)*b)}function jb(a,b,c){return new kb(a,b,c)}function kb(a,b,c){this.l=a,this.a=b,this.b=c}function lb(a,b,c){var d=(a+16)/116,e=d+b/500,f=d-c/200;return e=nb(e)*Sh,d=nb(d)*Th,f=nb(f)*Uh,sb(pb(3.2404542*e-1.5371385*d-.4985314*f),pb(-.969266*e+1.8760108*d+.041556*f),pb(.0556434*e-.2040259*d+1.0572252*f))}function mb(a,b,c){return a>0?gb(Math.atan2(c,b)*Ih,Math.sqrt(b*b+c*c),a):gb(0/0,0/0,a)}function nb(a){return a>.206893034?a*a*a:(a-4/29)/7.787037}function ob(a){return a>.008856?Math.pow(a,1/3):7.787037*a+4/29}function pb(a){return Math.round(255*(.00304>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055))}function qb(a){return sb(a>>16,a>>8&255,255&a)}function rb(a){return qb(a)+""}function sb(a,b,c){return new tb(a,b,c)}function tb(a,b,c){this.r=a,this.g=b,this.b=c}function ub(a){return 16>a?"0"+Math.max(0,a).toString(16):Math.min(255,a).toString(16)}function vb(a,b,c){var d,e,f,g=0,h=0,i=0;if(d=/([a-z]+)\((.*)\)/i.exec(a))switch(e=d[2].split(","),d[1]){case"hsl":return c(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100);case"rgb":return b(zb(e[0]),zb(e[1]),zb(e[2]))}return(f=Xh.get(a))?b(f.r,f.g,f.b):(null==a||"#"!==a.charAt(0)||isNaN(f=parseInt(a.substring(1),16))||(4===a.length?(g=(3840&f)>>4,g=g>>4|g,h=240&f,h=h>>4|h,i=15&f,i=i<<4|i):7===a.length&&(g=(16711680&f)>>16,h=(65280&f)>>8,i=255&f)),b(g,h,i))}function wb(a,b,c){var d,e,f=Math.min(a/=255,b/=255,c/=255),g=Math.max(a,b,c),h=g-f,i=(g+f)/2;return h?(e=.5>i?h/(g+f):h/(2-g-f),d=a==g?(b-c)/h+(c>b?6:0):b==g?(c-a)/h+2:(a-b)/h+4,d*=60):(d=0/0,e=i>0&&1>i?0:d),db(d,e,i)}function xb(a,b,c){a=yb(a),b=yb(b),c=yb(c);var d=ob((.4124564*a+.3575761*b+.1804375*c)/Sh),e=ob((.2126729*a+.7151522*b+.072175*c)/Th),f=ob((.0193339*a+.119192*b+.9503041*c)/Uh);return jb(116*e-16,500*(d-e),200*(e-f))}function yb(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function zb(a){var b=parseFloat(a);return"%"===a.charAt(a.length-1)?Math.round(2.55*b):b}function Ab(a){return"function"==typeof a?a:function(){return a}}function Bb(a){return a}function Cb(a){return function(b,c,d){return 2===arguments.length&&"function"==typeof c&&(d=c,c=null),Db(b,c,a,d)}}function Db(a,b,c,d){function e(){var a,b=i.status;if(!b&&i.responseText||b>=200&&300>b||304===b){try{a=c.call(f,i)}catch(d){return void g.error.call(f,d)}g.load.call(f,a)}else g.error.call(f,i)}var f={},g=Zg.dispatch("beforesend","progress","load","error"),h={},i=new XMLHttpRequest,j=null;return!ch.XDomainRequest||"withCredentials"in i||!/^(http(s)?:)?\/\//.test(a)||(i=new XDomainRequest),"onload"in i?i.onload=i.onerror=e:i.onreadystatechange=function(){i.readyState>3&&e()},i.onprogress=function(a){var b=Zg.event;Zg.event=a;try{g.progress.call(f,i)}finally{Zg.event=b}},f.header=function(a,b){return a=(a+"").toLowerCase(),arguments.length<2?h[a]:(null==b?delete h[a]:h[a]=b+"",f)},f.mimeType=function(a){return arguments.length?(b=null==a?null:a+"",f):b},f.responseType=function(a){return arguments.length?(j=a,f):j},f.response=function(a){return c=a,f},["get","post"].forEach(function(a){f[a]=function(){return f.send.apply(f,[a].concat(_g(arguments)))}}),f.send=function(c,d,e){if(2===arguments.length&&"function"==typeof d&&(e=d,d=null),i.open(c,a,!0),null==b||"accept"in h||(h.accept=b+",*/*"),i.setRequestHeader)for(var k in h)i.setRequestHeader(k,h[k]);return null!=b&&i.overrideMimeType&&i.overrideMimeType(b),null!=j&&(i.responseType=j),null!=e&&f.on("error",e).on("load",function(a){e(null,a)}),g.beforesend.call(f,i),i.send(null==d?null:d),f},f.abort=function(){return i.abort(),f},Zg.rebind(f,g,"on"),null==d?f:f.get(Eb(d))}function Eb(a){return 1===a.length?function(b,c){a(null==b?c:null)}:a}function Fb(){var a=Gb(),b=Hb()-a;b>24?(isFinite(b)&&(clearTimeout(_h),_h=setTimeout(Fb,b)),$h=0):($h=1,bi(Fb))}function Gb(){var a=Date.now();for(ai=Yh;ai;)a>=ai.t&&(ai.f=ai.c(a-ai.t)),ai=ai.n;return a}function Hb(){for(var a,b=Yh,c=1/0;b;)b.f?b=a?a.n=b.n:Yh=b.n:(b.t<c&&(c=b.t),b=(a=b).n);return Zh=a,c}function Ib(a,b){return b-(a?Math.ceil(Math.log(a)/Math.LN10):1)}function Jb(a,b){var c=Math.pow(10,3*lh(8-b));return{scale:b>8?function(a){return a/c}:function(a){return a*c},symbol:a}}function Kb(a){var b=a.decimal,c=a.thousands,d=a.grouping,e=a.currency,f=d?function(a){for(var b=a.length,e=[],f=0,g=d[0];b>0&&g>0;)e.push(a.substring(b-=g,b+g)),g=d[f=(f+1)%d.length];return e.reverse().join(c)}:Bb;return function(a){var c=di.exec(a),d=c[1]||" ",g=c[2]||">",h=c[3]||"",i=c[4]||"",j=c[5],k=+c[6],l=c[7],m=c[8],n=c[9],o=1,p="",q="",r=!1;switch(m&&(m=+m.substring(1)),(j||"0"===d&&"="===g)&&(j=d="0",g="=",l&&(k-=Math.floor((k-1)/4))),n){case"n":l=!0,n="g";break;case"%":o=100,q="%",n="f";break;case"p":o=100,q="%",n="r";break;case"b":case"o":case"x":case"X":"#"===i&&(p="0"+n.toLowerCase());case"c":case"d":r=!0,m=0;break;case"s":o=-1,n="r"}"$"===i&&(p=e[0],q=e[1]),"r"!=n||m||(n="g"),null!=m&&("g"==n?m=Math.max(1,Math.min(21,m)):("e"==n||"f"==n)&&(m=Math.max(0,Math.min(20,m)))),n=ei.get(n)||Lb;var s=j&&l;return function(a){var c=q;if(r&&a%1)return"";var e=0>a||0===a&&0>1/a?(a=-a,"-"):h;if(0>o){var i=Zg.formatPrefix(a,m);a=i.scale(a),c=i.symbol+q}else a*=o;a=n(a,m);var t=a.lastIndexOf("."),u=0>t?a:a.substring(0,t),v=0>t?"":b+a.substring(t+1);!j&&l&&(u=f(u));var w=p.length+u.length+v.length+(s?0:e.length),x=k>w?new Array(w=k-w+1).join(d):"";return s&&(u=f(x+u)),e+=p,a=u+v,("<"===g?e+a+x:">"===g?x+e+a:"^"===g?x.substring(0,w>>=1)+e+a+x.substring(w):e+(s?a:x+a))+c}}}function Lb(a){return a+""}function Mb(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Nb(a,b,c){function d(b){var c=a(b),d=f(c,1);return d-b>b-c?c:d}function e(c){return b(c=a(new gi(c-1)),1),c}function f(a,c){return b(a=new gi(+a),c),a}function g(a,d,f){var g=e(a),h=[];if(f>1)for(;d>g;)c(g)%f||h.push(new Date(+g)),b(g,1);else for(;d>g;)h.push(new Date(+g)),b(g,1);return h}function h(a,b,c){try{gi=Mb;var d=new Mb;return d._=a,g(d,b,c)}finally{gi=Date}}a.floor=a,a.round=d,a.ceil=e,a.offset=f,a.range=g;var i=a.utc=Ob(a);return i.floor=i,i.round=Ob(d),i.ceil=Ob(e),i.offset=Ob(f),i.range=h,a}function Ob(a){return function(b,c){try{gi=Mb;var d=new Mb;return d._=b,a(d,c)._}finally{gi=Date}}}function Pb(a){function b(a){function b(b){for(var c,e,f,g=[],h=-1,i=0;++h<d;)37===a.charCodeAt(h)&&(g.push(a.substring(i,h)),null!=(e=ii[c=a.charAt(++h)])&&(c=a.charAt(++h)),(f=C[c])&&(c=f(b,null==e?"e"===c?" ":"0":e)),g.push(c),i=h+1);return g.push(a.substring(i,h)),g.join("")}var d=a.length;return b.parse=function(b){var d={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},e=c(d,a,b,0);if(e!=b.length)return null;"p"in d&&(d.H=d.H%12+12*d.p);var f=null!=d.Z&&gi!==Mb,g=new(f?Mb:gi);return"j"in d?g.setFullYear(d.y,0,d.j):"w"in d&&("W"in d||"U"in d)?(g.setFullYear(d.y,0,1),g.setFullYear(d.y,0,"W"in d?(d.w+6)%7+7*d.W-(g.getDay()+5)%7:d.w+7*d.U-(g.getDay()+6)%7)):g.setFullYear(d.y,d.m,d.d),g.setHours(d.H+Math.floor(d.Z/100),d.M+d.Z%100,d.S,d.L),f?g._:g},b.toString=function(){return a},b}function c(a,b,c,d){for(var e,f,g,h=0,i=b.length,j=c.length;i>h;){if(d>=j)return-1;if(e=b.charCodeAt(h++),37===e){if(g=b.charAt(h++),f=D[g in ii?b.charAt(h++):g],!f||(d=f(a,c,d))<0)return-1}else if(e!=c.charCodeAt(d++))return-1}return d}function d(a,b,c){w.lastIndex=0;var d=w.exec(b.substring(c));return d?(a.w=x.get(d[0].toLowerCase()),c+d[0].length):-1}function e(a,b,c){u.lastIndex=0;var d=u.exec(b.substring(c));return d?(a.w=v.get(d[0].toLowerCase()),c+d[0].length):-1}function f(a,b,c){A.lastIndex=0;var d=A.exec(b.substring(c));return d?(a.m=B.get(d[0].toLowerCase()),c+d[0].length):-1}function g(a,b,c){y.lastIndex=0;var d=y.exec(b.substring(c));return d?(a.m=z.get(d[0].toLowerCase()),c+d[0].length):-1}function h(a,b,d){return c(a,C.c.toString(),b,d)}function i(a,b,d){return c(a,C.x.toString(),b,d)}function j(a,b,d){return c(a,C.X.toString(),b,d)}function k(a,b,c){var d=t.get(b.substring(c,c+=2).toLowerCase());return null==d?-1:(a.p=d,c)}var l=a.dateTime,m=a.date,n=a.time,o=a.periods,p=a.days,q=a.shortDays,r=a.months,s=a.shortMonths;b.utc=function(a){function c(a){try{gi=Mb;var b=new gi;return b._=a,d(b)}finally{gi=Date}}var d=b(a);return c.parse=function(a){try{gi=Mb;var b=d.parse(a);return b&&b._}finally{gi=Date}},c.toString=d.toString,c},b.multi=b.utc.multi=hc;var t=Zg.map(),u=Rb(p),v=Sb(p),w=Rb(q),x=Sb(q),y=Rb(r),z=Sb(r),A=Rb(s),B=Sb(s);o.forEach(function(a,b){t.set(a.toLowerCase(),b)});var C={a:function(a){return q[a.getDay()]},A:function(a){return p[a.getDay()]},b:function(a){return s[a.getMonth()]},B:function(a){return r[a.getMonth()]},c:b(l),d:function(a,b){return Qb(a.getDate(),b,2)},e:function(a,b){return Qb(a.getDate(),b,2)},H:function(a,b){return Qb(a.getHours(),b,2)},I:function(a,b){return Qb(a.getHours()%12||12,b,2)},j:function(a,b){return Qb(1+fi.dayOfYear(a),b,3)},L:function(a,b){return Qb(a.getMilliseconds(),b,3)},m:function(a,b){return Qb(a.getMonth()+1,b,2)},M:function(a,b){return Qb(a.getMinutes(),b,2)},p:function(a){return o[+(a.getHours()>=12)]},S:function(a,b){return Qb(a.getSeconds(),b,2)},U:function(a,b){return Qb(fi.sundayOfYear(a),b,2)},w:function(a){return a.getDay()},W:function(a,b){return Qb(fi.mondayOfYear(a),b,2)},x:b(m),X:b(n),y:function(a,b){return Qb(a.getFullYear()%100,b,2)},Y:function(a,b){return Qb(a.getFullYear()%1e4,b,4)},Z:fc,"%":function(){return"%"}},D={a:d,A:e,b:f,B:g,c:h,d:_b,e:_b,H:bc,I:bc,j:ac,L:ec,m:$b,M:cc,p:k,S:dc,U:Ub,w:Tb,W:Vb,x:i,X:j,y:Xb,Y:Wb,Z:Yb,"%":gc};return b}function Qb(a,b,c){var d=0>a?"-":"",e=(d?-a:a)+"",f=e.length;return d+(c>f?new Array(c-f+1).join(b)+e:e)}function Rb(a){return new RegExp("^(?:"+a.map(Zg.requote).join("|")+")","i")}function Sb(a){for(var b=new g,c=-1,d=a.length;++c<d;)b.set(a[c].toLowerCase(),c);return b}function Tb(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+1));return d?(a.w=+d[0],c+d[0].length):-1}function Ub(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c));return d?(a.U=+d[0],c+d[0].length):-1}function Vb(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c));return d?(a.W=+d[0],c+d[0].length):-1}function Wb(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+4));return d?(a.y=+d[0],c+d[0].length):-1}function Xb(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+2));return d?(a.y=Zb(+d[0]),c+d[0].length):-1}function Yb(a,b,c){return/^[+-]\d{4}$/.test(b=b.substring(c,c+5))?(a.Z=+b,c+5):-1}function Zb(a){return a+(a>68?1900:2e3)}function $b(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+2));return d?(a.m=d[0]-1,c+d[0].length):-1}function _b(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+2));return d?(a.d=+d[0],c+d[0].length):-1}function ac(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+3));return d?(a.j=+d[0],c+d[0].length):-1}function bc(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+2));return d?(a.H=+d[0],c+d[0].length):-1}function cc(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+2));return d?(a.M=+d[0],c+d[0].length):-1}function dc(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+2));return d?(a.S=+d[0],c+d[0].length):-1}function ec(a,b,c){ji.lastIndex=0;var d=ji.exec(b.substring(c,c+3));return d?(a.L=+d[0],c+d[0].length):-1}function fc(a){var b=a.getTimezoneOffset(),c=b>0?"-":"+",d=~~(lh(b)/60),e=lh(b)%60;return c+Qb(d,"0",2)+Qb(e,"0",2)}function gc(a,b,c){ki.lastIndex=0;var d=ki.exec(b.substring(c,c+1));return d?c+d[0].length:-1}function hc(a){for(var b=a.length,c=-1;++c<b;)a[c][0]=this(a[c][0]);return function(b){for(var c=0,d=a[c];!d[1](b);)d=a[++c];return d[0](b)}}function ic(){}function jc(a,b,c){var d=c.s=a+b,e=d-a,f=d-e;c.t=a-f+(b-e)}function kc(a,b){a&&oi.hasOwnProperty(a.type)&&oi[a.type](a,b)}function lc(a,b,c){var d,e=-1,f=a.length-c;for(b.lineStart();++e<f;)d=a[e],b.point(d[0],d[1],d[2]);b.lineEnd()}function mc(a,b){var c=-1,d=a.length;for(b.polygonStart();++c<d;)lc(a[c],b,1);b.polygonEnd()}function nc(){function a(a,b){a*=Hh,b=b*Hh/2+Ch/4;var c=a-d,g=c>=0?1:-1,h=g*c,i=Math.cos(b),j=Math.sin(b),k=f*j,l=e*i+k*Math.cos(h),m=k*g*Math.sin(h);qi.add(Math.atan2(m,l)),d=a,e=i,f=j}var b,c,d,e,f;ri.point=function(g,h){ri.point=a,d=(b=g)*Hh,e=Math.cos(h=(c=h)*Hh/2+Ch/4),f=Math.sin(h)},ri.lineEnd=function(){a(b,c)}}function oc(a){var b=a[0],c=a[1],d=Math.cos(c);return[d*Math.cos(b),d*Math.sin(b),Math.sin(c)]}function pc(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function qc(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function rc(a,b){a[0]+=b[0],a[1]+=b[1],a[2]+=b[2]}function sc(a,b){return[a[0]*b,a[1]*b,a[2]*b]}function tc(a){var b=Math.sqrt(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);a[0]/=b,a[1]/=b,a[2]/=b}function uc(a){return[Math.atan2(a[1],a[0]),Z(a[2])]}function vc(a,b){return lh(a[0]-b[0])<Fh&&lh(a[1]-b[1])<Fh}function wc(a,b){a*=Hh;var c=Math.cos(b*=Hh);xc(c*Math.cos(a),c*Math.sin(a),Math.sin(b))}function xc(a,b,c){++si,ui+=(a-ui)/si,vi+=(b-vi)/si,wi+=(c-wi)/si}function yc(){function a(a,e){a*=Hh;var f=Math.cos(e*=Hh),g=f*Math.cos(a),h=f*Math.sin(a),i=Math.sin(e),j=Math.atan2(Math.sqrt((j=c*i-d*h)*j+(j=d*g-b*i)*j+(j=b*h-c*g)*j),b*g+c*h+d*i);ti+=j,xi+=j*(b+(b=g)),yi+=j*(c+(c=h)),zi+=j*(d+(d=i)),xc(b,c,d)}var b,c,d;Di.point=function(e,f){e*=Hh;var g=Math.cos(f*=Hh);b=g*Math.cos(e),c=g*Math.sin(e),d=Math.sin(f),Di.point=a,xc(b,c,d)}}function zc(){Di.point=wc}function Ac(){function a(a,b){a*=Hh;var c=Math.cos(b*=Hh),g=c*Math.cos(a),h=c*Math.sin(a),i=Math.sin(b),j=e*i-f*h,k=f*g-d*i,l=d*h-e*g,m=Math.sqrt(j*j+k*k+l*l),n=d*g+e*h+f*i,o=m&&-Y(n)/m,p=Math.atan2(m,n);Ai+=o*j,Bi+=o*k,Ci+=o*l,ti+=p,xi+=p*(d+(d=g)),yi+=p*(e+(e=h)),zi+=p*(f+(f=i)),xc(d,e,f)}var b,c,d,e,f;Di.point=function(g,h){b=g,c=h,Di.point=a,g*=Hh;var i=Math.cos(h*=Hh);d=i*Math.cos(g),e=i*Math.sin(g),f=Math.sin(h),xc(d,e,f)},Di.lineEnd=function(){a(b,c),Di.lineEnd=zc,Di.point=wc}}function Bc(){return!0}function Cc(a,b,c,d,e){var f=[],g=[];if(a.forEach(function(a){if(!((b=a.length-1)<=0)){var b,c=a[0],d=a[b];if(vc(c,d)){e.lineStart();for(var h=0;b>h;++h)e.point((c=a[h])[0],c[1]);return void e.lineEnd()}var i=new Ec(c,a,null,!0),j=new Ec(c,null,i,!1);i.o=j,f.push(i),g.push(j),i=new Ec(d,a,null,!1),j=new Ec(d,null,i,!0),i.o=j,f.push(i),g.push(j)}}),g.sort(b),Dc(f),Dc(g),f.length){for(var h=0,i=c,j=g.length;j>h;++h)g[h].e=i=!i;for(var k,l,m=f[0];;){for(var n=m,o=!0;n.v;)if((n=n.n)===m)return;k=n.z,e.lineStart();do{if(n.v=n.o.v=!0,n.e){if(o)for(var h=0,j=k.length;j>h;++h)e.point((l=k[h])[0],l[1]);else d(n.x,n.n.x,1,e);n=n.n}else{if(o){k=n.p.z;for(var h=k.length-1;h>=0;--h)e.point((l=k[h])[0],l[1])}else d(n.x,n.p.x,-1,e);n=n.p}n=n.o,k=n.z,o=!o}while(!n.v);e.lineEnd()}}}function Dc(a){if(b=a.length){for(var b,c,d=0,e=a[0];++d<b;)e.n=c=a[d],c.p=e,e=c;e.n=c=a[0],c.p=e}}function Ec(a,b,c,d){this.x=a,this.z=b,this.o=c,this.e=d,this.v=!1,this.n=this.p=null}function Fc(a,b,c,d){return function(e,f){function g(b,c){var d=e(b,c);a(b=d[0],c=d[1])&&f.point(b,c)}function h(a,b){var c=e(a,b);q.point(c[0],c[1])}function i(){s.point=h,q.lineStart()}function j(){s.point=g,q.lineEnd()}function k(a,b){p.push([a,b]);var c=e(a,b);u.point(c[0],c[1])}function l(){u.lineStart(),p=[]}function m(){k(p[0][0],p[0][1]),u.lineEnd();var a,b=u.clean(),c=t.buffer(),d=c.length;if(p.pop(),o.push(p),p=null,d){if(1&b){a=c[0];var e,d=a.length-1,g=-1;for(f.lineStart();++g<d;)f.point((e=a[g])[0],e[1]);return void f.lineEnd()}d>1&&2&b&&c.push(c.pop().concat(c.shift())),n.push(c.filter(Gc))}}var n,o,p,q=b(f),r=e.invert(d[0],d[1]),s={point:g,lineStart:i,lineEnd:j,polygonStart:function(){s.point=k,s.lineStart=l,s.lineEnd=m,n=[],o=[],f.polygonStart()},polygonEnd:function(){s.point=g,s.lineStart=i,s.lineEnd=j,n=Zg.merge(n);var a=Jc(r,o);n.length?Cc(n,Ic,a,c,f):a&&(f.lineStart(),c(null,null,1,f),f.lineEnd()),f.polygonEnd(),n=o=null},sphere:function(){f.polygonStart(),f.lineStart(),c(null,null,1,f),f.lineEnd(),f.polygonEnd()}},t=Hc(),u=b(t);return s}}function Gc(a){return a.length>1}function Hc(){var a,b=[];return{lineStart:function(){b.push(a=[])},point:function(b,c){a.push([b,c])},lineEnd:p,buffer:function(){var c=b;return b=[],a=null,c},rejoin:function(){b.length>1&&b.push(b.pop().concat(b.shift()))}}}function Ic(a,b){return((a=a.x)[0]<0?a[1]-Eh-Fh:Eh-a[1])-((b=b.x)[0]<0?b[1]-Eh-Fh:Eh-b[1])}function Jc(a,b){var c=a[0],d=a[1],e=[Math.sin(c),-Math.cos(c),0],f=0,g=0;qi.reset();for(var h=0,i=b.length;i>h;++h){var j=b[h],k=j.length;if(k)for(var l=j[0],m=l[0],n=l[1]/2+Ch/4,o=Math.sin(n),p=Math.cos(n),q=1;;){q===k&&(q=0),a=j[q];var r=a[0],s=a[1]/2+Ch/4,t=Math.sin(s),u=Math.cos(s),v=r-m,w=v>=0?1:-1,x=w*v,y=x>Ch,z=o*t;if(qi.add(Math.atan2(z*w*Math.sin(x),p*u+z*Math.cos(x))),f+=y?v+w*Dh:v,y^m>=c^r>=c){var A=qc(oc(l),oc(a));tc(A);var B=qc(e,A);tc(B);var C=(y^v>=0?-1:1)*Z(B[2]);(d>C||d===C&&(A[0]||A[1]))&&(g+=y^v>=0?1:-1)}if(!q++)break;m=r,o=t,p=u,l=a}}return(-Fh>f||Fh>f&&0>qi)^1&g}function Kc(a){var b,c=0/0,d=0/0,e=0/0;return{lineStart:function(){a.lineStart(),b=1},point:function(f,g){var h=f>0?Ch:-Ch,i=lh(f-c);lh(i-Ch)<Fh?(a.point(c,d=(d+g)/2>0?Eh:-Eh),a.point(e,d),a.lineEnd(),a.lineStart(),a.point(h,d),a.point(f,d),b=0):e!==h&&i>=Ch&&(lh(c-e)<Fh&&(c-=e*Fh),lh(f-h)<Fh&&(f-=h*Fh),d=Lc(c,d,f,g),a.point(e,d),a.lineEnd(),a.lineStart(),a.point(h,d),b=0),a.point(c=f,d=g),e=h},lineEnd:function(){a.lineEnd(),c=d=0/0},clean:function(){return 2-b}}}function Lc(a,b,c,d){var e,f,g=Math.sin(a-c);return lh(g)>Fh?Math.atan((Math.sin(b)*(f=Math.cos(d))*Math.sin(c)-Math.sin(d)*(e=Math.cos(b))*Math.sin(a))/(e*f*g)):(b+d)/2}function Mc(a,b,c,d){var e;if(null==a)e=c*Eh,d.point(-Ch,e),d.point(0,e),d.point(Ch,e),d.point(Ch,0),d.point(Ch,-e),d.point(0,-e),d.point(-Ch,-e),d.point(-Ch,0),d.point(-Ch,e);else if(lh(a[0]-b[0])>Fh){var f=a[0]<b[0]?Ch:-Ch;e=c*f/2,d.point(-f,e),d.point(0,e),d.point(f,e)}else d.point(b[0],b[1])}function Nc(a){function b(a,b){return Math.cos(a)*Math.cos(b)>f}function c(a){var c,f,i,j,k;return{lineStart:function(){j=i=!1,k=1},point:function(l,m){var n,o=[l,m],p=b(l,m),q=g?p?0:e(l,m):p?e(l+(0>l?Ch:-Ch),m):0;if(!c&&(j=i=p)&&a.lineStart(),p!==i&&(n=d(c,o),(vc(c,n)||vc(o,n))&&(o[0]+=Fh,o[1]+=Fh,p=b(o[0],o[1]))),p!==i)k=0,p?(a.lineStart(),n=d(o,c),a.point(n[0],n[1])):(n=d(c,o),a.point(n[0],n[1]),a.lineEnd()),c=n;else if(h&&c&&g^p){var r;q&f||!(r=d(o,c,!0))||(k=0,g?(a.lineStart(),a.point(r[0][0],r[0][1]),a.point(r[1][0],r[1][1]),a.lineEnd()):(a.point(r[1][0],r[1][1]),a.lineEnd(),a.lineStart(),a.point(r[0][0],r[0][1])))}!p||c&&vc(c,o)||a.point(o[0],o[1]),c=o,i=p,f=q},lineEnd:function(){i&&a.lineEnd(),c=null},clean:function(){return k|(j&&i)<<1}}}function d(a,b,c){var d=oc(a),e=oc(b),g=[1,0,0],h=qc(d,e),i=pc(h,h),j=h[0],k=i-j*j;if(!k)return!c&&a;var l=f*i/k,m=-f*j/k,n=qc(g,h),o=sc(g,l),p=sc(h,m);rc(o,p);var q=n,r=pc(o,q),s=pc(q,q),t=r*r-s*(pc(o,o)-1);if(!(0>t)){var u=Math.sqrt(t),v=sc(q,(-r-u)/s);if(rc(v,o),v=uc(v),!c)return v;var w,x=a[0],y=b[0],z=a[1],A=b[1];x>y&&(w=x,x=y,y=w);var B=y-x,C=lh(B-Ch)<Fh,D=C||Fh>B;if(!C&&z>A&&(w=z,z=A,A=w),D?C?z+A>0^v[1]<(lh(v[0]-x)<Fh?z:A):z<=v[1]&&v[1]<=A:B>Ch^(x<=v[0]&&v[0]<=y)){var E=sc(q,(-r+u)/s);return rc(E,o),[v,uc(E)]}}}function e(b,c){var d=g?a:Ch-a,e=0;return-d>b?e|=1:b>d&&(e|=2),-d>c?e|=4:c>d&&(e|=8),e}var f=Math.cos(a),g=f>0,h=lh(f)>Fh,i=nd(a,6*Hh);return Fc(b,c,i,g?[0,-a]:[-Ch,a-Ch])}function Oc(a,b,c,d){return function(e){var f,g=e.a,h=e.b,i=g.x,j=g.y,k=h.x,l=h.y,m=0,n=1,o=k-i,p=l-j;if(f=a-i,o||!(f>0)){if(f/=o,0>o){if(m>f)return;n>f&&(n=f)}else if(o>0){if(f>n)return;f>m&&(m=f)}if(f=c-i,o||!(0>f)){if(f/=o,0>o){if(f>n)return;f>m&&(m=f)}else if(o>0){if(m>f)return;n>f&&(n=f)}if(f=b-j,p||!(f>0)){if(f/=p,0>p){if(m>f)return;n>f&&(n=f)}else if(p>0){if(f>n)return;f>m&&(m=f)}if(f=d-j,p||!(0>f)){if(f/=p,0>p){if(f>n)return;f>m&&(m=f)}else if(p>0){if(m>f)return;n>f&&(n=f)}return m>0&&(e.a={x:i+m*o,y:j+m*p}),1>n&&(e.b={x:i+n*o,y:j+n*p}),e}}}}}}function Pc(a,b,c,d){function e(d,e){return lh(d[0]-a)<Fh?e>0?0:3:lh(d[0]-c)<Fh?e>0?2:1:lh(d[1]-b)<Fh?e>0?1:0:e>0?3:2}function f(a,b){return g(a.x,b.x)}function g(a,b){var c=e(a,1),d=e(b,1);return c!==d?c-d:0===c?b[1]-a[1]:1===c?a[0]-b[0]:2===c?a[1]-b[1]:b[0]-a[0]}return function(h){function i(a){for(var b=0,c=q.length,d=a[1],e=0;c>e;++e)for(var f,g=1,h=q[e],i=h.length,j=h[0];i>g;++g)f=h[g],j[1]<=d?f[1]>d&&X(j,f,a)>0&&++b:f[1]<=d&&X(j,f,a)<0&&--b,j=f;return 0!==b}function j(f,h,i,j){var k=0,l=0;if(null==f||(k=e(f,i))!==(l=e(h,i))||g(f,h)<0^i>0){do j.point(0===k||3===k?a:c,k>1?d:b);while((k=(k+i+4)%4)!==l)}else j.point(h[0],h[1])}function k(e,f){return e>=a&&c>=e&&f>=b&&d>=f}function l(a,b){k(a,b)&&h.point(a,b)}function m(){D.point=o,q&&q.push(r=[]),y=!0,x=!1,v=w=0/0}function n(){p&&(o(s,t),u&&x&&B.rejoin(),p.push(B.buffer())),D.point=l,x&&h.lineEnd()}function o(a,b){a=Math.max(-Fi,Math.min(Fi,a)),b=Math.max(-Fi,Math.min(Fi,b));var c=k(a,b);if(q&&r.push([a,b]),y)s=a,t=b,u=c,y=!1,c&&(h.lineStart(),h.point(a,b));else if(c&&x)h.point(a,b);else{var d={a:{x:v,y:w},b:{x:a,y:b}};C(d)?(x||(h.lineStart(),h.point(d.a.x,d.a.y)),h.point(d.b.x,d.b.y),c||h.lineEnd(),z=!1):c&&(h.lineStart(),h.point(a,b),z=!1)}v=a,w=b,x=c}var p,q,r,s,t,u,v,w,x,y,z,A=h,B=Hc(),C=Oc(a,b,c,d),D={point:l,lineStart:m,lineEnd:n,polygonStart:function(){h=B,p=[],q=[],z=!0},polygonEnd:function(){h=A,p=Zg.merge(p);var b=i([a,d]),c=z&&b,e=p.length;(c||e)&&(h.polygonStart(),c&&(h.lineStart(),j(null,null,1,h),h.lineEnd()),e&&Cc(p,f,b,j,h),h.polygonEnd()),p=q=r=null}};return D}}function Qc(a,b){function c(c,d){return c=a(c,d),b(c[0],c[1])}return a.invert&&b.invert&&(c.invert=function(c,d){return c=b.invert(c,d),c&&a.invert(c[0],c[1])}),c}function Rc(a){var b=0,c=Ch/3,d=fd(a),e=d(b,c);return e.parallels=function(a){return arguments.length?d(b=a[0]*Ch/180,c=a[1]*Ch/180):[b/Ch*180,c/Ch*180]},e}function Sc(a,b){function c(a,b){var c=Math.sqrt(f-2*e*Math.sin(b))/e;return[c*Math.sin(a*=e),g-c*Math.cos(a)]}var d=Math.sin(a),e=(d+Math.sin(b))/2,f=1+d*(2*e-d),g=Math.sqrt(f)/e;return c.invert=function(a,b){var c=g-b;return[Math.atan2(a,c)/e,Z((f-(a*a+c*c)*e*e)/(2*e))]},c}function Tc(){function a(a,b){Hi+=e*a-d*b,d=a,e=b}var b,c,d,e;Mi.point=function(f,g){Mi.point=a,b=d=f,c=e=g},Mi.lineEnd=function(){a(b,c)}}function Uc(a,b){Ii>a&&(Ii=a),a>Ki&&(Ki=a),Ji>b&&(Ji=b),b>Li&&(Li=b)}function Vc(){function a(a,b){g.push("M",a,",",b,f)}function b(a,b){g.push("M",a,",",b),h.point=c}function c(a,b){g.push("L",a,",",b)}function d(){h.point=a}function e(){g.push("Z")}var f=Wc(4.5),g=[],h={point:a,lineStart:function(){h.point=b},lineEnd:d,polygonStart:function(){h.lineEnd=e},polygonEnd:function(){h.lineEnd=d,h.point=a},pointRadius:function(a){return f=Wc(a),h},result:function(){if(g.length){var a=g.join("");return g=[],a}}};return h}function Wc(a){return"m0,"+a+"a"+a+","+a+" 0 1,1 0,"+-2*a+"a"+a+","+a+" 0 1,1 0,"+2*a+"z"}function Xc(a,b){ui+=a,vi+=b,++wi}function Yc(){function a(a,d){var e=a-b,f=d-c,g=Math.sqrt(e*e+f*f);xi+=g*(b+a)/2,yi+=g*(c+d)/2,zi+=g,Xc(b=a,c=d)}var b,c;Oi.point=function(d,e){Oi.point=a,Xc(b=d,c=e)}}function Zc(){Oi.point=Xc}function $c(){function a(a,b){var c=a-d,f=b-e,g=Math.sqrt(c*c+f*f);xi+=g*(d+a)/2,yi+=g*(e+b)/2,zi+=g,g=e*a-d*b,Ai+=g*(d+a),Bi+=g*(e+b),Ci+=3*g,Xc(d=a,e=b)}var b,c,d,e;Oi.point=function(f,g){Oi.point=a,Xc(b=d=f,c=e=g)},Oi.lineEnd=function(){a(b,c)}}function _c(a){function b(b,c){a.moveTo(b,c),a.arc(b,c,g,0,Dh)}function c(b,c){a.moveTo(b,c),h.point=d}function d(b,c){a.lineTo(b,c)}function e(){h.point=b}function f(){a.closePath()}var g=4.5,h={point:b,lineStart:function(){h.point=c},lineEnd:e,polygonStart:function(){h.lineEnd=f},polygonEnd:function(){h.lineEnd=e,h.point=b},pointRadius:function(a){return g=a,h},result:p};return h}function ad(a){function b(a){return(h?d:c)(a)}function c(b){return dd(b,function(c,d){c=a(c,d),b.point(c[0],c[1])})}function d(b){function c(c,d){c=a(c,d),b.point(c[0],c[1])}function d(){t=0/0,y.point=f,b.lineStart()}function f(c,d){var f=oc([c,d]),g=a(c,d);e(t,u,s,v,w,x,t=g[0],u=g[1],s=c,v=f[0],w=f[1],x=f[2],h,b),b.point(t,u)}function g(){y.point=c,b.lineEnd()}function i(){d(),y.point=j,y.lineEnd=k}function j(a,b){f(l=a,m=b),n=t,o=u,p=v,q=w,r=x,y.point=f}function k(){e(t,u,s,v,w,x,n,o,l,p,q,r,h,b),y.lineEnd=g,g()}var l,m,n,o,p,q,r,s,t,u,v,w,x,y={point:c,lineStart:d,lineEnd:g,polygonStart:function(){b.polygonStart(),y.lineStart=i},polygonEnd:function(){b.polygonEnd(),y.lineStart=d}};return y}function e(b,c,d,h,i,j,k,l,m,n,o,p,q,r){var s=k-b,t=l-c,u=s*s+t*t;if(u>4*f&&q--){var v=h+n,w=i+o,x=j+p,y=Math.sqrt(v*v+w*w+x*x),z=Math.asin(x/=y),A=lh(lh(x)-1)<Fh||lh(d-m)<Fh?(d+m)/2:Math.atan2(w,v),B=a(A,z),C=B[0],D=B[1],E=C-b,F=D-c,G=t*E-s*F;(G*G/u>f||lh((s*E+t*F)/u-.5)>.3||g>h*n+i*o+j*p)&&(e(b,c,d,h,i,j,C,D,A,v/=y,w/=y,x,q,r),r.point(C,D),e(C,D,A,v,w,x,k,l,m,n,o,p,q,r))}}var f=.5,g=Math.cos(30*Hh),h=16;return b.precision=function(a){return arguments.length?(h=(f=a*a)>0&&16,b):Math.sqrt(f)},b}function bd(a){var b=ad(function(b,c){return a([b*Ih,c*Ih])});return function(a){return gd(b(a))}}function cd(a){this.stream=a}function dd(a,b){return{point:b,sphere:function(){a.sphere()},lineStart:function(){a.lineStart()},lineEnd:function(){a.lineEnd()},polygonStart:function(){a.polygonStart()},polygonEnd:function(){a.polygonEnd()}}}function ed(a){return fd(function(){return a})()}function fd(a){function b(a){return a=h(a[0]*Hh,a[1]*Hh),[a[0]*m+i,j-a[1]*m]}function c(a){return a=h.invert((a[0]-i)/m,(j-a[1])/m),a&&[a[0]*Ih,a[1]*Ih]}function d(){h=Qc(g=jd(r,s,t),f);var a=f(p,q);return i=n-a[0]*m,j=o+a[1]*m,e()}function e(){return k&&(k.valid=!1,k=null),b}var f,g,h,i,j,k,l=ad(function(a,b){return a=f(a,b),[a[0]*m+i,j-a[1]*m]
}),m=150,n=480,o=250,p=0,q=0,r=0,s=0,t=0,u=Ei,v=Bb,w=null,x=null;return b.stream=function(a){return k&&(k.valid=!1),k=gd(u(g,l(v(a)))),k.valid=!0,k},b.clipAngle=function(a){return arguments.length?(u=null==a?(w=a,Ei):Nc((w=+a)*Hh),e()):w},b.clipExtent=function(a){return arguments.length?(x=a,v=a?Pc(a[0][0],a[0][1],a[1][0],a[1][1]):Bb,e()):x},b.scale=function(a){return arguments.length?(m=+a,d()):m},b.translate=function(a){return arguments.length?(n=+a[0],o=+a[1],d()):[n,o]},b.center=function(a){return arguments.length?(p=a[0]%360*Hh,q=a[1]%360*Hh,d()):[p*Ih,q*Ih]},b.rotate=function(a){return arguments.length?(r=a[0]%360*Hh,s=a[1]%360*Hh,t=a.length>2?a[2]%360*Hh:0,d()):[r*Ih,s*Ih,t*Ih]},Zg.rebind(b,l,"precision"),function(){return f=a.apply(this,arguments),b.invert=f.invert&&c,d()}}function gd(a){return dd(a,function(b,c){a.point(b*Hh,c*Hh)})}function hd(a,b){return[a,b]}function id(a,b){return[a>Ch?a-Dh:-Ch>a?a+Dh:a,b]}function jd(a,b,c){return a?b||c?Qc(ld(a),md(b,c)):ld(a):b||c?md(b,c):id}function kd(a){return function(b,c){return b+=a,[b>Ch?b-Dh:-Ch>b?b+Dh:b,c]}}function ld(a){var b=kd(a);return b.invert=kd(-a),b}function md(a,b){function c(a,b){var c=Math.cos(b),h=Math.cos(a)*c,i=Math.sin(a)*c,j=Math.sin(b),k=j*d+h*e;return[Math.atan2(i*f-k*g,h*d-j*e),Z(k*f+i*g)]}var d=Math.cos(a),e=Math.sin(a),f=Math.cos(b),g=Math.sin(b);return c.invert=function(a,b){var c=Math.cos(b),h=Math.cos(a)*c,i=Math.sin(a)*c,j=Math.sin(b),k=j*f-i*g;return[Math.atan2(i*f+j*g,h*d+k*e),Z(k*d-h*e)]},c}function nd(a,b){var c=Math.cos(a),d=Math.sin(a);return function(e,f,g,h){var i=g*b;null!=e?(e=od(c,e),f=od(c,f),(g>0?f>e:e>f)&&(e+=g*Dh)):(e=a+g*Dh,f=a-.5*i);for(var j,k=e;g>0?k>f:f>k;k-=i)h.point((j=uc([c,-d*Math.cos(k),-d*Math.sin(k)]))[0],j[1])}}function od(a,b){var c=oc(b);c[0]-=a,tc(c);var d=Y(-c[1]);return((-c[2]<0?-d:d)+2*Math.PI-Fh)%(2*Math.PI)}function pd(a,b,c){var d=Zg.range(a,b-Fh,c).concat(b);return function(a){return d.map(function(b){return[a,b]})}}function qd(a,b,c){var d=Zg.range(a,b-Fh,c).concat(b);return function(a){return d.map(function(b){return[b,a]})}}function rd(a){return a.source}function sd(a){return a.target}function td(a,b,c,d){var e=Math.cos(b),f=Math.sin(b),g=Math.cos(d),h=Math.sin(d),i=e*Math.cos(a),j=e*Math.sin(a),k=g*Math.cos(c),l=g*Math.sin(c),m=2*Math.asin(Math.sqrt(bb(d-b)+e*g*bb(c-a))),n=1/Math.sin(m),o=m?function(a){var b=Math.sin(a*=m)*n,c=Math.sin(m-a)*n,d=c*i+b*k,e=c*j+b*l,g=c*f+b*h;return[Math.atan2(e,d)*Ih,Math.atan2(g,Math.sqrt(d*d+e*e))*Ih]}:function(){return[a*Ih,b*Ih]};return o.distance=m,o}function ud(){function a(a,e){var f=Math.sin(e*=Hh),g=Math.cos(e),h=lh((a*=Hh)-b),i=Math.cos(h);Pi+=Math.atan2(Math.sqrt((h=g*Math.sin(h))*h+(h=d*f-c*g*i)*h),c*f+d*g*i),b=a,c=f,d=g}var b,c,d;Qi.point=function(e,f){b=e*Hh,c=Math.sin(f*=Hh),d=Math.cos(f),Qi.point=a},Qi.lineEnd=function(){Qi.point=Qi.lineEnd=p}}function vd(a,b){function c(b,c){var d=Math.cos(b),e=Math.cos(c),f=a(d*e);return[f*e*Math.sin(b),f*Math.sin(c)]}return c.invert=function(a,c){var d=Math.sqrt(a*a+c*c),e=b(d),f=Math.sin(e),g=Math.cos(e);return[Math.atan2(a*f,d*g),Math.asin(d&&c*f/d)]},c}function wd(a,b){function c(a,b){g>0?-Eh+Fh>b&&(b=-Eh+Fh):b>Eh-Fh&&(b=Eh-Fh);var c=g/Math.pow(e(b),f);return[c*Math.sin(f*a),g-c*Math.cos(f*a)]}var d=Math.cos(a),e=function(a){return Math.tan(Ch/4+a/2)},f=a===b?Math.sin(a):Math.log(d/Math.cos(b))/Math.log(e(b)/e(a)),g=d*Math.pow(e(a),f)/f;return f?(c.invert=function(a,b){var c=g-b,d=W(f)*Math.sqrt(a*a+c*c);return[Math.atan2(a,c)/f,2*Math.atan(Math.pow(g/d,1/f))-Eh]},c):yd}function xd(a,b){function c(a,b){var c=f-b;return[c*Math.sin(e*a),f-c*Math.cos(e*a)]}var d=Math.cos(a),e=a===b?Math.sin(a):(d-Math.cos(b))/(b-a),f=d/e+a;return lh(e)<Fh?hd:(c.invert=function(a,b){var c=f-b;return[Math.atan2(a,c)/e,f-W(e)*Math.sqrt(a*a+c*c)]},c)}function yd(a,b){return[a,Math.log(Math.tan(Ch/4+b/2))]}function zd(a){var b,c=ed(a),d=c.scale,e=c.translate,f=c.clipExtent;return c.scale=function(){var a=d.apply(c,arguments);return a===c?b?c.clipExtent(null):c:a},c.translate=function(){var a=e.apply(c,arguments);return a===c?b?c.clipExtent(null):c:a},c.clipExtent=function(a){var g=f.apply(c,arguments);if(g===c){if(b=null==a){var h=Ch*d(),i=e();f([[i[0]-h,i[1]-h],[i[0]+h,i[1]+h]])}}else b&&(g=null);return g},c.clipExtent(null)}function Ad(a,b){return[Math.log(Math.tan(Ch/4+b/2)),-a]}function Bd(a){return a[0]}function Cd(a){return a[1]}function Dd(a){for(var b=a.length,c=[0,1],d=2,e=2;b>e;e++){for(;d>1&&X(a[c[d-2]],a[c[d-1]],a[e])<=0;)--d;c[d++]=e}return c.slice(0,d)}function Ed(a,b){return a[0]-b[0]||a[1]-b[1]}function Fd(a,b,c){return(c[0]-b[0])*(a[1]-b[1])<(c[1]-b[1])*(a[0]-b[0])}function Gd(a,b,c,d){var e=a[0],f=c[0],g=b[0]-e,h=d[0]-f,i=a[1],j=c[1],k=b[1]-i,l=d[1]-j,m=(h*(i-j)-l*(e-f))/(l*g-h*k);return[e+m*g,i+m*k]}function Hd(a){var b=a[0],c=a[a.length-1];return!(b[0]-c[0]||b[1]-c[1])}function Id(){be(this),this.edge=this.site=this.circle=null}function Jd(a){var b=aj.pop()||new Id;return b.site=a,b}function Kd(a){Ud(a),Zi.remove(a),aj.push(a),be(a)}function Ld(a){var b=a.circle,c=b.x,d=b.cy,e={x:c,y:d},f=a.P,g=a.N,h=[a];Kd(a);for(var i=f;i.circle&&lh(c-i.circle.x)<Fh&&lh(d-i.circle.cy)<Fh;)f=i.P,h.unshift(i),Kd(i),i=f;h.unshift(i),Ud(i);for(var j=g;j.circle&&lh(c-j.circle.x)<Fh&&lh(d-j.circle.cy)<Fh;)g=j.N,h.push(j),Kd(j),j=g;h.push(j),Ud(j);var k,l=h.length;for(k=1;l>k;++k)j=h[k],i=h[k-1],$d(j.edge,i.site,j.site,e);i=h[0],j=h[l-1],j.edge=Yd(i.site,j.site,null,e),Td(i),Td(j)}function Md(a){for(var b,c,d,e,f=a.x,g=a.y,h=Zi._;h;)if(d=Nd(h,g)-f,d>Fh)h=h.L;else{if(e=f-Od(h,g),!(e>Fh)){d>-Fh?(b=h.P,c=h):e>-Fh?(b=h,c=h.N):b=c=h;break}if(!h.R){b=h;break}h=h.R}var i=Jd(a);if(Zi.insert(b,i),b||c){if(b===c)return Ud(b),c=Jd(b.site),Zi.insert(i,c),i.edge=c.edge=Yd(b.site,i.site),Td(b),void Td(c);if(!c)return void(i.edge=Yd(b.site,i.site));Ud(b),Ud(c);var j=b.site,k=j.x,l=j.y,m=a.x-k,n=a.y-l,o=c.site,p=o.x-k,q=o.y-l,r=2*(m*q-n*p),s=m*m+n*n,t=p*p+q*q,u={x:(q*s-n*t)/r+k,y:(m*t-p*s)/r+l};$d(c.edge,j,o,u),i.edge=Yd(j,a,null,u),c.edge=Yd(a,o,null,u),Td(b),Td(c)}}function Nd(a,b){var c=a.site,d=c.x,e=c.y,f=e-b;if(!f)return d;var g=a.P;if(!g)return-1/0;c=g.site;var h=c.x,i=c.y,j=i-b;if(!j)return h;var k=h-d,l=1/f-1/j,m=k/j;return l?(-m+Math.sqrt(m*m-2*l*(k*k/(-2*j)-i+j/2+e-f/2)))/l+d:(d+h)/2}function Od(a,b){var c=a.N;if(c)return Nd(c,b);var d=a.site;return d.y===b?d.x:1/0}function Pd(a){this.site=a,this.edges=[]}function Qd(a){for(var b,c,d,e,f,g,h,i,j,k,l=a[0][0],m=a[1][0],n=a[0][1],o=a[1][1],p=Yi,q=p.length;q--;)if(f=p[q],f&&f.prepare())for(h=f.edges,i=h.length,g=0;i>g;)k=h[g].end(),d=k.x,e=k.y,j=h[++g%i].start(),b=j.x,c=j.y,(lh(d-b)>Fh||lh(e-c)>Fh)&&(h.splice(g,0,new _d(Zd(f.site,k,lh(d-l)<Fh&&o-e>Fh?{x:l,y:lh(b-l)<Fh?c:o}:lh(e-o)<Fh&&m-d>Fh?{x:lh(c-o)<Fh?b:m,y:o}:lh(d-m)<Fh&&e-n>Fh?{x:m,y:lh(b-m)<Fh?c:n}:lh(e-n)<Fh&&d-l>Fh?{x:lh(c-n)<Fh?b:l,y:n}:null),f.site,null)),++i)}function Rd(a,b){return b.angle-a.angle}function Sd(){be(this),this.x=this.y=this.arc=this.site=this.cy=null}function Td(a){var b=a.P,c=a.N;if(b&&c){var d=b.site,e=a.site,f=c.site;if(d!==f){var g=e.x,h=e.y,i=d.x-g,j=d.y-h,k=f.x-g,l=f.y-h,m=2*(i*l-j*k);if(!(m>=-Gh)){var n=i*i+j*j,o=k*k+l*l,p=(l*n-j*o)/m,q=(i*o-k*n)/m,l=q+h,r=bj.pop()||new Sd;r.arc=a,r.site=e,r.x=p+g,r.y=l+Math.sqrt(p*p+q*q),r.cy=l,a.circle=r;for(var s=null,t=_i._;t;)if(r.y<t.y||r.y===t.y&&r.x<=t.x){if(!t.L){s=t.P;break}t=t.L}else{if(!t.R){s=t;break}t=t.R}_i.insert(s,r),s||($i=r)}}}}function Ud(a){var b=a.circle;b&&(b.P||($i=b.N),_i.remove(b),bj.push(b),be(b),a.circle=null)}function Vd(a){for(var b,c=Xi,d=Oc(a[0][0],a[0][1],a[1][0],a[1][1]),e=c.length;e--;)b=c[e],(!Wd(b,a)||!d(b)||lh(b.a.x-b.b.x)<Fh&&lh(b.a.y-b.b.y)<Fh)&&(b.a=b.b=null,c.splice(e,1))}function Wd(a,b){var c=a.b;if(c)return!0;var d,e,f=a.a,g=b[0][0],h=b[1][0],i=b[0][1],j=b[1][1],k=a.l,l=a.r,m=k.x,n=k.y,o=l.x,p=l.y,q=(m+o)/2,r=(n+p)/2;if(p===n){if(g>q||q>=h)return;if(m>o){if(f){if(f.y>=j)return}else f={x:q,y:i};c={x:q,y:j}}else{if(f){if(f.y<i)return}else f={x:q,y:j};c={x:q,y:i}}}else if(d=(m-o)/(p-n),e=r-d*q,-1>d||d>1)if(m>o){if(f){if(f.y>=j)return}else f={x:(i-e)/d,y:i};c={x:(j-e)/d,y:j}}else{if(f){if(f.y<i)return}else f={x:(j-e)/d,y:j};c={x:(i-e)/d,y:i}}else if(p>n){if(f){if(f.x>=h)return}else f={x:g,y:d*g+e};c={x:h,y:d*h+e}}else{if(f){if(f.x<g)return}else f={x:h,y:d*h+e};c={x:g,y:d*g+e}}return a.a=f,a.b=c,!0}function Xd(a,b){this.l=a,this.r=b,this.a=this.b=null}function Yd(a,b,c,d){var e=new Xd(a,b);return Xi.push(e),c&&$d(e,a,b,c),d&&$d(e,b,a,d),Yi[a.i].edges.push(new _d(e,a,b)),Yi[b.i].edges.push(new _d(e,b,a)),e}function Zd(a,b,c){var d=new Xd(a,null);return d.a=b,d.b=c,Xi.push(d),d}function $d(a,b,c,d){a.a||a.b?a.l===c?a.b=d:a.a=d:(a.a=d,a.l=b,a.r=c)}function _d(a,b,c){var d=a.a,e=a.b;this.edge=a,this.site=b,this.angle=c?Math.atan2(c.y-b.y,c.x-b.x):a.l===b?Math.atan2(e.x-d.x,d.y-e.y):Math.atan2(d.x-e.x,e.y-d.y)}function ae(){this._=null}function be(a){a.U=a.C=a.L=a.R=a.P=a.N=null}function ce(a,b){var c=b,d=b.R,e=c.U;e?e.L===c?e.L=d:e.R=d:a._=d,d.U=e,c.U=d,c.R=d.L,c.R&&(c.R.U=c),d.L=c}function de(a,b){var c=b,d=b.L,e=c.U;e?e.L===c?e.L=d:e.R=d:a._=d,d.U=e,c.U=d,c.L=d.R,c.L&&(c.L.U=c),d.R=c}function ee(a){for(;a.L;)a=a.L;return a}function fe(a,b){var c,d,e,f=a.sort(ge).pop();for(Xi=[],Yi=new Array(a.length),Zi=new ae,_i=new ae;;)if(e=$i,f&&(!e||f.y<e.y||f.y===e.y&&f.x<e.x))(f.x!==c||f.y!==d)&&(Yi[f.i]=new Pd(f),Md(f),c=f.x,d=f.y),f=a.pop();else{if(!e)break;Ld(e.arc)}b&&(Vd(b),Qd(b));var g={cells:Yi,edges:Xi};return Zi=_i=Xi=Yi=null,g}function ge(a,b){return b.y-a.y||b.x-a.x}function he(a,b,c){return(a.x-c.x)*(b.y-a.y)-(a.x-b.x)*(c.y-a.y)}function ie(a){return a.x}function je(a){return a.y}function ke(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function le(a,b,c,d,e,f){if(!a(b,c,d,e,f)){var g=.5*(c+e),h=.5*(d+f),i=b.nodes;i[0]&&le(a,i[0],c,d,g,h),i[1]&&le(a,i[1],g,d,e,h),i[2]&&le(a,i[2],c,h,g,f),i[3]&&le(a,i[3],g,h,e,f)}}function me(a,b){a=Zg.rgb(a),b=Zg.rgb(b);var c=a.r,d=a.g,e=a.b,f=b.r-c,g=b.g-d,h=b.b-e;return function(a){return"#"+ub(Math.round(c+f*a))+ub(Math.round(d+g*a))+ub(Math.round(e+h*a))}}function ne(a,b){var c,d={},e={};for(c in a)c in b?d[c]=qe(a[c],b[c]):e[c]=a[c];for(c in b)c in a||(e[c]=b[c]);return function(a){for(c in d)e[c]=d[c](a);return e}}function oe(a,b){return b-=a=+a,function(c){return a+b*c}}function pe(a,b){var c,d,e,f,g,h=0,i=0,j=[],k=[];for(a+="",b+="",dj.lastIndex=0,d=0;c=dj.exec(b);++d)c.index&&j.push(b.substring(h,i=c.index)),k.push({i:j.length,x:c[0]}),j.push(null),h=dj.lastIndex;for(h<b.length&&j.push(b.substring(h)),d=0,f=k.length;(c=dj.exec(a))&&f>d;++d)if(g=k[d],g.x==c[0]){if(g.i)if(null==j[g.i+1])for(j[g.i-1]+=g.x,j.splice(g.i,1),e=d+1;f>e;++e)k[e].i--;else for(j[g.i-1]+=g.x+j[g.i+1],j.splice(g.i,2),e=d+1;f>e;++e)k[e].i-=2;else if(null==j[g.i+1])j[g.i]=g.x;else for(j[g.i]=g.x+j[g.i+1],j.splice(g.i+1,1),e=d+1;f>e;++e)k[e].i--;k.splice(d,1),f--,d--}else g.x=oe(parseFloat(c[0]),parseFloat(g.x));for(;f>d;)g=k.pop(),null==j[g.i+1]?j[g.i]=g.x:(j[g.i]=g.x+j[g.i+1],j.splice(g.i+1,1)),f--;return 1===j.length?null==j[0]?(g=k[0].x,function(a){return g(a)+""}):function(){return b}:function(a){for(d=0;f>d;++d)j[(g=k[d]).i]=g.x(a);return j.join("")}}function qe(a,b){for(var c,d=Zg.interpolators.length;--d>=0&&!(c=Zg.interpolators[d](a,b)););return c}function re(a,b){var c,d=[],e=[],f=a.length,g=b.length,h=Math.min(a.length,b.length);for(c=0;h>c;++c)d.push(qe(a[c],b[c]));for(;f>c;++c)e[c]=a[c];for(;g>c;++c)e[c]=b[c];return function(a){for(c=0;h>c;++c)e[c]=d[c](a);return e}}function se(a){return function(b){return 0>=b?0:b>=1?1:a(b)}}function te(a){return function(b){return 1-a(1-b)}}function ue(a){return function(b){return.5*(.5>b?a(2*b):2-a(2-2*b))}}function ve(a){return a*a}function we(a){return a*a*a}function xe(a){if(0>=a)return 0;if(a>=1)return 1;var b=a*a,c=b*a;return 4*(.5>a?c:3*(a-b)+c-.75)}function ye(a){return function(b){return Math.pow(b,a)}}function ze(a){return 1-Math.cos(a*Eh)}function Ae(a){return Math.pow(2,10*(a-1))}function Be(a){return 1-Math.sqrt(1-a*a)}function Ce(a,b){var c;return arguments.length<2&&(b=.45),arguments.length?c=b/Dh*Math.asin(1/a):(a=1,c=b/4),function(d){return 1+a*Math.pow(2,-10*d)*Math.sin((d-c)*Dh/b)}}function De(a){return a||(a=1.70158),function(b){return b*b*((a+1)*b-a)}}function Ee(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}function Fe(a,b){a=Zg.hcl(a),b=Zg.hcl(b);var c=a.h,d=a.c,e=a.l,f=b.h-c,g=b.c-d,h=b.l-e;return isNaN(g)&&(g=0,d=isNaN(d)?b.c:d),isNaN(f)?(f=0,c=isNaN(c)?b.h:c):f>180?f-=360:-180>f&&(f+=360),function(a){return ib(c+f*a,d+g*a,e+h*a)+""}}function Ge(a,b){a=Zg.hsl(a),b=Zg.hsl(b);var c=a.h,d=a.s,e=a.l,f=b.h-c,g=b.s-d,h=b.l-e;return isNaN(g)&&(g=0,d=isNaN(d)?b.s:d),isNaN(f)?(f=0,c=isNaN(c)?b.h:c):f>180?f-=360:-180>f&&(f+=360),function(a){return fb(c+f*a,d+g*a,e+h*a)+""}}function He(a,b){a=Zg.lab(a),b=Zg.lab(b);var c=a.l,d=a.a,e=a.b,f=b.l-c,g=b.a-d,h=b.b-e;return function(a){return lb(c+f*a,d+g*a,e+h*a)+""}}function Ie(a,b){return b-=a,function(c){return Math.round(a+b*c)}}function Je(a){var b=[a.a,a.b],c=[a.c,a.d],d=Le(b),e=Ke(b,c),f=Le(Me(c,b,-e))||0;b[0]*c[1]<c[0]*b[1]&&(b[0]*=-1,b[1]*=-1,d*=-1,e*=-1),this.rotate=(d?Math.atan2(b[1],b[0]):Math.atan2(-c[0],c[1]))*Ih,this.translate=[a.e,a.f],this.scale=[d,f],this.skew=f?Math.atan2(e,f)*Ih:0}function Ke(a,b){return a[0]*b[0]+a[1]*b[1]}function Le(a){var b=Math.sqrt(Ke(a,a));return b&&(a[0]/=b,a[1]/=b),b}function Me(a,b,c){return a[0]+=c*b[0],a[1]+=c*b[1],a}function Ne(a,b){var c,d=[],e=[],f=Zg.transform(a),g=Zg.transform(b),h=f.translate,i=g.translate,j=f.rotate,k=g.rotate,l=f.skew,m=g.skew,n=f.scale,o=g.scale;return h[0]!=i[0]||h[1]!=i[1]?(d.push("translate(",null,",",null,")"),e.push({i:1,x:oe(h[0],i[0])},{i:3,x:oe(h[1],i[1])})):d.push(i[0]||i[1]?"translate("+i+")":""),j!=k?(j-k>180?k+=360:k-j>180&&(j+=360),e.push({i:d.push(d.pop()+"rotate(",null,")")-2,x:oe(j,k)})):k&&d.push(d.pop()+"rotate("+k+")"),l!=m?e.push({i:d.push(d.pop()+"skewX(",null,")")-2,x:oe(l,m)}):m&&d.push(d.pop()+"skewX("+m+")"),n[0]!=o[0]||n[1]!=o[1]?(c=d.push(d.pop()+"scale(",null,",",null,")"),e.push({i:c-4,x:oe(n[0],o[0])},{i:c-2,x:oe(n[1],o[1])})):(1!=o[0]||1!=o[1])&&d.push(d.pop()+"scale("+o+")"),c=e.length,function(a){for(var b,f=-1;++f<c;)d[(b=e[f]).i]=b.x(a);return d.join("")}}function Oe(a,b){return b=b-(a=+a)?1/(b-a):0,function(c){return(c-a)*b}}function Pe(a,b){return b=b-(a=+a)?1/(b-a):0,function(c){return Math.max(0,Math.min(1,(c-a)*b))}}function Qe(a){for(var b=a.source,c=a.target,d=Se(b,c),e=[b];b!==d;)b=b.parent,e.push(b);for(var f=e.length;c!==d;)e.splice(f,0,c),c=c.parent;return e}function Re(a){for(var b=[],c=a.parent;null!=c;)b.push(a),a=c,c=c.parent;return b.push(a),b}function Se(a,b){if(a===b)return a;for(var c=Re(a),d=Re(b),e=c.pop(),f=d.pop(),g=null;e===f;)g=e,e=c.pop(),f=d.pop();return g}function Te(a){a.fixed|=2}function Ue(a){a.fixed&=-7}function Ve(a){a.fixed|=4,a.px=a.x,a.py=a.y}function We(a){a.fixed&=-5}function Xe(a,b,c){var d=0,e=0;if(a.charge=0,!a.leaf)for(var f,g=a.nodes,h=g.length,i=-1;++i<h;)f=g[i],null!=f&&(Xe(f,b,c),a.charge+=f.charge,d+=f.charge*f.cx,e+=f.charge*f.cy);if(a.point){a.leaf||(a.point.x+=Math.random()-.5,a.point.y+=Math.random()-.5);var j=b*c[a.point.index];a.charge+=a.pointCharge=j,d+=j*a.point.x,e+=j*a.point.y}a.cx=d/a.charge,a.cy=e/a.charge}function Ye(a,b){return Zg.rebind(a,b,"sort","children","value"),a.nodes=a,a.links=af,a}function Ze(a){return a.children}function $e(a){return a.value}function _e(a,b){return b.value-a.value}function af(a){return Zg.merge(a.map(function(a){return(a.children||[]).map(function(b){return{source:a,target:b}})}))}function bf(a){return a.x}function cf(a){return a.y}function df(a,b,c){a.y0=b,a.y=c}function ef(a){return Zg.range(a.length)}function ff(a){for(var b=-1,c=a[0].length,d=[];++b<c;)d[b]=0;return d}function gf(a){for(var b,c=1,d=0,e=a[0][1],f=a.length;f>c;++c)(b=a[c][1])>e&&(d=c,e=b);return d}function hf(a){return a.reduce(jf,0)}function jf(a,b){return a+b[1]}function kf(a,b){return lf(a,Math.ceil(Math.log(b.length)/Math.LN2+1))}function lf(a,b){for(var c=-1,d=+a[0],e=(a[1]-d)/b,f=[];++c<=b;)f[c]=e*c+d;return f}function mf(a){return[Zg.min(a),Zg.max(a)]}function nf(a,b){return a.parent==b.parent?1:2}function of(a){var b=a.children;return b&&b.length?b[0]:a._tree.thread}function pf(a){var b,c=a.children;return c&&(b=c.length)?c[b-1]:a._tree.thread}function qf(a,b){var c=a.children;if(c&&(e=c.length))for(var d,e,f=-1;++f<e;)b(d=qf(c[f],b),a)>0&&(a=d);return a}function rf(a,b){return a.x-b.x}function sf(a,b){return b.x-a.x}function tf(a,b){return a.depth-b.depth}function uf(a,b){function c(a,d){var e=a.children;if(e&&(g=e.length))for(var f,g,h=null,i=-1;++i<g;)f=e[i],c(f,h),h=f;b(a,d)}c(a,null)}function vf(a){for(var b,c=0,d=0,e=a.children,f=e.length;--f>=0;)b=e[f]._tree,b.prelim+=c,b.mod+=c,c+=b.shift+(d+=b.change)}function wf(a,b,c){a=a._tree,b=b._tree;var d=c/(b.number-a.number);a.change+=d,b.change-=d,b.shift+=c,b.prelim+=c,b.mod+=c}function xf(a,b,c){return a._tree.ancestor.parent==b.parent?a._tree.ancestor:c}function yf(a,b){return a.value-b.value}function zf(a,b){var c=a._pack_next;a._pack_next=b,b._pack_prev=a,b._pack_next=c,c._pack_prev=b}function Af(a,b){a._pack_next=b,b._pack_prev=a}function Bf(a,b){var c=b.x-a.x,d=b.y-a.y,e=a.r+b.r;return.999*e*e>c*c+d*d}function Cf(a){function b(a){k=Math.min(a.x-a.r,k),l=Math.max(a.x+a.r,l),m=Math.min(a.y-a.r,m),n=Math.max(a.y+a.r,n)}if((c=a.children)&&(j=c.length)){var c,d,e,f,g,h,i,j,k=1/0,l=-1/0,m=1/0,n=-1/0;if(c.forEach(Df),d=c[0],d.x=-d.r,d.y=0,b(d),j>1&&(e=c[1],e.x=e.r,e.y=0,b(e),j>2))for(f=c[2],Gf(d,e,f),b(f),zf(d,f),d._pack_prev=f,zf(f,e),e=d._pack_next,g=3;j>g;g++){Gf(d,e,f=c[g]);var o=0,p=1,q=1;for(h=e._pack_next;h!==e;h=h._pack_next,p++)if(Bf(h,f)){o=1;break}if(1==o)for(i=d._pack_prev;i!==h._pack_prev&&!Bf(i,f);i=i._pack_prev,q++);o?(q>p||p==q&&e.r<d.r?Af(d,e=h):Af(d=i,e),g--):(zf(d,f),e=f,b(f))}var r=(k+l)/2,s=(m+n)/2,t=0;for(g=0;j>g;g++)f=c[g],f.x-=r,f.y-=s,t=Math.max(t,f.r+Math.sqrt(f.x*f.x+f.y*f.y));a.r=t,c.forEach(Ef)}}function Df(a){a._pack_next=a._pack_prev=a}function Ef(a){delete a._pack_next,delete a._pack_prev}function Ff(a,b,c,d){var e=a.children;if(a.x=b+=d*a.x,a.y=c+=d*a.y,a.r*=d,e)for(var f=-1,g=e.length;++f<g;)Ff(e[f],b,c,d)}function Gf(a,b,c){var d=a.r+c.r,e=b.x-a.x,f=b.y-a.y;if(d&&(e||f)){var g=b.r+c.r,h=e*e+f*f;g*=g,d*=d;var i=.5+(d-g)/(2*h),j=Math.sqrt(Math.max(0,2*g*(d+h)-(d-=h)*d-g*g))/(2*h);c.x=a.x+i*e+j*f,c.y=a.y+i*f-j*e}else c.x=a.x+d,c.y=a.y}function Hf(a){return 1+Zg.max(a,function(a){return a.y})}function If(a){return a.reduce(function(a,b){return a+b.x},0)/a.length}function Jf(a){var b=a.children;return b&&b.length?Jf(b[0]):a}function Kf(a){var b,c=a.children;return c&&(b=c.length)?Kf(c[b-1]):a}function Lf(a){return{x:a.x,y:a.y,dx:a.dx,dy:a.dy}}function Mf(a,b){var c=a.x+b[3],d=a.y+b[0],e=a.dx-b[1]-b[3],f=a.dy-b[0]-b[2];return 0>e&&(c+=e/2,e=0),0>f&&(d+=f/2,f=0),{x:c,y:d,dx:e,dy:f}}function Nf(a){var b=a[0],c=a[a.length-1];return c>b?[b,c]:[c,b]}function Of(a){return a.rangeExtent?a.rangeExtent():Nf(a.range())}function Pf(a,b,c,d){var e=c(a[0],a[1]),f=d(b[0],b[1]);return function(a){return f(e(a))}}function Qf(a,b){var c,d=0,e=a.length-1,f=a[d],g=a[e];return f>g&&(c=d,d=e,e=c,c=f,f=g,g=c),a[d]=b.floor(f),a[e]=b.ceil(g),a}function Rf(a){return a?{floor:function(b){return Math.floor(b/a)*a},ceil:function(b){return Math.ceil(b/a)*a}}:oj}function Sf(a,b,c,d){var e=[],f=[],g=0,h=Math.min(a.length,b.length)-1;for(a[h]<a[0]&&(a=a.slice().reverse(),b=b.slice().reverse());++g<=h;)e.push(c(a[g-1],a[g])),f.push(d(b[g-1],b[g]));return function(b){var c=Zg.bisect(a,b,1,h)-1;return f[c](e[c](b))}}function Tf(a,b,c,d){function e(){var e=Math.min(a.length,b.length)>2?Sf:Pf,i=d?Pe:Oe;return g=e(a,b,i,c),h=e(b,a,i,qe),f}function f(a){return g(a)}var g,h;return f.invert=function(a){return h(a)},f.domain=function(b){return arguments.length?(a=b.map(Number),e()):a},f.range=function(a){return arguments.length?(b=a,e()):b},f.rangeRound=function(a){return f.range(a).interpolate(Ie)},f.clamp=function(a){return arguments.length?(d=a,e()):d},f.interpolate=function(a){return arguments.length?(c=a,e()):c},f.ticks=function(b){return Xf(a,b)},f.tickFormat=function(b,c){return Yf(a,b,c)},f.nice=function(b){return Vf(a,b),e()},f.copy=function(){return Tf(a,b,c,d)},e()}function Uf(a,b){return Zg.rebind(a,b,"range","rangeRound","interpolate","clamp")}function Vf(a,b){return Qf(a,Rf(Wf(a,b)[2]))}function Wf(a,b){null==b&&(b=10);var c=Nf(a),d=c[1]-c[0],e=Math.pow(10,Math.floor(Math.log(d/b)/Math.LN10)),f=b/d*e;return.15>=f?e*=10:.35>=f?e*=5:.75>=f&&(e*=2),c[0]=Math.ceil(c[0]/e)*e,c[1]=Math.floor(c[1]/e)*e+.5*e,c[2]=e,c}function Xf(a,b){return Zg.range.apply(Zg,Wf(a,b))}function Yf(a,b,c){var d=Wf(a,b);if(c){var e=di.exec(c);if(e.shift(),"s"===e[8]){var f=Zg.formatPrefix(Math.max(lh(d[0]),lh(d[1])));return e[7]||(e[7]="."+Zf(f.scale(d[2]))),e[8]="f",c=Zg.format(e.join("")),function(a){return c(f.scale(a))+f.symbol}}e[7]||(e[7]="."+$f(e[8],d)),c=e.join("")}else c=",."+Zf(d[2])+"f";return Zg.format(c)}function Zf(a){return-Math.floor(Math.log(a)/Math.LN10+.01)}function $f(a,b){var c=Zf(b[2]);return a in pj?Math.abs(c-Zf(Math.max(lh(b[0]),lh(b[1]))))+ +("e"!==a):c-2*("%"===a)}function _f(a,b,c,d){function e(a){return(c?Math.log(0>a?0:a):-Math.log(a>0?0:-a))/Math.log(b)}function f(a){return c?Math.pow(b,a):-Math.pow(b,-a)}function g(b){return a(e(b))}return g.invert=function(b){return f(a.invert(b))},g.domain=function(b){return arguments.length?(c=b[0]>=0,a.domain((d=b.map(Number)).map(e)),g):d},g.base=function(c){return arguments.length?(b=+c,a.domain(d.map(e)),g):b},g.nice=function(){var b=Qf(d.map(e),c?Math:rj);return a.domain(b),d=b.map(f),g},g.ticks=function(){var a=Nf(d),g=[],h=a[0],i=a[1],j=Math.floor(e(h)),k=Math.ceil(e(i)),l=b%1?2:b;if(isFinite(k-j)){if(c){for(;k>j;j++)for(var m=1;l>m;m++)g.push(f(j)*m);g.push(f(j))}else for(g.push(f(j));j++<k;)for(var m=l-1;m>0;m--)g.push(f(j)*m);for(j=0;g[j]<h;j++);for(k=g.length;g[k-1]>i;k--);g=g.slice(j,k)}return g},g.tickFormat=function(a,b){if(!arguments.length)return qj;arguments.length<2?b=qj:"function"!=typeof b&&(b=Zg.format(b));var d,h=Math.max(.1,a/g.ticks().length),i=c?(d=1e-12,Math.ceil):(d=-1e-12,Math.floor);return function(a){return a/f(i(e(a)+d))<=h?b(a):""}},g.copy=function(){return _f(a.copy(),b,c,d)},Uf(g,a)}function ag(a,b,c){function d(b){return a(e(b))}var e=bg(b),f=bg(1/b);return d.invert=function(b){return f(a.invert(b))},d.domain=function(b){return arguments.length?(a.domain((c=b.map(Number)).map(e)),d):c},d.ticks=function(a){return Xf(c,a)},d.tickFormat=function(a,b){return Yf(c,a,b)},d.nice=function(a){return d.domain(Vf(c,a))},d.exponent=function(g){return arguments.length?(e=bg(b=g),f=bg(1/b),a.domain(c.map(e)),d):b},d.copy=function(){return ag(a.copy(),b,c)},Uf(d,a)}function bg(a){return function(b){return 0>b?-Math.pow(-b,a):Math.pow(b,a)}}function cg(a,b){function c(c){return f[((e.get(c)||("range"===b.t?e.set(c,a.push(c)):0/0))-1)%f.length]}function d(b,c){return Zg.range(a.length).map(function(a){return b+c*a})}var e,f,h;return c.domain=function(d){if(!arguments.length)return a;a=[],e=new g;for(var f,h=-1,i=d.length;++h<i;)e.has(f=d[h])||e.set(f,a.push(f));return c[b.t].apply(c,b.a)},c.range=function(a){return arguments.length?(f=a,h=0,b={t:"range",a:arguments},c):f},c.rangePoints=function(e,g){arguments.length<2&&(g=0);var i=e[0],j=e[1],k=(j-i)/(Math.max(1,a.length-1)+g);return f=d(a.length<2?(i+j)/2:i+k*g/2,k),h=0,b={t:"rangePoints",a:arguments},c},c.rangeBands=function(e,g,i){arguments.length<2&&(g=0),arguments.length<3&&(i=g);var j=e[1]<e[0],k=e[j-0],l=e[1-j],m=(l-k)/(a.length-g+2*i);return f=d(k+m*i,m),j&&f.reverse(),h=m*(1-g),b={t:"rangeBands",a:arguments},c},c.rangeRoundBands=function(e,g,i){arguments.length<2&&(g=0),arguments.length<3&&(i=g);var j=e[1]<e[0],k=e[j-0],l=e[1-j],m=Math.floor((l-k)/(a.length-g+2*i)),n=l-k-(a.length-g)*m;return f=d(k+Math.round(n/2),m),j&&f.reverse(),h=Math.round(m*(1-g)),b={t:"rangeRoundBands",a:arguments},c},c.rangeBand=function(){return h},c.rangeExtent=function(){return Nf(b.a[0])},c.copy=function(){return cg(a,b)},c.domain(a)}function dg(b,c){function d(){var a=0,d=c.length;for(f=[];++a<d;)f[a-1]=Zg.quantile(b,a/d);return e}function e(a){return isNaN(a=+a)?void 0:c[Zg.bisect(f,a)]}var f;return e.domain=function(c){return arguments.length?(b=c.filter(function(a){return!isNaN(a)}).sort(a),d()):b},e.range=function(a){return arguments.length?(c=a,d()):c},e.quantiles=function(){return f},e.invertExtent=function(a){return a=c.indexOf(a),0>a?[0/0,0/0]:[a>0?f[a-1]:b[0],a<f.length?f[a]:b[b.length-1]]},e.copy=function(){return dg(b,c)},d()}function eg(a,b,c){function d(b){return c[Math.max(0,Math.min(g,Math.floor(f*(b-a))))]}function e(){return f=c.length/(b-a),g=c.length-1,d}var f,g;return d.domain=function(c){return arguments.length?(a=+c[0],b=+c[c.length-1],e()):[a,b]},d.range=function(a){return arguments.length?(c=a,e()):c},d.invertExtent=function(b){return b=c.indexOf(b),b=0>b?0/0:b/f+a,[b,b+1/f]},d.copy=function(){return eg(a,b,c)},e()}function fg(a,b){function c(c){return c>=c?b[Zg.bisect(a,c)]:void 0}return c.domain=function(b){return arguments.length?(a=b,c):a},c.range=function(a){return arguments.length?(b=a,c):b},c.invertExtent=function(c){return c=b.indexOf(c),[a[c-1],a[c]]},c.copy=function(){return fg(a,b)},c}function gg(a){function b(a){return+a}return b.invert=b,b.domain=b.range=function(c){return arguments.length?(a=c.map(b),b):a},b.ticks=function(b){return Xf(a,b)},b.tickFormat=function(b,c){return Yf(a,b,c)},b.copy=function(){return gg(a)},b}function hg(a){return a.innerRadius}function ig(a){return a.outerRadius}function jg(a){return a.startAngle}function kg(a){return a.endAngle}function lg(a){function b(b){function g(){j.push("M",f(a(k),h))}for(var i,j=[],k=[],l=-1,m=b.length,n=Ab(c),o=Ab(d);++l<m;)e.call(this,i=b[l],l)?k.push([+n.call(this,i,l),+o.call(this,i,l)]):k.length&&(g(),k=[]);return k.length&&g(),j.length?j.join(""):null}var c=Bd,d=Cd,e=Bc,f=mg,g=f.key,h=.7;return b.x=function(a){return arguments.length?(c=a,b):c},b.y=function(a){return arguments.length?(d=a,b):d},b.defined=function(a){return arguments.length?(e=a,b):e},b.interpolate=function(a){return arguments.length?(g="function"==typeof a?f=a:(f=yj.get(a)||mg).key,b):g},b.tension=function(a){return arguments.length?(h=a,b):h},b}function mg(a){return a.join("L")}function ng(a){return mg(a)+"Z"}function og(a){for(var b=0,c=a.length,d=a[0],e=[d[0],",",d[1]];++b<c;)e.push("H",(d[0]+(d=a[b])[0])/2,"V",d[1]);return c>1&&e.push("H",d[0]),e.join("")}function pg(a){for(var b=0,c=a.length,d=a[0],e=[d[0],",",d[1]];++b<c;)e.push("V",(d=a[b])[1],"H",d[0]);return e.join("")}function qg(a){for(var b=0,c=a.length,d=a[0],e=[d[0],",",d[1]];++b<c;)e.push("H",(d=a[b])[0],"V",d[1]);return e.join("")}function rg(a,b){return a.length<4?mg(a):a[1]+ug(a.slice(1,a.length-1),vg(a,b))}function sg(a,b){return a.length<3?mg(a):a[0]+ug((a.push(a[0]),a),vg([a[a.length-2]].concat(a,[a[1]]),b))}function tg(a,b){return a.length<3?mg(a):a[0]+ug(a,vg(a,b))}function ug(a,b){if(b.length<1||a.length!=b.length&&a.length!=b.length+2)return mg(a);var c=a.length!=b.length,d="",e=a[0],f=a[1],g=b[0],h=g,i=1;if(c&&(d+="Q"+(f[0]-2*g[0]/3)+","+(f[1]-2*g[1]/3)+","+f[0]+","+f[1],e=a[1],i=2),b.length>1){h=b[1],f=a[i],i++,d+="C"+(e[0]+g[0])+","+(e[1]+g[1])+","+(f[0]-h[0])+","+(f[1]-h[1])+","+f[0]+","+f[1];for(var j=2;j<b.length;j++,i++)f=a[i],h=b[j],d+="S"+(f[0]-h[0])+","+(f[1]-h[1])+","+f[0]+","+f[1]}if(c){var k=a[i];d+="Q"+(f[0]+2*h[0]/3)+","+(f[1]+2*h[1]/3)+","+k[0]+","+k[1]}return d}function vg(a,b){for(var c,d=[],e=(1-b)/2,f=a[0],g=a[1],h=1,i=a.length;++h<i;)c=f,f=g,g=a[h],d.push([e*(g[0]-c[0]),e*(g[1]-c[1])]);return d}function wg(a){if(a.length<3)return mg(a);var b=1,c=a.length,d=a[0],e=d[0],f=d[1],g=[e,e,e,(d=a[1])[0]],h=[f,f,f,d[1]],i=[e,",",f,"L",Ag(Bj,g),",",Ag(Bj,h)];for(a.push(a[c-1]);++b<=c;)d=a[b],g.shift(),g.push(d[0]),h.shift(),h.push(d[1]),Bg(i,g,h);return a.pop(),i.push("L",d),i.join("")}function xg(a){if(a.length<4)return mg(a);for(var b,c=[],d=-1,e=a.length,f=[0],g=[0];++d<3;)b=a[d],f.push(b[0]),g.push(b[1]);for(c.push(Ag(Bj,f)+","+Ag(Bj,g)),--d;++d<e;)b=a[d],f.shift(),f.push(b[0]),g.shift(),g.push(b[1]),Bg(c,f,g);return c.join("")}function yg(a){for(var b,c,d=-1,e=a.length,f=e+4,g=[],h=[];++d<4;)c=a[d%e],g.push(c[0]),h.push(c[1]);for(b=[Ag(Bj,g),",",Ag(Bj,h)],--d;++d<f;)c=a[d%e],g.shift(),g.push(c[0]),h.shift(),h.push(c[1]),Bg(b,g,h);return b.join("")}function zg(a,b){var c=a.length-1;if(c)for(var d,e,f=a[0][0],g=a[0][1],h=a[c][0]-f,i=a[c][1]-g,j=-1;++j<=c;)d=a[j],e=j/c,d[0]=b*d[0]+(1-b)*(f+e*h),d[1]=b*d[1]+(1-b)*(g+e*i);return wg(a)}function Ag(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]+a[3]*b[3]}function Bg(a,b,c){a.push("C",Ag(zj,b),",",Ag(zj,c),",",Ag(Aj,b),",",Ag(Aj,c),",",Ag(Bj,b),",",Ag(Bj,c))}function Cg(a,b){return(b[1]-a[1])/(b[0]-a[0])}function Dg(a){for(var b=0,c=a.length-1,d=[],e=a[0],f=a[1],g=d[0]=Cg(e,f);++b<c;)d[b]=(g+(g=Cg(e=f,f=a[b+1])))/2;return d[b]=g,d}function Eg(a){for(var b,c,d,e,f=[],g=Dg(a),h=-1,i=a.length-1;++h<i;)b=Cg(a[h],a[h+1]),lh(b)<Fh?g[h]=g[h+1]=0:(c=g[h]/b,d=g[h+1]/b,e=c*c+d*d,e>9&&(e=3*b/Math.sqrt(e),g[h]=e*c,g[h+1]=e*d));for(h=-1;++h<=i;)e=(a[Math.min(i,h+1)][0]-a[Math.max(0,h-1)][0])/(6*(1+g[h]*g[h])),f.push([e||0,g[h]*e||0]);return f}function Fg(a){return a.length<3?mg(a):a[0]+ug(a,Eg(a))}function Gg(a){for(var b,c,d,e=-1,f=a.length;++e<f;)b=a[e],c=b[0],d=b[1]+wj,b[0]=c*Math.cos(d),b[1]=c*Math.sin(d);return a}function Hg(a){function b(b){function i(){p.push("M",h(a(r),l),k,j(a(q.reverse()),l),"Z")}for(var m,n,o,p=[],q=[],r=[],s=-1,t=b.length,u=Ab(c),v=Ab(e),w=c===d?function(){return n}:Ab(d),x=e===f?function(){return o}:Ab(f);++s<t;)g.call(this,m=b[s],s)?(q.push([n=+u.call(this,m,s),o=+v.call(this,m,s)]),r.push([+w.call(this,m,s),+x.call(this,m,s)])):q.length&&(i(),q=[],r=[]);return q.length&&i(),p.length?p.join(""):null}var c=Bd,d=Bd,e=0,f=Cd,g=Bc,h=mg,i=h.key,j=h,k="L",l=.7;return b.x=function(a){return arguments.length?(c=d=a,b):d},b.x0=function(a){return arguments.length?(c=a,b):c},b.x1=function(a){return arguments.length?(d=a,b):d},b.y=function(a){return arguments.length?(e=f=a,b):f},b.y0=function(a){return arguments.length?(e=a,b):e},b.y1=function(a){return arguments.length?(f=a,b):f},b.defined=function(a){return arguments.length?(g=a,b):g},b.interpolate=function(a){return arguments.length?(i="function"==typeof a?h=a:(h=yj.get(a)||mg).key,j=h.reverse||h,k=h.closed?"M":"L",b):i},b.tension=function(a){return arguments.length?(l=a,b):l},b}function Ig(a){return a.radius}function Jg(a){return[a.x,a.y]}function Kg(a){return function(){var b=a.apply(this,arguments),c=b[0],d=b[1]+wj;return[c*Math.cos(d),c*Math.sin(d)]}}function Lg(){return 64}function Mg(){return"circle"}function Ng(a){var b=Math.sqrt(a/Ch);return"M0,"+b+"A"+b+","+b+" 0 1,1 0,"+-b+"A"+b+","+b+" 0 1,1 0,"+b+"Z"}function Og(a,b){return qh(a,Hj),a.id=b,a}function Pg(a,b,c,d){var e=a.id;return K(a,"function"==typeof c?function(a,f,g){a.__transition__[e].tween.set(b,d(c.call(a,a.__data__,f,g)))}:(c=d(c),function(a){a.__transition__[e].tween.set(b,c)}))}function Qg(a){return null==a&&(a=""),function(){this.textContent=a}}function Rg(a,b,c,d){var e=a.__transition__||(a.__transition__={active:0,count:0}),f=e[c];if(!f){var h=d.time;f=e[c]={tween:new g,time:h,ease:d.ease,delay:d.delay,duration:d.duration},++e.count,Zg.timer(function(d){function g(d){return e.active>c?j():(e.active=c,f.event&&f.event.start.call(a,k,b),f.tween.forEach(function(c,d){(d=d.call(a,k,b))&&p.push(d)}),void Zg.timer(function(){return o.c=i(d||1)?Bc:i,1},0,h))}function i(d){if(e.active!==c)return j();for(var g=d/n,h=l(g),i=p.length;i>0;)p[--i].call(a,h);return g>=1?(f.event&&f.event.end.call(a,k,b),j()):void 0}function j(){return--e.count?delete e[c]:delete a.__transition__,1}var k=a.__data__,l=f.ease,m=f.delay,n=f.duration,o=ai,p=[];return o.t=m+h,d>=m?g(d-m):void(o.c=g)
},0,h)}}function Sg(a,b){a.attr("transform",function(a){return"translate("+b(a)+",0)"})}function Tg(a,b){a.attr("transform",function(a){return"translate(0,"+b(a)+")"})}function Ug(a){return a.toISOString()}function Vg(a,b,c){function d(b){return a(b)}function e(a,c){var d=a[1]-a[0],e=d/c,f=Zg.bisect(Qj,e);return f==Qj.length?[b.year,Wf(a.map(function(a){return a/31536e6}),c)[2]]:f?b[e/Qj[f-1]<Qj[f]/e?f-1:f]:[Tj,Wf(a,c)[2]]}return d.invert=function(b){return Wg(a.invert(b))},d.domain=function(b){return arguments.length?(a.domain(b),d):a.domain().map(Wg)},d.nice=function(a,b){function c(c){return!isNaN(c)&&!a.range(c,Wg(+c+1),b).length}var f=d.domain(),g=Nf(f),h=null==a?e(g,10):"number"==typeof a&&e(g,a);return h&&(a=h[0],b=h[1]),d.domain(Qf(f,b>1?{floor:function(b){for(;c(b=a.floor(b));)b=Wg(b-1);return b},ceil:function(b){for(;c(b=a.ceil(b));)b=Wg(+b+1);return b}}:a))},d.ticks=function(a,b){var c=Nf(d.domain()),f=null==a?e(c,10):"number"==typeof a?e(c,a):!a.range&&[{range:a},b];return f&&(a=f[0],b=f[1]),a.range(c[0],Wg(+c[1]+1),1>b?1:b)},d.tickFormat=function(){return c},d.copy=function(){return Vg(a.copy(),b,c)},Uf(d,a)}function Wg(a){return new Date(a)}function Xg(a){return JSON.parse(a.responseText)}function Yg(a){var b=ah.createRange();return b.selectNode(ah.body),b.createContextualFragment(a.responseText)}var Zg={version:"3.4.4"};Date.now||(Date.now=function(){return+new Date});var $g=[].slice,_g=function(a){return $g.call(a)},ah=document,bh=ah.documentElement,ch=window;try{_g(bh.childNodes)[0].nodeType}catch(dh){_g=function(a){for(var b=a.length,c=new Array(b);b--;)c[b]=a[b];return c}}try{ah.createElement("div").style.setProperty("opacity",0,"")}catch(eh){var fh=ch.Element.prototype,gh=fh.setAttribute,hh=fh.setAttributeNS,ih=ch.CSSStyleDeclaration.prototype,jh=ih.setProperty;fh.setAttribute=function(a,b){gh.call(this,a,b+"")},fh.setAttributeNS=function(a,b,c){hh.call(this,a,b,c+"")},ih.setProperty=function(a,b,c){jh.call(this,a,b+"",c)}}Zg.ascending=a,Zg.descending=function(a,b){return a>b?-1:b>a?1:b>=a?0:0/0},Zg.min=function(a,b){var c,d,e=-1,f=a.length;if(1===arguments.length){for(;++e<f&&!(null!=(c=a[e])&&c>=c);)c=void 0;for(;++e<f;)null!=(d=a[e])&&c>d&&(c=d)}else{for(;++e<f&&!(null!=(c=b.call(a,a[e],e))&&c>=c);)c=void 0;for(;++e<f;)null!=(d=b.call(a,a[e],e))&&c>d&&(c=d)}return c},Zg.max=function(a,b){var c,d,e=-1,f=a.length;if(1===arguments.length){for(;++e<f&&!(null!=(c=a[e])&&c>=c);)c=void 0;for(;++e<f;)null!=(d=a[e])&&d>c&&(c=d)}else{for(;++e<f&&!(null!=(c=b.call(a,a[e],e))&&c>=c);)c=void 0;for(;++e<f;)null!=(d=b.call(a,a[e],e))&&d>c&&(c=d)}return c},Zg.extent=function(a,b){var c,d,e,f=-1,g=a.length;if(1===arguments.length){for(;++f<g&&!(null!=(c=e=a[f])&&c>=c);)c=e=void 0;for(;++f<g;)null!=(d=a[f])&&(c>d&&(c=d),d>e&&(e=d))}else{for(;++f<g&&!(null!=(c=e=b.call(a,a[f],f))&&c>=c);)c=void 0;for(;++f<g;)null!=(d=b.call(a,a[f],f))&&(c>d&&(c=d),d>e&&(e=d))}return[c,e]},Zg.sum=function(a,b){var c,d=0,e=a.length,f=-1;if(1===arguments.length)for(;++f<e;)isNaN(c=+a[f])||(d+=c);else for(;++f<e;)isNaN(c=+b.call(a,a[f],f))||(d+=c);return d},Zg.mean=function(a,c){var d,e=a.length,f=0,g=-1,h=0;if(1===arguments.length)for(;++g<e;)b(d=a[g])&&(f+=(d-f)/++h);else for(;++g<e;)b(d=c.call(a,a[g],g))&&(f+=(d-f)/++h);return h?f:void 0},Zg.quantile=function(a,b){var c=(a.length-1)*b+1,d=Math.floor(c),e=+a[d-1],f=c-d;return f?e+f*(a[d]-e):e},Zg.median=function(c,d){return arguments.length>1&&(c=c.map(d)),c=c.filter(b),c.length?Zg.quantile(c.sort(a),.5):void 0};var kh=c(a);Zg.bisectLeft=kh.left,Zg.bisect=Zg.bisectRight=kh.right,Zg.bisector=function(b){return c(1===b.length?function(c,d){return a(b(c),d)}:b)},Zg.shuffle=function(a){for(var b,c,d=a.length;d;)c=Math.random()*d--|0,b=a[d],a[d]=a[c],a[c]=b;return a},Zg.permute=function(a,b){for(var c=b.length,d=new Array(c);c--;)d[c]=a[b[c]];return d},Zg.pairs=function(a){for(var b,c=0,d=a.length-1,e=a[0],f=new Array(0>d?0:d);d>c;)f[c]=[b=e,e=a[++c]];return f},Zg.zip=function(){if(!(e=arguments.length))return[];for(var a=-1,b=Zg.min(arguments,d),c=new Array(b);++a<b;)for(var e,f=-1,g=c[a]=new Array(e);++f<e;)g[f]=arguments[f][a];return c},Zg.transpose=function(a){return Zg.zip.apply(Zg,a)},Zg.keys=function(a){var b=[];for(var c in a)b.push(c);return b},Zg.values=function(a){var b=[];for(var c in a)b.push(a[c]);return b},Zg.entries=function(a){var b=[];for(var c in a)b.push({key:c,value:a[c]});return b},Zg.merge=function(a){for(var b,c,d,e=a.length,f=-1,g=0;++f<e;)g+=a[f].length;for(c=new Array(g);--e>=0;)for(d=a[e],b=d.length;--b>=0;)c[--g]=d[b];return c};var lh=Math.abs;Zg.range=function(a,b,c){if(arguments.length<3&&(c=1,arguments.length<2&&(b=a,a=0)),(b-a)/c===1/0)throw new Error("infinite range");var d,f=[],g=e(lh(c)),h=-1;if(a*=g,b*=g,c*=g,0>c)for(;(d=a+c*++h)>b;)f.push(d/g);else for(;(d=a+c*++h)<b;)f.push(d/g);return f},Zg.map=function(a){var b=new g;if(a instanceof g)a.forEach(function(a,c){b.set(a,c)});else for(var c in a)b.set(c,a[c]);return b},f(g,{has:h,get:function(a){return this[mh+a]},set:function(a,b){return this[mh+a]=b},remove:i,keys:j,values:function(){var a=[];return this.forEach(function(b,c){a.push(c)}),a},entries:function(){var a=[];return this.forEach(function(b,c){a.push({key:b,value:c})}),a},size:k,empty:l,forEach:function(a){for(var b in this)b.charCodeAt(0)===nh&&a.call(this,b.substring(1),this[b])}});var mh="\x00",nh=mh.charCodeAt(0);Zg.nest=function(){function a(b,h,i){if(i>=f.length)return d?d.call(e,h):c?h.sort(c):h;for(var j,k,l,m,n=-1,o=h.length,p=f[i++],q=new g;++n<o;)(m=q.get(j=p(k=h[n])))?m.push(k):q.set(j,[k]);return b?(k=b(),l=function(c,d){k.set(c,a(b,d,i))}):(k={},l=function(c,d){k[c]=a(b,d,i)}),q.forEach(l),k}function b(a,c){if(c>=f.length)return a;var d=[],e=h[c++];return a.forEach(function(a,e){d.push({key:a,values:b(e,c)})}),e?d.sort(function(a,b){return e(a.key,b.key)}):d}var c,d,e={},f=[],h=[];return e.map=function(b,c){return a(c,b,0)},e.entries=function(c){return b(a(Zg.map,c,0),0)},e.key=function(a){return f.push(a),e},e.sortKeys=function(a){return h[f.length-1]=a,e},e.sortValues=function(a){return c=a,e},e.rollup=function(a){return d=a,e},e},Zg.set=function(a){var b=new m;if(a)for(var c=0,d=a.length;d>c;++c)b.add(a[c]);return b},f(m,{has:h,add:function(a){return this[mh+a]=!0,a},remove:function(a){return a=mh+a,a in this&&delete this[a]},values:j,size:k,empty:l,forEach:function(a){for(var b in this)b.charCodeAt(0)===nh&&a.call(this,b.substring(1))}}),Zg.behavior={},Zg.rebind=function(a,b){for(var c,d=1,e=arguments.length;++d<e;)a[c=arguments[d]]=n(a,b,b[c]);return a};var oh=["webkit","ms","moz","Moz","o","O"];Zg.dispatch=function(){for(var a=new q,b=-1,c=arguments.length;++b<c;)a[arguments[b]]=r(a);return a},q.prototype.on=function(a,b){var c=a.indexOf("."),d="";if(c>=0&&(d=a.substring(c+1),a=a.substring(0,c)),a)return arguments.length<2?this[a].on(d):this[a].on(d,b);if(2===arguments.length){if(null==b)for(a in this)this.hasOwnProperty(a)&&this[a].on(d,null);return this}},Zg.event=null,Zg.requote=function(a){return a.replace(ph,"\\$&")};var ph=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,qh={}.__proto__?function(a,b){a.__proto__=b}:function(a,b){for(var c in b)a[c]=b[c]},rh=function(a,b){return b.querySelector(a)},sh=function(a,b){return b.querySelectorAll(a)},th=bh[o(bh,"matchesSelector")],uh=function(a,b){return th.call(a,b)};"function"==typeof Sizzle&&(rh=function(a,b){return Sizzle(a,b)[0]||null},sh=Sizzle,uh=Sizzle.matchesSelector),Zg.selection=function(){return yh};var vh=Zg.selection.prototype=[];vh.select=function(a){var b,c,d,e,f=[];a=w(a);for(var g=-1,h=this.length;++g<h;){f.push(b=[]),b.parentNode=(d=this[g]).parentNode;for(var i=-1,j=d.length;++i<j;)(e=d[i])?(b.push(c=a.call(e,e.__data__,i,g)),c&&"__data__"in e&&(c.__data__=e.__data__)):b.push(null)}return v(f)},vh.selectAll=function(a){var b,c,d=[];a=x(a);for(var e=-1,f=this.length;++e<f;)for(var g=this[e],h=-1,i=g.length;++h<i;)(c=g[h])&&(d.push(b=_g(a.call(c,c.__data__,h,e))),b.parentNode=c);return v(d)};var wh={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/"};Zg.ns={prefix:wh,qualify:function(a){var b=a.indexOf(":"),c=a;return b>=0&&(c=a.substring(0,b),a=a.substring(b+1)),wh.hasOwnProperty(c)?{space:wh[c],local:a}:a}},vh.attr=function(a,b){if(arguments.length<2){if("string"==typeof a){var c=this.node();return a=Zg.ns.qualify(a),a.local?c.getAttributeNS(a.space,a.local):c.getAttribute(a)}for(b in a)this.each(y(b,a[b]));return this}return this.each(y(a,b))},vh.classed=function(a,b){if(arguments.length<2){if("string"==typeof a){var c=this.node(),d=(a=B(a)).length,e=-1;if(b=c.classList){for(;++e<d;)if(!b.contains(a[e]))return!1}else for(b=c.getAttribute("class");++e<d;)if(!A(a[e]).test(b))return!1;return!0}for(b in a)this.each(C(b,a[b]));return this}return this.each(C(a,b))},vh.style=function(a,b,c){var d=arguments.length;if(3>d){if("string"!=typeof a){2>d&&(b="");for(c in a)this.each(E(c,a[c],b));return this}if(2>d)return ch.getComputedStyle(this.node(),null).getPropertyValue(a);c=""}return this.each(E(a,b,c))},vh.property=function(a,b){if(arguments.length<2){if("string"==typeof a)return this.node()[a];for(b in a)this.each(F(b,a[b]));return this}return this.each(F(a,b))},vh.text=function(a){return arguments.length?this.each("function"==typeof a?function(){var b=a.apply(this,arguments);this.textContent=null==b?"":b}:null==a?function(){this.textContent=""}:function(){this.textContent=a}):this.node().textContent},vh.html=function(a){return arguments.length?this.each("function"==typeof a?function(){var b=a.apply(this,arguments);this.innerHTML=null==b?"":b}:null==a?function(){this.innerHTML=""}:function(){this.innerHTML=a}):this.node().innerHTML},vh.append=function(a){return a=G(a),this.select(function(){return this.appendChild(a.apply(this,arguments))})},vh.insert=function(a,b){return a=G(a),b=w(b),this.select(function(){return this.insertBefore(a.apply(this,arguments),b.apply(this,arguments)||null)})},vh.remove=function(){return this.each(function(){var a=this.parentNode;a&&a.removeChild(this)})},vh.data=function(a,b){function c(a,c){var d,e,f,h=a.length,l=c.length,m=Math.min(h,l),n=new Array(l),o=new Array(l),p=new Array(h);if(b){var q,r=new g,s=new g,t=[];for(d=-1;++d<h;)q=b.call(e=a[d],e.__data__,d),r.has(q)?p[d]=e:r.set(q,e),t.push(q);for(d=-1;++d<l;)q=b.call(c,f=c[d],d),(e=r.get(q))?(n[d]=e,e.__data__=f):s.has(q)||(o[d]=H(f)),s.set(q,f),r.remove(q);for(d=-1;++d<h;)r.has(t[d])&&(p[d]=a[d])}else{for(d=-1;++d<m;)e=a[d],f=c[d],e?(e.__data__=f,n[d]=e):o[d]=H(f);for(;l>d;++d)o[d]=H(c[d]);for(;h>d;++d)p[d]=a[d]}o.update=n,o.parentNode=n.parentNode=p.parentNode=a.parentNode,i.push(o),j.push(n),k.push(p)}var d,e,f=-1,h=this.length;if(!arguments.length){for(a=new Array(h=(d=this[0]).length);++f<h;)(e=d[f])&&(a[f]=e.__data__);return a}var i=L([]),j=v([]),k=v([]);if("function"==typeof a)for(;++f<h;)c(d=this[f],a.call(d,d.parentNode.__data__,f));else for(;++f<h;)c(d=this[f],a);return j.enter=function(){return i},j.exit=function(){return k},j},vh.datum=function(a){return arguments.length?this.property("__data__",a):this.property("__data__")},vh.filter=function(a){var b,c,d,e=[];"function"!=typeof a&&(a=I(a));for(var f=0,g=this.length;g>f;f++){e.push(b=[]),b.parentNode=(c=this[f]).parentNode;for(var h=0,i=c.length;i>h;h++)(d=c[h])&&a.call(d,d.__data__,h,f)&&b.push(d)}return v(e)},vh.order=function(){for(var a=-1,b=this.length;++a<b;)for(var c,d=this[a],e=d.length-1,f=d[e];--e>=0;)(c=d[e])&&(f&&f!==c.nextSibling&&f.parentNode.insertBefore(c,f),f=c);return this},vh.sort=function(a){a=J.apply(this,arguments);for(var b=-1,c=this.length;++b<c;)this[b].sort(a);return this.order()},vh.each=function(a){return K(this,function(b,c,d){a.call(b,b.__data__,c,d)})},vh.call=function(a){var b=_g(arguments);return a.apply(b[0]=this,b),this},vh.empty=function(){return!this.node()},vh.node=function(){for(var a=0,b=this.length;b>a;a++)for(var c=this[a],d=0,e=c.length;e>d;d++){var f=c[d];if(f)return f}return null},vh.size=function(){var a=0;return this.each(function(){++a}),a};var xh=[];Zg.selection.enter=L,Zg.selection.enter.prototype=xh,xh.append=vh.append,xh.empty=vh.empty,xh.node=vh.node,xh.call=vh.call,xh.size=vh.size,xh.select=function(a){for(var b,c,d,e,f,g=[],h=-1,i=this.length;++h<i;){d=(e=this[h]).update,g.push(b=[]),b.parentNode=e.parentNode;for(var j=-1,k=e.length;++j<k;)(f=e[j])?(b.push(d[j]=c=a.call(e.parentNode,f.__data__,j,h)),c.__data__=f.__data__):b.push(null)}return v(g)},xh.insert=function(a,b){return arguments.length<2&&(b=M(this)),vh.insert.call(this,a,b)},vh.transition=function(){for(var a,b,c=Dj||++Ij,d=[],e=Ej||{time:Date.now(),ease:xe,delay:0,duration:250},f=-1,g=this.length;++f<g;){d.push(a=[]);for(var h=this[f],i=-1,j=h.length;++i<j;)(b=h[i])&&Rg(b,i,c,e),a.push(b)}return Og(d,c)},vh.interrupt=function(){return this.each(N)},Zg.select=function(a){var b=["string"==typeof a?rh(a,ah):a];return b.parentNode=bh,v([b])},Zg.selectAll=function(a){var b=_g("string"==typeof a?sh(a,ah):a);return b.parentNode=bh,v([b])};var yh=Zg.select(bh);vh.on=function(a,b,c){var d=arguments.length;if(3>d){if("string"!=typeof a){2>d&&(b=!1);for(c in a)this.each(O(c,a[c],b));return this}if(2>d)return(d=this.node()["__on"+a])&&d._;c=!1}return this.each(O(a,b,c))};var zh=Zg.map({mouseenter:"mouseover",mouseleave:"mouseout"});zh.forEach(function(a){"on"+a in ah&&zh.remove(a)});var Ah="onselectstart"in ah?null:o(bh.style,"userSelect"),Bh=0;Zg.mouse=function(a){return S(a,t())},Zg.touches=function(a,b){return arguments.length<2&&(b=t().touches),b?_g(b).map(function(b){var c=S(a,b);return c.identifier=b.identifier,c}):[]},Zg.behavior.drag=function(){function a(){this.on("mousedown.drag",e).on("touchstart.drag",f)}function b(a,b,e,f,g){return function(){function h(){var a,c,d=b(m,p);d&&(a=d[0]-t[0],c=d[1]-t[1],o|=a|c,t=d,n({type:"drag",x:d[0]+j[0],y:d[1]+j[1],dx:a,dy:c}))}function i(){b(m,p)&&(r.on(f+q,null).on(g+q,null),s(o&&Zg.event.target===l),n({type:"dragend"}))}var j,k=this,l=Zg.event.target,m=k.parentNode,n=c.of(k,arguments),o=0,p=a(),q=".drag"+(null==p?"":"-"+p),r=Zg.select(e()).on(f+q,h).on(g+q,i),s=R(),t=b(m,p);d?(j=d.apply(k,arguments),j=[j.x-t[0],j.y-t[1]]):j=[0,0],n({type:"dragstart"})}}var c=u(a,"drag","dragstart","dragend"),d=null,e=b(p,Zg.mouse,V,"mousemove","mouseup"),f=b(T,Zg.touch,U,"touchmove","touchend");return a.origin=function(b){return arguments.length?(d=b,a):d},Zg.rebind(a,c,"on")};var Ch=Math.PI,Dh=2*Ch,Eh=Ch/2,Fh=1e-6,Gh=Fh*Fh,Hh=Ch/180,Ih=180/Ch,Jh=Math.SQRT2,Kh=2,Lh=4;Zg.interpolateZoom=function(a,b){function c(a){var b=a*s;if(r){var c=_(p),g=f/(Kh*m)*(c*ab(Jh*b+p)-$(p));return[d+g*j,e+g*k,f*c/_(Jh*b+p)]}return[d+a*j,e+a*k,f*Math.exp(Jh*b)]}var d=a[0],e=a[1],f=a[2],g=b[0],h=b[1],i=b[2],j=g-d,k=h-e,l=j*j+k*k,m=Math.sqrt(l),n=(i*i-f*f+Lh*l)/(2*f*Kh*m),o=(i*i-f*f-Lh*l)/(2*i*Kh*m),p=Math.log(Math.sqrt(n*n+1)-n),q=Math.log(Math.sqrt(o*o+1)-o),r=q-p,s=(r||Math.log(i/f))/Jh;return c.duration=1e3*s,c},Zg.behavior.zoom=function(){function a(a){a.on(B,j).on(Oh+".zoom",l).on(C,m).on("dblclick.zoom",n).on(E,k)}function b(a){return[(a[0]-y.x)/y.k,(a[1]-y.y)/y.k]}function c(a){return[a[0]*y.k+y.x,a[1]*y.k+y.y]}function d(a){y.k=Math.max(A[0],Math.min(A[1],a))}function e(a,b){b=c(b),y.x+=a[0]-b[0],y.y+=a[1]-b[1]}function f(){v&&v.domain(t.range().map(function(a){return(a-y.x)/y.k}).map(t.invert)),x&&x.domain(w.range().map(function(a){return(a-y.y)/y.k}).map(w.invert))}function g(a){a({type:"zoomstart"})}function h(a){f(),a({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function i(a){a({type:"zoomend"})}function j(){function a(){k=1,e(Zg.mouse(d),n),h(j)}function c(){l.on(C,ch===d?m:null).on(D,null),o(k&&Zg.event.target===f),i(j)}var d=this,f=Zg.event.target,j=F.of(d,arguments),k=0,l=Zg.select(ch).on(C,a).on(D,c),n=b(Zg.mouse(d)),o=R();N.call(d),g(j)}function k(){function a(){var a=Zg.touches(n);return m=y.k,a.forEach(function(a){a.identifier in p&&(p[a.identifier]=b(a))}),a}function c(){for(var b=Zg.event.changedTouches,c=0,f=b.length;f>c;++c)p[b[c].identifier]=null;var g=a(),i=Date.now();if(1===g.length){if(500>i-r){var j=g[0],k=p[j.identifier];d(2*y.k),e(j,k),s(),h(o)}r=i}else if(g.length>1){var j=g[0],l=g[1],m=j[0]-l[0],n=j[1]-l[1];q=m*m+n*n}}function f(){for(var a,b,c,f,g=Zg.touches(n),i=0,j=g.length;j>i;++i,f=null)if(c=g[i],f=p[c.identifier]){if(b)break;a=c,b=f}if(f){var k=(k=c[0]-a[0])*k+(k=c[1]-a[1])*k,l=q&&Math.sqrt(k/q);a=[(a[0]+c[0])/2,(a[1]+c[1])/2],b=[(b[0]+f[0])/2,(b[1]+f[1])/2],d(l*m)}r=null,e(a,b),h(o)}function l(){if(Zg.event.touches.length){for(var b=Zg.event.changedTouches,c=0,d=b.length;d>c;++c)delete p[b[c].identifier];for(var e in p)return void a()}w.on(t,null),x.on(B,j).on(E,k),z(),i(o)}var m,n=this,o=F.of(n,arguments),p={},q=0,t=".zoom-"+Zg.event.changedTouches[0].identifier,u="touchmove"+t,v="touchend"+t,w=Zg.select(Zg.event.target).on(u,f).on(v,l),x=Zg.select(n).on(B,null).on(E,c),z=R();N.call(n),c(),g(o)}function l(){var a=F.of(this,arguments);q?clearTimeout(q):(N.call(this),g(a)),q=setTimeout(function(){q=null,i(a)},50),s();var c=p||Zg.mouse(this);o||(o=b(c)),d(Math.pow(2,.002*Mh())*y.k),e(c,o),h(a)}function m(){o=null}function n(){var a=F.of(this,arguments),c=Zg.mouse(this),f=b(c),j=Math.log(y.k)/Math.LN2;g(a),d(Math.pow(2,Zg.event.shiftKey?Math.ceil(j)-1:Math.floor(j)+1)),e(c,f),h(a),i(a)}var o,p,q,r,t,v,w,x,y={x:0,y:0,k:1},z=[960,500],A=Nh,B="mousedown.zoom",C="mousemove.zoom",D="mouseup.zoom",E="touchstart.zoom",F=u(a,"zoomstart","zoom","zoomend");return a.event=function(a){a.each(function(){var a=F.of(this,arguments),b=y;Dj?Zg.select(this).transition().each("start.zoom",function(){y=this.__chart__||{x:0,y:0,k:1},g(a)}).tween("zoom:zoom",function(){var c=z[0],d=z[1],e=c/2,f=d/2,g=Zg.interpolateZoom([(e-y.x)/y.k,(f-y.y)/y.k,c/y.k],[(e-b.x)/b.k,(f-b.y)/b.k,c/b.k]);return function(b){var d=g(b),i=c/d[2];this.__chart__=y={x:e-d[0]*i,y:f-d[1]*i,k:i},h(a)}}).each("end.zoom",function(){i(a)}):(this.__chart__=y,g(a),h(a),i(a))})},a.translate=function(b){return arguments.length?(y={x:+b[0],y:+b[1],k:y.k},f(),a):[y.x,y.y]},a.scale=function(b){return arguments.length?(y={x:y.x,y:y.y,k:+b},f(),a):y.k},a.scaleExtent=function(b){return arguments.length?(A=null==b?Nh:[+b[0],+b[1]],a):A},a.center=function(b){return arguments.length?(p=b&&[+b[0],+b[1]],a):p},a.size=function(b){return arguments.length?(z=b&&[+b[0],+b[1]],a):z},a.x=function(b){return arguments.length?(v=b,t=b.copy(),y={x:0,y:0,k:1},a):v},a.y=function(b){return arguments.length?(x=b,w=b.copy(),y={x:0,y:0,k:1},a):x},Zg.rebind(a,F,"on")};var Mh,Nh=[0,1/0],Oh="onwheel"in ah?(Mh=function(){return-Zg.event.deltaY*(Zg.event.deltaMode?120:1)},"wheel"):"onmousewheel"in ah?(Mh=function(){return Zg.event.wheelDelta},"mousewheel"):(Mh=function(){return-Zg.event.detail},"MozMousePixelScroll");cb.prototype.toString=function(){return this.rgb()+""},Zg.hsl=function(a,b,c){return 1===arguments.length?a instanceof eb?db(a.h,a.s,a.l):vb(""+a,wb,db):db(+a,+b,+c)};var Ph=eb.prototype=new cb;Ph.brighter=function(a){return a=Math.pow(.7,arguments.length?a:1),db(this.h,this.s,this.l/a)},Ph.darker=function(a){return a=Math.pow(.7,arguments.length?a:1),db(this.h,this.s,a*this.l)},Ph.rgb=function(){return fb(this.h,this.s,this.l)},Zg.hcl=function(a,b,c){return 1===arguments.length?a instanceof hb?gb(a.h,a.c,a.l):a instanceof kb?mb(a.l,a.a,a.b):mb((a=xb((a=Zg.rgb(a)).r,a.g,a.b)).l,a.a,a.b):gb(+a,+b,+c)};var Qh=hb.prototype=new cb;Qh.brighter=function(a){return gb(this.h,this.c,Math.min(100,this.l+Rh*(arguments.length?a:1)))},Qh.darker=function(a){return gb(this.h,this.c,Math.max(0,this.l-Rh*(arguments.length?a:1)))},Qh.rgb=function(){return ib(this.h,this.c,this.l).rgb()},Zg.lab=function(a,b,c){return 1===arguments.length?a instanceof kb?jb(a.l,a.a,a.b):a instanceof hb?ib(a.l,a.c,a.h):xb((a=Zg.rgb(a)).r,a.g,a.b):jb(+a,+b,+c)};var Rh=18,Sh=.95047,Th=1,Uh=1.08883,Vh=kb.prototype=new cb;Vh.brighter=function(a){return jb(Math.min(100,this.l+Rh*(arguments.length?a:1)),this.a,this.b)},Vh.darker=function(a){return jb(Math.max(0,this.l-Rh*(arguments.length?a:1)),this.a,this.b)},Vh.rgb=function(){return lb(this.l,this.a,this.b)},Zg.rgb=function(a,b,c){return 1===arguments.length?a instanceof tb?sb(a.r,a.g,a.b):vb(""+a,sb,fb):sb(~~a,~~b,~~c)};var Wh=tb.prototype=new cb;Wh.brighter=function(a){a=Math.pow(.7,arguments.length?a:1);var b=this.r,c=this.g,d=this.b,e=30;return b||c||d?(b&&e>b&&(b=e),c&&e>c&&(c=e),d&&e>d&&(d=e),sb(Math.min(255,~~(b/a)),Math.min(255,~~(c/a)),Math.min(255,~~(d/a)))):sb(e,e,e)},Wh.darker=function(a){return a=Math.pow(.7,arguments.length?a:1),sb(~~(a*this.r),~~(a*this.g),~~(a*this.b))},Wh.hsl=function(){return wb(this.r,this.g,this.b)},Wh.toString=function(){return"#"+ub(this.r)+ub(this.g)+ub(this.b)};var Xh=Zg.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Xh.forEach(function(a,b){Xh.set(a,qb(b))}),Zg.functor=Ab,Zg.xhr=Cb(Bb),Zg.dsv=function(a,b){function c(a,c,f){arguments.length<3&&(f=c,c=null);var g=Db(a,b,null==c?d:e(c),f);return g.row=function(a){return arguments.length?g.response(null==(c=a)?d:e(a)):c},g}function d(a){return c.parse(a.responseText)}function e(a){return function(b){return c.parse(b.responseText,a)}}function f(b){return b.map(g).join(a)}function g(a){return h.test(a)?'"'+a.replace(/\"/g,'""')+'"':a}var h=new RegExp('["'+a+"\n]"),i=a.charCodeAt(0);return c.parse=function(a,b){var d;return c.parseRows(a,function(a,c){if(d)return d(a,c-1);var e=new Function("d","return {"+a.map(function(a,b){return JSON.stringify(a)+": d["+b+"]"}).join(",")+"}");d=b?function(a,c){return b(e(a),c)}:e})},c.parseRows=function(a,b){function c(){if(k>=j)return g;if(e)return e=!1,f;var b=k;if(34===a.charCodeAt(b)){for(var c=b;c++<j;)if(34===a.charCodeAt(c)){if(34!==a.charCodeAt(c+1))break;++c}k=c+2;var d=a.charCodeAt(c+1);return 13===d?(e=!0,10===a.charCodeAt(c+2)&&++k):10===d&&(e=!0),a.substring(b+1,c).replace(/""/g,'"')}for(;j>k;){var d=a.charCodeAt(k++),h=1;if(10===d)e=!0;else if(13===d)e=!0,10===a.charCodeAt(k)&&(++k,++h);else if(d!==i)continue;return a.substring(b,k-h)}return a.substring(b)}for(var d,e,f={},g={},h=[],j=a.length,k=0,l=0;(d=c())!==g;){for(var m=[];d!==f&&d!==g;)m.push(d),d=c();(!b||(m=b(m,l++)))&&h.push(m)}return h},c.format=function(b){if(Array.isArray(b[0]))return c.formatRows(b);var d=new m,e=[];return b.forEach(function(a){for(var b in a)d.has(b)||e.push(d.add(b))}),[e.map(g).join(a)].concat(b.map(function(b){return e.map(function(a){return g(b[a])}).join(a)})).join("\n")},c.formatRows=function(a){return a.map(f).join("\n")},c},Zg.csv=Zg.dsv(",","text/csv"),Zg.tsv=Zg.dsv(" ","text/tab-separated-values"),Zg.touch=function(a,b,c){if(arguments.length<3&&(c=b,b=t().changedTouches),b)for(var d,e=0,f=b.length;f>e;++e)if((d=b[e]).identifier===c)return S(a,d)};var Yh,Zh,$h,_h,ai,bi=ch[o(ch,"requestAnimationFrame")]||function(a){setTimeout(a,17)};Zg.timer=function(a,b,c){var d=arguments.length;2>d&&(b=0),3>d&&(c=Date.now());var e=c+b,f={c:a,t:e,f:!1,n:null};Zh?Zh.n=f:Yh=f,Zh=f,$h||(_h=clearTimeout(_h),$h=1,bi(Fb))},Zg.timer.flush=function(){Gb(),Hb()},Zg.round=function(a,b){return b?Math.round(a*(b=Math.pow(10,b)))/b:Math.round(a)};var ci=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Jb);Zg.formatPrefix=function(a,b){var c=0;return a&&(0>a&&(a*=-1),b&&(a=Zg.round(a,Ib(a,b))),c=1+Math.floor(1e-12+Math.log(a)/Math.LN10),c=Math.max(-24,Math.min(24,3*Math.floor((c-1)/3)))),ci[8+c/3]};var di=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ei=Zg.map({b:function(a){return a.toString(2)},c:function(a){return String.fromCharCode(a)},o:function(a){return a.toString(8)},x:function(a){return a.toString(16)},X:function(a){return a.toString(16).toUpperCase()},g:function(a,b){return a.toPrecision(b)},e:function(a,b){return a.toExponential(b)},f:function(a,b){return a.toFixed(b)},r:function(a,b){return(a=Zg.round(a,Ib(a,b))).toFixed(Math.max(0,Math.min(20,Ib(a*(1+1e-15),b))))}}),fi=Zg.time={},gi=Date;Mb.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(){hi.setUTCDate.apply(this._,arguments)},setDay:function(){hi.setUTCDay.apply(this._,arguments)},setFullYear:function(){hi.setUTCFullYear.apply(this._,arguments)},setHours:function(){hi.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){hi.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){hi.setUTCMinutes.apply(this._,arguments)},setMonth:function(){hi.setUTCMonth.apply(this._,arguments)},setSeconds:function(){hi.setUTCSeconds.apply(this._,arguments)},setTime:function(){hi.setTime.apply(this._,arguments)}};var hi=Date.prototype;fi.year=Nb(function(a){return a=fi.day(a),a.setMonth(0,1),a},function(a,b){a.setFullYear(a.getFullYear()+b)},function(a){return a.getFullYear()}),fi.years=fi.year.range,fi.years.utc=fi.year.utc.range,fi.day=Nb(function(a){var b=new gi(2e3,0);return b.setFullYear(a.getFullYear(),a.getMonth(),a.getDate()),b},function(a,b){a.setDate(a.getDate()+b)},function(a){return a.getDate()-1}),fi.days=fi.day.range,fi.days.utc=fi.day.utc.range,fi.dayOfYear=function(a){var b=fi.year(a);return Math.floor((a-b-6e4*(a.getTimezoneOffset()-b.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(a,b){b=7-b;var c=fi[a]=Nb(function(a){return(a=fi.day(a)).setDate(a.getDate()-(a.getDay()+b)%7),a},function(a,b){a.setDate(a.getDate()+7*Math.floor(b))},function(a){var c=fi.year(a).getDay();return Math.floor((fi.dayOfYear(a)+(c+b)%7)/7)-(c!==b)});fi[a+"s"]=c.range,fi[a+"s"].utc=c.utc.range,fi[a+"OfYear"]=function(a){var c=fi.year(a).getDay();return Math.floor((fi.dayOfYear(a)+(c+b)%7)/7)}}),fi.week=fi.sunday,fi.weeks=fi.sunday.range,fi.weeks.utc=fi.sunday.utc.range,fi.weekOfYear=fi.sundayOfYear;var ii={"-":"",_:" ",0:"0"},ji=/^\s*\d+/,ki=/^%/;Zg.locale=function(a){return{numberFormat:Kb(a),timeFormat:Pb(a)}};var li=Zg.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Zg.format=li.numberFormat,Zg.geo={},ic.prototype={s:0,t:0,add:function(a){jc(a,this.t,mi),jc(mi.s,this.s,this),this.s?this.t+=mi.t:this.s=mi.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var mi=new ic;Zg.geo.stream=function(a,b){a&&ni.hasOwnProperty(a.type)?ni[a.type](a,b):kc(a,b)};var ni={Feature:function(a,b){kc(a.geometry,b)},FeatureCollection:function(a,b){for(var c=a.features,d=-1,e=c.length;++d<e;)kc(c[d].geometry,b)}},oi={Sphere:function(a,b){b.sphere()},Point:function(a,b){a=a.coordinates,b.point(a[0],a[1],a[2])},MultiPoint:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)a=c[d],b.point(a[0],a[1],a[2])},LineString:function(a,b){lc(a.coordinates,b,0)},MultiLineString:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)lc(c[d],b,0)},Polygon:function(a,b){mc(a.coordinates,b)},MultiPolygon:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)mc(c[d],b)},GeometryCollection:function(a,b){for(var c=a.geometries,d=-1,e=c.length;++d<e;)kc(c[d],b)}};Zg.geo.area=function(a){return pi=0,Zg.geo.stream(a,ri),pi};var pi,qi=new ic,ri={sphere:function(){pi+=4*Ch},point:p,lineStart:p,lineEnd:p,polygonStart:function(){qi.reset(),ri.lineStart=nc},polygonEnd:function(){var a=2*qi;pi+=0>a?4*Ch+a:a,ri.lineStart=ri.lineEnd=ri.point=p}};Zg.geo.bounds=function(){function a(a,b){t.push(u=[k=a,m=a]),l>b&&(l=b),b>n&&(n=b)}function b(b,c){var d=oc([b*Hh,c*Hh]);if(r){var e=qc(r,d),f=[e[1],-e[0],0],g=qc(f,e);tc(g),g=uc(g);var i=b-o,j=i>0?1:-1,p=g[0]*Ih*j,q=lh(i)>180;if(q^(p>j*o&&j*b>p)){var s=g[1]*Ih;s>n&&(n=s)}else if(p=(p+360)%360-180,q^(p>j*o&&j*b>p)){var s=-g[1]*Ih;l>s&&(l=s)}else l>c&&(l=c),c>n&&(n=c);q?o>b?h(k,b)>h(k,m)&&(m=b):h(b,m)>h(k,m)&&(k=b):m>=k?(k>b&&(k=b),b>m&&(m=b)):b>o?h(k,b)>h(k,m)&&(m=b):h(b,m)>h(k,m)&&(k=b)}else a(b,c);r=d,o=b}function c(){v.point=b}function d(){u[0]=k,u[1]=m,v.point=a,r=null}function e(a,c){if(r){var d=a-o;s+=lh(d)>180?d+(d>0?360:-360):d}else p=a,q=c;ri.point(a,c),b(a,c)}function f(){ri.lineStart()}function g(){e(p,q),ri.lineEnd(),lh(s)>Fh&&(k=-(m=180)),u[0]=k,u[1]=m,r=null}function h(a,b){return(b-=a)<0?b+360:b}function i(a,b){return a[0]-b[0]}function j(a,b){return b[0]<=b[1]?b[0]<=a&&a<=b[1]:a<b[0]||b[1]<a}var k,l,m,n,o,p,q,r,s,t,u,v={point:a,lineStart:c,lineEnd:d,polygonStart:function(){v.point=e,v.lineStart=f,v.lineEnd=g,s=0,ri.polygonStart()},polygonEnd:function(){ri.polygonEnd(),v.point=a,v.lineStart=c,v.lineEnd=d,0>qi?(k=-(m=180),l=-(n=90)):s>Fh?n=90:-Fh>s&&(l=-90),u[0]=k,u[1]=m
}};return function(a){n=m=-(k=l=1/0),t=[],Zg.geo.stream(a,v);var b=t.length;if(b){t.sort(i);for(var c,d=1,e=t[0],f=[e];b>d;++d)c=t[d],j(c[0],e)||j(c[1],e)?(h(e[0],c[1])>h(e[0],e[1])&&(e[1]=c[1]),h(c[0],e[1])>h(e[0],e[1])&&(e[0]=c[0])):f.push(e=c);for(var g,c,o=-1/0,b=f.length-1,d=0,e=f[b];b>=d;e=c,++d)c=f[d],(g=h(e[1],c[0]))>o&&(o=g,k=c[0],m=e[1])}return t=u=null,1/0===k||1/0===l?[[0/0,0/0],[0/0,0/0]]:[[k,l],[m,n]]}}(),Zg.geo.centroid=function(a){si=ti=ui=vi=wi=xi=yi=zi=Ai=Bi=Ci=0,Zg.geo.stream(a,Di);var b=Ai,c=Bi,d=Ci,e=b*b+c*c+d*d;return Gh>e&&(b=xi,c=yi,d=zi,Fh>ti&&(b=ui,c=vi,d=wi),e=b*b+c*c+d*d,Gh>e)?[0/0,0/0]:[Math.atan2(c,b)*Ih,Z(d/Math.sqrt(e))*Ih]};var si,ti,ui,vi,wi,xi,yi,zi,Ai,Bi,Ci,Di={sphere:p,point:wc,lineStart:yc,lineEnd:zc,polygonStart:function(){Di.lineStart=Ac},polygonEnd:function(){Di.lineStart=yc}},Ei=Fc(Bc,Kc,Mc,[-Ch,-Ch/2]),Fi=1e9;Zg.geo.clipExtent=function(){var a,b,c,d,e,f,g={stream:function(a){return e&&(e.valid=!1),e=f(a),e.valid=!0,e},extent:function(h){return arguments.length?(f=Pc(a=+h[0][0],b=+h[0][1],c=+h[1][0],d=+h[1][1]),e&&(e.valid=!1,e=null),g):[[a,b],[c,d]]}};return g.extent([[0,0],[960,500]])},(Zg.geo.conicEqualArea=function(){return Rc(Sc)}).raw=Sc,Zg.geo.albers=function(){return Zg.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Zg.geo.albersUsa=function(){function a(a){var f=a[0],g=a[1];return b=null,c(f,g),b||(d(f,g),b)||e(f,g),b}var b,c,d,e,f=Zg.geo.albers(),g=Zg.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),h=Zg.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),i={point:function(a,c){b=[a,c]}};return a.invert=function(a){var b=f.scale(),c=f.translate(),d=(a[0]-c[0])/b,e=(a[1]-c[1])/b;return(e>=.12&&.234>e&&d>=-.425&&-.214>d?g:e>=.166&&.234>e&&d>=-.214&&-.115>d?h:f).invert(a)},a.stream=function(a){var b=f.stream(a),c=g.stream(a),d=h.stream(a);return{point:function(a,e){b.point(a,e),c.point(a,e),d.point(a,e)},sphere:function(){b.sphere(),c.sphere(),d.sphere()},lineStart:function(){b.lineStart(),c.lineStart(),d.lineStart()},lineEnd:function(){b.lineEnd(),c.lineEnd(),d.lineEnd()},polygonStart:function(){b.polygonStart(),c.polygonStart(),d.polygonStart()},polygonEnd:function(){b.polygonEnd(),c.polygonEnd(),d.polygonEnd()}}},a.precision=function(b){return arguments.length?(f.precision(b),g.precision(b),h.precision(b),a):f.precision()},a.scale=function(b){return arguments.length?(f.scale(b),g.scale(.35*b),h.scale(b),a.translate(f.translate())):f.scale()},a.translate=function(b){if(!arguments.length)return f.translate();var j=f.scale(),k=+b[0],l=+b[1];return c=f.translate(b).clipExtent([[k-.455*j,l-.238*j],[k+.455*j,l+.238*j]]).stream(i).point,d=g.translate([k-.307*j,l+.201*j]).clipExtent([[k-.425*j+Fh,l+.12*j+Fh],[k-.214*j-Fh,l+.234*j-Fh]]).stream(i).point,e=h.translate([k-.205*j,l+.212*j]).clipExtent([[k-.214*j+Fh,l+.166*j+Fh],[k-.115*j-Fh,l+.234*j-Fh]]).stream(i).point,a},a.scale(1070)};var Gi,Hi,Ii,Ji,Ki,Li,Mi={point:p,lineStart:p,lineEnd:p,polygonStart:function(){Hi=0,Mi.lineStart=Tc},polygonEnd:function(){Mi.lineStart=Mi.lineEnd=Mi.point=p,Gi+=lh(Hi/2)}},Ni={point:Uc,lineStart:p,lineEnd:p,polygonStart:p,polygonEnd:p},Oi={point:Xc,lineStart:Yc,lineEnd:Zc,polygonStart:function(){Oi.lineStart=$c},polygonEnd:function(){Oi.point=Xc,Oi.lineStart=Yc,Oi.lineEnd=Zc}};Zg.geo.path=function(){function a(a){return a&&("function"==typeof h&&f.pointRadius(+h.apply(this,arguments)),g&&g.valid||(g=e(f)),Zg.geo.stream(a,g)),f.result()}function b(){return g=null,a}var c,d,e,f,g,h=4.5;return a.area=function(a){return Gi=0,Zg.geo.stream(a,e(Mi)),Gi},a.centroid=function(a){return ui=vi=wi=xi=yi=zi=Ai=Bi=Ci=0,Zg.geo.stream(a,e(Oi)),Ci?[Ai/Ci,Bi/Ci]:zi?[xi/zi,yi/zi]:wi?[ui/wi,vi/wi]:[0/0,0/0]},a.bounds=function(a){return Ki=Li=-(Ii=Ji=1/0),Zg.geo.stream(a,e(Ni)),[[Ii,Ji],[Ki,Li]]},a.projection=function(a){return arguments.length?(e=(c=a)?a.stream||bd(a):Bb,b()):c},a.context=function(a){return arguments.length?(f=null==(d=a)?new Vc:new _c(a),"function"!=typeof h&&f.pointRadius(h),b()):d},a.pointRadius=function(b){return arguments.length?(h="function"==typeof b?b:(f.pointRadius(+b),+b),a):h},a.projection(Zg.geo.albersUsa()).context(null)},Zg.geo.transform=function(a){return{stream:function(b){var c=new cd(b);for(var d in a)c[d]=a[d];return c}}},cd.prototype={point:function(a,b){this.stream.point(a,b)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},Zg.geo.projection=ed,Zg.geo.projectionMutator=fd,(Zg.geo.equirectangular=function(){return ed(hd)}).raw=hd.invert=hd,Zg.geo.rotation=function(a){function b(b){return b=a(b[0]*Hh,b[1]*Hh),b[0]*=Ih,b[1]*=Ih,b}return a=jd(a[0]%360*Hh,a[1]*Hh,a.length>2?a[2]*Hh:0),b.invert=function(b){return b=a.invert(b[0]*Hh,b[1]*Hh),b[0]*=Ih,b[1]*=Ih,b},b},id.invert=hd,Zg.geo.circle=function(){function a(){var a="function"==typeof d?d.apply(this,arguments):d,b=jd(-a[0]*Hh,-a[1]*Hh,0).invert,e=[];return c(null,null,1,{point:function(a,c){e.push(a=b(a,c)),a[0]*=Ih,a[1]*=Ih}}),{type:"Polygon",coordinates:[e]}}var b,c,d=[0,0],e=6;return a.origin=function(b){return arguments.length?(d=b,a):d},a.angle=function(d){return arguments.length?(c=nd((b=+d)*Hh,e*Hh),a):b},a.precision=function(d){return arguments.length?(c=nd(b*Hh,(e=+d)*Hh),a):e},a.angle(90)},Zg.geo.distance=function(a,b){var c,d=(b[0]-a[0])*Hh,e=a[1]*Hh,f=b[1]*Hh,g=Math.sin(d),h=Math.cos(d),i=Math.sin(e),j=Math.cos(e),k=Math.sin(f),l=Math.cos(f);return Math.atan2(Math.sqrt((c=l*g)*c+(c=j*k-i*l*h)*c),i*k+j*l*h)},Zg.geo.graticule=function(){function a(){return{type:"MultiLineString",coordinates:b()}}function b(){return Zg.range(Math.ceil(f/q)*q,e,q).map(m).concat(Zg.range(Math.ceil(j/r)*r,i,r).map(n)).concat(Zg.range(Math.ceil(d/o)*o,c,o).filter(function(a){return lh(a%q)>Fh}).map(k)).concat(Zg.range(Math.ceil(h/p)*p,g,p).filter(function(a){return lh(a%r)>Fh}).map(l))}var c,d,e,f,g,h,i,j,k,l,m,n,o=10,p=o,q=90,r=360,s=2.5;return a.lines=function(){return b().map(function(a){return{type:"LineString",coordinates:a}})},a.outline=function(){return{type:"Polygon",coordinates:[m(f).concat(n(i).slice(1),m(e).reverse().slice(1),n(j).reverse().slice(1))]}},a.extent=function(b){return arguments.length?a.majorExtent(b).minorExtent(b):a.minorExtent()},a.majorExtent=function(b){return arguments.length?(f=+b[0][0],e=+b[1][0],j=+b[0][1],i=+b[1][1],f>e&&(b=f,f=e,e=b),j>i&&(b=j,j=i,i=b),a.precision(s)):[[f,j],[e,i]]},a.minorExtent=function(b){return arguments.length?(d=+b[0][0],c=+b[1][0],h=+b[0][1],g=+b[1][1],d>c&&(b=d,d=c,c=b),h>g&&(b=h,h=g,g=b),a.precision(s)):[[d,h],[c,g]]},a.step=function(b){return arguments.length?a.majorStep(b).minorStep(b):a.minorStep()},a.majorStep=function(b){return arguments.length?(q=+b[0],r=+b[1],a):[q,r]},a.minorStep=function(b){return arguments.length?(o=+b[0],p=+b[1],a):[o,p]},a.precision=function(b){return arguments.length?(s=+b,k=pd(h,g,90),l=qd(d,c,s),m=pd(j,i,90),n=qd(f,e,s),a):s},a.majorExtent([[-180,-90+Fh],[180,90-Fh]]).minorExtent([[-180,-80-Fh],[180,80+Fh]])},Zg.geo.greatArc=function(){function a(){return{type:"LineString",coordinates:[b||d.apply(this,arguments),c||e.apply(this,arguments)]}}var b,c,d=rd,e=sd;return a.distance=function(){return Zg.geo.distance(b||d.apply(this,arguments),c||e.apply(this,arguments))},a.source=function(c){return arguments.length?(d=c,b="function"==typeof c?null:c,a):d},a.target=function(b){return arguments.length?(e=b,c="function"==typeof b?null:b,a):e},a.precision=function(){return arguments.length?a:0},a},Zg.geo.interpolate=function(a,b){return td(a[0]*Hh,a[1]*Hh,b[0]*Hh,b[1]*Hh)},Zg.geo.length=function(a){return Pi=0,Zg.geo.stream(a,Qi),Pi};var Pi,Qi={sphere:p,point:p,lineStart:ud,lineEnd:p,polygonStart:p,polygonEnd:p},Ri=vd(function(a){return Math.sqrt(2/(1+a))},function(a){return 2*Math.asin(a/2)});(Zg.geo.azimuthalEqualArea=function(){return ed(Ri)}).raw=Ri;var Si=vd(function(a){var b=Math.acos(a);return b&&b/Math.sin(b)},Bb);(Zg.geo.azimuthalEquidistant=function(){return ed(Si)}).raw=Si,(Zg.geo.conicConformal=function(){return Rc(wd)}).raw=wd,(Zg.geo.conicEquidistant=function(){return Rc(xd)}).raw=xd;var Ti=vd(function(a){return 1/a},Math.atan);(Zg.geo.gnomonic=function(){return ed(Ti)}).raw=Ti,yd.invert=function(a,b){return[a,2*Math.atan(Math.exp(b))-Eh]},(Zg.geo.mercator=function(){return zd(yd)}).raw=yd;var Ui=vd(function(){return 1},Math.asin);(Zg.geo.orthographic=function(){return ed(Ui)}).raw=Ui;var Vi=vd(function(a){return 1/(1+a)},function(a){return 2*Math.atan(a)});(Zg.geo.stereographic=function(){return ed(Vi)}).raw=Vi,Ad.invert=function(a,b){return[-b,2*Math.atan(Math.exp(a))-Eh]},(Zg.geo.transverseMercator=function(){var a=zd(Ad),b=a.center,c=a.rotate;return a.center=function(a){return a?b([-a[1],a[0]]):(a=b(),[-a[1],a[0]])},a.rotate=function(a){return a?c([a[0],a[1],a.length>2?a[2]+90:90]):(a=c(),[a[0],a[1],a[2]-90])},a.rotate([0,0])}).raw=Ad,Zg.geom={},Zg.geom.hull=function(a){function b(a){if(a.length<3)return[];var b,e=Ab(c),f=Ab(d),g=a.length,h=[],i=[];for(b=0;g>b;b++)h.push([+e.call(this,a[b],b),+f.call(this,a[b],b),b]);for(h.sort(Ed),b=0;g>b;b++)i.push([h[b][0],-h[b][1]]);var j=Dd(h),k=Dd(i),l=k[0]===j[0],m=k[k.length-1]===j[j.length-1],n=[];for(b=j.length-1;b>=0;--b)n.push(a[h[j[b]][2]]);for(b=+l;b<k.length-m;++b)n.push(a[h[k[b]][2]]);return n}var c=Bd,d=Cd;return arguments.length?b(a):(b.x=function(a){return arguments.length?(c=a,b):c},b.y=function(a){return arguments.length?(d=a,b):d},b)},Zg.geom.polygon=function(a){return qh(a,Wi),a};var Wi=Zg.geom.polygon.prototype=[];Wi.area=function(){for(var a,b=-1,c=this.length,d=this[c-1],e=0;++b<c;)a=d,d=this[b],e+=a[1]*d[0]-a[0]*d[1];return.5*e},Wi.centroid=function(a){var b,c,d=-1,e=this.length,f=0,g=0,h=this[e-1];for(arguments.length||(a=-1/(6*this.area()));++d<e;)b=h,h=this[d],c=b[0]*h[1]-h[0]*b[1],f+=(b[0]+h[0])*c,g+=(b[1]+h[1])*c;return[f*a,g*a]},Wi.clip=function(a){for(var b,c,d,e,f,g,h=Hd(a),i=-1,j=this.length-Hd(this),k=this[j-1];++i<j;){for(b=a.slice(),a.length=0,e=this[i],f=b[(d=b.length-h)-1],c=-1;++c<d;)g=b[c],Fd(g,k,e)?(Fd(f,k,e)||a.push(Gd(f,g,k,e)),a.push(g)):Fd(f,k,e)&&a.push(Gd(f,g,k,e)),f=g;h&&a.push(a[0]),k=e}return a};var Xi,Yi,Zi,$i,_i,aj=[],bj=[];Pd.prototype.prepare=function(){for(var a,b=this.edges,c=b.length;c--;)a=b[c].edge,a.b&&a.a||b.splice(c,1);return b.sort(Rd),b.length},_d.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ae.prototype={insert:function(a,b){var c,d,e;if(a){if(b.P=a,b.N=a.N,a.N&&(a.N.P=b),a.N=b,a.R){for(a=a.R;a.L;)a=a.L;a.L=b}else a.R=b;c=a}else this._?(a=ee(this._),b.P=null,b.N=a,a.P=a.L=b,c=a):(b.P=b.N=null,this._=b,c=null);for(b.L=b.R=null,b.U=c,b.C=!0,a=b;c&&c.C;)d=c.U,c===d.L?(e=d.R,e&&e.C?(c.C=e.C=!1,d.C=!0,a=d):(a===c.R&&(ce(this,c),a=c,c=a.U),c.C=!1,d.C=!0,de(this,d))):(e=d.L,e&&e.C?(c.C=e.C=!1,d.C=!0,a=d):(a===c.L&&(de(this,c),a=c,c=a.U),c.C=!1,d.C=!0,ce(this,d))),c=a.U;this._.C=!1},remove:function(a){a.N&&(a.N.P=a.P),a.P&&(a.P.N=a.N),a.N=a.P=null;var b,c,d,e=a.U,f=a.L,g=a.R;if(c=f?g?ee(g):f:g,e?e.L===a?e.L=c:e.R=c:this._=c,f&&g?(d=c.C,c.C=a.C,c.L=f,f.U=c,c!==g?(e=c.U,c.U=a.U,a=c.R,e.L=a,c.R=g,g.U=c):(c.U=e,e=c,a=c.R)):(d=a.C,a=c),a&&(a.U=e),!d){if(a&&a.C)return void(a.C=!1);do{if(a===this._)break;if(a===e.L){if(b=e.R,b.C&&(b.C=!1,e.C=!0,ce(this,e),b=e.R),b.L&&b.L.C||b.R&&b.R.C){b.R&&b.R.C||(b.L.C=!1,b.C=!0,de(this,b),b=e.R),b.C=e.C,e.C=b.R.C=!1,ce(this,e),a=this._;break}}else if(b=e.L,b.C&&(b.C=!1,e.C=!0,de(this,e),b=e.L),b.L&&b.L.C||b.R&&b.R.C){b.L&&b.L.C||(b.R.C=!1,b.C=!0,ce(this,b),b=e.L),b.C=e.C,e.C=b.L.C=!1,de(this,e),a=this._;break}b.C=!0,a=e,e=e.U}while(!a.C);a&&(a.C=!1)}}},Zg.geom.voronoi=function(a){function b(a){var b=new Array(a.length),d=h[0][0],e=h[0][1],f=h[1][0],g=h[1][1];return fe(c(a),h).cells.forEach(function(c,h){var i=c.edges,j=c.site,k=b[h]=i.length?i.map(function(a){var b=a.start();return[b.x,b.y]}):j.x>=d&&j.x<=f&&j.y>=e&&j.y<=g?[[d,g],[f,g],[f,e],[d,e]]:[];k.point=a[h]}),b}function c(a){return a.map(function(a,b){return{x:Math.round(f(a,b)/Fh)*Fh,y:Math.round(g(a,b)/Fh)*Fh,i:b}})}var d=Bd,e=Cd,f=d,g=e,h=cj;return a?b(a):(b.links=function(a){return fe(c(a)).edges.filter(function(a){return a.l&&a.r}).map(function(b){return{source:a[b.l.i],target:a[b.r.i]}})},b.triangles=function(a){var b=[];return fe(c(a)).cells.forEach(function(c,d){for(var e,f,g=c.site,h=c.edges.sort(Rd),i=-1,j=h.length,k=h[j-1].edge,l=k.l===g?k.r:k.l;++i<j;)e=k,f=l,k=h[i].edge,l=k.l===g?k.r:k.l,d<f.i&&d<l.i&&he(g,f,l)<0&&b.push([a[d],a[f.i],a[l.i]])}),b},b.x=function(a){return arguments.length?(f=Ab(d=a),b):d},b.y=function(a){return arguments.length?(g=Ab(e=a),b):e},b.clipExtent=function(a){return arguments.length?(h=null==a?cj:a,b):h===cj?null:h},b.size=function(a){return arguments.length?b.clipExtent(a&&[[0,0],a]):h===cj?null:h&&h[1]},b)};var cj=[[-1e6,-1e6],[1e6,1e6]];Zg.geom.delaunay=function(a){return Zg.geom.voronoi().triangles(a)},Zg.geom.quadtree=function(a,b,c,d,e){function f(a){function f(a,b,c,d,e,f,g,h){if(!isNaN(c)&&!isNaN(d))if(a.leaf){var i=a.x,k=a.y;if(null!=i)if(lh(i-c)+lh(k-d)<.01)j(a,b,c,d,e,f,g,h);else{var l=a.point;a.x=a.y=a.point=null,j(a,l,i,k,e,f,g,h),j(a,b,c,d,e,f,g,h)}else a.x=c,a.y=d,a.point=b}else j(a,b,c,d,e,f,g,h)}function j(a,b,c,d,e,g,h,i){var j=.5*(e+h),k=.5*(g+i),l=c>=j,m=d>=k,n=(m<<1)+l;a.leaf=!1,a=a.nodes[n]||(a.nodes[n]=ke()),l?e=j:h=j,m?g=k:i=k,f(a,b,c,d,e,g,h,i)}var k,l,m,n,o,p,q,r,s,t=Ab(h),u=Ab(i);if(null!=b)p=b,q=c,r=d,s=e;else if(r=s=-(p=q=1/0),l=[],m=[],o=a.length,g)for(n=0;o>n;++n)k=a[n],k.x<p&&(p=k.x),k.y<q&&(q=k.y),k.x>r&&(r=k.x),k.y>s&&(s=k.y),l.push(k.x),m.push(k.y);else for(n=0;o>n;++n){var v=+t(k=a[n],n),w=+u(k,n);p>v&&(p=v),q>w&&(q=w),v>r&&(r=v),w>s&&(s=w),l.push(v),m.push(w)}var x=r-p,y=s-q;x>y?s=q+x:r=p+y;var z=ke();if(z.add=function(a){f(z,a,+t(a,++n),+u(a,n),p,q,r,s)},z.visit=function(a){le(a,z,p,q,r,s)},n=-1,null==b){for(;++n<o;)f(z,a[n],l[n],m[n],p,q,r,s);--n}else a.forEach(z.add);return l=m=a=k=null,z}var g,h=Bd,i=Cd;return(g=arguments.length)?(h=ie,i=je,3===g&&(e=c,d=b,c=b=0),f(a)):(f.x=function(a){return arguments.length?(h=a,f):h},f.y=function(a){return arguments.length?(i=a,f):i},f.extent=function(a){return arguments.length?(null==a?b=c=d=e=null:(b=+a[0][0],c=+a[0][1],d=+a[1][0],e=+a[1][1]),f):null==b?null:[[b,c],[d,e]]},f.size=function(a){return arguments.length?(null==a?b=c=d=e=null:(b=c=0,d=+a[0],e=+a[1]),f):null==b?null:[d-b,e-c]},f)},Zg.interpolateRgb=me,Zg.interpolateObject=ne,Zg.interpolateNumber=oe,Zg.interpolateString=pe;var dj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;Zg.interpolate=qe,Zg.interpolators=[function(a,b){var c=typeof b;return("string"===c?Xh.has(b)||/^(#|rgb\(|hsl\()/.test(b)?me:pe:b instanceof cb?me:Array.isArray(b)?re:"object"===c&&isNaN(b)?ne:oe)(a,b)}],Zg.interpolateArray=re;var ej=function(){return Bb},fj=Zg.map({linear:ej,poly:ye,quad:function(){return ve},cubic:function(){return we},sin:function(){return ze},exp:function(){return Ae},circle:function(){return Be},elastic:Ce,back:De,bounce:function(){return Ee}}),gj=Zg.map({"in":Bb,out:te,"in-out":ue,"out-in":function(a){return ue(te(a))}});Zg.ease=function(a){var b=a.indexOf("-"),c=b>=0?a.substring(0,b):a,d=b>=0?a.substring(b+1):"in";return c=fj.get(c)||ej,d=gj.get(d)||Bb,se(d(c.apply(null,$g.call(arguments,1))))},Zg.interpolateHcl=Fe,Zg.interpolateHsl=Ge,Zg.interpolateLab=He,Zg.interpolateRound=Ie,Zg.transform=function(a){var b=ah.createElementNS(Zg.ns.prefix.svg,"g");return(Zg.transform=function(a){if(null!=a){b.setAttribute("transform",a);var c=b.transform.baseVal.consolidate()}return new Je(c?c.matrix:hj)})(a)},Je.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var hj={a:1,b:0,c:0,d:1,e:0,f:0};Zg.interpolateTransform=Ne,Zg.layout={},Zg.layout.bundle=function(){return function(a){for(var b=[],c=-1,d=a.length;++c<d;)b.push(Qe(a[c]));return b}},Zg.layout.chord=function(){function a(){var a,j,l,m,n,o={},p=[],q=Zg.range(f),r=[];for(c=[],d=[],a=0,m=-1;++m<f;){for(j=0,n=-1;++n<f;)j+=e[m][n];p.push(j),r.push(Zg.range(f)),a+=j}for(g&&q.sort(function(a,b){return g(p[a],p[b])}),h&&r.forEach(function(a,b){a.sort(function(a,c){return h(e[b][a],e[b][c])})}),a=(Dh-k*f)/a,j=0,m=-1;++m<f;){for(l=j,n=-1;++n<f;){var s=q[m],t=r[s][n],u=e[s][t],v=j,w=j+=u*a;o[s+"-"+t]={index:s,subindex:t,startAngle:v,endAngle:w,value:u}}d[s]={index:s,startAngle:l,endAngle:j,value:(j-l)/a},j+=k}for(m=-1;++m<f;)for(n=m-1;++n<f;){var x=o[m+"-"+n],y=o[n+"-"+m];(x.value||y.value)&&c.push(x.value<y.value?{source:y,target:x}:{source:x,target:y})}i&&b()}function b(){c.sort(function(a,b){return i((a.source.value+a.target.value)/2,(b.source.value+b.target.value)/2)})}var c,d,e,f,g,h,i,j={},k=0;return j.matrix=function(a){return arguments.length?(f=(e=a)&&e.length,c=d=null,j):e},j.padding=function(a){return arguments.length?(k=a,c=d=null,j):k},j.sortGroups=function(a){return arguments.length?(g=a,c=d=null,j):g},j.sortSubgroups=function(a){return arguments.length?(h=a,c=null,j):h},j.sortChords=function(a){return arguments.length?(i=a,c&&b(),j):i},j.chords=function(){return c||a(),c},j.groups=function(){return d||a(),d},j},Zg.layout.force=function(){function a(a){return function(b,c,d,e){if(b.point!==a){var f=b.cx-a.x,g=b.cy-a.y,h=e-c,i=f*f+g*g;if(i>h*h/q){if(o>i){var j=b.charge/i;a.px-=f*j,a.py-=g*j}return!0}if(b.point&&i&&o>i){var j=b.pointCharge/i;a.px-=f*j,a.py-=g*j}}return!b.charge}}function b(a){a.px=Zg.event.x,a.py=Zg.event.y,h.resume()}var c,d,e,f,g,h={},i=Zg.dispatch("start","tick","end"),j=[1,1],k=.9,l=ij,m=jj,n=-30,o=kj,p=.1,q=.64,r=[],s=[];return h.tick=function(){if((d*=.99)<.005)return i.end({type:"end",alpha:d=0}),!0;var b,c,h,l,m,o,q,t,u,v=r.length,w=s.length;for(c=0;w>c;++c)h=s[c],l=h.source,m=h.target,t=m.x-l.x,u=m.y-l.y,(o=t*t+u*u)&&(o=d*f[c]*((o=Math.sqrt(o))-e[c])/o,t*=o,u*=o,m.x-=t*(q=l.weight/(m.weight+l.weight)),m.y-=u*q,l.x+=t*(q=1-q),l.y+=u*q);if((q=d*p)&&(t=j[0]/2,u=j[1]/2,c=-1,q))for(;++c<v;)h=r[c],h.x+=(t-h.x)*q,h.y+=(u-h.y)*q;if(n)for(Xe(b=Zg.geom.quadtree(r),d,g),c=-1;++c<v;)(h=r[c]).fixed||b.visit(a(h));for(c=-1;++c<v;)h=r[c],h.fixed?(h.x=h.px,h.y=h.py):(h.x-=(h.px-(h.px=h.x))*k,h.y-=(h.py-(h.py=h.y))*k);i.tick({type:"tick",alpha:d})},h.nodes=function(a){return arguments.length?(r=a,h):r},h.links=function(a){return arguments.length?(s=a,h):s},h.size=function(a){return arguments.length?(j=a,h):j},h.linkDistance=function(a){return arguments.length?(l="function"==typeof a?a:+a,h):l},h.distance=h.linkDistance,h.linkStrength=function(a){return arguments.length?(m="function"==typeof a?a:+a,h):m},h.friction=function(a){return arguments.length?(k=+a,h):k},h.charge=function(a){return arguments.length?(n="function"==typeof a?a:+a,h):n},h.chargeDistance=function(a){return arguments.length?(o=a*a,h):Math.sqrt(o)},h.gravity=function(a){return arguments.length?(p=+a,h):p},h.theta=function(a){return arguments.length?(q=a*a,h):Math.sqrt(q)},h.alpha=function(a){return arguments.length?(a=+a,d?d=a>0?a:0:a>0&&(i.start({type:"start",alpha:d=a}),Zg.timer(h.tick)),h):d},h.start=function(){function a(a,d){if(!c){for(c=new Array(i),h=0;i>h;++h)c[h]=[];for(h=0;j>h;++h){var e=s[h];c[e.source.index].push(e.target),c[e.target.index].push(e.source)}}for(var f,g=c[b],h=-1,j=g.length;++h<j;)if(!isNaN(f=g[h][a]))return f;return Math.random()*d}var b,c,d,i=r.length,k=s.length,o=j[0],p=j[1];for(b=0;i>b;++b)(d=r[b]).index=b,d.weight=0;for(b=0;k>b;++b)d=s[b],"number"==typeof d.source&&(d.source=r[d.source]),"number"==typeof d.target&&(d.target=r[d.target]),++d.source.weight,++d.target.weight;for(b=0;i>b;++b)d=r[b],isNaN(d.x)&&(d.x=a("x",o)),isNaN(d.y)&&(d.y=a("y",p)),isNaN(d.px)&&(d.px=d.x),isNaN(d.py)&&(d.py=d.y);if(e=[],"function"==typeof l)for(b=0;k>b;++b)e[b]=+l.call(this,s[b],b);else for(b=0;k>b;++b)e[b]=l;if(f=[],"function"==typeof m)for(b=0;k>b;++b)f[b]=+m.call(this,s[b],b);else for(b=0;k>b;++b)f[b]=m;if(g=[],"function"==typeof n)for(b=0;i>b;++b)g[b]=+n.call(this,r[b],b);else for(b=0;i>b;++b)g[b]=n;return h.resume()},h.resume=function(){return h.alpha(.1)},h.stop=function(){return h.alpha(0)},h.drag=function(){return c||(c=Zg.behavior.drag().origin(Bb).on("dragstart.force",Te).on("drag.force",b).on("dragend.force",Ue)),arguments.length?void this.on("mouseover.force",Ve).on("mouseout.force",We).call(c):c},Zg.rebind(h,i,"on")};var ij=20,jj=1,kj=1/0;Zg.layout.hierarchy=function(){function a(b,g,h){var i=e.call(c,b,g);if(b.depth=g,h.push(b),i&&(j=i.length)){for(var j,k,l=-1,m=b.children=new Array(j),n=0,o=g+1;++l<j;)k=m[l]=a(i[l],o,h),k.parent=b,n+=k.value;d&&m.sort(d),f&&(b.value=n)}else delete b.children,f&&(b.value=+f.call(c,b,g)||0);return b}function b(a,d){var e=a.children,g=0;if(e&&(h=e.length))for(var h,i=-1,j=d+1;++i<h;)g+=b(e[i],j);else f&&(g=+f.call(c,a,d)||0);return f&&(a.value=g),g}function c(b){var c=[];return a(b,0,c),c}var d=_e,e=Ze,f=$e;return c.sort=function(a){return arguments.length?(d=a,c):d},c.children=function(a){return arguments.length?(e=a,c):e},c.value=function(a){return arguments.length?(f=a,c):f},c.revalue=function(a){return b(a,0),a},c},Zg.layout.partition=function(){function a(b,c,d,e){var f=b.children;if(b.x=c,b.y=b.depth*e,b.dx=d,b.dy=e,f&&(g=f.length)){var g,h,i,j=-1;for(d=b.value?d/b.value:0;++j<g;)a(h=f[j],c,i=h.value*d,e),c+=i}}function b(a){var c=a.children,d=0;if(c&&(e=c.length))for(var e,f=-1;++f<e;)d=Math.max(d,b(c[f]));return 1+d}function c(c,f){var g=d.call(this,c,f);return a(g[0],0,e[0],e[1]/b(g[0])),g}var d=Zg.layout.hierarchy(),e=[1,1];return c.size=function(a){return arguments.length?(e=a,c):e},Ye(c,d)},Zg.layout.pie=function(){function a(f){var g=f.map(function(c,d){return+b.call(a,c,d)}),h=+("function"==typeof d?d.apply(this,arguments):d),i=(("function"==typeof e?e.apply(this,arguments):e)-h)/Zg.sum(g),j=Zg.range(f.length);null!=c&&j.sort(c===lj?function(a,b){return g[b]-g[a]}:function(a,b){return c(f[a],f[b])});var k=[];return j.forEach(function(a){var b;k[a]={data:f[a],value:b=g[a],startAngle:h,endAngle:h+=b*i}}),k}var b=Number,c=lj,d=0,e=Dh;return a.value=function(c){return arguments.length?(b=c,a):b},a.sort=function(b){return arguments.length?(c=b,a):c},a.startAngle=function(b){return arguments.length?(d=b,a):d},a.endAngle=function(b){return arguments.length?(e=b,a):e},a};var lj={};Zg.layout.stack=function(){function a(h,i){var j=h.map(function(c,d){return b.call(a,c,d)}),k=j.map(function(b){return b.map(function(b,c){return[f.call(a,b,c),g.call(a,b,c)]})}),l=c.call(a,k,i);j=Zg.permute(j,l),k=Zg.permute(k,l);var m,n,o,p=d.call(a,k,i),q=j.length,r=j[0].length;for(n=0;r>n;++n)for(e.call(a,j[0][n],o=p[n],k[0][n][1]),m=1;q>m;++m)e.call(a,j[m][n],o+=k[m-1][n][1],k[m][n][1]);return h}var b=Bb,c=ef,d=ff,e=df,f=bf,g=cf;return a.values=function(c){return arguments.length?(b=c,a):b},a.order=function(b){return arguments.length?(c="function"==typeof b?b:mj.get(b)||ef,a):c},a.offset=function(b){return arguments.length?(d="function"==typeof b?b:nj.get(b)||ff,a):d},a.x=function(b){return arguments.length?(f=b,a):f},a.y=function(b){return arguments.length?(g=b,a):g},a.out=function(b){return arguments.length?(e=b,a):e},a};var mj=Zg.map({"inside-out":function(a){var b,c,d=a.length,e=a.map(gf),f=a.map(hf),g=Zg.range(d).sort(function(a,b){return e[a]-e[b]}),h=0,i=0,j=[],k=[];for(b=0;d>b;++b)c=g[b],i>h?(h+=f[c],j.push(c)):(i+=f[c],k.push(c));return k.reverse().concat(j)},reverse:function(a){return Zg.range(a.length).reverse()},"default":ef}),nj=Zg.map({silhouette:function(a){var b,c,d,e=a.length,f=a[0].length,g=[],h=0,i=[];for(c=0;f>c;++c){for(b=0,d=0;e>b;b++)d+=a[b][c][1];d>h&&(h=d),g.push(d)}for(c=0;f>c;++c)i[c]=(h-g[c])/2;return i},wiggle:function(a){var b,c,d,e,f,g,h,i,j,k=a.length,l=a[0],m=l.length,n=[];for(n[0]=i=j=0,c=1;m>c;++c){for(b=0,e=0;k>b;++b)e+=a[b][c][1];for(b=0,f=0,h=l[c][0]-l[c-1][0];k>b;++b){for(d=0,g=(a[b][c][1]-a[b][c-1][1])/(2*h);b>d;++d)g+=(a[d][c][1]-a[d][c-1][1])/h;f+=g*a[b][c][1]}n[c]=i-=e?f/e*h:0,j>i&&(j=i)}for(c=0;m>c;++c)n[c]-=j;return n},expand:function(a){var b,c,d,e=a.length,f=a[0].length,g=1/e,h=[];for(c=0;f>c;++c){for(b=0,d=0;e>b;b++)d+=a[b][c][1];if(d)for(b=0;e>b;b++)a[b][c][1]/=d;else for(b=0;e>b;b++)a[b][c][1]=g}for(c=0;f>c;++c)h[c]=0;return h},zero:ff});Zg.layout.histogram=function(){function a(a,f){for(var g,h,i=[],j=a.map(c,this),k=d.call(this,j,f),l=e.call(this,k,j,f),f=-1,m=j.length,n=l.length-1,o=b?1:1/m;++f<n;)g=i[f]=[],g.dx=l[f+1]-(g.x=l[f]),g.y=0;if(n>0)for(f=-1;++f<m;)h=j[f],h>=k[0]&&h<=k[1]&&(g=i[Zg.bisect(l,h,1,n)-1],g.y+=o,g.push(a[f]));return i}var b=!0,c=Number,d=mf,e=kf;return a.value=function(b){return arguments.length?(c=b,a):c},a.range=function(b){return arguments.length?(d=Ab(b),a):d},a.bins=function(b){return arguments.length?(e="number"==typeof b?function(a){return lf(a,b)}:Ab(b),a):e},a.frequency=function(c){return arguments.length?(b=!!c,a):b},a},Zg.layout.tree=function(){function a(a,f){function g(a,b){var d=a.children,e=a._tree;if(d&&(f=d.length)){for(var f,h,j,k=d[0],l=k,m=-1;++m<f;)j=d[m],g(j,h),l=i(j,h,l),h=j;vf(a);var n=.5*(k._tree.prelim+j._tree.prelim);b?(e.prelim=b._tree.prelim+c(a,b),e.mod=e.prelim-n):e.prelim=n}else b&&(e.prelim=b._tree.prelim+c(a,b))}function h(a,b){a.x=a._tree.prelim+b;var c=a.children;if(c&&(d=c.length)){var d,e=-1;for(b+=a._tree.mod;++e<d;)h(c[e],b)}}function i(a,b,d){if(b){for(var e,f=a,g=a,h=b,i=a.parent.children[0],j=f._tree.mod,k=g._tree.mod,l=h._tree.mod,m=i._tree.mod;h=pf(h),f=of(f),h&&f;)i=of(i),g=pf(g),g._tree.ancestor=a,e=h._tree.prelim+l-f._tree.prelim-j+c(h,f),e>0&&(wf(xf(h,a,d),a,e),j+=e,k+=e),l+=h._tree.mod,j+=f._tree.mod,m+=i._tree.mod,k+=g._tree.mod;h&&!pf(g)&&(g._tree.thread=h,g._tree.mod+=l-k),f&&!of(i)&&(i._tree.thread=f,i._tree.mod+=j-m,d=a)}return d}var j=b.call(this,a,f),k=j[0];uf(k,function(a,b){a._tree={ancestor:a,prelim:0,mod:0,change:0,shift:0,number:b?b._tree.number+1:0}}),g(k),h(k,-k._tree.prelim);var l=qf(k,sf),m=qf(k,rf),n=qf(k,tf),o=l.x-c(l,m)/2,p=m.x+c(m,l)/2,q=n.depth||1;return uf(k,e?function(a){a.x*=d[0],a.y=a.depth*d[1],delete a._tree}:function(a){a.x=(a.x-o)/(p-o)*d[0],a.y=a.depth/q*d[1],delete a._tree}),j}var b=Zg.layout.hierarchy().sort(null).value(null),c=nf,d=[1,1],e=!1;return a.separation=function(b){return arguments.length?(c=b,a):c},a.size=function(b){return arguments.length?(e=null==(d=b),a):e?null:d},a.nodeSize=function(b){return arguments.length?(e=null!=(d=b),a):e?d:null},Ye(a,b)},Zg.layout.pack=function(){function a(a,f){var g=c.call(this,a,f),h=g[0],i=e[0],j=e[1],k=null==b?Math.sqrt:"function"==typeof b?b:function(){return b};if(h.x=h.y=0,uf(h,function(a){a.r=+k(a.value)}),uf(h,Cf),d){var l=d*(b?1:Math.max(2*h.r/i,2*h.r/j))/2;uf(h,function(a){a.r+=l}),uf(h,Cf),uf(h,function(a){a.r-=l})}return Ff(h,i/2,j/2,b?1:1/Math.max(2*h.r/i,2*h.r/j)),g}var b,c=Zg.layout.hierarchy().sort(yf),d=0,e=[1,1];return a.size=function(b){return arguments.length?(e=b,a):e},a.radius=function(c){return arguments.length?(b=null==c||"function"==typeof c?c:+c,a):b},a.padding=function(b){return arguments.length?(d=+b,a):d},Ye(a,c)},Zg.layout.cluster=function(){function a(a,f){var g,h=b.call(this,a,f),i=h[0],j=0;uf(i,function(a){var b=a.children;b&&b.length?(a.x=If(b),a.y=Hf(b)):(a.x=g?j+=c(a,g):0,a.y=0,g=a)});var k=Jf(i),l=Kf(i),m=k.x-c(k,l)/2,n=l.x+c(l,k)/2;return uf(i,e?function(a){a.x=(a.x-i.x)*d[0],a.y=(i.y-a.y)*d[1]}:function(a){a.x=(a.x-m)/(n-m)*d[0],a.y=(1-(i.y?a.y/i.y:1))*d[1]}),h}var b=Zg.layout.hierarchy().sort(null).value(null),c=nf,d=[1,1],e=!1;return a.separation=function(b){return arguments.length?(c=b,a):c},a.size=function(b){return arguments.length?(e=null==(d=b),a):e?null:d},a.nodeSize=function(b){return arguments.length?(e=null!=(d=b),a):e?d:null},Ye(a,b)},Zg.layout.treemap=function(){function a(a,b){for(var c,d,e=-1,f=a.length;++e<f;)d=(c=a[e]).value*(0>b?0:b),c.area=isNaN(d)||0>=d?0:d}function b(c){var f=c.children;if(f&&f.length){var g,h,i,j=l(c),k=[],m=f.slice(),o=1/0,p="slice"===n?j.dx:"dice"===n?j.dy:"slice-dice"===n?1&c.depth?j.dy:j.dx:Math.min(j.dx,j.dy);for(a(m,j.dx*j.dy/c.value),k.area=0;(i=m.length)>0;)k.push(g=m[i-1]),k.area+=g.area,"squarify"!==n||(h=d(k,p))<=o?(m.pop(),o=h):(k.area-=k.pop().area,e(k,p,j,!1),p=Math.min(j.dx,j.dy),k.length=k.area=0,o=1/0);k.length&&(e(k,p,j,!0),k.length=k.area=0),f.forEach(b)}}function c(b){var d=b.children;if(d&&d.length){var f,g=l(b),h=d.slice(),i=[];for(a(h,g.dx*g.dy/b.value),i.area=0;f=h.pop();)i.push(f),i.area+=f.area,null!=f.z&&(e(i,f.z?g.dx:g.dy,g,!h.length),i.length=i.area=0);d.forEach(c)}}function d(a,b){for(var c,d=a.area,e=0,f=1/0,g=-1,h=a.length;++g<h;)(c=a[g].area)&&(f>c&&(f=c),c>e&&(e=c));return d*=d,b*=b,d?Math.max(b*e*o/d,d/(b*f*o)):1/0}function e(a,b,c,d){var e,f=-1,g=a.length,h=c.x,j=c.y,k=b?i(a.area/b):0;if(b==c.dx){for((d||k>c.dy)&&(k=c.dy);++f<g;)e=a[f],e.x=h,e.y=j,e.dy=k,h+=e.dx=Math.min(c.x+c.dx-h,k?i(e.area/k):0);e.z=!0,e.dx+=c.x+c.dx-h,c.y+=k,c.dy-=k}else{for((d||k>c.dx)&&(k=c.dx);++f<g;)e=a[f],e.x=h,e.y=j,e.dx=k,j+=e.dy=Math.min(c.y+c.dy-j,k?i(e.area/k):0);e.z=!1,e.dy+=c.y+c.dy-j,c.x+=k,c.dx-=k}}function f(d){var e=g||h(d),f=e[0];return f.x=0,f.y=0,f.dx=j[0],f.dy=j[1],g&&h.revalue(f),a([f],f.dx*f.dy/f.value),(g?c:b)(f),m&&(g=e),e}var g,h=Zg.layout.hierarchy(),i=Math.round,j=[1,1],k=null,l=Lf,m=!1,n="squarify",o=.5*(1+Math.sqrt(5));return f.size=function(a){return arguments.length?(j=a,f):j},f.padding=function(a){function b(b){var c=a.call(f,b,b.depth);return null==c?Lf(b):Mf(b,"number"==typeof c?[c,c,c,c]:c)}function c(b){return Mf(b,a)}if(!arguments.length)return k;var d;return l=null==(k=a)?Lf:"function"==(d=typeof a)?b:"number"===d?(a=[a,a,a,a],c):c,f},f.round=function(a){return arguments.length?(i=a?Math.round:Number,f):i!=Number},f.sticky=function(a){return arguments.length?(m=a,g=null,f):m},f.ratio=function(a){return arguments.length?(o=a,f):o},f.mode=function(a){return arguments.length?(n=a+"",f):n},Ye(f,h)},Zg.random={normal:function(a,b){var c=arguments.length;return 2>c&&(b=1),1>c&&(a=0),function(){var c,d,e;do c=2*Math.random()-1,d=2*Math.random()-1,e=c*c+d*d;while(!e||e>1);return a+b*c*Math.sqrt(-2*Math.log(e)/e)}},logNormal:function(){var a=Zg.random.normal.apply(Zg,arguments);return function(){return Math.exp(a())}},bates:function(a){var b=Zg.random.irwinHall(a);return function(){return b()/a}},irwinHall:function(a){return function(){for(var b=0,c=0;a>c;c++)b+=Math.random();return b}}},Zg.scale={};var oj={floor:Bb,ceil:Bb};Zg.scale.linear=function(){return Tf([0,1],[0,1],qe,!1)};var pj={s:1,g:1,p:1,r:1,e:1};Zg.scale.log=function(){return _f(Zg.scale.linear().domain([0,1]),10,!0,[1,10])};var qj=Zg.format(".0e"),rj={floor:function(a){return-Math.ceil(-a)},ceil:function(a){return-Math.floor(-a)}};Zg.scale.pow=function(){return ag(Zg.scale.linear(),1,[0,1])},Zg.scale.sqrt=function(){return Zg.scale.pow().exponent(.5)},Zg.scale.ordinal=function(){return cg([],{t:"range",a:[[]]})},Zg.scale.category10=function(){return Zg.scale.ordinal().range(sj)},Zg.scale.category20=function(){return Zg.scale.ordinal().range(tj)},Zg.scale.category20b=function(){return Zg.scale.ordinal().range(uj)},Zg.scale.category20c=function(){return Zg.scale.ordinal().range(vj)};var sj=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(rb),tj=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(rb),uj=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(rb),vj=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(rb);Zg.scale.quantile=function(){return dg([],[])
},Zg.scale.quantize=function(){return eg(0,1,[0,1])},Zg.scale.threshold=function(){return fg([.5],[0,1])},Zg.scale.identity=function(){return gg([0,1])},Zg.svg={},Zg.svg.arc=function(){function a(){var a=b.apply(this,arguments),f=c.apply(this,arguments),g=d.apply(this,arguments)+wj,h=e.apply(this,arguments)+wj,i=(g>h&&(i=g,g=h,h=i),h-g),j=Ch>i?"0":"1",k=Math.cos(g),l=Math.sin(g),m=Math.cos(h),n=Math.sin(h);return i>=xj?a?"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"M0,"+a+"A"+a+","+a+" 0 1,0 0,"+-a+"A"+a+","+a+" 0 1,0 0,"+a+"Z":"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"Z":a?"M"+f*k+","+f*l+"A"+f+","+f+" 0 "+j+",1 "+f*m+","+f*n+"L"+a*m+","+a*n+"A"+a+","+a+" 0 "+j+",0 "+a*k+","+a*l+"Z":"M"+f*k+","+f*l+"A"+f+","+f+" 0 "+j+",1 "+f*m+","+f*n+"L0,0Z"}var b=hg,c=ig,d=jg,e=kg;return a.innerRadius=function(c){return arguments.length?(b=Ab(c),a):b},a.outerRadius=function(b){return arguments.length?(c=Ab(b),a):c},a.startAngle=function(b){return arguments.length?(d=Ab(b),a):d},a.endAngle=function(b){return arguments.length?(e=Ab(b),a):e},a.centroid=function(){var a=(b.apply(this,arguments)+c.apply(this,arguments))/2,f=(d.apply(this,arguments)+e.apply(this,arguments))/2+wj;return[Math.cos(f)*a,Math.sin(f)*a]},a};var wj=-Eh,xj=Dh-Fh;Zg.svg.line=function(){return lg(Bb)};var yj=Zg.map({linear:mg,"linear-closed":ng,step:og,"step-before":pg,"step-after":qg,basis:wg,"basis-open":xg,"basis-closed":yg,bundle:zg,cardinal:tg,"cardinal-open":rg,"cardinal-closed":sg,monotone:Fg});yj.forEach(function(a,b){b.key=a,b.closed=/-closed$/.test(a)});var zj=[0,2/3,1/3,0],Aj=[0,1/3,2/3,0],Bj=[0,1/6,2/3,1/6];Zg.svg.line.radial=function(){var a=lg(Gg);return a.radius=a.x,delete a.x,a.angle=a.y,delete a.y,a},pg.reverse=qg,qg.reverse=pg,Zg.svg.area=function(){return Hg(Bb)},Zg.svg.area.radial=function(){var a=Hg(Gg);return a.radius=a.x,delete a.x,a.innerRadius=a.x0,delete a.x0,a.outerRadius=a.x1,delete a.x1,a.angle=a.y,delete a.y,a.startAngle=a.y0,delete a.y0,a.endAngle=a.y1,delete a.y1,a},Zg.svg.chord=function(){function a(a,h){var i=b(this,f,a,h),j=b(this,g,a,h);return"M"+i.p0+d(i.r,i.p1,i.a1-i.a0)+(c(i,j)?e(i.r,i.p1,i.r,i.p0):e(i.r,i.p1,j.r,j.p0)+d(j.r,j.p1,j.a1-j.a0)+e(j.r,j.p1,i.r,i.p0))+"Z"}function b(a,b,c,d){var e=b.call(a,c,d),f=h.call(a,e,d),g=i.call(a,e,d)+wj,k=j.call(a,e,d)+wj;return{r:f,a0:g,a1:k,p0:[f*Math.cos(g),f*Math.sin(g)],p1:[f*Math.cos(k),f*Math.sin(k)]}}function c(a,b){return a.a0==b.a0&&a.a1==b.a1}function d(a,b,c){return"A"+a+","+a+" 0 "+ +(c>Ch)+",1 "+b}function e(a,b,c,d){return"Q 0,0 "+d}var f=rd,g=sd,h=Ig,i=jg,j=kg;return a.radius=function(b){return arguments.length?(h=Ab(b),a):h},a.source=function(b){return arguments.length?(f=Ab(b),a):f},a.target=function(b){return arguments.length?(g=Ab(b),a):g},a.startAngle=function(b){return arguments.length?(i=Ab(b),a):i},a.endAngle=function(b){return arguments.length?(j=Ab(b),a):j},a},Zg.svg.diagonal=function(){function a(a,e){var f=b.call(this,a,e),g=c.call(this,a,e),h=(f.y+g.y)/2,i=[f,{x:f.x,y:h},{x:g.x,y:h},g];return i=i.map(d),"M"+i[0]+"C"+i[1]+" "+i[2]+" "+i[3]}var b=rd,c=sd,d=Jg;return a.source=function(c){return arguments.length?(b=Ab(c),a):b},a.target=function(b){return arguments.length?(c=Ab(b),a):c},a.projection=function(b){return arguments.length?(d=b,a):d},a},Zg.svg.diagonal.radial=function(){var a=Zg.svg.diagonal(),b=Jg,c=a.projection;return a.projection=function(a){return arguments.length?c(Kg(b=a)):b},a},Zg.svg.symbol=function(){function a(a,d){return(Cj.get(b.call(this,a,d))||Ng)(c.call(this,a,d))}var b=Mg,c=Lg;return a.type=function(c){return arguments.length?(b=Ab(c),a):b},a.size=function(b){return arguments.length?(c=Ab(b),a):c},a};var Cj=Zg.map({circle:Ng,cross:function(a){var b=Math.sqrt(a/5)/2;return"M"+-3*b+","+-b+"H"+-b+"V"+-3*b+"H"+b+"V"+-b+"H"+3*b+"V"+b+"H"+b+"V"+3*b+"H"+-b+"V"+b+"H"+-3*b+"Z"},diamond:function(a){var b=Math.sqrt(a/(2*Gj)),c=b*Gj;return"M0,"+-b+"L"+c+",0 0,"+b+" "+-c+",0Z"},square:function(a){var b=Math.sqrt(a)/2;return"M"+-b+","+-b+"L"+b+","+-b+" "+b+","+b+" "+-b+","+b+"Z"},"triangle-down":function(a){var b=Math.sqrt(a/Fj),c=b*Fj/2;return"M0,"+c+"L"+b+","+-c+" "+-b+","+-c+"Z"},"triangle-up":function(a){var b=Math.sqrt(a/Fj),c=b*Fj/2;return"M0,"+-c+"L"+b+","+c+" "+-b+","+c+"Z"}});Zg.svg.symbolTypes=Cj.keys();var Dj,Ej,Fj=Math.sqrt(3),Gj=Math.tan(30*Hh),Hj=[],Ij=0;Hj.call=vh.call,Hj.empty=vh.empty,Hj.node=vh.node,Hj.size=vh.size,Zg.transition=function(a){return arguments.length?Dj?a.transition():a:yh.transition()},Zg.transition.prototype=Hj,Hj.select=function(a){var b,c,d,e=this.id,f=[];a=w(a);for(var g=-1,h=this.length;++g<h;){f.push(b=[]);for(var i=this[g],j=-1,k=i.length;++j<k;)(d=i[j])&&(c=a.call(d,d.__data__,j,g))?("__data__"in d&&(c.__data__=d.__data__),Rg(c,j,e,d.__transition__[e]),b.push(c)):b.push(null)}return Og(f,e)},Hj.selectAll=function(a){var b,c,d,e,f,g=this.id,h=[];a=x(a);for(var i=-1,j=this.length;++i<j;)for(var k=this[i],l=-1,m=k.length;++l<m;)if(d=k[l]){f=d.__transition__[g],c=a.call(d,d.__data__,l,i),h.push(b=[]);for(var n=-1,o=c.length;++n<o;)(e=c[n])&&Rg(e,n,g,f),b.push(e)}return Og(h,g)},Hj.filter=function(a){var b,c,d,e=[];"function"!=typeof a&&(a=I(a));for(var f=0,g=this.length;g>f;f++){e.push(b=[]);for(var c=this[f],h=0,i=c.length;i>h;h++)(d=c[h])&&a.call(d,d.__data__,h,f)&&b.push(d)}return Og(e,this.id)},Hj.tween=function(a,b){var c=this.id;return arguments.length<2?this.node().__transition__[c].tween.get(a):K(this,null==b?function(b){b.__transition__[c].tween.remove(a)}:function(d){d.__transition__[c].tween.set(a,b)})},Hj.attr=function(a,b){function c(){this.removeAttribute(h)}function d(){this.removeAttributeNS(h.space,h.local)}function e(a){return null==a?c:(a+="",function(){var b,c=this.getAttribute(h);return c!==a&&(b=g(c,a),function(a){this.setAttribute(h,b(a))})})}function f(a){return null==a?d:(a+="",function(){var b,c=this.getAttributeNS(h.space,h.local);return c!==a&&(b=g(c,a),function(a){this.setAttributeNS(h.space,h.local,b(a))})})}if(arguments.length<2){for(b in a)this.attr(b,a[b]);return this}var g="transform"==a?Ne:qe,h=Zg.ns.qualify(a);return Pg(this,"attr."+a,b,h.local?f:e)},Hj.attrTween=function(a,b){function c(a,c){var d=b.call(this,a,c,this.getAttribute(e));return d&&function(a){this.setAttribute(e,d(a))}}function d(a,c){var d=b.call(this,a,c,this.getAttributeNS(e.space,e.local));return d&&function(a){this.setAttributeNS(e.space,e.local,d(a))}}var e=Zg.ns.qualify(a);return this.tween("attr."+a,e.local?d:c)},Hj.style=function(a,b,c){function d(){this.style.removeProperty(a)}function e(b){return null==b?d:(b+="",function(){var d,e=ch.getComputedStyle(this,null).getPropertyValue(a);return e!==b&&(d=qe(e,b),function(b){this.style.setProperty(a,d(b),c)})})}var f=arguments.length;if(3>f){if("string"!=typeof a){2>f&&(b="");for(c in a)this.style(c,a[c],b);return this}c=""}return Pg(this,"style."+a,b,e)},Hj.styleTween=function(a,b,c){function d(d,e){var f=b.call(this,d,e,ch.getComputedStyle(this,null).getPropertyValue(a));return f&&function(b){this.style.setProperty(a,f(b),c)}}return arguments.length<3&&(c=""),this.tween("style."+a,d)},Hj.text=function(a){return Pg(this,"text",a,Qg)},Hj.remove=function(){return this.each("end.transition",function(){var a;this.__transition__.count<2&&(a=this.parentNode)&&a.removeChild(this)})},Hj.ease=function(a){var b=this.id;return arguments.length<1?this.node().__transition__[b].ease:("function"!=typeof a&&(a=Zg.ease.apply(Zg,arguments)),K(this,function(c){c.__transition__[b].ease=a}))},Hj.delay=function(a){var b=this.id;return arguments.length<1?this.node().__transition__[b].delay:K(this,"function"==typeof a?function(c,d,e){c.__transition__[b].delay=+a.call(c,c.__data__,d,e)}:(a=+a,function(c){c.__transition__[b].delay=a}))},Hj.duration=function(a){var b=this.id;return arguments.length<1?this.node().__transition__[b].duration:K(this,"function"==typeof a?function(c,d,e){c.__transition__[b].duration=Math.max(1,a.call(c,c.__data__,d,e))}:(a=Math.max(1,a),function(c){c.__transition__[b].duration=a}))},Hj.each=function(a,b){var c=this.id;if(arguments.length<2){var d=Ej,e=Dj;Dj=c,K(this,function(b,d,e){Ej=b.__transition__[c],a.call(b,b.__data__,d,e)}),Ej=d,Dj=e}else K(this,function(d){var e=d.__transition__[c];(e.event||(e.event=Zg.dispatch("start","end"))).on(a,b)});return this},Hj.transition=function(){for(var a,b,c,d,e=this.id,f=++Ij,g=[],h=0,i=this.length;i>h;h++){g.push(a=[]);for(var b=this[h],j=0,k=b.length;k>j;j++)(c=b[j])&&(d=Object.create(c.__transition__[e]),d.delay+=d.duration,Rg(c,j,f,d)),a.push(c)}return Og(g,f)},Zg.svg.axis=function(){function a(a){a.each(function(){var a,j=Zg.select(this),k=this.__chart__||c,l=this.__chart__=c.copy(),m=null==i?l.ticks?l.ticks.apply(l,h):l.domain():i,n=null==b?l.tickFormat?l.tickFormat.apply(l,h):Bb:b,o=j.selectAll(".tick").data(m,l),p=o.enter().insert("g",".domain").attr("class","tick").style("opacity",Fh),q=Zg.transition(o.exit()).style("opacity",Fh).remove(),r=Zg.transition(o.order()).style("opacity",1),s=Of(l),t=j.selectAll(".domain").data([0]),u=(t.enter().append("path").attr("class","domain"),Zg.transition(t));p.append("line"),p.append("text");var v=p.select("line"),w=r.select("line"),x=o.select("text").text(n),y=p.select("text"),z=r.select("text");switch(d){case"bottom":a=Sg,v.attr("y2",e),y.attr("y",Math.max(e,0)+g),w.attr("x2",0).attr("y2",e),z.attr("x",0).attr("y",Math.max(e,0)+g),x.attr("dy",".71em").style("text-anchor","middle"),u.attr("d","M"+s[0]+","+f+"V0H"+s[1]+"V"+f);break;case"top":a=Sg,v.attr("y2",-e),y.attr("y",-(Math.max(e,0)+g)),w.attr("x2",0).attr("y2",-e),z.attr("x",0).attr("y",-(Math.max(e,0)+g)),x.attr("dy","0em").style("text-anchor","middle"),u.attr("d","M"+s[0]+","+-f+"V0H"+s[1]+"V"+-f);break;case"left":a=Tg,v.attr("x2",-e),y.attr("x",-(Math.max(e,0)+g)),w.attr("x2",-e).attr("y2",0),z.attr("x",-(Math.max(e,0)+g)).attr("y",0),x.attr("dy",".32em").style("text-anchor","end"),u.attr("d","M"+-f+","+s[0]+"H0V"+s[1]+"H"+-f);break;case"right":a=Tg,v.attr("x2",e),y.attr("x",Math.max(e,0)+g),w.attr("x2",e).attr("y2",0),z.attr("x",Math.max(e,0)+g).attr("y",0),x.attr("dy",".32em").style("text-anchor","start"),u.attr("d","M"+f+","+s[0]+"H0V"+s[1]+"H"+f)}if(l.rangeBand){var A=l,B=A.rangeBand()/2;k=l=function(a){return A(a)+B}}else k.rangeBand?k=l:q.call(a,l);p.call(a,k),r.call(a,l)})}var b,c=Zg.scale.linear(),d=Jj,e=6,f=6,g=3,h=[10],i=null;return a.scale=function(b){return arguments.length?(c=b,a):c},a.orient=function(b){return arguments.length?(d=b in Kj?b+"":Jj,a):d},a.ticks=function(){return arguments.length?(h=arguments,a):h},a.tickValues=function(b){return arguments.length?(i=b,a):i},a.tickFormat=function(c){return arguments.length?(b=c,a):b},a.tickSize=function(b){var c=arguments.length;return c?(e=+b,f=+arguments[c-1],a):e},a.innerTickSize=function(b){return arguments.length?(e=+b,a):e},a.outerTickSize=function(b){return arguments.length?(f=+b,a):f},a.tickPadding=function(b){return arguments.length?(g=+b,a):g},a.tickSubdivide=function(){return arguments.length&&a},a};var Jj="bottom",Kj={top:1,right:1,bottom:1,left:1};Zg.svg.brush=function(){function a(f){f.each(function(){var f=Zg.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",e).on("touchstart.brush",e),g=f.selectAll(".background").data([0]);g.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),f.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var h=f.selectAll(".resize").data(o,Bb);h.exit().remove(),h.enter().append("g").attr("class",function(a){return"resize "+a}).style("cursor",function(a){return Lj[a]}).append("rect").attr("x",function(a){return/[ew]$/.test(a)?-3:null}).attr("y",function(a){return/^[ns]/.test(a)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),h.style("display",a.empty()?"none":null);var k,l=Zg.transition(f),m=Zg.transition(g);i&&(k=Of(i),m.attr("x",k[0]).attr("width",k[1]-k[0]),c(l)),j&&(k=Of(j),m.attr("y",k[0]).attr("height",k[1]-k[0]),d(l)),b(l)})}function b(a){a.selectAll(".resize").attr("transform",function(a){return"translate("+k[+/e$/.test(a)]+","+l[+/^s/.test(a)]+")"})}function c(a){a.select(".extent").attr("x",k[0]),a.selectAll(".extent,.n>rect,.s>rect").attr("width",k[1]-k[0])}function d(a){a.select(".extent").attr("y",l[0]),a.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function e(){function e(){32==Zg.event.keyCode&&(C||(t=null,E[0]-=k[1],E[1]-=l[1],C=2),s())}function o(){32==Zg.event.keyCode&&2==C&&(E[0]+=k[1],E[1]+=l[1],C=0,s())}function p(){var a=Zg.mouse(v),e=!1;u&&(a[0]+=u[0],a[1]+=u[1]),C||(Zg.event.altKey?(t||(t=[(k[0]+k[1])/2,(l[0]+l[1])/2]),E[0]=k[+(a[0]<t[0])],E[1]=l[+(a[1]<t[1])]):t=null),A&&q(a,i,0)&&(c(y),e=!0),B&&q(a,j,1)&&(d(y),e=!0),e&&(b(y),x({type:"brush",mode:C?"move":"resize"}))}function q(a,b,c){var d,e,h=Of(b),i=h[0],j=h[1],o=E[c],p=c?l:k,q=p[1]-p[0];return C&&(i-=o,j-=q+o),d=(c?n:m)?Math.max(i,Math.min(j,a[c])):a[c],C?e=(d+=o)+q:(t&&(o=Math.max(i,Math.min(j,2*t[c]-d))),d>o?(e=d,d=o):e=o),p[0]!=d||p[1]!=e?(c?g=null:f=null,p[0]=d,p[1]=e,!0):void 0}function r(){p(),y.style("pointer-events","all").selectAll(".resize").style("display",a.empty()?"none":null),Zg.select("body").style("cursor",null),F.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),D(),x({type:"brushend"})}var t,u,v=this,w=Zg.select(Zg.event.target),x=h.of(v,arguments),y=Zg.select(v),z=w.datum(),A=!/^(n|s)$/.test(z)&&i,B=!/^(e|w)$/.test(z)&&j,C=w.classed("extent"),D=R(),E=Zg.mouse(v),F=Zg.select(ch).on("keydown.brush",e).on("keyup.brush",o);if(Zg.event.changedTouches?F.on("touchmove.brush",p).on("touchend.brush",r):F.on("mousemove.brush",p).on("mouseup.brush",r),y.interrupt().selectAll("*").interrupt(),C)E[0]=k[0]-E[0],E[1]=l[0]-E[1];else if(z){var G=+/w$/.test(z),H=+/^n/.test(z);u=[k[1-G]-E[0],l[1-H]-E[1]],E[0]=k[G],E[1]=l[H]}else Zg.event.altKey&&(t=E.slice());y.style("pointer-events","none").selectAll(".resize").style("display",null),Zg.select("body").style("cursor",w.style("cursor")),x({type:"brushstart"}),p()}var f,g,h=u(a,"brushstart","brush","brushend"),i=null,j=null,k=[0,0],l=[0,0],m=!0,n=!0,o=Mj[0];return a.event=function(a){a.each(function(){var a=h.of(this,arguments),b={x:k,y:l,i:f,j:g},c=this.__chart__||b;this.__chart__=b,Dj?Zg.select(this).transition().each("start.brush",function(){f=c.i,g=c.j,k=c.x,l=c.y,a({type:"brushstart"})}).tween("brush:brush",function(){var c=re(k,b.x),d=re(l,b.y);return f=g=null,function(e){k=b.x=c(e),l=b.y=d(e),a({type:"brush",mode:"resize"})}}).each("end.brush",function(){f=b.i,g=b.j,a({type:"brush",mode:"resize"}),a({type:"brushend"})}):(a({type:"brushstart"}),a({type:"brush",mode:"resize"}),a({type:"brushend"}))})},a.x=function(b){return arguments.length?(i=b,o=Mj[!i<<1|!j],a):i},a.y=function(b){return arguments.length?(j=b,o=Mj[!i<<1|!j],a):j},a.clamp=function(b){return arguments.length?(i&&j?(m=!!b[0],n=!!b[1]):i?m=!!b:j&&(n=!!b),a):i&&j?[m,n]:i?m:j?n:null},a.extent=function(b){var c,d,e,h,m;return arguments.length?(i&&(c=b[0],d=b[1],j&&(c=c[0],d=d[0]),f=[c,d],i.invert&&(c=i(c),d=i(d)),c>d&&(m=c,c=d,d=m),(c!=k[0]||d!=k[1])&&(k=[c,d])),j&&(e=b[0],h=b[1],i&&(e=e[1],h=h[1]),g=[e,h],j.invert&&(e=j(e),h=j(h)),e>h&&(m=e,e=h,h=m),(e!=l[0]||h!=l[1])&&(l=[e,h])),a):(i&&(f?(c=f[0],d=f[1]):(c=k[0],d=k[1],i.invert&&(c=i.invert(c),d=i.invert(d)),c>d&&(m=c,c=d,d=m))),j&&(g?(e=g[0],h=g[1]):(e=l[0],h=l[1],j.invert&&(e=j.invert(e),h=j.invert(h)),e>h&&(m=e,e=h,h=m))),i&&j?[[c,e],[d,h]]:i?[c,d]:j&&[e,h])},a.clear=function(){return a.empty()||(k=[0,0],l=[0,0],f=g=null),a},a.empty=function(){return!!i&&k[0]==k[1]||!!j&&l[0]==l[1]},Zg.rebind(a,h,"on")};var Lj={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Mj=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Nj=fi.format=li.timeFormat,Oj=Nj.utc,Pj=Oj("%Y-%m-%dT%H:%M:%S.%LZ");Nj.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Ug:Pj,Ug.parse=function(a){var b=new Date(a);return isNaN(b)?null:b},Ug.toString=Pj.toString,fi.second=Nb(function(a){return new gi(1e3*Math.floor(a/1e3))},function(a,b){a.setTime(a.getTime()+1e3*Math.floor(b))},function(a){return a.getSeconds()}),fi.seconds=fi.second.range,fi.seconds.utc=fi.second.utc.range,fi.minute=Nb(function(a){return new gi(6e4*Math.floor(a/6e4))},function(a,b){a.setTime(a.getTime()+6e4*Math.floor(b))},function(a){return a.getMinutes()}),fi.minutes=fi.minute.range,fi.minutes.utc=fi.minute.utc.range,fi.hour=Nb(function(a){var b=a.getTimezoneOffset()/60;return new gi(36e5*(Math.floor(a/36e5-b)+b))},function(a,b){a.setTime(a.getTime()+36e5*Math.floor(b))},function(a){return a.getHours()}),fi.hours=fi.hour.range,fi.hours.utc=fi.hour.utc.range,fi.month=Nb(function(a){return a=fi.day(a),a.setDate(1),a},function(a,b){a.setMonth(a.getMonth()+b)},function(a){return a.getMonth()}),fi.months=fi.month.range,fi.months.utc=fi.month.utc.range;var Qj=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Rj=[[fi.second,1],[fi.second,5],[fi.second,15],[fi.second,30],[fi.minute,1],[fi.minute,5],[fi.minute,15],[fi.minute,30],[fi.hour,1],[fi.hour,3],[fi.hour,6],[fi.hour,12],[fi.day,1],[fi.day,2],[fi.week,1],[fi.month,1],[fi.month,3],[fi.year,1]],Sj=Nj.multi([[".%L",function(a){return a.getMilliseconds()}],[":%S",function(a){return a.getSeconds()}],["%I:%M",function(a){return a.getMinutes()}],["%I %p",function(a){return a.getHours()}],["%a %d",function(a){return a.getDay()&&1!=a.getDate()}],["%b %d",function(a){return 1!=a.getDate()}],["%B",function(a){return a.getMonth()}],["%Y",Bc]]),Tj={range:function(a,b,c){return Zg.range(Math.ceil(a/c)*c,+b,c).map(Wg)},floor:Bb,ceil:Bb};Rj.year=fi.year,fi.scale=function(){return Vg(Zg.scale.linear(),Rj,Sj)};var Uj=Rj.map(function(a){return[a[0].utc,a[1]]}),Vj=Oj.multi([[".%L",function(a){return a.getUTCMilliseconds()}],[":%S",function(a){return a.getUTCSeconds()}],["%I:%M",function(a){return a.getUTCMinutes()}],["%I %p",function(a){return a.getUTCHours()}],["%a %d",function(a){return a.getUTCDay()&&1!=a.getUTCDate()}],["%b %d",function(a){return 1!=a.getUTCDate()}],["%B",function(a){return a.getUTCMonth()}],["%Y",Bc]]);Uj.year=fi.year.utc,fi.scale.utc=function(){return Vg(Zg.scale.linear(),Uj,Vj)},Zg.text=Cb(function(a){return a.responseText}),Zg.json=function(a,b){return Db(a,"application/json",Xg,b)},Zg.html=function(a,b){return Db(a,"text/html",Yg,b)},Zg.xml=Cb(function(a){return a.responseXML}),"function"==typeof define&&define.amd?define(Zg):"object"==typeof module&&module.exports?module.exports=Zg:this.d3=Zg}(),function(a){"function"==typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):this.NProgress=a()}(function(){function a(a,b,c){return b>a?b:a>c?c:a}function b(a){return 100*(-1+a)}function c(a,c,d){var e;return e="translate3d"===j.positionUsing?{transform:"translate3d("+b(a)+"%,0,0)"}:"translate"===j.positionUsing?{transform:"translate("+b(a)+"%,0)"}:{"margin-left":b(a)+"%"},e.transition="all "+c+"ms "+d,e}function d(a,b){var c="string"==typeof a?a:g(a);return c.indexOf(" "+b+" ")>=0}function e(a,b){var c=g(a),e=c+b;d(c,b)||(a.className=e.substring(1))}function f(a,b){var c,e=g(a);d(a,b)&&(c=e.replace(" "+b+" "," "),a.className=c.substring(1,c.length-1))}function g(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function h(a){a&&a.parentNode&&a.parentNode.removeChild(a)}var i={};i.version="0.1.3";var j=i.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};i.configure=function(a){var b,c;for(b in a)c=a[b],void 0!==c&&a.hasOwnProperty(b)&&(j[b]=c);return this},i.status=null,i.set=function(b){var d=i.isStarted();b=a(b,j.minimum,1),i.status=1===b?null:b;var e=i.render(!d),f=e.querySelector(j.barSelector),g=j.speed,h=j.easing;return e.offsetWidth,k(function(a){""===j.positionUsing&&(j.positionUsing=i.getPositioningCSS()),l(f,c(b,g,h)),1===b?(l(e,{transition:"none",opacity:1}),e.offsetWidth,setTimeout(function(){l(e,{transition:"all "+g+"ms linear",opacity:0}),setTimeout(function(){i.remove(),a()},g)},g)):setTimeout(a,g)}),this},i.isStarted=function(){return"number"==typeof i.status},i.start=function(){i.status||i.set(0);var a=function(){setTimeout(function(){i.status&&(i.trickle(),a())},j.trickleSpeed)};return j.trickle&&a(),this},i.done=function(a){return a||i.status?i.inc(.3+.5*Math.random()).set(1):this},i.inc=function(b){var c=i.status;return c?("number"!=typeof b&&(b=(1-c)*a(Math.random()*c,.1,.95)),c=a(c+b,0,.994),i.set(c)):i.start()},i.trickle=function(){return i.inc(Math.random()*j.trickleRate)},function(){var a=0,b=0;i.promise=function(c){return c&&"resolved"!=c.state()?(0==b&&i.start(),a++,b++,c.always(function(){b--,0==b?(a=0,i.done()):i.set((a-b)/a)}),this):this}}(),i.render=function(a){if(i.isRendered())return document.getElementById("nprogress");e(document.documentElement,"nprogress-busy");var c=document.createElement("div");c.id="nprogress",c.innerHTML=j.template;var d,f=c.querySelector(j.barSelector),g=a?"-100":b(i.status||0);return l(f,{transition:"all 0 linear",transform:"translate3d("+g+"%,0,0)"}),j.showSpinner||(d=c.querySelector(j.spinnerSelector),d&&h(d)),document.body.appendChild(c),c},i.remove=function(){f(document.documentElement,"nprogress-busy");var a=document.getElementById("nprogress");a&&h(a)},i.isRendered=function(){return!!document.getElementById("nprogress")},i.getPositioningCSS=function(){var a=document.body.style,b="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return b+"Perspective"in a?"translate3d":b+"Transform"in a?"translate":"margin"};var k=function(){function a(){var c=b.shift();c&&c(a)}var b=[];return function(c){b.push(c),1==b.length&&a()}}(),l=function(){function a(a){return a.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(a,b){return b.toUpperCase()})}function b(a){var b=document.body.style;if(a in b)return a;for(var c,d=e.length,f=a.charAt(0).toUpperCase()+a.slice(1);d--;)if(c=e[d]+f,c in b)return c;return a}function c(c){return c=a(c),f[c]||(f[c]=b(c))}function d(a,b,d){b=c(b),a.style[b]=d}var e=["Webkit","O","Moz","ms"],f={};return function(a,b){var c,e,f=arguments;if(2==f.length)for(c in b)e=b[c],void 0!==e&&b.hasOwnProperty(c)&&d(a,c,e);else d(a,f[1],f[2])}}();return i}),Neatline.on("start",function(){var a=$("div.narrative"),b=$("div.exhibit"),c=($("div.bubble"),a.outerWidth()),d=function(){var d=$(window).width();b.outerWidth(d+c),b.add(a).outerHeight($(window).height()),Neatline.execute("MAP:updateSize")};$(window).resize(d),d()}),Neatline.module("Lines",function(a){a.Controller=Neatline.Shared.Controller.extend({slug:"WORDLINES",events:["highlight","unhighlight",{select:"unhighlight"},{"MAP:move":"unhighlight"}],init:function(){this.view=new Neatline.Lines.View},highlight:function(a){if("TEXT"==a.source){var b=Neatline.request("MAP:getVectorLayer",a.model),c=a.model.get("map_focus");if(c)var d=new OpenLayers.LonLat(c.split(","));else{if(0===b.features.length)return;var d=b.getDataExtent().getCenterLonLat()}var e=b.getViewPortPxFromLonLat(d),f=$(a.event.target),g=f.offset(),h=g.left+f.outerWidth()+5,i=g.top+5;this.view.show(h,i,e.x,e.y)}},unhighlight:function(){this.view.hide()},_getMapCenter:function(a){Neatline.request("MAP:getVectorLayer",a),a.get("map_focus")}})}),Neatline.module("Lines",function(a){a.addInitializer(function(){a.__controller=new Neatline.Lines.Controller})}),Neatline.module("Lines",function(a){a.View=Backbone.View.extend({id:"word-line",initialize:function(){this.svg=d3.select(this.el).append("svg:svg")},show:function(a,b,c,d){var e=$(window).height(),f=$(window).width();this.$el.appendTo($("body")).css({width:f,height:e}),this.svg.attr("width",f).attr("height",e),this.line=this.svg.append("svg:line").attr({x1:a,y1:b,x2:a,y2:b}),this.line.transition().attr("x2",c).attr("y2",d).each("end",_.bind(function(){this.svg.append("svg:circle").attr({cx:c,cy:d,r:5})},this))},hide:function(){this.svg.selectAll("line, circle").remove(),this.$el.detach()}})}),Neatline.on("start",function(){NProgress.configure({showSpinner:!1}),NProgress.start(),Neatline.vent.on("MAP:ingest",function(){NProgress.done()})}),Neatline.on("start",function(){var a=Neatline.request("MAP:getMap");$(".btn.in").click(function(){a.zoomIn()}),$(".btn.out").click(function(){a.zoomOut()})});