diff --git a/asset-manifest.json b/asset-manifest.json index 6ce9923..a49e3c7 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,15 +1,15 @@ { "files": { "main.css": "/static/css/main.b10d9779.css", - "main.js": "/static/js/main.9276df9b.js", + "main.js": "/static/js/main.c0b32f38.js", "static/js/787.41d085b9.chunk.js": "/static/js/787.41d085b9.chunk.js", "index.html": "/index.html", "main.b10d9779.css.map": "/static/css/main.b10d9779.css.map", - "main.9276df9b.js.map": "/static/js/main.9276df9b.js.map", + "main.c0b32f38.js.map": "/static/js/main.c0b32f38.js.map", "787.41d085b9.chunk.js.map": "/static/js/787.41d085b9.chunk.js.map" }, "entrypoints": [ "static/css/main.b10d9779.css", - "static/js/main.9276df9b.js" + "static/js/main.c0b32f38.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 373aa5a..1c1fbfb 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Eurovision Ranker
\ No newline at end of file +Eurovision Ranker
\ No newline at end of file diff --git a/static/js/main.9276df9b.js b/static/js/main.c0b32f38.js similarity index 99% rename from static/js/main.9276df9b.js rename to static/js/main.c0b32f38.js index e3a7329..7c7a159 100644 --- a/static/js/main.9276df9b.js +++ b/static/js/main.c0b32f38.js @@ -1,3 +1,3 @@ -/*! For license information please see main.9276df9b.js.LICENSE.txt */ -!function(){var a={1694:function(a,e){var n;!function(){"use strict";var l={}.hasOwnProperty;function i(){for(var a=[],e=0;e0){for(c=l[--i];i>0&&(a=c,!(n=(e=l[--i])-((c=a+e)-a))););i>0&&(n<0&&l[i-1]<0||n>0&&l[i-1]>0)&&(e=2*n)==(a=c+e)-c&&(c=a)}return c}}]),a}();var o=1e-6,t=1e-12,r=Math.PI,s=r/2,m=r/4,f=2*r,d=180/r,u=r/180,p=Math.abs,_=Math.atan,h=Math.atan2,g=Math.cos,b=Math.ceil,v=Math.exp,k=(Math.floor,Math.hypot),y=Math.log,z=Math.pow,w=Math.sin,M=Math.sign||function(a){return a>0?1:a<0?-1:0},x=Math.sqrt,S=Math.tan;function A(a){return a>1?0:a<-1?r:Math.acos(a)}function R(a){return a>1?s:a<-1?-s:Math.asin(a)}function E(a){return(a=w(a/2))*a}function N(){}function C(a,e){a&&T.hasOwnProperty(a.type)&&T[a.type](a,e)}var B={Feature:function(a,e){C(a.geometry,e)},FeatureCollection:function(a,e){for(var n=a.features,l=-1,i=n.length;++l=0?1:-1,i=l*n,c=g(e=(e*=u)/2+m),o=w(e),t=F*o,r=D*c+t*g(i),s=t*l*w(i);$.add(h(s,r)),O=a,D=c,F=o}function oa(a){return aa=new c,I(a,ea),2*aa}function ta(a){return[h(a[1],a[0]),R(a[2])]}function ra(a){var e=a[0],n=a[1],l=g(n);return[l*g(e),l*w(e),w(n)]}function sa(a,e){return a[0]*e[0]+a[1]*e[1]+a[2]*e[2]}function ma(a,e){return[a[1]*e[2]-a[2]*e[1],a[2]*e[0]-a[0]*e[2],a[0]*e[1]-a[1]*e[0]]}function fa(a,e){a[0]+=e[0],a[1]+=e[1],a[2]+=e[2]}function da(a,e){return[a[0]*e,a[1]*e,a[2]*e]}function ua(a){var e=x(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);a[0]/=e,a[1]/=e,a[2]/=e}var pa,_a,ha,ga,ba,va,ka,ya,za,wa,Ma,xa,Sa,Aa,Ra,Ea,Na={point:Ca,lineStart:Ta,lineEnd:La,polygonStart:function(){Na.point=Pa,Na.lineStart=Ia,Na.lineEnd=ja,Y=new c,ea.polygonStart()},polygonEnd:function(){ea.polygonEnd(),Na.point=Ca,Na.lineStart=Ta,Na.lineEnd=La,$<0?(K=-(U=180),H=-(V=90)):Y>o?V=90:Y<-o&&(H=-90),X[0]=K,X[1]=U},sphere:function(){K=-(U=180),H=-(V=90)}};function Ca(a,e){Q.push(X=[K=a,U=a]),eV&&(V=e)}function Ba(a,e){var n=ra([a*u,e*u]);if(J){var l=ma(J,n),i=ma([l[1],-l[0],0],l);ua(i),i=ta(i);var c,o=a-Z,t=o>0?1:-1,r=i[0]*d*t,s=p(o)>180;s^(t*ZV&&(V=c):s^(t*Z<(r=(r+360)%360-180)&&rV&&(V=e)),s?aGa(K,U)&&(U=a):Ga(a,U)>Ga(K,U)&&(K=a):U>=K?(aU&&(U=a)):a>Z?Ga(K,a)>Ga(K,U)&&(U=a):Ga(a,U)>Ga(K,U)&&(K=a)}else Q.push(X=[K=a,U=a]);eV&&(V=e),J=n,Z=a}function Ta(){Na.point=Ba}function La(){X[0]=K,X[1]=U,Na.point=Ca,J=null}function Pa(a,e){if(J){var n=a-Z;Y.add(p(n)>180?n+(n>0?360:-360):n)}else W=a,q=e;ea.point(a,e),Ba(a,e)}function Ia(){ea.lineStart()}function ja(){Pa(W,q),ea.lineEnd(),p(Y)>o&&(K=-(U=180)),X[0]=K,X[1]=U,J=null}function Ga(a,e){return(e-=a)<0?e+360:e}function Oa(a,e){return a[0]-e[0]}function Da(a,e){return a[0]<=a[1]?a[0]<=e&&e<=a[1]:eGa(l[0],l[1])&&(l[1]=i[1]),Ga(i[0],l[1])>Ga(l[0],l[1])&&(l[0]=i[0])):c.push(l=i);for(o=-1/0,e=0,l=c[n=c.length-1];e<=n;l=i,++e)i=c[e],(t=Ga(l[1],i[0]))>o&&(o=t,K=i[0],U=l[1])}return Q=X=null,K===1/0||H===1/0?[[NaN,NaN],[NaN,NaN]]:[[K,H],[U,V]]}var Ka={sphere:N,point:Ha,lineStart:Va,lineEnd:qa,polygonStart:function(){Ka.lineStart=Ja,Ka.lineEnd=Ya},polygonEnd:function(){Ka.lineStart=Va,Ka.lineEnd=qa}};function Ha(a,e){a*=u;var n=g(e*=u);Ua(n*g(a),n*w(a),w(e))}function Ua(a,e,n){++pa,ha+=(a-ha)/pa,ga+=(e-ga)/pa,ba+=(n-ba)/pa}function Va(){Ka.point=Za}function Za(a,e){a*=u;var n=g(e*=u);Aa=n*g(a),Ra=n*w(a),Ea=w(e),Ka.point=Wa,Ua(Aa,Ra,Ea)}function Wa(a,e){a*=u;var n=g(e*=u),l=n*g(a),i=n*w(a),c=w(e),o=h(x((o=Ra*c-Ea*i)*o+(o=Ea*l-Aa*c)*o+(o=Aa*i-Ra*l)*o),Aa*l+Ra*i+Ea*c);_a+=o,va+=o*(Aa+(Aa=l)),ka+=o*(Ra+(Ra=i)),ya+=o*(Ea+(Ea=c)),Ua(Aa,Ra,Ea)}function qa(){Ka.point=Ha}function Ja(){Ka.point=Qa}function Ya(){Xa(xa,Sa),Ka.point=Ha}function Qa(a,e){xa=a,Sa=e,a*=u,e*=u,Ka.point=Xa;var n=g(e);Aa=n*g(a),Ra=n*w(a),Ea=w(e),Ua(Aa,Ra,Ea)}function Xa(a,e){a*=u;var n=g(e*=u),l=n*g(a),i=n*w(a),c=w(e),o=Ra*c-Ea*i,t=Ea*l-Aa*c,r=Aa*i-Ra*l,s=k(o,t,r),m=R(s),f=s&&-m/s;za.add(f*o),wa.add(f*t),Ma.add(f*r),_a+=m,va+=m*(Aa+(Aa=l)),ka+=m*(Ra+(Ra=i)),ya+=m*(Ea+(Ea=c)),Ua(Aa,Ra,Ea)}function $a(a){pa=_a=ha=ga=ba=va=ka=ya=0,za=new c,wa=new c,Ma=new c,I(a,Ka);var e=+za,n=+wa,l=+Ma,i=k(e,n,l);return ir?a+Math.round(-a/f)*f:a,e]}function le(a,e,n){return(a%=f)?e||n?ee(ce(a),oe(e,n)):ce(a):e||n?oe(e,n):ne}function ie(a){return function(e,n){return[(e+=a)>r?e-f:e<-r?e+f:e,n]}}function ce(a){var e=ie(a);return e.invert=ie(-a),e}function oe(a,e){var n=g(a),l=w(a),i=g(e),c=w(e);function o(a,e){var o=g(e),t=g(a)*o,r=w(a)*o,s=w(e),m=s*n+t*l;return[h(r*i-m*c,t*n-s*l),R(m*i+r*c)]}return o.invert=function(a,e){var o=g(e),t=g(a)*o,r=w(a)*o,s=w(e),m=s*i-r*c;return[h(r*i+s*c,t*n+m*l),R(m*n-t*l)]},o}function te(a){function e(e){return(e=a(e[0]*u,e[1]*u))[0]*=d,e[1]*=d,e}return a=le(a[0]*u,a[1]*u,a.length>2?a[2]*u:0),e.invert=function(e){return(e=a.invert(e[0]*u,e[1]*u))[0]*=d,e[1]*=d,e},e}function re(a,e,n,l,i,c){if(n){var o=g(e),t=w(e),r=l*n;null==i?(i=e+l*f,c=e-r/2):(i=se(o,i),c=se(o,c),(l>0?ic)&&(i+=l*f));for(var s,m=i;l>0?m>c:m1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],a=null,n}}}function de(a,e){return p(a[0]-e[0])=0;--c)i.point((f=m[c])[0],f[1]);else l(u.x,u.p.x,-1,i);u=u.p}m=(u=u.o).z,p=!p}while(!u.v);i.lineEnd()}}}function _e(a){if(e=a.length){for(var e,n,l=0,i=a[0];++l=0?1:-1,j=I*P,G=j>r,O=S*T;if(_.add(h(O*I*w(j),A*L+O*g(j))),u+=G?P+I*f:P,G^M>=n^C>=n){var D=ma(ra(z),ra(N));ua(D);var F=ma(d,D);ua(F);var K=(G^P>=0?-1:1)*R(F[2]);(l>K||l===K&&(D[0]||D[1]))&&(p+=G^P>=0?1:-1)}}return(u<-o||u0){for(f||(i.polygonStart(),f=!0),i.lineStart(),a=0;a1&&2&r&&d.push(d.pop().concat(d.shift())),o.push(d.filter(Me))}return d}}function Me(a){return a.length>1}function xe(a,e){return((a=a.x)[0]<0?a[1]-s-o:s-a[1])-((e=e.x)[0]<0?e[1]-s-o:s-e[1])}var Se=we((function(){return!0}),(function(a){var e,n=NaN,l=NaN,i=NaN;return{lineStart:function(){a.lineStart(),e=1},point:function(c,t){var m=c>0?r:-r,f=p(c-n);p(f-r)0?s:-s),a.point(i,l),a.lineEnd(),a.lineStart(),a.point(m,l),a.point(c,l),e=0):i!==m&&f>=r&&(p(n-i)o?_((w(e)*(c=g(l))*w(n)-w(l)*(i=g(e))*w(a))/(i*c*t)):(e+l)/2}(n,l,c,t),a.point(i,l),a.lineEnd(),a.lineStart(),a.point(m,l),e=0),a.point(n=c,l=t),i=m},lineEnd:function(){a.lineEnd(),n=l=NaN},clean:function(){return 2-e}}}),(function(a,e,n,l){var i;if(null==a)i=n*s,l.point(-r,i),l.point(0,i),l.point(r,i),l.point(r,0),l.point(r,-i),l.point(0,-i),l.point(-r,-i),l.point(-r,0),l.point(-r,i);else if(p(a[0]-e[0])>o){var c=a[0]0,i=p(e)>o;function c(a,n){return g(a)*g(n)>e}function t(a,n,l){var i=[1,0,0],c=ma(ra(a),ra(n)),t=sa(c,c),s=c[0],m=t-s*s;if(!m)return!l&&a;var f=e*t/m,d=-e*s/m,u=ma(i,c),_=da(i,f);fa(_,da(c,d));var h=u,g=sa(_,h),b=sa(h,h),v=g*g-b*(sa(_,_)-1);if(!(v<0)){var k=x(v),y=da(h,(-g-k)/b);if(fa(y,_),y=ta(y),!l)return y;var z,w=a[0],M=n[0],S=a[1],A=n[1];M0^y[1]<(p(y[0]-w)r^(w<=y[0]&&y[0]<=M)){var N=da(h,(-g+k)/b);return fa(N,_),[y,ta(N)]}}}function s(e,n){var i=l?a:r-a,c=0;return e<-i?c|=1:e>i&&(c|=2),n<-i?c|=4:n>i&&(c|=8),c}return we(c,(function(a){var e,n,o,m,f;return{lineStart:function(){m=o=!1,f=1},point:function(d,u){var p,_=[d,u],h=c(d,u),g=l?h?0:s(d,u):h?s(d+(d<0?r:-r),u):0;if(!e&&(m=o=h)&&a.lineStart(),h!==o&&(!(p=t(e,_))||de(e,p)||de(_,p))&&(_[2]=1),h!==o)f=0,h?(a.lineStart(),p=t(_,e),a.point(p[0],p[1])):(p=t(e,_),a.point(p[0],p[1],2),a.lineEnd()),e=p;else if(i&&e&&l^h){var b;g&n||!(b=t(_,e,!0))||(f=0,l?(a.lineStart(),a.point(b[0][0],b[0][1]),a.point(b[1][0],b[1][1]),a.lineEnd()):(a.point(b[1][0],b[1][1]),a.lineEnd(),a.lineStart(),a.point(b[0][0],b[0][1],3)))}!h||e&&de(e,_)||a.point(_[0],_[1]),e=_,o=h,n=g},lineEnd:function(){o&&a.lineEnd(),e=null},clean:function(){return f|(m&&o)<<1}}}),(function(e,l,i,c){re(c,a,n,i,e,l)}),l?[0,-a]:[-r,a-r])}var Re,Ee,Ne,Ce,Be=1e9,Te=-Be;function Le(a,e,n,l){function i(i,c){return a<=i&&i<=n&&e<=c&&c<=l}function c(i,c,o,r){var m=0,f=0;if(null==i||(m=t(i,o))!==(f=t(c,o))||s(i,c)<0^o>0)do{r.point(0===m||3===m?a:n,m>1?l:e)}while((m=(m+o+4)%4)!==f);else r.point(c[0],c[1])}function t(l,i){return p(l[0]-a)0?0:3:p(l[0]-n)0?2:1:p(l[1]-e)0?1:0:i>0?3:2}function r(a,e){return s(a.x,e.x)}function s(a,e){var n=t(a,1),l=t(e,1);return n!==l?n-l:0===n?e[1]-a[1]:1===n?a[0]-e[0]:2===n?a[1]-e[1]:e[0]-a[0]}return function(o){var t,s,m,f,d,u,p,_,h,g,b,v=o,k=fe(),y={point:z,lineStart:function(){y.point=w,s&&s.push(m=[]);g=!0,h=!1,p=_=NaN},lineEnd:function(){t&&(w(f,d),u&&h&&k.rejoin(),t.push(k.result()));y.point=z,h&&v.lineEnd()},polygonStart:function(){v=k,t=[],s=[],b=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=s.length;nl&&(d-c)*(l-o)>(u-o)*(a-c)&&++e:u<=l&&(d-c)*(l-o)<(u-o)*(a-c)&&--e;return e}(),n=b&&e,i=(t=ze(t)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),c(null,null,1,o),o.lineEnd()),i&&pe(t,r,e,c,o),o.polygonEnd());v=o,t=s=m=null}};function z(a,e){i(a,e)&&v.point(a,e)}function w(c,o){var t=i(c,o);if(s&&m.push([c,o]),g)f=c,d=o,u=t,g=!1,t&&(v.lineStart(),v.point(c,o));else if(t&&h)v.point(c,o);else{var r=[p=Math.max(Te,Math.min(Be,p)),_=Math.max(Te,Math.min(Be,_))],k=[c=Math.max(Te,Math.min(Be,c)),o=Math.max(Te,Math.min(Be,o))];!function(a,e,n,l,i,c){var o,t=a[0],r=a[1],s=0,m=1,f=e[0]-t,d=e[1]-r;if(o=n-t,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>m)return;o>s&&(s=o)}if(o=i-t,f||!(o<0)){if(o/=f,f<0){if(o>m)return;o>s&&(s=o)}else if(f>0){if(o0)){if(o/=d,d<0){if(o0){if(o>m)return;o>s&&(s=o)}if(o=c-r,d||!(o<0)){if(o/=d,d<0){if(o>m)return;o>s&&(s=o)}else if(d>0){if(o0&&(a[0]=t+s*f,a[1]=r+s*d),m<1&&(e[0]=t+m*f,e[1]=r+m*d),!0}}}}}(r,k,a,e,n,l)?t&&(v.lineStart(),v.point(c,o),b=!1):(h||(v.lineStart(),v.point(r[0],r[1])),v.point(k[0],k[1]),t||v.lineEnd(),b=!1)}p=c,_=o,h=t}return y}}function Pe(){var a,e,n,l=0,i=0,c=960,o=500;return n={stream:function(n){return a&&e===n?a:a=Le(l,i,c,o)(e=n)},extent:function(t){return arguments.length?(l=+t[0][0],i=+t[0][1],c=+t[1][0],o=+t[1][1],a=e=null,n):[[l,i],[c,o]]}}}var Ie={sphere:N,point:N,lineStart:function(){Ie.point=Ge,Ie.lineEnd=je},lineEnd:N,polygonStart:N,polygonEnd:N};function je(){Ie.point=Ie.lineEnd=N}function Ge(a,e){Ee=a*=u,Ne=w(e*=u),Ce=g(e),Ie.point=Oe}function Oe(a,e){a*=u;var n=w(e*=u),l=g(e),i=p(a-Ee),c=g(i),o=l*w(i),t=Ce*n-Ne*l*c,r=Ne*n+Ce*l*c;Re.add(h(x(o*o+t*t),r)),Ee=a,Ne=n,Ce=l}function De(a){return Re=new c,I(a,Ie),+Re}var Fe=[null,null],Ke={type:"LineString",coordinates:Fe};function He(a,e){return Fe[0]=a,Fe[1]=e,De(Ke)}var Ue={Feature:function(a,e){return Ze(a.geometry,e)},FeatureCollection:function(a,e){for(var n=a.features,l=-1,i=n.length;++l0&&(i=He(a[c],a[c-1]))>0&&n<=i&&l<=i&&(n+l-i)*(1-Math.pow((n-l)/i,2))o})).map(s)).concat($e(b(c/_)*_,i,_).filter((function(a){return p(a%g)>o})).map(m))}return k.lines=function(){return y().map((function(a){return{type:"LineString",coordinates:a}}))},k.outline=function(){return{type:"Polygon",coordinates:[f(l).concat(d(t).slice(1),f(n).reverse().slice(1),d(r).reverse().slice(1))]}},k.extent=function(a){return arguments.length?k.extentMajor(a).extentMinor(a):k.extentMinor()},k.extentMajor=function(a){return arguments.length?(l=+a[0][0],n=+a[1][0],r=+a[0][1],t=+a[1][1],l>n&&(a=l,l=n,n=a),r>t&&(a=r,r=t,t=a),k.precision(v)):[[l,r],[n,t]]},k.extentMinor=function(n){return arguments.length?(e=+n[0][0],a=+n[1][0],c=+n[0][1],i=+n[1][1],e>a&&(n=e,e=a,a=n),c>i&&(n=c,c=i,i=n),k.precision(v)):[[e,c],[a,i]]},k.step=function(a){return arguments.length?k.stepMajor(a).stepMinor(a):k.stepMinor()},k.stepMajor=function(a){return arguments.length?(h=+a[0],g=+a[1],k):[h,g]},k.stepMinor=function(a){return arguments.length?(u=+a[0],_=+a[1],k):[u,_]},k.precision=function(o){return arguments.length?(v=+o,s=an(c,i,90),m=en(e,a,v),f=an(r,t,90),d=en(l,n,v),k):v},k.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ln(){return nn()()}function cn(a,e){var n=a[0]*u,l=a[1]*u,i=e[0]*u,c=e[1]*u,o=g(l),t=w(l),r=g(c),s=w(c),m=o*g(n),f=o*w(n),p=r*g(i),_=r*w(i),b=2*R(x(E(c-l)+o*r*E(i-n))),v=w(b),k=b?function(a){var e=w(a*=b)/v,n=w(b-a)/v,l=n*m+e*p,i=n*f+e*_,c=n*t+e*s;return[h(i,l)*d,h(c,x(l*l+i*i))*d]}:function(){return[n*d,l*d]};return k.distance=b,k}var on,tn,rn,sn,mn=function(a){return a},fn=new c,dn=new c,un={point:N,lineStart:N,lineEnd:N,polygonStart:function(){un.lineStart=pn,un.lineEnd=gn},polygonEnd:function(){un.lineStart=un.lineEnd=un.point=N,fn.add(p(dn)),dn=new c},result:function(){var a=fn/2;return fn=new c,a}};function pn(){un.point=_n}function _n(a,e){un.point=hn,on=rn=a,tn=sn=e}function hn(a,e){dn.add(sn*a-rn*e),rn=a,sn=e}function gn(){hn(on,tn)}var bn=un,vn=1/0,kn=vn,yn=-vn,zn=yn,wn={point:function(a,e){ayn&&(yn=a);ezn&&(zn=e)},lineStart:N,lineEnd:N,polygonStart:N,polygonEnd:N,result:function(){var a=[[vn,kn],[yn,zn]];return yn=zn=-(kn=vn=1/0),a}};var Mn,xn,Sn,An,Rn=wn,En=0,Nn=0,Cn=0,Bn=0,Tn=0,Ln=0,Pn=0,In=0,jn=0,Gn={point:On,lineStart:Dn,lineEnd:Hn,polygonStart:function(){Gn.lineStart=Un,Gn.lineEnd=Vn},polygonEnd:function(){Gn.point=On,Gn.lineStart=Dn,Gn.lineEnd=Hn},result:function(){var a=jn?[Pn/jn,In/jn]:Ln?[Bn/Ln,Tn/Ln]:Cn?[En/Cn,Nn/Cn]:[NaN,NaN];return En=Nn=Cn=Bn=Tn=Ln=Pn=In=jn=0,a}};function On(a,e){En+=a,Nn+=e,++Cn}function Dn(){Gn.point=Fn}function Fn(a,e){Gn.point=Kn,On(Sn=a,An=e)}function Kn(a,e){var n=a-Sn,l=e-An,i=x(n*n+l*l);Bn+=i*(Sn+a)/2,Tn+=i*(An+e)/2,Ln+=i,On(Sn=a,An=e)}function Hn(){Gn.point=On}function Un(){Gn.point=Zn}function Vn(){Wn(Mn,xn)}function Zn(a,e){Gn.point=Wn,On(Mn=Sn=a,xn=An=e)}function Wn(a,e){var n=a-Sn,l=e-An,i=x(n*n+l*l);Bn+=i*(Sn+a)/2,Tn+=i*(An+e)/2,Ln+=i,Pn+=(i=An*a-Sn*e)*(Sn+a),In+=i*(An+e),jn+=3*i,On(Sn=a,An=e)}var qn=Gn;function Jn(a){this._context=a}Jn.prototype={_radius:4.5,pointRadius:function(a){return this._radius=a,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(a,e){switch(this._point){case 0:this._context.moveTo(a,e),this._point=1;break;case 1:this._context.lineTo(a,e);break;default:this._context.moveTo(a+this._radius,e),this._context.arc(a,e,this._radius,0,f)}},result:N};var Yn,Qn,Xn,$n,al,el=new c,nl={point:N,lineStart:function(){nl.point=ll},lineEnd:function(){Yn&&il(Qn,Xn),nl.point=N},polygonStart:function(){Yn=!0},polygonEnd:function(){Yn=null},result:function(){var a=+el;return el=new c,a}};function ll(a,e){nl.point=il,Qn=$n=a,Xn=al=e}function il(a,e){$n-=a,al-=e,el.add(x($n*$n+al*al)),$n=a,al=e}var cl=nl;function ol(){this._string=[]}function tl(a){return"m0,"+a+"a"+a+","+a+" 0 1,1 0,"+-2*a+"a"+a+","+a+" 0 1,1 0,"+2*a+"z"}function rl(a,e){var n,l,i=4.5;function c(a){return a&&("function"===typeof i&&l.pointRadius(+i.apply(this,arguments)),I(a,n(l))),l.result()}return c.area=function(a){return I(a,n(bn)),bn.result()},c.measure=function(a){return I(a,n(cl)),cl.result()},c.bounds=function(a){return I(a,n(Rn)),Rn.result()},c.centroid=function(a){return I(a,n(qn)),qn.result()},c.projection=function(e){return arguments.length?(n=null==e?(a=null,mn):(a=e).stream,c):a},c.context=function(a){return arguments.length?(l=null==a?(e=null,new ol):new Jn(e=a),"function"!==typeof i&&l.pointRadius(i),c):e},c.pointRadius=function(a){return arguments.length?(i="function"===typeof a?a:(l.pointRadius(+a),+a),c):i},c.projection(a).context(e)}function sl(a){return{stream:ml(a)}}function ml(a){return function(e){var n=new fl;for(var l in a)n[l]=a[l];return n.stream=e,n}}function fl(){}function dl(a,e,n){var l=a.clipExtent&&a.clipExtent();return a.scale(150).translate([0,0]),null!=l&&a.clipExtent(null),I(n,a.stream(Rn)),e(Rn.result()),null!=l&&a.clipExtent(l),a}function ul(a,e,n){return dl(a,(function(n){var l=e[1][0]-e[0][0],i=e[1][1]-e[0][1],c=Math.min(l/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(l-c*(n[1][0]+n[0][0]))/2,t=+e[0][1]+(i-c*(n[1][1]+n[0][1]))/2;a.scale(150*c).translate([o,t])}),n)}function pl(a,e,n){return ul(a,[[0,0],e],n)}function _l(a,e,n){return dl(a,(function(n){var l=+e,i=l/(n[1][0]-n[0][0]),c=(l-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];a.scale(150*i).translate([c,o])}),n)}function hl(a,e,n){return dl(a,(function(n){var l=+e,i=l/(n[1][1]-n[0][1]),c=-i*n[0][0],o=(l-i*(n[1][1]+n[0][1]))/2;a.scale(150*i).translate([c,o])}),n)}ol.prototype={_radius:4.5,_circle:tl(4.5),pointRadius:function(a){return(a=+a)!==this._radius&&(this._radius=a,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(a,e){switch(this._point){case 0:this._string.push("M",a,",",e),this._point=1;break;case 1:this._string.push("L",a,",",e);break;default:null==this._circle&&(this._circle=tl(this._radius)),this._string.push("M",a,",",e,this._circle)}},result:function(){if(this._string.length){var a=this._string.join("");return this._string=[],a}return null}},fl.prototype={constructor:fl,point:function(a,e){this.stream.point(a,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var gl=16,bl=g(30*u);function vl(a,e){return+e?function(a,e){function n(l,i,c,t,r,s,m,f,d,u,_,g,b,v){var k=m-l,y=f-i,z=k*k+y*y;if(z>4*e&&b--){var w=t+u,M=r+_,S=s+g,A=x(w*w+M*M+S*S),E=R(S/=A),N=p(p(S)-1)e||p((k*L+y*P)/z-.5)>.3||t*u+r*_+s*g2?a[2]%360*u:0,B()):[b*d,v*d,k*d]},N.angle=function(a){return arguments.length?(y=a%360*u,B()):y*d},N.reflectX=function(a){return arguments.length?(z=a?-1:1,B()):z<0},N.reflectY=function(a){return arguments.length?(w=a?-1:1,B()):w<0},N.precision=function(a){return arguments.length?(o=vl(t,E=a*a),T()):x(E)},N.fitExtent=function(a,e){return ul(N,a,e)},N.fitSize=function(a,e){return pl(N,a,e)},N.fitWidth=function(a,e){return _l(N,a,e)},N.fitHeight=function(a,e){return hl(N,a,e)},function(){return e=a.apply(this,arguments),N.invert=e.invert&&C,B()}}function Ml(a){var e=0,n=r/3,l=wl(a),i=l(e,n);return i.parallels=function(a){return arguments.length?l(e=a[0]*u,n=a[1]*u):[e*d,n*d]},i}function xl(a,e){var n=w(a),l=(n+w(e))/2;if(p(l)=.12&&i<.234&&l>=-.425&&l<-.214?r:i>=.166&&i<.234&&l>=-.214&&l<-.115?s:t).invert(a)},f.stream=function(n){return a&&e===n?a:a=function(a){var e=a.length;return{point:function(n,l){for(var i=-1;++i0?e<-s+o&&(e=-s+o):e>s-o&&(e=s-o);var n=i/z(Gl(e),l);return[n*w(l*a),i-n*g(l*a)]}return c.invert=function(a,e){var n=i-e,c=M(l)*x(a*a+n*n),o=h(a,p(n))*M(n);return n*l<0&&(o-=r*M(a)*M(n)),[o/l,2*_(z(i/c,1/l))-s]},c}function Dl(){return Ml(Ol).scale(109.5).parallels([30,30])}function Fl(a,e){return[a,e]}function Kl(){return zl(Fl).scale(152.63)}function Hl(a,e){var n=g(a),l=a===e?w(a):(n-g(e))/(e-a),i=n/l+a;if(p(l)2?a[2]+90:90]):[(a=n())[0],a[1],a[2]-90]},n([0,0,90]).scale(159.155)}Yl.invert=function(a,e){for(var n,l=e,i=l*l,c=i*i*i,o=0;o<12&&(c=(i=(l-=n=(l*(Vl+Zl*i+c*(Wl+ql*i))-e)/(Vl+3*Zl*i+c*(7*Wl+9*ql*i)))*l)*i*i,!(p(n)o&&--i>0);return[a/(.8707+(c=l*l)*(c*(c*c*c*(.003971-.001529*c)-.013791)-.131979)),l]},li.invert=Nl(R),ci.invert=Nl((function(a){return 2*_(a)})),ti.invert=function(a,e){return[-e,2*_(v(a))-s]}},9491:function(a,e,n){"use strict";function l(a){return"object"===typeof a&&"length"in a?a:Array.from(a)}n.d(e,{Z:function(){return l}})},8413:function(a,e,n){"use strict";n.d(e,{Z:function(){return t}});var l=n(6229),i=n(6094);function c(a){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.P&&e.documentElement.namespaceURI===i.P?e.createElement(a):e.createElementNS(n,a)}}function o(a){return function(){return this.ownerDocument.createElementNS(a.space,a.local)}}function t(a){var e=(0,l.Z)(a);return(e.local?o:c)(e)}},2320:function(a,e,n){"use strict";n.r(e),n.d(e,{create:function(){return c},creator:function(){return l.Z},local:function(){return t},matcher:function(){return s.Z},namespace:function(){return m.Z},namespaces:function(){return f.Z},pointer:function(){return d.Z},pointers:function(){return p},select:function(){return i.Z},selectAll:function(){return g},selection:function(){return h.ZP},selector:function(){return b.Z},selectorAll:function(){return v.Z},style:function(){return k.S},window:function(){return y.Z}});var l=n(8413),i=n(9261);function c(a){return(0,i.Z)((0,l.Z)(a).call(document.documentElement))}var o=0;function t(){return new r}function r(){this._="@"+(++o).toString(36)}r.prototype=t.prototype={constructor:r,get:function(a){for(var e=this._;!(e in a);)if(!(a=a.parentNode))return;return a[e]},set:function(a,e){return a[this._]=e},remove:function(a){return this._ in a&&delete a[this._]},toString:function(){return this._}};var s=n(1761),m=n(6229),f=n(6094),d=n(9439),u=n(252);function p(a,e){return a.target&&(a=(0,u.Z)(a),void 0===e&&(e=a.currentTarget),a=a.touches||[a]),Array.from(a,(function(a){return(0,d.Z)(a,e)}))}var _=n(9491),h=n(9426);function g(a){return"string"===typeof a?new h.Y1([document.querySelectorAll(a)],[document.documentElement]):new h.Y1([null==a?[]:(0,_.Z)(a)],h.Jz)}var b=n(2538),v=n(4265),k=n(946),y=n(5795)},1761:function(a,e,n){"use strict";function l(a){return function(){return this.matches(a)}}function i(a){return function(e){return e.matches(a)}}n.d(e,{P:function(){return i},Z:function(){return l}})},6229:function(a,e,n){"use strict";n.d(e,{Z:function(){return i}});var l=n(6094);function i(a){var e=a+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=a.slice(0,n))&&(a=a.slice(n+1)),l.Z.hasOwnProperty(e)?{space:l.Z[e],local:a}:a}},6094:function(a,e,n){"use strict";n.d(e,{P:function(){return l}});var l="http://www.w3.org/1999/xhtml";e.Z={svg:"http://www.w3.org/2000/svg",xhtml:l,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},9439:function(a,e,n){"use strict";n.d(e,{Z:function(){return i}});var l=n(252);function i(a,e){if(a=(0,l.Z)(a),void 0===e&&(e=a.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=a.clientX,i.y=a.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var c=e.getBoundingClientRect();return[a.clientX-c.left-e.clientLeft,a.clientY-c.top-e.clientTop]}}return[a.pageX,a.pageY]}},9261:function(a,e,n){"use strict";n.d(e,{Z:function(){return i}});var l=n(9426);function i(a){return"string"===typeof a?new l.Y1([[document.querySelector(a)]],[document.documentElement]):new l.Y1([[a]],l.Jz)}},9426:function(a,e,n){"use strict";n.d(e,{Y1:function(){return ta},ZP:function(){return sa},Jz:function(){return oa}});var l=n(4942),i=n(2538);var c=n(9491),o=n(4265);var t=n(1761),r=Array.prototype.find;function s(){return this.firstElementChild}var m=Array.prototype.filter;function f(){return this.children}function d(a){return new Array(a.length)}function u(a,e){this.ownerDocument=a.ownerDocument,this.namespaceURI=a.namespaceURI,this._next=null,this._parent=a,this.__data__=e}function p(a,e,n,l,i,c){for(var o,t=0,r=e.length,s=c.length;te?1:a>=e?0:NaN}u.prototype={constructor:u,appendChild:function(a){return this._parent.insertBefore(a,this._next)},insertBefore:function(a,e){return this._parent.insertBefore(a,e)},querySelector:function(a){return this._parent.querySelector(a)},querySelectorAll:function(a){return this._parent.querySelectorAll(a)}};var b=n(7762);var v=n(6229);function k(a){return function(){this.removeAttribute(a)}}function y(a){return function(){this.removeAttributeNS(a.space,a.local)}}function z(a,e){return function(){this.setAttribute(a,e)}}function w(a,e){return function(){this.setAttributeNS(a.space,a.local,e)}}function M(a,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(a):this.setAttribute(a,n)}}function x(a,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,n)}}var S=n(946);function A(a){return function(){delete this[a]}}function R(a,e){return function(){this[a]=e}}function E(a,e){return function(){var n=e.apply(this,arguments);null==n?delete this[a]:this[a]=n}}function N(a){return a.trim().split(/^|\s+/)}function C(a){return a.classList||new B(a)}function B(a){this._node=a,this._names=N(a.getAttribute("class")||"")}function T(a,e){for(var n=C(a),l=-1,i=e.length;++l=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(a){return this._names.indexOf(a)>=0}};var Z=n(8413);function W(){return null}function q(){var a=this.parentNode;a&&a.removeChild(this)}function J(){var a=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(a,this.nextSibling):a}function Y(){var a=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(a,this.nextSibling):a}function Q(a){return function(){var e=this.__on;if(e){for(var n,l=0,i=-1,c=e.length;l=x&&(x=M+1);!(w=y[x])&&++x=0;)(l=i[c])&&(o&&4^l.compareDocumentPosition(o)&&o.parentNode.insertBefore(l,o),o=l);return this},sort:function(a){function e(e,n){return e&&n?a(e.__data__,n.__data__):!e-!n}a||(a=g);for(var n=this._groups,l=n.length,i=new Array(l),c=0;c1?this.each((null==e?A:"function"===typeof e?E:R)(a,e)):this.node()[a]},classed:function(a,e){var n=N(a+"");if(arguments.length<2){for(var l=C(this.node()),i=-1,c=n.length;++i=0&&(e=a.slice(n+1),a=a.slice(0,n)),{type:a,name:e}}))}(a+""),o=c.length;if(!(arguments.length<2)){for(t=e?X:Q,l=0;l1?this.each((null==e?i:"function"===typeof e?o:c)(a,e,null==n?"":n)):r(this.node(),a)}function r(a,e){return a.style.getPropertyValue(e)||(0,l.Z)(a).getComputedStyle(a,null).getPropertyValue(e)}},2538:function(a,e,n){"use strict";function l(){}function i(a){return null==a?l:function(){return this.querySelector(a)}}n.d(e,{Z:function(){return i}})},4265:function(a,e,n){"use strict";function l(){return[]}function i(a){return null==a?l:function(){return this.querySelectorAll(a)}}n.d(e,{Z:function(){return i}})},252:function(a,e,n){"use strict";function l(a){for(var e;e=a.sourceEvent;)a=e;return a}n.d(e,{Z:function(){return l}})},5795:function(a,e,n){"use strict";function l(a){return a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView}n.d(e,{Z:function(){return l}})},9839:function(a,e,n){"use strict";n.r(e),n.d(e,{zoom:function(){return Ce},zoomIdentity:function(){return ye},zoomTransform:function(){return ze}});var l={value:function(){}};function i(){for(var a,e=0,n=arguments.length,l={};e=0&&(e=a.slice(n+1),a=a.slice(0,n)),a&&!l.hasOwnProperty(a))throw new Error("unknown type: "+a);return{type:a,name:e}}))),r=-1,s=c.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);for(;++r0)for(var n,l,i=new Array(n),c=0;c=0&&e._call.call(null,a),e=e._next;--g}()}finally{g=0,function(){var a,e,n=d,l=1/0;for(;n;)n._call?(l>n._time&&(l=n._time),a=n,n=n._next):(e=n._next,n._next=null,n=a?a._next=e:d=e);u=a,B(l)}(),z=0}}function C(){var a=M.now(),e=a-y;e>k&&(w-=e,y=a)}function B(a){g||(b&&(b=clearTimeout(b)),a-z>24?(a<1/0&&(b=setTimeout(N,a-M.now()-w)),v&&(v=clearInterval(v))):(v||(y=M.now(),v=setInterval(C,k)),g=1,x(N)))}function T(a,e,n){var l=new R;return e=null==e?0:+e,l.restart((function(n){l.stop(),a(n+e)}),e,n),l}R.prototype=E.prototype={constructor:R,restart:function(a,e,n){if("function"!==typeof a)throw new TypeError("callback is not a function");n=(null==n?S():+n)+(null==e?0:+e),this._next||u===this||(u?u._next=this:d=this,u=this),this._call=a,this._time=n,B()},stop:function(){this._call&&(this._call=null,this._time=1/0,B())}};var L=r("start","end","cancel","interrupt"),P=[],I=0,j=1,G=2,O=3,D=4,F=5,K=6;function H(a,e,n,l,i,c){var o=a.__transition;if(o){if(n in o)return}else a.__transition={};!function(a,e,n){var l,i=a.__transition;function c(a){n.state=j,n.timer.restart(o,n.delay,n.time),n.delay<=a&&o(a-n.delay)}function o(c){var s,m,f,d;if(n.state!==j)return r();for(s in i)if((d=i[s]).name===n.name){if(d.state===O)return T(o);d.state===D?(d.state=K,d.timer.stop(),d.on.call("interrupt",a,a.__data__,d.index,d.group),delete i[s]):+sI)throw new Error("too late; already scheduled");return n}function V(a,e){var n=Z(a,e);if(n.state>O)throw new Error("too late; already running");return n}function Z(a,e){var n=a.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function W(a,e){var n,l,i,c=a.__transition,o=!0;if(c){for(i in e=null==e?null:e+"",c)(n=c[i]).name===e?(l=n.state>G&&n.state180?e+=360:e-a>180&&(a+=360),c.push({i:n.push(i(n)+"rotate(",null,l)-2,x:J(a,e)})):e&&n.push(i(n)+"rotate("+e+l)}(c.rotate,o.rotate,t,r),function(a,e,n,c){a!==e?c.push({i:n.push(i(n)+"skewX(",null,l)-2,x:J(a,e)}):e&&n.push(i(n)+"skewX("+e+l)}(c.skewX,o.skewX,t,r),function(a,e,n,l,c,o){if(a!==n||e!==l){var t=c.push(i(c)+"scale(",null,",",null,")");o.push({i:t-4,x:J(a,n)},{i:t-2,x:J(e,l)})}else 1===n&&1===l||c.push(i(c)+"scale("+n+","+l+")")}(c.scaleX,c.scaleY,o.scaleX,o.scaleY,t,r),c=o=null,function(a){for(var e,n=-1,l=r.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Aa(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Aa(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ha.exec(a))?new Ea(e[1],e[2],e[3],1):(e=ga.exec(a))?new Ea(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ba.exec(a))?Aa(e[1],e[2],e[3],e[4]):(e=va.exec(a))?Aa(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ka.exec(a))?Ta(e[1],e[2]/100,e[3]/100,1):(e=ya.exec(a))?Ta(e[1],e[2]/100,e[3]/100,e[4]):za.hasOwnProperty(a)?Sa(za[a]):"transparent"===a?new Ea(NaN,NaN,NaN,0):null}function Sa(a){return new Ea(a>>16&255,a>>8&255,255&a,1)}function Aa(a,e,n,l){return l<=0&&(a=e=n=NaN),new Ea(a,e,n,l)}function Ra(a,e,n,l){return 1===arguments.length?function(a){return a instanceof sa||(a=xa(a)),a?new Ea((a=a.rgb()).r,a.g,a.b,a.opacity):new Ea}(a):new Ea(a,e,n,null==l?1:l)}function Ea(a,e,n,l){this.r=+a,this.g=+e,this.b=+n,this.opacity=+l}function Na(){return"#"+Ba(this.r)+Ba(this.g)+Ba(this.b)}function Ca(){var a=this.opacity;return(1===(a=isNaN(a)?1:Math.max(0,Math.min(1,a)))?"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===a?")":", "+a+")")}function Ba(a){return((a=Math.max(0,Math.min(255,Math.round(a)||0)))<16?"0":"")+a.toString(16)}function Ta(a,e,n,l){return l<=0?a=e=n=NaN:n<=0||n>=1?a=e=NaN:e<=0&&(a=NaN),new Pa(a,e,n,l)}function La(a){if(a instanceof Pa)return new Pa(a.h,a.s,a.l,a.opacity);if(a instanceof sa||(a=xa(a)),!a)return new Pa;if(a instanceof Pa)return a;var e=(a=a.rgb()).r/255,n=a.g/255,l=a.b/255,i=Math.min(e,n,l),c=Math.max(e,n,l),o=NaN,t=c-i,r=(c+i)/2;return t?(o=e===c?(n-l)/t+6*(n0&&r<1?0:o,new Pa(o,t,r,a.opacity)}function Pa(a,e,n,l){this.h=+a,this.s=+e,this.l=+n,this.opacity=+l}function Ia(a,e,n){return 255*(a<60?e+(n-e)*a/60:a<180?n:a<240?e+(n-e)*(240-a)/60:e)}function ja(a,e,n,l,i){var c=a*a,o=c*a;return((1-3*a+3*c-o)*e+(4-6*c+3*o)*n+(1+3*a+3*c-3*o)*l+o*i)/6}ta(sa,xa,{copy:function(a){return Object.assign(new this.constructor,this,a)},displayable:function(){return this.rgb().displayable()},hex:wa,formatHex:wa,formatHsl:function(){return La(this).formatHsl()},formatRgb:Ma,toString:Ma}),ta(Ea,Ra,ra(sa,{brighter:function(a){return a=null==a?fa:Math.pow(fa,a),new Ea(this.r*a,this.g*a,this.b*a,this.opacity)},darker:function(a){return a=null==a?ma:Math.pow(ma,a),new Ea(this.r*a,this.g*a,this.b*a,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Na,formatHex:Na,formatRgb:Ca,toString:Ca})),ta(Pa,(function(a,e,n,l){return 1===arguments.length?La(a):new Pa(a,e,n,null==l?1:l)}),ra(sa,{brighter:function(a){return a=null==a?fa:Math.pow(fa,a),new Pa(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=null==a?ma:Math.pow(ma,a),new Pa(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=this.h%360+360*(this.h<0),e=isNaN(a)||isNaN(this.s)?0:this.s,n=this.l,l=n+(n<.5?n:1-n)*e,i=2*n-l;return new Ea(Ia(a>=240?a-240:a+120,i,l),Ia(a,i,l),Ia(a<120?a+240:a-120,i,l),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},formatHsl:function(){var a=this.opacity;return(1===(a=isNaN(a)?1:Math.max(0,Math.min(1,a)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===a?")":", "+a+")")}}));var Ga=function(a){return function(){return a}};function Oa(a,e){return function(n){return a+n*e}}function Da(a){return 1===(a=+a)?Fa:function(e,n){return n-e?function(a,e,n){return a=Math.pow(a,n),e=Math.pow(e,n)-a,n=1/n,function(l){return Math.pow(a+l*e,n)}}(e,n,a):Ga(isNaN(e)?n:e)}}function Fa(a,e){var n=e-a;return n?Oa(a,n):Ga(isNaN(a)?e:a)}var Ka=function a(e){var n=Da(e);function l(a,e){var l=n((a=Ra(a)).r,(e=Ra(e)).r),i=n(a.g,e.g),c=n(a.b,e.b),o=Fa(a.opacity,e.opacity);return function(e){return a.r=l(e),a.g=i(e),a.b=c(e),a.opacity=o(e),a+""}}return l.gamma=a,l}(1);function Ha(a){return function(e){var n,l,i=e.length,c=new Array(i),o=new Array(i),t=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=a[l],c=a[l+1],o=l>0?a[l-1]:2*i-c,t=lc&&(i=e.slice(c,i),t[o]?t[o]+=i:t[++o]=i),(n=n[0])===(l=l[0])?t[o]?t[o]+=l:t[++o]=l:(t[++o]=null,r.push({i:o,x:J(n,l)})),c=Va.lastIndex;return c=0&&(a=a.slice(0,e)),!a||"start"===a}))}(e)?U:V;return function(){var o=c(this,a),t=o.on;t!==l&&(i=(l=t).copy()).on(e,n),o.on=i}}(n,a,e))},attr:function(a,e){var n=(0,la.Z)(a),l="transform"===n?na:Wa;return this.attrTween(a,"function"===typeof e?(n.local?$a:Xa)(n,l,oa(this,"attr."+a,e)):null==e?(n.local?Ja:qa)(n):(n.local?Qa:Ya)(n,l,e))},attrTween:function(a,e){var n="attr."+a;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var l=(0,la.Z)(a);return this.tween(n,(l.local?ae:ee)(l,e))},style:function(a,e,n){var l="transform"===(a+="")?ea:Wa;return null==e?this.styleTween(a,function(a,e){var n,l,i;return function(){var c=(0,me.S)(this,a),o=(this.style.removeProperty(a),(0,me.S)(this,a));return c===o?null:c===n&&o===l?i:i=e(n=c,l=o)}}(a,l)).on("end.style."+a,fe(a)):"function"===typeof e?this.styleTween(a,function(a,e,n){var l,i,c;return function(){var o=(0,me.S)(this,a),t=n(this),r=t+"";return null==t&&(this.style.removeProperty(a),r=t=(0,me.S)(this,a)),o===r?null:o===l&&r===i?c:(i=r,c=e(l=o,t))}}(a,l,oa(this,"style."+a,e))).each(function(a,e){var n,l,i,c,o="style."+e,t="end."+o;return function(){var r=V(this,a),s=r.on,m=null==r.value[o]?c||(c=fe(e)):void 0;s===n&&i===m||(l=(n=s).copy()).on(t,i=m),r.on=l}}(this._id,a)):this.styleTween(a,function(a,e,n){var l,i,c=n+"";return function(){var o=(0,me.S)(this,a);return o===c?null:o===l?i:i=e(l=o,n)}}(a,l,e),n).on("end.style."+a,null)},styleTween:function(a,e,n){var l="style."+(a+="");if(arguments.length<2)return(l=this.tween(l))&&l._value;if(null==e)return this.tween(l,null);if("function"!==typeof e)throw new Error;return this.tween(l,function(a,e,n){var l,i;function c(){var c=e.apply(this,arguments);return c!==i&&(l=(i=c)&&function(a,e,n){return function(l){this.style.setProperty(a,e.call(this,l),n)}}(a,c,n)),l}return c._value=e,c}(a,e,null==n?"":n))},text:function(a){return this.tween("text","function"===typeof a?function(a){return function(){var e=a(this);this.textContent=null==e?"":e}}(oa(this,"text",a)):function(a){return function(){this.textContent=a}}(null==a?"":a+""))},textTween:function(a){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==a)return this.tween(e,null);if("function"!==typeof a)throw new Error;return this.tween(e,function(a){var e,n;function l(){var l=a.apply(this,arguments);return l!==n&&(e=(n=l)&&function(a){return function(e){this.textContent=a.call(this,e)}}(l)),e}return l._value=a,l}(a))},remove:function(){return this.on("end.remove",function(a){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==a)return;e&&e.removeChild(this)}}(this._id))},tween:function(a,e){var n=this._id;if(a+="",arguments.length<2){for(var l,i=Z(this.node(),n).tween,c=0,o=i.length;cl?(l+i)/2:Math.min(0,l)||Math.max(0,i),o>c?(c+o)/2:Math.min(0,c)||Math.max(0,o))}function Ce(){var a,e,n,l=xe,i=Se,c=Ne,o=Re,t=Ee,f=[0,1/0],d=[[-1/0,-1/0],[1/0,1/0]],u=250,h=p,g=r("start","zoom","end"),b=500,v=150,k=0,y=10;function z(a){a.property("__zoom",Ae).on("wheel.zoom",E).on("mousedown.zoom",N).on("dblclick.zoom",C).filter(t).on("touchstart.zoom",B).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",L).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(a,e){return(e=Math.max(f[0],Math.min(f[1],e)))===a.k?a:new ke(e,a.x,a.y)}function M(a,e,n){var l=e[0]-n[0]*a.k,i=e[1]-n[1]*a.k;return l===a.x&&i===a.y?a:new ke(a.k,l,i)}function x(a){return[(+a[0][0]+ +a[1][0])/2,(+a[0][1]+ +a[1][1])/2]}function S(a,e,n,l){a.on("start.zoom",(function(){A(this,arguments).event(l).start()})).on("interrupt.zoom end.zoom",(function(){A(this,arguments).event(l).end()})).tween("zoom",(function(){var a=this,c=arguments,o=A(a,c).event(l),t=i.apply(a,c),r=null==n?x(t):"function"===typeof n?n.apply(a,c):n,s=Math.max(t[1][0]-t[0][0],t[1][1]-t[0][1]),m=a.__zoom,f="function"===typeof e?e.apply(a,c):e,d=h(m.invert(r).concat(s/m.k),f.invert(r).concat(s/f.k));return function(a){if(1===a)a=f;else{var e=d(a),n=s/e[2];a=new ke(n,r[0]-e[0]*n,r[1]-e[1]*n)}o.zoom(null,a)}}))}function A(a,e,n){return!n&&a.__zooming||new R(a,e)}function R(a,e){this.that=a,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(a,e),this.taps=0}function E(a){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?e-1:0),o=1;ok}t.event(a).zoom("mouse",c(M(t.that.__zoom,t.mouse[0]=(0,_.Z)(a,u),t.mouse[1]),t.extent,d))}),!0).on("mouseup.zoom",(function(a){r.on("mousemove.zoom mouseup.zoom",null),function(a,e){var n=a.document.documentElement,l=(0,s.Z)(a).on("dragstart.drag",null);e&&(l.on("click.drag",m,!0),setTimeout((function(){l.on("click.drag",null)}),0)),"onselectstart"in n?l.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(a.view,t.moved),Me(a),t.event(a).end()}),!0),f=(0,_.Z)(a,u),u=a.currentTarget,p=a.clientX,h=a.clientY;!function(a){var e=a.document.documentElement,n=(0,s.Z)(a).on("dragstart.drag",m,!0);"onselectstart"in e?n.on("selectstart.drag",m,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(a.view),we(a),t.mouse=[f,this.__zoom.invert(f)],W(this),t.start()}}function C(a){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o0?(0,s.Z)(this).transition().duration(u).call(S,p,r,a):(0,s.Z)(this).call(z.transform,p,r,a)}}function B(n){for(var i=arguments.length,c=new Array(i>1?i-1:0),o=1;o1?e-1:0),l=1;l1?l-1:0),c=1;c=this._config.preview;if(l)e.postMessage({results:t,workerId:o.WORKER_ID,finished:s});else if(y(this._config.chunk)&&!n){if(this._config.chunk(t,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);t=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(t.data),this._completeResults.errors=this._completeResults.errors.concat(t.errors),this._completeResults.meta=t.meta),this._completed||!s||!y(this._config.complete)||t&&t.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),s||t&&t.meta.paused||this._nextChunk(),t}this._halted=!0},this._sendError=function(a){y(this._config.error)?this._config.error(a):l&&this._config.error&&e.postMessage({workerId:o.WORKER_ID,error:a,finished:!1})}}function s(a){var e;(a=a||{}).chunkSize||(a.chunkSize=o.RemoteChunkSize),r.call(this,a),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(a){this._input=a,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),n||(e.onload=k(this._chunkLoaded,this),e.onerror=k(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var a=this._config.downloadRequestHeaders;for(var l in a)e.setRequestHeader(l,a[l])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;e.setRequestHeader("Range","bytes="+this._start+"-"+i)}try{e.send(this._config.downloadRequestBody)}catch(a){this._chunkError(a.message)}n&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(a){var e=a.getResponseHeader("Content-Range");return null===e?-1:parseInt(e.substring(e.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(a){var n=e.statusText||a;this._sendError(new Error(n))}}function m(a){var e,n;(a=a||{}).chunkSize||(a.chunkSize=o.LocalChunkSize),r.call(this,a);var l="undefined"!=typeof FileReader;this.stream=function(a){this._input=a,n=a.slice||a.webkitSlice||a.mozSlice,l?((e=new FileReader).onload=k(this._chunkLoaded,this),e.onerror=k(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(a.target.result)},this._chunkError=function(){this._sendError(e.error)}}function f(a){var e;r.call(this,a=a||{}),this.stream=function(a){return e=a,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var a,n=this._config.chunkSize;return n?(a=e.substring(0,n),e=e.substring(n)):(a=e,e=""),this._finished=!e,this.parseChunk(a)}}}function d(a){r.call(this,a=a||{});var e=[],n=!0,l=!1;this.pause=function(){r.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){r.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(a){this._input=a,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){l&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):n=!0},this._streamData=k((function(a){try{e.push("string"==typeof a?a:a.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(a){this._streamError(a)}}),this),this._streamError=k((function(a){this._streamCleanUp(),this._sendError(a)}),this),this._streamEnd=k((function(){this._streamCleanUp(),l=!0,this._streamData("")}),this),this._streamCleanUp=k((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function u(a){var e,n,l,i=Math.pow(2,53),c=-i,t=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,r=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,s=this,m=0,f=0,d=!1,u=!1,h=[],g={data:[],errors:[],meta:{}};if(y(a.step)){var b=a.step;a.step=function(e){if(g=e,w())z();else{if(z(),0===g.data.length)return;m+=e.data.length,a.preview&&m>a.preview?n.abort():(g.data=g.data[0],b(g,s))}}}function k(e){return"greedy"===a.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function z(){return g&&l&&(x("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),l=!1),a.skipEmptyLines&&(g.data=g.data.filter((function(a){return!k(a)}))),w()&&function(){if(g)if(Array.isArray(g.data[0])){for(var e=0;w()&&e=h.length?"__parsed_extra":h[l]),a.transform&&(o=a.transform(o,c)),o=M(c,o),"__parsed_extra"===c?(i[c]=i[c]||[],i[c].push(o)):i[c]=o}return a.header&&(l>h.length?x("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+l,f+n):l=l.length/2?"\r\n":"\r"}(i,r)),l=!1,a.delimiter)y(a.delimiter)&&(a.delimiter=a.delimiter(i),g.meta.delimiter=a.delimiter);else{var s=function(e,n,l,i,c){var t,r,s,m;c=c||[",","\t","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var f=0;f=t)return Z(!0)}else for(O=m,m++;;){if(-1===(O=o.indexOf(e,O+1)))return u||z.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:k.length,index:m}),U();if(O===_-1)return U(o.substring(m,O).replace(G,e));if(e!==s||o[O+1]!==s){if(e===s||0===O||o[O-1]!==s){-1!==I&&I=t)return Z(!0);break}z.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:k.length,index:m}),O++}}else O++}return U();function K(a){k.push(a),M=m}function H(a){var e=0;if(-1!==a){var n=o.substring(O+1,a);n&&""===n.trim()&&(e=n.length)}return e}function U(a){return u||(void 0===a&&(a=o.substring(m)),w.push(a),m=_,K(w),v&&W()),Z()}function V(a){m=a,K(w),w=[],j=o.indexOf(l,m)}function Z(a){return{data:k,errors:z,meta:{delimiter:n,linebreak:l,aborted:f,truncated:!!a,cursor:M+(d||0)}}}function W(){c(Z()),k=[],z=[]}},this.abort=function(){f=!0},this.getCharIndex=function(){return m}}function h(a){var e=a.data,n=i[e.workerId],l=!1;if(e.error)n.userError(e.error,e.file);else if(e.results&&e.results.data){var c={abort:function(){l=!0,g(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(y(n.userStep)){for(var o=0;o