flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zentol <...@git.apache.org>
Subject [GitHub] flink pull request #4647: [FLINK-7575] [WEB-DASHBOARD] Display "Fetching..."...
Date Tue, 05 Sep 2017 17:53:39 GMT
Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4647#discussion_r137067050
  
    --- Diff: flink-runtime-web/web-dashboard/web/js/vendor.js ---
    @@ -15,11 +15,11 @@ ua.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=
     return n(null,null,1,{point:function(t,n){i.push(t=e(t,n)),t[0]*=Ba,t[1]*=Ba}}),{type:"Polygon",coordinates:[i]}}var e,n,r=[0,0],i=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=gn((e=+r)*Ra,i*Ra),t):e},t.precision=function(r){return arguments.length?(n=gn(e*Ra,(i=+r)*Ra),t):i},t.angle(90)},ua.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Ra,i=t[1]*Ra,o=e[1]*Ra,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),l=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=l*c-u*f*s)*n),u*c+l*f*s)},ua.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return ua.range(Math.ceil(o/v)*v,i,v).map(d).concat(ua.range(Math.ceil(l/m)*m,u,m).map(h)).concat(ua.range(Math.ceil(r/p)*p,n,p).filter(function(t){return xa(t%v)>La}).map(c)).concat(ua.range(Math.ceil(s/g)*g,a,g).filter(function(t){return xa(t%m)>La}).map(f))}var n,r,i,o,a,s,u,l,c,f,d,h,p=10,g=p,v=90,m=360,y=
 2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[d(o).concat(h(u).slice(1),d(i).reverse().slice(1),h(l).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(o=+e[0][0],i=+e[1][0],l=+e[0][1],u=+e[1][1],o>i&&(e=o,o=i,i=e),l>u&&(e=l,l=u,u=e),t.precision(y)):[[o,l],[i,u]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),t.precision(y)):[[r,s],[n,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(v=+e[0],m=+e[1],t):[v,m]},t.minorStep=function(e){return arguments.length?(p=+e[0],g=+e[1],t):[p,g]},t.precision=function(e){return arguments.length?(y=+e,c=mn(s,a,90),f=yn(r,n,y),d=mn(l,u,90),h=yn(o,i,y),t
 ):y},t.majorExtent([[-180,-90+La],[180,90-La]]).minorExtent([[-180,-80-La],[180,80+La]])},ua.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||i.apply(this,arguments)]}}var e,n,r=bn,i=xn;return t.distance=function(){return ua.geo.distance(e||r.apply(this,arguments),n||i.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(i=e,n="function"==typeof e?null:e,t):i},t.precision=function(){return arguments.length?t:0},t},ua.geo.interpolate=function(t,e){return wn(t[0]*Ra,t[1]*Ra,e[0]*Ra,e[1]*Ra)},ua.geo.length=function(t){return Xs=0,ua.geo.stream(t,Zs),Xs};var Xs,Zs={sphere:w,point:w,lineStart:$n,lineEnd:w,polygonStart:w,polygonEnd:w},Qs=kn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(ua.geo.azimuthalEqualArea=function(){return an(Qs)}).raw=Qs;var Ks=kn(function(t){var e=Math.acos(t);return e&&e/Math
 .sin(e)},y);(ua.geo.azimuthalEquidistant=function(){return an(Ks)}).raw=Ks,(ua.geo.conicConformal=function(){return Ve(_n)}).raw=_n,(ua.geo.conicEquidistant=function(){return Ve(Mn)}).raw=Mn;var Js=kn(function(t){return 1/t},Math.atan);(ua.geo.gnomonic=function(){return an(Js)}).raw=Js,Cn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Wa]},(ua.geo.mercator=function(){return Sn(Cn)}).raw=Cn;var tu=kn(function(){return 1},Math.asin);(ua.geo.orthographic=function(){return an(tu)}).raw=tu;var eu=kn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(ua.geo.stereographic=function(){return an(eu)}).raw=eu,En.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Wa]},(ua.geo.transverseMercator=function(){var t=Sn(En),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=En,ua.geom={},ua.geom.hull=function(t){func
 tion e(t){if(t.length<3)return[];var e,i=Ct(n),o=Ct(r),a=t.length,s=[],u=[];for(e=0;e<a;e++)s.push([+i.call(this,t[e],e),+o.call(this,t[e],e),e]);for(s.sort(Dn),e=0;e<a;e++)u.push([s[e][0],-s[e][1]]);var l=Nn(s),c=Nn(u),f=c[0]===l[0],d=c[c.length-1]===l[l.length-1],h=[];for(e=l.length-1;e>=0;--e)h.push(t[s[l[e]][2]]);for(e=+f;e<c.length-d;++e)h.push(t[s[c[e]][2]]);return h}var n=An,r=Tn;return arguments.length?e(t):(e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e)},ua.geom.polygon=function(t){return Ma(t,nu),t};var nu=ua.geom.polygon.prototype=[];nu.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],i=0;++e<n;)t=r,r=this[e],i+=t[1]*r[0]-t[0]*r[1];return.5*i},nu.centroid=function(t){var e,n,r=-1,i=this.length,o=0,a=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=s,s=this[r],n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o*t,a*t]},nu.clip=function(t){for(var e,n,r,i,o,a,s=In(t),u=-1,l=thi
 s.length-In(this),c=this[l-1];++u<l;){for(e=t.slice(),t.length=0,i=this[u],o=e[(r=e.length-s)-1],n=-1;++n<r;)a=e[n],On(a,c,i)?(On(o,c,i)||t.push(jn(o,a,c,i)),t.push(a)):On(o,c,i)&&t.push(jn(o,a,c,i)),o=a;s&&t.push(t[0]),c=i}return t};var ru,iu,ou,au,su,uu=[],lu=[];Bn.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)t=e[n].edge,t.b&&t.a||e.splice(n,1);return e.sort(Hn),e.length},er.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},nr.prototype={insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=ar(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(ir(this,n),t=n,n=t.U),n.C=!1,r.C=!0,or(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(or(this,n),t
 =n,n=t.U),n.C=!1,r.C=!0,ir(this,r))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?ar(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(e=i.R,e.C&&(e.C=!1,i.C=!0,ir(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,or(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,ir(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,or(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,ir(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,or(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},ua.geom.voronoi=function(t){function e(t){var e=new Array(t.length),r=s[0][0],i=s[0][1],o=s[1][0],a=s[1][1];return sr(n(t),s).cells.forEach(function(n,s){var u=n.edges,l=n.site,c=e[s]=u.length?u.map(function(t){var e=t.start();r
 eturn[e.x,e.y]}):l.x>=r&&l.x<=o&&l.y>=i&&l.y<=a?[[r,a],[o,a],[o,i],[r,i]]:[];c.point=t[s]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(o(t,e)/La)*La,y:Math.round(a(t,e)/La)*La,i:e}})}var r=An,i=Tn,o=r,a=i,s=cu;return t?e(t):(e.links=function(t){return sr(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return sr(n(t)).cells.forEach(function(n,r){for(var i,o,a=n.site,s=n.edges.sort(Hn),u=-1,l=s.length,c=s[l-1].edge,f=c.l===a?c.r:c.l;++u<l;)i=c,o=f,c=s[u].edge,f=c.l===a?c.r:c.l,r<o.i&&r<f.i&&lr(a,o,f)<0&&e.push([t[r],t[o.i],t[f.i]])}),e},e.x=function(t){return arguments.length?(o=Ct(r=t),e):r},e.y=function(t){return arguments.length?(a=Ct(i=t),e):i},e.clipExtent=function(t){return arguments.length?(s=null==t?cu:t,e):s===cu?null:s},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):s===cu?null:s&&s[1]},e)};var cu=[[-1e6,-1e6],[1e6,1e6]];ua.geom.delaunay=fun
 ction(t){return ua.geom.voronoi().triangles(t)},ua.geom.quadtree=function(t,e,n,r,i){function o(t){function o(t,e,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var u=t.x,c=t.y;if(null!=u)if(xa(u-n)+xa(c-r)<.01)l(t,e,n,r,i,o,a,s);else{var f=t.point;t.x=t.y=t.point=null,l(t,f,u,c,i,o,a,s),l(t,e,n,r,i,o,a,s)}else t.x=n,t.y=r,t.point=e}else l(t,e,n,r,i,o,a,s)}function l(t,e,n,r,i,a,s,u){var l=.5*(i+s),c=.5*(a+u),f=n>=l,d=r>=c,h=d<<1|f;t.leaf=!1,t=t.nodes[h]||(t.nodes[h]=dr()),f?i=l:s=l,d?a=c:u=c,o(t,e,n,r,i,a,s,u)}var c,f,d,h,p,g,v,m,y,b=Ct(s),x=Ct(u);if(null!=e)g=e,v=n,m=r,y=i;else if(m=y=-(g=v=1/0),f=[],d=[],p=t.length,a)for(h=0;h<p;++h)c=t[h],c.x<g&&(g=c.x),c.y<v&&(v=c.y),c.x>m&&(m=c.x),c.y>y&&(y=c.y),f.push(c.x),d.push(c.y);else for(h=0;h<p;++h){var w=+b(c=t[h],h),$=+x(c,h);w<g&&(g=w),$<v&&(v=$),w>m&&(m=w),$>y&&(y=$),f.push(w),d.push($)}var k=m-g,_=y-v;k>_?y=v+k:m=g+_;var M=dr();if(M.add=function(t){o(M,t,+b(t,++h),+x(t,h),g,v,m,y)},M.visit=function(t){hr(t,M,g,v,m,y)},M.find=func
 tion(t){return pr(M,t[0],t[1],g,v,m,y)},h=-1,null==e){for(;++h<p;)o(M,t[h],f[h],d[h],g,v,m,y);--h}else t.forEach(M.add);return f=d=t=c=null,M}var a,s=An,u=Tn;return(a=arguments.length)?(s=cr,u=fr,3===a&&(i=n,r=e,n=e=0),o(t)):(o.x=function(t){return arguments.length?(s=t,o):s},o.y=function(t){return arguments.length?(u=t,o):u},o.extent=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),o):null==e?null:[[e,n],[r,i]]},o.size=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=n=0,r=+t[0],i=+t[1]),o):null==e?null:[r-e,i-n]},o)},ua.interpolateRgb=gr,ua.interpolateObject=vr,ua.interpolateNumber=mr,ua.interpolateString=yr;var fu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,du=new RegExp(fu.source,"g");ua.interpolate=br,ua.interpolators=[function(t,e){var n=typeof e;return("string"===n?is.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?gr:yr:e instanceof at?gr:Array.isArray(e)?xr:"object"===n&&isNaN(e)?vr:mr)(t,e)}],ua.interpo
 lateArray=xr;var hu=function(){return y},pu=ua.map({linear:hu,poly:Sr,quad:function(){return _r},cubic:function(){return Mr},sin:function(){return Er},exp:function(){return Ar},circle:function(){return Tr},elastic:Nr,back:Dr,bounce:function(){return Or}}),gu=ua.map({"in":y,out:$r,"in-out":kr,"out-in":function(t){return kr($r(t))}});ua.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=pu.get(n)||hu,r=gu.get(r)||y,wr(r(n.apply(null,la.call(arguments,1))))},ua.interpolateHcl=jr,ua.interpolateHsl=Ir,ua.interpolateLab=Lr,ua.interpolateRound=Pr,ua.transform=function(t){var e=fa.createElementNS(ua.ns.prefix.svg,"g");return(ua.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Fr(n?n.matrix:vu)})(t)},Fr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var vu={a:1,b:0,c:0,d:1,e:0,f:0};ua.interpolateTran
 sform=Yr,ua.layout={},ua.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(Zr(t[n]));return e}},ua.layout.chord=function(){function t(){var t,l,f,d,h,p={},g=[],v=ua.range(o),m=[];for(n=[],r=[],t=0,d=-1;++d<o;){for(l=0,h=-1;++h<o;)l+=i[d][h];g.push(l),m.push(ua.range(o)),t+=l}for(a&&v.sort(function(t,e){return a(g[t],g[e])}),s&&m.forEach(function(t,e){t.sort(function(t,n){return s(i[e][t],i[e][n])})}),t=(qa-c*o)/t,l=0,d=-1;++d<o;){for(f=l,h=-1;++h<o;){var y=v[d],b=m[y][h],x=i[y][b],w=l,$=l+=x*t;p[y+"-"+b]={index:y,subindex:b,startAngle:w,endAngle:$,value:x}}r[y]={index:y,startAngle:f,endAngle:l,value:g[y]},l+=c}for(d=-1;++d<o;)for(h=d-1;++h<o;){var k=p[d+"-"+h],_=p[h+"-"+d];(k.value||_.value)&&n.push(k.value<_.value?{source:_,target:k}:{source:k,target:_})}u&&e()}function e(){n.sort(function(t,e){return u((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,r,i,o,a,s,u,l={},c=0;return l.matrix=function(t){return arguments.l
 ength?(o=(i=t)&&i.length,n=r=null,l):i},l.padding=function(t){return arguments.length?(c=t,n=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,n=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(s=t,n=null,l):s},l.sortChords=function(t){return arguments.length?(u=t,n&&e(),l):u},l.chords=function(){return n||t(),n},l.groups=function(){return r||t(),r},l},ua.layout.force=function(){function t(t){return function(e,n,r,i){if(e.point!==t){var o=e.cx-t.x,a=e.cy-t.y,s=i-n,u=o*o+a*a;if(s*s/m<u){if(u<g){var l=e.charge/u;t.px-=o*l,t.py-=a*l}return!0}if(e.point&&u&&u<g){var l=e.pointCharge/u;t.px-=o*l,t.py-=a*l}}return!e.charge}}function e(t){t.px=ua.event.x,t.py=ua.event.y,u.resume()}var n,r,i,o,a,s,u={},l=ua.dispatch("start","tick","end"),c=[1,1],f=.9,d=mu,h=yu,p=-30,g=bu,v=.1,m=.64,b=[],x=[];return u.tick=function(){if((i*=.99)<.005)return n=null,l.end({type:"end",alpha:i=0}),!0;var e,r,u,d,h,g,m,y,w,$=b.length,k=x.length;for(r=0;r<k;++r)u=x[r],d=u.source,h=
 u.target,y=h.x-d.x,w=h.y-d.y,(g=y*y+w*w)&&(g=i*a[r]*((g=Math.sqrt(g))-o[r])/g,y*=g,w*=g,h.x-=y*(m=d.weight+h.weight?d.weight/(d.weight+h.weight):.5),h.y-=w*m,d.x+=y*(m=1-m),d.y+=w*m);if((m=i*v)&&(y=c[0]/2,w=c[1]/2,r=-1,m))for(;++r<$;)u=b[r],u.x+=(y-u.x)*m,u.y+=(w-u.y)*m;if(p)for(ri(e=ua.geom.quadtree(b),i,s),r=-1;++r<$;)(u=b[r]).fixed||e.visit(t(u));for(r=-1;++r<$;)u=b[r],u.fixed?(u.x=u.px,u.y=u.py):(u.x-=(u.px-(u.px=u.x))*f,u.y-=(u.py-(u.py=u.y))*f);l.tick({type:"tick",alpha:i})},u.nodes=function(t){return arguments.length?(b=t,u):b},u.links=function(t){return arguments.length?(x=t,u):x},u.size=function(t){return arguments.length?(c=t,u):c},u.linkDistance=function(t){return arguments.length?(d="function"==typeof t?t:+t,u):d},u.distance=u.linkDistance,u.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,u):h},u.friction=function(t){return arguments.length?(f=+t,u):f},u.charge=function(t){return arguments.length?(p="function"==typeof t?t:+t,u):p},u.chargeDi
 stance=function(t){return arguments.length?(g=t*t,u):Math.sqrt(g)},u.gravity=function(t){return arguments.length?(v=+t,u):v},u.theta=function(t){return arguments.length?(m=t*t,u):Math.sqrt(m)},u.alpha=function(t){return arguments.length?(t=+t,i?t>0?i=t:(n.c=null,n.t=NaN,n=null,l.end({type:"end",alpha:i=0})):t>0&&(l.start({type:"start",alpha:i=t}),n=Nt(u.tick)),u):i},u.start=function(){function t(t,r){if(!n){for(n=new Array(i),u=0;u<i;++u)n[u]=[];for(u=0;u<l;++u){var o=x[u];n[o.source.index].push(o.target),n[o.target.index].push(o.source)}}for(var a,s=n[e],u=-1,c=s.length;++u<c;)if(!isNaN(a=s[u][t]))return a;return Math.random()*r}var e,n,r,i=b.length,l=x.length,f=c[0],g=c[1];for(e=0;e<i;++e)(r=b[e]).index=e,r.weight=0;for(e=0;e<l;++e)r=x[e],"number"==typeof r.source&&(r.source=b[r.source]),"number"==typeof r.target&&(r.target=b[r.target]),++r.source.weight,++r.target.weight;for(e=0;e<i;++e)r=b[e],isNaN(r.x)&&(r.x=t("x",f)),isNaN(r.y)&&(r.y=t("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.p
 y)&&(r.py=r.y);if(o=[],"function"==typeof d)for(e=0;e<l;++e)o[e]=+d.call(this,x[e],e);else for(e=0;e<l;++e)o[e]=d;if(a=[],"function"==typeof h)for(e=0;e<l;++e)a[e]=+h.call(this,x[e],e);else for(e=0;e<l;++e)a[e]=h;if(s=[],"function"==typeof p)for(e=0;e<i;++e)s[e]=+p.call(this,b[e],e);else for(e=0;e<i;++e)s[e]=p;return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){return r||(r=ua.behavior.drag().origin(y).on("dragstart.force",Jr).on("drag.force",e).on("dragend.force",ti)),arguments.length?void this.on("mouseover.force",ei).on("mouseout.force",ni).call(r):r},ua.rebind(u,l,"on")};var mu=20,yu=1,bu=1/0;ua.layout.hierarchy=function(){function t(i){var o,a=[i],s=[];for(i.depth=0;null!=(o=a.pop());)if(s.push(o),(l=n.call(t,o,o.depth))&&(u=l.length)){for(var u,l,c;--u>=0;)a.push(c=l[u]),c.parent=o,c.depth=o.depth+1;r&&(o.value=0),o.children=l}else r&&(o.value=+r.call(t,o,o.depth)||0),delete o.children;return ai(i,function(t){var n,
 i;e&&(n=t.children)&&n.sort(e),r&&(i=t.parent)&&(i.value+=t.value)}),s}var e=li,n=si,r=ui;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(oi(e,function(t){t.children&&(t.value=0)}),ai(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},ua.layout.partition=function(){function t(e,n,r,i){var o=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,o&&(a=o.length)){var a,s,u,l=-1;for(r=e.value?r/e.value:0;++l<a;)t(s=o[l],n,u=s.value*r,i),n+=u}}function e(t){var n=t.children,r=0;if(n&&(i=n.length))for(var i,o=-1;++o<i;)r=Math.max(r,e(n[o]));return 1+r}function n(n,o){var a=r.call(this,n,o);return t(a[0],0,i[0],i[1]/e(a[0])),a}var r=ua.layout.hierarchy(),i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},ii(n,r)},ua.layout.pie=function(){function t(a){var s,u=a.leng
 th,l=a.map(function(n,r){return+e.call(t,n,r)}),c=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof i?i.apply(this,arguments):i)-c,d=Math.min(Math.abs(f)/u,+("function"==typeof o?o.apply(this,arguments):o)),h=d*(f<0?-1:1),p=ua.sum(l),g=p?(f-u*h)/p:0,v=ua.range(u),m=[];return null!=n&&v.sort(n===xu?function(t,e){return l[e]-l[t]}:function(t,e){return n(a[t],a[e])}),v.forEach(function(t){m[t]={data:a[t],value:s=l[t],startAngle:c,endAngle:c+=s*g+h,padAngle:d}}),m}var e=Number,n=xu,r=0,i=qa,o=0;return t.value=function(n){return arguments.length?(e=n,t):e},t.sort=function(e){return arguments.length?(n=e,t):n},t.startAngle=function(e){return arguments.length?(r=e,t):r},t.endAngle=function(e){return arguments.length?(i=e,t):i},t.padAngle=function(e){return arguments.length?(o=e,t):o},t};var xu={};ua.layout.stack=function(){function t(s,u){if(!(d=s.length))return s;var l=s.map(function(n,r){return e.call(t,n,r)}),c=l.map(function(e){return e.map(function(e,n){return[o.
 call(t,e,n),a.call(t,e,n)]})}),f=n.call(t,c,u);l=ua.permute(l,f),c=ua.permute(c,f);var d,h,p,g,v=r.call(t,c,u),m=l[0].length;for(p=0;p<m;++p)for(i.call(t,l[0][p],g=v[p],c[0][p][1]),h=1;h<d;++h)i.call(t,l[h][p],g+=c[h-1][p][1],c[h][p][1]);return s}var e=y,n=pi,r=gi,i=hi,o=fi,a=di;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:wu.get(e)||pi,t):n},t.offset=function(e){return arguments.length?(r="function"==typeof e?e:$u.get(e)||gi,t):r},t.x=function(e){return arguments.length?(o=e,t):o},t.y=function(e){return arguments.length?(a=e,t):a},t.out=function(e){return arguments.length?(i=e,t):i},t};var wu=ua.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(vi),o=t.map(mi),a=ua.range(r).sort(function(t,e){return i[t]-i[e]}),s=0,u=0,l=[],c=[];for(e=0;e<r;++e)n=a[e],s<u?(s+=o[n],l.push(n)):(u+=o[n],c.push(n));return c.reverse().concat(l)},reverse:function(t){return ua.range(t.length).reverse()},"default
 ":pi}),$u=ua.map({silhouette:function(t){var e,n,r,i=t.length,o=t[0].length,a=[],s=0,u=[];for(n=0;n<o;++n){for(e=0,r=0;e<i;e++)r+=t[e][n][1];r>s&&(s=r),a.push(r)}for(n=0;n<o;++n)u[n]=(s-a[n])/2;return u},wiggle:function(t){var e,n,r,i,o,a,s,u,l,c=t.length,f=t[0],d=f.length,h=[];for(h[0]=u=l=0,n=1;n<d;++n){for(e=0,i=0;e<c;++e)i+=t[e][n][1];for(e=0,o=0,s=f[n][0]-f[n-1][0];e<c;++e){for(r=0,a=(t[e][n][1]-t[e][n-1][1])/(2*s);r<e;++r)a+=(t[r][n][1]-t[r][n-1][1])/s;o+=a*t[e][n][1]}h[n]=u-=i?o/i*s:0,u<l&&(l=u)}for(n=0;n<d;++n)h[n]-=l;return h},expand:function(t){var e,n,r,i=t.length,o=t[0].length,a=1/i,s=[];for(n=0;n<o;++n){for(e=0,r=0;e<i;e++)r+=t[e][n][1];if(r)for(e=0;e<i;e++)t[e][n][1]/=r;else for(e=0;e<i;e++)t[e][n][1]=a}for(n=0;n<o;++n)s[n]=0;return s},zero:gi});ua.layout.histogram=function(){function t(t,o){for(var a,s,u=[],l=t.map(n,this),c=r.call(this,l,o),f=i.call(this,c,l,o),o=-1,d=l.length,h=f.length-1,p=e?1:1/d;++o<h;)a=u[o]=[],a.dx=f[o+1]-(a.x=f[o]),a.y=0;if(h>0)for(o=-1;++o<d;
 )s=l[o],s>=c[0]&&s<=c[1]&&(a=u[ua.bisect(f,s,1,h)-1],a.y+=p,a.push(t[o]));return u}var e=!0,n=Number,r=wi,i=bi;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=Ct(e),t):r},t.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return xi(t,e)}:Ct(e),t):i},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},ua.layout.pack=function(){function t(t,o){var a=n.call(this,t,o),s=a[0],u=i[0],l=i[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,ai(s,function(t){t.r=+c(t.value)}),ai(s,Ci),r){var f=r*(e?1:Math.max(2*s.r/u,2*s.r/l))/2;ai(s,function(t){t.r+=f}),ai(s,Ci),ai(s,function(t){t.r-=f})}return Ai(s,u/2,l/2,e?1:1/Math.max(2*s.r/u,2*s.r/l)),a}var e,n=ua.layout.hierarchy().sort($i),r=0,i=[1,1];return t.size=function(e){return arguments.length?(i=e,t):i},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){retur
 n arguments.length?(r=+e,t):r},ii(t,n)},ua.layout.tree=function(){function t(t,i){var c=a.call(this,t,i),f=c[0],d=e(f);if(ai(d,n),d.parent.m=-d.z,oi(d,r),l)oi(f,o);else{var h=f,p=f,g=f;oi(f,function(t){t.x<h.x&&(h=t),t.x>p.x&&(p=t),t.depth>g.depth&&(g=t)});var v=s(h,p)/2-h.x,m=u[0]/(p.x+s(p,h)/2+v),y=u[1]/(g.depth||1);oi(f,function(t){t.x=(t.x+v)*m,t.y=t.depth*y})}return c}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,o=e.children,a=0,s=o.length;a<s;++a)r.push((o[a]=i={_:o[a],parent:e,children:(i=o[a].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=i);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){Ii(t);var o=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+s(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+s(t._,r._));t.parent.A=i(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,n){if(e){for(var r,i=t,o=t,a=e,u=i.parent.children[0],l=i.m,c=o.m,f
 =a.m,d=u.m;a=Oi(a),i=Di(i),a&&i;)u=Di(u),o=Oi(o),o.a=t,r=a.z+f-i.z-l+s(a._,i._),r>0&&(ji(Li(a,t,n),t,r),l+=r,c+=r),f+=a.m,l+=i.m,d+=u.m,c+=o.m;a&&!Oi(o)&&(o.t=a,o.m+=f-c),i&&!Di(u)&&(u.t=i,u.m+=l-d,n=t)}return n}function o(t){t.x*=u[0],t.y=t.depth*u[1]}var a=ua.layout.hierarchy().sort(null).value(null),s=Ni,u=[1,1],l=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(l=null==(u=e)?o:null,t):l?null:u},t.nodeSize=function(e){return arguments.length?(l=null==(u=e)?null:o,t):l?u:null},ii(t,a)},ua.layout.cluster=function(){function t(t,o){var a,s=e.call(this,t,o),u=s[0],l=0;ai(u,function(t){var e=t.children;e&&e.length?(t.x=Fi(e),t.y=Pi(e)):(t.x=a?l+=n(t,a):0,t.y=0,a=t)});var c=qi(u),f=zi(u),d=c.x-n(c,f)/2,h=f.x+n(f,c)/2;return ai(u,i?function(t){t.x=(t.x-u.x)*r[0],t.y=(u.y-t.y)*r[1]}:function(t){t.x=(t.x-d)/(h-d)*r[0],t.y=(1-(u.y?t.y/u.y:1))*r[1]}),s}var e=ua.layout.hierarchy().sort(null).value(null),n=Ni,r=[1,1],i=!1;retu
 rn t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(i=null==(r=e),t):i?null:r},t.nodeSize=function(e){return arguments.length?(i=null!=(r=e),t):i?r:null},ii(t,e)},ua.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,o=t.length;++i<o;)r=(n=t[i]).value*(e<0?0:e),n.area=isNaN(r)||r<=0?0:r}function e(n){var o=n.children;if(o&&o.length){var a,s,u,l=f(n),c=[],d=o.slice(),p=1/0,g="slice"===h?l.dx:"dice"===h?l.dy:"slice-dice"===h?1&n.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(t(d,l.dx*l.dy/n.value),c.area=0;(u=d.length)>0;)c.push(a=d[u-1]),c.area+=a.area,"squarify"!==h||(s=r(c,g))<=p?(d.pop(),p=s):(c.area-=c.pop().area,i(c,g,l,!1),g=Math.min(l.dx,l.dy),c.length=c.area=0,p=1/0);c.length&&(i(c,g,l,!0),c.length=c.area=0),o.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var o,a=f(e),s=r.slice(),u=[];for(t(s,a.dx*a.dy/e.value),u.area=0;o=s.pop();)u.push(o),u.area+=o.area,null!=o.z&&(i(u,o.z?a.dx:a.dy,a,!s.length),u.length=u
 .area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,o=1/0,a=-1,s=t.length;++a<s;)(n=t[a].area)&&(n<o&&(o=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*p/r,r/(e*o*p)):1/0}function i(t,e,n,r){var i,o=-1,a=t.length,s=n.x,l=n.y,c=e?u(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++o<a;)i=t[o],i.x=s,i.y=l,i.dy=c,s+=i.dx=Math.min(n.x+n.dx-s,c?u(i.area/c):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=c,n.dy-=c}else{for((r||c>n.dx)&&(c=n.dx);++o<a;)i=t[o],i.x=s,i.y=l,i.dx=c,l+=i.dy=Math.min(n.y+n.dy-l,c?u(i.area/c):0);i.z=!1,i.dy+=n.y+n.dy-l,n.x+=c,n.dx-=c}}function o(r){var i=a||s(r),o=i[0];return o.x=o.y=0,o.value?(o.dx=l[0],o.dy=l[1]):o.dx=o.dy=0,a&&s.revalue(o),t([o],o.dx*o.dy/o.value),(a?n:e)(o),d&&(a=i),i}var a,s=ua.layout.hierarchy(),u=Math.round,l=[1,1],c=null,f=Wi,d=!1,h="squarify",p=.5*(1+Math.sqrt(5));return o.size=function(t){return arguments.length?(l=t,o):l},o.padding=function(t){function e(e){var n=t.call(o,e,e.depth);return null==n?Wi(e):Ri(e,"number"==typeof n?[n,n,n,n]:n)
 }function n(e){return Ri(e,t)}if(!arguments.length)return c;var r;return f=null==(c=t)?Wi:"function"==(r=typeof t)?e:"number"===r?(t=[t,t,t,t],n):n,o},o.round=function(t){return arguments.length?(u=t?Math.round:Number,o):u!=Number},o.sticky=function(t){return arguments.length?(d=t,a=null,o):d},o.ratio=function(t){return arguments.length?(p=t,o):p},o.mode=function(t){return arguments.length?(h=t+"",o):h},ii(o,s)},ua.random={normal:function(t,e){var n=arguments.length;return n<2&&(e=1),n<1&&(t=0),function(){var n,r,i;do n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r;while(!i||i>1);return t+e*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=ua.random.normal.apply(ua,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=ua.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;n<t;n++)e+=Math.random();return e}}},ua.scale={};var ku={floor:y,ceil:y};ua.scale.linear=function(){return Xi([0,1],[0,1],br
 ,!1)};var _u={s:1,g:1,p:1,r:1,e:1};ua.scale.log=function(){return ro(ua.scale.linear().domain([0,1]),10,!0,[1,10])};var Mu=ua.format(".0e"),Cu={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};ua.scale.pow=function(){return io(ua.scale.linear(),1,[0,1])},ua.scale.sqrt=function(){return ua.scale.pow().exponent(.5)},ua.scale.ordinal=function(){return ao([],{t:"range",a:[[]]})},ua.scale.category10=function(){return ua.scale.ordinal().range(Su)},ua.scale.category20=function(){return ua.scale.ordinal().range(Eu)},ua.scale.category20b=function(){return ua.scale.ordinal().range(Au)},ua.scale.category20c=function(){return ua.scale.ordinal().range(Tu)};var Su=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(bt),Eu=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(bt),Au=[3750777,5395619,70407
 19,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(bt),Tu=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(bt);ua.scale.quantile=function(){return so([],[])},ua.scale.quantize=function(){return uo(0,1,[0,1])},ua.scale.threshold=function(){return lo([.5],[0,1])},ua.scale.identity=function(){return co([0,1])},ua.svg={},ua.svg.arc=function(){function t(){var t=Math.max(0,+n.apply(this,arguments)),l=Math.max(0,+r.apply(this,arguments)),c=a.apply(this,arguments)-Wa,f=s.apply(this,arguments)-Wa,d=Math.abs(f-c),h=c>f?0:1;if(l<t&&(p=l,l=t,t=p),d>=za)return e(l,h)+(t?e(t,1-h):"")+"Z";var p,g,v,m,y,b,x,w,$,k,_,M,C=0,S=0,E=[];if((m=(+u.apply(this,arguments)||0)/2)&&(v=o===Nu?Math.sqrt(t*t+l*l):+o.apply(this,arguments),h||(S*=-1),l&&(S=et(v/l*Math.sin(m))),t&&(C=e
 t(v/t*Math.sin(m)))),l){y=l*Math.cos(c+S),b=l*Math.sin(c+S),x=l*Math.cos(f-S),w=l*Math.sin(f-S);var A=Math.abs(f-c-2*S)<=Fa?0:1;if(S&&yo(y,b,x,w)===h^A){var T=(c+f)/2;y=l*Math.cos(T),b=l*Math.sin(T),x=w=null}}else y=b=0;if(t){$=t*Math.cos(f-C),k=t*Math.sin(f-C),_=t*Math.cos(c+C),M=t*Math.sin(c+C);var N=Math.abs(c-f+2*C)<=Fa?0:1;if(C&&yo($,k,_,M)===1-h^N){var D=(c+f)/2;$=t*Math.cos(D),k=t*Math.sin(D),_=M=null}}else $=k=0;if(d>La&&(p=Math.min(Math.abs(l-t)/2,+i.apply(this,arguments)))>.001){g=t<l^h?0:1;var O=p,j=p;if(d<Fa){var I=null==_?[$,k]:null==x?[y,b]:jn([y,b],[_,M],[x,w],[$,k]),L=y-I[0],P=b-I[1],F=x-I[0],q=w-I[1],z=1/Math.sin(Math.acos((L*F+P*q)/(Math.sqrt(L*L+P*P)*Math.sqrt(F*F+q*q)))/2),W=Math.sqrt(I[0]*I[0]+I[1]*I[1]);j=Math.min(p,(t-W)/(z-1)),O=Math.min(p,(l-W)/(z+1))}if(null!=x){var R=bo(null==_?[$,k]:[_,M],[y,b],l,O,h),B=bo([x,w],[$,k],l,O,h);p===O?E.push("M",R[0],"A",O,",",O," 0 0,",g," ",R[1],"A",l,",",l," 0 ",1-h^yo(R[1][0],R[1][1],B[1][0],B[1][1]),",",h," ",B[1],"A",O,
 ",",O," 0 0,",g," ",B[0]):E.push("M",R[0],"A",O,",",O," 0 1,",g," ",B[0])}else E.push("M",y,",",b);if(null!=_){var V=bo([y,b],[_,M],t,-j,h),H=bo([$,k],null==x?[y,b]:[x,w],t,-j,h);p===j?E.push("L",H[0],"A",j,",",j," 0 0,",g," ",H[1],"A",t,",",t," 0 ",h^yo(H[1][0],H[1][1],V[1][0],V[1][1]),",",1-h," ",V[1],"A",j,",",j," 0 0,",g," ",V[0]):E.push("L",H[0],"A",j,",",j," 0 0,",g," ",V[0])}else E.push("L",$,",",k)}else E.push("M",y,",",b),null!=x&&E.push("A",l,",",l," 0 ",A,",",h," ",x,",",w),E.push("L",$,",",k),null!=_&&E.push("A",t,",",t," 0 ",N,",",1-h," ",_,",",M);return E.push("Z"),E.join("")}function e(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}var n=ho,r=po,i=fo,o=Nu,a=go,s=vo,u=mo;return t.innerRadius=function(e){return arguments.length?(n=Ct(e),t):n},t.outerRadius=function(e){return arguments.length?(r=Ct(e),t):r},t.cornerRadius=function(e){return arguments.length?(i=Ct(e),t):i},t.padRadius=function(e){return arguments.length?(o=e==Nu?Nu:Ct(e),t
 ):o},t.startAngle=function(e){return arguments.length?(a=Ct(e),t):a},t.endAngle=function(e){return arguments.length?(s=Ct(e),t):s},t.padAngle=function(e){return arguments.length?(u=Ct(e),t):u},t.centroid=function(){var t=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,e=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Wa;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Nu="auto";ua.svg.line=function(){return xo(y)};var Du=ua.map({linear:wo,"linear-closed":$o,step:ko,"step-before":_o,"step-after":Mo,basis:No,"basis-open":Do,"basis-closed":Oo,bundle:jo,cardinal:Eo,"cardinal-open":Co,"cardinal-closed":So,monotone:zo});Du.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Ou=[0,2/3,1/3,0],ju=[0,1/3,2/3,0],Iu=[0,1/6,2/3,1/6];ua.svg.line.radial=function(){var t=xo(Wo);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},_o.reverse=Mo,Mo.reverse=_o,ua.svg.area=function(){return Ro(y)},ua.svg.area.radial=function(){var t=Ro(Wo);return t.radius=t.x,delete t.x,t.inner
 Radius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},ua.svg.chord=function(){function t(t,s){var u=e(this,o,t,s),l=e(this,a,t,s);return"M"+u.p0+r(u.r,u.p1,u.a1-u.a0)+(n(u,l)?i(u.r,u.p1,u.r,u.p0):i(u.r,u.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+i(l.r,l.p1,u.r,u.p0))+"Z"}function e(t,e,n,r){var i=e.call(t,n,r),o=s.call(t,i,r),a=u.call(t,i,r)-Wa,c=l.call(t,i,r)-Wa;return{r:o,a0:a,a1:c,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos(c),o*Math.sin(c)]}}function n(t,e){return t.a0==e.a0&&t.a1==e.a1}function r(t,e,n){return"A"+t+","+t+" 0 "+ +(n>Fa)+",1 "+e}function i(t,e,n,r){return"Q 0,0 "+r}var o=bn,a=xn,s=Bo,u=go,l=vo;return t.radius=function(e){return arguments.length?(s=Ct(e),t):s},t.source=function(e){return arguments.length?(o=Ct(e),t):o},t.target=function(e){return arguments.length?(a=Ct(e),t):a},t.startAngle=function(e){return arguments.length?(u=Ct(e),t):u},t.endAngle=function(e){return arguments.len
 gth?(l=Ct(e),t):l},t},ua.svg.diagonal=function(){function t(t,i){var o=e.call(this,t,i),a=n.call(this,t,i),s=(o.y+a.y)/2,u=[o,{
     x:o.x,y:s},{x:a.x,y:s},a];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var e=bn,n=xn,r=Vo;return t.source=function(n){return arguments.length?(e=Ct(n),t):e},t.target=function(e){return arguments.length?(n=Ct(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},ua.svg.diagonal.radial=function(){var t=ua.svg.diagonal(),e=Vo,n=t.projection;return t.projection=function(t){return arguments.length?n(Ho(e=t)):e},t},ua.svg.symbol=function(){function t(t,r){return(Lu.get(e.call(this,t,r))||Go)(n.call(this,t,r))}var e=Yo,n=Uo;return t.type=function(n){return arguments.length?(e=Ct(n),t):e},t.size=function(e){return arguments.length?(n=Ct(e),t):n},t};var Lu=ua.map({circle:Go,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Fu)),n=e*Fu;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"
 M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/Pu),n=e*Pu/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Pu),n=e*Pu/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});ua.svg.symbolTypes=Lu.keys();var Pu=Math.sqrt(3),Fu=Math.tan(30*Ra);Aa.transition=function(t){for(var e,n,r=qu||++Bu,i=Jo(t),o=[],a=zu||{time:Date.now(),ease:Cr,delay:0,duration:250},s=-1,u=this.length;++s<u;){o.push(e=[]);for(var l=this[s],c=-1,f=l.length;++c<f;)(n=l[c])&&ta(n,c,i,r,a),e.push(n)}return Zo(o,i,r)},Aa.interrupt=function(t){return this.each(null==t?Wu:Xo(Jo(t)))};var qu,zu,Wu=Xo(Jo()),Ru=[],Bu=0;Ru.call=Aa.call,Ru.empty=Aa.empty,Ru.node=Aa.node,Ru.size=Aa.size,ua.transition=function(t,e){return t&&t.transition?qu?t.transition(e):t:ua.selection().transition(t)},ua.transition.prototype=Ru,Ru.select=function(t){var e,n,r,i=this.id,o=this.namespace,a=[];t=E(t);for(var s=-1,u=this.length;++s<u;){a.push(e=[]);for(
 var l=this[s],c=-1,f=l.length;++c<f;)(r=l[c])&&(n=t.call(r,r.__data__,c,s))?("__data__"in r&&(n.__data__=r.__data__),ta(n,c,o,i,r[o][i]),e.push(n)):e.push(null)}return Zo(a,o,i)},Ru.selectAll=function(t){var e,n,r,i,o,a=this.id,s=this.namespace,u=[];t=A(t);for(var l=-1,c=this.length;++l<c;)for(var f=this[l],d=-1,h=f.length;++d<h;)if(r=f[d]){o=r[s][a],n=t.call(r,r.__data__,d,l),u.push(e=[]);for(var p=-1,g=n.length;++p<g;)(i=n[p])&&ta(i,p,s,a,o),e.push(i)}return Zo(u,s,a)},Ru.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=W(t));for(var o=0,a=this.length;o<a;o++){i.push(e=[]);for(var n=this[o],s=0,u=n.length;s<u;s++)(r=n[s])&&t.call(r,r.__data__,s,o)&&e.push(r)}return Zo(i,this.namespace,this.id)},Ru.tween=function(t,e){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(t):B(this,null==e?function(e){e[r][n].tween.remove(t)}:function(i){i[r][n].tween.set(t,e)})},Ru.attr=function(t,e){function n(){this.removeAttribute(s)}function r(){this.rem
 oveAttributeNS(s.space,s.local)}function i(t){return null==t?n:(t+="",function(){var e,n=this.getAttribute(s);return n!==t&&(e=a(n,t),function(t){this.setAttribute(s,e(t))})})}function o(t){return null==t?r:(t+="",function(){var e,n=this.getAttributeNS(s.space,s.local);return n!==t&&(e=a(n,t),function(t){this.setAttributeNS(s.space,s.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var a="transform"==t?Yr:br,s=ua.ns.qualify(t);return Qo(this,"attr."+t,e,s.local?o:i)},Ru.attrTween=function(t,e){function n(t,n){var r=e.call(this,t,n,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,n){var r=e.call(this,t,n,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=ua.ns.qualify(t);return this.tween("attr."+t,i.local?r:n)},Ru.style=function(t,n,r){function i(){this.style.removeProperty(t)}function o(n){return null==n?i:(n+="",function(){var i,o=e(this).getComputedStyle(thi
 s,null).getPropertyValue(t);return o!==n&&(i=br(o,n),function(e){this.style.setProperty(t,i(e),r)})})}var a=arguments.length;if(a<3){if("string"!=typeof t){a<2&&(n="");for(r in t)this.style(r,t[r],n);return this}r=""}return Qo(this,"style."+t,n,o)},Ru.styleTween=function(t,n,r){function i(i,o){var a=n.call(this,i,o,e(this).getComputedStyle(this,null).getPropertyValue(t));return a&&function(e){this.style.setProperty(t,a(e),r)}}return arguments.length<3&&(r=""),this.tween("style."+t,i)},Ru.text=function(t){return Qo(this,"text",t,Ko)},Ru.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},Ru.ease=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].ease:("function"!=typeof t&&(t=ua.ease.apply(ua,arguments)),B(this,function(r){r[n][e].ease=t}))},Ru.delay=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].delay:B(this,"f
 unction"==typeof t?function(r,i,o){r[n][e].delay=+t.call(r,r.__data__,i,o)}:(t=+t,function(r){r[n][e].delay=t}))},Ru.duration=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].duration:B(this,"function"==typeof t?function(r,i,o){r[n][e].duration=Math.max(1,t.call(r,r.__data__,i,o))}:(t=Math.max(1,t),function(r){r[n][e].duration=t}))},Ru.each=function(t,e){var n=this.id,r=this.namespace;if(arguments.length<2){var i=zu,o=qu;try{qu=n,B(this,function(e,i,o){zu=e[r][n],t.call(e,e.__data__,i,o)})}finally{zu=i,qu=o}}else B(this,function(i){var o=i[r][n];(o.event||(o.event=ua.dispatch("start","end","interrupt"))).on(t,e)});return this},Ru.transition=function(){for(var t,e,n,r,i=this.id,o=++Bu,a=this.namespace,s=[],u=0,l=this.length;u<l;u++){s.push(t=[]);for(var e=this[u],c=0,f=e.length;c<f;c++)(n=e[c])&&(r=n[a][i],ta(n,c,a,o,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(n)}return Zo(s,a,o)},ua.svg.axis=function(){functio
 n t(t){t.each(function(){var t,l=ua.select(this),c=this.__chart__||n,f=this.__chart__=n.copy(),d=null==u?f.ticks?f.ticks.apply(f,s):f.domain():u,h=null==e?f.tickFormat?f.tickFormat.apply(f,s):y:e,p=l.selectAll(".tick").data(d,f),g=p.enter().insert("g",".domain").attr("class","tick").style("opacity",La),v=ua.transition(p.exit()).style("opacity",La).remove(),m=ua.transition(p.order()).style("opacity",1),b=Math.max(i,0)+a,x=Vi(f),w=l.selectAll(".domain").data([0]),$=(w.enter().append("path").attr("class","domain"),ua.transition(w));g.append("line"),g.append("text");var k,_,M,C,S=g.select("line"),E=m.select("line"),A=p.select("text").text(h),T=g.select("text"),N=m.select("text"),D="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=ea,k="x",M="y",_="x2",C="y2",A.attr("dy",D<0?"0em":".71em").style("text-anchor","middle"),$.attr("d","M"+x[0]+","+D*o+"V0H"+x[1]+"V"+D*o)):(t=na,k="y",M="x",_="y2",C="x2",A.attr("dy",".32em").style("text-anchor",D<0?"end":"start"),$.attr("d","M"+D*o+","+
 x[0]+"H0V"+x[1]+"H"+D*o)),S.attr(C,D*i),T.attr(M,D*b),E.attr(_,0).attr(C,D*i),N.attr(k,0).attr(M,D*b),f.rangeBand){var O=f,j=O.rangeBand()/2;c=f=function(t){return O(t)+j}}else c.rangeBand?c=f:v.call(t,f,c);g.call(t,c,f),m.call(t,f,f)})}var e,n=ua.scale.linear(),r=Vu,i=6,o=6,a=3,s=[10],u=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(r=e in Hu?e+"":Vu,t):r},t.ticks=function(){return arguments.length?(s=ca(arguments),t):s},t.tickValues=function(e){return arguments.length?(u=e,t):u},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e){var n=arguments.length;return n?(i=+e,o=+arguments[n-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(o=+e,t):o},t.tickPadding=function(e){return arguments.length?(a=+e,t):a},t.tickSubdivide=function(){return arguments.length&&t},t};var Vu="bottom",Hu={top:1,right:1,bottom:1,left:1};u
 a.svg.brush=function(){function t(e){e.each(function(){var e=ua.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",o).on("touchstart.brush",o),a=e.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=e.selectAll(".resize").data(g,y);s.exit().remove(),s.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Uu[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",t.empty()?"none":null);var u,f=ua.transition(e),d=ua.transition(a);l&&(u=Vi(l),d.attr("x",u[0]).attr("width",u[1]-u[0]),r(f)),c&&(u=Vi(c),d.attr("y",u[0]).attr("height",u[
 1]-u[0]),i(f)),n(f)})}function n(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+f[+/e$/.test(t)]+","+d[+/^s/.test(t)]+")"})}function r(t){t.select(".extent").attr("x",f[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function i(t){t.select(".extent").attr("y",d[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",d[1]-d[0])}function o(){function o(){32==ua.event.keyCode&&(A||(b=null,N[0]-=f[1],N[1]-=d[1],A=2),_())}function g(){32==ua.event.keyCode&&2==A&&(N[0]+=f[1],N[1]+=d[1],A=0,_())}function v(){var t=ua.mouse(w),e=!1;x&&(t[0]+=x[0],t[1]+=x[1]),A||(ua.event.altKey?(b||(b=[(f[0]+f[1])/2,(d[0]+d[1])/2]),N[0]=f[+(t[0]<b[0])],N[1]=d[+(t[1]<b[1])]):b=null),S&&m(t,l,0)&&(r(M),e=!0),E&&m(t,c,1)&&(i(M),e=!0),e&&(n(M),k({type:"brush",mode:A?"move":"resize"}))}function m(t,e,n){var r,i,o=Vi(e),u=o[0],l=o[1],c=N[n],g=n?d:f,v=g[1]-g[0];if(A&&(u-=c,l-=v+c),r=(n?p:h)?Math.max(u,Math.min(l,t[n])):t[n],A?i=(r+=c)+v:(b&&(c=Math.max(u,Math.min(l,2*
 b[n]-r))),c<r?(i=r,r=c):i=c),g[0]!=r||g[1]!=i)return n?s=null:a=null,g[0]=r,g[1]=i,!0}function y(){v(),M.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),ua.select("body").style("cursor",null),D.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),T(),k({type:"brushend"})}var b,x,w=this,$=ua.select(ua.event.target),k=u.of(w,arguments),M=ua.select(w),C=$.datum(),S=!/^(n|s)$/.test(C)&&l,E=!/^(e|w)$/.test(C)&&c,A=$.classed("extent"),T=X(w),N=ua.mouse(w),D=ua.select(e(w)).on("keydown.brush",o).on("keyup.brush",g);if(ua.event.changedTouches?D.on("touchmove.brush",v).on("touchend.brush",y):D.on("mousemove.brush",v).on("mouseup.brush",y),M.interrupt().selectAll("*").interrupt(),A)N[0]=f[0]-N[0],N[1]=d[0]-N[1];else if(C){var O=+/w$/.test(C),j=+/^n/.test(C);x=[f[1-O]-N[0],d[1-j]-N[1]],N[0]=f[O],N[1]=d[j]}else ua.event.altKey&&(b=N.slice());M.style("poin
 ter-events","none").selectAll(".resize").style("display",null),ua.select("body").style("cursor",$.style("cursor")),k({type:"brushstart"}),v()}var a,s,u=C(t,"brushstart","brush","brushend"),l=null,c=null,f=[0,0],d=[0,0],h=!0,p=!0,g=Yu[0];return t.event=function(t){t.each(function(){var t=u.of(this,arguments),e={x:f,y:d,i:a,j:s},n=this.__chart__||e;this.__chart__=e,qu?ua.select(this).transition().each("start.brush",function(){a=n.i,s=n.j,f=n.x,d=n.y,t({type:"brushstart"})}).tween("brush:brush",function(){var n=xr(f,e.x),r=xr(d,e.y);return a=s=null,function(i){f=e.x=n(i),d=e.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=e.i,s=e.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(e){return arguments.length?(l=e,g=Yu[!l<<1|!c],t):l},t.y=function(e){return arguments.length?(c=e,g=Yu[!l<<1|!c],t):c},t.clamp=function(e){return arguments.length?(l&&c?(h=!!e[0],p=!!e[1]
 ):l?h=!!e:c&&(p=!!e),t):l&&c?[h,p]:l?h:c?p:null},t.extent=function(e){var n,r,i,o,u;return arguments.length?(l&&(n=e[0],r=e[1],c&&(n=n[0],r=r[0]),a=[n,r],l.invert&&(n=l(n),r=l(r)),r<n&&(u=n,n=r,r=u),n==f[0]&&r==f[1]||(f=[n,r])),c&&(i=e[0],o=e[1],l&&(i=i[1],o=o[1]),s=[i,o],c.invert&&(i=c(i),o=c(o)),o<i&&(u=i,i=o,o=u),i==d[0]&&o==d[1]||(d=[i,o])),t):(l&&(a?(n=a[0],r=a[1]):(n=f[0],r=f[1],l.invert&&(n=l.invert(n),r=l.invert(r)),r<n&&(u=n,n=r,r=u))),c&&(s?(i=s[0],o=s[1]):(i=d[0],o=d[1],c.invert&&(i=c.invert(i),o=c.invert(o)),o<i&&(u=i,i=o,o=u))),l&&c?[[n,i],[r,o]]:l?[n,r]:c&&[i,o])},t.clear=function(){return t.empty()||(f=[0,0],d=[0,0],a=s=null),t},t.empty=function(){return!!l&&f[0]==f[1]||!!c&&d[0]==d[1]},ua.rebind(t,u,"on")};var Uu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Yu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Gu=hs.format=bs.timeFormat,Xu=Gu.utc,Zu=Xu("%Y-%m-%dT%H:%M:%S.%LZ"
 );Gu.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ra:Zu,ra.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},ra.toString=Zu.toString,hs.second=zt(function(t){return new ps(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),hs.seconds=hs.second.range,hs.seconds.utc=hs.second.utc.range,hs.minute=zt(function(t){return new ps(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),hs.minutes=hs.minute.range,hs.minutes.utc=hs.minute.utc.range,hs.hour=zt(function(t){var e=t.getTimezoneOffset()/60;return new ps(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),hs.hours=hs.hour.range,hs.hours.utc=hs.hour.utc.range,hs.month=zt(function(t){return t=hs.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),hs.months=hs.mo
 nth.range,hs.months.utc=hs.month.utc.range;var Qu=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ku=[[hs.second,1],[hs.second,5],[hs.second,15],[hs.second,30],[hs.minute,1],[hs.minute,5],[hs.minute,15],[hs.minute,30],[hs.hour,1],[hs.hour,3],[hs.hour,6],[hs.hour,12],[hs.day,1],[hs.day,2],[hs.week,1],[hs.month,1],[hs.month,3],[hs.year,1]],Ju=Gu.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Ae]]),tl={range:function(t,e,n){return ua.range(Math.ceil(t/n)*n,+e,n).map(oa)},floor:y,ceil:y};Ku.year=hs.year,hs.scale=function(){return ia(ua.scale.linear(),Ku,Ju)};var el=Ku.map(function(t){return[t[0].utc,t[1]]}),nl=Xu.multi([[".%L",function(t){return t.getUT
 CMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Ae]]);el.year=hs.year.utc,hs.scale.utc=function(){return ia(ua.scale.linear(),el,nl)},ua.text=St(function(t){return t.responseText}),ua.json=function(t,e){return Et(t,"application/json",aa,e)},ua.html=function(t,e){return Et(t,"text/html",sa,e)},ua.xml=St(function(t){return t.responseXML}),"function"==typeof define&&define.amd?(this.d3=ua,define(ua)):"object"==typeof module&&module.exports?module.exports=ua:this.d3=ua}(),function(){function t(t,e){if(t!==e){var n=null===t,r=t===$,i=t===t,o=null===e,a=e===$,s=e===e;if(t>e&&!o||!i||n&&!a&&s||r&&s)return 1;if(t<e&&!n||!s||o&&!r&&i||a&&i)return-1}return 0}function e(t,e,n){for(var r=t.length,i=n?r:-1;n?i--:++i<r;)if(e(t[i],i
 ,t))return i;return-1}function n(t,e,n){if(e!==e)return h(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function r(t){return"function"==typeof t||!1}function i(t){return null==t?"":t+""}function o(t,e){for(var n=-1,r=t.length;++n<r&&e.indexOf(t.charAt(n))>-1;);return n}function a(t,e){for(var n=t.length;n--&&e.indexOf(t.charAt(n))>-1;);return n}function s(e,n){return t(e.criteria,n.criteria)||e.index-n.index}function u(e,n,r){for(var i=-1,o=e.criteria,a=n.criteria,s=o.length,u=r.length;++i<s;){var l=t(o[i],a[i]);if(l){if(i>=u)return l;var c=r[i];return l*("asc"===c||c===!0?1:-1)}}return e.index-n.index}function l(t){return Wt[t]}function c(t){return Rt[t]}function f(t,e,n){return e?t=Ht[t]:n&&(t=Ut[t]),"\\"+t}function d(t){return"\\"+Ut[t]}function h(t,e,n){for(var r=t.length,i=e+(n?0:-1);n?i--:++i<r;){var o=t[i];if(o!==o)return i}return-1}function p(t){return!!t&&"object"==typeof t}function g(t){return t<=160&&t>=9&&t<=13||32==t||160==t||5760==t||6158==t||t>=81
 92&&(t<=8202||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function v(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;)t[n]===e&&(t[n]=W,o[++i]=n);return o}function m(t,e){for(var n,r=-1,i=t.length,o=-1,a=[];++r<i;){var s=t[r],u=e?e(s,r,t):s;r&&n===u||(n=u,a[++o]=s)}return a}function y(t){for(var e=-1,n=t.length;++e<n&&g(t.charCodeAt(e)););return e}function b(t){for(var e=t.length;e--&&g(t.charCodeAt(e)););return e}function x(t){return Bt[t]}function w(g){function G(t){if(p(t)&&!As(t)&&!(t instanceof Wt)){if(t instanceof tt)return t;if(ea.call(t,"__chain__")&&ea.call(t,"__wrapped__"))return hr(t)}return new tt(t)}function K(){}function tt(t,e,n){this.__wrapped__=t,this.__actions__=n||[],this.__chain__=!!e}function Wt(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ea,this.__views__=[]}function Rt(){var t=new Wt(this.__wrapped__);return t.__actions__=ne(this.__actions__),t.__dir__=this.__dir__,t.__filtered
 __=this.__filtered__,t.__iteratees__=ne(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ne(this.__views__),t}function Bt(){if(this.__filtered__){var t=new Wt(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Vt(){var t=this.__wrapped__.value(),e=this.__dir__,n=As(t),r=e<0,i=n?t.length:0,o=Un(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,h=ka(u,this.__takeCount__);if(!n||i<P||i==u&&h==u)return nn(t,this.__actions__);var p=[];t:for(;u--&&d<h;){l+=e;for(var g=-1,v=t[l];++g<f;){var m=c[g],y=m.iteratee,b=m.type,x=y(v);if(b==q)v=x;else if(!x){if(b==F)continue t;break t}}p[d++]=v}return p}function Ht(){this.__data__={}}function Ut(t){return this.has(t)&&delete this.__data__[t]}function Yt(t){return"__proto__"==t?$:this.__data__[t]}function Gt(t){return"__proto__"!=t&&ea.call(this.__data__,t)}function Xt(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this}function Zt(t){var e=t?t.length:0;
 for(this.data={hash:ma(null),set:new fa};e--;)this.push(t[e])}function Qt(t,e){var n=t.data,r="string"==typeof e||ji(e)?n.set.has(e):n.hash[e];return r?0:-1}function Kt(t){var e=this.data;"string"==typeof t||ji(t)?e.set.add(t):e.hash[t]=!0}function ee(t,e){for(var n=-1,r=t.length,i=-1,o=e.length,a=Wo(r+o);++n<r;)a[n]=t[n];for(;++i<o;)a[n++]=e[i];return a}function ne(t,e){var n=-1,r=t.length;for(e||(e=Wo(r));++n<r;)e[n]=t[n];return e}function re(t,e){for(var n=-1,r=t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function ie(t,e){for(var n=t.length;n--&&e(t[n],n,t)!==!1;);return t}function oe(t,e){for(var n=-1,r=t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ae(t,e,n,r){for(var i=-1,o=t.length,a=r,s=a;++i<o;){var u=t[i],l=+e(u);n(l,a)&&(a=l,s=u)}return s}function se(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[++i]=a)}return o}function ue(t,e){for(var n=-1,r=t.length,i=Wo(r);++n<r;)i[n]=e(t[n],n,t);return i}function le(t,e){for(var n=-1,r=e.length,i=t
 .length;++n<r;)t[i+n]=e[n];return t}function ce(t,e,n,r){var i=-1,o=t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function fe(t,e,n,r){var i=t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function de(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function he(t,e){for(var n=t.length,r=0;n--;)r+=+e(t[n])||0;return r}function pe(t,e){return t===$?e:t}function ge(t,e,n,r){return t!==$&&ea.call(r,n)?t:e}function ve(t,e,n){for(var r=-1,i=zs(e),o=i.length;++r<o;){var a=i[r],s=t[a],u=n(s,e[a],a,t,e);(u===u?u===s:s!==s)&&(s!==$||a in t)||(t[a]=u)}return t}function me(t,e){return null==e?t:be(e,zs(e),t)}function ye(t,e){for(var n=-1,r=null==t,i=!r&&Qn(t),o=i?t.length:0,a=e.length,s=Wo(a);++n<a;){var u=e[n];i?s[n]=Kn(u,o)?t[u]:$:s[n]=r?$:t[u]}return s}function be(t,e,n){n||(n={});for(var r=-1,i=e.length;++r<i;){var o=e[r];n[o]=t[o]}return n}function xe(t,e,n){var r=typeof t;return"function"==r?e===$?t:an(t,e,n):null==t?Eo:"object"==r?qe(t):e==
 =$?jo(t):ze(t,e)}function we(t,e,n,r,i,o,a){var s;if(n&&(s=i?n(t,r,i):n(t)),s!==$)return s;if(!ji(t))return t;var u=As(t);if(u){if(s=Yn(t),!e)return ne(t,s)}else{var l=ra.call(t),c=l==Y;if(l!=Z&&l!=R&&(!c||i))return zt[l]?Xn(t,l,e):i?t:{};if(s=Gn(c?{}:t),!e)return me(s,t)}o||(o=[]),a||(a=[]);for(var f=o.length;f--;)if(o[f]==t)return a[f];return o.push(t),a.push(s),(u?re:Ne)(t,function(r,i){s[i]=we(r,e,n,i,t,o,a)}),s}function $e(t,e,n){if("function"!=typeof t)throw new Zo(z);return da(function(){t.apply($,n)},e)}function ke(t,e){var r=t?t.length:0,i=[];if(!r)return i;var o=-1,a=Bn(),s=a===n,u=s&&e.length>=P?gn(e):null,l=e.length;u&&(a=Qt,s=!1,e=u);t:for(;++o<r;){var c=t[o];if(s&&c===c){for(var f=l;f--;)if(e[f]===c)continue t;i.push(c)}else a(e,c,0)<0&&i.push(c)}return i}function _e(t,e){var n=!0;return La(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Me(t,e,n,r){var i=r,o=i;return La(t,function(t,a,s){var u=+e(t,a,s);(n(u,i)||u===r&&u===o)&&(i=u,o=t)}),o}function Ce(t,e,n,r){var
  i=t.length;for(n=null==n?0:+n||0,n<0&&(n=-n>i?0:i+n),r=r===$||r>i?i:+r||0,r<0&&(r+=i),i=n>r?0:r>>>0,n>>>=0;n<i;)t[n++]=e;return t}function Se(t,e){var n=[];return La(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Ee(t,e,n,r){var i;return n(t,function(t,n,o){if(e(t,n,o))return i=r?n:t,!1}),i}function Ae(t,e,n,r){r||(r=[]);for(var i=-1,o=t.length;++i<o;){var a=t[i];p(a)&&Qn(a)&&(n||As(a)||Mi(a))?e?Ae(a,e,n,r):le(r,a):n||(r[r.length]=a)}return r}function Te(t,e){return Fa(t,e,to)}function Ne(t,e){return Fa(t,e,zs)}function De(t,e){return qa(t,e,zs)}function Oe(t,e){for(var n=-1,r=e.length,i=-1,o=[];++n<r;){var a=e[n];Oi(t[a])&&(o[++i]=a)}return o}function je(t,e,n){if(null!=t){n!==$&&n in fr(t)&&(e=[n]);for(var r=0,i=e.length;null!=t&&r<i;)t=t[e[r++]];return r&&r==i?t:$}}function Ie(t,e,n,r,i,o){return t===e||(null==t||null==e||!ji(t)&&!p(e)?t!==t&&e!==e:Le(t,e,Ie,n,r,i,o))}function Le(t,e,n,r,i,o,a){var s=As(t),u=As(e),l=B,c=B;s||(l=ra.call(t),l==R?l=Z:l!=Z&&(s=Bi(t))),u||(c=ra.c
 all(e),c==R?c=Z:c!=Z&&(u=Bi(e)));var f=l==Z,d=c==Z,h=l==c;if(h&&!s&&!f)return qn(t,e,l);if(!i){var p=f&&ea.call(t,"__wrapped__"),g=d&&ea.call(e,"__wrapped__");if(p||g)return n(p?t.value():t,g?e.value():e,r,i,o,a)}if(!h)return!1;o||(o=[]),a||(a=[]);for(var v=o.length;v--;)if(o[v]==t)return a[v]==e;o.push(t),a.push(e);var m=(s?Fn:zn)(t,e,n,r,i,o,a);return o.pop(),a.pop(),m}function Pe(t,e,n){var r=e.length,i=r,o=!n;if(null==t)return!i;for(t=fr(t);r--;){var a=e[r];if(o&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++r<i;){a=e[r];var s=a[0],u=t[s],l=a[1];if(o&&a[2]){if(u===$&&!(s in t))return!1}else{var c=n?n(u,l,s):$;if(!(c===$?Ie(l,u,n,!0):c))return!1}}return!0}function Fe(t,e){var n=-1,r=Qn(t)?Wo(t.length):[];return La(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function qe(t){var e=Vn(t);if(1==e.length&&e[0][2]){var n=e[0][0],r=e[0][1];return function(t){return null!=t&&(t[n]===r&&(r!==$||n in fr(t)))}}return function(t){return Pe(t,e)}}function ze(t,e){var n=As(t),r=tr(t)&&rr(e),i=t+"";
 return t=dr(t),function(o){if(null==o)return!1;var a=i;if(o=fr(o),(n||!r)&&!(a in o)){if(o=1==t.length?o:je(o,Ge(t,0,-1)),null==o)return!1;a=Cr(t),o=fr(o)}return o[a]===e?e!==$||a in o:Ie(e,o[a],$,!0)}}function We(t,e,n,r,i){if(!ji(t))return t;var o=Qn(e)&&(As(e)||Bi(e)),a=o?$:zs(e);return re(a||e,function(s,u){if(a&&(u=s,s=e[u]),p(s))r||(r=[]),i||(i=[]),Re(t,e,u,We,n,r,i);else{var l=t[u],c=n?n(l,s,u,t,e):$,f=c===$;f&&(c=s),c===$&&(!o||u in t)||!f&&(c===c?c===l:l!==l)||(t[u]=c)}}),t}function Re(t,e,n,r,i,o,a){for(var s=o.length,u=e[n];s--;)if(o[s]==u)return void(t[n]=a[s]);var l=t[n],c=i?i(l,u,n,t,e):$,f=c===$;f&&(c=u,Qn(u)&&(As(u)||Bi(u))?c=As(l)?l:Qn(l)?ne(l):[]:zi(u)||Mi(u)?c=Mi(l)?Gi(l):zi(l)?l:{}:f=!1),o.push(u),a.push(c),f?t[n]=r(c,u,i,o,a):(c===c?c!==l:l===l)&&(t[n]=c)}function Be(t){return function(e){return null==e?$:e[t]}}function Ve(t){var e=t+"";return t=dr(t),function(n){return je(n,t,e)}}function He(t,e){for(var n=t?e.length:0;n--;){var r=e[n];if(r!=i&&Kn(r)){var i=r;h
 a.call(t,r,1)}}return t}function Ue(t,e){return t+ya(Ca()*(e-t+1))}function Ye(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Ge(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,e<0&&(e=-e>i?0:i+e),n=n===$||n>i?i:+n||0,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Wo(i);++r<i;)o[r]=t[r+e];return o}function Xe(t,e){var n;return La(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function Ze(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function Qe(t,e,n){var r=Wn(),i=-1;e=ue(e,function(t){return r(t)});var o=Fe(t,function(t){var n=ue(e,function(e){return e(t)});return{criteria:n,index:++i,value:t}});return Ze(o,function(t,e){return u(t,e,n)})}function Ke(t,e){var n=0;return La(t,function(t,r,i){n+=+e(t,r,i)||0}),n}function Je(t,e){var r=-1,i=Bn(),o=t.length,a=i===n,s=a&&o>=P,u=s?gn():null,l=[];u?(i=Qt,a=!1):(s=!1,u=e?[]:l);t:for(;++r<o;){var c=t[r],f=e?e(c,r,t):c;if(a&&c===c){for(var d=u.length;d--;)if(u[d]===f)continue t;e&&u.push(f),l.push(c)}el
 se i(u,f,0)<0&&((e||s)&&u.push(f),l.push(c))}return l}function tn(t,e){for(var n=-1,r=e.length,i=Wo(r);++n<r;)i[n]=t[e[n]];return i}function en(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Ge(t,r?0:o,r?o+1:i):Ge(t,r?o+1:0,r?i:o)}function nn(t,e){var n=t;n instanceof Wt&&(n=n.value());for(var r=-1,i=e.length;++r<i;){var o=e[r];n=o.func.apply(o.thisArg,le([n],o.args))}return n}function rn(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&i<=Na){for(;r<i;){var o=r+i>>>1,a=t[o];(n?a<=e:a<e)&&null!==a?r=o+1:i=o}return i}return on(t,e,Eo,n)}function on(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,a=e!==e,s=null===e,u=e===$;i<o;){var l=ya((i+o)/2),c=n(t[l]),f=c!==$,d=c===c;if(a)var h=d||r;else h=s?d&&f&&(r||null!=c):u?d&&(r||f):null!=c&&(r?c<=e:c<e);h?i=l+1:o=l}return ka(o,Ta)}function an(t,e,n){if("function"!=typeof t)return Eo;if(e===$)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i
 )};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)};case 5:return function(n,r,i,o,a){return t.call(e,n,r,i,o,a)}}return function(){return t.apply(e,arguments)}}function sn(t){var e=new aa(t.byteLength),n=new pa(e);return n.set(new pa(t)),e}function un(t,e,n){for(var r=n.length,i=-1,o=$a(t.length-r,0),a=-1,s=e.length,u=Wo(s+o);++a<s;)u[a]=e[a];for(;++i<r;)u[n[i]]=t[i];for(;o--;)u[a++]=t[i++];return u}function ln(t,e,n){for(var r=-1,i=n.length,o=-1,a=$a(t.length-i,0),s=-1,u=e.length,l=Wo(a+u);++o<a;)l[o]=t[o];for(var c=o;++s<u;)l[c+s]=e[s];for(;++r<i;)l[c+n[r]]=t[o++];return l}function cn(t,e){return function(n,r,i){var o=e?e():{};if(r=Wn(r,i,3),As(n))for(var a=-1,s=n.length;++a<s;){var u=n[a];t(o,u,r(u,a,n),n)}else La(n,function(e,n,i){t(o,e,r(e,n,i),i)});return o}}function fn(t){return mi(function(e,n){var r=-1,i=null==e?0:n.length,o=i>2?n[i-2]:$,a=i>2?n[2]:$,s=i>1?n[i-1]:$;for("function"==typeof o?(o=an(o,s,5),i-=2):(o="function"==typeof s?s:$,i-=o?1:0),a&&Jn(n[0],n[1],a)
 &&(o=i<3?$:o,i=1);++r<i;){var u=n[r];u&&t(e,u,o)}return e})}function dn(t,e){return function(n,r){var i=n?Ra(n):0;if(!nr(i))return t(n,r);for(var o=e?i:-1,a=fr(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function hn(t){return function(e,n,r){for(var i=fr(e),o=r(e),a=o.length,s=t?a:-1;t?s--:++s<a;){var u=o[s];if(n(i[u],u,i)===!1)break}return e}}function pn(t,e){function n(){var i=this&&this!==Jt&&this instanceof n?r:t;return i.apply(e,arguments)}var r=mn(t);return n}function gn(t){return ma&&fa?new Zt(t):null}function vn(t){return function(e){for(var n=-1,r=Mo(co(e)),i=r.length,o="";++n<i;)o=t(o,r[n],n);return o}}function mn(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}v
 ar n=Ia(t.prototype),r=t.apply(n,e);return ji(r)?r:n}}function yn(t){function e(n,r,i){i&&Jn(n,r,i)&&(r=$);var o=Pn(n,t,$,$,$,$,$,r);return o.placeholder=e.placeholder,o}return e}function bn(t,e){return mi(function(n){var r=n[0];return null==r?r:(n.push(e),t.apply($,n))})}function xn(t,e){return function(n,r,i){if(i&&Jn(n,r,i)&&(r=$),r=Wn(r,i,3),1==r.length){n=As(n)?n:cr(n);var o=ae(n,r,t,e);if(!n.length||o!==e)return o}return Me(n,r,t,e)}}function wn(t,n){return function(r,i,o){if(i=Wn(i,o,3),As(r)){var a=e(r,i,n);return a>-1?r[a]:$}return Ee(r,i,t)}}function $n(t){return function(n,r,i){return n&&n.length?(r=Wn(r,i,3),e(n,r,t)):-1}}function kn(t){return function(e,n,r){return n=Wn(n,r,3),Ee(e,n,t,!0)}}function _n(t){return function(){for(var e,n=arguments.length,r=t?n:-1,i=0,o=Wo(n);t?r--:++r<n;){var a=o[i++]=arguments[r];if("function"!=typeof a)throw new Zo(z);!e&&tt.prototype.thru&&"wrapper"==Rn(a)&&(e=new tt([],(!0)))}for(r=e?-1:n;++r<n;){a=o[r];var s=Rn(a),u="wrapper"==s?Wa(a)
 :$;e=u&&er(u[0])&&u[1]==(N|S|A|D)&&!u[4].length&&1==u[9]?e[Rn(u[0])].apply(e,u[3]):1==a.length&&er(a)?e[s]():e.thru(a)}return function(){var t=arguments,r=t[0];if(e&&1==t.length&&As(r)&&r.length>=P)return e.plant(r).value();for(var i=0,a=n?o[i].apply(this,t):r;++i<n;)a=o[i].call(this,a);return a}}}function Mn(t,e){return function(n,r,i){return"function"==typeof r&&i===$&&As(n)?t(n,r):e(n,an(r,i,3))}}function Cn(t){return function(e,n,r){return"function"==typeof n&&r===$||(n=an(n,r,3)),t(e,n,to)}}function Sn(t){return function(e,n,r){return"function"==typeof n&&r===$||(n=an(n,r,3)),t(e,n)}}function En(t){return function(e,n,r){var i={};return n=Wn(n,r,3),Ne(e,function(e,r,o){var a=n(e,r,o);r=t?a:r,e=t?e:a,i[r]=e}),i}}function An(t){return function(e,n,r){return e=i(e),(t?e:"")+On(e,n,r)+(t?"":e)}}function Tn(t){var e=mi(function(n,r){var i=v(r,e.placeholder);return Pn(n,t,$,r,i)});return e}function Nn(t,e){return function(n,r,i,o){var a=arguments.length<3;return"function"==typeof r&&
 o===$&&As(n)?t(n,r,i,a):Ye(n,Wn(r,o,4),i,a,e)}}function Dn(t,e,n,r,i,o,a,s,u,l){function c(){for(var b=arguments.length,x=b,w=Wo(b);x--;)w[x]=arguments[x];if(r&&(w=un(w,r,i)),o&&(w=ln(w,o,a)),p||m){var k=c.placeholder,C=v(w,k);if(b-=C.length,b<l){var S=s?ne(s):$,E=$a(l-b,0),N=p?C:$,D=p?$:C,O=p?w:$,j=p?$:w;e|=p?A:T,e&=~(p?T:A),g||(e&=~(_|M));var I=[t,e,n,O,N,j,D,S,u,E],L=Dn.apply($,I);return er(t)&&Ba(L,I),L.placeholder=k,L}}var P=d?n:this,F=h?P[t]:t;return s&&(w=ur(w,s)),f&&u<w.length&&(w.length=u),this&&this!==Jt&&this instanceof c&&(F=y||mn(t)),F.apply(P,w)}var f=e&N,d=e&_,h=e&M,p=e&S,g=e&C,m=e&E,y=h?$:mn(t);return c}function On(t,e,n){var r=t.length;if(e=+e,r>=e||!xa(e))return"";var i=e-r;return n=null==n?" ":n+"",mo(n,va(i/n.length)).slice(0,i)}function jn(t,e,n,r){function i(){for(var e=-1,s=arguments.length,u=-1,l=r.length,c=Wo(l+s);++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++e];var f=this&&this!==Jt&&this instanceof i?a:t;return f.apply(o?n:this,c)}var o=e&_,a=mn(t);return 
 i}function In(t){var e=Ho[t];return function(t,n){return n=n===$?0:+n||0,n?(n=la(10,n),e(t*n)/n):e(t);
     }}function Ln(t){return function(e,n,r,i){var o=Wn(r);return null==r&&o===xe?rn(e,n,t):on(e,n,o(r,i,1),t)}}function Pn(t,e,n,r,i,o,a,s){var u=e&M;if(!u&&"function"!=typeof t)throw new Zo(z);var l=r?r.length:0;if(l||(e&=~(A|T),r=i=$),l-=i?i.length:0,e&T){var c=r,f=i;r=i=$}var d=u?$:Wa(t),h=[t,e,n,r,i,c,f,o,a,s];if(d&&(ir(h,d),e=h[1],s=h[9]),h[9]=null==s?u?0:t.length:$a(s-l,0)||0,e==_)var p=pn(h[0],h[2]);else p=e!=A&&e!=(_|A)||h[4].length?Dn.apply($,h):jn.apply($,h);var g=d?za:Ba;return g(p,h)}function Fn(t,e,n,r,i,o,a){var s=-1,u=t.length,l=e.length;if(u!=l&&!(i&&l>u))return!1;for(;++s<u;){var c=t[s],f=e[s],d=r?r(i?f:c,i?c:f,s):$;if(d!==$){if(d)continue;return!1}if(i){if(!de(e,function(t){return c===t||n(c,t,r,i,o,a)}))return!1}else if(c!==f&&!n(c,f,r,i,o,a))return!1}return!0}function qn(t,e,n){switch(n){case V:case H:return+t==+e;case U:return t.name==e.name&&t.message==e.message;case X:return t!=+t?e!=+e:t==+e;case Q:case J:return t==e+""}return!1}function zn(t,e,n,r,i,o,a){var
  s=zs(t),u=s.length,l=zs(e),c=l.length;if(u!=c&&!i)return!1;for(var f=u;f--;){var d=s[f];if(!(i?d in e:ea.call(e,d)))return!1}for(var h=i;++f<u;){d=s[f];var p=t[d],g=e[d],v=r?r(i?g:p,i?p:g,d):$;if(!(v===$?n(p,g,r,i,o,a):v))return!1;h||(h="constructor"==d)}if(!h){var m=t.constructor,y=e.constructor;if(m!=y&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof y&
    --- End diff --
    
    these changes should be reverted (these are usually caused by using different versions to build the web UI and generally just clutter up the diff.)


---

Mime
View raw message