text: !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.glt=t.glt||{})}(this,function(t){"use strict";function n(t){return function(n,e){return _e(t(n),e)}}function e(t,n,e,r,i,o){for(var u=n.length-1,a=[],c=1/0,s=-(1/0),l=0;l<u;l++)a.push(0);for(var f=n[0]===-(1/0),h=f?u-1:u,p=n[1],g=n[n.length-2],d=i+e;d<o;d+=r){var v=t[d];if(!isNaN(v)){c=Math.min(c,v),s=Math.max(s,v);var y=f?v<p?0:v>g?h:-1:-1;y=y===-1?xe(n,v,1,h)-1:y,y=y<0?0:y,a[y]++}}return a.min=c,a.max=s,a}function r(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[-1,1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=[],f=Me(n[0],n[1],(n[1]-n[0]+(255===n[1]?1:0))/a),h=r?[-(1/0)].concat(Ce(f),[n[1],+(1/0)]):[].concat(Ce(f),[n[1]]),p=s?s:t.length,g=0;g<3;g++){var d=e(t,h,g,4,c,p);l.push(d)}return l.areas=i(l),l.perms=o(l.length),l.blocks=u(l.areas,l.perms),l.min=Math.min.apply(null,l.map(function(t){return t.min})),l.max=Math.max.apply(null,l.map(function(t){return t.max})),l.samples=3*(p-c)/4,l.thresholds=h,l.bins=a,l.ext=n,l.overflow=r,l.normalize=Math.max.apply(null,l.map(function(t){return Math.max.apply(null,t)})),l}function i(t){function n(t,n){return t.v-n.v}for(var e=t[0].length,r=t.length,i=[],o=0;o<e;o++){var u=[],a=void 0;for(a=0;a<r;a++)u.push({c:a,v:t[a][o]});u.sort(n);var c={};for(a=0;a<r;a++)c[u[a].v]=c[u[a].v]||0,c[u[a].v]+=Math.pow(2,u[a].c);var s=[];for(var l in c)s.push({v:parseFloat(l),s:c[l]});s.sort(n),i.push(s)}return i}function o(t){for(var n=Math.pow(2,t),e=[],r=1;r<n;r++)e.push(r);return e.sort(function(t,n){function e(t){for(var n=0;t;)n+=1&t,t>>=1;return n}return e(n)-e(t)}),e}function u(t,n){var e=[],r=void 0,i=void 0;for(i=0;i<n.length;i++){var o=[];for(e.push(o),r=0;r<t.length;r++)o.push(0)}for(r=0;r<t.length;r++){var u=0,a=[];for(var c in t[r])a.push(t[r][c]);a.reverse();for(var s=0;s<a.length;s++){var l=a[s],f=void 0;f=s+1<a.length?a[s+1]:{v:0,s:7};var h=l.v-f.v;u+=l.s;var p=u-1;e[p][r]=h}}var g=[];for(i=0;i<n.length;i++)g.push(e[n[i]-1]);return g}function a(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ne?i*=10:o>=Ae?i*=5:o>=Se&&(i*=2),n<t?-i:i}function c(){}function s(t,n){var e=new c;if(t instanceof c)t.each(function(t,n){e.set(n,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(n(r=t[i],i,t),r)}else if(t)for(var u in t)e.set(u,t[u]);return e}function l(){}function f(t,n){var e=new l;if(t instanceof l)t.each(function(t){e.add(t)});else if(t){var r=-1,i=t.length;if(null==n)for(;++r<i;)e.add(t[r]);else for(;++r<i;)e.add(n(t[r],r,t))}return e}function h(t){function n(n){var o=n+"",u=e.get(o);if(!u){if(i!==Ye)return i;e.set(o,u=r.push(n))}return t[(u-1)%t.length]}var e=s(),r=[],i=Ye;return t=null==t?[]:He.call(t),n.domain=function(t){if(!arguments.length)return r.slice();r=[],e=s();for(var i,o,u=-1,a=t.length;++u<a;)e.has(o=(i=t[u])+"")||e.set(o,r.push(i));return n},n.range=function(e){return arguments.length?(t=He.call(e),n):t.slice()},n.unknown=function(t){return arguments.length?(i=t,n):i},n.copy=function(){return h().domain(r).range(t).unknown(i)},n}function p(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function g(){}function d(t){var n;return t=(t+"").trim().toLowerCase(),(n=$e.exec(t))?(n=parseInt(n[1],16),new w(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1)):(n=Re.exec(t))?v(parseInt(n[1],16)):(n=We.exec(t))?new w(n[1],n[2],n[3],1):(n=Ze.exec(t))?new w(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Xe.exec(t))?y(n[1],n[2],n[3],n[4]):(n=Be.exec(t))?y(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Je.exec(t))?b(n[1],n[2]/100,n[3]/100,1):(n=Ve.exec(t))?b(n[1],n[2]/100,n[3]/100,n[4]):Ge.hasOwnProperty(t)?v(Ge[t]):"transparent"===t?new w(NaN,NaN,NaN,0):null}function v(t){return new w(t>>16&255,t>>8&255,255&t,1)}function y(t,n,e,r){return r<=0&&(t=n=e=NaN),new w(t,n,e,r)}function m(t){return t instanceof g||(t=d(t)),t?(t=t.rgb(),new w(t.r,t.g,t.b,t.opacity)):new w}function _(t,n,e,r){return 1===arguments.length?m(t):new w(t,n,e,null==r?1:r)}function w(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function b(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new T(t,n,e,r)}function x(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof g||(t=d(t)),!t)return new T;if(t instanceof T)return t;t=t.rgb();var n=t.r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),u=NaN,a=o-i,c=(o+i)/2;return a?(u=n===o?(e-r)/a+6*(e<r):e===o?(r-n)/a+2:(n-e)/a+4,a/=c<.5?o+i:2-o-i,u*=60):a=c>0&&c<1?0:u,new T(u,a,c,t.opacity)}function M(t,n,e,r){return 1===arguments.length?x(t):new T(t,n,e,null==r?1:r)}function T(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function k(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function C(t){if(t instanceof A)return new A(t.l,t.a,t.b,t.opacity);if(t instanceof H){var n=t.h*Qe;return new A(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof w||(t=m(t));var e=E(t.r),r=E(t.g),i=E(t.b),o=S((.4124564*e+.3575761*r+.1804375*i)/nr),u=S((.2126729*e+.7151522*r+.072175*i)/er),a=S((.0193339*e+.119192*r+.9503041*i)/rr);return new A(116*u-16,500*(o-u),200*(u-a),t.opacity)}function N(t,n,e,r){return 1===arguments.length?C(t):new A(t,n,e,null==r?1:r)}function A(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function S(t){return t>ar?Math.pow(t,1/3):t/ur+ir}function U(t){return t>or?t*t*t:ur*(t-ir)}function D(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function E(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function F(t){if(t instanceof H)return new H(t.h,t.c,t.l,t.opacity);t instanceof A||(t=C(t));var n=Math.atan2(t.b,t.a)*Ke;return new H(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function z(t,n,e,r){return 1===arguments.length?F(t):new H(t,n,e,null==r?1:r)}function H(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}function Y(t){if(t instanceof P)return new P(t.h,t.s,t.l,t.opacity);t instanceof w||(t=m(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(dr*r+pr*n-gr*e)/(dr+pr-gr),o=r-i,u=(hr*(e-i)-lr*o)/fr,a=Math.sqrt(u*u+o*o)/(hr*i*(1-i)),c=a?Math.atan2(u,o)*Ke-120:NaN;return new P(c<0?c+360:c,a,i,t.opacity)}function L(t,n,e,r){return 1===arguments.length?Y(t):new P(t,n,e,null==r?1:r)}function P(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function O(t,n){return function(e){return t+e*n}}function j(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}function q(t,n){var e=n-t;return e?O(t,e>180||e<-180?e-360*Math.round(e/360):e):vr(isNaN(t)?n:t)}function I(t){return 1===(t=+t)?$:function(n,e){return e-n?j(n,e,t):vr(isNaN(n)?e:n)}}function $(t,n){var e=n-t;return e?O(t,e):vr(isNaN(t)?n:t)}function R(t){return function(){return t}}function W(t){return function(n){return t(n)+""}}function Z(t){return function n(e){function r(n,r){var i=t((n=L(n)).h,(r=L(r)).h),o=$(n.s,r.s),u=$(n.l,r.l),a=$(n.opacity,r.opacity);return function(t){return n.h=i(t),n.s=o(t),n.l=u(Math.pow(t,e)),n.opacity=a(t),n+""}}return e=+e,r.gamma=n,r}(1)}function X(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Sr(n)}function B(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}function J(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}function V(t,n,e,r){var i=t[0],o=t[1],u=n[0],a=n[1];return o<i?(i=e(o,i),u=r(a,u)):(i=e(i,o),u=r(u,a)),function(t){return u(i(t))}}function G(t,n,e,r){var i=Math.min(t.length,n.length)-1,o=new Array(i),u=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<i;)o[a]=e(t[a],t[a+1]),u[a]=r(n[a],n[a+1]);return function(n){var e=xe(t,n,1,i)-1;return u[e](o[e](n))}}function Q(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function K(t,n){function e(){return i=Math.min(a.length,c.length)>2?G:V,o=u=null,r}function r(n){return(o||(o=i(a,c,l?B(t):t,s)))(+n)}var i,o,u,a=Dr,c=Dr,s=kr,l=!1;return r.invert=function(t){return(u||(u=i(c,a,X,l?J(n):n)))(+t)},r.domain=function(t){return arguments.length?(a=ze.call(t,Ur),e()):a.slice()},r.range=function(t){return arguments.length?(c=He.call(t),e()):c.slice()},r.rangeRound=function(t){return c=He.call(t),s=Cr,e()},r.clamp=function(t){return arguments.length?(l=!!t,e()):l},r.interpolate=function(t){return arguments.length?(s=t,e()):s},e()}function tt(t){return new nt(t)}function nt(t){if(!(n=jr.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",u=!!n[5],a=n[6]&&+n[6],c=!!n[7],s=n[8]&&+n[8].slice(1),l=n[9]||"";"n"===l?(c=!0,l="g"):Or[l]||(l=""),(u||"0"===e&&"="===r)&&(u=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=u,this.width=a,this.comma=c,this.precision=s,this.type=l}function et(t){return qr=Zr(t),Ir=qr.format,$r=qr.formatPrefix,qr}function rt(t){var n=t.domain;return t.ticks=function(t){var e=n();return Ue(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return Vr(n(),t,e)},t.nice=function(e){var r=n(),i=r.length-1,o=null==e?10:e,u=r[0],c=r[i],s=a(u,c,o);return s&&(s=a(Math.floor(u/s)*s,Math.ceil(c/s)*s,o),r[0]=Math.floor(u/s)*s,r[i]=Math.ceil(c/s)*s,n(r)),t},t}function it(){var t=K(X,wr);return t.copy=function(){return Q(t,it())},rt(t)}function ot(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var u=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return u;do u.push(new Date(+e));while(n(e,o),t(e),e<r);return u},i.filter=function(e){return ot(function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)},function(t,r){if(t>=t)for(;--r>=0;)for(;n(t,1),!e(t););})},e&&(i.count=function(n,r){return Gr.setTime(+n),Qr.setTime(+r),t(Gr),t(Qr),Math.floor(e(Gr,Qr))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t===0}:function(n){return i.count(0,n)%t===0}):i:null}),i}function ut(t){return ot(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+7*n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ni)/ii})}function at(t){return ot(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)/ii})}function ct(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 st(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 lt(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function ft(t){function n(t,n){return function(e){var r,i,o,u=[],a=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++a<s;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(i=mi[r=t.charAt(++a)])?r=t.charAt(++a):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),u.push(r),c=a+1);return u.push(t.slice(c,a)),u.join("")}}function e(t,n){return function(e){var i=lt(1900),o=r(i,t,e+="",0);if(o!=e.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var u="Z"in i?st(lt(i.y)).getUTCDay():n(lt(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(u+5)%7:i.w+7*i.U-(u+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,st(i)):n(i)}}function r(t,n,e,r){for(var i,o,u=0,a=n.length,c=e.length;u<a;){if(r>=c)return-1;if(i=n.charCodeAt(u++),37===i){if(i=n.charAt(u++),o=I[i in mi?n.charAt(u++):i],!o||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}function i(t,n,e){var r=U.exec(n.slice(e));return r?(t.p=D[r[0].toLowerCase()],e+r[0].length):-1}function o(t,n,e){var r=z.exec(n.slice(e));return r?(t.w=H[r[0].toLowerCase()],e+r[0].length):-1}function u(t,n,e){var r=E.exec(n.slice(e));return r?(t.w=F[r[0].toLowerCase()],e+r[0].length):-1}function a(t,n,e){var r=P.exec(n.slice(e));return r?(t.m=O[r[0].toLowerCase()],e+r[0].length):-1}function c(t,n,e){var r=Y.exec(n.slice(e));return r?(t.m=L[r[0].toLowerCase()],e+r[0].length):-1}function s(t,n,e){return r(t,x,n,e)}function l(t,n,e){return r(t,M,n,e)}function f(t,n,e){return r(t,T,n,e)}function h(t){return N[t.getDay()]}function p(t){return C[t.getDay()]}function g(t){return S[t.getMonth()]}function d(t){return A[t.getMonth()]}function v(t){return k[+(t.getHours()>=12)]}function y(t){return N[t.getUTCDay()]}function m(t){return C[t.getUTCDay()]}function _(t){return S[t.getUTCMonth()]}function w(t){return A[t.getUTCMonth()]}function b(t){return k[+(t.getUTCHours()>=12)]}var x=t.dateTime,M=t.date,T=t.time,k=t.periods,C=t.days,N=t.shortDays,A=t.months,S=t.shortMonths,U=gt(k),D=dt(k),E=gt(C),F=dt(C),z=gt(N),H=dt(N),Y=gt(A),L=dt(A),P=gt(S),O=dt(S),j={a:h,A:p,b:g,B:d,c:null,d:Ut,e:Ut,H:Dt,I:Et,j:Ft,L:zt,m:Ht,M:Yt,p:v,S:Lt,U:Pt,w:Ot,W:jt,x:null,X:null,y:qt,Y:It,Z:$t,"%":on},q={a:y,A:m,b:_,B:w,c:null,d:Rt,e:Rt,H:Wt,I:Zt,j:Xt,L:Bt,m:Jt,M:Vt,p:b,S:Gt,U:Qt,w:Kt,W:tn,x:null,X:null,y:nn,Y:en,Z:rn,"%":on},I={a:o,A:u,b:a,B:c,c:s,d:Mt,e:Mt,H:kt,I:kt,j:Tt,L:At,m:xt,M:Ct,p:i,S:Nt,U:yt,w:vt,W:mt,x:l,X:f,y:wt,Y:_t,Z:bt,"%":St};return j.x=n(M,j),j.X=n(T,j),j.c=n(x,j),q.x=n(M,q),q.X=n(T,q),q.c=n(x,q),{format:function(t){var e=n(t+="",j);return e.toString=function(){return t},e},parse:function(t){var n=e(t+="",ct);return n.toString=function(){return t},n},utcFormat:function(t){var e=n(t+="",q);return e.toString=function(){return t},e},utcParse:function(t){var n=e(t,st);return n.toString=function(){return t},n}}}function ht(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function pt(t){return t.replace(bi,"\\$&")}function gt(t){return new RegExp("^(?:"+t.map(pt).join("|")+")","i")}function dt(t){for(var n={},e=-1,r=t.length;++e<r;)n[t[e].toLowerCase()]=e;return n}function vt(t,n,e){var r=_i.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function yt(t,n,e){var r=_i.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function mt(t,n,e){var r=_i.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function _t(t,n,e){var r=_i.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function wt(t,n,e){var r=_i.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function bt(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 xt(t,n,e){var r=_i.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Mt(t,n,e){var r=_i.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Tt(t,n,e){var r=_i.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function kt(t,n,e){var r=_i.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function Ct(t,n,e){var r=_i.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Nt(t,n,e){var r=_i.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function At(t,n,e){var r=_i.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function St(t,n,e){var r=wi.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Ut(t,n){return ht(t.getDate(),n,2)}function Dt(t,n){return ht(t.getHours(),n,2)}function Et(t,n){return ht(t.getHours()%12||12,n,2)}function Ft(t,n){return ht(1+oi.count(ci(t),t),n,3)}function zt(t,n){return ht(t.getMilliseconds(),n,3)}function Ht(t,n){return ht(t.getMonth()+1,n,2)}function Yt(t,n){return ht(t.getMinutes(),n,2)}function Lt(t,n){return ht(t.getSeconds(),n,2)}function Pt(t,n){return ht(ui.count(ci(t),t),n,2)}function Ot(t){return t.getDay()}function jt(t,n){return ht(ai.count(ci(t),t),n,2)}function qt(t,n){return ht(t.getFullYear()%100,n,2)}function It(t,n){return ht(t.getFullYear()%1e4,n,4)}function $t(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ht(n/60|0,"0",2)+ht(n%60,"0",2)}function Rt(t,n){return ht(t.getUTCDate(),n,2)}function Wt(t,n){return ht(t.getUTCHours(),n,2)}function Zt(t,n){return ht(t.getUTCHours()%12||12,n,2)}function Xt(t,n){return ht(1+si.count(hi(t),t),n,3)}function Bt(t,n){return ht(t.getUTCMilliseconds(),n,3)}function Jt(t,n){return ht(t.getUTCMonth()+1,n,2)}function Vt(t,n){return ht(t.getUTCMinutes(),n,2)}function Gt(t,n){return ht(t.getUTCSeconds(),n,2)}function Qt(t,n){return ht(li.count(hi(t),t),n,2)}function Kt(t){return t.getUTCDay()}function tn(t,n){return ht(fi.count(hi(t),t),n,2)}function nn(t,n){return ht(t.getUTCFullYear()%100,n,2)}function en(t,n){return ht(t.getUTCFullYear()%1e4,n,4)}function rn(){return"+0000"}function on(){return"%"}function un(t){return pi=ft(t),gi=pi.format,di=pi.parse,vi=pi.utcFormat,yi=pi.utcParse,pi}function an(t){return t.toISOString()}function cn(t){var n=new Date(t);return isNaN(n)?null:n}function sn(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ln(){return new sn}function fn(t){this._context=t}function hn(t){return t[0]}function pn(t){return t[1]}function gn(t){return t<0?-1:1}function dn(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(gn(o)+gn(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function vn(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function yn(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 mn(t){this._context=t}function _n(t){this._context=new wn(t)}function wn(t){this._context=t}function bn(t){return new mn(t)}function xn(t,n){this._context=t,this._t=n}function Mn(t){return new xn(t,1)}function Tn(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Ei&&n.documentElement.namespaceURI===Ei?n.createElement(t):n.createElementNS(e,t)}}function kn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Cn(t,n,e){return t=Nn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Nn(t,n,e){return function(r){var i=qi;qi=r;try{t.call(this,this.__data__,n,e)}finally{qi=i}}}function An(t){return t.trim().split(/^|\s+/).map(function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}})}function Sn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.capture);++i?n.length=i:delete this.__on}}}function Un(t,n,e){var r=ji.hasOwnProperty(t.type)?Cn:Nn;return function(i,o,u){var a,c=this.__on,s=r(n,o,u);if(c)for(var l=0,f=c.length;l<f;++l)if((a=c[l]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=s,a.capture=e),void(a.value=n);this.addEventListener(t.type,s,e),a={type:t.type,name:t.name,value:n,listener:s,capture:e},c?c.push(a):this.__on=[a]}}function Dn(){}function En(){return[]}function Fn(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function zn(t,n,e,r,i,o){for(var u,a=0,c=n.length,s=o.length;a<s;++a)(u=n[a])?(u.__data__=o[a],r[a]=u):e[a]=new Fn(t,o[a]);for(;a<c;++a)(u=n[a])&&(i[a]=u)}function Hn(t,n,e,r,i,o,u){var a,c,s,l={},f=n.length,h=o.length,p=new Array(f);for(a=0;a<f;++a)(c=n[a])&&(p[a]=s=Qi+u.call(c,c.__data__,a,n),s in l?i[a]=c:l[s]=c);for(a=0;a<h;++a)s=Qi+u.call(t,o[a],a,o),(c=l[s])?(r[a]=c,c.__data__=o[a],l[s]=null):e[a]=new Fn(t,o[a]);for(a=0;a<f;++a)(c=n[a])&&l[p[a]]===c&&(i[a]=c)}function Yn(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Ln(t){return function(){this.removeAttribute(t)}}function Pn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function On(t,n){return function(){this.setAttribute(t,n)}}function jn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function qn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function In(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function $n(t){return function(){this.style.removeProperty(t)}}function Rn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Wn(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Zn(t){return function(){delete this[t]}}function Xn(t,n){return function(){this[t]=n}}function Bn(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Jn(t){return t.trim().split(/^|\s+/)}function Vn(t){return t.classList||new Gn(t)}function Gn(t){this._node=t,this._names=Jn(t.getAttribute("class")||"")}function Qn(t,n){for(var e=Vn(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Kn(t,n){for(var e=Vn(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function te(t){return function(){Qn(this,t)}}function ne(t){return function(){Kn(this,t)}}function ee(t,n){return function(){(n.apply(this,arguments)?Qn:Kn)(this,t)}}function re(){this.textContent=""}function ie(t){return function(){this.textContent=t}}function oe(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function ue(){this.innerHTML=""}function ae(t){return function(){this.innerHTML=t}}function ce(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function se(){this.nextSibling&&this.parentNode.appendChild(this)}function le(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fe(){return null}function he(){var t=this.parentNode;t&&t.removeChild(this)}function pe(t,n,e){var r=fo(t),i=r.CustomEvent;i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function ge(t,n){return function(){return pe(this,t,n)}}function de(t,n){return function(){return pe(this,t,n.apply(this,arguments))}}function ve(t,n){this._groups=t,this._parents=n}function ye(){return new ve([[document.documentElement]],ko)}function me(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=Co(t);var r=ke({},me.m(),e),i=((n.ext[0]+n.ext[1])/2,[n.ext[0],n.thresholds[Math.floor(n.thresholds.length/2)],n.ext[1]]),o=Ir((n.ext[0]<0?"+":"")+","),u=function(t){return o(Math.round(t*Math.pow(10,r.precision))/Math.pow(10,r.precision)).replace("-","&minus;").replace(/^\+0$/,"0")},a=Ir(".0%"),c=n.blocks[0].length-(n.overflow?2:0)+(r.curve?0:1),s=r.overflow,l=(r.width-2*(n.overflow?r.overflow:0))/(c+1)/2,f=r.curve?it().domain([0,1,c-2+2,c-1+2]).range([n.overflow?r.overflow:0,(n.overflow?r.overflow:0)+l,r.width-(n.overflow?r.overflow:0)-l,r.width-(n.overflow?r.overflow:0)]):it().domain([0,c-1]).range([n.overflow?r.overflow:0,r.width-(n.overflow?r.overflow:0)]),p=it().domain([0,1,2,3]).range([0,r.overflow,r.width-r.overflow,r.width]),g=it().domain(n.ext).range([n.overflow?s:0+r.shift,r.width-(n.overflow?s:0+r.shift)]),d=it().domain([0,1]).range([0,r.width]),v=it().domain([0,n.normalize]).range([r.height-r.bottom,r.top]),y=h().range(r.colors),m=[d(0)+r.shift,d(1)-r.shift],_=[0,0];n.overflow&&n.blocks.forEach(function(t){_[0]+=t[0],_[1]+=t[t.length-1]}),_[0]/=n.samples,_[1]/=n.samples;var w=Di().curve(r.curve?bn:Mn).x(function(t,n){return f(n)}).y0(function(t){return v(t[0])}).y1(function(t){return v(t[1])}),b=Di().curve(Mn).x(function(t,n){return p(n)}).y0(function(t){return v(t[0])}).y1(function(t){return v(t[1])}),x=void 0,M=n.blocks.map(function(t,n){return x=t.map(function(t,e){var r=n>0?x[e][1]:0;return[r,t+r]})}),T=n.overflow?M.map(function(t,n){var e=t.splice(1,t.length-2);return M[n]=[t[0],[0,0],t[1]],e}):M;n.overflow&&M.forEach(function(t){return t.push(t[t.length-1])}),r.curve&&T.forEach(function(t){return t.unshift(t[0])}),T.forEach(function(t){return t.push(t[t.length-1])}),t.style("background-color",r.background);var k=t.selectAll(".bin").data(T);k.exit().remove(),k.enter().append("path").attr("class","bin").merge(k).style("fill",function(t,n){return y(n)}).attr("d",w),k=t.selectAll(".overflow").data(n.overflow?M:[]),k.exit().remove(),k.enter().append("path").attr("class","overflow").merge(k).style("fill",function(t,n){return y(n)}).attr("d",b),k=t.selectAll(".line-min").data(n.overflow&&r.lines?[0]:[]),k.exit().remove(),k.enter().append("line").attr("class","line-min").merge(k).attr("x1",Math.floor(f(0))).attr("x2",Math.floor(f(0))).attr("y1",v(0)).attr("y2",v(n.normalize)).attr("stroke-width",r.strokeWidth).attr("stroke-dasharray",r.dash).attr("stroke",r.stroke),k=t.selectAll(".line-max").data(n.overflow&&r.lines?[0]:[]),k.exit().remove(),k.enter().append("line").attr("class","line-max").merge(k).attr("x1",Math.ceil(f(c+1))).attr("x2",Math.ceil(f(c+1))).attr("y1",v(0)).attr("y2",v(n.normalize)).attr("stroke-width",r.strokeWidth).attr("stroke-dasharray",r.dash).attr("stroke",r.stroke),k=t.selectAll(".line-mid").data(r.mid?[0]:[]),k.exit().remove(),k.enter().append("line").attr("class","line-mid").merge(k).attr("x1",f((c-1+2*!!r.curve)/2)).attr("x2",f((c-1+2*!!r.curve)/2)).attr("y1",v(0)).attr("y2",v(n.normalize)).attr("stroke-width",r.strokeWidth).attr("stroke-dasharray",r.dash).attr("stroke",r.stroke),k=t.selectAll(".labels").data(r.ticks?r.mid?i:n.ext:[]),k.exit().remove(),k.enter().append("text").attr("class","labels").merge(k).attr("text-anchor",function(t,n){return["start","middle","end"][r.mid?n:2*n]}).attr("dominant-baseline","hanging").attr("font-family",r.font).attr("font-size",r.fontSize).attr("line-height",r.line).attr("fill",r.color).attr("x",function(t){return g(t)}).attr("y",(r.line-r.fontSize)/2).html(function(t){return u(t)}),k=t.selectAll(".extent").data(r.labels?[n.min,n.max]:[]),k.exit().remove(),k.enter().append("text").attr("class","extent").merge(k).attr("text-anchor",function(t,n){return["start","end"][n]}).attr("dominant-baseline","baseline").attr("font-family",r.font).attr("font-size",r.fontSize).attr("line-height",r.line).attr("fill",r.color).attr("x",function(t,n){return m[n]}).attr("y",r.height-(r.line-r.fontSize)/2).html(function(t){return u(t)}),k=t.selectAll(".percent").data(r.labels?_:[]),k.exit().remove(),k.enter().append("text").attr("class","percent").merge(k).attr("text-anchor",function(t,n){return["start","end"][n]}).attr("dominant-baseline","baseline").attr("font-family",r.font).attr("font-size",r.fontSize).attr("line-height",r.line).attr("fill",r.color).attr("x",function(t,n){return[0,r.width][n]}).attr("y",function(t){return v(t*n.samples)-(r.line-r.fontSize)/2}).text(function(t){return t?a(t):""})}var _e=function(t,n){return t<n?-1:t>n?1:t>=n?0:NaN},we=function(t){return 1===t.length&&(t=n(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r<i;){var o=r+i>>>1;t(n[o],e)>0?i=o:r=o+1}return r}}},be=we(_e),xe=be.right,Me=function(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o},Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ke=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ce=function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)},Ne=Math.sqrt(50),Ae=Math.sqrt(10),Se=Math.sqrt(2),Ue=function(t,n,e){var r=a(t,n,e);return Me(Math.ceil(t/r)*r,Math.floor(n/r)*r+r/2,r)},De="$";c.prototype=s.prototype={constructor:c,has:function(t){return De+t in this},get:function(t){return this[De+t]},set:function(t,n){return this[De+t]=n,this},remove:function(t){var n=De+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===De&&delete this[t]},keys:function t(){var t=[];for(var n in this)n[0]===De&&t.push(n.slice(1));return t},values:function t(){var t=[];for(var n in this)n[0]===De&&t.push(this[n]);return t},entries:function t(){var t=[];for(var n in this)n[0]===De&&t.push({key:n.slice(1),value:this[n]});return t},size:function t(){var t=0;for(var n in this)n[0]===De&&++t;return t},empty:function(){for(var t in this)if(t[0]===De)return!1;return!0},each:function(t){for(var n in this)n[0]===De&&t(this[n],n.slice(1),this)}};var Ee=s.prototype;l.prototype=f.prototype={constructor:l,has:Ee.has,add:function(t){return t+="",this[De+t]=t,this},remove:Ee.remove,clear:Ee.clear,values:Ee.keys,size:Ee.size,empty:Ee.empty,each:Ee.each};var Fe=Array.prototype,ze=Fe.map,He=Fe.slice,Ye={name:"implicit"},Le=function(t,n,e){t.prototype=n.prototype=e,e.constructor=t},Pe=.7,Oe=1/Pe,je="\\s*([+-]?\\d+)\\s*",qe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ie="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$e=/^#([0-9a-f]{3})$/,Re=/^#([0-9a-f]{6})$/,We=new RegExp("^rgb\\("+[je,je,je]+"\\)$"),Ze=new RegExp("^rgb\\("+[Ie,Ie,Ie]+"\\)$"),Xe=new RegExp("^rgba\\("+[je,je,je,qe]+"\\)$"),Be=new RegExp("^rgba\\("+[Ie,Ie,Ie,qe]+"\\)$"),Je=new RegExp("^hsl\\("+[qe,Ie,Ie]+"\\)$"),Ve=new RegExp("^hsla\\("+[qe,Ie,Ie,qe]+"\\)$"),Ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,
  rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Le(g,d,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Le(w,_,p(g,{brighter:function(t){return t=null==t?Oe:Math.pow(Oe,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Pe:Math.pow(Pe,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Le(T,M,p(g,{brighter:function(t){return t=null==t?Oe:Math.pow(Oe,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Pe:Math.pow(Pe,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new w(k(t>=240?t-240:t+120,i,r),k(t,i,r),k(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Qe=Math.PI/180,Ke=180/Math.PI,tr=18,nr=.95047,er=1,rr=1.08883,ir=4/29,or=6/29,ur=3*or*or,ar=or*or*or;Le(A,N,p(g,{brighter:function(t){return new A(this.l+tr*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new A(this.l-tr*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=er*U(t),n=nr*U(n),e=rr*U(e),new w(D(3.2404542*n-1.5371385*t-.4985314*e),D(-.969266*n+1.8760108*t+.041556*e),D(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Le(H,z,p(g,{brighter:function(t){return new H(this.h,this.c,this.l+tr*(null==t?1:t),this.opacity)},darker:function(t){return new H(this.h,this.c,this.l-tr*(null==t?1:t),this.opacity)},rgb:function(){return C(this).rgb()}}));var cr=-.14861,sr=1.78277,lr=-.29227,fr=-.90649,hr=1.97294,pr=hr*fr,gr=hr*sr,dr=sr*lr-fr*cr;Le(P,L,p(g,{brighter:function(t){return t=null==t?Oe:Math.pow(Oe,t),new P(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Pe:Math.pow(Pe,t),new P(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Qe,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new w(255*(n+e*(cr*r+sr*i)),255*(n+e*(lr*r+fr*i)),255*(n+e*(hr*r)),this.opacity)}}));var vr=function(t){return function(){return t}},yr=function t(n){function e(t,n){var e=r((t=_(t)).r,(n=_(n)).r),i=r(t.g,n.g),o=r(t.b,n.b),u=$(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=o(n),t.opacity=u(n),t+""}}var r=I(n);return e.gamma=t,e}(1),mr=function(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(r),u=new Array(r);for(e=0;e<i;++e)o[e]=kr(t[e],n[e]);for(;e<r;++e)u[e]=n[e];return function(t){for(e=0;e<i;++e)u[e]=o[e](t);return u}},_r=function(t,n){var e=new Date;return t=+t,n-=t,function(r){return e.setTime(t+n*r),e}},wr=function(t,n){return t=+t,n-=t,function(e){return t+n*e}},br=function(t,n){var e,r={},i={};null!==t&&"object"===("undefined"==typeof t?"undefined":Te(t))||(t={}),null!==n&&"object"===("undefined"==typeof n?"undefined":Te(n))||(n={});for(e in n)e in t?r[e]=kr(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}},xr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mr=new RegExp(xr.source,"g"),Tr=function(t,n){var e,r,i,o=xr.lastIndex=Mr.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(e=xr.exec(t))&&(r=Mr.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),a[u]?a[u]+=i:a[++u]=i),(e=e[0])===(r=r[0])?a[u]?a[u]+=r:a[++u]=r:(a[++u]=null,c.push({i:u,x:wr(e,r)})),o=Mr.lastIndex;return o<n.length&&(i=n.slice(o),a[u]?a[u]+=i:a[++u]=i),a.length<2?c[0]?W(c[0].x):R(n):(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})},kr=function(t,n){var e,r="undefined"==typeof n?"undefined":Te(n);return null==n||"boolean"===r?vr(n):("number"===r?wr:"string"===r?(e=d(n))?(n=e,yr):Tr:n instanceof d?yr:n instanceof Date?_r:Array.isArray(n)?mr:isNaN(n)?br:wr)(t,n)},Cr=function(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}};Z(q);var Nr,Ar=Z($),Sr=function(t){return function(){return t}},Ur=function(t){return+t},Dr=[0,1],Er=function(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]},Fr=function(t){return t=Er(Math.abs(t)),t?t[1]:NaN},zr=function(t,n){return function(e,r){for(var i=e.length,o=[],u=0,a=t[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),o.push(e.substring(i-=a,i+a)),!((c+=a+1)>r));)a=t[u=(u+1)%t.length];return o.reverse().join(n)}},Hr=function(t){return function(n){return n.replace(/[0-9]/g,function(n){return t[+n]})}},Yr=function(t,n){t=t.toPrecision(n);t:for(var e,r=t.length,i=1,o=-1;i<r;++i)switch(t[i]){case".":o=e=i;break;case"0":0===o&&(o=i),e=i;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},Lr=function(t,n){var e=Er(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Nr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Er(t,Math.max(0,n+o-1))[0]},Pr=function(t,n){var e=Er(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Or={"":Yr,"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Pr(100*t,n)},r:Pr,s:Lr,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},jr=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;tt.prototype=nt.prototype,nt.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var qr,Ir,$r,Rr=function(t){return t},Wr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Zr=function(t){function n(t){function n(t){var n,i,s,_=d,w=v;if("c"===g)w=y(t)+w,t="";else{t=+t;var b=t<0;if(t=y(Math.abs(t),p),b&&0===+t&&(b=!1),_=(b?"("===c?c:"-":"-"===c||"("===c?"":c)+_,w=w+("s"===g?Wr[8+Nr/3]:"")+(b&&"("===c?")":""),m)for(n=-1,i=t.length;++n<i;)if(s=t.charCodeAt(n),48>s||s>57){w=(46===s?o+t.slice(n+1):t.slice(n))+w,t=t.slice(0,n);break}}h&&!l&&(t=r(t,1/0));var x=_.length+t.length+w.length,M=x<f?new Array(f-x+1).join(e):"";switch(h&&l&&(t=r(M+t,M.length?f-w.length:1/0),M=""),a){case"<":t=_+t+w+M;break;case"=":t=_+M+t+w;break;case"^":t=M.slice(0,x=M.length>>1)+_+t+w+M.slice(x);break;default:t=M+_+t+w}return u(t)}t=tt(t);var e=t.fill,a=t.align,c=t.sign,s=t.symbol,l=t.zero,f=t.width,h=t.comma,p=t.precision,g=t.type,d="$"===s?i[0]:"#"===s&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",v="$"===s?i[1]:/[%p]/.test(g)?"%":"",y=Or[g],m=!g||/[defgprs%]/.test(g);return p=null==p?g?6:12:/[gprs]/.test(g)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),n.toString=function(){return t+""},n}function e(t,e){var r=n((t=tt(t),t.type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Fr(e)/3))),o=Math.pow(10,-i),u=Wr[8+i/3];return function(t){return r(o*t)+u}}var r=t.grouping&&t.thousands?zr(t.grouping,t.thousands):Rr,i=t.currency,o=t.decimal,u=t.numerals?Hr(t.numerals):Rr;return{format:n,formatPrefix:e}};et({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Xr=function(t){return Math.max(0,-Fr(Math.abs(t)))},Br=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Fr(n)/3)))-Fr(Math.abs(t)))},Jr=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Fr(n)-Fr(t))+1},Vr=function(t,n,e){var r,i=t[0],o=t[t.length-1],u=a(i,o,null==n?10:n);switch(e=tt(null==e?",f":e),e.type){case"s":var c=Math.max(Math.abs(i),Math.abs(o));return null!=e.precision||isNaN(r=Br(u,c))||(e.precision=r),$r(e,c);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=Jr(u,Math.max(Math.abs(i),Math.abs(o))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=Xr(u))||(e.precision=r-2*("%"===e.type))}return Ir(e)},Gr=new Date,Qr=new Date,Kr=ot(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});Kr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ot(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):Kr:null};var ti=1e3,ni=6e4,ei=36e5,ri=864e5,ii=6048e5,oi=(ot(function(t){t.setTime(Math.floor(t/ti)*ti)},function(t,n){t.setTime(+t+n*ti)},function(t,n){return(n-t)/ti},function(t){return t.getUTCSeconds()}),ot(function(t){t.setTime(Math.floor(t/ni)*ni)},function(t,n){t.setTime(+t+n*ni)},function(t,n){return(n-t)/ni},function(t){return t.getMinutes()}),ot(function(t){var n=t.getTimezoneOffset()*ni%ei;n<0&&(n+=ei),t.setTime(Math.floor((+t-n)/ei)*ei+n)},function(t,n){t.setTime(+t+n*ei)},function(t,n){return(n-t)/ei},function(t){return t.getHours()}),ot(function(t){t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ni)/ri},function(t){return t.getDate()-1})),ui=ut(0),ai=ut(1),ci=(ut(2),ut(3),ut(4),ut(5),ut(6),ot(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()}),ot(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()}));ci.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ot(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 si=(ot(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*ni)},function(t,n){return(n-t)/ni},function(t){return t.getUTCMinutes()}),ot(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*ei)},function(t,n){return(n-t)/ei},function(t){return t.getUTCHours()}),ot(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/ri},function(t){return t.getUTCDate()-1})),li=at(0),fi=at(1),hi=(at(2),at(3),at(4),at(5),at(6),ot(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),ot(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()}));hi.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ot(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 pi,gi,di,vi,yi,mi={"-":"",_:" ",0:"0"},_i=/^\s*\d+/,wi=/^%/,bi=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;un({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var xi="%Y-%m-%dT%H:%M:%S.%LZ",Mi=(Date.prototype.toISOString?an:vi(xi),+new Date("2000-01-01T00:00:00.000Z")?cn:yi(xi),function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})});Mi("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Mi("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Mi("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Mi("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Ar(L(300,.5,0),L(-240,.5,1));var Ti=(Ar(L(-100,.75,.35),L(80,1.5,.8)),Ar(L(260,.75,.35),L(80,1.5,.8)),L(),Math.PI),ki=2*Ti,Ci=1e-6,Ni=ki-Ci;sn.prototype=ln.prototype={constructor:sn,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,u=this._y1,a=e-t,c=r-n,s=o-t,l=u-n,f=s*s+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(f>Ci)if(Math.abs(l*a-c*s)>Ci&&i){var h=e-o,p=r-u,g=a*a+c*c,d=h*h+p*p,v=Math.sqrt(g),y=Math.sqrt(f),m=i*Math.tan((Ti-Math.acos((g+f-d)/(2*v*y)))/2),_=m/y,w=m/v;Math.abs(_-1)>Ci&&(this._+="L"+(t+_*s)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>s*p)+","+(this._x1=t+w*a)+","+(this._y1=n+w*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,e,r,i,o){t=+t,n=+n,e=+e;var u=e*Math.cos(r),a=e*Math.sin(r),c=t+u,s=n+a,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>Ci||Math.abs(this._y1-s)>Ci)&&(this._+="L"+c+","+s),e&&(f<0&&(f=f%ki+ki),f>Ni?this._+="A"+e+","+e+",0,1,"+l+","+(t-u)+","+(n-a)+"A"+e+","+e+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>Ci&&(this._+="A"+e+","+e+",0,"+ +(f>=Ti)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var Ai=function(t){return function(){return t}};fn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Si=function(t){return new fn(t)},Ui=function(){function t(t){var a,c,s,l=t.length,f=!1;for(null==i&&(u=o(s=ln())),a=0;a<=l;++a)!(a<l&&r(c=t[a],a,t))===f&&((f=!f)?u.lineStart():u.lineEnd()),f&&u.point(+n(c,a,t),+e(c,a,t));if(s)return u=null,s+""||null}var n=hn,e=pn,r=Ai(!0),i=null,o=Si,u=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Ai(+e),t):n},t.y=function(n){return arguments.length?(e="function"==typeof n?n:Ai(+n),t):e},t.defined=function(n){return arguments.length?(r="function"==typeof n?n:Ai(!!n),t):r},t.curve=function(n){return arguments.length?(o=n,null!=i&&(u=o(i)),t):o},t.context=function(n){return arguments.length?(null==n?i=u=null:u=o(i=n),t):i},t},Di=function(){function t(t){var n,l,f,h,p,g=t.length,d=!1,v=new Array(g),y=new Array(g);for(null==a&&(s=c(p=ln())),n=0;n<=g;++n){if(!(n<g&&u(h=t[n],n,t))===d)if(d=!d)l=n,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=n-1;f>=l;--f)s.point(v[f],y[f]);s.lineEnd(),s.areaEnd()}d&&(v[n]=+e(h,n,t),y[n]=+i(h,n,t),s.point(r?+r(h,n,t):v[n],o?+o(h,n,t):y[n]))}if(p)return s=null,p+""||null}function n(){return Ui().defined(u).curve(c).context(a)}var e=hn,r=null,i=Ai(0),o=pn,u=Ai(!0),a=null,c=Si,s=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Ai(+n),r=null,t):e},t.x0=function(n){return arguments.length?(e="function"==typeof n?n:Ai(+n),t):e},t.x1=function(n){return arguments.length?(r=null==n?null:"function"==typeof n?n:Ai(+n),t):r},t.y=function(n){return arguments.length?(i="function"==typeof n?n:Ai(+n),o=null,t):i},t.y0=function(n){return arguments.length?(i="function"==typeof n?n:Ai(+n),t):i},t.y1=function(n){return arguments.length?(o=null==n?null:"function"==typeof n?n:Ai(+n),t):o},t.lineX0=t.lineY0=function(){return n().x(e).y(i)},t.lineY1=function(){return n().x(e).y(o)},t.lineX1=function(){return n().x(r).y(i)},t.defined=function(n){return arguments.length?(u="function"==typeof n?n:Ai(!!n),t):u},t.curve=function(n){return arguments.length?(c=n,null!=a&&(s=c(a)),t):c},t.context=function(n){return arguments.length?(null==n?a=s=null:s=c(a=n),t):a},t};mn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:yn(this,this._t0,vn(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(t=+t,n=+n,t!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,yn(this,vn(this,e=dn(this,t,n)),e);break;default:yn(this,this._t0,e=dn(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(_n.prototype=Object.create(mn.prototype)).point=function(t,n){mn.prototype.point.call(this,n,t)},wn.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},xn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var Ei="http://www.w3.org/1999/xhtml",Fi={svg:"http://www.w3.org/2000/svg",xhtml:Ei,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},zi=function(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Fi.hasOwnProperty(n)?{space:Fi[n],local:t}:t},Hi=function(t){var n=zi(t);return(n.local?kn:Tn)(n)},Yi=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Li=document.documentElement;if(!Li.matches){var Pi=Li.webkitMatchesSelector||Li.msMatchesSelector||Li.mozMatchesSelector||Li.oMatchesSelector;Yi=function(t){return function(){return Pi.call(this,t)}}}}var Oi=Yi,ji={},qi=null;if("undefined"!=typeof document){var Ii=document.documentElement;"onmouseenter"in Ii||(ji={mouseenter:"mouseover",mouseleave:"mouseout"})}var $i=function(t,n,e){var r,i,o=An(t+""),u=o.length;{if(!(arguments.length<2)){for(a=n?Un:Sn,null==e&&(e=!1),r=0;r<u;++r)this.each(a(o[r],n,e));return this}var a=this.node().__on;if(a)for(var c,s=0,l=a.length;s<l;++s)for(r=0,c=a[s];r<u;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value}},Ri=function(t){return null==t?Dn:function(){return this.querySelector(t)}},Wi=function(t){"function"!=typeof t&&(t=Ri(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u,a=n[i],c=a.length,s=r[i]=new Array(c),l=0;l<c;++l)(o=a[l])&&(u=t.call(o,o.__data__,l,a))&&("__data__"in o&&(u.__data__=o.__data__),s[l]=u);return new ve(r,this._parents)},Zi=function(t){return null==t?En:function(){return this.querySelectorAll(t)}},Xi=function(t){"function"!=typeof t&&(t=Zi(t));for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var u,a=n[o],c=a.length,s=0;s<c;++s)(u=a[s])&&(r.push(t.call(u,u.__data__,s,a)),i.push(u));return new ve(r,i)},Bi=function(t){"function"!=typeof t&&(t=Oi(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,c=r[i]=[],s=0;s<a;++s)(o=u[s])&&t.call(o,o.__data__,s,u)&&c.push(o);return new ve(r,this._parents)},Ji=function(t){return new Array(t.length)},Vi=function(){return new ve(this._enter||this._groups.map(Ji),this._parents)};Fn.prototype={constructor:Fn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Gi=function(t){return function(){return t}},Qi="$",Ki=function(t,n){if(!t)return p=new Array(this.size()),s=-1,this.each(function(t){p[++s]=t}),p;var e=n?Hn:zn,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Gi(t));for(var o=i.length,u=new Array(o),a=new Array(o),c=new Array(o),s=0;s<o;++s){var l=r[s],f=i[s],h=f.length,p=t.call(l,l&&l.__data__,s,r),g=p.length,d=a[s]=new Array(g),v=u[s]=new Array(g),y=c[s]=new Array(h);e(l,f,d,v,y,p,n);for(var m,_,w=0,b=0;w<g;++w)if(m=d[w]){for(w>=b&&(b=w+1);!(_=v[b])&&++b<g;);m._next=_||null}}return u=new ve(u,r),u._enter=a,u._exit=c,u},to=function(){return new ve(this._exit||this._groups.map(Ji),this._parents)},no=function(t){for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var c,s=n[a],l=e[a],f=s.length,h=u[a]=new Array(f),p=0;p<f;++p)(c=s[p]||l[p])&&(h[p]=c);for(;a<r;++a)u[a]=n[a];return new ve(u,this._parents)},eo=function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,u=i[o];--o>=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},ro=function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Yn);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var u,a=e[o],c=a.length,s=i[o]=new Array(c),l=0;l<c;++l)(u=a[l])&&(s[l]=u);s.sort(n)}return new ve(i,this._parents).order()},io=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},oo=function(){var t=new Array(this.size()),n=-1;return this.each(function(){t[++n]=this}),t},uo=function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var u=r[i];if(u)return u}return null},ao=function(){var t=0;return this.each(function(){++t}),t},co=function(){return!this.node()},so=function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],u=0,a=o.length;u<a;++u)(i=o[u])&&t.call(i,i.__data__,u,o);return this},lo=function(t,n){var e=zi(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?Pn:Ln:"function"==typeof n?e.local?In:qn:e.local?jn:On)(e,n))},fo=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView},ho=function(t,n,e){var r;return arguments.length>1?this.each((null==n?$n:"function"==typeof n?Wn:Rn)(t,n,null==e?"":e)):fo(r=this.node()).getComputedStyle(r,null).getPropertyValue(t)},po=function(t,n){return arguments.length>1?this.each((null==n?Zn:"function"==typeof n?Bn:Xn)(t,n)):this.node()[t]};Gn.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var go=function(t,n){var e=Jn(t+"");if(arguments.length<2){for(var r=Vn(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?ee:n?te:ne)(e,n))},vo=function(t){return arguments.length?this.each(null==t?re:("function"==typeof t?oe:ie)(t)):this.node().textContent},yo=function(t){return arguments.length?this.each(null==t?ue:("function"==typeof t?ce:ae)(t)):this.node().innerHTML},mo=function(){return this.each(se)},_o=function(){return this.each(le)},wo=function(t){var n="function"==typeof t?t:Hi(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},bo=function(t,n){var e="function"==typeof t?t:Hi(t),r=null==n?fe:"function"==typeof n?n:Ri(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},xo=function(){return this.each(he)},Mo=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},To=function(t,n){return this.each(("function"==typeof n?de:ge)(t,n))},ko=[null];ve.prototype=ye.prototype={constructor:ve,select:Wi,selectAll:Xi,filter:Bi,data:Ki,enter:Vi,exit:to,merge:no,order:eo,sort:ro,call:io,nodes:oo,node:uo,size:ao,empty:co,each:so,attr:lo,style:ho,property:po,classed:go,text:vo,html:yo,raise:mo,lower:_o,append:wo,insert:bo,remove:xo,datum:Mo,on:$i,dispatch:To};var Co=function(t){return"string"==typeof t?new ve([[document.querySelector(t)]],[document.documentElement]):new ve([[t]],ko)};me.m=function(t){return ke({width:128,height:128,overflow:20,top:17,bottom:17,line:20,fontSize:12,em:2.25,shift:3,font:'"Roboto", monospace',curve:!0,labels:!0,ticks:!0,lines:!0,mid:!1,precision:1,colors:["#888","#ff4","#f4f","#4ff","#f44","#4f4","#44f"],background:"#fff",strokeWidth:.75,stroke:"rgba(0,0,0,.66)",dash:"3 3"},t?me.dark():{})},me.xs=function(t){return ke({},me.m(t),{width:64,height:64,labels:!1,ticks:!1,top:0,bottom:0,lines:!1,overflow:4,curve:!1})},me.s=function(t){return ke({},me.m(t),{width:96,height:96})},me.l=function(t){return ke({},me.m(t),{width:256,height:128,mid:!0,overflow:16,precision:2})},me.dark=function(){return ke({},me.m(),{colors:["#fff","#ff4","#f4f","#4ff","#f44","#4f4","#44f"],stroke:"rgba(255,255,255,.66)",background:"#444",color:"#fff"})},t.getHistogram=r,t.viewHistogram=me,Object.defineProperty(t,"__esModule",{value:!0})});
  //# sourceMappingURL=glt-histogram.js.map
  