1?n:1)},e}(rp),up=function(){var t=op,n=!1,e=1,r=1,i=[0],o=Pd,u=Pd,a=Pd,c=Pd,f=Pd;function s(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(l),i=[0],n&&t.eachBefore(Dd),t}function l(n){var e=i[n.depth],r=n.x0+e,s=n.y0+e,l=n.x1-e,h=n.y1-e;l=e-1){var s=a[n];return s.x0=i,s.y0=o,s.x1=u,void(s.y1=c)}var l=f[n],h=r/2+l,d=n+1,p=e-1;for(;d>>1;f[v]c-o){var _=(i*y+u*g)/r;t(n,d,g,i,o,_,c),t(d,e,y,_,o,u,c)}else{var b=(o*y+c*g)/r;t(n,d,g,i,o,u,b),t(d,e,y,i,b,u,c)}}(0,c,t.value,n,e,r,i)},cp=function(t,n,e,r,i){(1&t.depth?ep:Yd)(t,n,e,r,i)},fp=function t(n){function e(t,e,r,i,o){if((u=t._squarify)&&u.ratio===n)for(var u,a,c,f,s,l=-1,h=u.length,d=t.value;++l1?n:1)},e}(rp),sp=function(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}},lp=function(t,n){var e=he(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}},hp=function(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}},dp=Math.SQRT2;function pp(t){return((t=Math.exp(t))+1/t)/2}var vp=function(t,n){var e,r,i=t[0],o=t[1],u=t[2],a=n[0],c=n[1],f=n[2],s=a-i,l=c-o,h=s*s+l*l;if(h<1e-12)r=Math.log(f/u)/dp,e=function(t){return[i+t*s,o+t*l,u*Math.exp(dp*t*r)]};else{var d=Math.sqrt(h),p=(f*f-u*u+4*h)/(2*u*2*d),v=(f*f-u*u-4*h)/(2*f*2*d),g=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-g)/dp,e=function(t){var n,e=t*r,a=pp(g),c=u/(2*d)*(a*(n=dp*e+g,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+c*s,o+c*l,u*a/pp(dp*e+g)]}}return e.duration=1e3*r,e};function gp(t){return function(n,e){var r=t((n=ie(n)).h,(e=ie(e)).h),i=pe(n.s,e.s),o=pe(n.l,e.l),u=pe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.s=i(t),n.l=o(t),n.opacity=u(t),n+""}}}var yp=gp(he),_p=gp(pe);function bp(t,n){var e=pe((t=_o(t)).l,(n=_o(n)).l),r=pe(t.a,n.a),i=pe(t.b,n.b),o=pe(t.opacity,n.opacity);return function(n){return t.l=e(n),t.a=r(n),t.b=i(n),t.opacity=o(n),t+""}}function mp(t){return function(n,e){var r=t((n=ko(n)).h,(e=ko(e)).h),i=pe(n.c,e.c),o=pe(n.l,e.l),u=pe(n.opacity,e.opacity);return function(t){return n.h=r(t),n.c=i(t),n.l=o(t),n.opacity=u(t),n+""}}}var xp=mp(he),wp=mp(pe);function Mp(t){return function n(e){function r(n,r){var i=t((n=Po(n)).h,(r=Po(r)).h),o=pe(n.s,r.s),u=pe(n.l,r.l),a=pe(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}var Ap=Mp(he),Sp=Mp(pe);function kp(t,n){for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e1&&(n=t[o[u-2]],e=t[o[u-1]],r=t[a],(e[0]-n[0])*(r[1]-n[1])-(e[1]-n[1])*(r[0]-n[0])<=0);)--u;o[u++]=a}return o.slice(0,u)}var jp=function(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)f.push(t[r[o[n]][2]]);for(n=+a;na!=f>a&&u<(c-e)*(a-r)/(f-r)+e&&(s=!s),c=e,f=r;return s},Pp=function(t){for(var n,e,r=-1,i=t.length,o=t[i-1],u=o[0],a=o[1],c=0;++r1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(zp),Fp=function t(n){function e(){var t=Ip.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(zp),Bp=function t(n){function e(t){return function(){for(var e=0,r=0;rr&&(n=e,e=r,r=n),function(t){return Math.max(e,Math.min(r,t))}}function rv(t,n,e){var r=t[0],i=t[1],o=n[0],u=n[1];return i2?iv:rv,i=o=null,l}function l(n){return isNaN(n=+n)?e:(i||(i=r(u.map(t),a,c)))(t(f(n)))}return l.invert=function(e){return f(n((o||(o=r(a,u.map(t),Ae)))(e)))},l.domain=function(t){return arguments.length?(u=Hp.call(t,Qp),f===tv||(f=ev(u)),s()):u.slice()},l.range=function(t){return arguments.length?(a=$p.call(t),s()):a.slice()},l.rangeRound=function(t){return a=$p.call(t),c=hp,s()},l.clamp=function(t){return arguments.length?(f=t?ev(u):tv,l):f!==tv},l.interpolate=function(t){return arguments.length?(c=t,s()):c},l.unknown=function(t){return arguments.length?(e=t,l):e},function(e,r){return t=e,n=r,s()}}function av(t,n){return uv()(t,n)}var cv=function(t,n,e,r){var i,o=N(t,n,e);switch((r=Ga(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=fc(o,u))||(r.precision=i),tc(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=sc(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=cc(o))||(r.precision=i-2*("%"===r.type))}return Ja(r)};function fv(t){var n=t.domain;return t.ticks=function(t){var e=n();return T(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return cv(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,u=i.length-1,a=i[o],c=i[u];return c0?r=O(a=Math.floor(a/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=O(a=Math.ceil(a*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[o]=Math.floor(a/r)*r,i[u]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[u]=Math.floor(c*r)/r,n(i)),t},t}function sv(){var t=av(tv,tv);return t.copy=function(){return ov(t,sv())},Yp.apply(t,arguments),fv(t)}function lv(t){var n;function e(t){return isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Hp.call(n,Qp),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return lv(t).unknown(n)},t=arguments.length?Hp.call(t,Qp):[0,1],fv(e)}var hv=function(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],u=t[i];return u0){for(;hc)break;v.push(l)}}else for(;h=1;--s)if(!((l=f*s)c)break;v.push(l)}}else v=T(h,d,Math.min(d-h,p)).map(e);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=Ja(i)),t===1/0)return i;null==t&&(t=10);var u=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/e(Math.round(n(t)));return r*o0?r[i-1]:n[0],i=r?[i[r-1],e]:[i[u-1],i[u]]},u.unknown=function(n){return arguments.length?(t=n,u):u},u.thresholds=function(){return i.slice()},u.copy=function(){return jv().domain([n,e]).range(o).unknown(t)},Yp.apply(fv(u),arguments)}function Rv(){var t,n=[.5],e=[0,1],r=1;function i(i){return i<=i?e[l(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=$p.call(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=$p.call(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Rv().domain(n).range(e).unknown(t)},Yp.apply(i,arguments)}var Pv=new Date,zv=new Date;function Lv(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return a;do{a.push(u=new Date(+e)),n(e,o),t(e)}while(u=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return Pv.setTime(+n),zv.setTime(+r),t(Pv),t(zv),Math.floor(e(Pv,zv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Iv=Lv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Iv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Lv((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var Fv=Iv,Bv=Iv.range,Uv=Lv((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),Dv=Uv,Yv=Uv.range;function qv(t){return Lv((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var Vv=qv(0),Hv=qv(1),$v=qv(2),Wv=qv(3),Xv=qv(4),Gv=qv(5),Zv=qv(6),Kv=Vv.range,Qv=Hv.range,Jv=$v.range,tg=Wv.range,ng=Xv.range,eg=Gv.range,rg=Zv.range,ig=Lv((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),og=ig,ug=ig.range,ag=Lv((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,n){t.setTime(+t+36e5*n)}),(function(t,n){return(n-t)/36e5}),(function(t){return t.getHours()})),cg=ag,fg=ag.range,sg=Lv((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,n){t.setTime(+t+6e4*n)}),(function(t,n){return(n-t)/6e4}),(function(t){return t.getMinutes()})),lg=sg,hg=sg.range,dg=Lv((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+1e3*n)}),(function(t,n){return(n-t)/1e3}),(function(t){return t.getUTCSeconds()})),pg=dg,vg=dg.range,gg=Lv((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));gg.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Lv((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):gg:null};var yg=gg,_g=gg.range;function bg(t){return Lv((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/6048e5}))}var mg=bg(0),xg=bg(1),wg=bg(2),Mg=bg(3),Ag=bg(4),Sg=bg(5),kg=bg(6),Eg=mg.range,Cg=xg.range,Tg=wg.range,Og=Mg.range,Ng=Ag.range,jg=Sg.range,Rg=kg.range,Pg=Lv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/864e5}),(function(t){return t.getUTCDate()-1})),zg=Pg,Lg=Pg.range,Ig=Lv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Ig.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Lv((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var Fg=Ig,Bg=Ig.range;function Ug(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Dg(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Yg(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function qg(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,a=t.months,c=t.shortMonths,f=ny(i),s=ey(i),l=ny(o),h=ey(o),d=ny(u),p=ey(u),v=ny(a),g=ey(a),y=ny(c),_=ey(c),b={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:My,e:My,f:Cy,g:By,G:Dy,H:Ay,I:Sy,j:ky,L:Ey,m:Ty,M:Oy,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:s_,s:l_,S:Ny,u:jy,U:Ry,V:zy,w:Ly,W:Iy,x:null,X:null,y:Fy,Y:Uy,Z:Yy,"%":f_},m={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:qy,e:qy,f:Xy,g:o_,G:a_,H:Vy,I:Hy,j:$y,L:Wy,m:Gy,M:Zy,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:s_,s:l_,S:Ky,u:Qy,U:Jy,V:n_,w:e_,W:r_,x:null,X:null,y:i_,Y:u_,Z:c_,"%":f_},x={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=l.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=_[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=v.exec(n.slice(e));return r?(t.m=g[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return A(t,n,e,r)},d:dy,e:dy,f:by,g:fy,G:cy,H:vy,I:vy,j:py,L:_y,m:hy,M:gy,p:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.p=s[r[0].toLowerCase()],e+r[0].length):-1},q:ly,Q:xy,s:wy,S:yy,u:iy,U:oy,V:uy,w:ry,W:ay,x:function(t,n,r){return A(t,e,n,r)},X:function(t,n,e){return A(t,r,n,e)},y:fy,Y:cy,Z:sy,"%":my};function w(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,f=t.length;for(e instanceof Date||(e=new Date(+e));++a53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Dg(Yg(o.y,0,1))).getUTCDay(),r=i>4||0===i?xg.ceil(r):xg(r),r=zg.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Ug(Yg(o.y,0,1))).getDay(),r=i>4||0===i?Hv.ceil(r):Hv(r),r=og.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Dg(Yg(o.y,0,1)).getUTCDay():Ug(Yg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Dg(o)):Ug(o)}}function A(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u=c)return-1;if(37===(i=n.charCodeAt(u++))){if(i=n.charAt(u++),!(o=x[i in Gg?n.charAt(u++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return b.x=w(e,b),b.X=w(r,b),b.c=w(n,b),m.x=w(e,m),m.X=w(r,m),m.c=w(n,m),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",m);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}var Vg,Hg,$g,Wg,Xg,Gg={"-":"",_:" ",0:"0"},Zg=/^\s*\d+/,Kg=/^%/,Qg=/[\\^$*+?|[\]().{}]/g;function Jg(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function sy(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function ly(t,n,e){var r=Zg.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function hy(t,n,e){var r=Zg.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function dy(t,n,e){var r=Zg.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function py(t,n,e){var r=Zg.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function vy(t,n,e){var r=Zg.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function gy(t,n,e){var r=Zg.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function yy(t,n,e){var r=Zg.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function _y(t,n,e){var r=Zg.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function by(t,n,e){var r=Zg.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function my(t,n,e){var r=Kg.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function xy(t,n,e){var r=Zg.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function wy(t,n,e){var r=Zg.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function My(t,n){return Jg(t.getDate(),n,2)}function Ay(t,n){return Jg(t.getHours(),n,2)}function Sy(t,n){return Jg(t.getHours()%12||12,n,2)}function ky(t,n){return Jg(1+og.count(Fv(t),t),n,3)}function Ey(t,n){return Jg(t.getMilliseconds(),n,3)}function Cy(t,n){return Ey(t,n)+"000"}function Ty(t,n){return Jg(t.getMonth()+1,n,2)}function Oy(t,n){return Jg(t.getMinutes(),n,2)}function Ny(t,n){return Jg(t.getSeconds(),n,2)}function jy(t){var n=t.getDay();return 0===n?7:n}function Ry(t,n){return Jg(Vv.count(Fv(t)-1,t),n,2)}function Py(t){var n=t.getDay();return n>=4||0===n?Xv(t):Xv.ceil(t)}function zy(t,n){return t=Py(t),Jg(Xv.count(Fv(t),t)+(4===Fv(t).getDay()),n,2)}function Ly(t){return t.getDay()}function Iy(t,n){return Jg(Hv.count(Fv(t)-1,t),n,2)}function Fy(t,n){return Jg(t.getFullYear()%100,n,2)}function By(t,n){return Jg((t=Py(t)).getFullYear()%100,n,2)}function Uy(t,n){return Jg(t.getFullYear()%1e4,n,4)}function Dy(t,n){var e=t.getDay();return Jg((t=e>=4||0===e?Xv(t):Xv.ceil(t)).getFullYear()%1e4,n,4)}function Yy(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Jg(n/60|0,"0",2)+Jg(n%60,"0",2)}function qy(t,n){return Jg(t.getUTCDate(),n,2)}function Vy(t,n){return Jg(t.getUTCHours(),n,2)}function Hy(t,n){return Jg(t.getUTCHours()%12||12,n,2)}function $y(t,n){return Jg(1+zg.count(Fg(t),t),n,3)}function Wy(t,n){return Jg(t.getUTCMilliseconds(),n,3)}function Xy(t,n){return Wy(t,n)+"000"}function Gy(t,n){return Jg(t.getUTCMonth()+1,n,2)}function Zy(t,n){return Jg(t.getUTCMinutes(),n,2)}function Ky(t,n){return Jg(t.getUTCSeconds(),n,2)}function Qy(t){var n=t.getUTCDay();return 0===n?7:n}function Jy(t,n){return Jg(mg.count(Fg(t)-1,t),n,2)}function t_(t){var n=t.getUTCDay();return n>=4||0===n?Ag(t):Ag.ceil(t)}function n_(t,n){return t=t_(t),Jg(Ag.count(Fg(t),t)+(4===Fg(t).getUTCDay()),n,2)}function e_(t){return t.getUTCDay()}function r_(t,n){return Jg(xg.count(Fg(t)-1,t),n,2)}function i_(t,n){return Jg(t.getUTCFullYear()%100,n,2)}function o_(t,n){return Jg((t=t_(t)).getUTCFullYear()%100,n,2)}function u_(t,n){return Jg(t.getUTCFullYear()%1e4,n,4)}function a_(t,n){var e=t.getUTCDay();return Jg((t=e>=4||0===e?Ag(t):Ag.ceil(t)).getUTCFullYear()%1e4,n,4)}function c_(){return"+0000"}function f_(){return"%"}function s_(t){return+t}function l_(t){return Math.floor(+t/1e3)}function h_(t){return Vg=qg(t),Hg=Vg.format,$g=Vg.parse,Wg=Vg.utcFormat,Xg=Vg.utcParse,Vg}h_({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function d_(t){return new Date(t)}function p_(t){return t instanceof Date?+t:+new Date(+t)}function v_(t,n,e,r,i,o,u,c,f){var s=av(tv,tv),l=s.invert,h=s.domain,d=f(".%L"),p=f(":%S"),v=f("%I:%M"),g=f("%I %p"),y=f("%a %d"),_=f("%b %d"),b=f("%B"),m=f("%Y"),x=[[u,1,1e3],[u,5,5e3],[u,15,15e3],[u,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[e,1,6048e5],[n,1,2592e6],[n,3,7776e6],[t,1,31536e6]];function w(a){return(u(a)1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return rm.h=360*t-100,rm.s=1.5-1.5*n,rm.l=.8-.9*n,rm+""},om=Kn(),um=Math.PI/3,am=2*Math.PI/3,cm=function(t){var n;return t=(.5-t)*Math.PI,om.r=255*(n=Math.sin(t))*n,om.g=255*(n=Math.sin(t+um))*n,om.b=255*(n=Math.sin(t+am))*n,om+""},fm=function(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"};function sm(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var lm=sm(D_("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),hm=sm(D_("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),dm=sm(D_("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),pm=sm(D_("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),vm=function(t){return kn(un(t).call(document.documentElement))},gm=0;function ym(){return new _m}function _m(){this._="@"+(++gm).toString(36)}_m.prototype=ym.prototype={constructor:_m,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var bm=function(t){return"string"==typeof t?new Mn([document.querySelectorAll(t)],[document.documentElement]):new Mn([null==t?[]:t],wn)},mm=function(t,n){null==n&&(n=je().touches);for(var e=0,r=n?n.length:0,i=new Array(r);e1?0:t<-1?Tm:Math.acos(t)}function Rm(t){return t>=1?Om:t<=-1?-Om:Math.asin(t)}function Pm(t){return t.innerRadius}function zm(t){return t.outerRadius}function Lm(t){return t.startAngle}function Im(t){return t.endAngle}function Fm(t){return t&&t.padAngle}function Bm(t,n,e,r,i,o,u,a){var c=e-t,f=r-n,s=u-i,l=a-o,h=l*c-s*f;if(!(h*h<1e-12))return[t+(h=(s*(n-o)-l*(t-i))/h)*c,n+h*f]}function Um(t,n,e,r,i,o,u){var a=t-e,c=n-r,f=(u?o:-o)/Cm(a*a+c*c),s=f*c,l=-f*a,h=t+s,d=n+l,p=e+s,v=r+l,g=(h+p)/2,y=(d+v)/2,_=p-h,b=v-d,m=_*_+b*b,x=i-o,w=h*v-p*d,M=(b<0?-1:1)*Cm(Sm(0,x*x*m-w*w)),A=(w*b-_*M)/m,S=(-w*_-b*M)/m,k=(w*b+_*M)/m,E=(-w*_+b*M)/m,C=A-g,T=S-y,O=k-g,N=E-y;return C*C+T*T>O*O+N*N&&(A=k,S=E),{cx:A,cy:S,x01:-s,y01:-l,x11:A*(i/x-1),y11:S*(i/x-1)}}var Dm=function(){var t=Pm,n=zm,e=xm(0),r=null,i=Lm,o=Im,u=Fm,a=null;function c(){var c,f,s=+t.apply(this,arguments),l=+n.apply(this,arguments),h=i.apply(this,arguments)-Om,d=o.apply(this,arguments)-Om,p=wm(d-h),v=d>h;if(a||(a=c=Hi()),l1e-12)if(p>Nm-1e-12)a.moveTo(l*Am(h),l*Em(h)),a.arc(0,0,l,h,d,!v),s>1e-12&&(a.moveTo(s*Am(d),s*Em(d)),a.arc(0,0,s,d,h,v));else{var g,y,_=h,b=d,m=h,x=d,w=p,M=p,A=u.apply(this,arguments)/2,S=A>1e-12&&(r?+r.apply(this,arguments):Cm(s*s+l*l)),k=km(wm(l-s)/2,+e.apply(this,arguments)),E=k,C=k;if(S>1e-12){var T=Rm(S/s*Em(A)),O=Rm(S/l*Em(A));(w-=2*T)>1e-12?(m+=T*=v?1:-1,x-=T):(w=0,m=x=(h+d)/2),(M-=2*O)>1e-12?(_+=O*=v?1:-1,b-=O):(M=0,_=b=(h+d)/2)}var N=l*Am(_),j=l*Em(_),R=s*Am(x),P=s*Em(x);if(k>1e-12){var z,L=l*Am(b),I=l*Em(b),F=s*Am(m),B=s*Em(m);if(p1e-12?C>1e-12?(g=Um(F,B,N,j,l,C,v),y=Um(L,I,R,P,l,C,v),a.moveTo(g.cx+g.x01,g.cy+g.y01),C1e-12&&w>1e-12?E>1e-12?(g=Um(R,P,L,I,s,-E,v),y=Um(N,j,F,B,s,-E,v),a.lineTo(g.cx+g.x01,g.cy+g.y01),E=s;--l)a.point(g[l],y[l]);a.lineEnd(),a.areaEnd()}v&&(g[f]=+t(h,f,c),y[f]=+e(h,f,c),a.point(n?+n(h,f,c):g[f],r?+r(h,f,c):y[f]))}if(d)return a=null,d+""||null}function f(){return $m().defined(i).curve(u).context(o)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:xm(+e),n=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:xm(+n),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:xm(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:xm(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:xm(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:xm(+t),c):r},c.lineX0=c.lineY0=function(){return f().x(t).y(e)},c.lineY1=function(){return f().x(t).y(r)},c.lineX1=function(){return f().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:xm(!!t),c):i},c.curve=function(t){return arguments.length?(u=t,null!=o&&(a=u(o)),c):u},c.context=function(t){return arguments.length?(null==t?o=a=null:a=u(o=t),c):o},c},Xm=function(t,n){return nt?1:n>=t?0:NaN},Gm=function(t){return t},Zm=function(){var t=Gm,n=Xm,e=null,r=xm(0),i=xm(Nm),o=xm(0);function u(u){var a,c,f,s,l,h=u.length,d=0,p=new Array(h),v=new Array(h),g=+r.apply(this,arguments),y=Math.min(Nm,Math.max(-Nm,i.apply(this,arguments)-g)),_=Math.min(Math.abs(y)/h,o.apply(this,arguments)),b=_*(y<0?-1:1);for(a=0;a0&&(d+=l);for(null!=n?p.sort((function(t,e){return n(v[t],v[e])})):null!=e&&p.sort((function(t,n){return e(u[t],u[n])})),a=0,f=d?(y-h*b)/d:0;a0?l*f:0)+b,v[c]={data:u[c],index:a,value:l,startAngle:g,endAngle:s,padAngle:_};return v}return u.value=function(n){return arguments.length?(t="function"==typeof n?n:xm(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,e=null,u):n},u.sort=function(t){return arguments.length?(e=t,n=null,u):e},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:xm(+t),u):r},u.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:xm(+t),u):i},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:xm(+t),u):o},u},Km=Jm(qm);function Qm(t){this._curve=t}function Jm(t){function n(n){return new Qm(t(n))}return n._curve=t,n}function tx(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(Jm(t)):n()._curve},t}Qm.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var nx=function(){return tx($m().curve(Km))},ex=function(){var t=Wm().curve(Km),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return tx(e())},delete t.lineX0,t.lineEndAngle=function(){return tx(r())},delete t.lineX1,t.lineInnerRadius=function(){return tx(i())},delete t.lineY0,t.lineOuterRadius=function(){return tx(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(Jm(t)):n()._curve},t},rx=function(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]},ix=Array.prototype.slice;function ox(t){return t.source}function ux(t){return t.target}function ax(t){var n=ox,e=ux,r=Vm,i=Hm,o=null;function u(){var u,a=ix.call(arguments),c=n.apply(this,a),f=e.apply(this,a);if(o||(o=u=Hi()),t(o,+r.apply(this,(a[0]=c,a)),+i.apply(this,a),+r.apply(this,(a[0]=f,a)),+i.apply(this,a)),u)return o=null,u+""||null}return u.source=function(t){return arguments.length?(n=t,u):n},u.target=function(t){return arguments.length?(e=t,u):e},u.x=function(t){return arguments.length?(r="function"==typeof t?t:xm(+t),u):r},u.y=function(t){return arguments.length?(i="function"==typeof t?t:xm(+t),u):i},u.context=function(t){return arguments.length?(o=null==t?null:t,u):o},u}function cx(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function fx(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function sx(t,n,e,r,i){var o=rx(n,e),u=rx(n,e=(e+i)/2),a=rx(r,e),c=rx(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(u[0],u[1],a[0],a[1],c[0],c[1])}function lx(){return ax(cx)}function hx(){return ax(fx)}function dx(){var t=ax(sx);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var px={draw:function(t,n){var e=Math.sqrt(n/Tm);t.moveTo(e,0),t.arc(0,0,e,0,Nm)}},vx={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},gx=Math.sqrt(1/3),yx=2*gx,_x={draw:function(t,n){var e=Math.sqrt(n/yx),r=e*gx;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},bx=Math.sin(Tm/10)/Math.sin(7*Tm/10),mx=Math.sin(Nm/10)*bx,xx=-Math.cos(Nm/10)*bx,wx={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=mx*e,i=xx*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var u=Nm*o/5,a=Math.cos(u),c=Math.sin(u);t.lineTo(c*e,-a*e),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}},Mx={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}},Ax=Math.sqrt(3),Sx={draw:function(t,n){var e=-Math.sqrt(n/(3*Ax));t.moveTo(0,2*e),t.lineTo(-Ax*e,-e),t.lineTo(Ax*e,-e),t.closePath()}},kx=Math.sqrt(3)/2,Ex=1/Math.sqrt(12),Cx=3*(Ex/2+1),Tx={draw:function(t,n){var e=Math.sqrt(n/Cx),r=e/2,i=e*Ex,o=r,u=e*Ex+e,a=-o,c=u;t.moveTo(r,i),t.lineTo(o,u),t.lineTo(a,c),t.lineTo(-.5*r-kx*i,kx*r+-.5*i),t.lineTo(-.5*o-kx*u,kx*o+-.5*u),t.lineTo(-.5*a-kx*c,kx*a+-.5*c),t.lineTo(-.5*r+kx*i,-.5*i-kx*r),t.lineTo(-.5*o+kx*u,-.5*u-kx*o),t.lineTo(-.5*a+kx*c,-.5*c-kx*a),t.closePath()}},Ox=[px,vx,_x,Mx,wx,Sx,Tx],Nx=function(){var t=xm(px),n=xm(64),e=null;function r(){var r;if(e||(e=r=Hi()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:xm(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:xm(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r},jx=function(){};function Rx(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Px(t){this._context=t}Px.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Rx(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Rx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var zx=function(t){return new Px(t)};function Lx(t){this._context=t}Lx.prototype={areaStart:jx,areaEnd:jx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Rx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Ix=function(t){return new Lx(t)};function Fx(t){this._context=t}Fx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Rx(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}};var Bx=function(t){return new Fx(t)};function Ux(t,n){this._basis=new Px(t),this._beta=n}Ux.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],u=t[e]-i,a=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*u),this._beta*n[c]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var Dx=function t(n){function e(t){return 1===n?new Px(t):new Ux(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Yx(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function qx(t,n){this._context=t,this._k=(1-n)/6}qx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Yx(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Yx(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Vx=function t(n){function e(t){return new qx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Hx(t,n){this._context=t,this._k=(1-n)/6}Hx.prototype={areaStart:jx,areaEnd:jx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Yx(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var $x=function t(n){function e(t){return new Hx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Wx(t,n){this._context=t,this._k=(1-n)/6}Wx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yx(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Xx=function t(n){function e(t){return new Wx(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Gx(t,n,e){var r=t._x1,i=t._y1,o=t._x2,u=t._y2;if(t._l01_a>1e-12){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>1e-12){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*f+t._x1*t._l23_2a-n*t._l12_2a)/s,u=(u*f+t._y1*t._l23_2a-e*t._l12_2a)/s}t._context.bezierCurveTo(r,i,o,u,t._x2,t._y2)}function Zx(t,n){this._context=t,this._alpha=n}Zx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Gx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Kx=function t(n){function e(t){return n?new Zx(t,n):new qx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Qx(t,n){this._context=t,this._alpha=n}Qx.prototype={areaStart:jx,areaEnd:jx,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Gx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Jx=function t(n){function e(t){return n?new Qx(t,n):new Hx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function tw(t,n){this._context=t,this._alpha=n}tw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Gx(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var nw=function t(n){function e(t){return n?new tw(t,n):new Wx(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function ew(t){this._context=t}ew.prototype={areaStart:jx,areaEnd:jx,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}};var rw=function(t){return new ew(t)};function iw(t){return t<0?-1:1}function ow(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),u=(e-t._y1)/(i||r<0&&-0),a=(o*i+u*r)/(r+i);return(iw(o)+iw(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function uw(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function aw(t,n,e){var r=t._x0,i=t._y0,o=t._x1,u=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,i+a*n,o-a,u-a*e,o,u)}function cw(t){this._context=t}function fw(t){this._context=new sw(t)}function sw(t){this._context=t}function lw(t){return new cw(t)}function hw(t){return new fw(t)}function dw(t){this._context=t}function pw(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),u=new Array(r);for(i[0]=0,o[0]=2,u[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(u[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var yw=function(t){return new gw(t,.5)};function _w(t){return new gw(t,0)}function bw(t){return new gw(t,1)}var mw=function(t,n){if((i=t.length)>1)for(var e,r,i,o=1,u=t[n[0]],a=u.length;o=0;)e[n]=n;return e};function ww(t,n){return t[n]}var Mw=function(){var t=xm([]),n=xw,e=mw,r=ww;function i(i){var o,u,a=t.apply(this,arguments),c=i.length,f=a.length,s=new Array(f);for(o=0;o0){for(var e,r,i,o=0,u=t[0].length;o0)for(var e,r,i,o,u,a,c=0,f=t[n[0]].length;c0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)},kw=function(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,u=1;uo&&(o=n,r=e);return r}var Ow=function(t){var n=t.map(Nw);return xw(t).sort((function(t,e){return n[t]-n[e]}))};function Nw(t){for(var n,e=0,r=-1,i=t.length;++r0)){if(o/=h,h<0){if(o0){if(o>l)return;o>s&&(s=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>s&&(s=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>l)return;o>s&&(s=o)}if(o=i-f,d||!(o<0)){if(o/=d,d<0){if(o>l)return;o>s&&(s=o)}else if(d>0){if(o0||l<1)||(s>0&&(t[0]=[c+s*h,f+s*d]),l<1&&(t[1]=[c+l*h,f+l*d]),!0)}}}}}function Kw(t,n,e,r,i){var o=t[1];if(o)return!0;var u,a,c=t[0],f=t.left,s=t.right,l=f[0],h=f[1],d=s[0],p=s[1],v=(l+d)/2,g=(h+p)/2;if(p===h){if(v=r)return;if(l>d){if(c){if(c[1]>=i)return}else c=[v,e];o=[v,i]}else{if(c){if(c[1]1)if(l>d){if(c){if(c[1]>=i)return}else c=[(e-a)/u,e];o=[(i-a)/u,i]}else{if(c){if(c[1]=r)return}else c=[n,u*n+a];o=[r,u*r+a]}else{if(c){if(c[0]=-bM)){var d=c*c+f*f,p=s*s+l*l,v=(l*d-f*p)/h,g=(c*p-s*d)/h,y=eM.pop()||new rM;y.arc=t,y.site=i,y.x=v+u,y.y=(y.cy=g+a)+Math.sqrt(v*v+g*g),t.circle=y;for(var _=null,b=gM._;b;)if(y.y_M)a=a.L;else{if(!((i=o-dM(a,u))>_M)){r>-_M?(n=a.P,e=a):i>-_M?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}!function(t){vM[t.index]={site:t,halfedges:[]}}(t);var c=cM(t);if(pM.insert(n,c),n||e){if(n===e)return oM(n),e=cM(n.site),pM.insert(c,e),c.edge=e.edge=Ww(n.site,c.site),iM(n),void iM(e);if(e){oM(n),oM(e);var f=n.site,s=f[0],l=f[1],h=t[0]-s,d=t[1]-l,p=e.site,v=p[0]-s,g=p[1]-l,y=2*(h*g-d*v),_=h*h+d*d,b=v*v+g*g,m=[(g*_-d*b)/y+s,(h*b-v*_)/y+l];Gw(e.edge,f,p,m),c.edge=Ww(f,t,null,m),e.edge=Ww(t,p,null,m),iM(n),iM(e)}else c.edge=Ww(n.site,c.site)}}function hM(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var u=t.P;if(!u)return-1/0;var a=(e=u.site)[0],c=e[1],f=c-n;if(!f)return a;var s=a-r,l=1/o-1/f,h=s/f;return l?(-h+Math.sqrt(h*h-2*l*(s*s/(-2*f)-c+f/2+i-o/2)))/l+r:(r+a)/2}function dM(t,n){var e=t.N;if(e)return hM(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var pM,vM,gM,yM,_M=1e-6,bM=1e-12;function mM(t,n){return n[1]-t[1]||n[0]-t[0]}function xM(t,n){var e,r,i,o=t.sort(mM).pop();for(yM=[],vM=new Array(t.length),pM=new $w,gM=new $w;;)if(i=nM,o&&(!i||o[1]_M||Math.abs(i[0][1]-i[1][1])>_M)||delete yM[o]}(u,a,c,f),function(t,n,e,r){var i,o,u,a,c,f,s,l,h,d,p,v,g=vM.length,y=!0;for(i=0;i_M||Math.abs(v-h)>_M)&&(c.splice(a,0,yM.push(Xw(u,d,Math.abs(p-t)<_M&&r-v>_M?[t,Math.abs(l-t)<_M?h:r]:Math.abs(v-r)<_M&&e-p>_M?[Math.abs(h-r)<_M?l:e,r]:Math.abs(p-e)<_M&&v-n>_M?[e,Math.abs(l-e)<_M?h:n]:Math.abs(v-n)<_M&&p-t>_M?[Math.abs(h-n)<_M?l:t,n]:null))-1),++f);f&&(y=!1)}if(y){var _,b,m,x=1/0;for(i=0,y=null;i=a)return null;var c=t-i.site[0],f=n-i.site[1],s=c*c+f*f;do{i=o.cells[r=u],u=null,i.halfedges.forEach((function(e){var r=o.edges[e],a=r.left;if(a!==i.site&&a||(a=r.right)){var c=t-a[0],f=n-a[1],l=c*c+f*f;lr?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}var LM,IM=function(){var t,n,e=OM,r=NM,i=zM,o=RM,u=PM,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],f=250,s=vp,l=dt("start","zoom","end"),h=0;function d(t){t.property("__zoom",jM).on("wheel.zoom",m).on("mousedown.zoom",x).on("dblclick.zoom",w).filter(u).on("touchstart.zoom",M).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(t,n){return(n=Math.max(a[0],Math.min(a[1],n)))===t.k?t:new SM(n,t.x,t.y)}function v(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new SM(t.k,r,i)}function g(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function y(t,n,e){t.on("start.zoom",(function(){_(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=_(t,i),u=r.apply(t,i),a=null==e?g(u):"function"==typeof e?e.apply(t,i):e,c=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),f=t.__zoom,l="function"==typeof n?n.apply(t,i):n,h=s(f.invert(a).concat(c/f.k),l.invert(a).concat(c/l.k));return function(t){if(1===t)t=l;else{var n=h(t),e=c/n[2];t=new SM(e,a[0]-n[0]*e,a[1]-n[1]*e)}o.zoom(null,t)}}))}function _(t,n,e){return!e&&t.__zooming||new b(t,n)}function b(t,n){this.that=t,this.args=n,this.active=0,this.extent=r.apply(t,n),this.taps=0}function m(){if(e.apply(this,arguments)){var t=_(this,arguments),n=this.__zoom,r=Math.max(a[0],Math.min(a[1],n.k*Math.pow(2,o.apply(this,arguments)))),u=ze(this);if(t.wheel)t.mouse[0][0]===u[0]&&t.mouse[0][1]===u[1]||(t.mouse[1]=n.invert(t.mouse[0]=u)),clearTimeout(t.wheel);else{if(n.k===r)return;t.mouse=[u,n.invert(u)],fr(this),t.start()}TM(),t.wheel=setTimeout(f,150),t.zoom("mouse",i(v(p(n,r),t.mouse[0],t.mouse[1]),t.extent,c))}function f(){t.wheel=null,t.end()}}function x(){if(!n&&e.apply(this,arguments)){var t=_(this,arguments,!0),r=kn(hn.view).on("mousemove.zoom",f,!0).on("mouseup.zoom",s,!0),o=ze(this),u=hn.clientX,a=hn.clientY;Tn(hn.view),CM(),t.mouse=[o,this.__zoom.invert(o)],fr(this),t.start()}function f(){if(TM(),!t.moved){var n=hn.clientX-u,e=hn.clientY-a;t.moved=n*n+e*e>h}t.zoom("mouse",i(v(t.that.__zoom,t.mouse[0]=ze(t.that),t.mouse[1]),t.extent,c))}function s(){r.on("mousemove.zoom mouseup.zoom",null),On(hn.view,t.moved),TM(),t.end()}}function w(){if(e.apply(this,arguments)){var t=this.__zoom,n=ze(this),o=t.invert(n),u=t.k*(hn.shiftKey?.5:2),a=i(v(p(t,u),n,o),r.apply(this,arguments),c);TM(),f>0?kn(this).transition().duration(f).call(y,a,n):kn(this).call(d.transform,a)}}function M(){if(e.apply(this,arguments)){var n,r,i,o,u=hn.touches,a=u.length,c=_(this,arguments,hn.changedTouches.length===a);for(CM(),r=0;r0){var n=this.seriesForMatching.map((function(n){var e=FM.map(n,(function(t){return FM.map(t.datapoints,(function(t){return t[1]}))})),r=FM.zip.apply(FM,e);return t=FM.max(FM.map(r,(function(t){return FM.sum(t)})))}));return FM.max(n)}var e=FM.map(this.visibleSeries,(function(t){return FM.map(t.datapoints,(function(t){return t[1]}))})),r=FM.zip.apply(FM,e);t=FM.max(FM.map(r,(function(t){return FM.sum(t)})))}else console.log("else"),t=FM.max(this.visibleSeries.map((function(t){return FM.maxBy(t.datapoints,(function(t){return t[1]}))[0]})));return Math.max(t,0)}},n}(i.ChartwerkPod),qM={render:function(t){return t("div",{class:{"chartwerk-bar-chart":!0},attrs:{id:this.id}})},mixins:[i.VueChartwerkPodMixin],methods:{render:function(){console.time("bar-render"),new YM(document.getElementById(this.id),this.series,this.options).render(),console.timeEnd("bar-render")}}}}])}));