/**
 * @license
 * Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris)
 *
 * This sofware is provided under multiple licenses. Please see below for
 * links to appropriate usage.
 *
 * Free amCharts linkware license. Details and conditions:
 * https://github.com/amcharts/amcharts4/blob/master/LICENSE
 *
 * One of the amCharts commercial licenses. Details and pricing:
 * https://www.amcharts.com/online-store/
 * https://www.amcharts.com/online-store/licenses-explained/
 *
 * If in doubt, contact amCharts at contact@amcharts.com
 *
 * PLEASE DO NOT REMOVE THIS COPYRIGHT NOTICE.
 * @hidden
 */
am4internal_webpackJsonp(["cc1e"],{QJ7E:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};n.d(i,"geoArea",function(){return st}),n.d(i,"geoBounds",function(){return te}),n.d(i,"geoCentroid",function(){return pe}),n.d(i,"geoCircle",function(){return Me}),n.d(i,"geoClipAntimeridian",function(){return Ve}),n.d(i,"geoClipCircle",function(){return Re}),n.d(i,"geoClipExtent",function(){return Ye}),n.d(i,"geoClipRectangle",function(){return He}),n.d(i,"geoContains",function(){return fn}),n.d(i,"geoDistance",function(){return rn}),n.d(i,"geoGraticule",function(){return vn}),n.d(i,"geoGraticule10",function(){return mn}),n.d(i,"geoInterpolate",function(){return _n}),n.d(i,"geoLength",function(){return tn}),n.d(i,"geoPath",function(){return Pi}),n.d(i,"geoAlbers",function(){return Vi}),n.d(i,"geoAlbersUsa",function(){return Ri}),n.d(i,"geoAzimuthalEqualArea",function(){return Hi}),n.d(i,"geoAzimuthalEqualAreaRaw",function(){return Wi}),n.d(i,"geoAzimuthalEquidistant",function(){return qi}),n.d(i,"geoAzimuthalEquidistantRaw",function(){return Zi}),n.d(i,"geoConicConformal",function(){return Qi}),n.d(i,"geoConicConformalRaw",function(){return Ki}),n.d(i,"geoConicEqualArea",function(){return Fi}),n.d(i,"geoConicEqualAreaRaw",function(){return Ai}),n.d(i,"geoConicEquidistant",function(){return nr}),n.d(i,"geoConicEquidistantRaw",function(){return er}),n.d(i,"geoEqualEarth",function(){return cr}),n.d(i,"geoEqualEarthRaw",function(){return sr}),n.d(i,"geoEquirectangular",function(){return tr}),n.d(i,"geoEquirectangularRaw",function(){return $i}),n.d(i,"geoGnomonic",function(){return hr}),n.d(i,"geoGnomonicRaw",function(){return lr}),n.d(i,"geoIdentity",function(){return fr}),n.d(i,"geoProjection",function(){return Di}),n.d(i,"geoProjectionMutator",function(){return Ni}),n.d(i,"geoMercator",function(){return Yi}),n.d(i,"geoMercatorRaw",function(){return Xi}),n.d(i,"geoNaturalEarth1",function(){return gr}),n.d(i,"geoNaturalEarth1Raw",function(){return dr}),n.d(i,"geoOrthographic",function(){return mr}),n.d(i,"geoOrthographicRaw",function(){return vr}),n.d(i,"geoStereographic",function(){return br}),n.d(i,"geoStereographicRaw",function(){return yr}),n.d(i,"geoTransverseMercator",function(){return Sr}),n.d(i,"geoTransverseMercatorRaw",function(){return Pr}),n.d(i,"geoRotation",function(){return Pe}),n.d(i,"geoStream",function(){return tt}),n.d(i,"geoTransform",function(){return Si});var r={};n.d(r,"normalizePoint",function(){return $r}),n.d(r,"normalizeMultiline",function(){return to}),n.d(r,"wrapAngleTo180",function(){return eo}),n.d(r,"geoToPoint",function(){return no});var o={};n.d(o,"Mercator",function(){return Oo}),n.d(o,"Miller",function(){return Gu}),n.d(o,"Eckert6",function(){return Du}),n.d(o,"Orthographic",function(){return Nu}),n.d(o,"Stereographic",function(){return zu}),n.d(o,"Albers",function(){return Au}),n.d(o,"AlbersUsa",function(){return Fu}),n.d(o,"NaturalEarth1",function(){return Vu}),n.d(o,"AzimuthalEqualArea",function(){return Ru}),n.d(o,"EqualEarth",function(){return ku}),n.d(o,"Projection",function(){return qr});var a={};n.d(a,"LegendDataItem",function(){return u.b}),n.d(a,"Legend",function(){return u.a}),n.d(a,"LegendSettings",function(){return u.c}),n.d(a,"HeatLegend",function(){return s.a}),n.d(a,"MapChartDataItem",function(){return mo}),n.d(a,"MapChart",function(){return yo}),n.d(a,"MapSeriesDataItem",function(){return _r}),n.d(a,"MapSeries",function(){return Mr}),n.d(a,"MapObject",function(){return wr}),n.d(a,"MapPolygon",function(){return Rr}),n.d(a,"MapImage",function(){return jr}),n.d(a,"MapLine",function(){return co}),n.d(a,"MapLineObject",function(){return io}),n.d(a,"MapSpline",function(){return Po}),n.d(a,"MapArc",function(){return _o}),n.d(a,"Graticule",function(){return po}),n.d(a,"MapPolygonSeriesDataItem",function(){return Hr}),n.d(a,"MapPolygonSeries",function(){return Zr}),n.d(a,"MapLineSeriesDataItem",function(){return lo}),n.d(a,"MapLineSeries",function(){return ho}),n.d(a,"MapSplineSeriesDataItem",function(){return Mo}),n.d(a,"MapSplineSeries",function(){return xo}),n.d(a,"MapImageSeriesDataItem",function(){return ro}),n.d(a,"MapImageSeries",function(){return oo}),n.d(a,"MapArcSeriesDataItem",function(){return wo}),n.d(a,"MapArcSeries",function(){return jo}),n.d(a,"GraticuleSeriesDataItem",function(){return fo}),n.d(a,"GraticuleSeries",function(){return go}),n.d(a,"multiPolygonToGeo",function(){return Ir}),n.d(a,"multiLineToGeo",function(){return Tr}),n.d(a,"multiPointToGeo",function(){return Gr}),n.d(a,"pointToGeo",function(){return Nr}),n.d(a,"multiGeoPolygonToMultipolygon",function(){return Ar}),n.d(a,"getBackground",function(){return Vr}),n.d(a,"multiGeoLineToMultiLine",function(){return zr}),n.d(a,"multiGeoToPoint",function(){return Dr}),n.d(a,"getCircle",function(){return Fr}),n.d(a,"ZoomControl",function(){return Eo}),n.d(a,"SmallMap",function(){return Jr}),n.d(a,"Projection",function(){return qr}),n.d(a,"projections",function(){return o}),n.d(a,"geo",function(){return r}),n.d(a,"d3geo",function(){return i});var u=n("uWmK"),s=n("2OXf"),c=n("m4/l"),l=n("2I/e"),h=n("hD5A"),p=n("MIZb"),f=n("aM7D"),d=n("aCit"),g=n("Mtpk"),v=n("Gg2j"),m=function(){return new y};function y(){this.reset()}y.prototype={constructor:y,reset:function(){this.s=this.t=0},add:function(t){P(b,t,this.t),P(this,b.s,this.s),this.s?this.t+=b.t:this.s=b.t},valueOf:function(){return this.s}};var b=new y;function P(t,e,n){var i=t.s=e+n,r=i-e,o=i-r;t.t=e-o+(n-r)}var S=1e-6,_=Math.PI,M=_/2,x=_/4,w=2*_,j=180/_,L=_/180,C=Math.abs,E=Math.atan,O=Math.atan2,I=Math.cos,T=Math.ceil,G=Math.exp,D=(Math.floor,Math.log),N=Math.pow,z=Math.sin,A=Math.sign||function(t){return t>0?1:t<0?-1:0},F=Math.sqrt,V=Math.tan;function R(t){return t>1?0:t<-1?_:Math.acos(t)}function k(t){return t>1?M:t<-1?-M:Math.asin(t)}function B(t){return(t=z(t/2))*t}function W(){}function H(t,e){t&&q.hasOwnProperty(t.type)&&q[t.type](t,e)}var Z={Feature:function(t,e){H(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)H(n[i].geometry,e)}},q={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){X(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)X(n[i],e,0)},Polygon:function(t,e){Y(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)Y(n[i],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)H(n[i],e)}};function X(t,e,n){var i,r=-1,o=t.length-n;for(e.lineStart();++r<o;)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function Y(t,e){var n=-1,i=t.length;for(e.polygonStart();++n<i;)X(t[n],e,1);e.polygonEnd()}var U,J,K,Q,$,tt=function(t,e){t&&Z.hasOwnProperty(t.type)?Z[t.type](t,e):H(t,e)},et=m(),nt=m(),it={point:W,lineStart:W,lineEnd:W,polygonStart:function(){et.reset(),it.lineStart=rt,it.lineEnd=ot},polygonEnd:function(){var t=+et;nt.add(t<0?w+t:t),this.lineStart=this.lineEnd=this.point=W},sphere:function(){nt.add(w)}};function rt(){it.point=at}function ot(){ut(U,J)}function at(t,e){it.point=ut,U=t,J=e,K=t*=L,Q=I(e=(e*=L)/2+x),$=z(e)}function ut(t,e){e=(e*=L)/2+x;var n=(t*=L)-K,i=n>=0?1:-1,r=i*n,o=I(e),a=z(e),u=$*a,s=Q*o+u*I(r),c=u*i*z(r);et.add(O(c,s)),K=t,Q=o,$=a}var st=function(t){return nt.reset(),tt(t,it),2*nt};function ct(t){return[O(t[1],t[0]),k(t[2])]}function lt(t){var e=t[0],n=t[1],i=I(n);return[i*I(e),i*z(e),z(n)]}function ht(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function pt(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ft(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function dt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function gt(t){var e=F(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var vt,mt,yt,bt,Pt,St,_t,Mt,xt,wt,jt=m(),Lt={point:Ct,lineStart:Ot,lineEnd:It,polygonStart:function(){Lt.point=Tt,Lt.lineStart=Gt,Lt.lineEnd=Dt,jt.reset(),it.polygonStart()},polygonEnd:function(){it.polygonEnd(),Lt.point=Ct,Lt.lineStart=Ot,Lt.lineEnd=It,et<0?(vt=-(yt=180),mt=-(bt=90)):jt>S?bt=90:jt<-S&&(mt=-90),wt[0]=vt,wt[1]=yt}};function Ct(t,e){xt.push(wt=[vt=t,yt=t]),e<mt&&(mt=e),e>bt&&(bt=e)}function Et(t,e){var n=lt([t*L,e*L]);if(Mt){var i=pt(Mt,n),r=pt([i[1],-i[0],0],i);gt(r),r=ct(r);var o,a=t-Pt,u=a>0?1:-1,s=r[0]*j*u,c=C(a)>180;c^(u*Pt<s&&s<u*t)?(o=r[1]*j)>bt&&(bt=o):c^(u*Pt<(s=(s+360)%360-180)&&s<u*t)?(o=-r[1]*j)<mt&&(mt=o):(e<mt&&(mt=e),e>bt&&(bt=e)),c?t<Pt?Nt(vt,t)>Nt(vt,yt)&&(yt=t):Nt(t,yt)>Nt(vt,yt)&&(vt=t):yt>=vt?(t<vt&&(vt=t),t>yt&&(yt=t)):t>Pt?Nt(vt,t)>Nt(vt,yt)&&(yt=t):Nt(t,yt)>Nt(vt,yt)&&(vt=t)}else xt.push(wt=[vt=t,yt=t]);e<mt&&(mt=e),e>bt&&(bt=e),Mt=n,Pt=t}function Ot(){Lt.point=Et}function It(){wt[0]=vt,wt[1]=yt,Lt.point=Ct,Mt=null}function Tt(t,e){if(Mt){var n=t-Pt;jt.add(C(n)>180?n+(n>0?360:-360):n)}else St=t,_t=e;it.point(t,e),Et(t,e)}function Gt(){it.lineStart()}function Dt(){Tt(St,_t),it.lineEnd(),C(jt)>S&&(vt=-(yt=180)),wt[0]=vt,wt[1]=yt,Mt=null}function Nt(t,e){return(e-=t)<0?e+360:e}function zt(t,e){return t[0]-e[0]}function At(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var Ft,Vt,Rt,kt,Bt,Wt,Ht,Zt,qt,Xt,Yt,Ut,Jt,Kt,Qt,$t,te=function(t){var e,n,i,r,o,a,u;if(bt=yt=-(vt=mt=1/0),xt=[],tt(t,Lt),n=xt.length){for(xt.sort(zt),e=1,o=[i=xt[0]];e<n;++e)At(i,(r=xt[e])[0])||At(i,r[1])?(Nt(i[0],r[1])>Nt(i[0],i[1])&&(i[1]=r[1]),Nt(r[0],i[1])>Nt(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,e=0,i=o[n=o.length-1];e<=n;i=r,++e)r=o[e],(u=Nt(i[1],r[0]))>a&&(a=u,vt=r[0],yt=i[1])}return xt=wt=null,vt===1/0||mt===1/0?[[NaN,NaN],[NaN,NaN]]:[[vt,mt],[yt,bt]]},ee={sphere:W,point:ne,lineStart:re,lineEnd:ue,polygonStart:function(){ee.lineStart=se,ee.lineEnd=ce},polygonEnd:function(){ee.lineStart=re,ee.lineEnd=ue}};function ne(t,e){t*=L;var n=I(e*=L);ie(n*I(t),n*z(t),z(e))}function ie(t,e,n){Rt+=(t-Rt)/++Ft,kt+=(e-kt)/Ft,Bt+=(n-Bt)/Ft}function re(){ee.point=oe}function oe(t,e){t*=L;var n=I(e*=L);Kt=n*I(t),Qt=n*z(t),$t=z(e),ee.point=ae,ie(Kt,Qt,$t)}function ae(t,e){t*=L;var n=I(e*=L),i=n*I(t),r=n*z(t),o=z(e),a=O(F((a=Qt*o-$t*r)*a+(a=$t*i-Kt*o)*a+(a=Kt*r-Qt*i)*a),Kt*i+Qt*r+$t*o);Vt+=a,Wt+=a*(Kt+(Kt=i)),Ht+=a*(Qt+(Qt=r)),Zt+=a*($t+($t=o)),ie(Kt,Qt,$t)}function ue(){ee.point=ne}function se(){ee.point=le}function ce(){he(Ut,Jt),ee.point=ne}function le(t,e){Ut=t,Jt=e,t*=L,e*=L,ee.point=he;var n=I(e);Kt=n*I(t),Qt=n*z(t),$t=z(e),ie(Kt,Qt,$t)}function he(t,e){t*=L;var n=I(e*=L),i=n*I(t),r=n*z(t),o=z(e),a=Qt*o-$t*r,u=$t*i-Kt*o,s=Kt*r-Qt*i,c=F(a*a+u*u+s*s),l=k(c),h=c&&-l/c;qt+=h*a,Xt+=h*u,Yt+=h*s,Vt+=l,Wt+=l*(Kt+(Kt=i)),Ht+=l*(Qt+(Qt=r)),Zt+=l*($t+($t=o)),ie(Kt,Qt,$t)}var pe=function(t){Ft=Vt=Rt=kt=Bt=Wt=Ht=Zt=qt=Xt=Yt=0,tt(t,ee);var e=qt,n=Xt,i=Yt,r=e*e+n*n+i*i;return r<1e-12&&(e=Wt,n=Ht,i=Zt,Vt<S&&(e=Rt,n=kt,i=Bt),(r=e*e+n*n+i*i)<1e-12)?[NaN,NaN]:[O(n,e)*j,k(i/F(r))*j]},fe=function(t){return function(){return t}},de=function(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return(n=e.invert(n,i))&&t.invert(n[0],n[1])}),n};function ge(t,e){return[C(t)>_?t+Math.round(-t/w)*w:t,e]}function ve(t,e,n){return(t%=w)?e||n?de(ye(t),be(e,n)):ye(t):e||n?be(e,n):ge}function me(t){return function(e,n){return[(e+=t)>_?e-w:e<-_?e+w:e,n]}}function ye(t){var e=me(t);return e.invert=me(-t),e}function be(t,e){var n=I(t),i=z(t),r=I(e),o=z(e);function a(t,e){var a=I(e),u=I(t)*a,s=z(t)*a,c=z(e),l=c*n+u*i;return[O(s*r-l*o,u*n-c*i),k(l*r+s*o)]}return a.invert=function(t,e){var a=I(e),u=I(t)*a,s=z(t)*a,c=z(e),l=c*r-s*o;return[O(s*r+c*o,u*n+l*i),k(l*n-u*i)]},a}ge.invert=ge;var Pe=function(t){function e(e){return(e=t(e[0]*L,e[1]*L))[0]*=j,e[1]*=j,e}return t=ve(t[0]*L,t[1]*L,t.length>2?t[2]*L:0),e.invert=function(e){return(e=t.invert(e[0]*L,e[1]*L))[0]*=j,e[1]*=j,e},e};function Se(t,e,n,i,r,o){if(n){var a=I(e),u=z(e),s=i*n;null==r?(r=e+i*w,o=e-s/2):(r=_e(a,r),o=_e(a,o),(i>0?r<o:r>o)&&(r+=i*w));for(var c,l=r;i>0?l>o:l<o;l-=s)c=ct([a,-u*I(l),-u*z(l)]),t.point(c[0],c[1])}}function _e(t,e){(e=lt(e))[0]-=t,gt(e);var n=R(-e[1]);return((-e[2]<0?-n:n)+w-S)%w}var Me=function(){var t,e,n=fe([0,0]),i=fe(90),r=fe(6),o={point:function(n,i){t.push(n=e(n,i)),n[0]*=j,n[1]*=j}};function a(){var a=n.apply(this,arguments),u=i.apply(this,arguments)*L,s=r.apply(this,arguments)*L;return t=[],e=ve(-a[0]*L,-a[1]*L,0).invert,Se(o,u,s,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(n="function"==typeof t?t:fe([+t[0],+t[1]]),a):n},a.radius=function(t){return arguments.length?(i="function"==typeof t?t:fe(+t),a):i},a.precision=function(t){return arguments.length?(r="function"==typeof t?t:fe(+t),a):r},a},xe=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:W,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},we=function(t,e){return C(t[0]-e[0])<S&&C(t[1]-e[1])<S};function je(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}var Le=function(t,e,n,i,r){var o,a,u=[],s=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],a=t[e];if(we(i,a)){for(r.lineStart(),o=0;o<e;++o)r.point((i=t[o])[0],i[1]);r.lineEnd()}else u.push(n=new je(i,t,null,!0)),s.push(n.o=new je(i,null,n,!1)),u.push(n=new je(a,t,null,!1)),s.push(n.o=new je(a,null,n,!0))}}),u.length){for(s.sort(e),Ce(u),Ce(s),o=0,a=s.length;o<a;++o)s[o].e=n=!n;for(var c,l,h=u[0];;){for(var p=h,f=!0;p.v;)if((p=p.n)===h)return;c=p.z,r.lineStart();do{if(p.v=p.o.v=!0,p.e){if(f)for(o=0,a=c.length;o<a;++o)r.point((l=c[o])[0],l[1]);else i(p.x,p.n.x,1,r);p=p.n}else{if(f)for(c=p.p.z,o=c.length-1;o>=0;--o)r.point((l=c[o])[0],l[1]);else i(p.x,p.p.x,-1,r);p=p.p}c=(p=p.o).z,f=!f}while(!p.v);r.lineEnd()}}};function Ce(t){if(e=t.length){for(var e,n,i=0,r=t[0];++i<e;)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}var Ee=m(),Oe=function(t,e){var n=e[0],i=e[1],r=z(i),o=[z(n),-I(n),0],a=0,u=0;Ee.reset(),1===r?i=M+S:-1===r&&(i=-M-S);for(var s=0,c=t.length;s<c;++s)if(h=(l=t[s]).length)for(var l,h,p=l[h-1],f=p[0],d=p[1]/2+x,g=z(d),v=I(d),m=0;m<h;++m,f=b,g=j,v=L,p=y){var y=l[m],b=y[0],P=y[1]/2+x,j=z(P),L=I(P),C=b-f,E=C>=0?1:-1,T=E*C,G=T>_,D=g*j;if(Ee.add(O(D*E*z(T),v*L+D*I(T))),a+=G?C+E*w:C,G^f>=n^b>=n){var N=pt(lt(p),lt(y));gt(N);var A=pt(o,N);gt(A);var F=(G^C>=0?-1:1)*k(A[2]);(i>F||i===F&&(N[0]||N[1]))&&(u+=G^C>=0?1:-1)}}return(a<-S||a<S&&Ee<-S)^1&u},Ie=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN};var Te=function(t){return 1===t.length&&(t=function(t){return function(e,n){return Ie(t(e),n)}}(t)),{left:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var o=i+r>>>1;t(e[o],n)<0?i=o+1:r=o}return i},right:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i<r;){var o=i+r>>>1;t(e[o],n)>0?r=o:i=o+1}return i}}}(Ie);Te.right,Te.left;var Ge=Array.prototype,De=(Ge.slice,Ge.map,function(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(r);++i<r;)o[i]=t+i*n;return o});Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Ne=function(t){for(var e,n,i,r=t.length,o=-1,a=0;++o<r;)a+=t[o].length;for(n=new Array(a);--r>=0;)for(e=(i=t[r]).length;--e>=0;)n[--a]=i[e];return n};var ze=function(t,e,n,i){return function(r){var o,a,u,s=e(r),c=xe(),l=e(c),h=!1,p={point:f,lineStart:g,lineEnd:v,polygonStart:function(){p.point=m,p.lineStart=y,p.lineEnd=b,a=[],o=[]},polygonEnd:function(){p.point=f,p.lineStart=g,p.lineEnd=v,a=Ne(a);var t=Oe(o,i);a.length?(h||(r.polygonStart(),h=!0),Le(a,Fe,t,n,r)):t&&(h||(r.polygonStart(),h=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),h&&(r.polygonEnd(),h=!1),a=o=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function f(e,n){t(e,n)&&r.point(e,n)}function d(t,e){s.point(t,e)}function g(){p.point=d,s.lineStart()}function v(){p.point=f,s.lineEnd()}function m(t,e){u.push([t,e]),l.point(t,e)}function y(){l.lineStart(),u=[]}function b(){m(u[0][0],u[0][1]),l.lineEnd();var t,e,n,i,s=l.clean(),p=c.result(),f=p.length;if(u.pop(),o.push(u),u=null,f)if(1&s){if((e=(n=p[0]).length-1)>0){for(h||(r.polygonStart(),h=!0),r.lineStart(),t=0;t<e;++t)r.point((i=n[t])[0],i[1]);r.lineEnd()}}else f>1&&2&s&&p.push(p.pop().concat(p.shift())),a.push(p.filter(Ae))}return p}};function Ae(t){return t.length>1}function Fe(t,e){return((t=t.x)[0]<0?t[1]-M-S:M-t[1])-((e=e.x)[0]<0?e[1]-M-S:M-e[1])}var Ve=ze(function(){return!0},function(t){var e,n=NaN,i=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?_:-_,s=C(o-n);C(s-_)<S?(t.point(n,i=(i+a)/2>0?M:-M),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(u,i),t.point(o,i),e=0):r!==u&&s>=_&&(C(n-r)<S&&(n-=r*S),C(o-u)<S&&(o-=u*S),i=function(t,e,n,i){var r,o,a=z(t-n);return C(a)>S?E((z(e)*(o=I(i))*z(n)-z(i)*(r=I(e))*z(t))/(r*o*a)):(e+i)/2}(n,i,o,a),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(u,i),e=0),t.point(n=o,i=a),r=u},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}},function(t,e,n,i){var r;if(null==t)r=n*M,i.point(-_,r),i.point(0,r),i.point(_,r),i.point(_,0),i.point(_,-r),i.point(0,-r),i.point(-_,-r),i.point(-_,0),i.point(-_,r);else if(C(t[0]-e[0])>S){var o=t[0]<e[0]?_:-_;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(e[0],e[1])},[-_,-M]);var Re=function(t){var e=I(t),n=6*L,i=e>0,r=C(e)>S;function o(t,n){return I(t)*I(n)>e}function a(t,n,i){var r=[1,0,0],o=pt(lt(t),lt(n)),a=ht(o,o),u=o[0],s=a-u*u;if(!s)return!i&&t;var c=e*a/s,l=-e*u/s,h=pt(r,o),p=dt(r,c);ft(p,dt(o,l));var f=h,d=ht(p,f),g=ht(f,f),v=d*d-g*(ht(p,p)-1);if(!(v<0)){var m=F(v),y=dt(f,(-d-m)/g);if(ft(y,p),y=ct(y),!i)return y;var b,P=t[0],M=n[0],x=t[1],w=n[1];M<P&&(b=P,P=M,M=b);var j=M-P,L=C(j-_)<S;if(!L&&w<x&&(b=x,x=w,w=b),L||j<S?L?x+w>0^y[1]<(C(y[0]-P)<S?x:w):x<=y[1]&&y[1]<=w:j>_^(P<=y[0]&&y[0]<=M)){var E=dt(f,(-d+m)/g);return ft(E,p),[y,ct(E)]}}}function u(e,n){var r=i?t:_-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return ze(o,function(t){var e,n,s,c,l;return{lineStart:function(){c=s=!1,l=1},point:function(h,p){var f,d=[h,p],g=o(h,p),v=i?g?0:u(h,p):g?u(h+(h<0?_:-_),p):0;if(!e&&(c=s=g)&&t.lineStart(),g!==s&&(!(f=a(e,d))||we(e,f)||we(d,f))&&(d[0]+=S,d[1]+=S,g=o(d[0],d[1])),g!==s)l=0,g?(t.lineStart(),f=a(d,e),t.point(f[0],f[1])):(f=a(e,d),t.point(f[0],f[1]),t.lineEnd()),e=f;else if(r&&e&&i^g){var m;v&n||!(m=a(d,e,!0))||(l=0,i?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&we(e,d)||t.point(d[0],d[1]),e=d,s=g,n=v},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return l|(c&&s)<<1}}},function(e,i,r,o){Se(o,t,n,r,e,i)},i?[0,-t]:[-_,t-_])},ke=function(t,e,n,i,r,o){var a,u=t[0],s=t[1],c=0,l=1,h=e[0]-u,p=e[1]-s;if(a=n-u,h||!(a>0)){if(a/=h,h<0){if(a<c)return;a<l&&(l=a)}else if(h>0){if(a>l)return;a>c&&(c=a)}if(a=r-u,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>c&&(c=a)}else if(h>0){if(a<c)return;a<l&&(l=a)}if(a=i-s,p||!(a>0)){if(a/=p,p<0){if(a<c)return;a<l&&(l=a)}else if(p>0){if(a>l)return;a>c&&(c=a)}if(a=o-s,p||!(a<0)){if(a/=p,p<0){if(a>l)return;a>c&&(c=a)}else if(p>0){if(a<c)return;a<l&&(l=a)}return c>0&&(t[0]=u+c*h,t[1]=s+c*p),l<1&&(e[0]=u+l*h,e[1]=s+l*p),!0}}}}},Be=1e9,We=-Be;function He(t,e,n,i){function r(r,o){return t<=r&&r<=n&&e<=o&&o<=i}function o(r,o,u,c){var l=0,h=0;if(null==r||(l=a(r,u))!==(h=a(o,u))||s(r,o)<0^u>0)do{c.point(0===l||3===l?t:n,l>1?i:e)}while((l=(l+u+4)%4)!==h);else c.point(o[0],o[1])}function a(i,r){return C(i[0]-t)<S?r>0?0:3:C(i[0]-n)<S?r>0?2:1:C(i[1]-e)<S?r>0?1:0:r>0?3:2}function u(t,e){return s(t.x,e.x)}function s(t,e){var n=a(t,1),i=a(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var s,c,l,h,p,f,d,g,v,m,y,b=a,P=xe(),S={point:_,lineStart:function(){S.point=M,c&&c.push(l=[]);m=!0,v=!1,d=g=NaN},lineEnd:function(){s&&(M(h,p),f&&v&&P.rejoin(),s.push(P.result()));S.point=_,v&&b.lineEnd()},polygonStart:function(){b=P,s=[],c=[],y=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,r=c.length;n<r;++n)for(var o,a,u=c[n],s=1,l=u.length,h=u[0],p=h[0],f=h[1];s<l;++s)o=p,a=f,h=u[s],p=h[0],f=h[1],a<=i?f>i&&(p-o)*(i-a)>(f-a)*(t-o)&&++e:f<=i&&(p-o)*(i-a)<(f-a)*(t-o)&&--e;return e}(),n=y&&e,r=(s=Ne(s)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),r&&Le(s,u,e,o,a),a.polygonEnd());b=a,s=c=l=null}};function _(t,e){r(t,e)&&b.point(t,e)}function M(o,a){var u=r(o,a);if(c&&l.push([o,a]),m)h=o,p=a,f=u,m=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&v)b.point(o,a);else{var s=[d=Math.max(We,Math.min(Be,d)),g=Math.max(We,Math.min(Be,g))],P=[o=Math.max(We,Math.min(Be,o)),a=Math.max(We,Math.min(Be,a))];ke(s,P,t,e,n,i)?(v||(b.lineStart(),b.point(s[0],s[1])),b.point(P[0],P[1]),u||b.lineEnd(),y=!1):u&&(b.lineStart(),b.point(o,a),y=!1)}d=o,g=a,v=u}return S}}var Ze,qe,Xe,Ye=function(){var t,e,n,i=0,r=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=He(i,r,o,a)(e=n)},extent:function(u){return arguments.length?(i=+u[0][0],r=+u[0][1],o=+u[1][0],a=+u[1][1],t=e=null,n):[[i,r],[o,a]]}}},Ue=m(),Je={sphere:W,point:W,lineStart:function(){Je.point=Qe,Je.lineEnd=Ke},lineEnd:W,polygonStart:W,polygonEnd:W};function Ke(){Je.point=Je.lineEnd=W}function Qe(t,e){Ze=t*=L,qe=z(e*=L),Xe=I(e),Je.point=$e}function $e(t,e){t*=L;var n=z(e*=L),i=I(e),r=C(t-Ze),o=I(r),a=i*z(r),u=Xe*n-qe*i*o,s=qe*n+Xe*i*o;Ue.add(O(F(a*a+u*u),s)),Ze=t,qe=n,Xe=i}var tn=function(t){return Ue.reset(),tt(t,Je),+Ue},en=[null,null],nn={type:"LineString",coordinates:en},rn=function(t,e){return en[0]=t,en[1]=e,tn(nn)},on={Feature:function(t,e){return un(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)if(un(n[i].geometry,e))return!0;return!1}},an={Sphere:function(){return!0},Point:function(t,e){return sn(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(sn(n[i],e))return!0;return!1},LineString:function(t,e){return cn(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(cn(n[i],e))return!0;return!1},Polygon:function(t,e){return ln(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(ln(n[i],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)if(un(n[i],e))return!0;return!1}};function un(t,e){return!(!t||!an.hasOwnProperty(t.type))&&an[t.type](t,e)}function sn(t,e){return 0===rn(t,e)}function cn(t,e){var n=rn(t[0],t[1]);return rn(t[0],e)+rn(e,t[1])<=n+S}function ln(t,e){return!!Oe(t.map(hn),pn(e))}function hn(t){return(t=t.map(pn)).pop(),t}function pn(t){return[t[0]*L,t[1]*L]}var fn=function(t,e){return(t&&on.hasOwnProperty(t.type)?on[t.type]:un)(t,e)};function dn(t,e,n){var i=De(t,e-S,n).concat(e);return function(t){return i.map(function(e){return[t,e]})}}function gn(t,e,n){var i=De(t,e-S,n).concat(e);return function(t){return i.map(function(e){return[e,t]})}}function vn(){var t,e,n,i,r,o,a,u,s,c,l,h,p=10,f=p,d=90,g=360,v=2.5;function m(){return{type:"MultiLineString",coordinates:y()}}function y(){return De(T(i/d)*d,n,d).map(l).concat(De(T(u/g)*g,a,g).map(h)).concat(De(T(e/p)*p,t,p).filter(function(t){return C(t%d)>S}).map(s)).concat(De(T(o/f)*f,r,f).filter(function(t){return C(t%g)>S}).map(c))}return m.lines=function(){return y().map(function(t){return{type:"LineString",coordinates:t}})},m.outline=function(){return{type:"Polygon",coordinates:[l(i).concat(h(a).slice(1),l(n).reverse().slice(1),h(u).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],u=+t[0][1],a=+t[1][1],i>n&&(t=i,i=n,n=t),u>a&&(t=u,u=a,a=t),m.precision(v)):[[i,u],[n,a]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],r=+n[1][1],e>t&&(n=e,e=t,t=n),o>r&&(n=o,o=r,r=n),m.precision(v)):[[e,o],[t,r]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(d=+t[0],g=+t[1],m):[d,g]},m.stepMinor=function(t){return arguments.length?(p=+t[0],f=+t[1],m):[p,f]},m.precision=function(p){return arguments.length?(v=+p,s=dn(o,r,90),c=gn(e,t,v),l=dn(u,a,90),h=gn(i,n,v),m):v},m.extentMajor([[-180,-90+S],[180,90-S]]).extentMinor([[-180,-80-S],[180,80+S]])}function mn(){return vn()()}var yn,bn,Pn,Sn,_n=function(t,e){var n=t[0]*L,i=t[1]*L,r=e[0]*L,o=e[1]*L,a=I(i),u=z(i),s=I(o),c=z(o),l=a*I(n),h=a*z(n),p=s*I(r),f=s*z(r),d=2*k(F(B(o-i)+a*s*B(r-n))),g=z(d),v=d?function(t){var e=z(t*=d)/g,n=z(d-t)/g,i=n*l+e*p,r=n*h+e*f,o=n*u+e*c;return[O(r,i)*j,O(o,F(i*i+r*r))*j]}:function(){return[n*j,i*j]};return v.distance=d,v},Mn=function(t){return t},xn=m(),wn=m(),jn={point:W,lineStart:W,lineEnd:W,polygonStart:function(){jn.lineStart=Ln,jn.lineEnd=On},polygonEnd:function(){jn.lineStart=jn.lineEnd=jn.point=W,xn.add(C(wn)),wn.reset()},result:function(){var t=xn/2;return xn.reset(),t}};function Ln(){jn.point=Cn}function Cn(t,e){jn.point=En,yn=Pn=t,bn=Sn=e}function En(t,e){wn.add(Sn*t-Pn*e),Pn=t,Sn=e}function On(){En(yn,bn)}var In=jn,Tn=1/0,Gn=Tn,Dn=-Tn,Nn=Dn;var zn,An,Fn,Vn,Rn={point:function(t,e){t<Tn&&(Tn=t);t>Dn&&(Dn=t);e<Gn&&(Gn=e);e>Nn&&(Nn=e)},lineStart:W,lineEnd:W,polygonStart:W,polygonEnd:W,result:function(){var t=[[Tn,Gn],[Dn,Nn]];return Dn=Nn=-(Gn=Tn=1/0),t}},kn=0,Bn=0,Wn=0,Hn=0,Zn=0,qn=0,Xn=0,Yn=0,Un=0,Jn={point:Kn,lineStart:Qn,lineEnd:ei,polygonStart:function(){Jn.lineStart=ni,Jn.lineEnd=ii},polygonEnd:function(){Jn.point=Kn,Jn.lineStart=Qn,Jn.lineEnd=ei},result:function(){var t=Un?[Xn/Un,Yn/Un]:qn?[Hn/qn,Zn/qn]:Wn?[kn/Wn,Bn/Wn]:[NaN,NaN];return kn=Bn=Wn=Hn=Zn=qn=Xn=Yn=Un=0,t}};function Kn(t,e){kn+=t,Bn+=e,++Wn}function Qn(){Jn.point=$n}function $n(t,e){Jn.point=ti,Kn(Fn=t,Vn=e)}function ti(t,e){var n=t-Fn,i=e-Vn,r=F(n*n+i*i);Hn+=r*(Fn+t)/2,Zn+=r*(Vn+e)/2,qn+=r,Kn(Fn=t,Vn=e)}function ei(){Jn.point=Kn}function ni(){Jn.point=ri}function ii(){oi(zn,An)}function ri(t,e){Jn.point=oi,Kn(zn=Fn=t,An=Vn=e)}function oi(t,e){var n=t-Fn,i=e-Vn,r=F(n*n+i*i);Hn+=r*(Fn+t)/2,Zn+=r*(Vn+e)/2,qn+=r,Xn+=(r=Vn*t-Fn*e)*(Fn+t),Yn+=r*(Vn+e),Un+=3*r,Kn(Fn=t,Vn=e)}var ai=Jn;function ui(t){this._context=t}ui.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,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(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,w)}},result:W};var si,ci,li,hi,pi,fi=m(),di={point:W,lineStart:function(){di.point=gi},lineEnd:function(){si&&vi(ci,li),di.point=W},polygonStart:function(){si=!0},polygonEnd:function(){si=null},result:function(){var t=+fi;return fi.reset(),t}};function gi(t,e){di.point=vi,ci=hi=t,li=pi=e}function vi(t,e){hi-=t,pi-=e,fi.add(F(hi*hi+pi*pi)),hi=t,pi=e}var mi=di;function yi(){this._string=[]}function bi(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}yi.prototype={_radius:4.5,_circle:bi(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,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(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=bi(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Pi=function(t,e){var n,i,r=4.5;function o(t){return t&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),tt(t,n(i))),i.result()}return o.area=function(t){return tt(t,n(In)),In.result()},o.measure=function(t){return tt(t,n(mi)),mi.result()},o.bounds=function(t){return tt(t,n(Rn)),Rn.result()},o.centroid=function(t){return tt(t,n(ai)),ai.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,Mn):(t=e).stream,o):t},o.context=function(t){return arguments.length?(i=null==t?(e=null,new yi):new ui(e=t),"function"!=typeof r&&i.pointRadius(r),o):e},o.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(i.pointRadius(+t),+t),o):r},o.projection(t).context(e)},Si=function(t){return{stream:_i(t)}};function _i(t){return function(e){var n=new Mi;for(var i in t)n[i]=t[i];return n.stream=e,n}}function Mi(){}function xi(t,e,n){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),tt(n,t.stream(Rn)),e(Rn.result()),null!=i&&t.clipExtent(i),t}function wi(t,e,n){return xi(t,function(n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+e[0][0]+(i-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(r-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])},n)}function ji(t,e,n){return wi(t,[[0,0],e],n)}function Li(t,e,n){return xi(t,function(n){var i=+e,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];t.scale(150*r).translate([o,a])},n)}function Ci(t,e,n){return xi(t,function(n){var i=+e,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;t.scale(150*r).translate([o,a])},n)}Mi.prototype={constructor:Mi,point:function(t,e){this.stream.point(t,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 Ei=16,Oi=I(30*L),Ii=function(t,e){return+e?function(t,e){function n(i,r,o,a,u,s,c,l,h,p,f,d,g,v){var m=c-i,y=l-r,b=m*m+y*y;if(b>4*e&&g--){var P=a+p,_=u+f,M=s+d,x=F(P*P+_*_+M*M),w=k(M/=x),j=C(C(M)-1)<S||C(o-h)<S?(o+h)/2:O(_,P),L=t(j,w),E=L[0],I=L[1],T=E-i,G=I-r,D=y*T-m*G;(D*D/b>e||C((m*T+y*G)/b-.5)>.3||a*p+u*f+s*d<Oi)&&(n(i,r,o,a,u,s,E,I,j,P/=x,_/=x,M,g,v),v.point(E,I),n(E,I,j,P,_,M,c,l,h,p,f,d,g,v))}}return function(e){var i,r,o,a,u,s,c,l,h,p,f,d,g={point:v,lineStart:m,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=P},polygonEnd:function(){e.polygonEnd(),g.lineStart=m}};function v(n,i){n=t(n,i),e.point(n[0],n[1])}function m(){l=NaN,g.point=y,e.lineStart()}function y(i,r){var o=lt([i,r]),a=t(i,r);n(l,h,c,p,f,d,l=a[0],h=a[1],c=i,p=o[0],f=o[1],d=o[2],Ei,e),e.point(l,h)}function b(){g.point=v,e.lineEnd()}function P(){m(),g.point=S,g.lineEnd=_}function S(t,e){y(i=t,e),r=l,o=h,a=p,u=f,s=d,g.point=y}function _(){n(l,h,c,p,f,d,r,o,i,a,u,s,Ei,e),g.lineEnd=b,b()}return g}}(t,e):function(t){return _i({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)};var Ti=_i({point:function(t,e){this.stream.point(t*L,e*L)}});function Gi(t,e,n,i){var r=I(i),o=z(i),a=r*t,u=o*t,s=r/t,c=o/t,l=(o*n-r*e)/t,h=(o*e+r*n)/t;function p(t,i){return[a*t-u*i+e,n-u*t-a*i]}return p.invert=function(t,e){return[s*t-c*e+l,h-c*t-s*e]},p}function Di(t){return Ni(function(){return t})()}function Ni(t){var e,n,i,r,o,a,u,s,c,l,h=150,p=480,f=250,d=0,g=0,v=0,m=0,y=0,b=0,P=null,S=Ve,_=null,M=Mn,x=.5;function w(t){return s(t[0]*L,t[1]*L)}function C(t){return(t=s.invert(t[0],t[1]))&&[t[0]*j,t[1]*j]}function E(){var t=Gi(h,0,0,b).apply(null,e(d,g)),i=(b?Gi:function(t,e,n){function i(i,r){return[e+t*i,n-t*r]}return i.invert=function(i,r){return[(i-e)/t,(n-r)/t]},i})(h,p-t[0],f-t[1],b);return n=ve(v,m,y),u=de(e,i),s=de(n,u),a=Ii(u,x),O()}function O(){return c=l=null,w}return w.stream=function(t){return c&&l===t?c:c=Ti(function(t){return _i({point:function(e,n){var i=t(e,n);return this.stream.point(i[0],i[1])}})}(n)(S(a(M(l=t)))))},w.preclip=function(t){return arguments.length?(S=t,P=void 0,O()):S},w.postclip=function(t){return arguments.length?(M=t,_=i=r=o=null,O()):M},w.clipAngle=function(t){return arguments.length?(S=+t?Re(P=t*L):(P=null,Ve),O()):P*j},w.clipExtent=function(t){return arguments.length?(M=null==t?(_=i=r=o=null,Mn):He(_=+t[0][0],i=+t[0][1],r=+t[1][0],o=+t[1][1]),O()):null==_?null:[[_,i],[r,o]]},w.scale=function(t){return arguments.length?(h=+t,E()):h},w.translate=function(t){return arguments.length?(p=+t[0],f=+t[1],E()):[p,f]},w.center=function(t){return arguments.length?(d=t[0]%360*L,g=t[1]%360*L,E()):[d*j,g*j]},w.rotate=function(t){return arguments.length?(v=t[0]%360*L,m=t[1]%360*L,y=t.length>2?t[2]%360*L:0,E()):[v*j,m*j,y*j]},w.angle=function(t){return arguments.length?(b=t%360*L,E()):b*j},w.precision=function(t){return arguments.length?(a=Ii(u,x=t*t),O()):F(x)},w.fitExtent=function(t,e){return wi(w,t,e)},w.fitSize=function(t,e){return ji(w,t,e)},w.fitWidth=function(t,e){return Li(w,t,e)},w.fitHeight=function(t,e){return Ci(w,t,e)},function(){return e=t.apply(this,arguments),w.invert=e.invert&&C,E()}}function zi(t){var e=0,n=_/3,i=Ni(t),r=i(e,n);return r.parallels=function(t){return arguments.length?i(e=t[0]*L,n=t[1]*L):[e*j,n*j]},r}function Ai(t,e){var n=z(t),i=(n+z(e))/2;if(C(i)<S)return function(t){var e=I(t);function n(t,n){return[t*e,z(n)/e]}return n.invert=function(t,n){return[t/e,k(n*e)]},n}(t);var r=1+n*(2*i-n),o=F(r)/i;function a(t,e){var n=F(r-2*i*z(e))/i;return[n*z(t*=i),o-n*I(t)]}return a.invert=function(t,e){var n=o-e;return[O(t,C(n))/i*A(n),k((r-(t*t+n*n)*i*i)/(2*i))]},a}var Fi=function(){return zi(Ai).scale(155.424).center([0,33.6442])},Vi=function(){return Fi().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var Ri=function(){var t,e,n,i,r,o,a=Vi(),u=Fi().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=Fi().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){o=[t,e]}};function l(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function h(){return t=e=null,l}return l.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?u:r>=.166&&r<.234&&i>=-.214&&i<-.115?s:a).invert(t)},l.stream=function(n){return t&&e===n?t:t=function(t){var e=t.length;return{point:function(n,i){for(var r=-1;++r<e;)t[r].point(n,i)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([a.stream(e=n),u.stream(n),s.stream(n)])},l.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),s.precision(t),h()):a.precision()},l.scale=function(t){return arguments.length?(a.scale(t),u.scale(.35*t),s.scale(t),l.translate(a.translate())):a.scale()},l.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],l=+t[1];return n=a.translate(t).clipExtent([[o-.455*e,l-.238*e],[o+.455*e,l+.238*e]]).stream(c),i=u.translate([o-.307*e,l+.201*e]).clipExtent([[o-.425*e+S,l+.12*e+S],[o-.214*e-S,l+.234*e-S]]).stream(c),r=s.translate([o-.205*e,l+.212*e]).clipExtent([[o-.214*e+S,l+.166*e+S],[o-.115*e-S,l+.234*e-S]]).stream(c),h()},l.fitExtent=function(t,e){return wi(l,t,e)},l.fitSize=function(t,e){return ji(l,t,e)},l.fitWidth=function(t,e){return Li(l,t,e)},l.fitHeight=function(t,e){return Ci(l,t,e)},l.scale(1070)};function ki(t){return function(e,n){var i=I(e),r=I(n),o=t(i*r);return[o*r*z(e),o*z(n)]}}function Bi(t){return function(e,n){var i=F(e*e+n*n),r=t(i),o=z(r),a=I(r);return[O(e*o,i*a),k(i&&n*o/i)]}}var Wi=ki(function(t){return F(2/(1+t))});Wi.invert=Bi(function(t){return 2*k(t/2)});var Hi=function(){return Di(Wi).scale(124.75).clipAngle(179.999)},Zi=ki(function(t){return(t=R(t))&&t/z(t)});Zi.invert=Bi(function(t){return t});var qi=function(){return Di(Zi).scale(79.4188).clipAngle(179.999)};function Xi(t,e){return[t,D(V((M+e)/2))]}Xi.invert=function(t,e){return[t,2*E(G(e))-M]};var Yi=function(){return Ui(Xi).scale(961/w)};function Ui(t){var e,n,i,r=Di(t),o=r.center,a=r.scale,u=r.translate,s=r.clipExtent,c=null;function l(){var o=_*a(),u=r(Pe(r.rotate()).invert([0,0]));return s(null==c?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===Xi?[[Math.max(u[0]-o,c),e],[Math.min(u[0]+o,n),i]]:[[c,Math.max(u[1]-o,e)],[n,Math.min(u[1]+o,i)]])}return r.scale=function(t){return arguments.length?(a(t),l()):a()},r.translate=function(t){return arguments.length?(u(t),l()):u()},r.center=function(t){return arguments.length?(o(t),l()):o()},r.clipExtent=function(t){return arguments.length?(null==t?c=e=n=i=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],i=+t[1][1]),l()):null==c?null:[[c,e],[n,i]]},l()}function Ji(t){return V((M+t)/2)}function Ki(t,e){var n=I(t),i=t===e?z(t):D(n/I(e))/D(Ji(e)/Ji(t)),r=n*N(Ji(t),i)/i;if(!i)return Xi;function o(t,e){r>0?e<-M+S&&(e=-M+S):e>M-S&&(e=M-S);var n=r/N(Ji(e),i);return[n*z(i*t),r-n*I(i*t)]}return o.invert=function(t,e){var n=r-e,o=A(i)*F(t*t+n*n);return[O(t,C(n))/i*A(n),2*E(N(r/o,1/i))-M]},o}var Qi=function(){return zi(Ki).scale(109.5).parallels([30,30])};function $i(t,e){return[t,e]}$i.invert=$i;var tr=function(){return Di($i).scale(152.63)};function er(t,e){var n=I(t),i=t===e?z(t):(n-I(e))/(e-t),r=n/i+t;if(C(i)<S)return $i;function o(t,e){var n=r-e,o=i*t;return[n*z(o),r-n*I(o)]}return o.invert=function(t,e){var n=r-e;return[O(t,C(n))/i*A(n),r-A(i)*F(t*t+n*n)]},o}var nr=function(){return zi(er).scale(131.154).center([0,13.9389])},ir=1.340264,rr=-.081106,or=893e-6,ar=.003796,ur=F(3)/2;function sr(t,e){var n=k(ur*z(e)),i=n*n,r=i*i*i;return[t*I(n)/(ur*(ir+3*rr*i+r*(7*or+9*ar*i))),n*(ir+rr*i+r*(or+ar*i))]}sr.invert=function(t,e){for(var n,i=e,r=i*i,o=r*r*r,a=0;a<12&&(o=(r=(i-=n=(i*(ir+rr*r+o*(or+ar*r))-e)/(ir+3*rr*r+o*(7*or+9*ar*r)))*i)*r*r,!(C(n)<1e-12));++a);return[ur*t*(ir+3*rr*r+o*(7*or+9*ar*r))/I(i),k(z(i)/ur)]};var cr=function(){return Di(sr).scale(177.158)};function lr(t,e){var n=I(e),i=I(t)*n;return[n*z(t)/i,z(e)/i]}lr.invert=Bi(E);var hr=function(){return Di(lr).scale(144.049).clipAngle(60)};function pr(t,e,n,i){return 1===t&&1===e&&0===n&&0===i?Mn:_i({point:function(r,o){this.stream.point(r*t+n,o*e+i)}})}var fr=function(){var t,e,n,i,r,o,a=1,u=0,s=0,c=1,l=1,h=Mn,p=null,f=Mn;function d(){return i=r=null,o}return o={stream:function(t){return i&&r===t?i:i=h(f(r=t))},postclip:function(i){return arguments.length?(f=i,p=t=e=n=null,d()):f},clipExtent:function(i){return arguments.length?(f=null==i?(p=t=e=n=null,Mn):He(p=+i[0][0],t=+i[0][1],e=+i[1][0],n=+i[1][1]),d()):null==p?null:[[p,t],[e,n]]},scale:function(t){return arguments.length?(h=pr((a=+t)*c,a*l,u,s),d()):a},translate:function(t){return arguments.length?(h=pr(a*c,a*l,u=+t[0],s=+t[1]),d()):[u,s]},reflectX:function(t){return arguments.length?(h=pr(a*(c=t?-1:1),a*l,u,s),d()):c<0},reflectY:function(t){return arguments.length?(h=pr(a*c,a*(l=t?-1:1),u,s),d()):l<0},fitExtent:function(t,e){return wi(o,t,e)},fitSize:function(t,e){return ji(o,t,e)},fitWidth:function(t,e){return Li(o,t,e)},fitHeight:function(t,e){return Ci(o,t,e)}}};function dr(t,e){var n=e*e,i=n*n;return[t*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),e*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}dr.invert=function(t,e){var n,i=e,r=25;do{var o=i*i,a=o*o;i-=n=(i*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(C(n)>S&&--r>0);return[t/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]};var gr=function(){return Di(dr).scale(175.295)};function vr(t,e){return[I(e)*z(t),z(e)]}vr.invert=Bi(k);var mr=function(){return Di(vr).scale(249.5).clipAngle(90+S)};function yr(t,e){var n=I(e),i=1+I(t)*n;return[n*z(t)/i,z(e)/i]}yr.invert=Bi(function(t){return 2*E(t)});var br=function(){return Di(yr).scale(250).clipAngle(142)};function Pr(t,e){return[D(V((M+e)/2)),-t]}Pr.invert=function(t,e){return[-e,2*E(G(t))-M]};var Sr=function(){var t=Ui(Pr),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},_r=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeriesDataItem",e.values.value={},e.applyTheme(),e}return c.c(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.properties.zoomLevel},set:function(t){this.setProperty("zoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){return this.properties.zoomGeoPoint},set:function(t){this.setProperty("zoomGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return this._east},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return this._west},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return this._south},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return this._north},enumerable:!0,configurable:!0}),e.prototype.updateExtremes=function(){var t=this.getFeature().geometry;if(t){var e=te(t),n=e[0][0],i=e[0][1],r=e[1][1],o=e[1][0],a=!1;r!=this.north&&(this._north=v.round(r,6),a=!0),i!=this.south&&(this._south=v.round(i,6),a=!0),o!=this.east&&(this._east=v.round(o,6),a=!0),n!=this.west&&(this._west=v.round(n,6),a=!0),a&&this.component.invalidateDataItems()}},e.prototype.getFeature=function(){return{}},e}(f.b),Mr=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeries",e.isMeasured=!1,e.nonScalingStroke=!0,e.dataFields.value="value",e.ignoreBounds=!1,e.applyTheme(),e}return c.c(e,t),e.prototype.createDataItem=function(){return new _r},e.prototype.checkInclude=function(t,e,n){if(t){if(0==t.length)return!1;if(-1==t.indexOf(n))return!1}return!(e&&e.length>0&&-1!=e.indexOf(n))},Object.defineProperty(e.prototype,"useGeodata",{get:function(){return this.getPropertyValue("useGeodata")},set:function(t){this.setPropertyValue("useGeodata",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"include",{get:function(){return this.getPropertyValue("include")},set:function(t){this.setPropertyValue("include",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.processIncExc=function(){this.invalidateData()},Object.defineProperty(e.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(t){this.setPropertyValue("ignoreBounds",t)&&this.chart&&this.chart.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exclude",{get:function(){return this.getPropertyValue("exclude")},set:function(t){this.setPropertyValue("exclude",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.handleObjectAdded=function(t){var e=t.newValue;e.parent=this,e.series=this,e.strokeWidth=e.strokeWidth},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){if(t!=this._geodata){this._geodata=t;for(var e=this.data.length-1;e>=0;e--)1==this.data[e].madeFromGeoData&&this.data.splice(e,1);this.disposeData(),this.invalidateData()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",function(){e.loadData("geodata")},void 0,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.getFeatures=function(){},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,n,i;this.dataItems.each(function(r){(r.north>t||!g.isNumber(t))&&(t=r.north),(r.south<e||!g.isNumber(e))&&(e=r.south),(r.west<i||!g.isNumber(i))&&(i=r.west),(r.east>n||!g.isNumber(n))&&(n=r.east)}),this._mapObjects&&this._mapObjects.each(function(r){(r.north>t||!g.isNumber(t))&&(t=r.north),(r.south<e||!g.isNumber(e))&&(e=r.south),(r.west<i||!g.isNumber(i))&&(i=r.west),(r.east>n||!g.isNumber(n))&&(n=r.east)}),this.north==t&&this.east==n&&this.south==e&&this.west==i||(this._north=t,this._east=n,this._west=i,this._south=e,this.dispatch("geoBoundsChanged"),this.ignoreBounds||this.chart.updateExtremes())},Object.defineProperty(e.prototype,"north",{get:function(){return g.isNumber(this._northDefined)?this._northDefined:this._north},set:function(t){this._northDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return g.isNumber(this._southDefined)?this._southDefined:this._south},set:function(t){this._southDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return g.isNumber(this._westDefined)?this._westDefined:this._west},set:function(t){this._westDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return g.isNumber(this._eastDefined)?this._eastDefined:this._east},set:function(t){this._eastDefined=t},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(g.hasValue(e.geodata)&&g.isString(e.geodata)){var n=e.geodata;if(g.hasValue(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(t){throw Error("MapChart error: Geodata `"+n+"` is not loaded or is incorrect.")}}t.prototype.processConfig.call(this,e)},e.prototype.asIs=function(e){return"geodata"==e||t.prototype.asIs.call(this,e)},e}(f.a);d.b.registeredClasses.MapSeries=Mr,d.b.registeredClasses.MapSeriesDataItem=_r;var xr=n("C6dT"),wr=function(t){function e(){var e=t.call(this)||this;return e.className="MapObject",e.isMeasured=!1,e.layout="none",e.clickable=!0,e.applyTheme(),e}return c.c(e,t),e.prototype.validate=function(){this.series&&(this.readerTitle=this.series.itemReaderText),t.prototype.validate.call(this)},e.prototype.updateExtremes=function(){var t=this.getFeature();if(t){var e=t.geometry;if(e){var n=te(e),i=n[0][0],r=n[0][1],o=n[1][1],a=n[1][0],u=!1;o!=this.north&&(this._north=v.round(o,8),u=!0),r!=this.south&&(this._south=v.round(r),u=!0),a!=this.east&&(this._east=v.round(a),u=!0),i!=this.west&&(this._west=v.round(i),u=!0),u&&(this.dispatch("geoBoundsChanged"),this.series&&this.series.invalidateDataItems())}}},e.prototype.getFeature=function(){return{}},Object.defineProperty(e.prototype,"east",{get:function(){return g.isNumber(this._east)?this._east:this.dataItem?this.dataItem.east:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return g.isNumber(this._west)?this._west:this.dataItem?this.dataItem.west:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return g.isNumber(this._south)?this._south:this.dataItem?this.dataItem.south:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return g.isNumber(this._north)?this._north:this.dataItem?this.dataItem.north:void 0},enumerable:!0,configurable:!0}),e}(xr.a);d.b.registeredClasses.MapObject=wr;var jr=function(t){function e(){var e=t.call(this)||this;return e.className="MapImage",e.applyTheme(),e}return c.c(e,t),Object.defineProperty(e.prototype,"latitude",{get:function(){return this.getPropertyValue("latitude")},set:function(t){this.setPropertyValue("latitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.getPropertyValue("longitude")},set:function(t){this.setPropertyValue("longitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),e.prototype.validatePosition=function(){if(g.isNumber(this.latitude)&&g.isNumber(this.longitude)){var e=this.series.chart.projection.d3Projection([this.longitude,this.latitude]),n=this.series.chart.projection.d3Path({type:"Point",coordinates:[this.longitude,this.latitude]});this.__disabled=!n,this.moveTo({x:e[0],y:e[1]})}t.prototype.validatePosition.call(this)},e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:[this.longitude,this.latitude]}}},e}(wr);d.b.registeredClasses.MapImage=jr;var Lr=n("R6wv"),Cr=n("U8r1"),Er=n.n(Cr),Or=n("hJ5i");function Ir(t){return Or.map(t,function(t){var e=t[0],n=t[1],i=[];return e&&i.push(Gr(e)),n&&i.push(Gr(n)),i})}function Tr(t){return Or.map(t,function(t){return Gr(t)})}function Gr(t){return Or.map(t,function(t){return Nr(t)})}function Dr(t){return Or.map(t,function(t){return[t.longitude,t.latitude]})}function Nr(t){return{longitude:t[0],latitude:t[1]}}function zr(t){return Or.map(t,function(t){return Or.map(t,function(t){return[t.longitude,t.latitude]})})}function Ar(t){return Or.map(t,function(t){var e=t[0],n=t[1],i=[];return e&&i.push(Dr(e)),n&&i.push(Dr(n)),i})}function Fr(t,e,n){return[Me().center([t,e]).radius(n)().coordinates]}function Vr(t,e,n,i){var r=[];-180==i&&(i=-179.9999),-90==n&&(n=-89.9999),90==t&&(t=89.9999),180==e&&(e=179.9999);for(var o=Math.min(90,(e-i)/Math.ceil((e-i)/90)),a=(t-n)/Math.ceil((t-n)/90),u=i;u<e;u+=o){var s=[];r.push([s]),u+o>e&&(o=e-u);for(var c=u;c<=u+o;c+=5)s.push([c,t]);for(var l=t;l>=n;l-=a)s.push([u+o,l]);for(c=u+o;c>=u;c-=5)s.push([c,n]);for(l=n;l<=t;l+=a)s.push([u,l])}return r}var Rr=function(t){function e(){var e=t.call(this)||this;e.className="MapPolygon",e.polygon=e.createChild(Lr.a),e.polygon.shouldClone=!1,e.polygon.applyOnClones=!0;var n=new p.a;return e.fill=n.getFor("secondaryButton"),e.stroke=n.getFor("secondaryButtonStroke"),e.strokeOpacity=1,e.tooltipPosition="pointer",e.nonScalingStroke=!0,e.applyTheme(),e}return c.c(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){var t=this.getPropertyValue("multiGeoPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiPolygon),t},set:function(t){this.setPropertyValue("multiGeoPolygon",t,!0),this.multiPolygon=Ar(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){var t=this.getPropertyValue("multiPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiPolygon),t},set:function(t){this.setPropertyValue("multiPolygon",t)&&this.updateExtremes()},enumerable:!0,configurable:!0}),e.prototype.validate=function(){if(this.series){var e=this.series.chart.projection;e.d3Projection.precision(.5);var n=e.d3Path;if(this.multiPolygon){if(this.series){var i={type:"MultiPolygon",coordinates:this.multiPolygon};this.polygon.path=n(i)}if(this.series.calculateVisualCenter){var r=0,o=this.multiPolygon[0];if(this.multiPolygon.length>1)for(var a=0;a<this.multiPolygon.length;a++){var u=this.multiPolygon[a],s=st({type:"Polygon",coordinates:u});s>r&&(o=u,r=s)}var c=Er()(o);this._visualLongitude=c[0],this._visualLatitude=c[1]}else this._visualLongitude=this.longitude,this._visualLatitude=this.latitude}}t.prototype.validate.call(this)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLatitude",{get:function(){var t=this.getPropertyValue("visualLatitude");return g.isNumber(t)?t:this.adapter.apply("visualLatitude",this._visualLatitude)},set:function(t){this.setPropertyValue("visualLatitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLongitude",{get:function(){var t=this.getPropertyValue("visualLongitude");return g.isNumber(t)?t:this.adapter.apply("visualLongitude",this._visualLongitude)},set:function(t){this.setPropertyValue("visualLongitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelWidth",{get:function(){return this.polygon.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){return this.polygon.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.polygon.copyFrom(e.polygon)},e.prototype.updateExtremes=function(){t.prototype.updateExtremes.call(this)},Object.defineProperty(e.prototype,"boxArea",{get:function(){return(this.north-this.south)*(this.east-this.west)},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).x},e.prototype.getTooltipY=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).y},e}(wr);d.b.registeredClasses.MapPolygon=Rr;var kr=n("vMqJ"),Br=n("v9UT"),Wr=n("Wglt"),Hr=function(t){function e(){var e=t.call(this)||this;return e.className="MapPolygonSeriesDataItem",e.applyTheme(),e}return c.c(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"mapPolygon",{get:function(){var t=this;if(!this._mapPolygon){var e=this.component.mapPolygons.create();this._mapPolygon=e,this.addSprite(e),this._disposers.push(new h.b(function(){t.component&&t.component.mapPolygons.removeValue(e)})),this.mapObject=e}return this._mapPolygon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polygon",{get:function(){return this._polygon},set:function(t){this._polygon=t,this.multiPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){return this._multiPolygon},set:function(t){this._multiPolygon=t,this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPolygon",{get:function(){return this._geoPolygon},set:function(t){this._geoPolygon=t,this.multiGeoPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){return this._multiGeoPolygon},set:function(t){this._multiGeoPolygon=t,this.multiPolygon=Ar(t)},enumerable:!0,configurable:!0}),e}(_r),Zr=function(t){function e(){var e=t.call(this)||this;return e.calculateVisualCenter=!1,e.className="MapPolygonSeries",e.dataFields.multiPolygon="multiPolygon",e.dataFields.polygon="polygon",e.dataFields.geoPolygon="geoPolygon",e.dataFields.multiGeoPolygon="multiGeoPolygon",e.applyTheme(),e}return c.c(e,t),e.prototype.createDataItem=function(){return new Hr},e.prototype.processIncExc=function(){this.mapPolygons.clear(),t.prototype.processIncExc.call(this)},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this._dataSources.geodata?void 0:this.chart.geodata;if(this.geodata&&(e=this.geodata),e){var n=void 0;if("FeatureCollection"==e.type?n=e.features:"Feature"==e.type?n=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?n=[{geometry:e}]:console.log("nothing found in geoJSON"),n)for(var i=function(t,e){var i=n[t],o=i.geometry;if(o){var a=o.type,u=i.id;if("Polygon"==a||"MultiPolygon"==a){if(!r.checkInclude(r.include,r.exclude,u))return"continue";var s=o.coordinates;s&&"Polygon"==a&&(s=[s]);var c=Or.find(r.data,function(t,e){return t.id==u});c?c.multiPolygon||(c.multiPolygon=s):(c={multiPolygon:s,id:u,madeFromGeoData:!0},r.data.push(c)),Br.softCopyProperties(i.properties,c)}}},r=this,o=0,a=n.length;o<a;o++)i(o)}}t.prototype.validateData.call(this)},e.prototype.validate=function(){t.prototype.validate.call(this),this.dataItems.each(function(t){Br.used(t.mapPolygon)}),this.mapPolygons.each(function(t){t.validate(),t.zIndex||t.propertyFields.zIndex||(t.zIndex=1e6-t.boxArea)})},Object.defineProperty(e.prototype,"mapPolygons",{get:function(){if(!this._mapPolygons){var t=new Rr,e=new kr.e(t);this._disposers.push(new kr.c(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapPolygons=e,this._mapObjects=e}return this._mapPolygons},enumerable:!0,configurable:!0}),e.prototype.getPolygonById=function(t){return Wr.find(this.mapPolygons.iterator(),function(e){return e.dataItem.dataContext.id==t})},e.prototype.copyFrom=function(e){this.mapPolygons.template.copyFrom(e.mapPolygons.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each(function(t){var n=t.getFeature();n&&e.push(n)}),this.mapPolygons.each(function(n){if(-1==t.dataItems.indexOf(n._dataItem)){var i=n.getFeature();i&&e.push(i)}}),e},e}(Mr);d.b.registeredClasses.MapPolygonSeries=Zr,d.b.registeredClasses.MapPolygonSeriesDataItem=Hr;var qr=function(){function t(){this.d3Projection=tr()}return Object.defineProperty(t.prototype,"d3Projection",{get:function(){return this._d3Projection},set:function(t){this._d3Projection=t,t.precision(.1),this._d3Path=Pi().projection(t),this.chart&&this.chart.invalidateProjection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"d3Path",{get:function(){return this._d3Path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this.d3Projection.scale()/100},enumerable:!0,configurable:!0}),t.prototype.convert=function(t){var e=this.d3Projection([t.longitude,t.latitude]);if(e)return{x:e[0],y:e[1]}},t.prototype.invert=function(t){var e=this.d3Projection.invert([t.x,t.y]);if(e)return{longitude:e[0],latitude:e[1]}},t.prototype.project=function(t,e){return this.convert({longitude:t*v.DEGREES,latitude:e*v.DEGREES})},t.prototype.unproject=function(t,e){return this.invert({x:t,y:e})},t.prototype.rotate=function(t,e,n,i){var r=e*v.RADIANS,o=n*v.RADIANS;i*=v.RADIANS;var a=t.longitude*v.RADIANS+r,u=t.latitude*v.RADIANS,s=Math.cos(o),c=Math.sin(o),l=Math.cos(i),h=Math.sin(i),p=Math.cos(u),f=Math.cos(a)*p,d=Math.sin(a)*p,g=Math.sin(u),m=g*s+f*c;return{longitude:v.DEGREES*Math.atan2(d*l-m*h,f*s-g*c),latitude:v.DEGREES*Math.asin(m*l+d*h)}},t.prototype.unrotate=function(t,e,n,i){var r=e*v.RADIANS,o=n*v.RADIANS;i*=v.RADIANS;var a=t.longitude*v.RADIANS-r,u=t.latitude*v.RADIANS,s=Math.cos(o),c=Math.sin(o),l=Math.cos(i),h=Math.sin(i),p=Math.cos(u),f=Math.cos(a)*p,d=Math.sin(a)*p,g=Math.sin(u),m=g*l-d*h;return{longitude:v.DEGREES*Math.atan2(d*l+g*h,f*s+m*c),latitude:v.DEGREES*Math.asin(m*s-f*c)}},t.prototype.intermediatePoint=function(t,e,n){var i=_n([t.longitude,t.latitude],[e.longitude,e.latitude])(n);return{longitude:i[0],latitude:i[1]}},t.prototype.multiDistance=function(t){for(var e=0,n=0;n<t.length;n++){var i=t[n];if(i.length>1)for(var r=1;r<i.length;r++){var o=i[r-1],a=i[r];e+=this.distance(o,a)}}return e},t.prototype.distance=function(t,e){return rn([t.longitude,t.latitude],[e.longitude,e.latitude])},t.prototype.positionToPoint=function(t,e){if(t){var n=this.positionToGeoPoint(t,e),i=this.positionToGeoPoint(t,e-.01),r=this.positionToGeoPoint(t,e+.01);if(i&&r){var o=this.convert(n),a=this.convert(i),u=this.convert(r);return{x:o.x,y:o.y,angle:v.getAngle(a,u)}}}return{x:0,y:0,angle:0}},t.prototype.positionToGeoPoint=function(t,e){if(t){for(var n=this.multiDistance(t),i=0,r=0,o=0,a=void 0,u=void 0,s=0;s<t.length;s++){var c=t[s];if(c.length>1){for(var l=1;l<c.length;l++)if(a=c[l-1],u=c[l],r=i/n,o=(i+=this.distance(a,u))/n,r<=e&&o>e){s=t.length;break}}else 1==c.length&&(a=c[0],u=c[0],r=0,o=1)}if(a&&u){var h=(e-r)/(o-r);return this.intermediatePoint(a,u,h)}}return{longitude:0,latitude:0}},t}();d.b.registeredClasses.Projection=qr;var Xr=n("FzPm"),Yr=n("GtDR"),Ur=n("8ZqG"),Jr=function(t){function e(){var e=t.call(this)||this;e._chart=new h.d,e.className="SmallMap",e.align="left",e.valign="bottom",e.percentHeight=20,e.percentWidth=20,e.margin(5,5,5,5);var n=new p.a;e.background.fillOpacity=.9,e.background.fill=n.getFor("background"),e.events.on("hit",e.moveToPosition,e,!1),e.events.on("maxsizechanged",e.updateMapSize,e,!1),e.seriesContainer=e.createChild(xr.a),e.seriesContainer.shouldClone=!1;var i=e.createChild(Yr.a);return i.shouldClone=!1,i.stroke=n.getFor("alternativeBackground"),i.strokeWidth=1,i.strokeOpacity=.5,i.fill=Object(Ur.c)(),i.verticalCenter="middle",i.horizontalCenter="middle",i.isMeasured=!1,i.visible=!1,e.rectangle=i,e._disposers.push(e._chart),e.applyTheme(),e}return c.c(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new kr.b,this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=t.newValue;if(this.chart.series.contains(e)){var n=e.clone();this._series.removeValue(e),this._series.push(n),e=n,this.chart.dataUsers.push(n)}e.chart=this.chart,e.parent=this.seriesContainer,e.interactionsEnabled=!1,e.events.on("inited",this.updateMapSize,this,!1),e.hidden=!1},e.prototype.handleSeriesRemoved=function(t){this.invalidate()},e.prototype.moveToPosition=function(t){var e=Br.spritePointToSprite(t.spritePoint,this,this.seriesContainer),n=this.chart.seriesPointToGeo(e);this.chart.zoomToGeoPoint(n,this.chart.zoomLevel,!0)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this.chart!=t&&this._chart.set(t,new h.c([t.events.on("mappositionchanged",this.updateRectangle,this,!1),t.events.on("scaleratiochanged",this.updateMapSize,this,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateRectangle=function(){var t=this.chart,e=t.zoomLevel,n=this.rectangle;n.width=this.pixelWidth/e,n.height=this.pixelHeight/e;var i=Math.min(this.percentWidth,this.percentHeight)/100,r=t.seriesContainer;n.x=Math.ceil(-r.pixelX*i/e)+this.seriesContainer.pixelX,n.y=Math.ceil(-r.pixelY*i/e)+this.seriesContainer.pixelY,n.validate()},e.prototype.updateMapSize=function(){if(this.chart){var t=this.chart.scaleRatio*Math.min(this.percentWidth,this.percentHeight)/100;this.seriesContainer.scale=t;var e={width:0,height:0,x:0,y:0};try{e=this.seriesContainer.group.node.getBBox()}catch(t){}e.width>0&&(this.rectangle.visible=!0),this.seriesContainer.x=this.pixelWidth/2-e.x*t-e.width/2*t,this.seriesContainer.y=this.pixelHeight/2-e.y*t-e.height/2*t,this.updateRectangle(),this.afterDraw()}},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.rectangle.maskRectangle={x:-1,y:-1,width:Math.ceil(this.pixelWidth+2),height:Math.ceil(this.pixelHeight+2)}},e.prototype.processConfig=function(e){if(e&&g.hasValue(e.series)&&g.isArray(e.series))for(var n=0,i=e.series.length;n<i;n++){var r=e.series[n];g.hasValue(r)&&g.isString(r)&&this.map.hasKey(r)&&(e.series[n]=this.map.getKey(r))}t.prototype.processConfig.call(this,e)},e}(xr.a);d.b.registeredClasses.SmallMap=Jr;var Kr=n("WYhe"),Qr=n("0FpR");function $r(t){var e=eo(t.longitude),n=Math.asin(Math.sin(t.latitude*v.RADIANS))*v.DEGREES,i=eo(t.latitude);return Math.abs(i)>90&&(e=eo(e+180)),t.longitude=e,t.latitude=n,t}function to(t){try{for(var e=c.g(t),n=e.next();!n.done;n=e.next()){var i=n.value;try{for(var r=c.g(i),o=r.next();!o.done;o=r.next()){var a=o.value;a=$r(a)}}catch(t){l={error:t}}finally{try{o&&!o.done&&(h=r.return)&&h.call(r)}finally{if(l)throw l.error}}}}catch(t){u={error:t}}finally{try{n&&!n.done&&(s=e.return)&&s.call(e)}finally{if(u)throw u.error}}return t;var u,s,l,h}function eo(t){return(t%=360)>180&&(t-=360),t<-180&&(t+=360),t}function no(t){return{x:t.longitude,y:t.latitude}}var io=function(t){function e(){var e=t.call(this)||this;return e.adjustRotation=!0,e.className="MapLineObject",e.isMeasured=!1,e.layout="none",e.applyTheme(),e}return c.c(e,t),e.prototype.validatePosition=function(){var e=this.mapLine;if(e){var n=e.positionToPoint(this.position);if(this.x=n.x,this.y=n.y,this.adjustRotation&&(this.rotation=n.angle),this.mapLine.dataItem){var i=this.mapLine.dataItem.component;this.scale=1/i.scale}if(e.shortestDistance){var r=this.mapLine.series.chart.projection,o=r.positionToGeoPoint(e.multiGeoLine,this.position),a=r.d3Path({type:"Point",coordinates:[o.longitude,o.latitude]});this.__disabled=!a}}t.prototype.validatePosition.call(this)},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustRotation",{get:function(){return this.getPropertyValue("adjustRotation")},set:function(t){this.setPropertyValue("adjustRotation",t,!1,!0)},enumerable:!0,configurable:!0}),e}(xr.a);d.b.registeredClasses.MapLineObject=io;var ro=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeriesDataItem",e.applyTheme(),e}return c.c(e,t),e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:this.point}}},Object.defineProperty(e.prototype,"mapImage",{get:function(){var t=this;if(!this._mapImage){var e=this.component.mapImages.create();this.addSprite(e),this._mapImage=e,this._disposers.push(e),this._disposers.push(new h.b(function(){t.component&&t.component.mapImages.removeValue(e)})),this.mapObject=e}return this._mapImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"point",{get:function(){return this._point},set:function(t){this._point=t,this._geoPoint=Nr(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPoint",{get:function(){return this._geoPoint},set:function(t){this._geoPoint=t,this.point=[t.longitude,t.latitude]},enumerable:!0,configurable:!0}),e}(_r),oo=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeries",e.dataFields.multiPoint="multiPoint",e.dataFields.point="point",e.dataFields.geoPoint="geoPoint",e.dataFields.multiGeoPoint="multiGeoPoint",e.ignoreBounds=!0,e.applyTheme(),e}return c.c(e,t),e.prototype.createDataItem=function(){return new ro},e.prototype.validateData=function(){var e=this;if(this.data.length>0&&0==this._parseDataFrom&&this.mapImages.clear(),this.useGeodata&&(this.useGeodata||this.geodata)){var n=this.chart.geodata,i=void 0;if("FeatureCollection"==n.type?i=n.features:"Feature"==n.type?i=[n]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(n.type)?i=[{geometry:n}]:console.log("nothing found in geoJSON"),i)for(var r=function(t,e){var n=i[t],r=n.geometry;if(r){var a=r.type,u=n.id;if("Point"==a||"MultiPoint"==a){if(!o.checkInclude(o.include,o.exclude,u))return"continue";var s=r.coordinates;"Point"==a&&(s=[s]);var c=Or.find(o.data,function(t,e){return t.id==u});c?c.multiPoint||(c.multiPoint=s):(c={multiPoint:s,id:u,madeFromGeoData:!0},o.data.push(c)),Br.softCopyProperties(n.properties,c)}}},o=this,a=0,u=i.length;a<u;a++)r(a)}t.prototype.validateData.call(this),Wr.each(this.dataItems.iterator(),function(t){var n=t.mapImage;n.isDisposed()||(e.mapImages.moveValue(n),g.isNumber(n.latitude)&&g.isNumber(n.latitude)&&(t.geoPoint={latitude:n.latitude,longitude:n.longitude}))})},Object.defineProperty(e.prototype,"mapImages",{get:function(){if(!this._mapImages){var t=new jr,e=new kr.e(t);this._disposers.push(new kr.c(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapImages=e,this._mapObjects=e}return this._mapImages},enumerable:!0,configurable:!0}),e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.mapImage.invalidate()},e.prototype.validate=function(){t.prototype.validate.call(this),Wr.each(this.mapImages.iterator(),function(t){t.validatePosition()})},e.prototype.copyFrom=function(e){this.mapImages.template.copyFrom(e.mapImages.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each(function(t){var n=t.getFeature();n&&e.push(n)}),this.mapImages.each(function(n){if(-1==t.dataItems.indexOf(n._dataItem)){var i=n.getFeature();i&&e.push(i)}}),e},e.prototype.getImageById=function(t){return Wr.find(this.mapImages.iterator(),function(e){var n=e.dataItem.dataContext;if(e.id==t||n.id==t)return!0})},e}(Mr);d.b.registeredClasses.MapImageSeries=oo,d.b.registeredClasses.MapImageSeriesDataItem=ro;var ao=n("Rnbi"),uo=n("jfaP"),so=n("tjMS"),co=function(t){function e(){var e=t.call(this)||this;e._imageListeners={},e.className="MapLine",e.createLine(),e.line.stroke=Object(Ur.c)(),e.line.parent=e,e.strokeOpacity=1;var n=new p.a;return e.stroke=n.getFor("grid"),e.shortestDistance=!0,e.applyTheme(),e}return c.c(e,t),e.prototype.createLine=function(){this.line=new uo.a},e.prototype.positionToPoint=function(t){return this.shortestDistance?this.series.chart.projection.positionToPoint(this.multiGeoLine,t):this.line?this.line.positionToPoint(t):{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){var t=this.getPropertyValue("multiGeoLine");return!t&&this.dataItem&&this.dataItem.multiGeoLine&&(t=this.dataItem.multiGeoLine),t},set:function(t){if(t&&t.length>0){this.setPropertyValue("multiGeoLine",to(t),!0);var e=zr(t);this.setPropertyValue("multiLine",e),this.updateExtremes()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){var t=this.getPropertyValue("multiLine");return!t&&this.dataItem&&this.dataItem.multiLine&&(t=this.dataItem.multiLine),t},set:function(t){this.setPropertyValue("multiLine",t),this.multiGeoLine=Tr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imagesToConnect",{get:function(){return this.getPropertyValue("imagesToConnect")},set:function(t){this.setPropertyValue("imagesToConnect",t,!0),this.handleImagesToConnect()},enumerable:!0,configurable:!0}),e.prototype.handleImagesToConnect=function(){var t,e,n=this;if(this.imagesToConnect){var i=[],r=[i],o=function(t){if(g.isString(t)){var e=a.series.chart;e&&e.series.each(function(e){if(e instanceof oo){var n=e.getImageById(t);n&&(t=n)}})}if(t instanceof jr&&(i.push({longitude:t.longitude,latitude:t.latitude}),!a._imageListeners[t.id])){var r=t.events.on("propertychanged",function(t){"longitude"!=t.property&&"latitude"!=t.property||(n.handleImagesToConnect(),n.invalidate())},a,!1);a._imageListeners[t.id]=r,a._disposers.push(r)}},a=this;try{for(var u=c.g(this.imagesToConnect),s=u.next();!s.done;s=u.next()){o(s.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}this.multiGeoLine=r}},e.prototype.validate=function(){var e=this.series.chart;if(this.multiLine){if(this.shortestDistance)e.projection.d3Projection.precision(.1),this.line.path=e.projection.d3Path(this.getFeature());else{for(var n=[],i=0,r=this.multiLine.length;i<r;i++){for(var o=this.multiLine[i],a=[],u=0,s=o.length;u<s;u++){var c=o[u],l=this.series.chart.projection.convert({longitude:c[0],latitude:c[1]});a.push(l)}n.push(a)}this.line.segments=n}this._arrow&&this._arrow.validatePosition(),Wr.each(this.lineObjects.iterator(),function(t){t.validatePosition()}),this.handleGlobalScale()}else this.imagesToConnect&&this.handleImagesToConnect();t.prototype.validate.call(this)},e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0&&this.multiLine[0]&&this.multiLine[0].length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return this.getPropertyValue("shortestDistance")},set:function(t){this.setPropertyValue("shortestDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineObjects",{get:function(){return this._lineObjects||(this._lineObjects=new kr.e(new io),this._lineObjects.events.on("inserted",this.handleLineObjectAdded,this,!1),this._disposers.push(new kr.c(this._lineObjects)),this._disposers.push(this._lineObjects.template)),this._lineObjects},enumerable:!0,configurable:!0}),e.prototype.handleLineObjectAdded=function(t){var e=t.newValue;e.mapLine=this,e.shouldClone=!1,e.parent=this},Object.defineProperty(e.prototype,"arrow",{get:function(){if(!this._arrow){var t=this.createChild(io);t.shouldClone=!1,t.width=8,t.height=10,t.mapLine=this,t.position=.5;var e=t.createChild(ao.a);e.fillOpacity=1,e.width=Object(so.c)(100),e.height=Object(so.c)(100),e.rotation=90,e.horizontalCenter="middle",e.verticalCenter="middle",this._arrow=t}return this._arrow},set:function(t){this._arrow=t,t.mapLine=this,t.parent=this},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.line.copyFrom(e.line),this.lineObjects.copyFrom(e.lineObjects),e._arrow&&(this.arrow=e.arrow.clone())},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){return this.positionToPoint(.5).x},e.prototype.getTooltipY=function(){return this.positionToPoint(.5).y},e}(wr);d.b.registeredClasses.MapLine=co;var lo=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeriesDataItem",e.applyTheme(),e}return c.c(e,t),e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},Object.defineProperty(e.prototype,"mapLine",{get:function(){var t=this;if(!this._mapLine){var e=this.component.mapLines.create();this._mapLine=e,this.addSprite(e),this._disposers.push(e),this._disposers.push(new h.b(function(){t.component&&t.component.mapLines.removeValue(e)})),this.mapObject=e}return this._mapLine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t,this.multiLine=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){return this._multiLine},set:function(t){this._multiLine=t,this._multiGeoLine=Tr(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoLine",{get:function(){return this._geoLine},set:function(t){this._geoLine=t,this.multiLine=zr([t])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){return this._multiGeoLine},set:function(t){this._multiGeoLine=t,this.multiLine=zr(t)},enumerable:!0,configurable:!0}),e}(_r),ho=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeries",e.dataFields.multiLine="multiLine",e.dataFields.line="line",e.dataFields.geoLine="geoLine",e.dataFields.multiGeoLine="multiGeoLine",e.ignoreBounds=!0,e.applyTheme(),e}return c.c(e,t),e.prototype.createDataItem=function(){return new lo},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this.chart.geodata;if(e){var n=void 0;if("FeatureCollection"==e.type?n=e.features:"Feature"==e.type?n=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?n=[{geometry:e}]:console.log("nothing found in geoJSON"),n)for(var i=function(t,e){var i=n[t],o=i.geometry;if(o){var a=o.type,u=i.id;if("LineString"==a||"MultiLineString"==a){if(!r.checkInclude(r.include,r.exclude,u))return"continue";var s=o.coordinates,c=Or.find(r.data,function(t,e){return t.id==u});"LineString"==a&&(s=[s]),c?c.multiLine||(c.multiLine=s):(c={multiLine:s,id:u,madeFromGeoData:!0},r.data.push(c)),Br.softCopyProperties(i.properties,c)}}},r=this,o=0,a=n.length;o<a;o++)i(o)}}t.prototype.validateData.call(this)},Object.defineProperty(e.prototype,"mapLines",{get:function(){if(!this._mapLines){var t=this.createLine(),e=new kr.e(t);this._disposers.push(new kr.c(e)),this._disposers.push(e.template),e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapLines=e,this._mapObjects=e}return this._mapLines},enumerable:!0,configurable:!0}),e.prototype.createLine=function(){return new co},e.prototype.validate=function(){this.dataItems.each(function(t){Br.used(t.mapLine)}),t.prototype.validate.call(this),this.mapLines.each(function(t){t.validate()})},e.prototype.copyFrom=function(e){this.mapLines.template.copyFrom(e.mapLines.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each(function(t){var n=t.getFeature();n&&e.push(n)}),this.mapLines.each(function(n){if(-1==t.dataItems.indexOf(n._dataItem)){var i=n.getFeature();i&&e.push(i)}}),e},e.prototype.getLineById=function(t){return Wr.find(this.mapLines.iterator(),function(e){return e.dataItem.dataContext.id==t})},e}(Mr);d.b.registeredClasses.MapLineSeries=ho,d.b.registeredClasses.MapLineSeriesDataItem=lo;var po=function(t){function e(){var e=t.call(this)||this;return e.className="Graticule",e.applyTheme(),e.shortestDistance=!0,e}return c.c(e,t),e}(co);d.b.registeredClasses.Graticule=po;var fo=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeriesDataItem",e.applyTheme(),e}return c.c(e,t),e}(lo),go=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeries",e.longitudeStep=10,e.latitudeStep=10,e.north=90,e.south=-90,e.east=-180,e.west=180,e.fitExtent=!0,e.singleSprite=!0,e.events.disableType("geoBoundsChanged"),e.mapLines.template.line.strokeOpacity=.08,e.ignoreBounds=!1,e.hiddenInLegend=!0,e.applyTheme(),e}return c.c(e,t),e.prototype.createDataItem=function(){return new fo},e.prototype.validateData=function(){var e=this;t.prototype.validateData.call(this),this.mapLines.clear();var n=vn();if(n){n.stepMinor([this.longitudeStep,this.latitudeStep]),n.stepMajor([360,360]);var i=this.chart;if(this.fitExtent?n.extent([[i.east,i.north],[i.west,i.south]]):n.extent([[this.east,this.north],[this.west,this.south]]),this.singleSprite){this.mapLines.create().multiLine=n().coordinates}else{var r=n.lines();Or.each(r,function(t){e.mapLines.create().multiLine=[t.coordinates]})}}},e.prototype.createLine=function(){return new po},Object.defineProperty(e.prototype,"latitudeStep",{get:function(){return this.getPropertyValue("latitudeStep")},set:function(t){this.setPropertyValue("latitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitudeStep",{get:function(){return this.getPropertyValue("longitudeStep")},set:function(t){this.setPropertyValue("longitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitExtent",{get:function(){return this.getPropertyValue("fitExtent")},set:function(t){this.setPropertyValue("fitExtent",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"singleSprite",{get:function(){return this.getPropertyValue("singleSprite")},set:function(t){this.setPropertyValue("singleSprite",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e}(ho);d.b.registeredClasses.GraticuleSeries=go,d.b.registeredClasses.GraticuleSeriesDataItem=fo;var vo=n("zhwk"),mo=function(t){function e(){var e=t.call(this)||this;return e.className="MapChartDataItem",e.applyTheme(),e}return c.c(e,t),e}(l.b),yo=function(t){function e(){var e=t.call(this)||this;e.scaleRatio=1,e.zoomDuration=1e3,e.zoomEasing=Qr.cubicOut,e.minZoomLevel=1,e.maxZoomLevel=32,e._prevZoomGeoPoint={latitude:0,longitude:0},e.className="MapChart",e.projection=new qr,e.deltaLongitude=0,e.deltaLatitude=0,e.deltaGamma=0,e.maxPanOut=.7,e.homeZoomLevel=1,e.zoomStep=2,e.layout="absolute",e.padding(0,0,0,0),Br.used(e.backgroundSeries),e.minWidth=10,e.minHeight=10,e.events.once("inited",e.handleAllInited,e,!1);var n=e.seriesContainer;n.visible=!1,n.inert=!0,n.resizable=!0,n.events.on("transformed",e.handleMapTransform,e,!1),n.events.on("doublehit",e.handleDoubleHit,e,!1),n.events.on("dragged",e.handleDrag,e,!1),n.zIndex=0,n.dragWhileResize=!0;var i=e.chartContainer;i.parent=e,i.zIndex=-1,e._disposers.push(e.events.on("maxsizechanged",function(){if(e.inited){e._mapAnimation&&e._mapAnimation.stop();var t=!0;e.series.each(function(e){e.updateTooltipBounds(),e.inited&&!e.dataInvalid||(t=!1)}),t&&e.updateScaleRatio(),e.zoomToGeoPoint(e._zoomGeoPointReal,e.zoomLevel,!0,0)}},void 0,!1));var r=i.background;r.fillOpacity=0,r.events.on("down",function(t){e.seriesContainer.dragStart(t.target.interactions.downPointers.getIndex(0))},e),r.events.on("up",function(t){e.seriesContainer.dragStop()},e),r.events.on("doublehit",e.handleDoubleHit,e),r.focusable=!0,i.events.on("down",e.handleMapDown,e,!1),e.background.fillOpacity=0,e.background.readerTitle=e.language.translate("Use plus and minus keys on your keyboard to zoom in and out"),e._disposers.push(Object(vo.b)().body.events.on("keyup",function(t){if(e.topParent.hasFocused&&(!e._zoomControl||!e._zoomControl.thumb.isFocused))switch(Kr.b.getEventKey(t.event)){case"up":e.pan({x:0,y:.1});break;case"down":e.pan({x:0,y:-.1});break;case"left":e.pan({x:.1,y:0});break;case"right":e.pan({x:-.1,y:0})}},e)),e.mouseWheelBehavior="zoom";var o=Object(vo.b)();e._disposers.push(o.body.events.on("down",e.handlePanDown,e)),e._disposers.push(o.body.events.on("up",e.handlePanUp,e));var a=e.seriesContainer.createChild(Xr.a);return a.radius=10,a.inert=!0,a.isMeasured=!1,a.events.on("transformed",e.handlePanMove,e,!1),a.interactionsEnabled=!1,a.opacity=0,a.x=0,a.y=0,e.panSprite=a,e.panBehavior="move",e.applyTheme(),e}return c.c(e,t),e.prototype.handlePanDown=function(t){var e=Br.documentPointToSvg(t.pointer.point,this.htmlContainer);e.x>0&&e.y>0&&e.x<this.svgContainer.width&&e.y<this.svgContainer.height&&(this._downPointOrig=Br.documentPointToSprite(t.pointer.point,this.seriesContainer),this.panSprite.moveTo(this._downPointOrig),this.panSprite.dragStart(t.pointer),this._downDeltaLongitude=this.deltaLongitude,this._downDeltaLatitude=this.deltaLatitude)},e.prototype.handlePanUp=function(t){this._downPointOrig&&this.panSprite.dragStop(t.pointer),this._downPointOrig=void 0},e.prototype.handlePanMove=function(){if(!this.seriesContainer.isResized){var t=this.projection.d3Projection,e=this.panBehavior;if("move"!=e&&"none"!=e&&this._downPointOrig&&t.rotate){var n=t.rotate(),i=n[0],r=n[1],o=n[2];t.rotate([0,0,0]);var a=this.projection.invert(this._downPointOrig),u={x:this.panSprite.pixelX,y:this.panSprite.pixelY},s=void 0;u&&(s=this.projection.invert(u)),t.rotate([i,r,o]),s&&("rotateLat"!=e&&"rotateLongLat"!=e||(this.deltaLatitude=this._downDeltaLatitude+s.latitude-a.latitude),"rotateLong"!=e&&"rotateLongLat"!=e||(this.deltaLongitude=this._downDeltaLongitude+s.longitude-a.longitude))}}},e.prototype.handleAllInited=function(){var t=!0;this.seriesContainer.visible=!0,this.series.each(function(e){e.inited&&!e.dataInvalid||(t=!1)}),t?(this.updateCenterGeoPoint(),this.updateScaleRatio(),this.goHome(0)):d.b.events.once("exitframe",this.handleAllInited,this,!1)},e.prototype.updateZoomGeoPoint=function(){var t=Br.svgPointToSprite({x:this.innerWidth/2+this.pixelPaddingLeft,y:this.innerHeight/2+this.pixelPaddingTop},this.series.getIndex(0)),e=this.projection.invert(t);this._zoomGeoPointReal=e},e.prototype.updateCenterGeoPoint=function(){var t,e,n,i;if(this.backgroundSeries){var r=this.backgroundSeries.getFeatures();if(r.length>0){var o=this.projection.d3Path.bounds(r[0].geometry);t=o[0][0],n=o[0][1],e=o[1][0],i=o[1][1]}}else this.series.each(function(r){var o=r.group.node.getBBox();(t>o.x||!g.isNumber(t))&&(t=o.x),(e<o.x+o.width||!g.isNumber(e))&&(e=o.x+o.width),(n>o.y||!g.isNumber(n))&&(n=o.y),(i<o.y+o.height||!g.isNumber(i))&&(i=o.y+o.height)});this.seriesMaxLeft=t,this.seriesMaxRight=e,this.seriesMaxTop=n,this.seriesMaxBottom=i,this.seriesWidth=e-t,this.seriesHeight=i-n,this.seriesWidth>0&&this.seriesHeight>0?(this.chartContainer.visible=!0,this._centerGeoPoint=this.projection.invert({x:t+(e-t)/2,y:n+(i-n)/2}),this._zoomGeoPointReal&&g.isNumber(this._zoomGeoPointReal.latitude)||(this._zoomGeoPointReal=this._centerGeoPoint)):this.chartContainer.visible=!1},e.prototype.handleDrag=function(){var t=this.zoomLevel*this.scaleRatio,e=this.seriesWidth*t,n=this.seriesHeight*t,i=this.seriesContainer,r=this.seriesMaxLeft*t,o=this.seriesMaxRight*t,a=this.seriesMaxTop*t,u=this.seriesMaxBottom*t,s=i.pixelX,c=i.pixelY,l=this.maxPanOut,h=Math.min(this.maxWidth*(1-l)-e-r,-r);s<h&&(s=h);var p=Math.max(this.maxWidth*l-r,this.maxWidth-o);s>p&&(s=p);var f=Math.min(this.maxHeight*(1-l)-n-a,-a);c<f&&(c=f);var d=Math.max(this.maxHeight*l-a,this.maxHeight-u);c>d&&(c=d),i.moveTo({x:s,y:c},void 0,void 0,!0),this._zoomGeoPointReal=this.zoomGeoPoint},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),g.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Map"))},e.prototype.handleMapDown=function(){this._mapAnimation&&this._mapAnimation.stop()},e.prototype.handleDoubleHit=function(t){var e=Br.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),n=this.svgPointToGeo(e);this.zoomIn(n)},e.prototype.handleWheel=function(t){var e=Br.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),n=this.svgPointToGeo(e);t.shift.y<0?this.zoomIn(n):this.zoomOut(n)},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.chartContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):(this._mouseWheelDisposer&&this._mouseWheelDisposer.dispose(),this.chartContainer.wheelable=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"panBehavior",{get:function(){return this.getPropertyValue("panBehavior")},set:function(t){if(this.setPropertyValue("panBehavior",t)){var e=this.seriesContainer;switch(this.panSprite.draggable=!1,e.draggable=!1,t){case"move":e.draggable=!0;break;default:this.panSprite.draggable=!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"projection",{get:function(){return this.getPropertyValue("projection")},set:function(t){var e=this;this.setPropertyValue("projection",t)&&(this.invalidateProjection(),t.chart=this,this.series.each(function(t){e.addDisposer(t.events.once("validated",function(){e.updateCenterGeoPoint(),e.updateScaleRatio(),e.goHome(0)}))}))},enumerable:!0,configurable:!0}),e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,n,i;this.series.each(function(r){r.ignoreBounds||r instanceof go&&r.fitExtent||((r.north>e||!g.isNumber(e))&&(e=r.north),(r.south<i||!g.isNumber(i))&&(i=r.south),(r.west<n||!g.isNumber(n))&&(n=r.west),(r.east>t||!g.isNumber(t))&&(t=r.east))});var r=[],o=!1;this.series.each(function(t){t instanceof go&&!t.fitExtent&&(r=t.getFeatures(),o=!0)}),o||this.series.each(function(t){t.ignoreBounds||t instanceof go&&t.fitExtent||(r=r.concat(t.getFeatures()))});var a=v.max(50,this.innerWidth),u=v.max(50,this.innerHeight),s=this.projection.d3Projection;if(r.length>0&&s&&(this.east!=t||this.west!=n||this.north!=e||this.south!=i)){if(this.east=t,this.west=n,this.north=e,this.south=i,s.rotate){var c=s.rotate(),l=c[0],h=c[1],p=c[2];this.deltaLongitude=l,this.deltaLatitude=h,this.deltaGamma=p}var f={type:"FeatureCollection",features:r},d=s.scale();if(s.fitSize([a,u],f),s.scale()!=d&&this.invalidateDataUsers(),this.series.each(function(t){t instanceof go&&t.invalidateData()}),this._backgroundSeries){var m=this._backgroundSeries.mapPolygons.getIndex(0);m&&(m.multiPolygon=Vr(this.north,this.east,this.south,this.west))}this._fitWidth=a,this._fitHeight=u}this._zoomGeoPointReal&&g.isNumber(this._zoomGeoPointReal.latitude)||this.goHome(0)},e.prototype.updateScaleRatio=function(){var t;this.updateCenterGeoPoint();var e=this.innerWidth/this.seriesWidth,n=this.innerHeight/this.seriesHeight;t=v.min(e,n),(g.isNaN(t)||t==1/0)&&(t=1),t!=this.scaleRatio&&(this.scaleRatio=t,Wr.each(this.series.iterator(),function(e){e.scale=t,e.updateTooltipBounds()}),this.backgroundSeries.scale=t,this.dispatch("scaleratiochanged"))},e.prototype.svgPointToGeo=function(t){var e=this.series.getIndex(0);if(e){var n=Br.svgPointToSprite(t,e);return this.seriesPointToGeo(n)}},e.prototype.geoPointToSVG=function(t){var e=this.series.getIndex(0);if(e){var n=this.geoPointToSeries(t);return Br.spritePointToSvg(n,e)}},e.prototype.seriesPointToGeo=function(t){return this.projection.invert(t)},e.prototype.geoPointToSeries=function(t){return this.projection.convert(t)},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){t!=this._geodata&&(this._geodata=t,this.invalidateData(),this.dataUsers.each(function(t){for(var e=t.data.length-1;e>=0;e--)1==t.data[e].madeFromGeoData&&t.data.splice(e,1);t.disposeData(),t.invalidateData()}))},enumerable:!0,configurable:!0}),e.prototype.zoomToGeoPoint=function(t,e,n,i){var r=this;if(t||(t=this.zoomGeoPoint),t&&g.isNumber(t.longitude)&&g.isNumber(t.latitude)){this._zoomGeoPointReal=t,e=v.fitToRange(e,this.minZoomLevel,this.maxZoomLevel);var o=this.projection.convert(t);if(o){var a=this.geoPointToSVG(t),u=Br.svgPointToSprite(a,this);return n&&(u={x:this.innerWidth/2,y:this.innerHeight/2}),g.isNumber(i)||(i=this.zoomDuration),this._mapAnimation=this.seriesContainer.animate([{property:"scale",to:e},{property:"x",from:this.seriesContainer.pixelX,to:u.x-o.x*e*this.scaleRatio},{property:"y",from:this.seriesContainer.pixelY,to:u.y-o.y*e*this.scaleRatio}],i,this.zoomEasing),this._disposers.push(this._mapAnimation.events.on("animationended",function(){r._zoomGeoPointReal=r.zoomGeoPoint})),this.seriesContainer.validatePosition(),this._mapAnimation}}},e.prototype.zoomToMapObject=function(t,e,n,i){if(void 0==n&&(n=!0),t instanceof jr)return g.isNaN(e)&&(e=5),this.zoomToGeoPoint({latitude:t.latitude,longitude:t.longitude},e,n,i);var r=t.dataItem;if(r&&g.isNumber(r.zoomLevel)&&(e=r.zoomLevel),t instanceof Rr){var o=t.dataItem,a=t.polygon.bbox;g.isNumber(e)||(e=Math.min(this.seriesWidth/a.width,this.seriesHeight/a.height));var u=void 0;if(o&&g.hasValue(o.zoomGeoPoint))u=o.zoomGeoPoint;else{var s={x:a.x+a.width/2,y:a.y+a.height/2},c=Br.spritePointToSprite(s,t.polygon,t.series);u=this.seriesPointToGeo(c)}return this.zoomToGeoPoint(u,e,!0,i)}},e.prototype.zoomToRectangle=function(t,e,n,i,r,o,a){g.isNaN(r)&&(r=1);var u=r*Math.min((this.south-this.north)/(n-t),(this.west-this.east)/(i-e));return this.zoomToGeoPoint({latitude:t+(n-t)/2,longitude:i+(e-i)/2},u,o,a)},e.prototype.zoomIn=function(t,e){return this.zoomToGeoPoint(t,this.zoomLevel*this.zoomStep,!1,e)},e.prototype.zoomOut=function(t,e){return this.zoomToGeoPoint(t,this.zoomLevel/this.zoomStep,!1,e)},e.prototype.pan=function(t,e){var n=this.geoPointToSVG(this.zoomGeoPoint);n.x+=this.pixelWidth*t.x,n.y+=this.pixelHeight*t.y,this.zoomToGeoPoint(this.svgPointToGeo(n),this.zoomLevel,!0,e)},Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){var t=Br.spritePointToSvg({x:this.pixelWidth/2,y:this.pixelHeight/2},this);return this.svgPointToGeo(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.seriesContainer.scale},set:function(t){this.seriesContainer.scale=t},enumerable:!0,configurable:!0}),e.prototype.handleMapTransform=function(){this.zoomLevel!=this._prevZoomLevel&&(this.dispatch("zoomlevelchanged"),this._prevZoomLevel=this.zoomLevel),!this.zoomGeoPoint||this._prevZoomGeoPoint.latitude==this.zoomGeoPoint.latitude&&this._prevZoomGeoPoint.longitude==this.zoomGeoPoint.longitude||this.dispatch("mappositionchanged")},Object.defineProperty(e.prototype,"smallMap",{get:function(){if(!this._smallMap){var t=new Jr;this.smallMap=t}return this._smallMap},set:function(t){this._smallMap&&this.removeDispose(this._smallMap),this._smallMap=t,this._smallMap.chart=this,t.parent=this.chartContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomControl",{get:function(){return this._zoomControl},set:function(t){this._zoomControl&&this.removeDispose(this._zoomControl),this._zoomControl=t,t.chart=this,t.parent=this.chartContainer},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new Mr},Object.defineProperty(e.prototype,"deltaLongitude",{get:function(){return this.getPropertyValue("deltaLongitude")},set:function(t){this.setPropertyValue("deltaLongitude",eo(t))&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaLatitude",{get:function(){return this.getPropertyValue("deltaLatitude")},set:function(t){this.setPropertyValue("deltaLatitude",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaGamma",{get:function(){return this.getPropertyValue("deltaGamma")},set:function(t){this.setPropertyValue("deltaGamma",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),e.prototype.rotateMap=function(){this.projection.d3Projection&&this.projection.d3Projection.rotate&&(this.projection.d3Projection.rotate([this.deltaLongitude,this.deltaLatitude,this.deltaGamma]),this.invalidateProjection())},Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeGeoPoint",{get:function(){return this.getPropertyValue("homeGeoPoint")},set:function(t){this.setPropertyValue("homeGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeZoomLevel",{get:function(){return this.getPropertyValue("homeZoomLevel")},set:function(t){this.setPropertyValue("homeZoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomStep",{get:function(){return this.getPropertyValue("zoomStep")},set:function(t){this.setPropertyValue("zoomStep",t)},enumerable:!0,configurable:!0}),e.prototype.invalidateProjection=function(){this.invalidateDataUsers(),this.updateCenterGeoPoint()},Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",function(){e.loadData("geodata")},this,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(g.hasValue(e.geodata)&&g.isString(e.geodata)){var n=e.geodata;if(g.hasValue(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(t){throw Error("MapChart error: Geodata `"+n+"` is not loaded or is incorrect.")}}g.hasValue(e.projection)&&g.isString(e.projection)&&(e.projection=this.createClassInstance(e.projection)),g.hasValue(e.smallMap)&&!g.hasValue(e.smallMap.type)&&(e.smallMap.type="SmallMap"),g.hasValue(e.zoomControl)&&!g.hasValue(e.zoomControl.type)&&(e.zoomControl.type="ZoomControl"),t.prototype.processConfig.call(this,e)},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e);var n=e.newValue;n.scale=this.scaleRatio,n.events.on("validated",this.updateCenterGeoPoint,this,!1)},e.prototype.configOrder=function(e,n){return e==n?0:"smallMap"==e?1:"smallMap"==n?-1:"series"==e?1:"series"==n?-1:t.prototype.configOrder.call(this,e,n)},e.prototype.asIs=function(e){return"projection"==e||"geodata"==e||t.prototype.asIs.call(this,e)},Object.defineProperty(e.prototype,"centerGeoPoint",{get:function(){return this._centerGeoPoint},enumerable:!0,configurable:!0}),e.prototype.goHome=function(t){var e=this.homeGeoPoint;e||(e=this.centerGeoPoint),e&&this.zoomToGeoPoint(e,this.homeZoomLevel,!0,t)},e.prototype.setPaper=function(e){return this.svgContainer&&(this.svgContainer.hideOverflow=!0),t.prototype.setPaper.call(this,e)},Object.defineProperty(e.prototype,"backgroundSeries",{get:function(){var t=this;if(!this._backgroundSeries){var e=new Zr;e.parent=this.seriesContainer,e.chart=this,e.hiddenInLegend=!0,e.addDisposer(new h.b(function(){t._backgroundSeries=void 0})),this._disposers.push(e);var n=(new p.a).getFor("background"),i=e.mapPolygons.template.polygon;i.stroke=n,i.fill=n,i.fillOpacity=0,i.strokeOpacity=0,e.mapPolygons.create(),this._backgroundSeries=e}return this._backgroundSeries},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e.parent=this},e.prototype.setTapToActivate=function(e){t.prototype.setTapToActivate.call(this,e),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.handleTapToActivate=function(){t.prototype.handleTapToActivate.call(this),this.seriesContainer.interactions.isTouchProtected=!1,this.panSprite.interactions.isTouchProtected=!1},e.prototype.handleTapToActivateDeactivation=function(){t.prototype.handleTapToActivateDeactivation.call(this),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e}(l.a);d.b.registeredClasses.MapChart=yo;var bo=n("xgTw"),Po=function(t){function e(){var e=t.call(this)||this;return e.className="MapSpline",e.applyTheme(),e}return c.c(e,t),e.prototype.createLine=function(){this.line=new bo.a,this.line.tensionX=.8,this.line.tensionY=.8},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(co);d.b.registeredClasses.MapSpline=Po;var So=n("MXvJ"),_o=function(t){function e(){var e=t.call(this)||this;return e.className="MapArc",e.applyTheme(),e}return c.c(e,t),e.prototype.createLine=function(){this.line=new So.a},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(co);d.b.registeredClasses.MapArc=_o;var Mo=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeriesDataItem",e.applyTheme(),e}return c.c(e,t),e}(lo),xo=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeries",e.applyTheme(),e}return c.c(e,t),e.prototype.createDataItem=function(){return new Mo},e.prototype.createLine=function(){return new Po},e}(ho);d.b.registeredClasses.MapSplineSeries=xo,d.b.registeredClasses.MapSplineSeriesDataItem=Mo;var wo=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeriesDataItem",e.applyTheme(),e}return c.c(e,t),e}(lo),jo=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeries",e.applyTheme(),e}return c.c(e,t),e.prototype.createDataItem=function(){return new wo},e.prototype.createLine=function(){return new _o},e}(ho);d.b.registeredClasses.MapArcSeries=jo,d.b.registeredClasses.MapArcSeriesDataItem=wo;var Lo=n("aGXA"),Co=n("CnhP"),Eo=function(t){function e(){var e=t.call(this)||this;e._chart=new h.d,e.className="ZoomControl",e.align="right",e.valign="bottom",e.layout="vertical",e.padding(5,5,5,5);var n=new p.a,i=e.createChild(Lo.a);i.shouldClone=!1,i.label.text="+",e.plusButton=i;var r=e.createChild(xr.a);r.shouldClone=!1,r.background.fill=n.getFor("alternativeBackground"),r.background.fillOpacity=.05,r.background.events.on("hit",e.handleBackgroundClick,e,!1),r.events.on("sizechanged",e.updateThumbSize,e,!1),e.slider=r;var o=r.createChild(Lo.a);o.shouldClone=!1,o.padding(0,0,0,0),o.draggable=!0,o.events.on("drag",e.handleThumbDrag,e,!1),e.thumb=o;var a=e.createChild(Lo.a);return a.shouldClone=!1,a.label.text="-",e.minusButton=a,e.thumb.role="slider",e.thumb.readerLive="polite",e.thumb.readerTitle=e.language.translate("Use arrow keys to zoom in and out"),e.minusButton.readerTitle=e.language.translate("Press ENTER to zoom in"),e.plusButton.readerTitle=e.language.translate("Press ENTER to zoom out"),e.applyTheme(),e.events.on("propertychanged",function(t){"layout"==t.property&&e.fixLayout()},void 0,!1),e._disposers.push(e._chart),e.fixLayout(),e}return c.c(e,t),e.prototype.fixLayout=function(){var t=this.plusButton,e=this.minusButton,n=this.thumb,i=this.slider;t.x=void 0,t.y=void 0,e.x=void 0,e.y=void 0,n.x=void 0,n.y=void 0,i.x=void 0,i.y=void 0,t.padding(6,10,6,10),e.padding(6,10,6,10),e.label.align="center",e.label.valign="middle",t.label.align="center",t.label.valign="middle","vertical"==this.layout?(this.width=40,this.height=void 0,e.width=Object(so.c)(100),e.height=void 0,n.width=Object(so.c)(100),n.height=void 0,t.width=Object(so.c)(100),t.height=void 0,i.width=Object(so.c)(100),e.marginTop=1,t.marginBottom=2,i.height=0,e.toFront(),t.toBack(),n.minX=0,n.maxX=0,n.minY=0):"horizontal"==this.layout&&(this.height=40,this.width=void 0,e.height=Object(so.c)(100),e.width=void 0,t.height=Object(so.c)(100),t.width=void 0,n.height=Object(so.c)(100),n.width=void 0,n.minX=0,n.minY=0,n.maxY=0,i.height=Object(so.c)(100),i.width=0,e.toBack(),t.toFront())},e.prototype.handleBackgroundClick=function(t){var e=t.target,n=t.spritePoint.y,i=this.chart,r=Math.log(i.maxZoomLevel)/Math.LN2,o=Math.log(i.minZoomLevel)/Math.LN2,a=(e.pixelHeight-n)/e.pixelHeight*(o+(r-o)),u=Math.pow(2,a);i.zoomToGeoPoint(i.zoomGeoPoint,u)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){var e=this;this._chart.set(t,new h.c([t.events.on("maxsizechanged",this.updateThumbSize,this,!1),t.events.on("zoomlevelchanged",this.updateThumb,this,!1),this.minusButton.events.on("hit",function(){t.zoomOut(t.zoomGeoPoint)},t,!1),Object(vo.b)().body.events.on("keyup",function(n){e.topParent.hasFocused&&(Kr.b.isKey(n.event,"enter")?e.minusButton.isFocused?t.zoomOut():e.plusButton.isFocused&&t.zoomIn():Kr.b.isKey(n.event,"plus")?t.zoomIn():Kr.b.isKey(n.event,"minus")&&t.zoomOut())},t),this.plusButton.events.on("hit",function(){t.zoomIn(t.zoomGeoPoint)},t,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateThumbSize=function(){if(this.chart){var t=this.slider,e=this.thumb;"vertical"==this.layout?(e.minHeight=Math.min(this.slider.pixelHeight,20),e.height=t.pixelHeight/this.stepCount,e.maxY=t.pixelHeight-e.pixelHeight,e.pixelHeight<=1?e.visible=!1:e.visible=!0):(e.minWidth=Math.min(this.slider.pixelWidth,20),e.width=t.pixelWidth/this.stepCount,e.maxX=t.pixelWidth-e.pixelWidth,e.pixelWidth<=1?e.visible=!1:e.visible=!0)}},e.prototype.updateThumb=function(){var t=this.slider,e=this.chart,n=this.thumb;if(!n.isDown){var i=(Math.log(e.zoomLevel)-Math.log(this.chart.minZoomLevel))/Math.LN2;"vertical"==this.layout?n.y=t.pixelHeight-(t.pixelHeight-n.pixelHeight)*i/this.stepCount-n.pixelHeight:n.x=t.pixelWidth*i/this.stepCount}},e.prototype.handleThumbDrag=function(){var t,e=this.slider,n=this.chart,i=this.thumb;t=Math.log(this.chart.minZoomLevel)/Math.LN2+(t="vertical"==this.layout?this.stepCount*(e.pixelHeight-i.pixelY-i.pixelHeight)/(e.pixelHeight-i.pixelHeight):this.stepCount*i.pixelX/e.pixelWidth);var r=Math.pow(2,t);n.zoomToGeoPoint(void 0,r,!1,0)},Object.defineProperty(e.prototype,"stepCount",{get:function(){return Math.log(this.chart.maxZoomLevel)/Math.LN2-Math.log(this.chart.minZoomLevel)/Math.LN2},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new Co.a},e}(xr.a);d.b.registeredClasses.ZoomControl=Eo;var Oo=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Yi(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.Mercator=Oo;var Io=Math.abs,To=Math.atan,Go=Math.atan2,Do=(Math.ceil,Math.cos),No=Math.exp,zo=Math.floor,Ao=Math.log,Fo=Math.max,Vo=Math.min,Ro=Math.pow,ko=(Math.round,Math.sign||function(t){return t>0?1:t<0?-1:0}),Bo=Math.sin,Wo=Math.tan,Ho=1e-6,Zo=1e-12,qo=Math.PI,Xo=qo/2,Yo=qo/4,Uo=Math.SQRT1_2,Jo=ia(2),Ko=ia(qo),Qo=2*qo,$o=180/qo,ta=qo/180;function ea(t){return t>1?Xo:t<-1?-Xo:Math.asin(t)}function na(t){return t>1?0:t<-1?qo:Math.acos(t)}function ia(t){return t>0?Math.sqrt(t):0}function ra(t){return(No(t)-No(-t))/2}function oa(t){return(No(t)+No(-t))/2}function aa(t,e){var n=Do(e),i=function(t){return t?t/Math.sin(t):1}(na(n*Do(t/=2)));return[2*n*Bo(t)*i,Bo(e)*i]}aa.invert=function(t,e){if(!(t*t+4*e*e>qo*qo+Ho)){var n=t,i=e,r=25;do{var o,a=Bo(n),u=Bo(n/2),s=Do(n/2),c=Bo(i),l=Do(i),h=Bo(2*i),p=c*c,f=l*l,d=u*u,g=1-f*s*s,v=g?na(l*s)*ia(o=1/g):o=0,m=2*v*l*u-t,y=v*c-e,b=o*(f*d+v*l*s*p),P=o*(.5*a*h-2*v*c*u),S=.25*o*(h*u-v*c*f*a),_=o*(p*s+v*d*l),M=P*S-_*b;if(!M)break;var x=(y*P-m*_)/M,w=(m*S-y*b)/M;n-=x,i-=w}while((Io(x)>Ho||Io(w)>Ho)&&--r>0);return[n,i]}};function ua(t,e){var n=Wo(e/2),i=ia(1-n*n),r=1+i*Do(t/=2),o=Bo(t)*i/r,a=n/r,u=o*o,s=a*a;return[4/3*o*(3+u-3*s),4/3*a*(3+3*u-s)]}ua.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&Io(e)>1)return null;var n=1+t*t+e*e,i=ia((n-ia(n*n-4*e*e))/2),r=ea(i)/3,o=i?function(t){return Ao(t+ia(t*t-1))}(Io(e/i))/3:function(t){return Ao(t+ia(t*t+1))}(Io(t))/3,a=Do(r),u=oa(o),s=u*u-a*a;return[2*ko(t)*Go(ra(o)*a,.25-s),2*ko(e)*Go(u*Bo(r),.25+s)]};var sa=ia(8),ca=Ao(1+Jo);function la(t,e){var n=Io(e);return n<Yo?[t,Ao(Wo(Yo+e/2))]:[t*Do(n)*(2*Jo-1/Bo(n)),ko(e)*(2*Jo*(n-Yo)-Ao(Wo(n/2)))]}la.invert=function(t,e){if((i=Io(e))<ca)return[t,2*To(No(e))-Xo];var n,i,r=Yo,o=25;do{var a=Do(r/2),u=Wo(r/2);r-=n=(sa*(r-Yo)-Ao(u)-i)/(sa-a*a/(2*u))}while(Io(n)>Zo&&--o>0);return[t/(Do(r)*(sa-1/Bo(r))),ko(e)*r]};function ha(t,e){return[t*Do(e)/Do(e/=2),2*Bo(e)]}ha.invert=function(t,e){var n=2*ea(e/2);return[t*Do(n/2)/Do(n),n]};function pa(t,e){var n,i=t*Bo(e),r=30;do{e-=n=(e+Bo(e)-i)/(1+Do(e))}while(Io(n)>Ho&&--r>0);return e/2}function fa(t,e,n){function i(i,r){return[t*i*Do(r=pa(n,r)),e*Bo(r)]}return i.invert=function(i,r){return r=ea(r/e),[i/(t*Do(r)),ea((2*r+Bo(2*r))/n)]},i}var da=fa(Jo/Xo,Jo,qo),ga=2.00276,va=1.11072;function ma(t,e){var n=pa(qo,e);return[ga*t/(1/Do(e)+va/Do(n)),(e+Jo*Bo(n))/ga]}ma.invert=function(t,e){var n,i,r=ga*e,o=e<0?-Yo:Yo,a=25;do{i=r-Jo*Bo(o),o-=n=(Bo(2*o)+2*o-qo*Bo(i))/(2*Do(2*o)+2+qo*Do(i)*Jo*Do(o))}while(Io(n)>Ho&&--a>0);return i=r-Jo*Bo(o),[t*(1/Do(i)+va/Do(o))/ga,i]};function ya(t,e){return[t*Do(e),e]}ya.invert=function(t,e){return[t/Do(e),e]};fa(1,4/qo,qo);function ba(t,e){var n=ia(1-Bo(e));return[2/Ko*t*n,Ko*(1-n)]}ba.invert=function(t,e){var n=(n=e/Ko-1)*n;return[n>0?t*ia(qo/n)/2:0,ea(1-n)]};var Pa=ia(3);function Sa(t,e){return[Pa*t*(2*Do(2*e/3)-1)/Ko,Pa*Ko*Bo(e/3)]}Sa.invert=function(t,e){var n=3*ea(e/(Pa*Ko));return[Ko*t/(Pa*(2*Do(2*n/3)-1)),n]};function _a(t){var e=Do(t);function n(t,n){return[t*e,Bo(n)/e]}return n.invert=function(t,n){return[t/e,ea(n*e)]},n}function Ma(t,e){var n=ia(8/(3*qo));return[n*t*(1-Io(e)/qo),n*e]}Ma.invert=function(t,e){var n=ia(8/(3*qo)),i=e/n;return[t/(n*(1-Io(i)/qo)),i]};function xa(t,e){var n=ia(4-3*Bo(Io(e)));return[2/ia(6*qo)*t*n,ko(e)*ia(2*qo/3)*(2-n)]}xa.invert=function(t,e){var n=2-Io(e)/ia(2*qo/3);return[t*ia(6*qo)/(2*n),ko(e)*ea((4-n*n)/3)]};function wa(t,e){var n=ia(qo*(4+qo));return[2/n*t*(1+ia(1-4*e*e/(qo*qo))),4/n*e]}wa.invert=function(t,e){var n=ia(qo*(4+qo))/2;return[t*n/(1+ia(1-e*e*(4+qo)/(4*qo))),e*n/2]};function ja(t,e){var n=(2+Xo)*Bo(e);e/=2;for(var i=0,r=1/0;i<10&&Io(r)>Ho;i++){var o=Do(e);e-=r=(e+Bo(e)*(o+2)-n)/(2*o*(1+o))}return[2/ia(qo*(4+qo))*t*(1+Do(e)),2*ia(qo/(4+qo))*Bo(e)]}ja.invert=function(t,e){var n=e*ia((4+qo)/qo)/2,i=ea(n),r=Do(i);return[t/(2/ia(qo*(4+qo))*(1+r)),ea((i+n*(r+2))/(2+Xo))]};function La(t,e){return[t*(1+Do(e))/ia(2+qo),2*e/ia(2+qo)]}La.invert=function(t,e){var n=ia(2+qo),i=e*n/2;return[n*t/(1+Do(i)),i]};function Ca(t,e){for(var n=(1+Xo)*Bo(e),i=0,r=1/0;i<10&&Io(r)>Ho;i++)e-=r=(e+Bo(e)-n)/(1+Do(e));return n=ia(2+qo),[t*(1+Do(e))/n,2*e/n]}Ca.invert=function(t,e){var n=1+Xo,i=ia(n/2);return[2*t*i/(1+Do(e*=i)),ea((e+Bo(e))/n)]};var Ea=function(){return Di(Ca).scale(173.044)},Oa=3+2*Jo;function Ia(t,e){var n=Bo(t/=2),i=Do(t),r=ia(Do(e)),o=Do(e/=2),a=Bo(e)/(o+Jo*i*r),u=ia(2/(1+a*a)),s=ia((Jo*o+(i+n)*r)/(Jo*o+(i-n)*r));return[Oa*(u*(s-1/s)-2*Ao(s)),Oa*(u*a*(s+1/s)-2*To(a))]}Ia.invert=function(t,e){if(!(n=ua.invert(t/1.2,1.065*e)))return null;var n,i=n[0],r=n[1],o=20;t/=Oa,e/=Oa;do{var a=i/2,u=r/2,s=Bo(a),c=Do(a),l=Bo(u),h=Do(u),p=Do(r),f=ia(p),d=l/(h+Jo*c*f),g=d*d,v=ia(2/(1+g)),m=(Jo*h+(c+s)*f)/(Jo*h+(c-s)*f),y=ia(m),b=y-1/y,P=y+1/y,S=v*b-2*Ao(y)-t,_=v*d*P-2*To(d)-e,M=l&&Uo*f*s*g/l,x=(Jo*c*h+f)/(2*(h+Jo*c*f)*(h+Jo*c*f)*f),w=-.5*d*v*v*v,j=w*M,L=w*x,C=(C=2*h+Jo*f*(c-s))*C*y,E=(Jo*c*h*f+p)/C,O=-Jo*s*l/(f*C),I=b*j-2*E/y+v*(E+E/m),T=b*L-2*O/y+v*(O+O/m),G=d*P*j-2*M/(1+g)+v*P*M+v*d*(E-E/m),D=d*P*L-2*x/(1+g)+v*P*x+v*d*(O-O/m),N=T*G-D*I;if(!N)break;var z=(_*T-S*D)/N,A=(S*G-_*I)/N;i-=z,r=Fo(-Xo,Vo(Xo,r-A))}while((Io(z)>Ho||Io(A)>Ho)&&--o>0);return Io(Io(r)-Xo)<Ho?[0,r]:o&&[i,r]};var Ta=Do(35*ta);function Ga(t,e){var n=Wo(e/2);return[t*Ta*ia(1-n*n),(1+Ta)*n]}Ga.invert=function(t,e){var n=e/(1+Ta);return[t&&t/(Ta*ia(1-n*n)),2*To(n)]};function Da(t,e){var n=e/2,i=Do(n);return[2*t/Ko*Do(e)*i*i,Ko*Wo(n)]}Da.invert=function(t,e){var n=To(e/Ko),i=Do(n),r=2*n;return[t*Ko/2/(Do(r)*i*i),r]};function Na(t,e,n){var i,r,o,a=100;n=void 0===n?0:+n,e=+e;do{(r=t(n))===(o=t(n+Ho))&&(o=r+Ho),n-=i=-1*Ho*(r-e)/(r-o)}while(a-- >0&&Io(i)>Ho);return a<0?NaN:n}var za=function(t,e,n,i,r,o,a,u){function s(s,c){if(!c)return[t*s/qo,0];var l=c*c,h=t+l*(e+l*(n+l*i)),p=c*(r-1+l*(o-u+l*a)),f=(h*h+p*p)/(2*p),d=s*ea(h/f)/qo;return[f*Bo(d),c*(1+l*u)+f*(1-Do(d))]}return arguments.length<8&&(u=0),s.invert=function(s,c){var l,h,p=qo*s/t,f=c,d=50;do{var g=f*f,v=t+g*(e+g*(n+g*i)),m=f*(r-1+g*(o-u+g*a)),y=v*v+m*m,b=2*m,P=y/b,S=P*P,_=ea(v/P)/qo,M=p*_,x=v*v,w=(2*e+g*(4*n+6*g*i))*f,j=r+g*(3*o+5*g*a),L=(2*(v*w+m*(j-1))*b-y*(2*(j-1)))/(b*b),C=Do(M),E=Bo(M),O=P*C,I=P*E,T=p/qo*(1/ia(1-x/S))*(w*P-v*L)/S,G=I-s,D=f*(1+g*u)+P-O-c,N=L*E+O*T,z=O*_,A=1+L-(L*C-I*T),F=I*_,V=N*F-A*z;if(!V)break;p-=l=(D*N-G*A)/V,f-=h=(G*F-D*z)/V}while((Io(l)>Ho||Io(h)>Ho)&&--d>0);return[p,f]},s};za(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),za(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),za(5/6*qo,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Aa(t,e){var n=t*t,i=e*e;return[t*(1-.162388*i)*(.87-952426e-9*n*n),e*(1+i/12)]}Aa.invert=function(t,e){var n,i=t,r=e,o=50;do{var a=r*r;r-=n=(r*(1+a/12)-e)/(1+a/4)}while(Io(n)>Ho&&--o>0);o=50,t/=1-.162388*a;do{var u=(u=i*i)*u;i-=n=(i*(.87-952426e-9*u)-t)/(.87-.00476213*u)}while(Io(n)>Ho&&--o>0);return[i,r]};za(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Fa(t,e){var n=ko(t),i=ko(e),r=Do(e),o=Do(t)*r,a=Bo(t)*r,u=Bo(i*e);t=Io(Go(a,u)),e=ea(o),Io(t-Xo)>Ho&&(t%=Xo);var s=function(t,e){if(e===Xo)return[0,0];var n,i,r=Bo(e),o=r*r,a=o*o,u=1+a,s=1+3*a,c=1-a,l=ea(1/ia(u)),h=c+o*u*l,p=(1-r)/h,f=ia(p),d=p*u,g=ia(d),v=f*c;if(0===t)return[0,-(v+o*g)];var m,y=Do(e),b=1/y,P=2*r*y,S=(-h*y-(-3*o+l*s)*P*(1-r))/(h*h),_=-b*P,M=-b*(o*u*S+p*s*P),x=-2*b*(c*(.5*S/f)-2*o*f*P),w=4*t/qo;if(t>.222*qo||e<qo/4&&t>.175*qo){if(n=(v+o*ia(d*(1+a)-v*v))/(1+a),t>qo/4)return[n,n];var j=n,L=.5*n;n=.5*(L+j),i=50;do{var C=ia(d-n*n),E=n*(x+_*C)+M*ea(n/g)-w;if(!E)break;E<0?L=n:j=n,n=.5*(L+j)}while(Io(j-L)>Ho&&--i>0)}else{n=Ho,i=25;do{var O=n*n,I=ia(d-O),T=x+_*I,G=n*T+M*ea(n/g)-w,D=T+(M-_*O)/I;n-=m=I?G/D:0}while(Io(m)>Ho&&--i>0)}return[n,-v-o*ia(d-n*n)]}(t>qo/4?Xo-t:t,e);return t>qo/4&&(u=s[0],s[0]=-s[1],s[1]=-u),s[0]*=n,s[1]*=-i,s}Fa.invert=function(t,e){Io(t)>1&&(t=2*ko(t)-t),Io(e)>1&&(e=2*ko(e)-e);var n=ko(t),i=ko(e),r=-n*t,o=-i*e,a=o/r<1,u=function(t,e){var n=0,i=1,r=.5,o=50;for(;;){var a=r*r,u=ia(r),s=ea(1/ia(1+a)),c=1-a+r*(1+a)*s,l=(1-u)/c,h=ia(l),p=l*(1+a),f=h*(1-a),d=p-t*t,g=ia(d),v=e+f+r*g;if(Io(i-n)<Zo||0==--o||0===v)break;v>0?n=r:i=r,r=.5*(n+i)}if(!o)return null;var m=ea(u),y=Do(m),b=1/y,P=2*u*y,S=(-c*y-(-3*r+s*(1+3*a))*P*(1-u))/(c*c);return[qo/4*(t*(-2*b*(.5*S/h*(1-a)-2*r*h*P)+-b*P*g)+-b*(r*(1+a)*S+l*(1+3*a)*P)*ea(t/ia(p))),m]}(a?o:r,a?r:o),s=u[0],c=u[1],l=Do(c);return a&&(s=-Xo-s),[n*(Go(Bo(s)*l,-Bo(c))+qo),i*ea(Do(s)*l)]};function Va(t,e){var n,i,r,o,a;if(e<Ho)return[(o=Bo(t))-(n=e*(t-o*(i=Do(t)))/4)*i,i+n*o,1-e*o*o/2,t-n];if(e>=1-Ho)return n=(1-e)/4,r=1/(i=oa(t)),[(o=function(t){return((t=No(2*t))-1)/(t+1)}(t))+n*((a=i*ra(t))-t)/(i*i),r-n*o*r*(a-t),r+n*o*r*(a+t),2*To(No(t))-Xo+n*(a-t)/i];var u=[1,0,0,0,0,0,0,0,0],s=[ia(e),0,0,0,0,0,0,0,0],c=0;for(i=ia(1-e),a=1;Io(s[c]/u[c])>Ho&&c<8;)n=u[c++],s[c]=(n-i)/2,u[c]=(n+i)/2,i=ia(n*i),a*=2;r=a*u[c]*t;do{r=(ea(o=s[c]*Bo(i=r)/u[c])+r)/2}while(--c);return[Bo(r),o=Do(r),o/Do(r-i),r]}function Ra(t,e){if(!e)return t;if(1===e)return Ao(Wo(t/2+Yo));for(var n=1,i=ia(1-e),r=ia(e),o=0;Io(r)>Ho;o++){if(t%qo){var a=To(i*Wo(t)/n);a<0&&(a+=qo),t+=a+~~(t/qo)*qo}else t+=t;r=(n+i)/2,i=ia(n*i),r=((n=r)-i)/2}return t/(Ro(2,o)*n)}function ka(t,e){var n=(Jo-1)/(Jo+1),i=ia(1-n*n),r=Ra(Xo,i*i),o=Ao(Wo(qo/4+Io(e)/2)),a=No(-1*o)/ia(n),u=function(t,e){var n=t*t,i=e+1,r=1-n-e*e;return[.5*((t>=0?Xo:-Xo)-Go(r,2*t)),-.25*Ao(r*r+4*n)+.5*Ao(i*i+n)]}(a*Do(-1*t),a*Bo(-1*t)),s=function(t,e,n){var i=Io(t),r=ra(Io(e));if(i){var o=1/Bo(i),a=1/(Wo(i)*Wo(i)),u=-(a+n*(r*r*o*o)-1+n),s=(-u+ia(u*u-(n-1)*a*4))/2;return[Ra(To(1/ia(s)),n)*ko(t),Ra(To(ia((s/a-1)/n)),1-n)*ko(e)]}return[0,Ra(To(r),1-n)*ko(e)]}(u[0],u[1],i*i);return[-s[1],(e>=0?1:-1)*(.5*r-s[0])]}ka.invert=function(t,e){var n=(Jo-1)/(Jo+1),i=ia(1-n*n),r=function(t,e,n){var i,r,o;return t?(i=Va(t,n),e?(o=(r=Va(e,1-n))[1]*r[1]+n*i[0]*i[0]*r[0]*r[0],[[i[0]*r[2]/o,i[1]*i[2]*r[0]*r[1]/o],[i[1]*r[1]/o,-i[0]*i[2]*r[0]*r[2]/o],[i[2]*r[1]*r[2]/o,-n*i[0]*i[1]*r[0]/o]]):[[i[0],0],[i[1],0],[i[2],0]]):[[0,(r=Va(e,1-n))[0]/r[1]],[1/r[1],0],[r[2]/r[1],0]]}(.5*Ra(Xo,i*i)-e,-t,i*i),o=function(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}(r[0],r[1]);return[Go(o[1],o[0])/-1,2*To(No(-.5*Ao(n*o[0]*o[0]+n*o[1]*o[1])))-Xo]};_a(0);var Ba=.7109889596207567,Wa=.0528035274542;function Ha(t,e){return e>-Ba?((t=da(t,e))[1]+=Wa,t):ya(t,e)}Ha.invert=function(t,e){return e>-Ba?da.invert(t,e-Wa):ya.invert(t,e)};function Za(t,e){return Io(e)>Ba?((t=da(t,e))[1]-=e>0?Wa:-Wa,t):ya(t,e)}Za.invert=function(t,e){return Io(e)>Ba?da.invert(t,e+(e>0?Wa:-Wa)):ya.invert(t,e)};function qa(t,e){return[3/Qo*t*ia(qo*qo/3-e*e),e]}qa.invert=function(t,e){return[Qo/3*t/ia(qo*qo/3-e*e),e]};var Xa=qo/Jo;function Ya(t,e){return[t*(1+ia(Do(e)))/2,e/(Do(e/2)*Do(t/6))]}Ya.invert=function(t,e){var n=Io(t),i=Io(e),r=Ho,o=Xo;i<Xa?o*=i/Xa:r+=6*na(Xa/i);for(var a=0;a<25;a++){var u=Bo(o),s=ia(Do(o)),c=Bo(o/2),l=Do(o/2),h=Bo(r/6),p=Do(r/6),f=.5*r*(1+s)-n,d=o/(l*p)-i,g=s?-.25*r*u/s:0,v=.5*(1+s),m=(1+.5*o*c/l)/(l*p),y=o/l*(h/6)/(p*p),b=g*y-m*v,P=(f*y-d*v)/b,S=(d*g-f*m)/b;if(o-=P,r-=S,Io(P)<Ho&&Io(S)<Ho)break}return[t<0?-r:r,e<0?-o:o]};function Ua(t,e){var n=t*t,i=e*e;return[t*(.975534+i*(-.0143059*n-.119161+-.0547009*i)),e*(1.00384+n*(.0802894+-.02855*i+199025e-9*n)+i*(.0998909+-.0491032*i))]}Ua.invert=function(t,e){var n=ko(t)*qo,i=e/2,r=50;do{var o=n*n,a=i*i,u=n*i,s=n*(.975534+a*(-.0143059*o-.119161+-.0547009*a))-t,c=i*(1.00384+o*(.0802894+-.02855*a+199025e-9*o)+a*(.0998909+-.0491032*a))-e,l=.975534-a*(.119161+3*o*.0143059+.0547009*a),h=-u*(.238322+.2188036*a+.0286118*o),p=u*(.1605788+7961e-7*o+-.0571*a),f=1.00384+o*(.0802894+199025e-9*o)+a*(3*(.0998909-.02855*o)-.245516*a),d=h*p-f*l,g=(c*h-s*f)/d,v=(s*p-c*l)/d;n-=g,i-=v}while((Io(g)>Ho||Io(v)>Ho)&&--r>0);return r&&[n,i]};function Ja(t,e){return[Bo(t)/Do(e),Wo(e)*Do(t)]}Ja.invert=function(t,e){var n=t*t,i=e*e+1,r=n+i,o=t?Uo*ia((r-ia(r*r-4*n))/n):1/ia(i);return[ea(t*o),ko(e)*na(o)]};function Ka(t,e){return[t,1.25*Ao(Wo(Yo+.4*e))]}Ka.invert=function(t,e){return[t,2.5*To(No(.8*e))-.625*qo]};var Qa=function(){return Di(Ka).scale(108.318)};var $a=ia(6),tu=ia(7);function eu(t,e){var n=ea(7*Bo(e)/(3*$a));return[$a*t*(2*Do(2*n/3)-1)/tu,9*Bo(n/3)/tu]}eu.invert=function(t,e){var n=3*ea(e*tu/9);return[t*tu/($a*(2*Do(2*n/3)-1)),ea(3*Bo(n)*$a/7)]};function nu(t,e){for(var n,i=(1+Uo)*Bo(e),r=e,o=0;o<25&&(r-=n=(Bo(r/2)+Bo(r)-i)/(.5*Do(r/2)+Do(r)),!(Io(n)<Ho));o++);return[t*(1+2*Do(r)/Do(r/2))/(3*Jo),2*ia(3)*Bo(r/2)/ia(2+Jo)]}nu.invert=function(t,e){var n=e*ia(2+Jo)/(2*ia(3)),i=2*ea(n);return[3*Jo*t/(1+2*Do(i)/Do(i/2)),ea((n+Bo(i))/(1+Uo))]};function iu(t,e){for(var n,i=ia(6/(4+qo)),r=(1+qo/4)*Bo(e),o=e/2,a=0;a<25&&(o-=n=(o/2+Bo(o)-r)/(.5+Do(o)),!(Io(n)<Ho));a++);return[i*(.5+Do(o))*t/1.5,i*o]}iu.invert=function(t,e){var n=ia(6/(4+qo)),i=e/n;return Io(Io(i)-Xo)<Ho&&(i=i<0?-Xo:Xo),[1.5*t/(n*(.5+Do(i))),ea((i/2+Bo(i))/(1+qo/4))]};function ru(t,e){var n=e*e,i=n*n,r=n*i;return[t*(.84719-.13063*n+r*r*(.05494*n-.04515-.02326*i+.00331*r)),e*(1.01183+i*i*(.01926*n-.02625-.00396*i))]}ru.invert=function(t,e){var n,i,r,o,a=e,u=25;do{a-=n=(a*(1.01183+(r=(i=a*a)*i)*r*(.01926*i-.02625-.00396*r))-e)/(1.01183+r*r*(.21186*i-.23625+-.05148*r))}while(Io(n)>Zo&&--u>0);return[t/(.84719-.13063*(i=a*a)+(o=i*(r=i*i))*o*(.05494*i-.04515-.02326*r+.00331*o)),a]};function ou(t,e){return[t*(1+Do(e))/2,2*(e-Wo(e/2))]}ou.invert=function(t,e){for(var n=e/2,i=0,r=1/0;i<10&&Io(r)>Ho;++i){var o=Do(e/2);e-=r=(e-Wo(e/2)-n)/(1-.5/(o*o))}return[2*t/(1+Do(e)),e]};function au(t,e){var n=Bo(e),i=Do(e),r=ko(t);if(0===t||Io(e)===Xo)return[0,e];if(0===e)return[t,0];if(Io(t)===Xo)return[t*i,Xo*n];var o=qo/(2*t)-2*t/qo,a=2*e/qo,u=(1-a*a)/(n-a),s=o*o,c=u*u,l=1+s/c,h=1+c/s,p=(o*n/u-o/2)/l,f=(c*n/s+u/2)/h,d=f*f-(c*n*n/s+u*n-1)/h;return[Xo*(p+ia(p*p+i*i/l)*r),Xo*(f+ia(d<0?0:d)*ko(-e*o)*r)]}au.invert=function(t,e){var n=(t/=Xo)*t,i=n+(e/=Xo)*e,r=qo*qo;return[t?(i-1+ia((1-i)*(1-i)+4*n))/(2*t)*Xo:0,Na(function(t){return i*(qo*Bo(t)-2*t)*qo+4*t*t*(e-Bo(t))+2*qo*t-r*e},0)]};var uu=1.0148,su=.23185,cu=-.14499,lu=.02406,hu=uu,pu=5*su,fu=7*cu,du=9*lu;function gu(t,e){var n=e*e;return[t,e*(uu+n*n*(su+n*(cu+lu*n)))]}gu.invert=function(t,e){e>1.790857183?e=1.790857183:e<-1.790857183&&(e=-1.790857183);var n,i=e;do{var r=i*i;i-=n=(i*(uu+r*r*(su+r*(cu+lu*r)))-e)/(hu+r*r*(pu+r*(fu+du*r)))}while(Io(n)>Ho);return[t,i]};function vu(t,e){if(Io(e)<Ho)return[t,0];var n=Wo(e),i=t*Bo(e);return[Bo(i)/n,e+(1-Do(i))/n]}vu.invert=function(t,e){if(Io(e)<Ho)return[t,0];var n,i=t*t+e*e,r=.5*e,o=10;do{var a=Wo(r),u=1/Do(r),s=i-2*e*r+r*r;r-=n=(a*s+2*(r-e))/(2+s*u*u+2*(r-e)*a)}while(Io(n)>Ho&&--o>0);return a=Wo(r),[(Io(e)<Io(r+1/a)?ea(t*a):ko(t)*(na(Io(t*a))+Xo))/Bo(r),r]};var mu=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],yu=([[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(t){return t.map(function(t){return mu[t]})}),2/ia(3));function bu(t,e){var n=ba(t,e);return[n[0]*yu,n[1]]}bu.invert=function(t,e){return ba.invert(t/yu,e)};var Pu=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function Su(t,e){var n,i=Vo(18,36*Io(e)/qo),r=zo(i),o=i-r,a=(n=Pu[r])[0],u=n[1],s=(n=Pu[++r])[0],c=n[1],l=(n=Pu[Vo(19,++r)])[0],h=n[1];return[t*(s+o*(l-a)/2+o*o*(l-2*s+a)/2),(e>0?Xo:-Xo)*(c+o*(h-u)/2+o*o*(h-2*c+u)/2)]}Pu.forEach(function(t){t[1]*=1.0144}),Su.invert=function(t,e){var n=e/Xo,i=90*n,r=Vo(18,Io(i/5)),o=Fo(0,zo(r));do{var a=Pu[o][1],u=Pu[o+1][1],s=Pu[Vo(19,o+2)][1],c=s-a,l=s-2*u+a,h=2*(Io(n)-u)/c,p=l/c,f=h*(1-p*h*(1-2*p*h));if(f>=0||1===o){i=(e>=0?5:-5)*(f+r);var d,g=50;do{f=(r=Vo(18,Io(i)/5))-(o=zo(r)),a=Pu[o][1],u=Pu[o+1][1],s=Pu[Vo(19,o+2)][1],i-=(d=(e>=0?Xo:-Xo)*(u+f*(s-a)/2+f*f*(s-2*u+a)/2)-e)*$o}while(Io(d)>Zo&&--g>0);break}}while(--o>=0);var v=Pu[o][0],m=Pu[o+1][0],y=Pu[Vo(19,o+2)][0];return[t/(m+f*(y-v)/2+f*f*(y-2*m+v)/2),i*ta]};function _u(t,e){var n=Wo(e/2),i=Bo(Yo*n);return[t*(.74482-.34588*i*i),1.70711*n]}_u.invert=function(t,e){var n=e/1.70711,i=Bo(Yo*n);return[t/(.74482-.34588*i*i),2*To(n)]};function Mu(t,e){if(Io(e)<Ho)return[t,0];var n=Io(e/Xo),i=ea(n);if(Io(t)<Ho||Io(Io(e)-Xo)<Ho)return[0,ko(e)*qo*Wo(i/2)];var r=Do(i),o=Io(qo/t-t/qo)/2,a=o*o,u=r/(n+r-1),s=u*(2/n-1),c=s*s,l=c+a,h=u-c,p=a+u;return[ko(t)*qo*(o*h+ia(a*h*h-l*(u*u-c)))/l,ko(e)*qo*(s*p-o*ia((a+1)*l-p*p))/l]}Mu.invert=function(t,e){if(Io(e)<Ho)return[t,0];if(Io(t)<Ho)return[0,Xo*Bo(2*To(e/qo))];var n=(t/=qo)*t,i=(e/=qo)*e,r=n+i,o=r*r,a=-Io(e)*(1+r),u=a-2*i+n,s=-2*a+1+2*i+o,c=i/s+(2*u*u*u/(s*s*s)-9*a*u/(s*s))/27,l=(a-u*u/(3*s))/s,h=2*ia(-l/3),p=na(3*c/(l*h))/3;return[qo*(r-1+ia(1+2*(n-i)+o))/(2*t),ko(e)*qo*(-h*Do(p+qo/3)-u/(3*s))]};function xu(t,e){if(Io(e)<Ho)return[t,0];var n=Io(e/Xo),i=ea(n);if(Io(t)<Ho||Io(Io(e)-Xo)<Ho)return[0,ko(e)*qo*Wo(i/2)];var r=Do(i),o=Io(qo/t-t/qo)/2,a=o*o,u=r*(ia(1+a)-o*r)/(1+a*n*n);return[ko(t)*qo*u,ko(e)*qo*ia(1-u*(2*o+u))]}xu.invert=function(t,e){if(!t)return[0,Xo*Bo(2*To(e/qo))];var n=Io(t/qo),i=(1-n*n-(e/=qo)*e)/(2*n),r=ia(i*i+1);return[ko(t)*qo*(r-i),ko(e)*Xo*Bo(2*Go(ia((1-2*i*n)*(i+r)-n),ia(r+i+n)))]};function wu(t,e){if(Io(e)<Ho)return[t,0];var n=e/Xo,i=ea(n);if(Io(t)<Ho||Io(Io(e)-Xo)<Ho)return[0,qo*Wo(i/2)];var r=(qo/t-t/qo)/2,o=n/(1+Do(i));return[qo*(ko(t)*ia(r*r+1-o*o)-r),qo*o]}wu.invert=function(t,e){if(!e)return[t,0];var n=e/qo,i=(qo*qo*(1-n*n)-t*t)/(2*qo*t);return[t?qo*(ko(t)*ia(i*i+1)-i):0,Xo*Bo(2*To(n))]};function ju(t,e){if(!e)return[t,0];var n=Io(e);if(!t||n===Xo)return[0,e];var i=n/Xo,r=i*i,o=(8*i-r*(r+2)-5)/(2*r*(i-1)),a=o*o,u=i*o,s=r+a+2*u,c=i+3*o,l=t/Xo,h=l+1/l,p=ko(Io(t)-Xo)*ia(h*h-4),f=p*p,d=(p*(s+a-1)+2*ia(s*(r+a*f-1)+(1-r)*(r*(c*c+4*a)+12*u*a+4*a*a)))/(4*s+f);return[ko(t)*Xo*d,ko(e)*Xo*ia(1+p*Io(d)-d*d)]}ju.invert=function(t,e){var n;if(!t||!e)return[t,e];e/=qo;var i=ko(t)*t/Xo,r=(i*i-1+4*e*e)/Io(i),o=r*r,a=2*e,u=50;do{var s=a*a,c=(8*a-s*(s+2)-5)/(2*s*(a-1)),l=(3*a-s*a-10)/(2*s*a),h=c*c,p=a*c,f=a+c,d=f*f,g=a+3*c,v=-2*f*(4*p*h+(1-4*s+3*s*s)*(1+l)+h*(14*s-6-o+(8*s-8-2*o)*l)+p*(12*s-8+(10*s-10-o)*l)),m=ia(d*(s+h*o-1)+(1-s)*(s*(g*g+4*h)+h*(12*p+4*h)));a-=n=(r*(d+h-1)+2*m-i*(4*d+o))/(r*(2*c*l+2*f*(1+l))+v/m-8*f*(r*(-1+h+d)+2*m)*(1+l)/(o+4*d))}while(n>Ho&&--u>0);return[ko(t)*(ia(r*r+4)+r)*qo/4,Xo*a]};var Lu=4*qo+3*ia(3),Cu=2*ia(2*qo*ia(3)/Lu);fa(Cu*ia(3)/qo,Cu,Lu/6);function Eu(t,e){return[t*ia(1-3*e*e/(qo*qo)),e]}Eu.invert=function(t,e){return[t/ia(1-3*e*e/(qo*qo)),e]};function Ou(t,e){var n=.90631*Bo(e),i=ia(1-n*n),r=ia(2/(1+i*Do(t/=3)));return[2.66723*i*r*Bo(t),1.24104*n*r]}Ou.invert=function(t,e){var n=t/2.66723,i=e/1.24104,r=ia(n*n+i*i),o=2*ea(r/2);return[3*Go(t*Wo(o),2.66723*r),r&&ea(e*Bo(o)/(1.24104*.90631*r))]};function Iu(t,e){var n=Do(e),i=Do(t)*n,r=1-i,o=Do(t=Go(Bo(t)*n,-Bo(e))),a=Bo(t);return[a*(n=ia(1-i*i))-o*r,-o*n-a*r]}Iu.invert=function(t,e){var n=(t*t+e*e)/-2,i=ia(-n*(2+n)),r=e*n+t*i,o=t*n-e*i,a=ia(o*o+r*r);return[Go(i*r,a*(1+n)),a?-ea(i*o/a):0]};function Tu(t,e){var n=aa(t,e);return[(n[0]+t/Xo)/2,(n[1]+e)/2]}Tu.invert=function(t,e){var n=t,i=e,r=25;do{var o,a=Do(i),u=Bo(i),s=Bo(2*i),c=u*u,l=a*a,h=Bo(n),p=Do(n/2),f=Bo(n/2),d=f*f,g=1-l*p*p,v=g?na(a*p)*ia(o=1/g):o=0,m=.5*(2*v*a*f+n/Xo)-t,y=.5*(v*u+i)-e,b=.5*o*(l*d+v*a*p*c)+.5/Xo,P=o*(h*s/4-v*u*f),S=.125*o*(s*f-v*u*l*h),_=.5*o*(c*p+v*d*a)+.5,M=P*S-_*b,x=(y*P-m*_)/M,w=(m*S-y*b)/M;n-=x,i-=w}while((Io(x)>Ho||Io(w)>Ho)&&--r>0);return[n,i]};var Gu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Qa(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.Miller=Gu;var Du=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Ea(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.Eckert6=Du;var Nu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=mr(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.Orthographic=Nu;var zu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=br(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.Stereographic=zu;var Au=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Vi(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.Albers=Au;var Fu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Ri(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.AlbersUsa=Fu;var Vu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=gr(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.NaturalEarth1=Vu;var Ru=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Hi(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.AzimuthalEqualArea=Ru;var ku=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=cr(),e}return c.c(e,t),e}(qr);d.b.registeredClasses.EqualEarth=ku,window.am4maps=a},QaCB:function(t,e,n){"use strict";function i(t,e){if(!(this instanceof i))return new i(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||r,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)}function r(t,e){return t<e?-1:t>e?1:0}t.exports=i,t.exports.default=i,i.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,n=this.compare,i=e[t];t>0;){var r=t-1>>1,o=e[r];if(n(i,o)>=0)break;e[t]=o,t=r}e[t]=i},_down:function(t){for(var e=this.data,n=this.compare,i=this.length>>1,r=e[t];t<i;){var o=1+(t<<1),a=o+1,u=e[o];if(a<this.length&&n(e[a],u)<0&&(o=a,u=e[a]),n(u,r)>=0)break;e[t]=u,t=o}e[t]=r}}},U8r1:function(t,e,n){"use strict";var i=n("QaCB");function r(t,e,n){var r,u,s,c;e=e||1;for(var l=0;l<t[0].length;l++){var h=t[0][l];(!l||h[0]<r)&&(r=h[0]),(!l||h[1]<u)&&(u=h[1]),(!l||h[0]>s)&&(s=h[0]),(!l||h[1]>c)&&(c=h[1])}var p=s-r,f=c-u,d=Math.min(p,f),g=d/2,v=new i(null,o);if(0===d)return[r,u];for(var m=r;m<s;m+=d)for(var y=u;y<c;y+=d)v.push(new a(m+g,y+g,g,t));var b=function(t){for(var e=0,n=0,i=0,r=t[0],o=0,u=r.length,s=u-1;o<u;s=o++){var c=r[o],l=r[s],h=c[0]*l[1]-l[0]*c[1];n+=(c[0]+l[0])*h,i+=(c[1]+l[1])*h,e+=3*h}return 0===e?new a(r[0][0],r[0][1],0,t):new a(n/e,i/e,0,t)}(t),P=new a(r+p/2,u+f/2,0,t);P.d>b.d&&(b=P);for(var S=v.length;v.length;){var _=v.pop();_.d>b.d&&(b=_,n&&console.log("found best %d after %d probes",Math.round(1e4*_.d)/1e4,S)),_.max-b.d<=e||(g=_.h/2,v.push(new a(_.x-g,_.y-g,g,t)),v.push(new a(_.x+g,_.y-g,g,t)),v.push(new a(_.x-g,_.y+g,g,t)),v.push(new a(_.x+g,_.y+g,g,t)),S+=4)}return n&&(console.log("num probes: "+S),console.log("best distance: "+b.d)),[b.x,b.y]}function o(t,e){return e.max-t.max}function a(t,e,n,i){this.x=t,this.y=e,this.h=n,this.d=function(t,e,n){for(var i=!1,r=1/0,o=0;o<n.length;o++)for(var a=n[o],s=0,c=a.length,l=c-1;s<c;l=s++){var h=a[s],p=a[l];h[1]>e!=p[1]>e&&t<(p[0]-h[0])*(e-h[1])/(p[1]-h[1])+h[0]&&(i=!i),r=Math.min(r,u(t,e,h,p))}return(i?1:-1)*Math.sqrt(r)}(t,e,i),this.max=this.d+this.h*Math.SQRT2}function u(t,e,n,i){var r=n[0],o=n[1],a=i[0]-r,u=i[1]-o;if(0!==a||0!==u){var s=((t-r)*a+(e-o)*u)/(a*a+u*u);s>1?(r=i[0],o=i[1]):s>0&&(r+=a*s,o+=u*s)}return(a=t-r)*a+(u=e-o)*u}t.exports=r,t.exports.default=r}},["QJ7E"]);
//# sourceMappingURL=maps.js.map