/**
 * @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
 */
webpackJsonp([5],{148:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var o=i(0),n=i(9),r=i(1),a=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 o.c(e,t),e.prototype.validate=function(){this.series&&(this.readerTitle=this.series.itemReaderText),t.prototype.validate.call(this)},e}(n.a);r.b.registeredClasses.MapObject=a},149:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizePoint=r,e.normalizeMultiline=function(t){try{for(var e=o.g(t),i=e.next();!i.done;i=e.next()){var n=i.value;try{for(var a=o.g(n),s=a.next();!s.done;s=a.next()){var u=s.value;u=r(u)}}catch(t){c={error:t}}finally{try{s&&!s.done&&(p=a.return)&&p.call(a)}finally{if(c)throw c.error}}}}catch(t){l={error:t}}finally{try{i&&!i.done&&(h=e.return)&&h.call(e)}finally{if(l)throw l.error}}return t;var l,h,c,p},e.wrapAngleTo180=a,e.geoToPoint=function(t){return{x:t.longitude,y:t.latitude}};var o=i(0),n=i(4);function r(t){var e=a(t.longitude),i=Math.asin(Math.sin(t.latitude*n.RADIANS))*n.DEGREES,o=a(t.latitude);return Math.abs(o)>90&&(e=a(e+180)),t.longitude=e,t.latitude=i,t}function a(t){return(t%=360)>180&&(t-=360),t<-180&&(t+=360),t}},150:function(t,e,i){"use strict";i.d(e,"a",function(){return m});var o=i(0),n=i(148),r=i(315),a=i(133),s=i(11),u=i(110),l=i(1),h=i(14),c=i(13),p=i(8),d=i(3),g=i(5),f=i(149),m=function(t){function e(){var e=t.call(this)||this;e.className="MapLine",e.createLine(),e.line.stroke=Object(h.c)(),e.line.parent=e,e.strokeOpacity=1;var i=new c.a;return e.stroke=i.getFor("grid"),e.shortestDistance=!0,e.applyTheme(),e}return o.c(e,t),e.prototype.createLine=function(){this.line=new u.a},e.prototype.positionToPoint=function(t){return this.line?this.line.positionToPoint(t):{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){return this.getPropertyValue("multiGeoLine")},set:function(t){this.setPropertyValue("multiGeoLine",f.normalizeMultiline(t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imagesToConnect",{get:function(){return this.getPropertyValue("imagesToConnect")},set:function(t){for(var e=this,i=0,o=t.length;i<o;i++){var n=t[i];if(d.isString(n)){if(!this.map.hasKey(n))continue;n=this.map.getKey(n),t[i]=n}n.events.on("propertychanged",function(t){"longitude"!=t.property&&"latitude"!=t.property||e.invalidate()},this,!1)}this.setPropertyValue("imagesToConnect",t)},enumerable:!0,configurable:!0}),e.prototype.validate=function(){var e,i,n=this.series.chart,r=this.multiGeoLine||[];if(this.imagesToConnect){var a=[];r=[a];try{for(var s=o.g(this.imagesToConnect),u=s.next();!u.done;u=s.next()){var l=u.value;a.push({longitude:l.longitude,latitude:l.latitude})}}catch(t){e={error:t}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}}if(this.shortestDistance){for(var h=[],c=0,p=r.length;c<p;c++){for(var d=r[c],f=[],m=1,y=d.length;m<y;m++){for(var v=d[m-1],b=d[m],P=4*Math.max(Math.abs(v.latitude-b.latitude),Math.abs(v.longitude-b.longitude)),M=0;M<P;M++){var L=n.projection.intermediatePoint(v,b,M/P);if(f.length>0){var x=f[f.length-1];Math.abs(x.longitude-L.longitude)>359&&(h.push(f),f=[])}f.push(L)}f.push(b)}h.push(f)}r=h}this.line.segments=n.projection.projectGeoLine(r),this._arrow&&this._arrow.validatePosition(),g.each(this.lineObjects.iterator(),function(t){t.validatePosition()}),t.prototype.validate.call(this)},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 s.e(new r.a),this._lineObjects.events.on("inserted",this.handleLineObjectAdded,this,!1),this._disposers.push(new s.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.parent=this},Object.defineProperty(e.prototype,"arrow",{get:function(){if(!this._arrow){var t=this.createChild(r.a);t.shouldClone=!1,t.width=8,t.height=10,t.mapLine=this,t.position=.5;var e=t.createChild(a.a);e.fillOpacity=1,e.width=Object(p.c)(100),e.height=Object(p.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(){var t=this.dataItem;return t.north+(t.south-t.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){var t=this.dataItem;return t.east+(t.west-t.east)/2},enumerable:!0,configurable:!0}),e}(n.a);l.b.registeredClasses.MapLine=m},151:function(t,e,i){"use strict";function o(t){for(var e=[],i=0,o=t.length;i<o;i++)e.push(n(t[i]));return e}function n(t){return{longitude:t[0],latitude:t[1]}}e.c=function(t){for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i][0],a=t[i][1];e[i]=[],r&&e[i].push(o(r)),a&&e[i].push(o(a))}return e},e.a=function(t){for(var e=[],i=0,n=t.length;i<n;i++)e.push(o(t[i]));return e},e.b=o,e.d=n},208:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var o=i(0),n=i(148),r=i(1),a=i(3),s=function(t){function e(){var e=t.call(this)||this;return e.className="MapImage",e.applyTheme(),e}return o.c(e,t),Object.defineProperty(e.prototype,"latitude",{get:function(){return this.getPropertyValue("latitude")},set:function(t){this.setPropertyValue("latitude",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.getPropertyValue("longitude")},set:function(t){this.setPropertyValue("longitude",t,!1,!0)},enumerable:!0,configurable:!0}),e.prototype.validatePosition=function(){a.isNumber(this.latitude)&&a.isNumber(this.longitude)&&this.moveTo(this.series.chart.projection.convert({latitude:this.latitude,longitude:this.longitude})),t.prototype.validatePosition.call(this)},e}(n.a);r.b.registeredClasses.MapImage=s},209:function(t,e,i){"use strict";i.d(e,"a",function(){return u});var o=i(0),n=i(148),r=i(311),a=i(1),s=i(13),u=function(t){function e(){var e=t.call(this)||this;e.className="MapPolygon",e.polygon=e.createChild(r.a),e.polygon.shouldClone=!1;var i=new s.a;return e.fill=i.getFor("secondaryButton"),e.stroke=i.getFor("secondaryButtonStroke"),e.strokeOpacity=1,e.tooltipPosition="pointer",e.applyTheme(),e}return o.c(e,t),Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){return this.getPropertyValue("multiGeoPolygon")},set:function(t){this.setPropertyValue("multiGeoPolygon",t,!0)},enumerable:!0,configurable:!0}),e.prototype.validate=function(){this.series&&(this.polygon.points=this.series.chart.projection.projectGeoArea(this.multiGeoPolygon)),t.prototype.validate.call(this)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"latitude",{get:function(){var t=this.dataItem;return t.north+(t.south-t.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){var t=this.dataItem;return t.east+(t.west-t.east)/2},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}(n.a);a.b.registeredClasses.MapPolygon=u},210:function(t,e,i){"use strict";i.d(e,"b",function(){return d}),i.d(e,"a",function(){return g});var o=i(0),n=i(101),r=i(150),a=i(11),s=i(1),u=i(151),l=i(16),h=i(6),c=i(5),p=i(7),d=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeriesDataItem",e.applyTheme(),e}return o.c(e,t),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 p.b(function(){t.component.mapLines.removeValue(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.multiGeoLine=u.a([t])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){return this._multiLine},set:function(t){this._multiLine=t,this.multiGeoLine=u.a(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoLine",{get:function(){return this._geoLine},set:function(t){this._geoLine=t,this.multiGeoLine=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){return this._multiGeoLine},set:function(t){this._multiGeoLine=t,this.updateLineExtremes(t),this.mapLine.multiGeoLine=this._multiGeoLine},enumerable:!0,configurable:!0}),e.prototype.updateLineExtremes=function(t){for(var e=0,i=t.length;e<i;e++){var o=t[e];this.updateExtremes(o)}},e}(n.b),g=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.applyTheme(),e}return o.c(e,t),e.prototype.createDataItem=function(){return new d},e.prototype.validateData=function(){var e=this;if(this.data.length>0&&this.mapLines.clear(),this.useGeodata||this.geodata){var i=this.chart.geodata;if(i){var o=void 0;if("FeatureCollection"==i.type?o=i.features:"Feature"==i.type?o=[i]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(i.type)?o=[{geometry:i}]:console.log("nothing found in geoJSON"),o)for(var n=function(t,e){var i=o[t],n=i.geometry;if(n){var a=n.type,s=i.id;if("LineString"==a||"MultiLineString"==a){if(!r.checkInclude(r.include,r.exclude,s))return"continue";var u=n.coordinates;u&&"MultiLineString"==a&&(u=[u]);var c=l.find(r.data,function(t,e){return t.id==s});c?c.multiLineString||(c.multiLineString=u):(c={multiLineString:u,id:s},r.data.push(c)),h.softCopyProperties(i.properties,c)}}},r=this,a=0,s=o.length;a<s;a++)n(a)}}t.prototype.validateData.call(this),c.each(this.dataItems.iterator(),function(t){e.mapLines.moveValue(t.mapLine)})},Object.defineProperty(e.prototype,"mapLines",{get:function(){if(!this._mapLines){var t=this.createLine(),e=new a.e(t);this._disposers.push(new a.c(e)),this._disposers.push(e.template),e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapLines=e}return this._mapLines},enumerable:!0,configurable:!0}),e.prototype.createLine=function(){return new r.a},e.prototype.validate=function(){t.prototype.validate.call(this),c.each(this.mapLines.iterator(),function(t){t.validate()})},e.prototype.copyFrom=function(e){this.mapLines.template.copyFrom(e.mapLines.template),t.prototype.copyFrom.call(this,e)},e}(n.a);s.b.registeredClasses.MapLineSeries=g,s.b.registeredClasses.MapLineSeriesDataItem=d},214:function(t,e,i){"use strict";i.d(e,"a",function(){return d});var o=i(0),n=i(9),r=i(102),a=i(11),s=i(7),u=i(1),l=i(14),h=i(13),c=i(6),p=i(3),d=function(t){function e(){var e=t.call(this)||this;e._chart=new s.d,e.className="SmallMap",e.align="left",e.valign="bottom",e.percentHeight=20,e.percentWidth=20,e.margin(5,5,5,5);var i=new h.a;e.background.fillOpacity=.9,e.background.fill=i.getFor("background"),e.events.on("hit",e.moveToPosition,e,!1),e.events.on("maxsizechanged",e.updateMapSize,e,!1),e.seriesContainer=e.createChild(n.a),e.seriesContainer.shouldClone=!1;var o=e.createChild(r.a);return o.shouldClone=!1,o.stroke=i.getFor("alternativeBackground"),o.strokeWidth=1,o.strokeOpacity=.5,o.fill=Object(l.c)(),o.verticalCenter="middle",o.horizontalCenter="middle",o.isMeasured=!1,e.rectangle=o,e._disposers.push(e._chart),e.applyTheme(),e}return o.c(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new a.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 i=e.clone();this._series.removeValue(e),this._series.push(i),e=i,this.chart.dataUsers.push(i)}e.chart=this.chart,e.parent=this.seriesContainer,e.interactionsEnabled=!1},e.prototype.handleSeriesRemoved=function(t){this.invalidate()},e.prototype.moveToPosition=function(t){var e=t.svgPoint,i=c.svgPointToSprite(e,this.rectangle),o=this.chart.zoomLevel,n=Math.min(this.percentWidth,this.percentHeight)/100,r=(i.x+this.rectangle.pixelWidth/2)/n*o,a=(i.y+this.rectangle.pixelHeight/2)/n*o,s=this.chart.svgPointToGeo({x:r,y:a});this.chart.zoomToGeoPoint(s,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 s.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,i=this.rectangle;i.width=this.pixelWidth/e,i.height=this.pixelHeight/e;var o=Math.min(this.percentWidth,this.percentHeight)/100,n=t.seriesContainer;i.x=Math.ceil((e*n.pixelWidth/2-n.pixelX)*o/e+i.pixelWidth/2),i.y=Math.ceil((e*n.pixelHeight/2-n.pixelY)*o/e+i.pixelHeight/2),i.validate()},e.prototype.updateMapSize=function(){this.chart&&(this.seriesContainer.scale=this.chart.scaleRatio*Math.min(this.percentWidth,this.percentHeight)/100,this.updateRectangle(),this.afterDraw())},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.seriesContainer.moveTo({x:this.pixelWidth/2,y:this.pixelHeight/2}),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&&p.hasValue(e.series)&&p.isArray(e.series))for(var i=0,o=e.series.length;i<o;i++){var n=e.series[i];p.hasValue(n)&&p.isString(n)&&this.map.hasKey(n)&&(e.series[i]=this.map.getKey(n))}t.prototype.processConfig.call(this,e)},e}(n.a);u.b.registeredClasses.SmallMap=d},315:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var o=i(0),n=i(9),r=i(1),a=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 o.c(e,t),e.prototype.validatePosition=function(){if(this.mapLine){var e=this.mapLine.positionToPoint(this.position);if(this.x=e.x,this.y=e.y,this.adjustRotation&&(this.rotation=e.angle),this.mapLine.dataItem){var i=this.mapLine.dataItem.component;this.scale=1/i.scale}}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}(n.a);r.b.registeredClasses.MapLineObject=a},316:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var o=i(0),n=i(150),r=i(132),a=i(1),s=function(t){function e(){var e=t.call(this)||this;return e.className="MapSpline",e.applyTheme(),e}return o.c(e,t),e.prototype.createLine=function(){this.line=new r.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}(n.a);a.b.registeredClasses.MapSpline=s},317:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var o=i(0),n=i(150),r=i(310),a=i(1),s=function(t){function e(){var e=t.call(this)||this;return e.className="MapArc",e.applyTheme(),e}return o.c(e,t),e.prototype.createLine=function(){this.line=new r.a},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(n.a);a.b.registeredClasses.MapArc=s},318:function(t,e,i){"use strict";i.d(e,"a",function(){return d});var o=i(0),n=i(9),r=i(65),a=i(42),s=i(7),u=i(55),l=i(34),h=i(8),c=i(1),p=i(13),d=function(t){function e(){var e=t.call(this)||this;e._chart=new s.d,e.className="ZoomControl",e.align="right",e.valign="bottom",e.layout="vertical",e.padding(5,5,5,5);var i=new p.a,o=e.createChild(r.a);o.shouldClone=!1,o.label.text="+",o.width=Object(h.c)(100),o.padding(5,5,5,5),e.plusButton=o;var a=e.createChild(n.a);a.shouldClone=!1,a.width=Object(h.c)(100),a.background.fill=i.getFor("alternativeBackground"),a.background.fillOpacity=.05,a.background.events.on("hit",e.handleBackgroundClick,e,!1),a.events.on("sizechanged",e.updateThumbSize,e,!1),e.slider=a;var u=a.createChild(r.a);u.shouldClone=!1,u.padding(0,0,0,0),u.draggable=!0,u.events.on("drag",e.handleThumbDrag,e,!1),e.thumb=u;var l=e.createChild(r.a);return l.shouldClone=!1,l.label.text="-",l.padding(5,5,5,5),e.minusButton=l,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 o.c(e,t),e.prototype.fixLayout=function(){"vertical"==this.layout?(this.width=40,this.height=void 0,this.minusButton.width=Object(h.c)(100),this.thumb.width=Object(h.c)(100),this.plusButton.width=Object(h.c)(100),this.slider.width=Object(h.c)(100),this.minusButton.marginTop=1,this.plusButton.marginBottom=2,this.slider.height=0,this.minusButton.toFront(),this.plusButton.toBack(),this.thumb.minX=0,this.thumb.maxX=0,this.thumb.minY=0):"horizontal"==this.layout&&(this.thumb.minX=0,this.thumb.minY=0,this.thumb.maxY=0,this.height=40,this.width=void 0,this.minusButton.height=Object(h.c)(100),this.minusButton.width=30,this.thumb.height=Object(h.c)(100),this.thumb.width=void 0,this.plusButton.height=Object(h.c)(100),this.plusButton.width=30,this.slider.height=Object(h.c)(100),this.slider.width=0,this.minusButton.marginLeft=2,this.plusButton.marginRight=2,this.minusButton.toBack(),this.plusButton.toFront())},e.prototype.handleBackgroundClick=function(t){var e=t.target,i=t.spritePoint.y,o=this.chart,n=Math.log(o.maxZoomLevel)/Math.LN2,r=Math.log(o.minZoomLevel)/Math.LN2,a=(e.pixelHeight-i)/e.pixelHeight*(r+(n-r)),s=Math.pow(2,a);o.zoomToGeoPoint(o.zoomGeoPoint,s)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){var e=this;this._chart.set(t,new s.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(l.b)().body.events.on("keyup",function(i){e.topParent.hasFocused&&(u.b.isKey(i.event,"enter")?e.minusButton.isFocused?t.zoomOut():e.plusButton.isFocused&&t.zoomIn():u.b.isKey(i.event,"plus")?t.zoomIn():u.b.isKey(i.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,i=this.thumb;if(!i.isDown){var o=(Math.log(e.zoomLevel)-Math.log(this.chart.minZoomLevel))/Math.LN2;"vertical"==this.layout?i.y=t.pixelHeight-(t.pixelHeight-i.pixelHeight)*o/this.stepCount-i.pixelHeight:i.x=t.pixelWidth*o/this.stepCount}},e.prototype.handleThumbDrag=function(){var t,e=this.slider,i=this.chart,o=this.thumb;t=Math.log(this.chart.minZoomLevel)/Math.LN2+(t="vertical"==this.layout?this.stepCount*(e.pixelHeight-o.pixelY-o.pixelHeight)/(e.pixelHeight-o.pixelHeight):this.stepCount*o.pixelX/e.pixelWidth);var n=Math.pow(2,t);i.zoomToGeoPoint(void 0,n,!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 a.a},e}(n.a);c.b.registeredClasses.ZoomControl=d},552:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(553);window.am4maps=o},553:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(118);i.d(e,"LegendDataItem",function(){return o.b}),i.d(e,"Legend",function(){return o.a}),i.d(e,"LegendSettings",function(){return o.c});var n=i(266);i.d(e,"HeatLegend",function(){return n.a});var r=i(554);i.d(e,"MapChartDataItem",function(){return r.b}),i.d(e,"MapChart",function(){return r.a});var a=i(101);i.d(e,"MapSeriesDataItem",function(){return a.b}),i.d(e,"MapSeries",function(){return a.a});var s=i(148);i.d(e,"MapObject",function(){return s.a});var u=i(209);i.d(e,"MapPolygon",function(){return u.a});var l=i(208);i.d(e,"MapImage",function(){return l.a});var h=i(150);i.d(e,"MapLine",function(){return h.a});var c=i(315);i.d(e,"MapLineObject",function(){return c.a});var p=i(316);i.d(e,"MapSpline",function(){return p.a});var d=i(317);i.d(e,"MapArc",function(){return d.a});var g=i(555);i.d(e,"MapPolygonSeriesDataItem",function(){return g.b}),i.d(e,"MapPolygonSeries",function(){return g.a});var f=i(210);i.d(e,"MapLineSeriesDataItem",function(){return f.b}),i.d(e,"MapLineSeries",function(){return f.a});var m=i(556);i.d(e,"MapSplineSeriesDataItem",function(){return m.b}),i.d(e,"MapSplineSeries",function(){return m.a});var y=i(557);i.d(e,"MapImageSeriesDataItem",function(){return y.b}),i.d(e,"MapImageSeries",function(){return y.a});var v=i(558);i.d(e,"MapArcSeriesDataItem",function(){return v.b}),i.d(e,"MapArcSeries",function(){return v.a});var b=i(151);i.d(e,"multiPolygonToGeo",function(){return b.c}),i.d(e,"multiLineToGeo",function(){return b.a}),i.d(e,"multiPointToGeo",function(){return b.b}),i.d(e,"pointToGeo",function(){return b.d});var P=i(318);i.d(e,"ZoomControl",function(){return P.a});var M=i(214);i.d(e,"SmallMap",function(){return M.a});var L=i(88);i.d(e,"Projection",function(){return L.a});var x=i(559);i.d(e,"projections",function(){return x});var j=i(149);i.d(e,"geo",function(){return j})},554:function(t,e,i){"use strict";i.d(e,"b",function(){return b}),i.d(e,"a",function(){return P});var o=i(0),n=i(119),r=i(101),a=i(208),s=i(209),u=i(88),l=i(214),h=i(55),c=i(34),p=i(1),d=i(4),g=i(6),f=i(43),m=i(5),y=i(3),v=i(149),b=function(t){function e(){var e=t.call(this)||this;return e.className="MapChartDataItem",e.applyTheme(),e}return o.c(e,t),e}(n.b),P=function(t){function e(){var e=t.call(this)||this;e.scaleRatio=1,e.zoomDuration=1e3,e.zoomEasing=f.cubicOut,e.minZoomLevel=1,e.maxZoomLevel=32,e._prevZoomGeoPoint={latitude:0,longitude:0},e.className="MapChart",e.projection=new u.a,e.deltaLongitude=0,e.maxPanOut=.7,e.homeZoomLevel=1,e.padding(0,0,0,0),e.minWidth=10,e.minHeight=10,e.events.once("inited",e.handleAllInited,e,!1);var i=e.seriesContainer;i.draggable=!0,i.visible=!1,i.inert=!0,i.resizable=!0,i.events.on("transformed",e.handleMapTransform,e,!1),i.events.on("doublehit",e.handleDoubleHit,e,!1),i.events.on("drag",e.handleDrag,e,!1),i.zIndex=0,i.background.fillOpacity=0,e.events.on("datavalidated",e.updateExtremes,e,!1);var o=e.chartContainer;o.parent=e,o.isMeasured=!1,o.zIndex=-1,e._disposers.push(i.events.on("maxsizechanged",function(){e.inited&&(e._mapAnimation&&e._mapAnimation.stop(),e.updateScaleRatio(),e.zoomToGeoPoint(e._zoomGeoPointReal,e.zoomLevel,!0,0),e.series.each(function(t){t.updateTooltipBounds()}))},void 0,!1));var n=o.background;return n.fillOpacity=0,n.events.on("down",function(t){e.seriesContainer.dragStart(t.target.interactions.downPointers.getIndex(0))},e),n.events.on("up",function(t){e.seriesContainer.dragStop()},e),n.events.on("doublehit",e.handleDoubleHit,e),n.focusable=!0,o.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(c.b)().body.events.on("keyup",function(t){if(e.topParent.hasFocused&&(!e._zoomControl||!e._zoomControl.thumb.isFocused))switch(h.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",e.applyTheme(),e}return o.c(e,t),e.prototype.handleAllInited=function(){var t=!0;this.seriesContainer.visible=!0,this.series.each(function(e){e.inited||(t=!1)}),t?(this.updateExtremes(),this.goHome(0)):p.b.events.once("exitframe",this.handleAllInited,this,!1)},e.prototype.handleDrag=function(){var t=this.seriesWidth*this.zoomLevel*this.scaleRatio,e=this.seriesHeight*this.zoomLevel*this.scaleRatio,i=this.seriesContainer.pixelX,o=this.seriesContainer.pixelY,n=this.maxPanOut,r=Math.min(this.maxWidth*(1-n)-t/2,-t*(n-.5));i<r&&(i=r);var a=Math.max(this.maxWidth*n+t/2,this.maxWidth+t*(n-.5));i>a&&(i=a);var s=Math.min(this.maxHeight*(1-n)-e/2,-e*(n-.5));o<s&&(o=s);var u=Math.max(this.maxHeight*n+e/2,this.maxHeight+e*(n-.5));o>u&&(o=u),this.seriesContainer.moveTo({x:i,y:o},void 0,void 0,!0),this._zoomGeoPointReal=this.zoomGeoPoint},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),y.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=g.documentPointToSvg(t.point,this.htmlContainer),i=this.svgPointToGeo(e);this.zoomIn(i)},e.prototype.handleWheel=function(t){var e=g.documentPointToSvg(t.point,this.htmlContainer),i=this.svgPointToGeo(e);t.shift.y<0?this.zoomIn(i):this.zoomOut(i)},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,"projection",{get:function(){return this.getPropertyValue("projection")},set:function(t){t.deltaLongitude=this.deltaLongitude,this.setPropertyValue("projection",t)&&this.invalidateProjection()},enumerable:!0,configurable:!0}),e.prototype.updateExtremes=function(){var t=this,e=this.west,i=this.east,o=this.north,n=this.south;this.west=null,this.east=null,this.north=null,this.south=null;var r=this.chartContainer;if(m.each(this.series.iterator(),function(e){(t.west>e.west||!y.isNumber(t.west))&&(t.west=e.west),(t.east<e.east||!y.isNumber(t.east))&&(t.east=e.east),(t.north<e.north||!y.isNumber(t.north))&&(t.north=e.north),(t.south>e.south||!y.isNumber(t.south))&&(t.south=e.south)}),y.isNumber(this.east)&&y.isNumber(this.north)){this.projection.centerPoint={x:0,y:0},this.projection.scale=1;var a=this.projection.deltaLongitude;this.projection.deltaLongitude=0;var s=this.projection.convert({longitude:(this.east-this.west)/2,latitude:this.north}),u=this.projection.convert({longitude:(this.east-this.west)/2,latitude:this.south}),l=this.projection.convert({longitude:this.west,latitude:0}),h=this.projection.convert({longitude:this.east,latitude:0});this.projection.deltaLongitude=a,this.projection.centerPoint={x:l.x+(h.x-l.x)/2,y:s.y+(u.y-s.y)/2};var c=void 0,p=h.x-l.x,d=u.y-s.y,g=r.innerWidth/p,f=r.innerHeight/d;c=g>f?f:g,(y.isNaN(c)||c==1/0)&&(c=1);var v=!1;this.projection.scale!=c&&(this.projection.scale=c,v=!0),this.seriesWidth=p*c,this.seriesHeight=d*c;var b=this.projection.convert({longitude:(this.east-this.west)/2,latitude:this.north}),P=this.projection.convert({longitude:this.west-this.deltaLongitude,latitude:0});this._centerGeoPoint=this.projection.invert({x:P.x+this.seriesWidth/2,y:b.y+this.seriesHeight/2}),this.seriesContainer.definedBBox={x:P.x,y:b.y,width:this.seriesWidth,height:this.seriesHeight},this.updateScaleRatio();var M=this.seriesContainer;M.x=r.pixelWidth/2,M.y=r.pixelHeight/2,(v||e!=this.west||i!=this.east||o!=this.north||n!=this.south)&&m.each(this.series.iterator(),function(t){t.invalidate()})}},e.prototype.updateScaleRatio=function(){var t,e=this.chartContainer.innerWidth/this.seriesWidth,i=this.chartContainer.innerHeight/this.seriesHeight;t=e>i?i:e,(y.isNaN(t)||t==1/0)&&(t=1),t!=this.scaleRatio&&(this.scaleRatio=t,m.each(this.series.iterator(),function(e){e.scale=t,e.updateTooltipBounds()}),this.dispatch("scaleratiochanged"))},e.prototype.svgPointToGeo=function(t){var e=this.series.getIndex(0);if(e){var i=g.svgPointToSprite(t,e);return this.seriesPointToGeo(i)}},e.prototype.geoPointToSVG=function(t){var e=this.series.getIndex(0);if(e){var i=this.geoPointToSeries(t);return g.spritePointToSvg(i,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(),m.each(this._dataUsers.iterator(),function(t){t.invalidateData()}))},enumerable:!0,configurable:!0}),e.prototype.zoomToGeoPoint=function(t,e,i,o){var n=this;if(t||(t=this.zoomGeoPoint),t){this._zoomGeoPointReal=t,e=d.fitToRange(e,this.minZoomLevel,this.maxZoomLevel);var r=this.projection.convert(t),a=this.geoPointToSVG(t),s=g.svgPointToSprite(a,this);return i&&(s={x:this.maxWidth/2,y:this.maxHeight/2}),y.isNumber(o)||(o=this.zoomDuration),this._mapAnimation=this.seriesContainer.animate([{property:"scale",to:e},{property:"x",to:s.x-r.x*e*this.scaleRatio-this.pixelPaddingLeft},{property:"y",to:s.y-r.y*e*this.scaleRatio-this.pixelPaddingTop}],o,this.zoomEasing),this._disposers.push(this._mapAnimation.events.on("animationended",function(){n._zoomGeoPointReal=n.zoomGeoPoint})),this.seriesContainer.validatePosition(),this._mapAnimation}},e.prototype.zoomToMapObject=function(t,e,i,o){if(void 0==i&&(i=!0),t instanceof a.a)return y.isNaN(e)&&(e=5),this.zoomToGeoPoint({latitude:t.latitude,longitude:t.longitude},e,i,o);var n=t.dataItem;if(n&&y.isNumber(n.zoomLevel)&&(e=n.zoomLevel),t instanceof s.a){var r=t.dataItem,u=t.polygon.bbox;y.isNumber(e)||(e=Math.min(this.seriesWidth/u.width,this.seriesHeight/u.height));var l=void 0;if(r&&y.hasValue(r.zoomGeoPoint))l=r.zoomGeoPoint;else{var h={x:u.x+u.width/2,y:u.y+u.height/2},c=g.spritePointToSprite(h,t.polygon,t.series);l=this.seriesPointToGeo(c)}return this.zoomToGeoPoint(l,e,!0,o)}},e.prototype.zoomToRectangle=function(t,e,i,o,n,r,a){y.isNaN(n)&&(n=1);var s=n*Math.min((this.south-this.north)/(i-t),(this.west-this.east)/(o-e));return this.zoomToGeoPoint({latitude:t+(i-t)/2,longitude:o+(e-o)/2},s,r,a)},e.prototype.zoomIn=function(t,e){return this.zoomToGeoPoint(t,2*this.zoomLevel,!1,e)},e.prototype.zoomOut=function(t,e){return this.zoomToGeoPoint(t,this.zoomLevel/2,!1,e)},e.prototype.pan=function(t,e){var i=this.geoPointToSVG(this.zoomGeoPoint);i.x+=this.pixelWidth*t.x,i.y+=this.pixelHeight*t.y,this.zoomToGeoPoint(this.svgPointToGeo(i),this.zoomLevel,!0,e)},Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){var t=g.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 l.a;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 r.a},Object.defineProperty(e.prototype,"deltaLongitude",{get:function(){return this.getPropertyValue("deltaLongitude")},set:function(t){this.setPropertyValue("deltaLongitude",v.wrapAngleTo180(t))&&this.invalidateProjection()},enumerable:!0,configurable:!0}),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}),e.prototype.invalidateProjection=function(){this.updateExtremes(),this.projection.deltaLongitude=this.deltaLongitude,m.each(this.series.iterator(),function(t){t.invalidate()})},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){y.hasValue(e.projection)&&y.isString(e.projection)&&(e.projection=this.createClassInstance(e.projection)),y.hasValue(e.smallMap)&&!y.hasValue(e.smallMap.type)&&(e.smallMap.type="SmallMap"),y.hasValue(e.zoomControl)&&!y.hasValue(e.zoomControl.type)&&(e.zoomControl.type="ZoomControl"),t.prototype.processConfig.call(this,e)},e.prototype.configOrder=function(e,i){return e==i?0:"smallMap"==e?1:"smallMap"==i?-1:"series"==e?1:"series"==i?-1:t.prototype.configOrder.call(this,e,i)},e.prototype.asIs=function(e){return"projection"==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)},e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e&&(e.parent=this.chartContainer)},e}(n.a);p.b.registeredClasses.MapChart=P},555:function(t,e,i){"use strict";i.d(e,"b",function(){return d}),i.d(e,"a",function(){return g});var o=i(0),n=i(101),r=i(209),a=i(11),s=i(1),u=i(151),l=i(16),h=i(6),c=i(5),p=i(7),d=function(t){function e(){var e=t.call(this)||this;return e.className="MapPolygonSeriesDataItem",e.applyTheme(),e}return o.c(e,t),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(e),this._disposers.push(new p.b(function(){t.component.mapPolygons.removeValue(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.multiGeoPolygon=u.c([t])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){return this._multiPolygon},set:function(t){this._multiPolygon=t,this.multiGeoPolygon=u.c(t)},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.updateAreaExtremes(t),this.mapPolygon.multiGeoPolygon=this._multiGeoPolygon},enumerable:!0,configurable:!0}),e.prototype.updateAreaExtremes=function(t){for(var e=0,i=t.length;e<i;e++){var o=t[e][0];this.updateExtremes(o)}},e}(n.b),g=function(t){function e(){var e=t.call(this)||this;return e.parsingStepDuration=250,e.className="MapPolygonSeries",e.dataFields.multiPolygon="multiPolygon",e.dataFields.polygon="polygon",e.dataFields.geoPolygon="geoPolygon",e.dataFields.multiGeoPolygon="multiGeoPolygon",e.applyTheme(),e}return o.c(e,t),e.prototype.createDataItem=function(){return new d},e.prototype.processIncExc=function(){this.mapPolygons.clear(),t.prototype.processIncExc.call(this)},e.prototype.validateData=function(){var e=this;if(this.data.length>0&&0==this._parseDataFrom&&this.mapPolygons.clear(),this.west=null,this.east=null,this.north=null,this.south=null,this.useGeodata||this.geodata){var i=this._dataSources.geodata?void 0:this.chart.geodata;if(this.geodata&&(i=this.geodata),i){var o=void 0;if("FeatureCollection"==i.type?o=i.features:"Feature"==i.type?o=[i]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(i.type)?o=[{geometry:i}]:console.log("nothing found in geoJSON"),o)for(var n=function(t,e){var i=o[t],n=i.geometry;if(n){var a=n.type,s=i.id;if("Polygon"==a||"MultiPolygon"==a){if(!r.checkInclude(r.include,r.exclude,s))return"continue";var u=n.coordinates;u&&"Polygon"==a&&(u=[u]);var c=l.find(r.data,function(t,e){return t.id==s});c?c.multiPolygon||(c.multiPolygon=u):(c={multiPolygon:u,id:s},r.data.push(c)),h.softCopyProperties(i.properties,c)}}},r=this,a=0,s=o.length;a<s;a++)n(a)}}t.prototype.validateData.call(this),c.each(this.dataItems.iterator(),function(t){e.mapPolygons.moveValue(t.mapPolygon)})},e.prototype.validate=function(){t.prototype.validate.call(this),c.each(this.mapPolygons.iterator(),function(t){t.validate()})},Object.defineProperty(e.prototype,"mapPolygons",{get:function(){if(!this._mapPolygons){var t=new r.a,e=new a.e(t);this._disposers.push(new a.c(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapPolygons=e}return this._mapPolygons},enumerable:!0,configurable:!0}),e.prototype.getPolygonById=function(t){return c.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}(n.a);s.b.registeredClasses.MapPolygonSeries=g,s.b.registeredClasses.MapPolygonSeriesDataItem=d},556:function(t,e,i){"use strict";i.d(e,"b",function(){return s}),i.d(e,"a",function(){return u});var o=i(0),n=i(210),r=i(316),a=i(1),s=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeriesDataItem",e.applyTheme(),e}return o.c(e,t),e}(n.b),u=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeries",e.applyTheme(),e}return o.c(e,t),e.prototype.createDataItem=function(){return new s},e.prototype.createLine=function(){return new r.a},e}(n.a);a.b.registeredClasses.MapSplineSeries=u,a.b.registeredClasses.MapSplineSeriesDataItem=s},557:function(t,e,i){"use strict";i.d(e,"b",function(){return g}),i.d(e,"a",function(){return f});var o=i(0),n=i(101),r=i(208),a=i(11),s=i(1),u=i(16),l=i(151),h=i(6),c=i(5),p=i(3),d=i(7),g=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeriesDataItem",e.applyTheme(),e}return o.c(e,t),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 d.b(function(){t.component.mapImages.removeValue(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=l.d(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPoint",{get:function(){return this._geoPoint},set:function(t){this._geoPoint=t,this.updateExtremes([this._geoPoint]),this.mapImage.latitude=this._geoPoint.latitude,this.mapImage.longitude=this._geoPoint.longitude},enumerable:!0,configurable:!0}),e}(n.b),f=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.applyTheme(),e}return o.c(e,t),e.prototype.createDataItem=function(){return new g},e.prototype.validateData=function(){var e=this;if(this.data.length>0&&this.mapImages.clear(),this.useGeodata&&(this.useGeodata||this.geodata)){var i=this.chart.geodata,o=void 0;if("FeatureCollection"==i.type?o=i.features:"Feature"==i.type?o=[i]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(i.type)?o=[{geometry:i}]:console.log("nothing found in geoJSON"),o)for(var n=function(t,e){var i=o[t],n=i.geometry;if(n){var a=n.type,s=i.id;if("Point"==a||"MultiPoint"==a){if(!r.checkInclude(r.include,r.exclude,s))return"continue";var l=n.coordinates;l&&"MultiPoint"==a&&(l=[l]);var c=u.find(r.data,function(t,e){return t.id==s});c?c.multiPoint||(c.multiPoint=l):(c={multiPoint:l,id:s},r.data.push(c)),h.softCopyProperties(i.properties,c)}}},r=this,a=0,s=o.length;a<s;a++)n(a)}t.prototype.validateData.call(this),c.each(this.dataItems.iterator(),function(t){var i=t.mapImage;e.mapImages.moveValue(i),p.isNumber(i.latitude)&&p.isNumber(i.latitude)&&(t.geoPoint={latitude:i.latitude,longitude:i.longitude})})},Object.defineProperty(e.prototype,"mapImages",{get:function(){if(!this._mapImages){var t=new r.a,e=new a.e(t);this._disposers.push(new a.c(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapImages=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),c.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}(n.a);s.b.registeredClasses.MapImageSeries=f,s.b.registeredClasses.MapImageSeriesDataItem=g},558:function(t,e,i){"use strict";i.d(e,"b",function(){return s}),i.d(e,"a",function(){return u});var o=i(0),n=i(210),r=i(317),a=i(1),s=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeriesDataItem",e.applyTheme(),e}return o.c(e,t),e}(n.b),u=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeries",e.applyTheme(),e}return o.c(e,t),e.prototype.createDataItem=function(){return new s},e.prototype.createLine=function(){return new r.a},e}(n.a);a.b.registeredClasses.MapArcSeries=u,a.b.registeredClasses.MapArcSeriesDataItem=s},559:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(560);i.d(e,"Mercator",function(){return o.a});var n=i(561);i.d(e,"Miller",function(){return n.a});var r=i(562);i.d(e,"Eckert6",function(){return r.a});var a=i(563);i.d(e,"Orthographic",function(){return a.a});var s=i(88);i.d(e,"Projection",function(){return s.a})},560:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var o=i(0),n=i(88),r=i(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.c(e,t),e.prototype.unproject=function(t,e){return{longitude:t,latitude:2*Math.atan(Math.exp(e))-Math.PI/2}},e.prototype.project=function(t,e){return{x:t,y:Math.log(Math.tan((Math.PI/2+e)/2))}},e}(n.a);r.b.registeredClasses.Mercator=a},561:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var o=i(0),n=i(88),r=i(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.c(e,t),e.prototype.unproject=function(t,e){return{longitude:t,latitude:2.5*Math.atan(Math.exp(.8*e))-.625*Math.PI}},e.prototype.project=function(t,e){return{x:t,y:1.25*Math.log(Math.tan(Math.PI/4+.4*e))}},e}(n.a);r.b.registeredClasses.Miller=a},562:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var o=i(0),n=i(88),r=i(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.c(e,t),e.prototype.unproject=function(t,e){var i=1+Math.PI/2,o=Math.sqrt(i/2);return{longitude:2*t*o/(1+Math.cos(e*=o)),latitude:Math.asin((e+Math.sin(e))/i)}},e.prototype.project=function(t,e){for(var i=(1+Math.PI/2)*Math.sin(e),o=0,n=1/0;o<10&&Math.abs(n)>1e-5;o++)e-=n=(e+Math.sin(e)-i)/(1+Math.cos(e));return i=Math.sqrt(2+Math.PI),{x:t*(1+Math.cos(e))/i,y:2*e/i}},e}(n.a);r.b.registeredClasses.Eckert6=a},563:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var o=i(0),n=i(88),r=i(1),a=i(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.c(e,t),e.prototype.project=function(t,e){return{x:Math.cos(e)*Math.sin(t),y:Math.sin(e)}},e.prototype.getClipRectangle1=function(){var t=90-this.deltaLongitude,e=-this.deltaLatitude;return[{longitude:t-180,latitude:e-90},{longitude:t-1e-5,latitude:e-90},{longitude:t-1e-5,latitude:e+90},{longitude:t-180,latitude:e+90}]},e.prototype.getRect1=function(){var t=90-this.deltaLongitude,e=-this.deltaLatitude;return{north:e+90,south:e-90,west:t-180,east:t}},e.prototype.getClipRectangle2=function(){var t,e=90-this.deltaLongitude,i=-this.deltaLatitude;return[{longitude:1e-5+e-180+(t=e>0?-360:360),latitude:i-90},{longitude:e-1e-5+t,latitude:i-90},{longitude:e-1e-5+t,latitude:i+90},{longitude:1e-5+e-180+t,latitude:i+90}]},e.prototype.getRect2=function(){var t,e=90-this.deltaLongitude,i=-this.deltaLatitude;return{north:i+90,south:i-90,west:e-180+(t=e>0?-360:360),east:e+t}},e.prototype.clipGeoArea=function(t){if(t){for(var e,i,n=[],r=this.getClipRectangle1(),s=this.getClipRectangle2(),u=this.getRect1(),l=this.getRect2(),h=0,c=t.length;h<c;h++){var p=t[h][0],d=t[h][1],g=[];if(p){var f=this.getExtremes(p);if(this.isInside(f,u)||this.isOutside(f,u))this.isInside(f,u)&&g.push([p,d]);else{var m=this.clip(p,r),y=this.clip(d,r);g.push([m,y])}if(this.isInside(f,l)||this.isOutside(f,l))this.isInside(f,l)&&g.push([p,d]);else{var v=this.clip(p,s),b=this.clip(d,s);g.push([v,b])}}try{for(var P=o.g(g),M=P.next();!M.done;M=P.next()){var L=M.value;n.push(L)}}catch(t){e={error:t}}finally{try{M&&!M.done&&(i=P.return)&&i.call(P)}finally{if(e)throw e.error}}}for(h=0,c=n.length;h<c;h++){if(p=n[h][0])for(var x=p.length,j=p[x-1],_=0;_<x;_++){var S=p[_];if(a.round(S.longitude,4)==a.round(j.longitude,4)){var C=Math.abs(2*(j.latitude-S.latitude)),w=[];if(C>1){for(var O=1;O<C;O++)w.push({longitude:j.longitude,latitude:j.latitude+(S.latitude-j.latitude)/C*O});p.splice.apply(p,o.f([_,0],w)),_+=w.length}}j=S}}return n}},e}(n.a);r.b.registeredClasses.Orthographic=s},88:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var o=i(0),n=i(1),r=i(4),a=i(149),s=function(){function t(){this.deltaLongitude=0,this.deltaLatitude=0,this.deltaGama=0,this.centerPoint={x:0,y:0},this.scale=1}return t.prototype.projectGeoArea=function(t){var e=this.clipGeoArea(t);return this.convertGeoArea(e)},t.prototype.projectGeoLine=function(t){return this.convertGeoLine(this.clipGeoLine(t))},t.prototype.getClipRectangle1=function(){var t=a.wrapAngleTo180(180-this.deltaLongitude),e=a.wrapAngleTo180(this.deltaLatitude);return[{longitude:-180,latitude:e-90},{longitude:t-1e-5,latitude:e-90},{longitude:t-1e-5,latitude:e+90},{longitude:-180,latitude:e+90}]},t.prototype.getClipRectangle2=function(){var t=a.wrapAngleTo180(180-this.deltaLongitude);return[{longitude:t+1e-5,latitude:-90},{longitude:180,latitude:-90},{longitude:180,latitude:90},{longitude:t+1e-5,latitude:90}]},t.prototype.getRect1=function(){var t=a.wrapAngleTo180(180-this.deltaLongitude),e=a.wrapAngleTo180(this.deltaLatitude);return{north:e+90,south:e-90,west:t-180,east:t}},t.prototype.getRect2=function(){var t=a.wrapAngleTo180(180-this.deltaLongitude),e=a.wrapAngleTo180(this.deltaLatitude);return{north:e+90,south:e-90,west:t,east:t+180}},t.prototype.clipGeoLine=function(t){if(t){for(var e=[],i=this.getClipRectangle1(),o=this.getClipRectangle2(),n=0,r=t.length;n<r;n++){var a=t[n];if(a){var s=this.clipLine(a,i);if(e=e.concat(s),0!=this.deltaLongitude){var u=this.clipLine(a,o);e=e.concat(u)}}}return e}},t.prototype.clipGeoArea=function(t){if(t){for(var e,i,n=[],r=this.getClipRectangle1(),a=this.getClipRectangle2(),s=this.getRect1(),u=this.getRect2(),l=0,h=t.length;l<h;l++){var c=t[l][0],p=t[l][1],d=[];if(c){var g=this.getExtremes(c);if(this.isInside(g,s)||this.isOutside(g,s))d.push([c,p]);else{var f=this.clip(c,r),m=this.clip(p,r);d.push([f,m])}if(!this.isInside(g,u)&&!this.isOutside(g,u)){var y=this.clip(c,a),v=this.clip(p,a);d.push([y,v])}}try{for(var b=o.g(d),P=b.next();!P.done;P=b.next()){var M=P.value;n.push(M)}}catch(t){e={error:t}}finally{try{P&&!P.done&&(i=b.return)&&i.call(b)}finally{if(e)throw e.error}}}return n}},t.prototype.convertGeoArea=function(t){if(t){for(var e=[],i=0,o=t.length;i<o;i++){var n=t[i][0],r=t[i][1],a=[];if(n){for(var s=[],u=0,l=n.length;u<l;u++){var h=this.convert(n[u]);s.push(h)}a.push(s)}if(r){for(var c=[],p=(u=0,r.length);u<p;u++){h=this.convert(r[u]);c.push(h)}a.push(c)}e.push(a)}return e}},t.prototype.convertGeoLine=function(t){if(t){for(var e=[],i=0,o=t.length;i<o;i++){for(var n=t[i],r=[],a=0,s=n.length;a<s;a++){var u=n[a],l=this.convert(u);r.push(l)}e.push(r)}return e}},t.prototype.convert=function(t){t=a.normalizePoint(t),t=this.rotate(t,this.deltaLongitude,this.deltaLatitude,this.deltaGama);var e=this.project(t.longitude*r.RADIANS,t.latitude*r.RADIANS);return{x:r.round(e.x*r.DEGREES-this.centerPoint.x,4)*this.scale,y:r.round(-e.y*r.DEGREES-this.centerPoint.y,4)*this.scale}},t.prototype.invert=function(t){var e=this.unproject((t.x/this.scale+this.centerPoint.x)*r.RADIANS,(-t.y/this.scale-this.centerPoint.y)*r.RADIANS),i={longitude:e.longitude*r.DEGREES,latitude:e.latitude*r.DEGREES};return i=this.unrotate(i,this.deltaLongitude,this.deltaLatitude,this.deltaGama)},t.prototype.project=function(t,e){return{x:t,y:e}},t.prototype.unproject=function(t,e){return{longitude:t,latitude:e}},t.prototype.rotate=function(t,e,i,o){var n=e*r.RADIANS,a=i*r.RADIANS;o*=r.RADIANS;var s=t.longitude*r.RADIANS+n,u=t.latitude*r.RADIANS,l=Math.cos(a),h=Math.sin(a),c=Math.cos(o),p=Math.sin(o),d=Math.cos(u),g=Math.cos(s)*d,f=Math.sin(s)*d,m=Math.sin(u),y=m*l+g*h;return{longitude:r.DEGREES*Math.atan2(f*c-y*p,g*l-m*h),latitude:r.DEGREES*Math.asin(y*c+f*p)}},t.prototype.unrotate=function(t,e,i,o){var n=e*r.RADIANS,a=i*r.RADIANS;o*=r.RADIANS;var s=t.longitude*r.RADIANS-n,u=t.latitude*r.RADIANS,l=Math.cos(a),h=Math.sin(a),c=Math.cos(o),p=Math.sin(o),d=Math.cos(u),g=Math.cos(s)*d,f=Math.sin(s)*d,m=Math.sin(u),y=m*c-f*p;return{longitude:r.DEGREES*Math.atan2(f*c+m*p,g*l+y*h),latitude:r.DEGREES*Math.asin(y*l-g*h)}},t.prototype.clipLine=function(t,e){if(t&&0!=t.length){var i,o,n,r,a=function(t){return(o.longitude-i.longitude)*(t.latitude-i.latitude)>(o.latitude-i.latitude)*(t.longitude-i.longitude)},s=function(){var t=i.longitude-o.longitude,e=i.latitude-o.latitude,a=n.longitude-r.longitude,s=n.latitude-r.latitude,u=i.longitude*o.latitude-i.latitude*o.longitude,l=n.longitude*r.latitude-n.latitude*r.longitude,h=1/(t*s-e*a);return{longitude:(u*a-l*t)*h,latitude:(u*s-l*e)*h}},u=t;for(var l in i=e[e.length-1],e){o=e[l];var h=u;u=[],n=h[0];for(var c=0,p=h.length;c<p;c++)a(r=h[c])?(a(n)||u.push(s()),u.push(r)):a(n)&&u.push(s()),n=r;i=o}return[u]}},t.prototype.clip=function(t,e){if(t&&0!=t.length){var i,o,n,r,a=function(t){return(o.longitude-i.longitude)*(t.latitude-i.latitude)>(o.latitude-i.latitude)*(t.longitude-i.longitude)},s=function(){var t=i.longitude-o.longitude,e=i.latitude-o.latitude,a=n.longitude-r.longitude,s=n.latitude-r.latitude,u=i.longitude*o.latitude-i.latitude*o.longitude,l=n.longitude*r.latitude-n.latitude*r.longitude,h=1/(t*s-e*a);return{longitude:(u*a-l*t)*h,latitude:(u*s-l*e)*h}},u=t;for(var l in i=e[e.length-1],e){o=e[l];var h=u;for(var c in u=[],n=h[h.length-1],h)a(r=h[c])?(a(n)||u.push(s()),u.push(r)):a(n)&&u.push(s()),n=r;i=o}return u}},t.prototype.getExtremes=function(t){for(var e=t[0].longitude,i=t[0].longitude,o=t[0].latitude,n=t[0].latitude,r=0;r<t.length;r++){var a=t[r].longitude,s=t[r].latitude;e>a&&(e=a),i<a&&(i=a),o<s&&(o=s),n>s&&(n=s)}return{north:o,east:i,south:n,west:e}},t.prototype.isInside=function(t,e){return t.north<e.north&&t.south>e.south&&t.west>e.west&&t.east<e.east},t.prototype.isOutside=function(t,e){return t.south>e.north||t.north<e.south||t.west>e.east||t.east<e.west},t.prototype.intermediatePoint=function(t,e,i){var o=t.latitude*r.RADIANS,n=t.longitude*r.RADIANS,a=e.latitude*r.RADIANS,s=e.longitude*r.RADIANS,u=Math.sin(o),l=Math.cos(o),h=Math.sin(n),c=Math.cos(n),p=Math.sin(a),d=Math.cos(a),g=Math.sin(s),f=Math.cos(s),m=a-o,y=s-n,v=Math.sin(m/2)*Math.sin(m/2)+Math.cos(o)*Math.cos(a)*Math.sin(y/2)*Math.sin(y/2),b=2*Math.atan2(Math.sqrt(v),Math.sqrt(1-v)),P=Math.sin((1-i)*b)/Math.sin(b),M=Math.sin(i*b)/Math.sin(b),L=P*l*c+M*d*f,x=P*l*h+M*d*g,j=P*u+M*p,_=Math.atan2(j,Math.sqrt(L*L+x*x)),S=Math.atan2(x,L);return{latitude:_*r.DEGREES,longitude:S*r.DEGREES}},t}();n.b.registeredClasses.Projection=s}},[552]);
//# sourceMappingURL=maps.js.map